diff --git a/examples/sites/demos/pc/app/calendar-view/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/basic-usage-composition-api.vue new file mode 100644 index 0000000000..9c52975aa6 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/basic-usage-composition-api.vue @@ -0,0 +1,74 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-day-mark-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-day-mark-composition-api.vue new file mode 100644 index 0000000000..8f2af3c039 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-day-mark-composition-api.vue @@ -0,0 +1,22 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-disabled-day-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-disabled-day-composition-api.vue new file mode 100644 index 0000000000..f4dc6bf5e4 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-disabled-day-composition-api.vue @@ -0,0 +1,14 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-event-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-event-composition-api.vue new file mode 100644 index 0000000000..c79d6a7276 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-event-composition-api.vue @@ -0,0 +1,40 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-mode-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-mode-composition-api.vue new file mode 100644 index 0000000000..36668b0625 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-mode-composition-api.vue @@ -0,0 +1,11 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot-composition-api.vue new file mode 100644 index 0000000000..649eca5973 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot-composition-api.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range-composition-api.vue new file mode 100644 index 0000000000..ffb74e53d7 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range-composition-api.vue @@ -0,0 +1,75 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot-composition-api.vue new file mode 100644 index 0000000000..09ad9dc94d --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot-composition-api.vue @@ -0,0 +1,137 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/custom-calendar-toolbar-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/custom-calendar-toolbar-composition-api.vue new file mode 100644 index 0000000000..7264fddea3 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/custom-calendar-toolbar-composition-api.vue @@ -0,0 +1,11 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/custom-day-bg-color-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/custom-day-bg-color-composition-api.vue new file mode 100644 index 0000000000..75dec2bc13 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/custom-day-bg-color-composition-api.vue @@ -0,0 +1,18 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/custom-header-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/custom-header-composition-api.vue new file mode 100644 index 0000000000..616f1c59ae --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/custom-header-composition-api.vue @@ -0,0 +1,78 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/hide-mode-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/hide-mode-composition-api.vue new file mode 100644 index 0000000000..8907042843 --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/hide-mode-composition-api.vue @@ -0,0 +1,7 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/mode-combination-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/mode-combination-composition-api.vue new file mode 100644 index 0000000000..e35cc7c15b --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/mode-combination-composition-api.vue @@ -0,0 +1,7 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/multi-select-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/multi-select-composition-api.vue new file mode 100644 index 0000000000..44521d75dd --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/multi-select-composition-api.vue @@ -0,0 +1,23 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/set-working-day-composition-api.vue b/examples/sites/demos/pc/app/calendar-view/set-working-day-composition-api.vue new file mode 100644 index 0000000000..471b9af18e --- /dev/null +++ b/examples/sites/demos/pc/app/calendar-view/set-working-day-composition-api.vue @@ -0,0 +1,64 @@ + + + diff --git a/examples/sites/demos/pc/app/calendar-view/set-working-day.vue b/examples/sites/demos/pc/app/calendar-view/set-working-day.vue index cee409e974..5fab61d693 100644 --- a/examples/sites/demos/pc/app/calendar-view/set-working-day.vue +++ b/examples/sites/demos/pc/app/calendar-view/set-working-day.vue @@ -39,7 +39,6 @@ export default { return } this[type].push(...this.selectedDate) - this.$refs.calendar.$children[0].state.selectedDates = [] this.selectedDate = [] }, setDayBgColor(date) { diff --git a/examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js b/examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js index db2e829875..4ef18b60db 100644 --- a/examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js +++ b/examples/sites/demos/pc/app/calendar-view/webdoc/calendar-view.js @@ -15,9 +15,9 @@ export default { 'demoId': 'calendar-mode', 'name': { 'zh-CN': '显示模式', 'en-US': 'Display mode' }, 'desc': { - 'zh-CN': '

通过 mode 属性指定以年的形式显示,将展示当年的每个月份。可选值有 year、month。

\n', + 'zh-CN': '

通过 mode 属性指定以年的形式显示,将展示当年的每个月份。可选值有 month / timeline / schedule

\n', 'en-US': - '

The mode attribute specifies that each month of the current year is displayed. The options are year and month.

\n' + '

The mode attribute specifies that each month of the current year is displayed. The options are month / timeline / schedule.

\n' }, 'codeFiles': ['calendar-mode.vue'] }, @@ -49,7 +49,7 @@ export default { 'codeFiles': ['calendar-timeline-slot.vue'] }, { - 'demoId': 'calendar-timeline-rang', + 'demoId': 'calendar-timeline-range', 'name': { 'zh-CN': '时间线范围配置', 'en-US': '' }, 'desc': { 'zh-CN': '

通过dayTimes属性配置时间线模式下所展示的时间范围,默认为[8,18],可配范围[0,23]。

\n', @@ -137,7 +137,7 @@ export default { 'zh-CN': '配置时间线模式下所展示的时间范围,默认为[8,18],可配范围[0,23]。', 'en-US': '' }, - 'demoId': 'basic-usage' + 'demoId': 'calendar-timeline-range' }, { 'name': 'disabled', @@ -167,7 +167,7 @@ export default { 'zh-CN': '日历高度', 'en-US': '' }, - 'demoId': 'basic-usage' + 'demoId': '' }, { 'name': 'mark-color', @@ -275,7 +275,7 @@ export default { 'zh-CN': '新增日程按钮点击事件', 'en-US': '' }, - 'demoId': 'calendar-event' + 'demoId': 'calendar-schedule-slot' }, { 'name': 'next-week-click', @@ -299,7 +299,7 @@ export default { 'zh-CN': '选中日期改变事件', 'en-US': '' }, - 'demoId': 'calendar-event' + 'demoId': 'multi-select' }, { 'name': 'week-change',