sheepluo

Results 170 comments of sheepluo

#### 关于数据新增 https://stackblitz.com/edit/angular-gjyury?file=package.json,src%2Fdemo.vue 尝试了一下,在最新版本 `v0.24.9` 中,已经支持 `data.push` 添加数据 https://user-images.githubusercontent.com/11605702/204141993-ef4f0826-7a5e-4718-87bf-96b85a87f3ea.mov

关于数据编辑,默认支持这种写法 `data.value[1].a = 233;` 意味着数据的 deep 监听,树形结构又是多层级,这个特性将不会支持,在框架变更之前,也永久不会支持。 请更为使用 `table.value.setData(row.key, newData);` ,类似 Vue2 的 `this.$set(data, xx, xx )`

文本描述 和 示例代码,提到的相关问题,均已回复,支持的已支持,不支持的已说明原因。issue 关闭 若还有其他疑惑,可再单独提 issue

resolved in https://github.com/Tencent/tdesign-common/pull/1063

> dragInstanceTmp?.sort(lastRowList.value) @kkk48ku 这个是为了处理受控,保证 DOM 一定和 `data` 一致。如果注释掉这一行,也会有个问题,就是即使 `onDragSort` 中没有设置新数据 `data.value = params.newData;` ,DOM 也依旧会变化

针对 Vue3 特殊处理 resolved in https://github.com/Tencent/tdesign-vue-next/pull/2105 https://github.com/Tencent/tdesign-vue-next/pull/2105/commits/d1fc58302908cc86d3cce512b55dd749fa5f2f35

这个问题在最新的版本号中已经不存在,see https://stackblitz.com/edit/angular-p4hgch-xnpsyx?file=src%2Fdemo.vue

十分抱歉,时间有限,且有其他的解决方案,暂不支持。

Vue2 resolved in https://github.com/Tencent/tdesign-vue/pull/2001