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
[Feature Request] Extra slot under el-table__body-wrapper
to support infinite scroll plugins
#4261
Comments
Chances are that you'll see this extra slot in version 1.3.0 By the way, since you've been testing, could you place the slot between line 37 and 38 and see if it also works well? Additionally, does it work well when you have fixed columns? Thanks. |
@Leopoldthecoder I'm trying to test Table component's The row element on my local environment does get appended to But on JSFiddle, the |
@Syn-zeta I've no idea why it's not appended in JSFiddle, though wrapping the And I think your real problem is that |
Oh, thanks for the |
I checked the infinite loading repo and found that the author has plans to allow setting the scroll parent element manually. I think it may be promising, thought I haven't really looked into it. |
@Leopoldthecoder It seems that it is not an issue with detecting the parent element, but rather, as the author of the plugin mentions here, caused by the |
@Leopoldthecoder Would you be able to suggest a good way to get around this issue? I would like to try that out and perhaps create a PR. I'm hoping to have this in the next beta release. |
@QingWei-Li Do you have any suggestions on what could be done here? Leo seems to be busy. |
@Syn-zeta Sorry for the delay, I'll take a look this weekend. But re-rendering elements seems inevitable. |
@Leopoldthecoder It's alright. Please update me on this. Again, if you have any suggestions, I'm willing to work on it and submit a PR that is acceptable. |
@Syn-zeta I checked the demo above and found that it now behaves differently. Because Vue has updated:
The problem @PeachScript described in PeachScript/vue-infinite-loading#43 (comment) is gone. But still, |
@Leopoldthecoder Thank you for looking into this. The remaining issue was fixed in |
Existing Component
Yes
Component Name
Table
Description
The first two infinite-scroll plugins listed at awesome-vue:
Both components require to be placed directly under a scrollable container to work. Element UI's Table component currently has no placeholder for these plugins, so an infinite loading table with these plugins is not possible as of yet: https://jsfiddle.net/frya0fLz/
I've already tested that a simple slot component placed under
el-table__body-wrapper
between line 34 and 35 works well: Table.vue:34. Is this a "feature" that is acceptable to be included in Element?The text was updated successfully, but these errors were encountered: