@opentiny/vue-docs 2.2.18 → 2.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demos/apis/card.js +56 -23
- package/demos/apis/dialog-box.js +12 -5
- package/demos/apis/fall-menu.js +2 -2
- package/demos/apis/file-upload.js +2 -1
- package/demos/apis/float-button.js +211 -0
- package/demos/apis/grid.js +40 -40
- package/demos/apis/ip-address.js +3 -3
- package/demos/apis/multi-select.js +141 -22
- package/demos/apis/numeric.js +13 -0
- package/demos/apis/popeditor.js +20 -14
- package/demos/apis/search.js +11 -0
- package/demos/apis/slider.js +13 -2
- package/demos/apis/steps.js +6 -6
- package/demos/apis/tabs.js +39 -0
- package/demos/apis/time-line.js +34 -1
- package/demos/apis/time-select.js +1 -1
- package/demos/apis/tooltip.js +1 -1
- package/demos/apis/tree-menu.js +5 -5
- package/demos/mobile/app/alert/icon.vue +1 -1
- package/demos/mobile/app/alert/size.vue +1 -1
- package/demos/mobile/app/alert/slot-default.vue +8 -2
- package/demos/mobile/app/exception/buttonText.vue +4 -2
- package/demos/mobile/app/exception/exceptionClass.vue +4 -2
- package/demos/mobile/app/exception/message.vue +4 -7
- package/demos/mobile/app/exception/type.vue +4 -2
- package/demos/mobile/app/loading/background.vue +24 -0
- package/demos/mobile/app/loading/base.vue +16 -6
- package/demos/mobile/app/loading/custom-class.vue +29 -0
- package/demos/mobile/app/loading/global-registry.vue +61 -0
- package/demos/mobile/app/loading/size.vue +59 -0
- package/demos/mobile/app/loading/spinner.vue +26 -0
- package/demos/mobile/app/loading/tip-text.vue +23 -0
- package/demos/mobile/app/loading/webdoc/loading.js +155 -9
- package/demos/mobile/app/multi-select/basic-usage.vue +221 -73
- package/demos/mobile/app/multi-select/disabled.vue +174 -206
- package/demos/mobile/app/multi-select/event-click-item.vue +60 -75
- package/demos/mobile/app/multi-select/filter.vue +65 -93
- package/demos/mobile/app/multi-select/mask.vue +60 -0
- package/demos/mobile/app/multi-select/slots.vue +66 -0
- package/demos/mobile/app/multi-select/type-wheel.vue +39 -49
- package/demos/mobile/app/multi-select/webdoc/multi-select.js +49 -10
- package/demos/mobile/app/popover/base.vue +2 -3
- package/demos/mobile/app/search/base.vue +2 -2
- package/demos/mobile/app/user-head/basic-usage.vue +2 -5
- package/demos/mobile-first/app/card/basic-usage.vue +4 -2
- package/demos/mobile-first/app/card/card-type.vue +6 -12
- package/demos/mobile-first/app/card/slot.vue +2 -5
- package/demos/mobile-first/app/carousel/close-loop.vue +12 -4
- package/demos/mobile-first/app/column-list-item/basic-usage.vue +3 -7
- package/demos/mobile-first/app/column-list-item/custom-width.vue +4 -7
- package/demos/mobile-first/app/column-list-item/icon-click-event.vue +2 -5
- package/demos/mobile-first/app/column-list-item/icon-disabled.vue +2 -5
- package/demos/mobile-first/app/column-list-item/size.vue +3 -6
- package/demos/mobile-first/app/select/filter-method.vue +47 -18
- package/demos/mobile-first/app/time-line/limited-nodes.vue +29 -0
- package/demos/mobile-first/app/time-line/node-max.vue +26 -0
- package/demos/mobile-first/app/time-line/webdoc/time-line.js +26 -1
- package/demos/pc/app/alert/custom-close-composition-api.vue +7 -2
- package/demos/pc/app/alert/custom-close.spec.ts +1 -1
- package/demos/pc/app/alert/custom-close.vue +7 -2
- package/demos/pc/app/area/custom-service.spec.ts +1 -2
- package/demos/pc/app/button/ghost.spec.ts +6 -6
- package/demos/pc/app/card/basic-usage-composition-api.vue +24 -0
- package/demos/pc/app/card/basic-usage.vue +32 -0
- package/demos/pc/app/card/card-disabled-composition-api.vue +45 -0
- package/demos/pc/app/card/card-disabled.vue +53 -0
- package/demos/pc/app/card/card-events-composition-api.vue +66 -0
- package/demos/pc/app/card/card-events.vue +75 -0
- package/demos/pc/app/card/card-group-composition-api.vue +69 -0
- package/demos/pc/app/card/card-group.vue +79 -0
- package/demos/pc/app/card/card-size-composition-api.vue +59 -0
- package/demos/pc/app/card/card-size.vue +67 -0
- package/demos/pc/app/card/card-status-composition-api.vue +49 -0
- package/demos/pc/app/card/card-status.vue +58 -0
- package/demos/pc/app/card/card-type-composition-api.vue +47 -0
- package/demos/pc/app/card/card-type.vue +55 -0
- package/demos/pc/app/card/check-type-checkbox-composition-api.vue +31 -0
- package/demos/pc/app/card/check-type-checkbox.vue +40 -0
- package/demos/pc/app/card/check-type-radio-composition-api.vue +31 -0
- package/demos/pc/app/card/check-type-radio.vue +39 -0
- package/demos/pc/app/card/custom-class-composition-api.vue +51 -0
- package/demos/pc/app/card/custom-class.vue +59 -0
- package/demos/pc/app/card/operate-bar-composition-api.vue +53 -0
- package/demos/pc/app/card/operate-bar.vue +60 -0
- package/demos/pc/app/card/slot-composition-api.vue +67 -0
- package/demos/pc/app/card/slot.vue +76 -0
- package/demos/pc/app/card/webdoc/card.cn.md +7 -0
- package/demos/pc/app/card/webdoc/card.en.md +7 -0
- package/demos/pc/app/card/webdoc/card.js +148 -0
- package/demos/pc/app/carousel/basic-usage.spec.ts +3 -3
- package/demos/pc/app/carousel/card-mode.spec.ts +4 -11
- package/demos/pc/app/carousel/carousel-arrow-hover.spec.ts +5 -7
- package/demos/pc/app/carousel/carousel-events.spec.ts +7 -16
- package/demos/pc/app/carousel/manual-play.spec.ts +0 -2
- package/demos/pc/app/carousel/play-interval.spec.ts +1 -4
- package/demos/pc/app/cascader/auto-load-checkStrictly.spec.ts +1 -1
- package/demos/pc/app/cascader/auto-load.spec.ts +5 -2
- package/demos/pc/app/color-picker/base.spec.ts +2 -2
- package/demos/pc/app/color-picker/event.spec.ts +1 -1
- package/demos/pc/app/color-picker/history.spec.ts +2 -6
- package/demos/pc/app/color-picker/predefine.spec.ts +2 -5
- package/demos/pc/app/company/basic-usage.spec.ts +3 -6
- package/demos/pc/app/company/custom-service.spec.ts +4 -8
- package/demos/pc/app/country/custom-service.spec.js +4 -4
- package/demos/pc/app/country/fields.spec.js +2 -2
- package/demos/pc/app/crop/aspect-ratio.spec.ts +1 -2
- package/demos/pc/app/crop/auto-crop-area.spec.ts +1 -4
- package/demos/pc/app/crop/basic-usage.spec.ts +0 -2
- package/demos/pc/app/crop/crop-meth.spec.ts +0 -2
- package/demos/pc/app/crop/event-ready.spec.ts +0 -1
- package/demos/pc/app/crop/get-container-data.spec.ts +0 -1
- package/demos/pc/app/crop/get-crop-box-data.spec.ts +0 -2
- package/demos/pc/app/crop/get-data.spec.ts +0 -1
- package/demos/pc/app/crop/min-crop-box-width-height.spec.ts +0 -2
- package/demos/pc/app/crop/no-background.spec.ts +0 -1
- package/demos/pc/app/crop/no-modal.spec.ts +0 -2
- package/demos/pc/app/crop/replace-image.spec.ts +4 -5
- package/demos/pc/app/crop/view-mode.spec.ts +1 -16
- package/demos/pc/app/date-picker/align.spec.ts +17 -14
- package/demos/pc/app/date-picker/basic-usage.spec.ts +17 -22
- package/demos/pc/app/date-picker/clear.spec.ts +13 -7
- package/demos/pc/app/date-picker/date-range.spec.ts +39 -10
- package/demos/pc/app/date-picker/events.spec.ts +11 -3
- package/demos/pc/app/date-picker/format.spec.ts +2 -2
- package/demos/pc/app/date-picker/shortcuts.spec.ts +1 -2
- package/demos/pc/app/dept/custom-service.spec.ts +16 -4
- package/demos/pc/app/detail-page/basic-usage.spec.ts +4 -4
- package/demos/pc/app/dialog-box/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/basic-usage.vue +1 -1
- package/demos/pc/app/dialog-box/center-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/center.vue +1 -1
- package/demos/pc/app/dialog-box/close-on-click-modal-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/close-on-click-modal.vue +1 -1
- package/demos/pc/app/dialog-box/close-on-press-escape-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/close-on-press-escape.vue +1 -1
- package/demos/pc/app/dialog-box/custom-dialog-content-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/custom-dialog-content.vue +1 -1
- package/demos/pc/app/dialog-box/custom-dialog-footer-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-footer.spec.ts +1 -1
- package/demos/pc/app/dialog-box/custom-dialog-title-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-title.spec.ts +1 -1
- package/demos/pc/app/dialog-box/custom-dialog-title.vue +2 -2
- package/demos/pc/app/dialog-box/dialog-top-height-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/dialog-top-height.vue +2 -2
- package/demos/pc/app/dialog-box/dialog-width-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/dialog-width.vue +2 -2
- package/demos/pc/app/dialog-box/draggable-composition-api.vue +15 -3
- package/demos/pc/app/dialog-box/draggable.spec.ts +2 -2
- package/demos/pc/app/dialog-box/draggable.vue +15 -3
- package/demos/pc/app/dialog-box/form-in-dialog.spec.ts +0 -1
- package/demos/pc/app/dialog-box/open-close-events-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/open-close-events.vue +1 -1
- package/demos/pc/app/dialog-box/webdoc/dialog-box.js +2 -2
- package/demos/pc/app/drawer/tips-props-composition-api.vue +23 -0
- package/demos/pc/app/drawer/tips-props.spec.ts +15 -0
- package/demos/pc/app/drawer/tips-props.vue +33 -0
- package/demos/pc/app/drawer/webdoc/drawer.js +10 -12
- package/demos/pc/app/drop-roles/custom-service.spec.ts +1 -1
- package/demos/pc/app/file-upload/custom-prefix.spec.ts +1 -1
- package/demos/pc/app/file-upload/file-picture-card.spec.ts +1 -1
- package/demos/pc/app/file-upload/manual-upload.spec.ts +1 -1
- package/demos/pc/app/file-upload/picture-card.spec.ts +3 -2
- package/demos/pc/app/file-upload/picture-list.spec.ts +3 -3
- package/demos/pc/app/file-upload/upload-file-list.spec.ts +1 -1
- package/demos/pc/app/file-upload/upload-request.spec.ts +11 -6
- package/demos/pc/app/float-button/backTop-composition-api.vue +40 -0
- package/demos/pc/app/float-button/backTop.vue +51 -0
- package/demos/pc/app/float-button/basic-usage-composition-api.vue +39 -0
- package/demos/pc/app/float-button/basic-usage.vue +48 -0
- package/demos/pc/app/float-button/icon-composition-api.vue +21 -0
- package/demos/pc/app/float-button/icon.vue +31 -0
- package/demos/pc/app/float-button/jump-composition-api.vue +19 -0
- package/demos/pc/app/float-button/jump.vue +26 -0
- package/demos/pc/app/float-button/reset-time-composition-api.vue +22 -0
- package/demos/pc/app/float-button/reset-time.vue +26 -0
- package/demos/pc/app/float-button/trigger-composition-api.vue +31 -0
- package/demos/pc/app/float-button/trigger.vue +40 -0
- package/demos/pc/app/float-button/webdoc/float-button.cn.md +7 -0
- package/demos/pc/app/float-button/webdoc/float-button.en.md +7 -0
- package/demos/pc/app/float-button/webdoc/float-button.js +68 -0
- package/demos/pc/app/floatbar/base.spec.ts +1 -1
- package/demos/pc/app/floatbar/custom-floatbar-item.spec.ts +1 -1
- package/demos/pc/app/floatbar/custom-style.spec.ts +1 -1
- package/demos/pc/app/floatbar/operation-floatbar-item.spec.ts +1 -1
- package/demos/pc/app/form/form-row-col.spec.js +2 -0
- package/demos/pc/app/form/label-position.spec.ts +3 -3
- package/demos/pc/app/grid/custom/ordercolumn-local.spec.js +2 -2
- package/demos/pc/app/grid/data-source/static-data-composition-api.vue +1 -1
- package/demos/pc/app/grid/data-source/static-data.spec.js +1 -1
- package/demos/pc/app/grid/data-source/static-data.vue +1 -1
- package/demos/pc/app/grid/edit/grid-equals-composition-api.vue +50 -0
- package/demos/pc/app/grid/edit/grid-equals.spec.js +10 -0
- package/demos/pc/app/grid/edit/grid-equals.vue +60 -0
- package/demos/pc/app/grid/edit/has-row-change.spec.js +2 -2
- package/demos/pc/app/grid/edit/trigger-mode-hm-editing-composition-api.vue +11 -11
- package/demos/pc/app/grid/editor/mutil-render.spec.js +1 -1
- package/demos/pc/app/grid/event/get-row-method.spec.js +4 -4
- package/demos/pc/app/grid/filter/server-filter.spec.js +1 -1
- package/demos/pc/app/grid/fixed/left-fixed.vue +1 -1
- package/demos/pc/app/grid/large-data/column-anchor.vue +132 -0
- package/demos/pc/app/grid/large-data/scroll-to.spec.js +1 -1
- package/demos/pc/app/grid/loading/grid-loading-tip.spec.js +1 -1
- package/demos/pc/app/grid/pager/show-save-msg-composition-api.vue +1 -1
- package/demos/pc/app/grid/pager/show-save-msg.vue +1 -1
- package/demos/pc/app/grid/renderer/inner-renderer-date-composition-api.vue +40 -0
- package/demos/pc/app/grid/renderer/inner-renderer-date.spec.js +9 -0
- package/demos/pc/app/grid/renderer/inner-renderer-date.vue +50 -0
- package/demos/pc/app/grid/size/grid-size-composition-api.vue +33 -26
- package/demos/pc/app/grid/size/grid-size.spec.js +7 -3
- package/demos/pc/app/grid/size/grid-size.vue +34 -26
- package/demos/pc/app/grid/sort/sort.vue +0 -1
- package/demos/pc/app/grid/toolbar/grid-full-screen-teleport-composition-api.vue +65 -0
- package/demos/pc/app/grid/toolbar/grid-full-screen-teleport.spec.js +10 -0
- package/demos/pc/app/grid/toolbar/grid-full-screen-teleport.vue +73 -0
- package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.spec.js +1 -1
- package/demos/pc/app/grid/validation/before-submit-validation.spec.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-edit.js +11 -0
- package/demos/pc/app/grid/webdoc/grid-large-data.js +1 -49
- package/demos/pc/app/grid/webdoc/grid-renderer.js +11 -0
- package/demos/pc/app/grid/webdoc/grid-toolbar.js +10 -1
- package/demos/pc/app/guide/basic-usage.spec.ts +3 -2
- package/demos/pc/app/guide/offset.spec.ts +3 -1
- package/demos/pc/app/hrapprover/basic-usage.spec.ts +2 -6
- package/demos/pc/app/hrapprover/custom-service.spec.ts +5 -2
- package/demos/pc/app/hrapprover/disabled.spec.ts +1 -1
- package/demos/pc/app/ip-address/delimiter.spec.ts +1 -1
- package/demos/pc/app/loading/webdoc/loading.js +1 -1
- package/demos/pc/app/locales/custom-service.spec.ts +0 -3
- package/demos/pc/app/logout/basic-usage.spec.ts +5 -5
- package/demos/pc/app/milestone/show-number.spec.ts +1 -1
- package/demos/pc/app/milestone/solid-style.spec.ts +1 -1
- package/demos/pc/app/modal/basic-usage.spec.ts +1 -1
- package/demos/pc/app/modal/duration.spec.ts +1 -2
- package/demos/pc/app/modal/{min-width-composition-api.vue → min-width-height-composition-api.vue} +4 -2
- package/demos/pc/app/modal/{min-width.spec.ts → min-width-height.spec.ts} +3 -3
- package/demos/pc/app/modal/{min-width.vue → min-width-height.vue} +4 -2
- package/demos/pc/app/modal/prop-slots-composition-api.vue +2 -2
- package/demos/pc/app/modal/show-header-footer-composition-api.vue +11 -0
- package/demos/pc/app/modal/{showHeader.spec.ts → show-header-footer.spec.ts} +3 -3
- package/demos/pc/app/modal/{showHeader.vue → show-header-footer.vue} +2 -2
- package/demos/pc/app/modal/webdoc/modal.js +12 -36
- package/demos/pc/app/notify/closeIcon.spec.ts +1 -1
- package/demos/pc/app/numeric/change-event-composition-api.vue +9 -2
- package/demos/pc/app/numeric/change-event.vue +10 -3
- package/demos/pc/app/numeric/dynamic-disabled-composition-api.vue +10 -2
- package/demos/pc/app/numeric/dynamic-disabled.spec.ts +1 -1
- package/demos/pc/app/numeric/dynamic-disabled.vue +11 -3
- package/demos/pc/app/numeric/precision-composition-api.vue +1 -1
- package/demos/pc/app/numeric/precision.spec.ts +10 -11
- package/demos/pc/app/pager/before-page-change.spec.ts +1 -1
- package/demos/pc/app/pager/disabled-and-size.spec.ts +1 -1
- package/demos/pc/app/pop-upload/basic-usage.spec.ts +1 -1
- package/demos/pc/app/pop-upload/custom-request-headers.spec.ts +1 -1
- package/demos/pc/app/popeditor/condition-form-composition-api.vue +0 -1
- package/demos/pc/app/popeditor/condition-form.vue +0 -1
- package/demos/pc/app/popeditor/events-composition-api.vue +8 -2
- package/demos/pc/app/popeditor/events.vue +8 -2
- package/demos/pc/app/popeditor/webdoc/popeditor.js +9 -9
- package/demos/pc/app/popover/webdoc/popover.js +69 -28
- package/demos/pc/app/radio/group-options-composition-api.vue +1 -1
- package/demos/pc/app/rate/custom-3-threshold-colors.spec.js +0 -13
- package/demos/pc/app/rate/custom-3-threshold-icon.spec.js +5 -5
- package/demos/pc/app/rate/disabled-not-selected-class.spec.js +1 -1
- package/demos/pc/app/rate/not-selected-class.spec.js +1 -1
- package/demos/pc/app/rate/threshold-value.spec.js +0 -13
- package/demos/pc/app/search/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/search/basic-usage.vue +1 -1
- package/demos/pc/app/search/webdoc/search.js +3 -2
- package/demos/pc/app/select/copy-multi.spec.ts +6 -5
- package/demos/pc/app/select/copy-single.spec.ts +7 -4
- package/demos/pc/app/select/events.spec.ts +2 -2
- package/demos/pc/app/select/optimization.spec.ts +3 -7
- package/demos/pc/app/select/option-group-composition-api.vue +2 -2
- package/demos/pc/app/select/option-group.vue +2 -2
- package/demos/pc/app/select/searchable.spec.ts +1 -1
- package/demos/pc/app/select/size.spec.ts +1 -1
- package/demos/pc/app/select/tag-type-composition-api.vue +1 -1
- package/demos/pc/app/select/tag-type.spec.ts +1 -1
- package/demos/pc/app/select/tag-type.vue +1 -1
- package/demos/pc/app/slide-bar/basic-usage.spec.ts +0 -5
- package/demos/pc/app/slide-bar/wheel-blocks.spec.ts +2 -6
- package/demos/pc/app/slider/marks-composition-api.vue +20 -0
- package/demos/pc/app/slider/marks.spec.ts +12 -0
- package/demos/pc/app/slider/marks.vue +27 -0
- package/demos/pc/app/slider/show-input-composition-api.vue +2 -0
- package/demos/pc/app/slider/show-input.vue +3 -1
- package/demos/pc/app/slider/show-iput.spec.ts +14 -4
- package/demos/pc/app/slider/webdoc/slider.js +12 -0
- package/demos/pc/app/steps/advanced-steps-composition-api.vue +2 -2
- package/demos/pc/app/steps/advanced-steps.spec.ts +3 -3
- package/demos/pc/app/steps/advanced-steps.vue +2 -2
- package/demos/pc/app/steps/click-composition-api.vue +3 -10
- package/demos/pc/app/steps/click.vue +4 -12
- package/demos/pc/app/steps/line-horizontal-composition-api.vue +1 -1
- package/demos/pc/app/steps/line-horizontal.vue +1 -1
- package/demos/pc/app/steps/line-vertical-composition-api.vue +1 -1
- package/demos/pc/app/steps/line-vertical.vue +1 -1
- package/demos/pc/app/tabs/overflow-title-composition-api.vue +19 -0
- package/demos/pc/app/tabs/overflow-title.vue +28 -0
- package/demos/pc/app/tabs/tabs-events-close-composition-api.vue +5 -1
- package/demos/pc/app/tabs/tabs-events-close.vue +5 -1
- package/demos/pc/app/tabs/webdoc/tabs.js +18 -4
- package/demos/pc/app/tag/delete.spec.ts +3 -3
- package/demos/pc/app/time-line/shape-composition-api.vue +5 -2
- package/demos/pc/app/time-line/shape.spec.ts +2 -0
- package/demos/pc/app/time-line/shape.vue +5 -1
- package/demos/pc/app/time-line/show-divider-composition-api.vue +1 -1
- package/demos/pc/app/time-line/show-divider.vue +1 -1
- package/demos/pc/app/time-picker/disabled.spec.ts +9 -1
- package/demos/pc/app/time-picker/event.spec.ts +1 -2
- package/demos/pc/app/time-picker/format.spec.ts +10 -3
- package/demos/pc/app/time-picker/step.spec.ts +4 -1
- package/demos/pc/app/time-select/basic-usage.spec.ts +1 -1
- package/demos/pc/app/time-select/clear-icon.spec.ts +1 -1
- package/demos/pc/app/time-select/default-value.spec.ts +1 -1
- package/demos/pc/app/time-select/event-blur-composition-api.vue +3 -3
- package/demos/pc/app/time-select/event-blur.spec.ts +1 -1
- package/demos/pc/app/time-select/event-blur.vue +3 -3
- package/demos/pc/app/time-select/focus-composition-api.vue +1 -1
- package/demos/pc/app/time-select/focus.spec.ts +2 -3
- package/demos/pc/app/time-select/focus.vue +1 -1
- package/demos/pc/app/time-select/range-placeholder.spec.ts +2 -2
- package/demos/pc/app/tooltip/theme-composition-api.vue +28 -26
- package/demos/pc/app/tooltip/theme.vue +28 -26
- package/demos/pc/app/tooltip/webdoc/tooltip.js +55 -29
- package/demos/pc/app/transfer/webdoc/transfer.js +130 -44
- package/demos/pc/app/tree/webdoc/tree.js +319 -68
- package/demos/pc/app/tree-menu/basic-usage.spec.ts +0 -1
- package/demos/pc/app/tree-menu/props.spec.ts +2 -1
- package/demos/pc/app/user/custom-service.spec.ts +1 -1
- package/demos/pc/app/user-account/custom-service.spec.ts +2 -8
- package/demos/pc/app/user-contact/contact-espace-composition-api.vue +1 -0
- package/demos/pc/app/user-link/custom-service.spec.ts +2 -2
- package/demos/pc/app/watermark/webdoc/watermark.js +1 -1
- package/demos/pc/menus.js +2 -1
- package/demos/pc/resource/newVars.json +2 -2
- package/demos/pc/webdoc/changelog.md +138 -0
- package/demos/pc/webdoc/import-components-en.md +40 -2
- package/demos/pc/webdoc/import-components.md +40 -2
- package/package.json +11 -11
- package/playground/App.vue +2 -2
- package/src/App.vue +3 -2
- package/src/const.ts +27 -0
- package/src/router.js +5 -3
- package/src/tools/useTheme.js +60 -50
- package/src/views/components/components.vue +12 -33
- package/src/views/components/demo.vue +4 -4
- package/src/views/layout/layout.vue +6 -6
- package/src/views/overview.vue +6 -3
- package/demos/pc/app/credit-card-form/background-image.spec.ts +0 -10
- package/demos/pc/app/credit-card-form/basic-usage.spec.ts +0 -13
- package/demos/pc/app/credit-card-form/credit-card-form-events.spec.ts +0 -18
- package/demos/pc/app/drawer/default-slot-composition-api.vue +0 -25
- package/demos/pc/app/drawer/default-slot.spec.ts +0 -11
- package/demos/pc/app/drawer/default-slot.vue +0 -35
- package/demos/pc/app/font/Font-usage-specifications.spec.js +0 -41
- package/demos/pc/app/font/chinese-font-set.spec.js +0 -10
- package/demos/pc/app/font/english-fonts.spec.js +0 -10
- package/demos/pc/app/hrapprover/category-type.spec.ts +0 -13
- package/demos/pc/app/modal/min-height-composition-api.vue +0 -16
- package/demos/pc/app/modal/min-height.spec.ts +0 -21
- package/demos/pc/app/modal/min-height.vue +0 -23
- package/demos/pc/app/modal/showFooter-composition-api.vue +0 -11
- package/demos/pc/app/modal/showFooter.spec.ts +0 -10
- package/demos/pc/app/modal/showFooter.vue +0 -18
- package/demos/pc/app/modal/showHeader-composition-api.vue +0 -11
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { test, expect } from '@playwright/test'
|
|
2
2
|
|
|
3
|
-
test('
|
|
3
|
+
test('控制显示头部及底部', async ({ page }) => {
|
|
4
4
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
-
await page.goto('modal#
|
|
5
|
+
await page.goto('modal#show-header-footer')
|
|
6
6
|
|
|
7
7
|
const modal = page.locator('.tiny-modal.active')
|
|
8
|
-
await page.getByRole('button', { name:
|
|
8
|
+
await page.getByRole('button', { name: /控制显示头部及底部/ }).click()
|
|
9
9
|
await expect(modal.locator('.tiny-modal__header')).not.toBeVisible()
|
|
10
10
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<tiny-button @click="btnClick" :reset-time="0"
|
|
2
|
+
<tiny-button @click="btnClick" :reset-time="0">控制显示头部及底部</tiny-button>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
methods: {
|
|
13
13
|
btnClick() {
|
|
14
|
-
Modal.alert({ message: '
|
|
14
|
+
Modal.alert({ message: '控制显示头部及底部', showHeader: false, showFooter: true })
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -161,56 +161,32 @@ export default {
|
|
|
161
161
|
codeFiles: ['resize.vue']
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
demoId: 'min-width',
|
|
164
|
+
demoId: 'min-width-height',
|
|
165
165
|
name: {
|
|
166
|
-
'zh-CN': '
|
|
167
|
-
'en-US': '
|
|
166
|
+
'zh-CN': '调整窗口后的最小宽高度',
|
|
167
|
+
'en-US': 'Minimum width and height after adjusting the window'
|
|
168
168
|
},
|
|
169
169
|
desc: {
|
|
170
170
|
'zh-CN':
|
|
171
|
-
'<p>可通过<code>resize</code>属性设置可拖拽属性为<code>true</code>后,<code>min-width</code>属性设置拖拽后窗口的最小宽度。</p>',
|
|
171
|
+
'<p>可通过<code>resize</code>属性设置可拖拽属性为<code>true</code>后,<code>min-height</code>属性设置拖拽后窗口的最小高度,<code>min-width</code>属性设置拖拽后窗口的最小宽度。</p>',
|
|
172
172
|
'en-US':
|
|
173
|
-
'<
|
|
173
|
+
'The<code>resize</code>property can be used to set the drag property to<code>true</code>. The<code>min-height</code>property sets the minimum height of the window after dragging, and the<code>min-width</code>property sets the minimum width of the window after dragging.'
|
|
174
174
|
},
|
|
175
|
-
codeFiles: ['min-width.vue']
|
|
175
|
+
codeFiles: ['min-width-height.vue']
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
demoId: '
|
|
178
|
+
demoId: 'show-header-footer',
|
|
179
179
|
name: {
|
|
180
|
-
'zh-CN': '
|
|
181
|
-
'en-US': '
|
|
180
|
+
'zh-CN': '控制显示头部及底部',
|
|
181
|
+
'en-US': 'Do Not Display Header and Bottom'
|
|
182
182
|
},
|
|
183
183
|
desc: {
|
|
184
184
|
'zh-CN':
|
|
185
|
-
'<p>可通过<code>
|
|
185
|
+
'<p>可通过<code>show-footer</code>属性设置是否显示底部,<code>show-header</code>属性设置是否显示头部。</p>',
|
|
186
186
|
'en-US':
|
|
187
|
-
'
|
|
187
|
+
'Set whether to display the bottom through the<code>show-footer</code>attribute, and whether to display the head through the<code>show-header</code>attribute.'
|
|
188
188
|
},
|
|
189
|
-
codeFiles: ['
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
demoId: 'showFooter',
|
|
193
|
-
name: {
|
|
194
|
-
'zh-CN': '不显示底部',
|
|
195
|
-
'en-US': 'Do Not Display Bottom'
|
|
196
|
-
},
|
|
197
|
-
desc: {
|
|
198
|
-
'zh-CN': '<p>可通过<code>show-footer</code>属性设置是否显示底部。</p>',
|
|
199
|
-
'en-US': '<p>Set whether to display the bottom through<code>show-root</code>.</p>'
|
|
200
|
-
},
|
|
201
|
-
codeFiles: ['showFooter.vue']
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
demoId: 'showHeader',
|
|
205
|
-
name: {
|
|
206
|
-
'zh-CN': '不显示头部',
|
|
207
|
-
'en-US': 'Do Not Display The Head'
|
|
208
|
-
},
|
|
209
|
-
desc: {
|
|
210
|
-
'zh-CN': '<p>可通过<code>show-header</code>属性设置是否显示头部。</p>',
|
|
211
|
-
'en-US': '<p>Set whether to display the header through<code>show-header</code>.</p>'
|
|
212
|
-
},
|
|
213
|
-
codeFiles: ['showHeader.vue']
|
|
189
|
+
codeFiles: ['show-header-footer.vue']
|
|
214
190
|
},
|
|
215
191
|
{
|
|
216
192
|
demoId: 'status',
|
|
@@ -4,7 +4,7 @@ test('自定义关闭图标', async ({ page }) => {
|
|
|
4
4
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
5
|
await page.goto('notify#closeIcon')
|
|
6
6
|
await page.getByRole('button', { name: '自定义关闭图标' }).click()
|
|
7
|
-
const svg = page.locator('.tiny-notify__icon-close > .tiny-svg >
|
|
7
|
+
const svg = page.locator('.tiny-notify__icon-close > .tiny-svg > path')
|
|
8
8
|
await expect(svg).toHaveAttribute(
|
|
9
9
|
'd',
|
|
10
10
|
'M3 1h18c.9 0 2 1.1 2 2v18c0 .9-1 2-2 2H3c-.9 0-2-1.1-2-2V3c0-.9 1.1-2 2-2zm0 2v18h18V3H3zm13.8 4.2c.3.3.3.9 0 1.2L13.2 12l3.6 3.6c.3.3.3.9 0 1.2-.2.2-.4.2-.6.2-.2 0-.4-.1-.6-.2L12 13.2l-3.6 3.6c-.1.1-.4.2-.6.2s-.4-.1-.6-.2c-.3-.3-.3-.9 0-1.2l3.6-3.6-3.6-3.6c-.3-.3-.3-.9 0-1.2.3-.3.9-.3 1.2 0l3.6 3.6 3.6-3.6c.3-.3.8-.3 1.2 0z'
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<div style="display: flex">
|
|
3
|
+
<tiny-numeric :change-compat="false" v-model="value" @change="onChange"></tiny-numeric>
|
|
4
|
+
<tiny-button @click="clickChange">修改</tiny-button>
|
|
5
|
+
</div>
|
|
3
6
|
</template>
|
|
4
7
|
|
|
5
8
|
<script setup lang="ts">
|
|
6
9
|
import { ref } from 'vue'
|
|
7
|
-
import { Numeric as TinyNumeric, Modal } from '@opentiny/vue'
|
|
10
|
+
import { Numeric as TinyNumeric, Modal, Button as TinyButton } from '@opentiny/vue'
|
|
8
11
|
|
|
9
12
|
const value = ref(1)
|
|
10
13
|
|
|
@@ -14,4 +17,8 @@ const onChange = (newVal: number, oldVal: number) => {
|
|
|
14
17
|
status: 'info'
|
|
15
18
|
})
|
|
16
19
|
}
|
|
20
|
+
|
|
21
|
+
const clickChange = () => {
|
|
22
|
+
value.value = 22
|
|
23
|
+
}
|
|
17
24
|
</script>
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<div style="display: flex">
|
|
3
|
+
<tiny-numeric :change-compat="false" v-model="value" @change="onChange"></tiny-numeric>
|
|
4
|
+
<tiny-button @click="clickChange">修改</tiny-button>
|
|
5
|
+
</div>
|
|
3
6
|
</template>
|
|
4
7
|
|
|
5
8
|
<script lang="ts">
|
|
6
|
-
import { Numeric, Modal } from '@opentiny/vue'
|
|
9
|
+
import { Numeric, Modal, Button } from '@opentiny/vue'
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
components: {
|
|
10
|
-
TinyNumeric: Numeric
|
|
13
|
+
TinyNumeric: Numeric,
|
|
14
|
+
TinyButton: Button
|
|
11
15
|
},
|
|
12
16
|
data() {
|
|
13
17
|
return {
|
|
@@ -20,6 +24,9 @@ export default {
|
|
|
20
24
|
message: '新值:' + newVal + ',旧值:' + oldVal,
|
|
21
25
|
status: 'info'
|
|
22
26
|
})
|
|
27
|
+
},
|
|
28
|
+
clickChange() {
|
|
29
|
+
this.value = 22
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<div class="f-r f-box-center">
|
|
3
|
+
<span>全部禁用:</span>
|
|
4
|
+
<tiny-numeric v-model="value1" :disabled="disabled" class="mr20"></tiny-numeric>
|
|
5
|
+
<span>部分禁用:</span>
|
|
6
|
+
<tiny-numeric v-model="value2" :min="min" :max="max"></tiny-numeric>
|
|
7
|
+
</div>
|
|
3
8
|
</template>
|
|
4
9
|
|
|
5
10
|
<script setup lang="ts">
|
|
6
11
|
import { ref } from 'vue'
|
|
7
12
|
import { Numeric as TinyNumeric } from '@opentiny/vue'
|
|
8
13
|
|
|
9
|
-
const
|
|
14
|
+
const value1 = ref(1)
|
|
15
|
+
const value2 = ref(0)
|
|
10
16
|
const disabled = ref(true)
|
|
17
|
+
const min = ref(0)
|
|
18
|
+
const max = ref(10)
|
|
11
19
|
</script>
|
|
@@ -4,7 +4,7 @@ test('禁用', async ({ page }) => {
|
|
|
4
4
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
5
|
await page.goto('numeric#dynamic-disabled')
|
|
6
6
|
|
|
7
|
-
const numeric = page.locator('.tiny-numeric')
|
|
7
|
+
const numeric = page.locator('.tiny-numeric').first()
|
|
8
8
|
const numericInput = numeric.locator('.tiny-numeric__input-inner')
|
|
9
9
|
await expect(numeric).toHaveClass(/is-disabled/)
|
|
10
10
|
await expect(numericInput).toBeDisabled()
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<div class="f-r f-box-center">
|
|
3
|
+
<span>全部禁用:</span>
|
|
4
|
+
<tiny-numeric v-model="value1" :disabled="disabled" class="mr20"></tiny-numeric>
|
|
5
|
+
<span>部分禁用:</span>
|
|
6
|
+
<tiny-numeric v-model="value2" :min="min" :max="max"></tiny-numeric>
|
|
7
|
+
</div>
|
|
3
8
|
</template>
|
|
4
9
|
|
|
5
10
|
<script lang="ts">
|
|
@@ -11,8 +16,11 @@ export default {
|
|
|
11
16
|
},
|
|
12
17
|
data() {
|
|
13
18
|
return {
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
value1: 1,
|
|
20
|
+
value2: 0,
|
|
21
|
+
disabled: true,
|
|
22
|
+
min: 0,
|
|
23
|
+
max: 10
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<p>1、数值精度</p>
|
|
3
|
-
<tiny-numeric v-model="value" :precision="precision"
|
|
3
|
+
<tiny-numeric v-model="value" :precision="precision"></tiny-numeric>
|
|
4
4
|
<p>2、数值格式</p>
|
|
5
5
|
<tiny-numeric style="width: 300px" v-model="value1" :format="format"></tiny-numeric>
|
|
6
6
|
</template>
|
|
@@ -4,19 +4,18 @@ test('数值精度', async ({ page }) => {
|
|
|
4
4
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
5
|
await page.goto('numeric#precision')
|
|
6
6
|
|
|
7
|
-
const numericInput = page.getByRole('spinbutton')
|
|
8
|
-
await numericInput.fill('2.2222')
|
|
9
|
-
await numericInput.blur()
|
|
7
|
+
const numericInput = page.getByRole('spinbutton').first()
|
|
10
8
|
let actualValue = await numericInput.inputValue()
|
|
11
|
-
expect(actualValue).toEqual('2.22')
|
|
12
9
|
|
|
13
|
-
await
|
|
10
|
+
await page.locator('#precision').getByRole('button').nth(1).click()
|
|
11
|
+
await page.locator('#precision').getByRole('button').first().click()
|
|
14
12
|
await numericInput.blur()
|
|
15
|
-
actualValue
|
|
16
|
-
expect(actualValue).toEqual('8.89')
|
|
13
|
+
expect(actualValue).toEqual('1.00')
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
await
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
const numericFormatInput = page.getByRole('spinbutton').nth(1)
|
|
16
|
+
let actualFormatValue = await numericFormatInput.inputValue()
|
|
17
|
+
await page.locator('#precision').getByRole('button').nth(3).click()
|
|
18
|
+
await page.locator('#precision').getByRole('button').nth(2).click()
|
|
19
|
+
await numericFormatInput.blur()
|
|
20
|
+
expect(actualFormatValue).toEqual('$12,34,56,879.4455@')
|
|
22
21
|
})
|
|
@@ -9,7 +9,7 @@ test('分页变更前置处理', async ({ page }) => {
|
|
|
9
9
|
const prev = pager.locator('.tiny-pager__btn-prev')
|
|
10
10
|
const next = pager.locator('.tiny-pager__btn-next')
|
|
11
11
|
const tipModal = page.locator('.tiny-modal__box').filter({ hasText: '消息提示' })
|
|
12
|
-
const confirmBtn = tipModal.getByRole('button', { name: '
|
|
12
|
+
const confirmBtn = tipModal.getByRole('button', { name: '确定' })
|
|
13
13
|
|
|
14
14
|
await pager.locator('li').getByText('6').click()
|
|
15
15
|
await expect(tipModal).toBeVisible()
|
|
@@ -13,7 +13,7 @@ test('禁用和尺寸', async ({ page }) => {
|
|
|
13
13
|
|
|
14
14
|
await demo.locator('.tiny-switch').click()
|
|
15
15
|
await expect(sizeChange).toHaveCSS('color', 'rgb(138, 142, 153)')
|
|
16
|
-
await expect(sizeChange).toHaveCSS('border-top-color', '
|
|
16
|
+
await expect(sizeChange).toHaveCSS('border-top-color', 'rgba(0, 0, 0, 0)')
|
|
17
17
|
await expect(prev).toBeDisabled()
|
|
18
18
|
await expect(next).toBeDisabled()
|
|
19
19
|
await expect(pageItem.first()).toHaveCSS('cursor', 'not-allowed')
|
|
@@ -21,5 +21,5 @@ test('PopUpload 自定义请求头', async ({ page }) => {
|
|
|
21
21
|
const { authorization } = await request.headers()
|
|
22
22
|
|
|
23
23
|
await expect(request.headers()).not.toBeNull()
|
|
24
|
-
await expect(authorization).
|
|
24
|
+
await expect(authorization).toBeUndefined()
|
|
25
25
|
})
|
|
@@ -124,10 +124,16 @@ function handlePageChange(val) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
function handlePopup() {
|
|
127
|
-
Modal.message(
|
|
127
|
+
Modal.message({
|
|
128
|
+
message: 'popup 弹窗打开事件',
|
|
129
|
+
status: 'info'
|
|
130
|
+
})
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
function handleClose() {
|
|
131
|
-
Modal.message(
|
|
134
|
+
Modal.message({
|
|
135
|
+
message: 'close 弹窗关闭事件',
|
|
136
|
+
status: 'info'
|
|
137
|
+
})
|
|
132
138
|
}
|
|
133
139
|
</script>
|
|
@@ -130,10 +130,16 @@ export default {
|
|
|
130
130
|
this.gridOp.data = dataset.slice(offset, offset + this.pagerOp.pageSize)
|
|
131
131
|
},
|
|
132
132
|
handlePopup() {
|
|
133
|
-
Modal.message(
|
|
133
|
+
Modal.message({
|
|
134
|
+
message: 'popup 弹窗打开事件',
|
|
135
|
+
status: 'info'
|
|
136
|
+
})
|
|
134
137
|
},
|
|
135
138
|
handleClose() {
|
|
136
|
-
Modal.message(
|
|
139
|
+
Modal.message({
|
|
140
|
+
message: 'close 弹窗关闭事件',
|
|
141
|
+
status: 'info'
|
|
142
|
+
})
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
145
|
}
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
{
|
|
32
32
|
demoId: 'condition-layout',
|
|
33
33
|
name: {
|
|
34
|
-
'zh-CN': '
|
|
34
|
+
'zh-CN': '布局',
|
|
35
35
|
'en-US': 'Layout and Configuration'
|
|
36
36
|
},
|
|
37
37
|
desc: {
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
'zh-CN':
|
|
116
116
|
'<p>grid-op 当 popseletor 为 grid 时生效,目前支持配置 columns 表格列 和 data 数据源,详细配置项参考 Grid 表格组件,需同时配置 textField、valueField 字段。</p>',
|
|
117
117
|
'en-US':
|
|
118
|
-
'<p>
|
|
118
|
+
'<p>grid-op: This parameter is valid only when popseletor is set to grid. Currently, columns and data data sources can be configured. For details about the configuration items, see the Grid table component. The textField and valueField fields must be configured at the same time. </p>'
|
|
119
119
|
},
|
|
120
120
|
codeFiles: ['grid.vue']
|
|
121
121
|
},
|
|
@@ -206,7 +206,7 @@ export default {
|
|
|
206
206
|
'en-US': 'Reset'
|
|
207
207
|
},
|
|
208
208
|
desc: {
|
|
209
|
-
'zh-CN': '<p>通过 <code>readonly</code>
|
|
209
|
+
'zh-CN': '<p>通过 <code>readonly</code> 属性设置为是否禁用。</p>',
|
|
210
210
|
'en-US': '<p>Use the <code>before-reset</code> attribute to set the hook function before reset. </p>'
|
|
211
211
|
},
|
|
212
212
|
codeFiles: ['readonly.vue']
|
|
@@ -309,7 +309,7 @@ export default {
|
|
|
309
309
|
desc: {
|
|
310
310
|
'zh-CN': '<p>通过 <code>value-field</code> 属性设置组件提交给后台的字段。</p>',
|
|
311
311
|
'en-US':
|
|
312
|
-
'The <p><code>showPager</code> attribute is valid only when <code>popseletor</code> is set to <code>grid</code>. The default value is <code>false</code>. Pagination is not enabled. If this parameter is set to <code>true</code>, you need to configure the <code>
|
|
312
|
+
'The <p><code>showPager</code> attribute is valid only when <code>popseletor</code> is set to <code>grid</code>. The default value is <code>false</code>. Pagination is not enabled. If this parameter is set to <code>true</code>, you need to configure the <code>pager-op</code> attribute. In addition, you need to listen to the <code>page-change</code> event to change the <code>data</code> data source</p>\n of the <code>grid-op</code>'
|
|
313
313
|
},
|
|
314
314
|
codeFiles: ['title.vue']
|
|
315
315
|
},
|
|
@@ -348,7 +348,7 @@ export default {
|
|
|
348
348
|
},
|
|
349
349
|
desc: {
|
|
350
350
|
'zh-CN':
|
|
351
|
-
'<p><code>showPager</code> 属性只有当 <code>popseletor</code> 为 <code>grid</code> 时才能生效,默认值为 <code>false</code> 不启用分页,配置为 <code>true</code> 后还需配置 <code>
|
|
351
|
+
'<p><code>showPager</code> 属性只有当 <code>popseletor</code> 为 <code>grid</code> 时才能生效,默认值为 <code>false</code> 不启用分页,配置为 <code>true</code> 后还需配置 <code>pager-op</code> 属性;并且需要监听 <code>page-change</code> 事件改变 <code>grid-op</code> 的 <code>data</code> 数据源。</p>',
|
|
352
352
|
'en-US':
|
|
353
353
|
'<p>Enable the tree mode through the <code>popseletor</code> attribute. Then the <code>tree-op</code> attribute is the <code>op configuration mode</code> of the <code>Tree</code> component. </p>'
|
|
354
354
|
},
|
|
@@ -376,7 +376,7 @@ export default {
|
|
|
376
376
|
},
|
|
377
377
|
desc: {
|
|
378
378
|
'zh-CN':
|
|
379
|
-
'<p>通过 <code>popseletor</code> 属性开启树模式,然后 <code>tree-op</code> 属性是 <code>Tree</code> 组件的 <code>op
|
|
379
|
+
'<p>通过 <code>popseletor</code> 属性开启树模式,然后 <code>tree-op</code> 属性是 <code>Tree</code> 组件的 <code>op</code>配置方式。</p>',
|
|
380
380
|
'en-US':
|
|
381
381
|
'<p>Configure the <code>showOverflow</code> attribute on the data column to set the display and hiding of the data when the data exceeds the column width. Values can be of type boolean or string, with three values to choose from, as shown below. By default, all content is displayed in a new line. </p>\n<div class="tip custom-block"><p class="custom-block-title"> optional value description</p>\n<p>tooltip: The extra part is displayed...., and all information is displayed on the left or right. \ntitle: The value is the same as the title attribute of the native tag. \nellipsis: \'...\' is displayed, and no message is displayed. \ntrue: If the value is true, the effect is the same as that of the tooltip. </p>\n</div>'
|
|
382
382
|
},
|
|
@@ -390,7 +390,7 @@ export default {
|
|
|
390
390
|
},
|
|
391
391
|
desc: {
|
|
392
392
|
'zh-CN':
|
|
393
|
-
'<p>通过 <code>popseletor</code> 属性开启树模式,然后 <code>tree-op</code> 属性是 <code>Tree</code> 组件的 <code>op
|
|
393
|
+
'<p>通过 <code>popseletor</code> 属性开启树模式,然后 <code>tree-op</code> 属性是 <code>Tree</code> 组件的 <code>op</code>配置方式。</p>',
|
|
394
394
|
'en-US':
|
|
395
395
|
'<p>When a single option is selected, you can only click the option button to select it by default. You can also set <code>trigger</code> to <code>row</code> to select any position in the row. Alternatively, set <code>trigger</code> to <code>cell</code> and click any position in the Operation column to select it. </p>'
|
|
396
396
|
},
|
|
@@ -418,7 +418,7 @@ export default {
|
|
|
418
418
|
},
|
|
419
419
|
desc: {
|
|
420
420
|
'zh-CN':
|
|
421
|
-
"
|
|
421
|
+
"<p>在数据列上配置 <code>showOverflow</code> 属性用于设置数据超出列宽时的显示和隐藏。值的类型可以为 boolean 和 string,有三个值可以选择,如下所示。默认为换行显示全部内容。</p>\n <div class=\"tip custom-block\">\n <p class=\"custom-block-title\">可选值说明</p>\n <p>'tooltip':内容超出部分显示 ...,左侧/右侧弹出提示层显示全部信息。\n <p>'title':和原生标签的 title 属性一致。</p>\n <p>'ellipsis':内容超出部分显示 ...,没有提示。</p>\n <p>boolean:为 true 时,效果和 'tooltip' 一致。</p>\n </div>\n ",
|
|
422
422
|
'en-US':
|
|
423
423
|
'<p>Configure the <code>auto-lookup</code> to false, set initialization to not request data, or call this $ref.popuptor.handleSearch() Proactively calls the request method</p>'
|
|
424
424
|
},
|
|
@@ -441,7 +441,7 @@ export default {
|
|
|
441
441
|
{
|
|
442
442
|
demoId: 'show-history',
|
|
443
443
|
name: {
|
|
444
|
-
'zh-CN': '
|
|
444
|
+
'zh-CN': '历史记录标签页',
|
|
445
445
|
'en-US': ''
|
|
446
446
|
},
|
|
447
447
|
desc: {
|
|
@@ -9,10 +9,18 @@ export default {
|
|
|
9
9
|
'en-US': 'Basic Usage'
|
|
10
10
|
},
|
|
11
11
|
desc: {
|
|
12
|
-
'zh-CN':
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
'zh-CN': `
|
|
13
|
+
通过 <code>reference</code> 插槽来指定一个触发源,通过 <code>content</code> 属性来指定提示内容,点击触发源会弹出内容面板。<br>
|
|
14
|
+
通过 <code>title</code> 属性来指定标题。<br>
|
|
15
|
+
通过 <code>width</code> 属性来指定一个弹出面板的宽度。<br>
|
|
16
|
+
<div class="tip custom-block">reference 插槽是必传插槽,没有它时组件渲染不出来。</div>
|
|
17
|
+
`,
|
|
18
|
+
'en-US': `
|
|
19
|
+
Specify a trigger source through the <code>reference</code> slot, specify the prompt content through the <code>content</code> property, click the trigger source will pop up the content panel. <br>
|
|
20
|
+
The title is specified by the <code>title</code> attribute. <br>
|
|
21
|
+
Use the <code>width</code> property to specify the width of a pop-up panel. <br>
|
|
22
|
+
The <div class="tip custom-block">reference slot is a required slot without which the component cannot be rendered. </div>
|
|
23
|
+
`
|
|
16
24
|
},
|
|
17
25
|
codeFiles: ['basic-usage.vue']
|
|
18
26
|
},
|
|
@@ -23,10 +31,14 @@ export default {
|
|
|
23
31
|
'en-US': 'Trigger Mode'
|
|
24
32
|
},
|
|
25
33
|
desc: {
|
|
26
|
-
'zh-CN':
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
'zh-CN': `
|
|
35
|
+
通过<code>trigger</code> 属性设定弹出框的4种触发方式, 默认值为 <code> click </code>。<br>
|
|
36
|
+
当触发方式为<code> manual</code>时,通过设置<code>v-model</code> 属性,动态控制显示和隐藏弹出框。
|
|
37
|
+
`,
|
|
38
|
+
'en-US': `
|
|
39
|
+
The <code>trigger</code> property is used to set the triggering mode of the pop-up box. The optional value of the property is <code>click/hover/manual/focus</code>, and the default value is <code>click </code>. <br>
|
|
40
|
+
When the trigger mode is <code> manual</code>, you can set the <code>v-model</code> property to dynamically display and hide pop-ups.
|
|
41
|
+
`
|
|
30
42
|
},
|
|
31
43
|
codeFiles: ['trigger.vue']
|
|
32
44
|
},
|
|
@@ -37,10 +49,14 @@ export default {
|
|
|
37
49
|
'en-US': 'Pop-up layer content'
|
|
38
50
|
},
|
|
39
51
|
desc: {
|
|
40
|
-
'zh-CN':
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
52
|
+
'zh-CN': `
|
|
53
|
+
通过 <code>content</code> 属性设置要显示的字符串内容。<br>
|
|
54
|
+
通过 <code>default</code> 插槽,支持自定义复杂的内容结构。<br>
|
|
55
|
+
`,
|
|
56
|
+
'en-US': `
|
|
57
|
+
The <code>content</code> property sets the string content to be displayed.
|
|
58
|
+
Support for custom complex content structures through the <code>default</code> slot.
|
|
59
|
+
`
|
|
44
60
|
},
|
|
45
61
|
codeFiles: ['content.vue']
|
|
46
62
|
},
|
|
@@ -63,10 +79,14 @@ export default {
|
|
|
63
79
|
'en-US': 'Custom Offset'
|
|
64
80
|
},
|
|
65
81
|
desc: {
|
|
66
|
-
'zh-CN':
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
'zh-CN': `
|
|
83
|
+
通过<code>arrow-offset</code> 设置箭头的在弹窗层上的偏移量。箭头默认至少会保留8px的空间, 以保证箭头不会贴在弹窗层两边。<br>
|
|
84
|
+
通过<code> offset</code> 设置弹框的偏移量,来改变弹框的位置。
|
|
85
|
+
`,
|
|
86
|
+
'en-US': `
|
|
87
|
+
Use <code>arrow-offset</code> to set the offset of the arrow on the popup layer. Arrows are left at least 8px by default to ensure that they are not stuck on either side of the popup layer. <br>
|
|
88
|
+
Change the position of the springboard by setting the offset</code> of the springboard
|
|
89
|
+
`
|
|
70
90
|
},
|
|
71
91
|
codeFiles: ['offset.vue']
|
|
72
92
|
},
|
|
@@ -77,10 +97,16 @@ export default {
|
|
|
77
97
|
'en-US': 'Customize the pop-up panel'
|
|
78
98
|
},
|
|
79
99
|
desc: {
|
|
80
|
-
'zh-CN':
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
100
|
+
'zh-CN': `
|
|
101
|
+
通过<code>placement</code> 设置弹出框的的位置。<br>
|
|
102
|
+
通过<code>visible-arrow</code> 设定是否显示提示框的箭头,默认值为 <code>true</code>。<br>
|
|
103
|
+
通过<code>popper-class</code> 可配置单个或多个类名,通过类名可以控制弹窗样式。
|
|
104
|
+
`,
|
|
105
|
+
'en-US': `
|
|
106
|
+
By <code>placement</code> Set the location of the pop-up box. <br>
|
|
107
|
+
Set whether the arrow of the prompt box is displayed by <code>visible-arrow</code>. The default value is true. <br>
|
|
108
|
+
You can run the <code>popper-class</code> command to configure one or more classes. You can control the popup style by class name.
|
|
109
|
+
`
|
|
84
110
|
},
|
|
85
111
|
codeFiles: ['custom-popper.vue']
|
|
86
112
|
},
|
|
@@ -91,10 +117,16 @@ export default {
|
|
|
91
117
|
'en-US': 'Delay control'
|
|
92
118
|
},
|
|
93
119
|
desc: {
|
|
94
|
-
'zh-CN':
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
120
|
+
'zh-CN': `
|
|
121
|
+
通过 <code>open-delay</code> 弹出框打开时延迟的时长,默认值为0,单位为毫秒。<br>
|
|
122
|
+
通过 <code>close-delay</code> 弹出框关闭时延迟的时长,默认值为200,单位为毫秒。<br>
|
|
123
|
+
<div class="tip custom-block">只有在触发方式为 hover 时,延迟控制功能才生效。</div>
|
|
124
|
+
`,
|
|
125
|
+
'en-US': `
|
|
126
|
+
Run the <code>open-delay</code> command to open a pop-up. The default value is 0, in milliseconds. <br>
|
|
127
|
+
Run the <code>close-delay</code> command to close the pop-up. The default value is 200, in milliseconds. <br>
|
|
128
|
+
<div class="tip custom-block"> Delay control takes effect only if the trigger mode is hover. </div>
|
|
129
|
+
`
|
|
98
130
|
},
|
|
99
131
|
codeFiles: ['delay.vue']
|
|
100
132
|
},
|
|
@@ -131,10 +163,19 @@ export default {
|
|
|
131
163
|
'en-US': 'Event'
|
|
132
164
|
},
|
|
133
165
|
desc: {
|
|
134
|
-
'zh-CN':
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
166
|
+
'zh-CN': `
|
|
167
|
+
组件支持以下事件:<br>
|
|
168
|
+
<code>hide</code> 隐藏时触发回调;<br>
|
|
169
|
+
<code>show</code> 显示时触发回调;<br>
|
|
170
|
+
<code>after-leave</code> 进入的动画结束后触发回调;<br>
|
|
171
|
+
<code>after-enter</code> 离开的动画播结束后触发回调;<br>`,
|
|
172
|
+
'en-US': `
|
|
173
|
+
The component supports the following events: <br>
|
|
174
|
+
<code>hide</code> Trigger callback when hiding <br>
|
|
175
|
+
<code>show</code> callback triggered when displayed <br>
|
|
176
|
+
<code>after-leave</code> Triggers callback after entering animation <br>
|
|
177
|
+
<code>after-enter</code> Trigger callback after the leaving animation ends <br>
|
|
178
|
+
`
|
|
138
179
|
},
|
|
139
180
|
codeFiles: ['events.vue']
|
|
140
181
|
}
|
|
@@ -10,7 +10,7 @@ import { ref } from 'vue'
|
|
|
10
10
|
import { RadioGroup as TinyRadioGroup, Modal } from '@opentiny/vue'
|
|
11
11
|
|
|
12
12
|
function handleClick() {
|
|
13
|
-
Modal.message({ message: 'click' })
|
|
13
|
+
Modal.message({ message: 'click', status: 'info' })
|
|
14
14
|
}
|
|
15
15
|
const value = ref('A')
|
|
16
16
|
const options = ref([
|