vxe-table icon indicating copy to clipboard operation
vxe-table copied to clipboard

tree-config.rowField 所指定的属性,其值为字符串 'undefined' 时会导致渲染死循环

Open pjxxcc opened this issue 2 years ago • 1 comments

可复现的链接:

https://codesandbox.io/s/vxe-table-3-x-vue-2-6-wen-ti-yan-shi-forked-jucj60?file=/src/views/Demo1.vue

问题描述与截图:

tree-config.rowField 所指定的属性,其值为字符串 'undefined' 时会导致渲染死循环,报错 index.js:27 [Vue warn]: Error in callback for watcher "data": "RangeError: Maximum call stack size exceeded"

拿复现链接中的例子来说,tree-config.rowField = name ,如果 data 中某一项的 name 属性为 'undefined',就会出现问题。

期望的结果:

字符串 'undefined' 应该是合法值

操作系统:

浏览器版本:

vue 版本:

2.6.11

vxe-table 版本:

3

pjxxcc avatar Sep 15 '22 03:09 pjxxcc

更正描述,并补充复现连接

pjxxcc avatar Sep 15 '22 06:09 pjxxcc