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

The summary-method method of the [Bug Report] Table component will be called many times #6552

Closed
rossroma opened this issue Aug 17, 2017 · 2 comments

Comments

@rossroma
Copy link

rossroma commented Aug 17, 2017

Element UI version

1.4.2

OS/Browsers version

macOS X 10.12

Vue version

2.4.2

Reproduction Link

https://jsfiddle.net/tjom473L/1/

Steps to reproduce

1.打开重现链接,然后打开浏览器的控制台
2.刷新页面,查看控制台输出,这时会显示 summary-method 方法被触发的次数

What is Expected?

该方法被调用一次即可

What is actually happening?

经实际测试,该方法被触发的次数为 table行数的3-5倍,当数据量比较多时,会有性能问题

@element-bot element-bot changed the title [Bug Report] Table组件的summary-method 方法会被多次调用 The summary-method method of the [Bug Report] Table component will be called many times Aug 17, 2017
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

1.4.2

OS/Browsers version

MacOS X 10.12

Vue version

2.4.2

Reproduction Link

https://jsfiddle.net/tjom473L/

Steps to reproduce

  1. open the link again, and then open the browser's console

  2. refresh the page and view the console output, which will show the number of times the summary-method method was triggered

What is Expected?

The method is called once

What is actually happening?

The actual test shows that the number of times the method is triggered is 3-5 times the number of table rows, and when the amount of data is relatively long, the performance problems will arise

@Leopoldthecoder
Copy link
Contributor

Duplicate of #6276

@Leopoldthecoder Leopoldthecoder marked this as a duplicate of #6276 Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants