elementui table中判断属性

      <el-table-column
        label="状态"
        min-width="80px"
        :show-overflow-tooltip="true"
      >
        <template slot-scope="scope">
          {{ scope.row.status == 0 ? "正常" : "已禁用" }}
        </template>
      </el-table-column>

 

posted @ 2022-04-01 13:49  jqynr  阅读(539)  评论(0)    收藏  举报