From 5be8e6327a8e7bed50d737404dbedf25439b65fe Mon Sep 17 00:00:00 2001 From: dufu1991 Date: Fri, 27 Dec 2024 15:54:37 +0800 Subject: [PATCH] fix(vue-renderless): [calendar, calendar-view, card, carousel, cascader, cascader-panel, chart] fix site: Optimize site documentation typesetting --- .../basic-usage-composition-api.vue | 18 +++++------ .../pc/app/calendar-view/basic-usage.spec.ts | 6 ++-- .../pc/app/calendar-view/basic-usage.vue | 18 +++++------ .../calendar-view/calendar-day-mark.spec.ts | 10 +++---- .../calendar-event-composition-api.vue | 6 ++-- .../app/calendar-view/calendar-event.spec.ts | 2 +- .../pc/app/calendar-view/calendar-event.vue | 6 ++-- ...calendar-schedule-slot-composition-api.vue | 18 +++++------ .../calendar-schedule-slot.spec.ts | 4 +-- .../calendar-view/calendar-schedule-slot.vue | 18 +++++------ ...alendar-timeline-range-composition-api.vue | 18 +++++------ .../calendar-view/calendar-timeline-range.vue | 18 +++++------ ...calendar-timeline-slot-composition-api.vue | 30 +++++++++---------- .../calendar-timeline-slot.spec.ts | 10 +++---- .../calendar-view/calendar-timeline-slot.vue | 30 +++++++++---------- .../custom-header-composition-api.vue | 18 +++++------ .../pc/app/calendar-view/custom-header.vue | 18 +++++------ .../app/calendar-view/webdoc/calendar-view.js | 6 ++-- .../demos/pc/app/calendar/basic-usage.spec.ts | 4 +-- .../pc/app/calendar/calendar-mode.spec.ts | 4 +-- .../custom-day-cell-composition-api.vue | 4 +-- .../demos/pc/app/calendar/custom-day-cell.vue | 4 +-- .../dynamic-add-schedule-composition-api.vue | 4 +-- .../app/calendar/dynamic-add-schedule.spec.ts | 4 +-- .../pc/app/calendar/dynamic-add-schedule.vue | 4 +-- .../app/card/card-select-composition-api.vue | 6 ++-- .../sites/demos/pc/app/card/card-select.vue | 6 ++-- .../sites/demos/pc/app/card/webdoc/card.js | 4 +-- .../demos/pc/app/carousel/autoplay.spec.ts | 2 +- .../pc/app/carousel/up-down-carousel.spec.ts | 6 ++-- .../demos/pc/app/carousel/webdoc/carousel.js | 2 +- .../cascader-panel/change-composition-api.vue | 2 +- .../pc/app/cascader-panel/change.spec.ts | 2 +- .../demos/pc/app/cascader-panel/change.vue | 2 +- .../custom-option-content.spec.ts | 6 ++-- .../cascader/auto-load-checkStrictly.spec.ts | 6 ++-- .../demos/pc/app/cascader/auto-load.spec.ts | 4 +-- .../demos/pc/app/cascader/clearable.spec.ts | 2 +- .../pc/app/cascader/default-multiple.spec.ts | 2 +- .../app/cascader/events-composition-api.vue | 4 +-- .../demos/pc/app/cascader/events.spec.ts | 2 +- .../sites/demos/pc/app/cascader/events.vue | 4 +-- .../pc/app/cascader/slot-composition-api.vue | 2 +- examples/sites/demos/pc/app/cascader/slot.vue | 2 +- .../demos/pc/app/cascader/webdoc/cascader.js | 10 +++---- .../app/chart/amap/base-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/amap/base.vue | 2 +- .../app/chart/bar/demo6-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/bar/demo6.vue | 2 +- .../pc/app/chart/base-composition-api.vue | 2 +- examples/sites/demos/pc/app/chart/base.vue | 2 +- .../app/chart/bmap/base-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/bmap/base.vue | 2 +- examples/sites/demos/pc/app/chart/fixtures.js | 4 +-- .../chart/funnel/demo7-composition-api.vue | 4 +-- .../sites/demos/pc/app/chart/funnel/demo7.vue | 4 +-- .../app/chart/gauge/demo3-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/gauge/demo3.vue | 2 +- .../app/chart/gauge/demo5-composition-api.vue | 4 +-- .../sites/demos/pc/app/chart/gauge/demo5.vue | 4 +-- .../app/chart/graph/base-composition-api.vue | 28 ++++++++--------- .../sites/demos/pc/app/chart/graph/base.vue | 28 ++++++++--------- .../chart/heatmap/base-composition-api.vue | 4 +-- .../sites/demos/pc/app/chart/heatmap/base.vue | 4 +-- .../chart/heatmap/demo2-composition-api.vue | 14 ++++----- .../demos/pc/app/chart/heatmap/demo2.vue | 14 ++++----- .../chart/heatmap/demo3-composition-api.vue | 6 ++-- .../demos/pc/app/chart/heatmap/demo3.vue | 6 ++-- .../chart/histogram/demo3-composition-api.vue | 2 +- .../demos/pc/app/chart/histogram/demo3.vue | 2 +- .../app/chart/line/demo2-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/line/demo2.vue | 2 +- .../app/chart/line/demo3-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/line/demo3.vue | 2 +- .../app/chart/line/demo6-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/line/demo6.vue | 2 +- .../chart/liquidfill/base-composition-api.vue | 2 +- .../demos/pc/app/chart/liquidfill/base.vue | 2 +- .../app/chart/pie/demo6-composition-api.vue | 20 ++++++------- .../sites/demos/pc/app/chart/pie/demo6.vue | 20 ++++++------- .../app/chart/pie/demo7-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/pie/demo7.vue | 2 +- .../chart/process/base-composition-api.vue | 4 +-- .../sites/demos/pc/app/chart/process/base.vue | 4 +-- .../chart/process/demo2-composition-api.vue | 4 +-- .../demos/pc/app/chart/process/demo2.vue | 4 +-- .../chart/process/demo3-composition-api.vue | 4 +-- .../demos/pc/app/chart/process/demo3.vue | 4 +-- .../chart/props/demo10-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/props/demo10.vue | 2 +- .../chart/question/demo2-composition-api.vue | 12 ++++---- .../demos/pc/app/chart/question/demo2.vue | 12 ++++---- .../chart/question/demo3-composition-api.vue | 12 ++++---- .../demos/pc/app/chart/question/demo3.vue | 12 ++++---- .../chart/question/demo4-composition-api.vue | 26 ++++++++-------- .../demos/pc/app/chart/question/demo4.vue | 26 ++++++++-------- .../chart/question/demo5-composition-api.vue | 4 +-- .../demos/pc/app/chart/question/demo5.vue | 4 +-- .../app/chart/radar/base-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/radar/base.vue | 2 +- .../app/chart/radar/demo2-composition-api.vue | 2 +- .../sites/demos/pc/app/chart/radar/demo2.vue | 2 +- .../app/chart/sankey/base-composition-api.vue | 30 +++++++++---------- .../sites/demos/pc/app/chart/sankey/base.vue | 30 +++++++++---------- .../chart/sankey/demo2-composition-api.vue | 24 +++++++-------- .../sites/demos/pc/app/chart/sankey/demo2.vue | 24 +++++++-------- .../chart/scatter/base-composition-api.vue | 4 +-- .../sites/demos/pc/app/chart/scatter/base.vue | 4 +-- .../chart/scatter/demo2-composition-api.vue | 4 +-- .../demos/pc/app/chart/scatter/demo2.vue | 4 +-- .../app/chart/tree/base-composition-api.vue | 10 +++---- .../sites/demos/pc/app/chart/tree/base.vue | 10 +++---- .../app/chart/tree/demo2-composition-api.vue | 10 +++---- .../sites/demos/pc/app/chart/tree/demo2.vue | 10 +++---- .../app/chart/tree/demo3-composition-api.vue | 10 +++---- .../sites/demos/pc/app/chart/tree/demo3.vue | 10 +++---- .../app/chart/tree/demo4-composition-api.vue | 10 +++---- .../sites/demos/pc/app/chart/tree/demo4.vue | 10 +++---- .../app/chart/tree/demo5-composition-api.vue | 10 +++---- .../sites/demos/pc/app/chart/tree/demo5.vue | 10 +++---- .../chart/waterfall/base-composition-api.vue | 2 +- .../demos/pc/app/chart/waterfall/base.vue | 2 +- .../chart/waterfall/demo3-composition-api.vue | 2 +- .../demos/pc/app/chart/waterfall/demo3.vue | 2 +- .../chart/waterfall/demo4-composition-api.vue | 4 +-- .../demos/pc/app/chart/waterfall/demo4.vue | 4 +-- .../pc/app/chart/webdoc/chart-autonavi-map.js | 2 +- .../pc/app/chart/webdoc/chart-baidu-map.js | 2 +- .../demos/pc/app/chart/webdoc/chart-bar.js | 14 ++++----- .../pc/app/chart/webdoc/chart-boxplot.js | 6 ++-- .../demos/pc/app/chart/webdoc/chart-candle.js | 22 +++++++------- .../pc/app/chart/webdoc/chart-docs.cn.md | 6 ++-- .../pc/app/chart/webdoc/chart-docs.json.cn.md | 6 ++-- .../demos/pc/app/chart/webdoc/chart-funnel.js | 14 ++++----- .../demos/pc/app/chart/webdoc/chart-gauge.js | 2 +- .../pc/app/chart/webdoc/chart-heatmap.js | 16 +++++----- .../pc/app/chart/webdoc/chart-histogram.js | 16 +++++----- .../demos/pc/app/chart/webdoc/chart-line.js | 16 +++++----- .../pc/app/chart/webdoc/chart-liquidfill.js | 24 +++++++-------- .../demos/pc/app/chart/webdoc/chart-map.js | 16 +++++----- .../demos/pc/app/chart/webdoc/chart-pie.js | 8 ++--- .../pc/app/chart/webdoc/chart-question.js | 10 +++---- .../demos/pc/app/chart/webdoc/chart-radar.js | 4 +-- .../demos/pc/app/chart/webdoc/chart-ring.js | 12 ++++---- .../demos/pc/app/chart/webdoc/chart-sankey.js | 4 +-- .../pc/app/chart/webdoc/chart-scatter.js | 12 ++++---- .../pc/app/chart/webdoc/chart-waterfall.js | 4 +-- .../pc/app/chart/webdoc/chart-wordcloud.js | 4 +-- .../chart/wordcloud/demo2-composition-api.vue | 8 ++--- .../demos/pc/app/chart/wordcloud/demo2.vue | 8 ++--- .../chart/wordcloud/demo3-composition-api.vue | 4 +-- .../demos/pc/app/chart/wordcloud/demo3.vue | 4 +-- .../chart/wordcloud/demo4-composition-api.vue | 6 ++-- .../demos/pc/app/chart/wordcloud/demo4.vue | 6 ++-- 154 files changed, 603 insertions(+), 603 deletions(-) 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 index da15d92f98..866485d36e 100644 --- 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 @@ -8,63 +8,63 @@ import { TinyCalendarView } from '@opentiny/vue' const eventslist = ref([ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', diff --git a/examples/sites/demos/pc/app/calendar-view/basic-usage.spec.ts b/examples/sites/demos/pc/app/calendar-view/basic-usage.spec.ts index 56a6411425..3b49363be6 100644 --- a/examples/sites/demos/pc/app/calendar-view/basic-usage.spec.ts +++ b/examples/sites/demos/pc/app/calendar-view/basic-usage.spec.ts @@ -4,14 +4,14 @@ test('基本用法', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('calendar-view#basic-usage') const demoPage = page.locator('#basic-usage') - const fixWeek2 = page.getByText('前端周会2').first() - const popWeek2 = page.locator('.title').filter({ hasText: '前端周会2' }) + const fixWeek2 = page.getByText('前端周会 2').first() + const popWeek2 = page.locator('.title').filter({ hasText: '前端周会 2' }) // 校验固定内容 await expect(demoPage).toHaveText(/15前端周会2前端周会2-1前端周会1/) await expect(demoPage).toHaveText(/16前端周会4前端周会3/) await expect(demoPage).toHaveText(/25节假日25-28前端周会5/) await expect(demoPage.locator('.events-end').first()).toHaveClass(/bg-green/) - // 校验hover弹出框 + // 校验 hover 弹出框 await fixWeek2.hover() await page.waitForTimeout(200) await expect(popWeek2).toBeVisible() diff --git a/examples/sites/demos/pc/app/calendar-view/basic-usage.vue b/examples/sites/demos/pc/app/calendar-view/basic-usage.vue index 2bb22d4573..a911485d9b 100644 --- a/examples/sites/demos/pc/app/calendar-view/basic-usage.vue +++ b/examples/sites/demos/pc/app/calendar-view/basic-usage.vue @@ -13,63 +13,63 @@ export default { return { eventslist: [ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-day-mark.spec.ts b/examples/sites/demos/pc/app/calendar-view/calendar-day-mark.spec.ts index 82acb2754e..05f609470d 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-day-mark.spec.ts +++ b/examples/sites/demos/pc/app/calendar-view/calendar-day-mark.spec.ts @@ -4,12 +4,12 @@ test('日期标记', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('calendar-view#calendar-day-mark') const listitem = page.getByRole('listitem') - const day30 = listitem.filter({ hasText: '30周日' }).locator('span').nth(2) - const day1 = listitem.filter({ hasText: '1周一' }).locator('span').nth(2) - const day6 = listitem.filter({ hasText: '6周六' }).locator('span').nth(2) - const day7 = page.getByText('7周日') + const day30 = listitem.filter({ hasText: '30 周日' }).locator('span').nth(2) + const day1 = listitem.filter({ hasText: '1 周一' }).locator('span').nth(2) + const day6 = listitem.filter({ hasText: '6 周六' }).locator('span').nth(2) + const day7 = page.getByText('7 周日') const rightSvg = page.locator('.header-right > .tiny-svg') - const day8 = listitem.filter({ hasText: '8周一' }).locator('span').nth(2) + const day8 = listitem.filter({ hasText: '8 周一' }).locator('span').nth(2) await expect(day30).toBeVisible() await expect(day1).toHaveClass(/mark/) await expect(day1).toHaveClass(/mark-red/) 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 index 206459841b..4db10a917d 100644 --- 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 @@ -32,14 +32,14 @@ const weekChange = (weekDate) => { } const yearChange = (newVal, oldVal) => { - TinyModal.message({ message: `年改变事件: ${newVal}年, ${oldVal}年`, status: 'info' }) + TinyModal.message({ message: `年改变事件:${newVal}年,${oldVal}年`, status: 'info' }) } const monthChange = (newVal, oldVal) => { - TinyModal.message({ message: `月改变事件: ${newVal}月, ${oldVal}月`, status: 'info' }) + TinyModal.message({ message: `月改变事件:${newVal}月,${oldVal}月`, status: 'info' }) } const modeChange = (val) => { - TinyModal.message({ message: `模式切换事件: ${val}`, status: 'info' }) + TinyModal.message({ message: `模式切换事件:${val}`, status: 'info' }) } diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-event.spec.ts b/examples/sites/demos/pc/app/calendar-view/calendar-event.spec.ts index cee485b0f9..50e57d1d30 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-event.spec.ts +++ b/examples/sites/demos/pc/app/calendar-view/calendar-event.spec.ts @@ -10,7 +10,7 @@ test('事件', async ({ page }) => { const leftSvg = page.locator('.header-left > .tiny-svg') const rightSvg = page.locator('.header-right > .tiny-svg') const mode = page.locator('label').nth(2) - const modalVal = page.getByText('模式切换事件: schedule') + const modalVal = page.getByText('模式切换事件:schedule') await timeBtn.click() await page.waitForTimeout(100) await leftYear.click() diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-event.vue b/examples/sites/demos/pc/app/calendar-view/calendar-event.vue index e5b28291af..c2d6d34fe9 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-event.vue +++ b/examples/sites/demos/pc/app/calendar-view/calendar-event.vue @@ -36,13 +36,13 @@ export default { TinyModal.message({ message: `周改变事件: ${weekDate[0].value}`, status: 'info' }) }, yearChange(newVal, oldVal) { - TinyModal.message({ message: `年改变事件: ${newVal}年, ${oldVal}年`, status: 'info' }) + TinyModal.message({ message: `年改变事件:${newVal}年,${oldVal}年`, status: 'info' }) }, monthChange(newVal, oldVal) { - TinyModal.message({ message: `月改变事件: ${newVal}月, ${oldVal}月`, status: 'info' }) + TinyModal.message({ message: `月改变事件:${newVal}月,${oldVal}月`, status: 'info' }) }, modeChange(val) { - TinyModal.message({ message: `模式切换事件: ${val}`, status: 'info' }) + TinyModal.message({ message: `模式切换事件:${val}`, status: 'info' }) } } } 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 index 44b3b5c3ad..3de97beaf5 100644 --- 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 @@ -29,63 +29,63 @@ import { TinyCalendarView } from '@opentiny/vue' const eventslist = ref([ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.spec.ts b/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.spec.ts index c800a64dd4..68e5a6f834 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.spec.ts +++ b/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.spec.ts @@ -4,9 +4,9 @@ test('日程模式插槽', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('calendar-view#calendar-schedule-slot') const solt1 = page.locator('.new-schedule').first() - const soltData1 = page.getByText('新增事件2023-4-30') + const soltData1 = page.getByText('新增事件 2023-4-30') const solt5 = page.locator('li:nth-child(5) > .new-schedule') - const soltData5 = page.getByText('新增事件2023-5-4') + const soltData5 = page.getByText('新增事件 2023-5-4') await expect(solt1).toBeVisible() await page.waitForTimeout(200) await solt1.click() diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.vue b/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.vue index 6f3160046b..36c6e5cb73 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.vue +++ b/examples/sites/demos/pc/app/calendar-view/calendar-schedule-slot.vue @@ -34,63 +34,63 @@ export default { return { eventslist: [ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', 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 index 960e96c013..685aa4d35e 100644 --- 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 @@ -9,63 +9,63 @@ import { TinyCalendarView } from '@opentiny/vue' const eventslist = ref([ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range.vue b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range.vue index 7414cb2eeb..b5f823c0d1 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range.vue +++ b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-range.vue @@ -14,63 +14,63 @@ export default { return { eventslist: [ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', 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 index c014a8bf83..c4c298252d 100644 --- 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 @@ -29,105 +29,105 @@ import { TinyCalendarView } from '@opentiny/vue' const eventslist = ref([ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会6-1', + title: '前端周会 6-1', start: '2023-05-26 12:00:00', end: '2023-05-26 13:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会8', + title: '前端周会 8', start: '2023-06-26 8:00:00', end: '2023-06-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会9', + title: '前端周会 9', start: '2023-07-26 8:00:00', end: '2023-07-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会10', + title: '前端周会 10', start: '2023-08-26 8:00:00', end: '2023-08-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会11', + title: '前端周会 11', start: '2023-09-26 8:00:00', end: '2023-09-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会12', + title: '前端周会 12', start: '2023-10-26 8:00:00', end: '2023-10-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.spec.ts b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.spec.ts index b87a5ebae8..e131098de9 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.spec.ts +++ b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.spec.ts @@ -4,16 +4,16 @@ test('时间线插槽', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('calendar-view#calendar-timeline-slot') const demoPage = page.locator('#calendar-timeline-slot') - const fixWeek2 = page.getByText('前端周会2').first() - const popWeek2 = page.locator('.title').filter({ hasText: '前端周会2' }) - const fixWeek = page.locator('#calendar-timeline-slot').getByText('节假日25-28') - const popWeek = page.locator('.title').filter({ hasText: '节假日25-28' }) + const fixWeek2 = page.getByText('前端周会 2').first() + const popWeek2 = page.locator('.title').filter({ hasText: '前端周会 2' }) + const fixWeek = page.locator('#calendar-timeline-slot').getByText('节假日 25-28') + const popWeek = page.locator('.title').filter({ hasText: '节假日 25-28' }) // 校验固定内容 await expect(demoPage).toHaveText(/15前端周会2前端周会2-1前端周会1/) await expect(demoPage).toHaveText(/16前端周会4前端周会3/) await expect(demoPage).toHaveText(/25节假日25-28前端周会5/) await expect(demoPage.locator('.events-end').first()).toHaveClass(/bg-green/) - // 校验hover弹出框 + // 校验 hover 弹出框 await fixWeek2.hover() await page.waitForTimeout(100) await expect(popWeek2).toBeVisible() diff --git a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.vue b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.vue index 52c036fe47..44ab7cc5b4 100644 --- a/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.vue +++ b/examples/sites/demos/pc/app/calendar-view/calendar-timeline-slot.vue @@ -34,105 +34,105 @@ export default { return { eventslist: [ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:30:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'red' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'yellow' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'purple' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会6-1', + title: '前端周会 6-1', start: '2023-05-26 12:00:00', end: '2023-05-26 13:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'cyan' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'green' }, { - title: '前端周会8', + title: '前端周会 8', start: '2023-06-26 8:00:00', end: '2023-06-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会9', + title: '前端周会 9', start: '2023-07-26 8:00:00', end: '2023-07-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会10', + title: '前端周会 10', start: '2023-08-26 8:00:00', end: '2023-08-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会11', + title: '前端周会 11', start: '2023-09-26 8:00:00', end: '2023-09-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会12', + title: '前端周会 12', start: '2023-10-26 8:00:00', end: '2023-10-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', 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 index d583f8f081..c9d96c75bf 100644 --- 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 @@ -12,63 +12,63 @@ import { TinyCalendarView } from '@opentiny/vue' const eventslist = ref([ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:00:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', diff --git a/examples/sites/demos/pc/app/calendar-view/custom-header.vue b/examples/sites/demos/pc/app/calendar-view/custom-header.vue index b2d3c6d74c..099cb3ebd4 100644 --- a/examples/sites/demos/pc/app/calendar-view/custom-header.vue +++ b/examples/sites/demos/pc/app/calendar-view/custom-header.vue @@ -17,63 +17,63 @@ export default { return { eventslist: [ { - title: '前端周会1', + title: '前端周会 1', start: '2023-05-15 8:00:00', end: '2023-05-15 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2', + title: '前端周会 2', start: '2023-05-15 10:00:00', end: '2023-05-15 12:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会2-1', + title: '前端周会 2-1', start: '2023-05-15 13:00:00', end: '2023-05-15 15:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会3', + title: '前端周会 3', start: '2023-05-16 9:00:00', end: '2023-05-16 10:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会4', + title: '前端周会 4', start: '2023-05-16 11:00:00', end: '2023-05-16 14:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会5', + title: '前端周会 5', start: '2023-05-25 8:00:00', end: '2023-05-25 9:00:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会6', + title: '前端周会 6', start: '2023-05-26 8:00:00', end: '2023-05-26 11:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '前端周会7', + title: '前端周会 7', start: '2023-05-27 8:30:00', end: '2023-05-27 9:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', theme: 'blue' }, { - title: '节假日25-28', + title: '节假日 25-28', start: '2023-05-25 10:30:00', end: '2023-05-28 03:30:00', content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注', 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 76a25913ab..ec29f0f44b 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 @@ -73,7 +73,7 @@ export default { 'en-US': 'Timeline Range Configuration' }, desc: { - 'zh-CN': '

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

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

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

\n', 'en-US': '

Use the dayTimes attribute to set the time range displayed in timeline mode. The default value is [8,18], and the value range is [0,23].

\n' }, @@ -99,7 +99,7 @@ export default { }, desc: { 'zh-CN': - '

通过showMark回调函数来标记某些日期,markColor属性设置标记的颜色,此功能只在时间线模式和日程模式生效。markColor可选颜色同 theme

\n', + '

通过 showMark 回调函数来标记某些日期,markColor 属性设置标记的颜色,此功能只在时间线模式和日程模式生效。markColor 可选颜色同 theme

\n', 'en-US': '

Use the showMark callback function to mark some dates. The markColor attribute is used to set the mark color. This function takes effect only in timeline mode and agenda mode. markColor Optional Color Same as theme

\n' }, @@ -137,7 +137,7 @@ export default { }, desc: { 'zh-CN': - '

自定义日期单元格背景色。

\n

目前只支持预置的颜色,可选颜色blue、green、red、yellow、purple、cyan、grey

\n', + '

自定义日期单元格背景色。

\n

目前只支持预置的颜色,可选颜色 blue、green、red、yellow、purple、cyan、grey

\n', 'en-US': '

Customize the background color of the date cell.

\n

Currently, only preset colors are supported. The options are blue, green, red, yellow, purple, cyan, and grey.

' }, diff --git a/examples/sites/demos/pc/app/calendar/basic-usage.spec.ts b/examples/sites/demos/pc/app/calendar/basic-usage.spec.ts index d1c8ba9c67..9df1b5022e 100644 --- a/examples/sites/demos/pc/app/calendar/basic-usage.spec.ts +++ b/examples/sites/demos/pc/app/calendar/basic-usage.spec.ts @@ -11,10 +11,10 @@ test('基本用法', async ({ page }) => { // 校验日期,查看页面显示是否是月 await pcDemo.getByRole('listitem').filter({ hasText: '月' }).nth(2).click() await expect(pcDemo.locator('.tiny-calendar > div').last()).toHaveClass(/month/) - // 校验日期选择,选中的样式有selected + // 校验日期选择,选中的样式有 selected await selectedDay.click() await expect(selectedDay).toHaveClass(/selected/) - // 校验今天按钮,选中的样式有selected today + // 校验今天按钮,选中的样式有 selected today await pcDemo.getByRole('button', { name: '今天' }).click() await expect(today).toHaveClass(/selected/) diff --git a/examples/sites/demos/pc/app/calendar/calendar-mode.spec.ts b/examples/sites/demos/pc/app/calendar/calendar-mode.spec.ts index 6ac16cf53e..30dc47aa36 100644 --- a/examples/sites/demos/pc/app/calendar/calendar-mode.spec.ts +++ b/examples/sites/demos/pc/app/calendar/calendar-mode.spec.ts @@ -11,10 +11,10 @@ test('显示模式', async ({ page }) => { // 校验日期,查看页面显示是否是月 await pcDemo.getByRole('listitem').filter({ hasText: '月' }).nth(2).click() await expect(pcDemo.locator('.tiny-calendar > div').last()).toHaveClass(/month/) - // 校验日期选择,选中的样式有selected + // 校验日期选择,选中的样式有 selected await selectedDay.click() await expect(selectedDay).toHaveClass(/selected/) - // 校验今天按钮,选中的样式有selected today + // 校验今天按钮,选中的样式有 selected today await pcDemo.getByRole('button', { name: '今天' }).click() await expect(today).toHaveClass(/selected/) diff --git a/examples/sites/demos/pc/app/calendar/custom-day-cell-composition-api.vue b/examples/sites/demos/pc/app/calendar/custom-day-cell-composition-api.vue index dadd2b0cd7..2d6c260164 100644 --- a/examples/sites/demos/pc/app/calendar/custom-day-cell-composition-api.vue +++ b/examples/sites/demos/pc/app/calendar/custom-day-cell-composition-api.vue @@ -19,8 +19,8 @@ const eventslist = ref([ }, { time: 1567651320829, - title: '通知事项A', - content: '请注意该通知事项A', + title: '通知事项 A', + content: '请注意该通知事项 A', type: 'info' }, { diff --git a/examples/sites/demos/pc/app/calendar/custom-day-cell.vue b/examples/sites/demos/pc/app/calendar/custom-day-cell.vue index ce855ad287..69cbf517b9 100644 --- a/examples/sites/demos/pc/app/calendar/custom-day-cell.vue +++ b/examples/sites/demos/pc/app/calendar/custom-day-cell.vue @@ -24,8 +24,8 @@ export default { }, { time: 1567651320829, - title: '通知事项A', - content: '请注意该通知事项A', + title: '通知事项 A', + content: '请注意该通知事项 A', type: 'info' }, { diff --git a/examples/sites/demos/pc/app/calendar/dynamic-add-schedule-composition-api.vue b/examples/sites/demos/pc/app/calendar/dynamic-add-schedule-composition-api.vue index a2717f4033..60c257712f 100644 --- a/examples/sites/demos/pc/app/calendar/dynamic-add-schedule-composition-api.vue +++ b/examples/sites/demos/pc/app/calendar/dynamic-add-schedule-composition-api.vue @@ -15,8 +15,8 @@ const eventslist = ref([ }, { time: 1567651320829, - title: '通知事项A', - content: '请注意该通知事项A', + title: '通知事项 A', + content: '请注意该通知事项 A', type: 'info' }, { diff --git a/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.spec.ts b/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.spec.ts index 65336c8f87..055865459e 100644 --- a/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.spec.ts +++ b/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.spec.ts @@ -4,8 +4,8 @@ test('添加日程事件', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('calendar#dynamic-add-schedule') - const selectedDay4 = page.getByText('通知事项通知事项A', { exact: true }) - const dayFun4 = page.locator('.tiny-calendar__tip-content').filter({ hasText: '请注意该通知事项A' }) + const selectedDay4 = page.getByText('通知事项通知事项 A', { exact: true }) + const dayFun4 = page.locator('.tiny-calendar__tip-content').filter({ hasText: '请注意该通知事项 A' }) await selectedDay4.hover() await page.waitForTimeout(200) diff --git a/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.vue b/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.vue index 919fd9b35a..e13dd15749 100644 --- a/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.vue +++ b/examples/sites/demos/pc/app/calendar/dynamic-add-schedule.vue @@ -20,8 +20,8 @@ export default { }, { time: 1567651320829, - title: '通知事项A', - content: '请注意该通知事项A', + title: '通知事项 A', + content: '请注意该通知事项 A', type: 'info' }, { diff --git a/examples/sites/demos/pc/app/card/card-select-composition-api.vue b/examples/sites/demos/pc/app/card/card-select-composition-api.vue index db91542c50..e47da703f0 100644 --- a/examples/sites/demos/pc/app/card/card-select-composition-api.vue +++ b/examples/sites/demos/pc/app/card/card-select-composition-api.vue @@ -1,6 +1,6 @@