chore: 移除 bun.yml 中的 SourceMap 上传步骤,优化构建流程;更新 components.d.ts,添加 Naive UI 组件类型定义;调整 ScheduleList.vue 中的空行格式

This commit is contained in:
Megghy
2025-10-05 15:17:26 +08:00
parent 45338ffe7d
commit 2966a49fc9
3 changed files with 12 additions and 9 deletions

6
src/components.d.ts vendored
View File

@@ -19,13 +19,19 @@ declare module 'vue' {
LiveInfoContainer: typeof import('./components/LiveInfoContainer.vue')['default']
MonacoEditorComponent: typeof import('./components/MonacoEditorComponent.vue')['default']
NAlert: typeof import('naive-ui')['NAlert']
NAvatar: typeof import('naive-ui')['NAvatar']
NButton: typeof import('naive-ui')['NButton']
NCard: typeof import('naive-ui')['NCard']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NEmpty: typeof import('naive-ui')['NEmpty']
NFlex: typeof import('naive-ui')['NFlex']
NFormItemGi: typeof import('naive-ui')['NFormItemGi']
NGridItem: typeof import('naive-ui')['NGridItem']
NIcon: typeof import('naive-ui')['NIcon']
NImage: typeof import('naive-ui')['NImage']
NPopconfirm: typeof import('naive-ui')['NPopconfirm']
NScrollbar: typeof import('naive-ui')['NScrollbar']
NSpace: typeof import('naive-ui')['NSpace']
NTag: typeof import('naive-ui')['NTag']
NText: typeof import('naive-ui')['NText']
NTime: typeof import('naive-ui')['NTime']

View File

@@ -65,7 +65,7 @@ function getDateFromWeek(year: number, week: number, dayOfWeek: number): Date {
const startOfWeekOne = new Date(januaryFourth)
const dayOfWeekJan4 = (januaryFourth.getDay() + 6) % 7
startOfWeekOne.setDate(januaryFourth.getDate() - dayOfWeekJan4)
const targetDate = new Date(startOfWeekOne)
targetDate.setDate(startOfWeekOne.getDate() + (week - 1) * 7 + dayOfWeek)
return targetDate
@@ -74,7 +74,7 @@ function getDateFromWeek(year: number, week: number, dayOfWeek: number): Date {
// 样式工具函数
function getDayHeaderStyle(year: number, week: number, dayIndex: number, primaryColor: string, primaryColorSuppl: string) {
const isToday = isCurrentDay(year, week, dayIndex)
return {
marginBottom: '6px',
padding: '4px 8px',
@@ -111,10 +111,10 @@ function getDayHeaderStyle(year: number, week: number, dayIndex: number, primary
:style="
isCurrentWeek(item.year, item.week)
? {
boxShadow: `0 0 0 1px ${themeVars.primaryColorSuppl}99 inset`,
borderRadius: '8px',
transition: 'box-shadow 0.2s ease',
}
boxShadow: `0 0 0 1px ${themeVars.primaryColorSuppl}99 inset`,
borderRadius: '8px',
transition: 'box-shadow 0.2s ease',
}
: undefined
"
>