el-table 组件里设置height,在门户页里生成滚动条,在其自己的页面里不生成滚动条。
v-model="propsHeight"
v-bind="propsHeight"
data() {
return {
propsHeight: {}
}
},
created() {
if (this.pos === 'workbench') {
this.propsHeight = {
height: 150 * this.h - 120
}
}
}