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

在树型列表中如果设置treeConfig.transform=false,所有数据都无法拖拽,拖动时全部都显示禁止手势

Open wafulong opened this issue 9 months ago • 1 comments

这个需求解决了什么问题:

rowConfig: { keyField: 'id', isCurrent: true, drag: true }, rowDragConfig: { isPeerDrag: true }, treeConfig: { transform: false, rowField: 'id', parentField: 'parentId', //showLine: true },

建议的 API 是什么样的:

No response

是否已有其他不错的替代方案:

No response

是否使用当前最新版本?

  • [x] 我已确认是使用当前的最新版本。

wafulong avatar Feb 28 '25 01:02 wafulong

我也遇到了这个问题, transform为false时,可编辑树形结构也不允许添加节点,树结构不支持 "insert"等树形操作,但是源数据基本都是树形的,transform为true,需要把源数据铺平才可以,这样多了一层转换

JinCodeHub avatar Jun 04 '25 05:06 JinCodeHub