Skip to content

Commit ae82e29

Browse files
committed
v1.4.2-patch.3 - 性能提升
1 parent 0db919c commit ae82e29

File tree

8 files changed

+257
-1985
lines changed

8 files changed

+257
-1985
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.4.2-patch3] - 2025-11-13
9+
10+
### Added
11+
- 支持视图上下/左右拖拽
12+
- Support for vertical/horizontal dragging of the view
13+
14+
### Enhancement
15+
- 性能优化:canvas绘制性能优化
16+
- 性能优化:拖拽视图性能优化,拖拽期间禁止重绘canvas
17+
- 性能优化:周视图月开始分隔线实现使用canvas替代dom
18+
- 性能优化:使用canvas替代svg links实现
19+
- 性能优化:路径缓存+防抖+shallowRef计算
20+
- Performance Optimization: Canvas drawing performance optimization
21+
- Performance Optimization: View dragging performance optimization, disabling canvas redraw during dragging
22+
- Performance Optimization: Weekly view month start separator line implemented using canvas instead of DOM
23+
- Performance Optimization: Using canvas instead of SVG links implementation
24+
- Performance Optimization: Path caching + debounce + shallowRef calculation
25+
26+
## [1.4.2-patch1] - 2025-11-03
27+
28+
### Fixed
29+
- 缺陷修复:更新父级任务后,再次更新子级任务是发生无限循环调用的问题修复
30+
- Defect fix: Fixed the issue of infinite loop calls when updating child tasks after updating the parent task
31+
832
## [1.4.2-patch2] - 2025-11-11
933

1034
### Fixed

README-EN.md

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,53 +1778,56 @@ Override or extend default translations via `localeMessages` prop:
17781778
17791779
<script setup lang="ts">
17801780
const customMessages = {
1781-
// Task list related
1782-
name: 'Task Name (Custom)',
1783-
startDate: 'Start Date',
1784-
endDate: 'End Date',
1785-
duration: 'Duration',
1786-
progress: 'Completion',
1787-
predecessor: 'Predecessors',
1788-
assignee: 'Assignee',
1789-
estimatedHours: 'Estimated Hours',
1790-
actualHours: 'Actual Hours'
1791-
1792-
// Toolbar related
1793-
addTask: 'New Task',
1794-
addMilestone: 'New Milestone',
1795-
today: 'Today',
1796-
exportCsv: 'Export CSV',
1797-
exportPdf: 'Export PDF',
1798-
fullscreen: 'Fullscreen',
1799-
exitFullscreen: 'Exit Fullscreen',
1800-
language: 'Language',
1801-
theme: 'Theme',
1802-
expandAll: 'Expand All',
1803-
collapseAll: 'Collapse All'
1804-
1805-
// Internal Task editor related
1806-
title: 'Task Details',
1807-
titleEdit: 'Edit Task',
1808-
titleNew: 'New Task',
1809-
name: 'Task Name',
1810-
startDate: 'Start Date',
1811-
endDate: 'End Date',
1812-
assignee: 'Assignee',
1813-
predecessor: 'Predecessors',
1814-
description: 'Description',
1815-
estimatedHours: 'Estimated Hours',
1816-
actualHours: 'Actual Hours',
1817-
progress: 'Progress',
1818-
save: 'Save',
1819-
cancel: 'Cancel',
1820-
delete: 'Delete'
1821-
1822-
// Other texts
1823-
days: 'days',
1824-
hours: 'hours',
1825-
overtime: 'overtime',
1826-
overdue: 'overdue',
1827-
// ... More custom translations
1781+
"zh-CN": {
1782+
// Task list related
1783+
name: 'Task Name (Custom)',
1784+
startDate: 'Start Date',
1785+
endDate: 'End Date',
1786+
duration: 'Duration',
1787+
progress: 'Completion',
1788+
predecessor: 'Predecessors',
1789+
assignee: 'Assignee',
1790+
estimatedHours: 'Estimated Hours',
1791+
actualHours: 'Actual Hours'
1792+
1793+
// Toolbar related
1794+
addTask: 'New Task',
1795+
addMilestone: 'New Milestone',
1796+
today: 'Today',
1797+
exportCsv: 'Export CSV',
1798+
exportPdf: 'Export PDF',
1799+
fullscreen: 'Fullscreen',
1800+
exitFullscreen: 'Exit Fullscreen',
1801+
language: 'Language',
1802+
theme: 'Theme',
1803+
expandAll: 'Expand All',
1804+
collapseAll: 'Collapse All'
1805+
1806+
// Internal Task editor related
1807+
title: 'Task Details',
1808+
titleEdit: 'Edit Task',
1809+
titleNew: 'New Task',
1810+
name: 'Task Name',
1811+
startDate: 'Start Date',
1812+
endDate: 'End Date',
1813+
assignee: 'Assignee',
1814+
predecessor: 'Predecessors',
1815+
description: 'Description',
1816+
estimatedHours: 'Estimated Hours',
1817+
actualHours: 'Actual Hours',
1818+
progress: 'Progress',
1819+
save: 'Save',
1820+
cancel: 'Cancel',
1821+
delete: 'Delete'
1822+
1823+
// Other texts
1824+
days: 'days',
1825+
hours: 'hours',
1826+
overtime: 'overtime',
1827+
overdue: 'overdue',
1828+
// ... More custom translations
1829+
},
1830+
"en-US": {......}
18281831
}
18291832
</script>
18301833
```

README.md

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,53 +1769,56 @@ const handleLanguageChange = (lang: 'zh-CN' | 'en-US') => {
17691769
17701770
<script setup lang="ts">
17711771
const customMessages = {
1772-
// 任务列表相关
1773-
name: '任务名称(自定义)',
1774-
startDate: '开始日期',
1775-
endDate: '结束日期',
1776-
duration: '工期',
1777-
progress: '完成度',
1778-
predecessor: '前置任务',
1779-
assignee: '负责人',
1780-
estimatedHours: '预估工时',
1781-
actualHours: '实际工时'
1782-
1783-
// 工具栏相关
1784-
addTask: '新建任务',
1785-
addMilestone: '新建里程碑',
1786-
today: '今天',
1787-
exportCsv: '导出 CSV',
1788-
exportPdf: '导出 PDF',
1789-
fullscreen: '全屏',
1790-
exitFullscreen: '退出全屏',
1791-
language: '语言',
1792-
theme: '主题',
1793-
expandAll: '全部展开',
1794-
collapseAll: '全部折叠'
1795-
1796-
// 内置任务编辑器相关
1797-
title: '任务详情',
1798-
titleEdit: '编辑任务',
1799-
titleNew: '新建任务',
1800-
name: '任务名称',
1801-
startDate: '开始日期',
1802-
endDate: '结束日期',
1803-
assignee: '负责人',
1804-
predecessor: '前置任务',
1805-
description: '描述',
1806-
estimatedHours: '预估工时',
1807-
actualHours: '实际工时',
1808-
progress: '进度',
1809-
save: '保存',
1810-
cancel: '取消',
1811-
delete: '删除'
1812-
1813-
// 其他文本
1814-
days: '天',
1815-
hours: '小时',
1816-
overtime: '超时',
1817-
overdue: '逾期',
1818-
// ... 更多自定义翻译
1772+
"zh-CN": {
1773+
// 任务列表相关
1774+
name: '任务名称(自定义)',
1775+
startDate: '开始日期',
1776+
endDate: '结束日期',
1777+
duration: '工期',
1778+
progress: '完成度',
1779+
predecessor: '前置任务',
1780+
assignee: '负责人',
1781+
estimatedHours: '预估工时',
1782+
actualHours: '实际工时'
1783+
1784+
// 工具栏相关
1785+
addTask: '新建任务',
1786+
addMilestone: '新建里程碑',
1787+
today: '今天',
1788+
exportCsv: '导出 CSV',
1789+
exportPdf: '导出 PDF',
1790+
fullscreen: '全屏',
1791+
exitFullscreen: '退出全屏',
1792+
language: '语言',
1793+
theme: '主题',
1794+
expandAll: '全部展开',
1795+
collapseAll: '全部折叠'
1796+
1797+
// 内置任务编辑器相关
1798+
title: '任务详情',
1799+
titleEdit: '编辑任务',
1800+
titleNew: '新建任务',
1801+
name: '任务名称',
1802+
startDate: '开始日期',
1803+
endDate: '结束日期',
1804+
assignee: '负责人',
1805+
predecessor: '前置任务',
1806+
description: '描述',
1807+
estimatedHours: '预估工时',
1808+
actualHours: '实际工时',
1809+
progress: '进度',
1810+
save: '保存',
1811+
cancel: '取消',
1812+
delete: '删除'
1813+
1814+
// 其他文本
1815+
days: '天',
1816+
hours: '小时',
1817+
overtime: '超时',
1818+
overdue: '逾期',
1819+
// ... 更多自定义翻译
1820+
},
1821+
"en-US": {......}
18191822
}
18201823
</script>
18211824
```

