easyui—element-ui框架套用(表格寬度自適應)


外層使用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",}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM