You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用groupRowsBy分组的表格拖动排序后数据未更新,求技术支持

行分组表格拖拽排序后数据无变化的问题求助

我用groupRowsBy实现了一个带行分组的表格,表格支持行拖拽排序操作,但执行拖拽后数据完全没变化,求解决这个问题的方法。

数据示例

this.data = [
  {
    id: 1,
    groupOrder: 1,
    group_by: { name: 'Manager', id: 1 },
    name: 'Manager 1',
    title: '1.1 Manager 1',
  },
  {
    id: 2,
    code: 1.2,
    groupOrder: 1,
    group_by: { name: 'Manager', id: 1 },
    name: 'Manager 2 ',
    title: '1.2 Manager 2',
  },
  {
    id: 7,
    groupOrder: 2,
    group_by: { name: 'Support', id: 2 },
    name: 'Support',
    title: '2.1 Support',
  },
];

涉及功能

  • 行分组子表头
  • 拖拽重排序

补充说明

已提供完整的代码实现,包含表格分组和拖拽逻辑的相关文件。

内容的提问来源于stack exchange,提问作者my trung

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 06:05:01