⑤ elementui 使用字符填充table空白表格项


<el-table-column v-for="col in tableColumns.filter(coloum => checkList.indexOf(coloum.label) !== -1)"
    :key="col.label+col.prop"
    :prop="col.prop"
    :label="col.label"
    align="center"
    :formatter="if_null"
/>
methods: {
    if_null(row, column, cellValue) {
      return cellValue || '---'
    },
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM