lincl 3 年 前
コミット
592a0178fa
1 ファイル変更10 行追加3 行削除
  1. 10 3
      src/components/TablePage/index.vue

+ 10 - 3
src/components/TablePage/index.vue

@ -74,21 +74,28 @@
			</el-form>
		</div>
		<div class="box-flex-1" style="position:relative">
		<div class="box-flex-1 table-content" style="position:relative">
			<div style="position:absolute;height:100%;width:100%">
				<el-table ref="table" v-on="$listeners" v-bind="$attrs" v-loading="loading" border height="100%" style="width: 100%; ">
				<el-table ref="table" v-on="$listeners" v-bind="$attrs" v-loading="loading" :border="$attrs.border!==false? true : false" :height="$attrs.height===false? '' :  ($attrs.height||'100%')" style="width: 100%; ">
					<el-table-column
						v-if="configs.selection"
						type="selection"
						width="55">
					</el-table-column>
					<el-table-column
						v-else
						v-else-if="configs.showSort!==false"
						type="index"
						label="序号"
						align="center"
						width="50">
					</el-table-column>
					<el-table-column
						v-if="configs.expand"
						type="expand">
						<template slot-scope="props">
							<slot name="expandColumn" :data="props" />
						</template>
					</el-table-column>
					<template v-for="(item, i) in configs.columns">
						<el-table-column