diff --git a/.gitignore b/.gitignore index bd6bd42..a8c4af4 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,5 @@ dist-ssr Thumbs.db ehthumbs.db Desktop.ini + +yarn.lock diff --git a/CHANGELOG.md b/CHANGELOG.md index f0695d7..6b07e74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.2-patch3] - 2025-11-13 + +### Added +- 支持视图上下/左右拖拽 +- Support for vertical/horizontal dragging of the view + +### Enhancement +- 性能优化:canvas绘制性能优化 +- 性能优化:拖拽视图性能优化,拖拽期间禁止重绘canvas +- 性能优化:周视图月开始分隔线实现使用canvas替代dom +- 性能优化:使用canvas替代svg links实现 +- 性能优化:路径缓存+防抖+shallowRef计算 +- Performance Optimization: Canvas drawing performance optimization +- Performance Optimization: View dragging performance optimization, disabling canvas redraw during dragging +- Performance Optimization: Weekly view month start separator line implemented using canvas instead of DOM +- Performance Optimization: Using canvas instead of SVG links implementation +- Performance Optimization: Path caching + debounce + shallowRef calculation + +## [1.4.2-patch1] - 2025-11-03 + +### Fixed +- 缺陷修复:更新父级任务后,再次更新子级任务是发生无限循环调用的问题修复 +- Defect fix: Fixed the issue of infinite loop calls when updating child tasks after updating the parent task + ## [1.4.2-patch2] - 2025-11-11 ### Fixed diff --git a/README-EN.md b/README-EN.md index f5438af..be593e2 100644 --- a/README-EN.md +++ b/README-EN.md @@ -1778,53 +1778,56 @@ Override or extend default translations via `localeMessages` prop: ``` diff --git a/README.md b/README.md index 085b0d4..ad6e7fb 100644 --- a/README.md +++ b/README.md @@ -1769,53 +1769,56 @@ const handleLanguageChange = (lang: 'zh-CN' | 'en-US') => { ``` diff --git a/demo/App.vue b/demo/App.vue index 981972a..f9c5fe9 100644 --- a/demo/App.vue +++ b/demo/App.vue @@ -910,7 +910,7 @@ function taskDebug(item: any) { .app-container { width: 100%; height: 100%; - padding: 20px; + padding: 10px; box-sizing: border-box; background: var(--gantt-bg-secondary, #f0f2f5); display: flex; @@ -922,7 +922,7 @@ function taskDebug(item: any) { background: var(--gantt-bg-primary, #ffffff); border: 1px solid var(--gantt-border-color, #e4e7ed); border-radius: 8px; - margin-bottom: 20px; + margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; overflow: hidden; @@ -1453,7 +1453,6 @@ function taskDebug(item: any) { display: flex; align-items: flex-start; justify-content: flex-start; - margin-bottom: 24px; } .license-info { diff --git a/demo/style.css b/demo/style.css index 9fe2dbe..8f20d57 100644 --- a/demo/style.css +++ b/demo/style.css @@ -26,7 +26,6 @@ body { margin: 0; min-width: 320px; height: 100vh; - padding: 30px; box-sizing: border-box; display: flex; align-items: center; diff --git a/demo/version-history.json b/demo/version-history.json index 07ad78f..ef93df1 100644 --- a/demo/version-history.json +++ b/demo/version-history.json @@ -286,5 +286,25 @@ "Defect fix: Fixed the issue of invalid column width configuration in TaskList", "Special thanks to @SHENGLONG749 for their valuable use and feedback" ] + }, + { + "version": "1.4.2-patch3", + "date": "2025-11-13", + "notes": [ + "新增:支持视图上下/左右拖拽", + "性能优化:canvas绘制性能优化", + "性能优化:拖拽视图性能优化,拖拽期间禁止重绘canvas", + "性能优化:周视图月开始分隔线实现使用canvas替代dom", + "性能优化:使用canvas替代svg links实现", + "性能优化:路径缓存+防抖+shallowRef计算", + "Added: Support for vertical/horizontal dragging of the view", + "Performance Optimization: Canvas drawing performance optimization", + "Performance Optimization: View dragging performance optimization, disabling canvas redraw during dragging", + "Performance Optimization: Weekly view month start separator line implemented using canvas instead of DOM", + "Performance Optimization: Using canvas instead of SVG links implementation", + "Performance Optimization: Path caching + debounce + shallowRef calculation", + "特别感谢 @qiuchengw的专业贡献", + "Special thanks to @qiuchengw for his professional contribution" + ] } ] diff --git a/npm-webpack-demo/src/App.vue b/npm-webpack-demo/src/App.vue index eb06e5c..6959968 100644 --- a/npm-webpack-demo/src/App.vue +++ b/npm-webpack-demo/src/App.vue @@ -1,90 +1,5 @@ - - + + diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index a989e5c..359b813 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -1,7 +1,8 @@