1.0.0 - init
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user