element-plus [bug report] [El table tree layz load] the tree data loaded lazily is not written into the source table data

ie3xauqp  于 2022-10-21  发布在  其他
关注(0)|答案(5)|浏览(209)

Element Plus version

1.0.2-beta.53

OS/Browsers version

Google Chrome version 90.0.4430.212(正式版本) (64 位)

Vue version

3.1.2

https://codepen.io/no-map/pen/GRmgjea

Steps to reproduce

  1. 点击展开按钮 获取懒加载数据。下方数据源没有生成children字段
  2. 点击按钮 click me! 无法更改懒加载回来的数据

What is Expected?

  1. 树形表格懒加载数据应该更改源数据,并且数据拥有响应式

What is actually happening?

  1. 懒加载回来的数据没有写入源数据
yvt65v4c

yvt65v4c1#

Translation of this issue:

Element Plus version

1.0.2-beta.53

OS/Browsers version

Google Chrome version 90.0.4430.212 (official version) (64 bit)

Vue version

3.1.2

https://codepen.io/no-map/pen/GRmgjea

Steps to reproduce

  1. Click the expand button to get the load data. The data source below does not generate the children field
  2. Click me! Data loaded back cannot be changed

What is Expected?

  1. The tree table should change the source data when loading data, and the data has a response

What is actually happening?

  1. The data from lazy loading is not written to the source data
ukxgm1gy

ukxgm1gy2#

anyone else? i need help. x (

w46czmvw

w46czmvw3#

Because the lazy-loaded children are not assigned to the data (data is props), so your changes have no effect.

vu8f3i0k

vu8f3i0k4#

更新后table [tree异步加载后节点总是全部收起,又要重新一层层的展开,如何保留已经展开节点 gif问题描述

rsaldnfx

rsaldnfx5#

Using lazy loading, modify the third layer node below the first layer, and the third layer node does not disappear

相关问题