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

<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',' ');
      }
}
发布了89 篇原创文章 · 获赞 4 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/m0_37879526/article/details/104067731