Element: [Table]如何显示筛选数据?

Created on 7 Dec 2016  ·  9Comments  ·  Source: ElemeFE/element

如何将table中的数据筛选出选中的数据呢?

question

Most helpful comment

请问能否hover表头时就能触发显示下拉列表?

All 9 comments

没太看懂,能否详细描述?

table 筛选 ,filter-method无法触发,是依赖包版本问题吗?

@yuanshengchao 修改 Table 绑定的 data 属性即可。

element-1
这是例子中样式,点击筛选可以触发filter-method;

element-2
代码应该没错,样式不同,也没法触发filter-method;
我的部分package.json如下:
"element-ui": "^1.0.2",
"vue-loader": "^9.9.5",
"vue": "^2.0.6",
"webpack": "^1.13.3",
有需要限定的版本号吗,谢谢!
@Leopoldthecoder @furybean

@Delicate-lee 如果可以使用 jsfiddle 里面重新,请使用该例子重开一个 issue。

如何实现input输入框来对table数据进行筛选呢

   追加一个:filter-method不能执行。

"element-ui": "^1.0.7",
"vue": "^2.1.0",
最新chrome

原因找到了! el-table-column的prop不能少。但这一点文档中没有提及。建议修改文档。

请问能否hover表头时就能触发显示下拉列表?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gengxuelei picture gengxuelei  ·  3Comments

mochenxm picture mochenxm  ·  3Comments

akaylh picture akaylh  ·  3Comments

Kingwl picture Kingwl  ·  3Comments

yubo111 picture yubo111  ·  3Comments