1.0.0 - init

This commit is contained in:
LINING-PC\lining
2025-06-30 12:57:22 +08:00
parent 18d291f415
commit 7a5b28a364
10 changed files with 147 additions and 32 deletions
+6 -2
View File
@@ -768,7 +768,9 @@ const handleTimelineScroll = (event: Event) => {
// 设置滚动状态
isScrolling.value = true
target.classList.add('scrolling')
if (target && 'classList' in target && typeof target.classList.add === 'function') {
target.classList.add('scrolling')
}
// 清除之前的定时器
if (scrollTimeout) {
@@ -778,7 +780,9 @@ const handleTimelineScroll = (event: Event) => {
// 500ms后移除滚动状态
scrollTimeout = setTimeout(() => {
isScrolling.value = false
target.classList.remove('scrolling')
if (target && 'classList' in target && typeof target.classList.remove === 'function') {
target.classList.remove('scrolling')
}
}, 500)
}
+2
View File
@@ -5,8 +5,10 @@ export { default as Timeline } from './components/Timeline.vue'
export { default as TaskBar } from './components/TaskBar.vue'
export { default as TaskDrawer } from './components/TaskDrawer.vue'
export { default as MilestonePoint } from './components/MilestonePoint.vue'
export { default as MilestoneDialog } from './components/MilestoneDialog.vue'
export { default as TaskRow } from './components/TaskRow.vue'
export type { Task } from './models/classes/Task.ts' // 导出Task类型
export { useMessage } from './composables/useMessage.ts' // 导出useMessage组合式函数
// 导出样式文件
import './styles/theme-variables.css'