-
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 版本增加此功能) 增加按钮悬浮提示功能。
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.
通过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.
\nCurrently, 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 @@default、title-left、title、title-right、footer
5 个插槽',
'en-US':
- 'The component provides five slots: default, title-left,title、 title-right, and footer
The component provides five slots: default, title-left,title, title-right, and footer
swipeable
属性,让多端模板支持触屏轮播。swipeable
属性,让多端模板支持触屏轮播。lite
属性打开精简模式,不显示切换按钮和指示器。
`,
'en-US': `
diff --git a/examples/sites/demos/pc/app/cascader-panel/change-composition-api.vue b/examples/sites/demos/pc/app/cascader-panel/change-composition-api.vue
index e4ae01d679..0183bf1ce0 100644
--- a/examples/sites/demos/pc/app/cascader-panel/change-composition-api.vue
+++ b/examples/sites/demos/pc/app/cascader-panel/change-composition-api.vue
@@ -225,7 +225,7 @@ function change(value) {
}
TinyModal.message({
- message: 'change 事件,当前选中的值为:' + mess + ';传入的值为:' + value,
+ message: 'change 事件,当前选中的值为:' + mess + ';传入的值为:' + value,
status: 'info'
})
}
diff --git a/examples/sites/demos/pc/app/cascader-panel/change.spec.ts b/examples/sites/demos/pc/app/cascader-panel/change.spec.ts
index 01481c6a5f..733b6a4aec 100644
--- a/examples/sites/demos/pc/app/cascader-panel/change.spec.ts
+++ b/examples/sites/demos/pc/app/cascader-panel/change.spec.ts
@@ -10,7 +10,7 @@ test('选中节点变化', async ({ page }) => {
await page.getByRole('menuitem', { name: '安装' }).click()
await page.getByRole('menuitem', { name: '项目登记' }).click()
- await expect(page.getByText('change 事件,当前选中的值为:项目登记;传入的值为:zhinan,anzhuang,xiangmudengji')).toBeVisible()
+ await expect(page.getByText('change 事件,当前选中的值为:项目登记;传入的值为:zhinan,anzhuang,xiangmudengji')).toBeVisible()
// 清除节点
await expect(page.getByRole('menuitem', { name: '项目登记' })).toHaveClass('tiny-cascader-node is-active')
diff --git a/examples/sites/demos/pc/app/cascader-panel/change.vue b/examples/sites/demos/pc/app/cascader-panel/change.vue
index b371a7eb4c..6f19b30df5 100644
--- a/examples/sites/demos/pc/app/cascader-panel/change.vue
+++ b/examples/sites/demos/pc/app/cascader-panel/change.vue
@@ -234,7 +234,7 @@ export default {
}
TinyModal.message({
- message: 'change 事件,当前选中的值为:' + mess + ';传入的值为:' + value,
+ message: 'change 事件,当前选中的值为:' + mess + ';传入的值为:' + value,
status: 'info'
})
}
diff --git a/examples/sites/demos/pc/app/cascader-panel/custom-option-content.spec.ts b/examples/sites/demos/pc/app/cascader-panel/custom-option-content.spec.ts
index 398ce70852..1b2aadd922 100644
--- a/examples/sites/demos/pc/app/cascader-panel/custom-option-content.spec.ts
+++ b/examples/sites/demos/pc/app/cascader-panel/custom-option-content.spec.ts
@@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test'
test('自定义节点内容', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('cascader-panel#custom-option-content')
- await expect(page.getByText('指南自定义(2)组件自定义(6)')).toBeVisible()
- await page.getByRole('menuitem', { name: '指南自定义(2)' }).click()
- await expect(page.getByText('安装自定义(4)开发自定义(2)')).toBeVisible()
+ await expect(page.getByText('指南自定义 (2) 组件自定义 (6)')).toBeVisible()
+ await page.getByRole('menuitem', { name: '指南自定义 (2)' }).click()
+ await expect(page.getByText('安装自定义 (4) 开发自定义 (2)')).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/cascader/auto-load-checkStrictly.spec.ts b/examples/sites/demos/pc/app/cascader/auto-load-checkStrictly.spec.ts
index 86b7d1fa11..d2860c286d 100644
--- a/examples/sites/demos/pc/app/cascader/auto-load-checkStrictly.spec.ts
+++ b/examples/sites/demos/pc/app/cascader/auto-load-checkStrictly.spec.ts
@@ -7,11 +7,11 @@ test('动态加载且父子级不相关联 lazyload & checkStrictly', async ({ p
const svg = page.locator('.tiny-cascader-node__postfix > path')
await expect(svg).toBeVisible()
await page.locator('li[role="menuitem"]').click()
- const loadingSvg = page.getByRole('menuitem', { name: '选项1' }).locator('svg')
+ const loadingSvg = page.getByRole('menuitem', { name: '选项 1' }).locator('svg')
await expect(loadingSvg).toHaveClass(/tiny-cascader-node__postfix/)
await page.waitForTimeout(100)
- await page.getByRole('menuitem', { name: '选项2' }).getByRole('radio').nth(0).click()
+ await page.getByRole('menuitem', { name: '选项 2' }).getByRole('radio').nth(0).click()
await page.getByRole('textbox', { name: '请选择' }).click()
- const light = page.getByRole('menuitem', { name: '选项2' }).getByRole('radio').nth(0)
+ const light = page.getByRole('menuitem', { name: '选项 2' }).getByRole('radio').nth(0)
await expect(light).toHaveClass('tiny-radio is-checked')
})
diff --git a/examples/sites/demos/pc/app/cascader/auto-load.spec.ts b/examples/sites/demos/pc/app/cascader/auto-load.spec.ts
index 263024ffcb..eb81b07f54 100644
--- a/examples/sites/demos/pc/app/cascader/auto-load.spec.ts
+++ b/examples/sites/demos/pc/app/cascader/auto-load.spec.ts
@@ -6,7 +6,7 @@ test('动态加载 lazyload', async ({ page }) => {
await page.getByRole('textbox', { name: '请选择' }).click()
const svg = page.locator('.tiny-cascader-node__postfix')
await expect(svg).toBeVisible()
- await page.getByRole('menuitem', { name: '选项1' }).click()
- const loadingSvg = page.getByRole('menuitem', { name: '选项1' })
+ await page.getByRole('menuitem', { name: '选项 1' }).click()
+ const loadingSvg = page.getByRole('menuitem', { name: '选项 1' })
await expect(loadingSvg).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/cascader/clearable.spec.ts b/examples/sites/demos/pc/app/cascader/clearable.spec.ts
index 1282d19286..78aed2a53a 100644
--- a/examples/sites/demos/pc/app/cascader/clearable.spec.ts
+++ b/examples/sites/demos/pc/app/cascader/clearable.spec.ts
@@ -4,7 +4,7 @@ test('可清空', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('cascader#clearable')
const text = await page.getByRole('textbox', { name: '请选择' }).inputValue()
- await expect(text).toEqual('指南+安装+项目登记')
+ await expect(text).toEqual('指南 + 安装 + 项目登记')
await page.locator('.tiny-input__suffix-inner > .tiny-svg').click()
const textClear = await page.getByRole('textbox', { name: '请选择' }).inputValue()
await expect(textClear).toEqual('')
diff --git a/examples/sites/demos/pc/app/cascader/default-multiple.spec.ts b/examples/sites/demos/pc/app/cascader/default-multiple.spec.ts
index 388f900642..587c312b04 100644
--- a/examples/sites/demos/pc/app/cascader/default-multiple.spec.ts
+++ b/examples/sites/demos/pc/app/cascader/default-multiple.spec.ts
@@ -4,7 +4,7 @@ test('多选', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('cascader#default-multiple')
const multiple = page.locator('.tiny-cascader-multiple')
- const multipleText = page.getByText('指南 /安装 /项目登记指南 /安装 /安装 CLI指南 /开发 /引入组件')
+ const multipleText = page.getByText('指南 /安装 /项目登记指南 /安装 /安装 CLI 指南 /开发 /引入组件')
await expect(multiple).toBeVisible()
await expect(multipleText).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/cascader/events-composition-api.vue b/examples/sites/demos/pc/app/cascader/events-composition-api.vue
index 7ce70f20ae..f645bd1147 100644
--- a/examples/sites/demos/pc/app/cascader/events-composition-api.vue
+++ b/examples/sites/demos/pc/app/cascader/events-composition-api.vue
@@ -218,7 +218,7 @@ const cascaderRef = ref()
function visibleChange(val) {
TinyModal.message({
- message: '当前触发了:visible-change 事件,当前状态为:' + val,
+ message: '当前触发了:visible-change 事件,当前状态为:' + val,
status: 'info'
})
}
@@ -241,7 +241,7 @@ function handleblur() {
function handleChange(value) {
let checkVal = cascaderRef.value.getCheckedNodes(true)
TinyModal.message({
- message: 'change 事件,当前选中的值为:' + checkVal[0].label + ';传入的值为:' + value,
+ message: 'change 事件,当前选中的值为:' + checkVal[0].label + ';传入的值为:' + value,
status: 'info'
})
}
diff --git a/examples/sites/demos/pc/app/cascader/events.spec.ts b/examples/sites/demos/pc/app/cascader/events.spec.ts
index 161f49509e..22ff0bb388 100644
--- a/examples/sites/demos/pc/app/cascader/events.spec.ts
+++ b/examples/sites/demos/pc/app/cascader/events.spec.ts
@@ -4,6 +4,6 @@ test('事件', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('cascader#events')
await page.getByRole('textbox', { name: '请选择' }).click()
- await expect(page.getByText('当前触发了:visible-change 事件,当前状态为:true')).toBeVisible()
+ await expect(page.getByText('当前触发了:visible-change 事件,当前状态为:true')).toBeVisible()
await expect(page.getByText('当前触发了:focus 事件')).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/cascader/events.vue b/examples/sites/demos/pc/app/cascader/events.vue
index 76d25bdb26..2885bc9b6b 100644
--- a/examples/sites/demos/pc/app/cascader/events.vue
+++ b/examples/sites/demos/pc/app/cascader/events.vue
@@ -224,7 +224,7 @@ export default {
methods: {
visibleChange(val) {
TinyModal.message({
- message: '当前触发了:visible-change 事件,当前状态为:' + val,
+ message: '当前触发了:visible-change 事件,当前状态为:' + val,
status: 'info'
})
},
@@ -243,7 +243,7 @@ export default {
handleChange(value) {
let checkVal = this.$refs.cascader.getCheckedNodes(true)
TinyModal.message({
- message: 'change 事件,当前选中的值为:' + checkVal[0].label + ';传入的值为:' + value,
+ message: 'change 事件,当前选中的值为:' + checkVal[0].label + ';传入的值为:' + value,
status: 'info'
})
}
diff --git a/examples/sites/demos/pc/app/cascader/slot-composition-api.vue b/examples/sites/demos/pc/app/cascader/slot-composition-api.vue
index 88af1886fd..987fe97338 100644
--- a/examples/sites/demos/pc/app/cascader/slot-composition-api.vue
+++ b/examples/sites/demos/pc/app/cascader/slot-composition-api.vue
@@ -1,6 +1,6 @@
在开启多选模式后,默认情况下会展示所有已选中的选项的 Tag,可以使用 collapse-tags
来折叠 Tag 。
在开启多选模式后,默认情况下会展示所有已选中的选项的 Tag,可以使用 collapse-tags
来折叠 Tag。
After the multi-selection mode is enabled, tags of all selected options are displayed by default. You can use collapse-tags
to collapse tags.
\n
props
属性中的 lazy
开启动态加载,并通过 lazyload
来设置加载数据源的方法。lazyload
方法有两个参数,第一个参数 node 为当前点击的节点,第二个 resolve 为数据加载完成的回调(必须调用)。\n
props.leaf
)可以使用leaf
字段。\n
props
属性中的 lazy
开启动态加载,并通过 lazyload
来设置加载数据源的方法。lazyload
方法有两个参数,第一个参数 node 为当前点击的节点,第二个 resolve 为数据加载完成的回调 (必须调用)。\n
props.leaf
)可以使用leaf
字段。\n
lazy
in the props
property, and sets the method of loading the data source with lazyload
. lazyload
method takes two arguments, node for the current clicked node, and resolve for the callback (which must be called) when the data is loaded. \n
leaf
field can be used by default (the default means that props.leaf
is not set). \n
props.children
指定选项的子选项,默认为 'children' 。props.value
指定指定选项的 value 值,默认为 'value' 。props.label
指定选项标签,默认为 'label' 。\n
props.children
指定选项的子选项,默认为 'children' 。props.value
指定指定选项的 value 值,默认为 'value' 。props.label
指定选项标签,默认为 'label' 。\n
props.children
, which defaults to 'children'. props.value
, which defaults to 'value'. props.label
, which defaults to 'label'. \n 将 filterable
赋值为 true
即可打开搜索功能,默认会匹配节点的 label
或所有父节点的 label
(由 show-all-levels
决定)中包含输入值的选项。\n 使用empty
插槽设置无匹配选项时显示的内容,使用debounce
设置搜索延迟。\n
\n 将 filterable
赋值为 true
即可打开搜索功能,默认会匹配节点的 label
或所有父节点的 label
(由 show-all-levels
决定) 中包含输入值的选项。\n 使用empty
插槽设置无匹配选项时显示的内容,使用debounce
设置搜索延迟。\n
\n Set filterable
to true
to turn on the search function, By default, the label
of the node or the label
of all parent nodes (as determined by show-all-levels
) will match the option containing the input value. \n Use the empty
slot to set what will be displayed if there is no matching option, and use debounce
to set the search delay.\n
filter-method
自定义搜索逻辑,第一个参数是节点 node,第二个参数是搜索关键词 keyword,通过返回布尔值表示是否命中,如果需要搜索到父级,通过 props.checkStrictly = true 来设置父子节点取消选中关联,从而达到选择任意一级选项的目的。默认单选模式下,只能选择叶子节点。
filter-method
自定义搜索逻辑,第一个参数是节点 node,第二个参数是搜索关键词 keyword,通过返回布尔值表示是否命中,如果需要搜索到父级,通过 props.checkStrictly = true 来设置父子节点取消选中关联,从而达到选择任意一级选项的目的。默认单选模式下,只能选择叶子节点。
filter-method
customizes the search logic. The first parameter is node, and the second parameter is keyword. A boolean value is returned to indicate whether the search is hit. To select a parent, set props.checkStrictly = true to deselect the parent and child nodes. In this way, the purpose of selecting any level of option is achieved. In the default single-choice mode, only leaf nodes can be selected.
当前父元素宽度: {{ parentElementWidth }},chart 组件{{ isAction ? '已' : '未' }}执行 resize()。
+当前父元素宽度:{{ parentElementWidth }},chart 组件{{ isAction ? '已' : '未' }}执行 resize()。
当前父元素宽度: {{ parentElementWidth }},chart 组件{{ isAction ? '已' : '未' }}执行 resize()。
+当前父元素宽度:{{ parentElementWidth }},chart 组件{{ isAction ? '已' : '未' }}执行 resize()。
在一个初始宽度未知的容器内绘制图表时,因为无法获取宽度,所以图表会绘制失败,解决的办法是在容器宽度已知后,\n调用 echarts 的 resize 方法。\n通过 cancel-resize-check
是用于resize之前,检测组件元素是否存在,元素是否有宽高,没有则不resize。
在一个初始宽度未知的容器内绘制图表时,因为无法获取宽度,所以图表会绘制失败,解决的办法是在容器宽度已知后,\n调用 echarts 的 resize 方法。\n通过 cancel-resize-check
是用于 resize 之前,检测组件元素是否存在,元素是否有宽高,没有则不 resize。
When drawing a chart in a container whose initial width is unknown, the chart fails to be drawn because the width cannot be obtained. The solution is to obtain the width after the container width is known. \nInvoke the resize method of echarts. \n cancel-resize-check
is used to check whether a component element exists and whether the element has width and height before resize. If no, the component element does not have width and height.
处理数据类型时默认保留两位有效数字,但是当数字较小并设置为百分比类型时,这种方式会导致显示上的问题,例如:
\n', @@ -47,7 +47,7 @@ export default { }, { 'demoId': 'question-demo3', - 'name': { 'zh-CN': '小数显示精度2', 'en-US': 'Decimal display precision2' }, + 'name': { 'zh-CN': '小数显示精度 2', 'en-US': 'Decimal display precision2' }, 'desc': { 'zh-CN': '每个图表内都有 digit 配置项,设置此属性,保证设置类型后,数值较小也能够正常显示,如下所示:', 'en-US': diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-radar.js b/examples/sites/demos/pc/app/chart/webdoc/chart-radar.js index 4f1b62572d..b6a7acec3d 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-radar.js +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-radar.js @@ -29,8 +29,8 @@ export default { code: ` interface IChartSettings { areaStyle: object // 区域填充样式, - dataType: object // 数据类型,可选值: KMB , normal , percent - digit: number // 设置数据类型为 percent 时保留的位数,默认为2 + dataType: object // 数据类型,可选值:KMB , normal , percent + digit: number // 设置数据类型为 percent 时保留的位数,默认为 2 dimension: string // 维度,默认 columns 第一项为维度 itemStyle: object // 折线拐点标志的样式, label: object // 图形上的文本标签, diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-ring.js b/examples/sites/demos/pc/app/chart/webdoc/chart-ring.js index 84e101778e..71996e6326 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-ring.js +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-ring.js @@ -22,7 +22,7 @@ export default { }, { 'demoId': 'ring-demo4', - 'name': { 'zh-CN': '数据和为0时不显示扇区', 'en-US': 'Not show sectors when data sum is 0' }, + 'name': { 'zh-CN': '数据和为 0 时不显示扇区', 'en-US': 'Not show sectors when data sum is 0' }, 'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' }, 'codeFiles': ['ring/demo4.vue'] }, @@ -52,20 +52,20 @@ export default { type: 'interface', code: ` interface IChartSettings { - dataType: string // 数据类型,可选值: KMB , normal , percent - digit: number // 设置数据类型为 percent 时保留的位数,默认为2 + dataType: string // 数据类型,可选值:KMB , normal , percent + digit: number // 设置数据类型为 percent 时保留的位数,默认为 2 dimension: string // 维度,默认 columns 第一项为维度 hoverAnimation: boolean // 是否开启 hover 在扇区上的放大动画效果,默认值为 true itemStyle: object // 图形样式, label: object // 环图图形上的文本标签, labelLine: object // 标签的视觉引导线样式, - legendLimit: number // legend 显示数量限制, legend 数量过多会导致环图样式错误,限制 legend 最大值并且当超过此值时,隐藏 legend 可以解决这个问题 + legendLimit: number // legend 显示数量限制,legend 数量过多会导致环图样式错误,限制 legend 最大值并且当超过此值时,隐藏 legend 可以解决这个问题 limitShowNum: number // 设置超过此数字时使用‘其他’代替,此时数据会按照由大到小顺序显示 metrics: string // 指标,默认 columns 第二项为指标 offsetY: number/string // 纵向偏移量,支持数值和百分比 - radius: array // 环图外半径与内半径,数组元素支持数值和百分比,如:[50,70]或['50%','70%'] + radius: array // 环图外半径与内半径,数组元素支持数值和百分比,如:[50,70] 或 ['50%','70%'] roseType: string // 显示为南丁格尔玫瑰图,默认不展示为南丁格尔玫瑰图,可设置为' radius ',' area ' - selectedMode: string // 选中模式,可选值: single , multiple ,默认为 false + selectedMode: string // 选中模式,可选值:single , multiple,默认为 false } ` } diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.js b/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.js index 3707744c50..fe9c891be9 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.js +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.js @@ -22,8 +22,8 @@ export default { type: 'interface', code: ` interface IChartSettings { - dataType: array // 数据类型,数组的第一项为 item 的数据类型,第二项为 line 的数据类型,可选值: KMB , normal , percent - digit: number // 设置数据类型为percent时保留的位数,默认为2 + dataType: array // 数据类型,数组的第一项为 item 的数据类型,第二项为 line 的数据类型,可选值:KMB , normal , percent + digit: number // 设置数据类型为 percent 时保留的位数,默认为 2 dimension: string // 维度,默认 columns 第一项为维度 itemStyle: object // 节点矩形的样式, label: object // 每个矩形节点中文本标签的样式, diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.js b/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.js index c0c714fd6f..ebb74d4ce9 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.js +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.js @@ -34,22 +34,22 @@ interface IChartSettings { axisVisible: boolean // 是否显示坐标轴 cursor: string // 鼠标悬浮时在图形元素上时鼠标的样式 dataType: object // 数据类型 - digit: number // 设置数据类型为 percent 时保留的位数,默认为2 + digit: number // 设置数据类型为 percent 时保留的位数,默认为 2 dimension: string // 维度,默认 columns[0] labelMap: object // 设置指标的别名 legendName: object // 设置图表上方图例的别名 max: number // y 轴最大值 - metrics: array // 指标,默认[columns[0], columns[1]] + metrics: array // 指标,默认 [columns[0], columns[1]] min: number // y 轴最小值 - scale: boolean // 是否是脱离0值比例 + scale: boolean // 是否是脱离 0 值比例 symbol: string // 标记的图形 symbolOffset: array // 标记相对于原本位置的偏移 symbolRotate: number // 标记的旋转角度 symbolSize: number | array | () => void // 标记的大小 - symbolSizeMax: number // 气泡最大值,默认为50 - tooltipTrigger: string // 提示框的触发方式,可选值: item , axis + symbolSizeMax: number // 气泡最大值,默认为 50 + tooltipTrigger: string // 提示框的触发方式,可选值:item , axis xAxisName: string // x 轴标题 - xAxisType: string // x 轴类型,可选值: category , value , time , log + xAxisType: string // x 轴类型,可选值:category , value , time , log yAxisName: string // y 轴标题 } ` diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.js b/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.js index 76044d7b38..5d35f5a6c7 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.js +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.js @@ -34,8 +34,8 @@ export default { type: 'interface', code: ` interface IChartSettings { - dataType: string // 数据类型,可选值: KMB , normal , percent - digit: number // 设置数据类型为 percent 时保留的位数,默认为2 + dataType: string // 数据类型,可选值:KMB , normal , percent + digit: number // 设置数据类型为 percent 时保留的位数,默认为 2 dimension: string // 维度,默认 columns 第一项为维度 metrics: string // 指标,默认 columns 第二项为指标 remainName: string // 剩余的显示文案,默认显示其他 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.js b/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.js index 8b8cb6a693..f160e28b17 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.js +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.js @@ -37,8 +37,8 @@ interface IChartSettings { color: array[string] | string | () => void // 词云图字体颜色,默认为 "rgb(Math.round(Math.random * 160), Math.round(Math.random * 160), Math.round(Math.random * 160))" dimension: string // 维度,默认 columns[0] metrics: string // 指标,默认 columns[1] - sizeMax: number // 最大字体大小,默认为60 - sizeMin: number // 最小字体大小,默认为12 + sizeMax: number // 最大字体大小,默认为 60 + sizeMin: number // 最小字体大小,默认为 12 } ` } diff --git a/examples/sites/demos/pc/app/chart/wordcloud/demo2-composition-api.vue b/examples/sites/demos/pc/app/chart/wordcloud/demo2-composition-api.vue index cea2715dc9..8b0f6c0428 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/demo2-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/wordcloud/demo2-composition-api.vue @@ -9,14 +9,14 @@ import { ref } from 'vue' import { TinyHuichartsWordcloud as TinyChartWordcloud } from '@opentiny/vue' const options = ref({ - // 网格大小, 各文本之间距离,默认值16 + // 网格大小,各文本之间距离,默认值 16 gridSize: 5, - // 字体大小范围,默认值[16,64] + // 字体大小范围,默认值 [16,64] sizeRange: [14, 60], - // 文字旋转角度范围,默认[0,0] + // 文字旋转角度范围,默认 [0,0] rotationRange: [-90, 90], - // 文字旋转步值,默认0 + // 文字旋转步值,默认 0 rotationStep: 45, data: [ { diff --git a/examples/sites/demos/pc/app/chart/wordcloud/demo2.vue b/examples/sites/demos/pc/app/chart/wordcloud/demo2.vue index 71c5c3b0cc..a64cb2b789 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/demo2.vue +++ b/examples/sites/demos/pc/app/chart/wordcloud/demo2.vue @@ -14,14 +14,14 @@ export default { data() { return { options: { - // 网格大小, 各文本之间距离,默认值16 + // 网格大小,各文本之间距离,默认值 16 gridSize: 5, - // 字体大小范围,默认值[16,64] + // 字体大小范围,默认值 [16,64] sizeRange: [14, 60], - // 文字旋转角度范围,默认[0,0] + // 文字旋转角度范围,默认 [0,0] rotationRange: [-90, 90], - // 文字旋转步值,默认0 + // 文字旋转步值,默认 0 rotationStep: 45, data: [ { diff --git a/examples/sites/demos/pc/app/chart/wordcloud/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/wordcloud/demo3-composition-api.vue index 5a2b13c8b6..5b2cbc9dc8 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/wordcloud/demo3-composition-api.vue @@ -21,9 +21,9 @@ const options = ref({ // 网格大小,各文本之间距离,默认值 16 gridSize: 5, - // 字体大小范围, 默认值 [16,64] + // 字体大小范围,默认值 [16,64] sizeRange: [-90, 90], - // 文字旋转步值,默认0 + // 文字旋转步值,默认 0 rotationStep: 45, data: [ { diff --git a/examples/sites/demos/pc/app/chart/wordcloud/demo3.vue b/examples/sites/demos/pc/app/chart/wordcloud/demo3.vue index 325fdcf9ac..3f96bca820 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/demo3.vue +++ b/examples/sites/demos/pc/app/chart/wordcloud/demo3.vue @@ -26,9 +26,9 @@ export default { // 网格大小,各文本之间距离,默认值 16 gridSize: 5, - // 字体大小范围, 默认值 [16,64] + // 字体大小范围,默认值 [16,64] sizeRange: [-90, 90], - // 文字旋转步值,默认0 + // 文字旋转步值,默认 0 rotationStep: 45, data: [ { diff --git a/examples/sites/demos/pc/app/chart/wordcloud/demo4-composition-api.vue b/examples/sites/demos/pc/app/chart/wordcloud/demo4-composition-api.vue index 52126d455a..43e57b9bb9 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/demo4-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/wordcloud/demo4-composition-api.vue @@ -9,12 +9,12 @@ import { ref } from 'vue' import { TinyHuichartsWordcloud as TinyChartWordcloud } from '@opentiny/vue' const options = ref({ - // 网格大小,各文本之间距离,默认值16 + // 网格大小,各文本之间距离,默认值 16 gridSize: 5, - // 字体大小范围,默认值[16,64] + // 字体大小范围,默认值 [16,64] sizeRange: [14, 60], - // 文字旋转角度范围,默认[0,0] + // 文字旋转角度范围,默认 [0,0] rotationStep: 45, data: [ { diff --git a/examples/sites/demos/pc/app/chart/wordcloud/demo4.vue b/examples/sites/demos/pc/app/chart/wordcloud/demo4.vue index 65efe8292c..3f85335a58 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/demo4.vue +++ b/examples/sites/demos/pc/app/chart/wordcloud/demo4.vue @@ -14,12 +14,12 @@ export default { data() { return { options: { - // 网格大小,各文本之间距离,默认值16 + // 网格大小,各文本之间距离,默认值 16 gridSize: 5, - // 字体大小范围,默认值[16,64] + // 字体大小范围,默认值 [16,64] sizeRange: [14, 60], - // 文字旋转角度范围,默认[0,0] + // 文字旋转角度范围,默认 [0,0] rotationStep: 45, data: [ { diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-button-composition-api.vue b/examples/sites/demos/pc/app/checkbox/checkbox-button-composition-api.vue index 104a9dccc6..e9502eddf3 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-button-composition-api.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-button-composition-api.vue @@ -9,5 +9,5 @@ import { ref } from 'vue' import { TinyCheckboxButton, TinyCheckboxGroup } from '@opentiny/vue' -const checked = ref(['复选框1']) +const checked = ref(['复选框 1']) diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-button.vue b/examples/sites/demos/pc/app/checkbox/checkbox-button.vue index 0fd3d7c99a..1cda92d89e 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-button.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-button.vue @@ -15,7 +15,7 @@ export default { }, data() { return { - checked: ['复选框1'] + checked: ['复选框 1'] } } } diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-events-composition-api.vue b/examples/sites/demos/pc/app/checkbox/checkbox-events-composition-api.vue index d843eb7cc9..0e84100fa8 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-events-composition-api.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-events-composition-api.vue @@ -11,7 +11,7 @@ import { ref } from 'vue' import { TinyCheckboxButton, TinyCheckboxGroup, TinyModal } from '@opentiny/vue' -const checked = ref(['复选框1']) +const checked = ref(['复选框 1']) function valueChange(val) { TinyModal.message({ message: `change 事件触发了,选中值为:${val}`, status: 'info' }) diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-events.spec.ts b/examples/sites/demos/pc/app/checkbox/checkbox-events.spec.ts index e44cefcbfb..cb210ded8d 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-events.spec.ts +++ b/examples/sites/demos/pc/app/checkbox/checkbox-events.spec.ts @@ -8,7 +8,7 @@ test('事件', async ({ page }) => { const checkbox = demo.locator('.tiny-checkbox-group > label') await checkbox.nth(1).click() - await expect(page.getByText('change 事件触发了,选中值为:复选框1,复选框2')).toBeVisible() + await expect(page.getByText('change 事件触发了,选中值为:复选框 1,复选框 2')).toBeVisible() await checkbox.nth(0).click() - await expect(page.getByText('change 事件触发了,选中值为:复选框2')).toBeVisible() + await expect(page.getByText('change 事件触发了,选中值为:复选框 2')).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-events.vue b/examples/sites/demos/pc/app/checkbox/checkbox-events.vue index f1c78d1b8b..f8e105dfaa 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-events.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-events.vue @@ -15,7 +15,7 @@ export default { }, data() { return { - checked: ['复选框1'] + checked: ['复选框 1'] } }, methods: { diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-group-composition-api.vue b/examples/sites/demos/pc/app/checkbox/checkbox-group-composition-api.vue index f61d3418cb..3393a13f85 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-group-composition-api.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-group-composition-api.vue @@ -9,5 +9,5 @@ import { ref } from 'vue' import { TinyCheckbox, TinyCheckboxGroup } from '@opentiny/vue' -const checked = ref(['复选框1', '复选框2']) +const checked = ref(['复选框 1', '复选框 2']) diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-group.spec.ts b/examples/sites/demos/pc/app/checkbox/checkbox-group.spec.ts index 9e52e8bcec..1c260891c9 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-group.spec.ts +++ b/examples/sites/demos/pc/app/checkbox/checkbox-group.spec.ts @@ -6,7 +6,7 @@ test('复选框组', async ({ page }) => { const demo = page.locator('#checkbox-group') const group = demo.locator('.tiny-checkbox-group') - await group.first().getByText('复选框1').first().click() + await group.first().getByText('复选框 1').first().click() await expect(group.locator('label').first()).not.toHaveClass(/is-checked/) await expect(group.locator('label').nth(1)).toHaveClass(/is-checked/) }) diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-group.vue b/examples/sites/demos/pc/app/checkbox/checkbox-group.vue index 5697546428..b5f790f54f 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-group.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-group.vue @@ -15,7 +15,7 @@ export default { }, data() { return { - checked: ['复选框1', '复选框2'] + checked: ['复选框 1', '复选框 2'] } } } diff --git a/examples/sites/demos/pc/app/checkbox/checkbox-slot-composition-api.vue b/examples/sites/demos/pc/app/checkbox/checkbox-slot-composition-api.vue index d6a4b52f08..0236f6ce5a 100644 --- a/examples/sites/demos/pc/app/checkbox/checkbox-slot-composition-api.vue +++ b/examples/sites/demos/pc/app/checkbox/checkbox-slot-composition-api.vue @@ -2,12 +2,12 @@