Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] filter-change does not automatically update filtered-value #5612

Open
frankyeyq opened this issue Jun 29, 2017 · 8 comments

Comments

@frankyeyq
Copy link

commented Jun 29, 2017

Element UI version

1.3.7

OS/Browsers version

macOS 10.12.4/Chrome 59.0.3071.109

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/e11274bn/2/

Steps to reproduce

1.默认使用filtered-value选中公司这个标签
2.点击清空,筛选标签正常渲染
3.点击选中家按钮,筛选标签正常渲染
4.点击筛选中的家,公司,然后点击筛选,filtered-value没有更新,并且再手动更新filter-value无效

What is Expected?

filtered-value应该在filter-change时,实时更新,并且可以用filter-value控制筛选选项的选中状态

What is actually happening?

filtered-value在点击筛选之后就无法实现数据双向绑定

@element-bot element-bot changed the title [Bug Report] filter-change没有自动更新filtered-value [Bug Report] filter-change does not automatically update filtered-value Jun 29, 2017

@element-bot

This comment has been minimized.

Copy link
Collaborator

commented Jun 29, 2017

Translation of this issue:

Element UI version

1.3.7

OS/Browsers version

MacOS 10.12.4/Chrome 59.0.3071.109

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/e11274bn/2/

Steps to reproduce

  1. defaults to using filtered-value to select the label of the company

  2. click "empty", filter labels, render normally

  3. click the checked home button to filter the labels for normal rendering

  4. click on the home in the filter, the company, and then click filter, filtered-value does not update, and then manually update the filter-value invalid

What is Expected?

Filtered-value should be updated in real time at filter-change and can be used to control the selected state of the filter option with filter-value

What is actually happening?

Filtered-value cannot achieve two-way binding of data after you click filter

@lzl529

This comment has been minimized.

Copy link

commented Jul 5, 2017

i got same issue...

@athena0304

This comment has been minimized.

Copy link

commented Jul 24, 2017

我也遇到了相同的问题,filtered-value根本不生效啊
https://jsfiddle.net/athena0304/xcydoxfr/
filteredValue一直是空的

@zhouwenbin

This comment has been minimized.

Copy link

commented Aug 17, 2017

数据如果是异步的,filtered-value不能过滤数据

@ttchin

This comment has been minimized.

Copy link

commented May 11, 2018

也就是说filtered-value只能一开始就设定好,不能在页面渲染后更新?

@Draco-china

This comment has been minimized.

Copy link

commented May 16, 2018

设置el-tablerefa 那么可以这样拿到filtered-value
let columns = this.$refs.a.columns
filteredValue = columns[0].filteredValue
filteredValue1 = columns[1].filteredValue
以此类推 ...
@ttchin @zhouwenbin @athena0304 @frankyeyq

@my9074

This comment has been minimized.

Copy link

commented Jun 21, 2018

@zhouwenbin @ttchin 如果数据是异步的,filtered-value 的问题能解决么?

@Sinosaurus

This comment has been minimized.

Copy link

commented Mar 12, 2019

@zhouwenbin 解决了吗? 我现在是首次设置 filtered-value 后,想利用其提供清空筛选clearFilter的方式时,无法清除 filtered-value ,但是我绑定的值已经空了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.