el-table 組件里設(shè)置height,在門戶頁里生成滾動條沮翔,在其自己的頁面里不生成滾動條猴贰。
v-model="propsHeight"
v-bind="propsHeight"
data() {
return {
propsHeight: {}
}
},
created() {
if (this.pos === 'workbench') {
this.propsHeight = {
height: 150 * this.h - 120
}
}
}