el-table 設置列百分比


  <el-table
      :data="tableData"
      style="width: 100%"
      stripe= "true">

      <el-table-column
        type="selection"
        min-width="5%">
      </el-table-column>

      <el-table-column
        label="書名"
        min-width="55%">

        <template slot-scope="scope">
          <i class="el-icon-document"></i>
          <span style="margin-left: 10px">{{scope.row.name}}</span>
          <p>{{ scope.row.authors | join }}</p>
        </template>

      </el-table-column>


      <el-table-column
        prop="category"
        label="類別"
        min-width="20%">
      </el-table-column>


      <el-table-column
        prop="published"
        label="出版日期"
        min-width="20%"
        >
      </el-table-column>
    </el-table>
--------------------- 
作者:當白 
來源:CSDN 
原文:https://blog.csdn.net/dangbai01_/article/details/83623811 
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!


免責聲明!

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



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