VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.43k stars 103 forks source link

基础数据表格-树结构-更改hierarchyExpandLevel的值,调用updateOption不生效 #1976

Closed frank-zyb closed 3 weeks ago

frank-zyb commented 3 weeks ago

Version

1.3.0

Link to Minimal Reproduction

https://visactor.io/vtable/api/Methods#updateOption

Steps to Reproduce

树结构,默认展开一层,点击按钮一键展开2层,执行以下代码 this.option.hierarchyExpandLevel = 2; this.tableInstance.updateOption(this.option); 并未生效

Current Behavior

updateOption没有生效

Expected Behavior

updateOption可以生效

Environment

- OS:maxOS
- Browser: chrome
- Framework:"vue": "^2.7.16",   "@visactor/vtable": "^1.3.0",

Any additional comments?

No response

Rui-Sun commented 3 weeks ago

可以重新提一个使用优化issue

frank-zyb commented 3 weeks ago

已经解决了,需要手动删除tree结构中每个节点的hierarchyState属性,让后在执行上述代码