⑤ 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 || '---'
    },
}
posted on 2020-12-08 16:52  pleaseAnswer  阅读(644)  评论(0编辑  收藏  举报