Iview: table组件的column增加显隐功能

Created on 1 Jun 2017  ·  3Comments  ·  Source: iview/iview



iView 版本号

2.0.0-rc.14

操作系统/浏览器 版本号

Chrome 56

Vue 版本号

2.2.1

能够复现问题的在线示例(bug 相关不提供在线示例将直接 close)


复现步骤

问题现象,以及你期望的结果是怎样的?

Table组件的column希望能通过一些属性控制它的显隐
比如 在active激活的情况下,table中的某一列隐藏
例子:

columns: [
  {
    type: 'selection',
    display: () => {
      return this.active;
    }
  }, {
    title: '名字',
    key: 'name'
  }, ... , {}
]

你估计可能的原因是什么(选填)?

Most helpful comment

请查看 iView 文档中 Table 的高级示例。

All 3 comments

请查看 iView 文档中 Table 的高级示例。

感谢

有个毛示例?

Was this page helpful?
0 / 5 - 0 ratings