demo/version-history.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,25 @@
286286
"Defect fix: Fixed the issue of invalid column width configuration in TaskList",
287287
"<span style=\"font-weight: bold; color: #f00;\">Special thanks to @SHENGLONG749 for their valuable use and feedback</span>"
288288
]
289+
},
290+
{
291+
"version": "1.4.2-patch3",
292+
"date": "2025-11-13",
293+
"notes": [
294+
"新增:支持视图上下/左右拖拽",
295+
"性能优化:canvas绘制性能优化",
296+
"性能优化:拖拽视图性能优化,拖拽期间禁止重绘canvas",
297+
"性能优化:周视图月开始分隔线实现使用canvas替代dom",
298+
"性能优化:使用canvas替代svg links实现",
299+
"性能优化:路径缓存+防抖+shallowRef计算",
300+
"Added: Support for vertical/horizontal dragging of the view",
301+
"Performance Optimization: Canvas drawing performance optimization",
302+
"Performance Optimization: View dragging performance optimization, disabling canvas redraw during dragging",
303+
"Performance Optimization: Weekly view month start separator line implemented using canvas instead of DOM",
304+
"Performance Optimization: Using canvas instead of SVG links implementation",
305+
"Performance Optimization: Path caching + debounce + shallowRef calculation",
306+
"<span style=\"font-weight: bold; color: #f00;\">特别感谢 @qiuchengw的专业贡献</span>",
307+
"<span style=\"font-weight: bold; color: #f00;\">Special thanks to @qiuchengw for his professional contribution</span>"
308+
]
289309
}
290310
]

0 commit comments

Comments
 (0)