view-design / ViewUI

A high quality UI Toolkit built on Vue.js 2.0
https://www.iviewui.com/
Other
2.65k stars 797 forks source link

[Bug Report]表格组件使用tree 功能,异步加载子数据,row-class-name 无法设置子数据行的class #1124

Open helloprogh opened 1 year ago

helloprogh commented 1 year ago

Environment

windows 10/chrome110/vue 2.7.10

Reproduction link

https://run.iviewui.com/dLtXiDBt

Steps to reproduce

设置table 组件,使用tree 特性,设置row-class-name,判断数据是否为子数据,子数据返回children-row,但是判断无法生效,打印出row-class-name拿到的数据,发现无子节点数据

What is expected?

table 设置tree,异步加载子节点,能够设置子节点数据

What is actually happening?

无法设置子节点数据