ivew 中table隐藏列

  computed: {
    computeCols () {
      // 隐藏列
      let columns = this.tableColumns
      if (this.searchForm.Type === '' || this.searchForm.Type === 0) {
         columns = columns.filter(col => col.key !== 'Sort')
      }
      return columns
    }
  }

 

posted @ 2020-11-24 17:24  春夏秋冬的千山万水  阅读(146)  评论(0)    收藏  举报