Closed imlinhanchao closed 1 year ago
Describe the bug 在 x-gantt-column 中使用组件对 row 做修改,没有联动变化。
To Reproduce
Expected behavior 操作组件应该要可以修改数据并联动甘特图。
Versions
Additional context
<x-gantt data-id="id" :data="dataList" :ref="ganttRef" start-key="planStartTime" end-key="planEndTime" > <x-gantt-column label="标题" prop="name" /> <x-gantt-column label="进度" prop="progress" /> <x-gantt-column label="开始日期" width="100"> <template #default="{ row }"> <el-date-picker class="date-picker" v-model="row.planStartTime" type="date" placeholder="选择日期" size="small" style="width: 100%" :clearable="false" value-format="YYYY-MM-DD" /> </template> </x-gantt-column> <x-gantt-column label="结束日期" width="100"> <template #default="{ row }"> <el-date-picker class="date-picker" v-model="row.planEndTime" type="date" placeholder="选择日期" size="small" style="width: 100%" :clearable="false" value-format="YYYY-MM-DD" /> </template> </x-gantt-column> </x-gantt>
const dataList = ref([ { id: 1660933075125125000, name: '小鸡快跑计划', projectId: 1, ganttDataType: 39, planStartTime: '2023-10-04 15:21:27', planEndTime: '2023-11-01 20:33:39', assign: 'anim Ut veniam elit aliquip', progress: 58, estimatedHours: 100, totalManHour: 84, remainingManHour: 93, status: 1, children: [ { id: 1661169300083720200, parentId: 1660933075125125000, name: '孵鸡蛋', projectId: 1, ganttDataType: 2, planStartTime: '2023-11-04 15:21:27', planEndTime: '2023-12-01 20:33:39', assign: '陈小东', progress: 58, estimatedHours: 100, totalManHour: 84, remainingManHour: 93, status: 1, }, ] }
row 抛出的是无响应数据,所以不会联动。我没考虑到这个问题,后续修改一个联动的效果
Describe the bug 在 x-gantt-column 中使用组件对 row 做修改,没有联动变化。
To Reproduce
Expected behavior 操作组件应该要可以修改数据并联动甘特图。
Versions
Additional context