feat: 表格高度自适应
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
fit
|
||||
:data="crud.dataSource"
|
||||
style="width: 100%;"
|
||||
height="450"
|
||||
max-height="450"
|
||||
:height="height"
|
||||
:max-height="height"
|
||||
@selection-change="onTableSelectionChange"
|
||||
>
|
||||
<el-table-column v-if="mode === 'multi'" type="selection" width="55" />
|
||||
@@ -116,6 +116,11 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
height() {
|
||||
return document.documentElement.clientHeight - 250
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initData()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user