view-design / ViewUI

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

[Bug Report]Table Issue,数据含有children时,报错 #436

Open Hotcapsicum opened 4 years ago

Hotcapsicum commented 4 years ago

Environment

win10/ chrome/ vue ^2.0

Reproduction link

https://run.iviewui.com/0S8lDfpa

Steps to reproduce

table的数据结构包含children时,会报错, Error in render: "TypeError: Cannot read property '_isChecked' of null" 通过代码处理替换掉children时,恢复正常;children是否为关键词?

What is expected?

tabledata里可以包含children,我没有用iview最新的tree结构时,就会报错

What is actually happening?

正常显示

Hotcapsicum commented 4 years ago

iview旧版本,table组件没有tree结构时自己写的,升级到4.2之后不兼容了,4.0版本正常

Hotcapsicum commented 4 years ago

是否应该考虑给table组件增加一个 v-tree 标识,表明是否启用树状组件,不然有时候数据里带chilren,并不是说明要用树状结构

jiamianmao commented 3 years ago

有这闲工夫删我评论能不能把bug去修复修复,而且你的tree组件性能差的要命,收费前能不能优化优化?继续屏蔽?