ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.14k stars 14.64k forks source link

[Bug Report] Table rows selection with lazy loading #15713

Open Esvalirion opened 5 years ago

Esvalirion commented 5 years ago

Element UI version

2.8.2

OS/Browsers version

MacOs 10.14.4

Vue version

2.6.10

Reproduction Link

https://codepen.io/max-novikov/pen/MdVobo?editors=1010

Steps to reproduce

Load children rows then try to select all rows with checkbox from header.

What is Expected?

All lines were selected along with the loaded lines.

What is actually happening?

Only initial rows were selected.

cheesytim commented 5 years ago

the same bug

shamilfrontend commented 5 years ago

the same bug

ziyoung commented 5 years ago

I think there are two solutions.

  1. Hide the checkbox.
  2. Display like Tree (parent nodes and children nodes are associated).

Which solution will you choose?

cheesytim commented 5 years ago

@ziyoung We want to use table tree lazy loading with selected rows correctly, we expect - all rows (fetched included) can be checked by checking parent rows.

about your suggestions:

  1. we use checkboxes
  2. it's not important how does it display in DOM, it might be good to connect fetched children with parent correctly and react on checked parent (select children as well)
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

shamilfrontend commented 4 years ago

Эта проблема была автоматически помечена как устаревшая, поскольку в последнее время она не выполнялась. Он будет закрыт, если больше не будет никаких действий. Спасибо за ваш вклад.

heyyyy

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.