element UI el-table el-table-column 对指定列的数据进行format显示

林运浩
2023-12-01
<el-table :data="currentData" style="width: 80%;height:50%;" height="500px" v-if="chamberVisuble">
              <el-table-column align="center" label="Start Time" width="120" prop="START_TIME"  :formatter="formatterBannerOs"></el-table-column>
            </el-table>




methods:{
        formatterBannerOs: function(row, column, cellValue) {
        return cellValue.substr(0,19).replace('T',' ');
      }
}

 

 类似资料: