[BUG]甘特图按月份展示时slider展示位置不正确
GeassAthena opened this issue · comments
日期位置问题,给我复现代码
表头内容问题,你可以看一下当前是什么语言:
dayjs.locale('zh-cn');
console.log('main', dayjs.locale());
日期位置问题,给我复现代码
表头内容问题,你可以看一下当前是什么语言:
dayjs.locale('zh-cn'); console.log('main', dayjs.locale());
关于日期位置
我将demo代码复制到项目中执行效果如下:
甘特图配置和demo中的一致,使用的数据为
const ganttData = reactive([{
index: '2',
type: 1,
startDate: new Date('2022-02-19'),
endDate: new Date('2022-07-24'),
children: [
{
index: '20000001',
startDate: new Date('2022-03-09'),
endDate: new Date('2022-07-17'),
children: [
{
index: '2000000101',
startDate: new Date('2022-03-09'),
endDate: new Date('2022-07-17'),
children: [],
},
{
index: '2000000102',
startDate: new Date('2022-03-09'),
endDate: new Date('2022-06-19'),
children: [],
},
],
},
],
},
]);