From 6abbcdf023a1eb76bccd16d44e995dbdc9536640 Mon Sep 17 00:00:00 2001 From: You-Hw-Y <1664677472@qq.com> Date: Wed, 13 Nov 2024 19:15:03 -0800 Subject: [PATCH 1/2] fix(calendar-view): [calendar-view] Fix bug with invalid calendar height value --- examples/sites/demos/apis/calendar-view.js | 2 +- packages/theme/src/calendar-view/index.less | 1 + packages/vue/src/calendar-view/src/index.ts | 2 +- packages/vue/src/calendar-view/src/pc.vue | 10 +++++----- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/examples/sites/demos/apis/calendar-view.js b/examples/sites/demos/apis/calendar-view.js index bc1ee9bb1b..92be41da0e 100644 --- a/examples/sites/demos/apis/calendar-view.js +++ b/examples/sites/demos/apis/calendar-view.js @@ -43,7 +43,7 @@ export default { }, { name: 'height', - type: 'string', + type: 'string | number', defaultValue: '', desc: { 'zh-CN': '日历高度', diff --git a/packages/theme/src/calendar-view/index.less b/packages/theme/src/calendar-view/index.less index 729b7f54a7..5fbf10e591 100644 --- a/packages/theme/src/calendar-view/index.less +++ b/packages/theme/src/calendar-view/index.less @@ -23,6 +23,7 @@ padding-top: 32px; border: 1px solid #ebebeb; background-color: var(--tv-CalendarView-bg-color); + overflow: auto; &__header { display: flex; diff --git a/packages/vue/src/calendar-view/src/index.ts b/packages/vue/src/calendar-view/src/index.ts index 6f45d687af..802b10071f 100644 --- a/packages/vue/src/calendar-view/src/index.ts +++ b/packages/vue/src/calendar-view/src/index.ts @@ -66,7 +66,7 @@ export const calendarViewProps = { } }, height: { - type: String, + type: [String, Number], default: '' }, markColor: { diff --git a/packages/vue/src/calendar-view/src/pc.vue b/packages/vue/src/calendar-view/src/pc.vue index a471155caf..fa619b4db9 100644 --- a/packages/vue/src/calendar-view/src/pc.vue +++ b/packages/vue/src/calendar-view/src/pc.vue @@ -1,5 +1,5 @@