From b1e5e77394d9bfd22c52b29b8b83163e5dc5ab61 Mon Sep 17 00:00:00 2001 From: dufu1991 <24769077+dufu1991@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:21:58 +0800 Subject: [PATCH] fix(vue-renderless): [breadcrumb, bulletin-board, button, button-group,calendar, calendar-view, card, carousel, cascader, cascader-panel, chart,checkbox, collapse, color-picker, color-select-panel,company,config-provider,container,crop,currency,date-picker,dept,dialog-box,dialog-select,directives,divider,drawer,drop-roles,drop-times,dropdown,espace,fall-menu,file-upload,filter-panel,float-button,floatbar,flowchart,fluent-editor,form,fullscreen] fix site: Optimize site documentation typesetting (#2709) * feat(site):Optimize the typography of CJK characters, mix Chinese and English punctuation, and avoid excessive use of spaces for all Chinese text and comments within the site. * feat(site):Optimize the typography of CJK characters, mix Chinese and English punctuation, and avoid excessive use of spaces for all Chinese text and comments within the site. * fix(vue-renderless): [amount, anchor, area, autocomplete] fix site: Optimize site documentation typesetting * fix(vue-renderless): [base-select] fix site: Optimize site documentation typesetting * fix(vue-renderless): [base-select] fix site: Optimize site documentation typesetting * fix(vue-renderless): [base-select] fix site: Optimize site documentation typesetting * fix(vue-renderless): [breadcrumb, bulletin-board, button, button-group] fix site: Optimize site documentation typesetting * fix(vue-renderless): [calendar, calendar-view, card, carousel, cascader, cascader-panel, chart] fix site: Optimize site documentation typesetting * fix(vue-renderless): [checkbox, collapse, color-picker, color-select-panel,company,config-provider,container,crop,currency] fix site: Optimize site documentation typesetting * fix(vue-renderless): [breadcrumb, bulletin-board, button, button-group] fix site: Optimize site documentation typesetting * fix(vue-renderless): [date-picker,dept,dialog-box,dialog-select,directives,divider,drawer,drop-roles,drop-times,dropdown] fix site: Optimize site documentation typesetting * fix(vue-renderless): [espace,fall-menu,file-upload,filter-panel,float-button,floatbar,flowchart,fluent-editor,form,fullscreen] fix site: Optimize site documentation typesetting --- .../demos/pc/app/breadcrumb/base.spec.ts | 2 +- .../demos/pc/app/breadcrumb/options.spec.ts | 4 +- .../demos/pc/app/breadcrumb/size.spec.ts | 2 +- .../bulletin-board/events-composition-api.vue | 2 +- .../pc/app/bulletin-board/events.spec.ts | 2 +- .../demos/pc/app/bulletin-board/events.vue | 2 +- .../pc/app/bulletin-board/more-link.spec.ts | 2 +- .../demos/pc/app/bulletin-board/route.spec.ts | 4 +- .../pc/app/bulletin-board/tab-title.spec.ts | 2 +- .../demos/pc/app/bulletin-board/title.spec.ts | 2 +- .../demos/pc/app/bulletin-board/url.spec.ts | 4 +- .../bulletin-board/webdoc/bulletin-board.js | 6 +-- .../change-event-composition-api.vue | 2 +- .../pc/app/button-group/change-event.spec.ts | 6 +-- .../pc/app/button-group/change-event.vue | 2 +- .../button-group/disabled-composition-api.vue | 2 +- .../pc/app/button-group/disabled.spec.ts | 2 +- .../demos/pc/app/button-group/disabled.vue | 2 +- .../app/button-group/sup-composition-api.vue | 4 +- .../demos/pc/app/button-group/sup.spec.ts | 4 +- .../sites/demos/pc/app/button-group/sup.vue | 4 +- .../app/button-group/webdoc/button-group.js | 2 +- .../demos/pc/app/button/reset-time.spec.ts | 4 +- .../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 +-- .../checkbox-button-composition-api.vue | 2 +- .../demos/pc/app/checkbox/checkbox-button.vue | 2 +- .../checkbox-events-composition-api.vue | 2 +- .../pc/app/checkbox/checkbox-events.spec.ts | 4 +- .../demos/pc/app/checkbox/checkbox-events.vue | 2 +- .../checkbox-group-composition-api.vue | 2 +- .../pc/app/checkbox/checkbox-group.spec.ts | 2 +- .../demos/pc/app/checkbox/checkbox-group.vue | 2 +- .../checkbox-slot-composition-api.vue | 6 +-- .../demos/pc/app/checkbox/checkbox-slot.vue | 6 +-- .../app/checkbox/checked-composition-api.vue | 2 +- .../sites/demos/pc/app/checkbox/checked.vue | 2 +- .../checkbox/custom-color-composition-api.vue | 2 +- .../demos/pc/app/checkbox/custom-color.vue | 2 +- .../checkbox/description-composition-api.vue | 4 +- .../demos/pc/app/checkbox/description.spec.ts | 6 +-- .../demos/pc/app/checkbox/description.vue | 4 +- .../pc/app/checkbox/shape-composition-api.vue | 6 +-- .../sites/demos/pc/app/checkbox/shape.spec.ts | 2 +- .../sites/demos/pc/app/checkbox/shape.vue | 6 +-- .../pc/app/checkbox/text-composition-api.vue | 2 +- .../sites/demos/pc/app/checkbox/text.spec.ts | 4 +- examples/sites/demos/pc/app/checkbox/text.vue | 2 +- .../nested-content-composition-api.vue | 10 ++--- .../demos/pc/app/collapse/nested-content.vue | 10 ++--- .../demos/pc/app/collapse/webdoc/collapse.js | 2 +- .../demos/pc/app/color-picker/alpha.spec.ts | 2 +- .../color-picker/format-composition-api.vue | 2 +- .../demos/pc/app/color-picker/format.spec.ts | 16 +++---- .../demos/pc/app/color-picker/format.vue | 2 +- .../pc/app/color-picker/predefine.spec.ts | 8 ++-- .../app/color-picker/webdoc/color-picker.js | 12 +++--- .../pc/app/color-select-panel/alpha.spec.ts | 2 +- .../format-composition-api.vue | 2 +- .../pc/app/color-select-panel/format.spec.ts | 12 +++--- .../pc/app/color-select-panel/format.vue | 2 +- .../webdoc/color-select-panel.js | 10 ++--- .../demos/pc/app/company/webdoc/company.js | 2 +- .../config-provider/base-composition-api.vue | 2 +- .../demos/pc/app/config-provider/base.vue | 2 +- .../config-provider/tag-composition-api.vue | 6 +-- .../demos/pc/app/config-provider/tag.vue | 6 +-- .../pc/app/container/webdoc/container.cn.md | 2 +- .../pc/app/container/webdoc/container.js | 2 +- .../app/crop/aspect-ratio-composition-api.vue | 2 +- .../sites/demos/pc/app/crop/aspect-ratio.vue | 2 +- .../demos/pc/app/crop/basic-usage.spec.ts | 2 +- .../sites/demos/pc/app/crop/drag-mode.spec.ts | 4 +- .../pc/app/crop/get-cropped-canvas.spec.ts | 2 +- .../crop/get-image-data-composition-api.vue | 2 +- .../demos/pc/app/crop/get-image-data.spec.ts | 2 +- .../demos/pc/app/crop/get-image-data.vue | 2 +- .../crop/min-crop-box-width-height.spec.ts | 8 ++-- .../pc/app/crop/view-mode-composition-api.vue | 2 +- .../sites/demos/pc/app/crop/view-mode.spec.ts | 2 +- .../sites/demos/pc/app/crop/view-mode.vue | 2 +- .../sites/demos/pc/app/crop/webdoc/crop.js | 4 +- .../demos/pc/app/currency/webdoc/currency.js | 2 +- .../default-value-composition-api.vue | 2 +- .../pc/app/date-picker/default-value.spec.ts | 2 +- .../pc/app/date-picker/default-value.vue | 2 +- .../date-picker/shortcuts-composition-api.vue | 4 +- .../demos/pc/app/date-picker/shortcuts.vue | 4 +- .../pc/app/date-picker/webdoc/date-picker.js | 4 +- .../dept/custom-service-composition-api.vue | 42 +++++++++---------- .../demos/pc/app/dept/custom-service.spec.ts | 8 ++-- .../demos/pc/app/dept/custom-service.vue | 42 +++++++++---------- .../app/dept/dept-cancel-composition-api.vue | 2 +- .../sites/demos/pc/app/dept/dept-cancel.vue | 2 +- .../app/dept/dept-confirm-composition-api.vue | 2 +- .../sites/demos/pc/app/dept/dept-confirm.vue | 2 +- .../app/dept/dept-events-composition-api.vue | 2 +- .../sites/demos/pc/app/dept/dept-events.vue | 2 +- .../dept/dept-selected-composition-api.vue | 2 +- .../sites/demos/pc/app/dept/dept-selected.vue | 2 +- .../pc/app/dialog-box/basic-usage.spec.ts | 4 +- .../dialog-box/close-on-press-escape.spec.ts | 2 +- .../dialog-width-composition-api.vue | 2 +- .../demos/pc/app/dialog-box/dialog-width.vue | 2 +- .../form-in-dialog-composition-api.vue | 2 +- .../pc/app/dialog-box/form-in-dialog.vue | 2 +- .../dialog-box/fullscreen-composition-api.vue | 2 +- .../demos/pc/app/dialog-box/fullscreen.vue | 2 +- .../pc/app/dialog-box/webdoc/dialog-box.js | 8 ++-- .../nest-grid-multi-composition-api.vue | 24 +++++------ .../pc/app/dialog-select/nest-grid-multi.vue | 24 +++++------ .../nest-grid-single-composition-api.vue | 24 +++++------ .../pc/app/dialog-select/nest-grid-single.vue | 24 +++++------ .../nest-tree-multi-composition-api.vue | 20 ++++----- .../pc/app/dialog-select/nest-tree-multi.vue | 20 ++++----- .../nest-tree-single-composition-api.vue | 18 ++++---- .../pc/app/dialog-select/nest-tree-single.vue | 18 ++++---- .../set-selection-composition-api.vue | 24 +++++------ .../pc/app/dialog-select/set-selection.vue | 24 +++++------ .../auto-tip/basic-usage-composition-api.vue | 2 +- .../directives/auto-tip/basic-usage.spec.js | 4 +- .../app/directives/auto-tip/basic-usage.vue | 2 +- .../highlight-query/avoid-composition-api.vue | 8 ++-- .../app/directives/highlight-query/avoid.vue | 8 ++-- .../webdoc/directives-auto-tip.cn.md | 2 +- .../directives/webdoc/directives-auto-tip.js | 6 +-- .../webdoc/directives-highlight-query.js | 2 +- .../pc/app/divider/content-position.spec.ts | 2 +- .../demos/pc/app/divider/custom-style.spec.ts | 2 +- .../demos/pc/app/divider/direction.spec.ts | 2 +- .../drawer/header-slot-composition-api.vue | 2 +- .../sites/demos/pc/app/drawer/header-slot.vue | 2 +- .../drawer/mask-closable-composition-api.vue | 2 +- .../demos/pc/app/drawer/mask-closable.vue | 2 +- .../app/drawer/placement-composition-api.vue | 4 +- .../sites/demos/pc/app/drawer/placement.vue | 4 +- .../use-through-method-composition-api.vue | 4 +- .../pc/app/drawer/use-through-method.vue | 4 +- .../pc/app/drawer/width-composition-api.vue | 6 +-- .../sites/demos/pc/app/drawer/width.spec.ts | 6 +-- examples/sites/demos/pc/app/drawer/width.vue | 6 +-- .../pc/app/drop-times/webdoc/drop-times.js | 2 +- .../app/dropdown/border-composition-api.vue | 6 +-- .../sites/demos/pc/app/dropdown/border.vue | 6 +-- .../app/dropdown/disabled-composition-api.vue | 6 +-- .../sites/demos/pc/app/dropdown/disabled.vue | 6 +-- .../app/dropdown/events-composition-api.vue | 8 ++-- .../sites/demos/pc/app/dropdown/events.vue | 8 ++-- .../inherit-width-composition-api.vue | 4 +- .../demos/pc/app/dropdown/inherit-width.vue | 4 +- .../lazy-show-popper-composition-api.vue | 4 +- .../pc/app/dropdown/lazy-show-popper.spec.ts | 4 +- .../pc/app/dropdown/lazy-show-popper.vue | 4 +- .../dropdown/multi-level-composition-api.vue | 28 ++++++------- .../demos/pc/app/dropdown/multi-level.spec.ts | 18 ++++---- .../demos/pc/app/dropdown/multi-level.vue | 28 ++++++------- .../app/dropdown/options-composition-api.vue | 12 +++--- .../demos/pc/app/dropdown/options.spec.ts | 12 +++--- .../sites/demos/pc/app/dropdown/options.vue | 12 +++--- .../dropdown/placement-composition-api.vue | 10 ++--- .../sites/demos/pc/app/dropdown/placement.vue | 10 ++--- .../dropdown/show-icon-composition-api.vue | 6 +-- .../sites/demos/pc/app/dropdown/show-icon.vue | 6 +-- .../dropdown/split-button-composition-api.vue | 4 +- .../demos/pc/app/dropdown/split-button.vue | 4 +- .../pc/app/dropdown/tip-composition-api.vue | 6 +-- examples/sites/demos/pc/app/dropdown/tip.vue | 6 +-- .../app/dropdown/trigger-composition-api.vue | 4 +- .../sites/demos/pc/app/dropdown/trigger.vue | 4 +- .../demos/pc/app/dropdown/webdoc/dropdown.js | 2 +- .../demos/pc/app/espace/webdoc/espace.js | 2 +- .../pc/app/fall-menu/data-resource.spec.ts | 2 +- .../pc/app/fall-menu/webdoc/fall-menu.js | 2 +- .../pc/app/file-upload/basic-usage.spec.ts | 2 +- .../custom-upload-tip-composition-api.vue | 2 +- .../app/file-upload/custom-upload-tip.spec.ts | 2 +- .../pc/app/file-upload/custom-upload-tip.vue | 2 +- .../encrypt-config-composition-api.vue | 2 +- .../pc/app/file-upload/encrypt-config.spec.ts | 2 +- .../pc/app/file-upload/encrypt-config.vue | 2 +- .../file-size-array-composition-api.vue | 2 +- .../pc/app/file-upload/file-size-array.vue | 2 +- .../file-upload/file-size-composition-api.vue | 2 +- .../demos/pc/app/file-upload/file-size.vue | 2 +- .../form-validation-composition-api.vue | 2 +- .../pc/app/file-upload/form-validation.vue | 2 +- .../pc/app/file-upload/picture-list.spec.ts | 2 +- .../prompt-tip-composition-api.vue | 2 +- .../demos/pc/app/file-upload/prompt-tip.vue | 2 +- .../show-download-bar-composition-api.vue | 2 +- .../pc/app/file-upload/show-download-bar.vue | 14 +++---- .../upload-events-composition-api.vue | 2 +- .../pc/app/file-upload/upload-events.spec.ts | 2 +- .../pc/app/file-upload/upload-events.vue | 2 +- .../upload-file-list-saas-composition-api.vue | 2 +- .../app/file-upload/upload-file-list-saas.vue | 2 +- .../app/file-upload/upload-file-list.spec.ts | 2 +- .../pc/app/file-upload/webdoc/file-upload.js | 8 ++-- .../file-upload/\346\265\213\350\257\225.txt" | 2 +- .../pc/app/filter-panel/basic-usage.spec.ts | 2 +- .../demos/pc/app/filter-panel/event.spec.ts | 4 +- .../demos/pc/app/filter-panel/tip.spec.ts | 2 +- .../pc/app/float-button/reset-time.spec.ts | 2 +- .../app/float-button/webdoc/float-button.js | 2 +- .../flowchart/basic-usage-composition-api.vue | 2 +- .../demos/pc/app/flowchart/basic-usage.vue | 2 +- .../pc/app/flowchart/webdoc/flowchart.js | 2 +- ...custom-validation-rule-composition-api.vue | 4 +- .../app/form/custom-validation-rule.spec.ts | 4 +- .../pc/app/form/custom-validation-rule.vue | 4 +- .../app/form/display-only-composition-api.vue | 22 +++++----- .../sites/demos/pc/app/form/display-only.vue | 22 +++++----- .../app/form/error-slot-composition-api.vue | 4 +- .../sites/demos/pc/app/form/error-slot.vue | 4 +- .../pc/app/form/extra-tip-composition-api.vue | 2 +- .../sites/demos/pc/app/form/extra-tip.vue | 2 +- .../form/form-disabled-composition-api.vue | 22 +++++----- .../demos/pc/app/form/form-disabled.spec.js | 4 +- .../sites/demos/pc/app/form/form-disabled.vue | 22 +++++----- .../app/form/form-row-col-composition-api.vue | 2 +- .../sites/demos/pc/app/form/form-row-col.vue | 2 +- .../form-validate-field-composition-api.vue | 4 +- .../demos/pc/app/form/form-validate-field.vue | 4 +- .../form/form-validation-composition-api.vue | 10 ++--- .../demos/pc/app/form/form-validation.spec.ts | 20 ++++----- .../demos/pc/app/form/form-validation.vue | 10 ++--- .../app/form/group-form-composition-api.vue | 4 +- .../sites/demos/pc/app/form/group-form.vue | 4 +- examples/sites/demos/pc/app/form/size.spec.ts | 6 +-- .../app/form/slot-label-composition-api.vue | 4 +- .../sites/demos/pc/app/form/slot-label.vue | 4 +- .../validate-debounce-composition-api.vue | 2 +- .../demos/pc/app/form/validate-debounce.vue | 2 +- .../demos/pc/app/form/validate-type.spec.ts | 2 +- .../validation-position-composition-api.vue | 2 +- .../demos/pc/app/form/validation-position.vue | 2 +- .../sites/demos/pc/app/form/webdoc/form.js | 4 +- .../before-change-composition-api.vue | 2 +- .../demos/pc/app/fullscreen/before-change.vue | 2 +- .../pc/app/fullscreen/example-api.spec.ts | 8 ++-- .../app/fullscreen/example-component.spec.ts | 12 +++--- 393 files changed, 1255 insertions(+), 1255 deletions(-) diff --git a/examples/sites/demos/pc/app/breadcrumb/base.spec.ts b/examples/sites/demos/pc/app/breadcrumb/base.spec.ts index 85ed5491eb..c4fcefe569 100644 --- a/examples/sites/demos/pc/app/breadcrumb/base.spec.ts +++ b/examples/sites/demos/pc/app/breadcrumb/base.spec.ts @@ -9,7 +9,7 @@ test('Breadcrumb 基础用法', async ({ page }) => { const currentItem = breadcrumbItem.last() const separator = page.locator('.tiny-breadcrumb__separator') - // 面包屑导航、导航项出现,当前页导航加粗 + // 面包屑导航、导航项出现,当前页导航加粗 await expect(breadcrumb).toBeVisible() await expect(breadcrumbItem).toHaveCount(3) await expect(currentItem.last().locator('.is-link')).toHaveCSS('font-weight', '600') diff --git a/examples/sites/demos/pc/app/breadcrumb/options.spec.ts b/examples/sites/demos/pc/app/breadcrumb/options.spec.ts index 505ea26848..3300d99299 100644 --- a/examples/sites/demos/pc/app/breadcrumb/options.spec.ts +++ b/examples/sites/demos/pc/app/breadcrumb/options.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test' -test('Breadcrumb options配置', async ({ page }) => { +test('Breadcrumb options 配置', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('breadcrumb#options') @@ -9,7 +9,7 @@ test('Breadcrumb options配置', async ({ page }) => { const currentItem = breadcrumbItem.last() const separator = breadcrumb.locator('.tiny-breadcrumb__separator') - // 面包屑导航、导航项出现,当前页导航加粗 + // 面包屑导航、导航项出现,当前页导航加粗 await expect(breadcrumb).toBeVisible() await expect(breadcrumbItem).toHaveCount(3) await expect(currentItem.last().getByRole('link')).toHaveCSS('font-weight', '600') diff --git a/examples/sites/demos/pc/app/breadcrumb/size.spec.ts b/examples/sites/demos/pc/app/breadcrumb/size.spec.ts index 8a71544942..6b89e10a24 100644 --- a/examples/sites/demos/pc/app/breadcrumb/size.spec.ts +++ b/examples/sites/demos/pc/app/breadcrumb/size.spec.ts @@ -10,7 +10,7 @@ test('Breadcrumb 尺寸设置', async ({ page }) => { const currentItem = breadcrumbItem.last() const separator = page.locator('.tiny-breadcrumb__separator') - // 面包屑导航、导航项出现,当前页导航加粗 + // 面包屑导航、导航项出现,当前页导航加粗 await expect(breadcrumb).toBeVisible() await expect(breadcrumbItem).toHaveCount(3) await expect(currentItem.last().locator('.is-link')).toHaveCSS('font-weight', '600') diff --git a/examples/sites/demos/pc/app/bulletin-board/events-composition-api.vue b/examples/sites/demos/pc/app/bulletin-board/events-composition-api.vue index 7eea0b3455..277f22af70 100644 --- a/examples/sites/demos/pc/app/bulletin-board/events-composition-api.vue +++ b/examples/sites/demos/pc/app/bulletin-board/events-composition-api.vue @@ -88,7 +88,7 @@ const data = ref([ ]) function contentClick(item) { TinyModal.message({ - message: '触发 contentClick 事件:内容为' + item.text, + message: '触发 contentClick 事件:内容为 ' + item.text, status: 'info' }) } diff --git a/examples/sites/demos/pc/app/bulletin-board/events.spec.ts b/examples/sites/demos/pc/app/bulletin-board/events.spec.ts index 53a3c6e41e..dadc297e49 100644 --- a/examples/sites/demos/pc/app/bulletin-board/events.spec.ts +++ b/examples/sites/demos/pc/app/bulletin-board/events.spec.ts @@ -7,5 +7,5 @@ test('测试点击事件', async ({ page }) => { const modal = page.locator('.tiny-modal') await demo.getByRole('link', { name: 'TINY v2.1.3 版本' }).click() - await expect(modal.getByText('click 事件:内容为TINY v2.1.3 版本')).toBeVisible() + await expect(modal.getByText('click 事件:内容为 TINY v2.1.3 版本')).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/bulletin-board/events.vue b/examples/sites/demos/pc/app/bulletin-board/events.vue index 36ed3018d5..20a3ee86ff 100644 --- a/examples/sites/demos/pc/app/bulletin-board/events.vue +++ b/examples/sites/demos/pc/app/bulletin-board/events.vue @@ -96,7 +96,7 @@ export default { methods: { contentClick(item) { TinyModal.message({ - message: '触发 contentClick 事件:内容为' + item.text, + message: '触发 contentClick 事件:内容为 ' + item.text, status: 'info' }) } diff --git a/examples/sites/demos/pc/app/bulletin-board/more-link.spec.ts b/examples/sites/demos/pc/app/bulletin-board/more-link.spec.ts index b27e3a67a4..9c41a3d9b9 100644 --- a/examples/sites/demos/pc/app/bulletin-board/more-link.spec.ts +++ b/examples/sites/demos/pc/app/bulletin-board/more-link.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test' -test('BulletinBoard 显示 “更多” 链接(', async ({ page }) => { +test('BulletinBoard 显示“更多”链接 (', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('bulletin-board#more-link') diff --git a/examples/sites/demos/pc/app/bulletin-board/route.spec.ts b/examples/sites/demos/pc/app/bulletin-board/route.spec.ts index 67663eeb36..902491277b 100644 --- a/examples/sites/demos/pc/app/bulletin-board/route.spec.ts +++ b/examples/sites/demos/pc/app/bulletin-board/route.spec.ts @@ -1,12 +1,12 @@ import { test, expect } from '@playwright/test' -test('BulletinBoard 基于Route的跳转', async ({ page }) => { +test('BulletinBoard 基于 Route 的跳转', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('bulletin-board#route') const preview = page.locator('#route') const contentTitle = preview.locator('.tiny-bulletin-board__textTitle') - // 判断a标签href属性值 + // 判断 a 标签 href 属性值 await expect(contentTitle).toHaveAttribute('href', '/#/Alert') }) diff --git a/examples/sites/demos/pc/app/bulletin-board/tab-title.spec.ts b/examples/sites/demos/pc/app/bulletin-board/tab-title.spec.ts index bc92274fdf..0170060b82 100644 --- a/examples/sites/demos/pc/app/bulletin-board/tab-title.spec.ts +++ b/examples/sites/demos/pc/app/bulletin-board/tab-title.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test' -test('BulletinBoard 选项卡标题(', async ({ page }) => { +test('BulletinBoard 选项卡标题 (', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('bulletin-board#tab-title') diff --git a/examples/sites/demos/pc/app/bulletin-board/title.spec.ts b/examples/sites/demos/pc/app/bulletin-board/title.spec.ts index 583ec7440d..9b7aaa54d6 100644 --- a/examples/sites/demos/pc/app/bulletin-board/title.spec.ts +++ b/examples/sites/demos/pc/app/bulletin-board/title.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test' -test('BulletinBoard 公告牌标题(', async ({ page }) => { +test('BulletinBoard 公告牌标题 (', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('bulletin-board#title') diff --git a/examples/sites/demos/pc/app/bulletin-board/url.spec.ts b/examples/sites/demos/pc/app/bulletin-board/url.spec.ts index b70330dc2b..9be86ad94b 100644 --- a/examples/sites/demos/pc/app/bulletin-board/url.spec.ts +++ b/examples/sites/demos/pc/app/bulletin-board/url.spec.ts @@ -1,12 +1,12 @@ import { test, expect } from '@playwright/test' -test('BulletinBoard 基于Url的跳转', async ({ page }) => { +test('BulletinBoard 基于 Url 的跳转', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('bulletin-board#url') const preview = page.locator('#url') const contentTitle = preview.locator('.tiny-bulletin-board__textTitle') - // a标签href属性值 + // a 标签 href 属性值 await expect(contentTitle).toHaveAttribute('href', 'localhost:3000/#/webcore/zh-CN/guide/changelog') }) diff --git a/examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js b/examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js index a03a2c84db..bfc232a181 100644 --- a/examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js +++ b/examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js @@ -56,7 +56,7 @@ export default { { demoId: 'url', name: { - 'zh-CN': '基于Url的跳转', + 'zh-CN': '基于 Url 的跳转', 'en-US': 'URL-based redirection' }, desc: { @@ -70,7 +70,7 @@ export default { { demoId: 'route', name: { - 'zh-CN': '基于Route的跳转', + 'zh-CN': '基于 Route 的跳转', 'en-US': 'Route-based redirection' }, desc: { @@ -82,7 +82,7 @@ export default { { demoId: 'more-link', name: { - 'zh-CN': '显示 “更多” 链接', + 'zh-CN': '显示“更多”链接', 'en-US': 'Show More links' }, desc: { diff --git a/examples/sites/demos/pc/app/button-group/change-event-composition-api.vue b/examples/sites/demos/pc/app/button-group/change-event-composition-api.vue index 81b6e8bd7d..935bf86ca7 100644 --- a/examples/sites/demos/pc/app/button-group/change-event-composition-api.vue +++ b/examples/sites/demos/pc/app/button-group/change-event-composition-api.vue @@ -16,6 +16,6 @@ const groupData = ref([ ]) function handleChange(val) { - TinyModal.message({ message: `change事件触发了,选中值为${val}`, status: 'info' }) + TinyModal.message({ message: `change 事件触发了,选中值为 ${val}`, status: 'info' }) } diff --git a/examples/sites/demos/pc/app/button-group/change-event.spec.ts b/examples/sites/demos/pc/app/button-group/change-event.spec.ts index 98605d6220..1d53bd4196 100644 --- a/examples/sites/demos/pc/app/button-group/change-event.spec.ts +++ b/examples/sites/demos/pc/app/button-group/change-event.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test' -test('按钮组change事件', async ({ page }) => { +test('按钮组 change 事件', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('button-group#change-event') @@ -9,7 +9,7 @@ test('按钮组change事件', async ({ page }) => { const modal = page.locator('.tiny-modal') await btn.nth(1).click() - await expect(modal.filter({ hasText: 'change事件触发了,选中值为Button2' })).toBeVisible() + await expect(modal.filter({ hasText: 'change 事件触发了,选中值为 Button2' })).toBeVisible() await btn.nth(2).click() - await expect(modal.filter({ hasText: 'change事件触发了,选中值为Button3' })).toBeVisible() + await expect(modal.filter({ hasText: 'change 事件触发了,选中值为 Button3' })).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/button-group/change-event.vue b/examples/sites/demos/pc/app/button-group/change-event.vue index 38bc0a5a20..d531e0916b 100644 --- a/examples/sites/demos/pc/app/button-group/change-event.vue +++ b/examples/sites/demos/pc/app/button-group/change-event.vue @@ -23,7 +23,7 @@ export default { }, methods: { handleChange(val) { - TinyModal.message({ message: `change事件触发了,选中值为${val}`, status: 'info' }) + TinyModal.message({ message: `change 事件触发了,选中值为 ${val}`, status: 'info' }) } } } diff --git a/examples/sites/demos/pc/app/button-group/disabled-composition-api.vue b/examples/sites/demos/pc/app/button-group/disabled-composition-api.vue index a51f60d806..6c95a4b28d 100644 --- a/examples/sites/demos/pc/app/button-group/disabled-composition-api.vue +++ b/examples/sites/demos/pc/app/button-group/disabled-composition-api.vue @@ -22,7 +22,7 @@ const groupData = ref([ const disabledGroup = ref([ { text: 'Button1', value: 1 }, - { text: 'Button2', value: 2, disabled: true, tip: '因为xxx原因被禁用' }, + { text: 'Button2', value: 2, disabled: true, tip: '因为 xxx 原因被禁用' }, { text: 'Button3', value: 3 } ]) diff --git a/examples/sites/demos/pc/app/button-group/disabled.spec.ts b/examples/sites/demos/pc/app/button-group/disabled.spec.ts index 683782a450..6f63b0f3cf 100644 --- a/examples/sites/demos/pc/app/button-group/disabled.spec.ts +++ b/examples/sites/demos/pc/app/button-group/disabled.spec.ts @@ -26,5 +26,5 @@ test('测试按钮是否禁用', async ({ page }) => { // 按钮悬浮提示 await buttonGroup3.locator('button').nth(1).hover() - await expect(page.getByText('因为xxx原因被禁用')).toBeVisible() + await expect(page.getByText('因为 xxx 原因被禁用')).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/button-group/disabled.vue b/examples/sites/demos/pc/app/button-group/disabled.vue index 9c42d2abe0..6a5fe23b05 100644 --- a/examples/sites/demos/pc/app/button-group/disabled.vue +++ b/examples/sites/demos/pc/app/button-group/disabled.vue @@ -26,7 +26,7 @@ export default { ], disabledGroup: [ { text: 'Button1', value: 1 }, - { text: 'Button2', value: 2, disabled: true, tip: '因为xxx原因被禁用' }, + { text: 'Button2', value: 2, disabled: true, tip: '因为 xxx 原因被禁用' }, { text: 'Button3', value: 3 } ] } diff --git a/examples/sites/demos/pc/app/button-group/sup-composition-api.vue b/examples/sites/demos/pc/app/button-group/sup-composition-api.vue index ac43891f00..dfe4aca24a 100644 --- a/examples/sites/demos/pc/app/button-group/sup-composition-api.vue +++ b/examples/sites/demos/pc/app/button-group/sup-composition-api.vue @@ -55,7 +55,7 @@ const groupData = ref([ value: 'Button3', sup: { class: 'sup-text', - text: '8折' + text: '8 折' } }, { @@ -64,7 +64,7 @@ const groupData = ref([ sup: { slot: 'button4', class: 'sup-slot', - text: '8折' + text: '8 折' } } ]) diff --git a/examples/sites/demos/pc/app/button-group/sup.spec.ts b/examples/sites/demos/pc/app/button-group/sup.spec.ts index d89ce7ce60..6341a12b63 100644 --- a/examples/sites/demos/pc/app/button-group/sup.spec.ts +++ b/examples/sites/demos/pc/app/button-group/sup.spec.ts @@ -21,12 +21,12 @@ test('测试选块角标', async ({ page }) => { // 测试文字角标 const sup3 = getSup(item.nth(2)) - await expect(sup3).toHaveText('8折') + await expect(sup3).toHaveText('8 折') await expect(sup3).toHaveClass(/tiny-group-item__sup-text/) // 测试自定义角标 const sup4 = getSup(item.nth(3)) await expect(sup4.locator('svg')).toBeVisible() - await expect(sup4).toHaveText('8折') + await expect(sup4).toHaveText('8 折') await expect(sup4).toHaveClass(/sup-slot/) }) diff --git a/examples/sites/demos/pc/app/button-group/sup.vue b/examples/sites/demos/pc/app/button-group/sup.vue index 1a1f173e71..d8fbd61368 100644 --- a/examples/sites/demos/pc/app/button-group/sup.vue +++ b/examples/sites/demos/pc/app/button-group/sup.vue @@ -62,7 +62,7 @@ export default { value: 'Button3', sup: { class: 'sup-text', - text: '8折' + text: '8 折' } }, { @@ -71,7 +71,7 @@ export default { sup: { slot: 'button4', class: 'sup-slot', - text: '8折' + text: '8 折' } } ], diff --git a/examples/sites/demos/pc/app/button-group/webdoc/button-group.js b/examples/sites/demos/pc/app/button-group/webdoc/button-group.js index fcb0f906d8..8bd5fa05be 100644 --- a/examples/sites/demos/pc/app/button-group/webdoc/button-group.js +++ b/examples/sites/demos/pc/app/button-group/webdoc/button-group.js @@ -37,7 +37,7 @@ export default { }, desc: { 'zh-CN': - '

通过 disabled 设置按钮组是否禁用,数据项设置 disabled 属性可以禁用单个按钮,数据项设置 tip 属性(v3.17.0版本增加此功能)增加按钮悬浮提示功能。

', + '

通过 disabled 设置按钮组是否禁用,数据项设置 disabled 属性可以禁用单个按钮,数据项设置 tip 属性 (v3.17.0 版本增加此功能) 增加按钮悬浮提示功能。

', 'en-US': '

You can set whether to disable the button group through disabled. You can set the disabled attribute to disable a single button. You can set the tip attribute to add the reason for disabling the button.

' }, diff --git a/examples/sites/demos/pc/app/button/reset-time.spec.ts b/examples/sites/demos/pc/app/button/reset-time.spec.ts index 337a855cfc..a14b6f3781 100644 --- a/examples/sites/demos/pc/app/button/reset-time.spec.ts +++ b/examples/sites/demos/pc/app/button/reset-time.spec.ts @@ -10,7 +10,7 @@ test('测试按钮禁用事件', async ({ page }) => { const noDisabled = demo.getByRole('button', { name: '无禁用' }) const fiveSecondDisabled = demo.getByRole('button', { name: '禁用 5 秒' }) - // 默认禁用1S + // 默认禁用 1S await defalutDisabled.click() await expect(defalutDisabled).toBeDisabled() await page.waitForTimeout(1000) @@ -20,7 +20,7 @@ test('测试按钮禁用事件', async ({ page }) => { await noDisabled.click() await expect(noDisabled).not.toBeDisabled() - // 自定义禁用5s + // 自定义禁用 5s await fiveSecondDisabled.click() await expect(fiveSecondDisabled).toBeDisabled() await page.waitForTimeout(5000) 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 @@