From 8e8a90ca6a8bbf09ca601f0ffe5c827424d836b6 Mon Sep 17 00:00:00 2001 From: "LINING-PC\\lining" Date: Sun, 11 Jan 2026 22:22:15 +0800 Subject: [PATCH] v1.7.1 - lint updates --- README-EN.md | 2 + README.md | 2 + demo/TaskMoveConfirmDialog.vue | 1 - npm-demo/src/components/GanttTest.vue | 57 +- npm-webpack-demo/src/App.vue | 571 +++++++++--------- src/components/TaskList/TaskListColumn.vue | 24 +- .../TaskList/TaskListContextMenu.vue | 14 +- src/components/TaskList/taskRow/TaskRow.vue | 30 +- .../TaskList/taskRow/TaskRowNameContent.vue | 52 +- src/components/Timeline.vue | 2 +- .../Timeline/TaskBarContextMenu.vue | 14 +- src/index.ts | 2 +- tests/fixtures/columns.ts | 18 +- tests/fixtures/tasks.ts | 4 +- tests/helpers/mount.ts | 4 +- 15 files changed, 399 insertions(+), 398 deletions(-) diff --git a/README-EN.md b/README-EN.md index 574702a..edfd692 100644 --- a/README-EN.md +++ b/README-EN.md @@ -2130,6 +2130,8 @@ The GanttChart component exposes a series of methods through `defineExpose`, all | `setTheme` 1.7.1 | `mode: 'light' \| 'dark'` | `void` | Set theme mode | | `currentTheme` 1.7.1 | - | `'light' \| 'dark'` | Get current theme mode | | `setTimeScale` 1.7.1 | `scale: TimelineScale` | `void` | Set time scale (`'hour' \| 'day' \| 'week' \| 'month' \| 'quarter' \| 'year'`) | +| `zoomIn` 1.7.1 | - | `void` | zoom in time scale(`'year' -> 'quarter' -> 'month' -> 'week' -> 'day' -> 'hour'`) | +| `zoomOut` 1.7.1 | - | `void` | zoom out time scale(`'hour' -> 'day' -> 'week' -> 'month' -> 'quarter' -> 'year'`) | | `currentScale` 1.7.1 | - | `TimelineScale` | Get current time scale | | `toggleFullscreen` 1.7.1 | - | `void` | Toggle fullscreen state | | `enterFullscreen` 1.7.1 | - | `void` | Enter fullscreen mode | diff --git a/README.md b/README.md index e609c11..23ac34f 100644 --- a/README.md +++ b/README.md @@ -2121,6 +2121,8 @@ GanttChart 组件通过 `defineExpose` 暴露了一系列方法,允许父组 | `setTheme` 1.7.1 | `mode: 'light' \| 'dark'` | `void` | 设置主题模式 | | `currentTheme` 1.7.1 | - | `'light' \| 'dark'` | 获取当前主题模式 | | `setTimeScale` 1.7.1 | `scale: TimelineScale` | `void` | 设置时间刻度(`'hour' \| 'day' \| 'week' \| 'month' \| 'quarter' \| 'year'`) | +| `zoomIn` 1.7.1 | - | `void` | 缩小时间刻度(`'year' -> 'quarter' -> 'month' -> 'week' -> 'day' -> 'hour'`) | +| `zoomOut` 1.7.1 | - | `void` | 放大时间刻度(`'hour' -> 'day' -> 'week' -> 'month' -> 'quarter' -> 'year'`) | | `currentScale` 1.7.1 | - | `TimelineScale` | 获取当前时间刻度 | | `toggleFullscreen` 1.7.1 | - | `void` | 切换全屏状态 | | `enterFullscreen` 1.7.1 | - | `void` | 进入全屏模式 | diff --git a/demo/TaskMoveConfirmDialog.vue b/demo/TaskMoveConfirmDialog.vue index f48af0b..7808034 100644 --- a/demo/TaskMoveConfirmDialog.vue +++ b/demo/TaskMoveConfirmDialog.vue @@ -196,7 +196,6 @@ const handleCancel = () => { .btn-confirm:active { background: #3a8ee6; } -