外層使用easyui框架中window組件,便於使用最大化功能;內部表格使用element-ui在的el-table,el-table列寬須設置為最小寬度才能在最大化窗口時列表中列寬自適應window窗口的寬度,否則就是扒在一堆的,很難看。
<el-table-column v-for="(item,index) in label"
:key="index"
:prop="item.prop"
:label="item.name"
:min-width="item.width"
align="center"
:show-overflow-tooltip="true"
>
</el-table-column>
字段寫法
{
name: "溫度值",
prop: "temValue",
width: "100",
type: "em_input",}