@opentiny/vue-docs 2.2.8 → 2.2.9
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/mobile/app/button/base.vue +42 -0
- package/demos/mobile/app/button/disabled.vue +42 -0
- package/demos/mobile/app/button/event.vue +46 -0
- package/demos/mobile/app/button/icon.vue +8 -7
- package/demos/mobile/app/button/loading.vue +21 -9
- package/demos/mobile/app/button/reset-time.vue +9 -16
- package/demos/mobile/app/button/size.vue +28 -11
- package/demos/mobile/app/button/webdoc/button.js +43 -98
- package/demos/mobile/app/file-upload/custom-upload-tip.vue +1 -1
- package/demos/mobile/app/switch/webdoc/switch.cn.md +3 -4
- package/demos/mobile-first/app/switch/webdoc/switch.cn.md +1 -1
- package/demos/mobile-first/app/switch/webdoc/switch.en.md +1 -1
- package/demos/pc/app/action-menu/webdoc/action-menu.js +2 -2
- package/demos/pc/app/alert/basic-usage-composition-api.vue +1 -0
- package/demos/pc/app/alert/basic-usage.vue +1 -0
- package/demos/pc/app/alert/custom-close.spec.ts +1 -1
- package/demos/pc/app/alert/icon-composition-api.vue +3 -2
- package/demos/pc/app/alert/icon.vue +4 -3
- package/demos/pc/app/alert/webdoc/alert.js +12 -2
- package/demos/pc/app/anchor/basic-usage-composition-api.vue +7 -7
- package/demos/pc/app/anchor/basic-usage.spec.ts +2 -2
- package/demos/pc/app/anchor/basic-usage.vue +7 -7
- package/demos/pc/app/anchor/change-composition-api.vue +7 -7
- package/demos/pc/app/anchor/change.spec.ts +2 -2
- package/demos/pc/app/anchor/change.vue +7 -7
- package/demos/pc/app/anchor/is-affix-composition-api.vue +7 -7
- package/demos/pc/app/anchor/is-affix.vue +7 -7
- package/demos/pc/app/anchor/webdoc/anchor.js +4 -4
- package/demos/pc/app/autocomplete/webdoc/autocomplete.js +2 -2
- package/demos/pc/app/badge/webdoc/badge.js +1 -1
- package/demos/pc/app/button/webdoc/button.js +1 -1
- package/demos/pc/app/button-group/basic-usage.spec.ts +1 -0
- package/demos/pc/app/button-group/slot-empty-composition-api.vue +25 -0
- package/demos/pc/app/button-group/slot-empty.spec.ts +11 -0
- package/demos/pc/app/button-group/slot-empty.vue +33 -0
- package/demos/pc/app/button-group/webdoc/button-group.js +9 -0
- package/demos/pc/app/calendar/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/calendar/basic-usage.spec.ts +33 -0
- package/demos/pc/app/calendar/basic-usage.vue +1 -1
- package/demos/pc/app/calendar/calendar-mode-composition-api.vue +1 -1
- package/demos/pc/app/calendar/calendar-mode.spec.ts +33 -0
- package/demos/pc/app/calendar/calendar-mode.vue +1 -1
- package/demos/pc/app/calendar/custom-calendar-toolbar-composition-api.vue +3 -3
- package/demos/pc/app/calendar/custom-calendar-toolbar.spec.ts +18 -0
- package/demos/pc/app/calendar/custom-calendar-toolbar.vue +3 -3
- package/demos/pc/app/calendar/custom-day-cell-composition-api.vue +1 -1
- package/demos/pc/app/calendar/custom-day-cell.spec.ts +10 -0
- package/demos/pc/app/calendar/custom-day-cell.vue +1 -1
- package/demos/pc/app/calendar/dynamic-add-schedule-composition-api.vue +1 -1
- package/demos/pc/app/calendar/dynamic-add-schedule.spec.ts +26 -0
- package/demos/pc/app/calendar/dynamic-add-schedule.vue +1 -1
- package/demos/pc/app/calendar/show-selected-date-composition-api.vue +1 -1
- package/demos/pc/app/calendar/show-selected-date.spec.ts +14 -0
- package/demos/pc/app/calendar/show-selected-date.vue +1 -1
- package/demos/pc/app/calendar/webdoc/calendar.js +22 -8
- package/demos/pc/app/calendar-view/basic-usage.spec.ts +18 -0
- package/demos/pc/app/calendar-view/calendar-day-mark.spec.ts +23 -0
- package/demos/pc/app/calendar-view/calendar-disabled-day-composition-api.vue +2 -2
- package/demos/pc/app/calendar-view/calendar-disabled-day.spec.ts +12 -0
- package/demos/pc/app/calendar-view/calendar-disabled-day.vue +1 -1
- package/demos/pc/app/calendar-view/calendar-event.spec.ts +25 -0
- package/demos/pc/app/calendar-view/calendar-mode.spec.ts +25 -0
- package/demos/pc/app/calendar-view/calendar-schedule-slot.spec.ts +18 -0
- package/demos/pc/app/calendar-view/calendar-timeline-range.spec.ts +11 -0
- package/demos/pc/app/calendar-view/calendar-timeline-slot.spec.ts +23 -0
- package/demos/pc/app/calendar-view/custom-calendar-toolbar.spec.ts +8 -0
- package/demos/pc/app/calendar-view/custom-day-bg-color.spec.ts +8 -0
- package/demos/pc/app/calendar-view/custom-header.spec.ts +11 -0
- package/demos/pc/app/calendar-view/multi-select-composition-api.vue +2 -2
- package/demos/pc/app/calendar-view/multi-select.spec.ts +13 -0
- package/demos/pc/app/calendar-view/multi-select.vue +1 -1
- package/demos/pc/app/calendar-view/set-working-day-composition-api.vue +3 -7
- package/demos/pc/app/calendar-view/set-working-day.spec.ts +22 -0
- package/demos/pc/app/calendar-view/set-working-day.vue +1 -1
- package/demos/pc/app/calendar-view/webdoc/calendar-view.js +1 -1
- package/demos/pc/app/carousel/autoplay-composition-api.vue +2 -2
- package/demos/pc/app/carousel/autoplay.spec.ts +2 -0
- package/demos/pc/app/carousel/autoplay.vue +2 -2
- package/demos/pc/app/carousel/basic-usage-composition-api.vue +2 -2
- package/demos/pc/app/carousel/basic-usage.spec.ts +1 -8
- package/demos/pc/app/carousel/basic-usage.vue +2 -2
- package/demos/pc/app/carousel/card-mode-composition-api.vue +2 -2
- package/demos/pc/app/carousel/card-mode.vue +2 -2
- package/demos/pc/app/carousel/carousel-arrow-always-composition-api.vue +2 -2
- package/demos/pc/app/carousel/carousel-arrow-always.vue +2 -2
- package/demos/pc/app/carousel/carousel-arrow-hover-composition-api.vue +2 -2
- package/demos/pc/app/carousel/carousel-arrow-hover.vue +2 -2
- package/demos/pc/app/carousel/carousel-arrow-never-composition-api.vue +2 -2
- package/demos/pc/app/carousel/carousel-arrow-never.vue +2 -2
- package/demos/pc/app/carousel/carousel-events-composition-api.vue +2 -2
- package/demos/pc/app/carousel/carousel-events.vue +2 -2
- package/demos/pc/app/carousel/close-loop-composition-api.vue +2 -2
- package/demos/pc/app/carousel/close-loop.vue +2 -2
- package/demos/pc/app/carousel/custom-height-composition-api.vue +2 -2
- package/demos/pc/app/carousel/custom-height.vue +2 -2
- package/demos/pc/app/carousel/indicator-trigger-composition-api.vue +2 -2
- package/demos/pc/app/carousel/indicator-trigger.vue +2 -2
- package/demos/pc/app/carousel/initial-index-composition-api.vue +2 -2
- package/demos/pc/app/carousel/initial-index.vue +2 -2
- package/demos/pc/app/carousel/manual-play-composition-api.vue +19 -8
- package/demos/pc/app/carousel/manual-play.vue +18 -8
- package/demos/pc/app/carousel/play-interval-composition-api.vue +2 -2
- package/demos/pc/app/carousel/play-interval.vue +2 -2
- package/demos/pc/app/carousel/show-title-composition-api.vue +2 -2
- package/demos/pc/app/carousel/show-title.vue +2 -2
- package/demos/pc/app/carousel/up-down-carousel-composition-api.vue +2 -2
- package/demos/pc/app/carousel/up-down-carousel.vue +2 -2
- package/demos/pc/app/chart/histogram/demo4-composition-api.vue +0 -2
- package/demos/pc/app/chart/histogram/demo4.vue +0 -2
- package/demos/pc/app/checkbox/checkbox-events-composition-api.vue +2 -3
- package/demos/pc/app/checkbox/checkbox-events.vue +2 -3
- package/demos/pc/app/checkbox/group-options-composition-api.vue +1 -1
- package/demos/pc/app/checkbox/group-options.vue +1 -1
- package/demos/pc/app/checkbox/size-composition-api.vue +0 -1
- package/demos/pc/app/checkbox/text-composition-api.vue +3 -2
- package/demos/pc/app/checkbox/text.vue +2 -1
- package/demos/pc/app/checkbox/webdoc/checkbox.js +3 -3
- package/demos/pc/app/collapse/title-composition-api.vue +3 -2
- package/demos/pc/app/collapse/title.vue +3 -2
- package/demos/pc/app/collapse/webdoc/collapse.js +11 -11
- package/demos/pc/app/config-provider/webdoc/config-provider.js +3 -3
- package/demos/pc/app/date-picker/align.spec.ts +11 -12
- package/demos/pc/app/date-picker/basic-usage.spec.ts +17 -23
- package/demos/pc/app/date-picker/clear.spec.ts +24 -5
- package/demos/pc/app/date-picker/date-range.spec.ts +63 -11
- package/demos/pc/app/date-picker/default-value.spec.ts +19 -4
- package/demos/pc/app/date-picker/events.spec.ts +24 -10
- package/demos/pc/app/date-picker/format.spec.ts +12 -11
- package/demos/pc/app/date-picker/shortcuts.spec.ts +6 -5
- 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 +2 -2
- package/demos/pc/app/dialog-box/center.vue +2 -2
- package/demos/pc/app/dialog-box/close-on-click-modal-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/close-on-click-modal.vue +2 -2
- package/demos/pc/app/dialog-box/close-on-press-escape-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/close-on-press-escape.vue +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-content-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-content.vue +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-footer-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/custom-dialog-footer.vue +4 -4
- package/demos/pc/app/dialog-box/custom-dialog-title-composition-api.vue +2 -2
- 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 +3 -3
- package/demos/pc/app/dialog-box/dialog-width.vue +3 -3
- package/demos/pc/app/dialog-box/lock-scroll-composition-api.vue +2 -2
- package/demos/pc/app/dialog-box/lock-scroll.vue +2 -2
- package/demos/pc/app/dialog-box/webdoc/dialog-box.js +63 -63
- package/demos/pc/app/dialog-select/nest-grid-multi-composition-api.vue +9 -3
- package/demos/pc/app/dialog-select/nest-grid-multi.vue +8 -3
- package/demos/pc/app/dialog-select/nest-grid-single-composition-api.vue +3 -2
- package/demos/pc/app/dialog-select/nest-grid-single.vue +3 -2
- package/demos/pc/app/dialog-select/nest-tree-multi-composition-api.vue +3 -2
- package/demos/pc/app/dialog-select/nest-tree-multi.vue +3 -2
- package/demos/pc/app/dialog-select/nest-tree-single-composition-api.vue +3 -2
- package/demos/pc/app/dialog-select/nest-tree-single.vue +3 -2
- package/demos/pc/app/dialog-select/webdoc/dialog-select.js +90 -42
- package/demos/pc/app/drawer/confirm-event-composition-api.vue +1 -1
- package/demos/pc/app/drawer/confirm-event.vue +1 -1
- package/demos/pc/app/drawer/webdoc/drawer.cn.md +1 -1
- package/demos/pc/app/drawer/webdoc/drawer.en.md +7 -0
- package/demos/pc/app/drawer/webdoc/drawer.js +94 -47
- package/demos/pc/app/drawer/z-index-composition-api.vue +1 -1
- package/demos/pc/app/drawer/z-index.spec.ts +1 -1
- package/demos/pc/app/drawer/z-index.vue +1 -1
- package/demos/pc/app/drop-times/basic-usage.spec.ts +1 -1
- package/demos/pc/app/drop-times/size.spec.ts +5 -1
- package/demos/pc/app/drop-times/start-end-step.spec.ts +1 -1
- package/demos/pc/app/dropdown/webdoc/dropdown.js +2 -2
- package/demos/pc/app/fall-menu/webdoc/fall-menu.js +4 -10
- package/demos/pc/app/file-upload/abort-quest-composition-api.vue +1 -1
- package/demos/pc/app/file-upload/abort-quest.vue +1 -1
- package/demos/pc/app/file-upload/basic-usage.spec.ts +2 -2
- package/demos/pc/app/file-upload/{prevent-upload-file-composition-api.vue → before-upload-limit-composition-api.vue} +13 -5
- package/demos/pc/app/file-upload/{prevent-upload-file.spec.ts → before-upload-limit.spec.ts} +9 -4
- package/demos/pc/app/file-upload/{prevent-upload-file.vue → before-upload-limit.vue} +15 -5
- package/demos/pc/app/file-upload/custom-upload-tip-composition-api.vue +1 -1
- package/demos/pc/app/file-upload/custom-upload-tip.spec.ts +1 -1
- package/demos/pc/app/file-upload/custom-upload-tip.vue +1 -1
- package/demos/pc/app/file-upload/form-validation-composition-api.vue +10 -4
- package/demos/pc/app/file-upload/form-validation.vue +9 -3
- package/demos/pc/app/file-upload/multiple-file.spec.ts +3 -1
- package/demos/pc/app/file-upload/upload-events-composition-api.vue +8 -8
- package/demos/pc/app/file-upload/upload-events.vue +8 -8
- package/demos/pc/app/file-upload/upload-request-composition-api.vue +1 -1
- package/demos/pc/app/file-upload/upload-request.vue +1 -1
- package/demos/pc/app/file-upload/webdoc/file-upload.js +97 -96
- package/demos/pc/app/form/form-validation-composition-api.vue +2 -2
- package/demos/pc/app/form/form-validation.vue +1 -1
- package/demos/pc/app/form/label-position.spec.ts +3 -0
- package/demos/pc/app/form/popper-options.spec.ts +1 -0
- package/demos/pc/app/form/slot-label-composition-api.vue +1 -1
- package/demos/pc/app/form/validate-debounce-composition-api.vue +3 -3
- package/demos/pc/app/form/validate-debounce.vue +3 -3
- package/demos/pc/app/form/webdoc/form.js +10 -9
- package/demos/pc/app/grid/dynamically-columns/dynamically-columns-composition-api.vue +6 -4
- package/demos/pc/app/grid/dynamically-columns/dynamically-columns.vue +6 -4
- package/demos/pc/app/grid/dynamically-columns/reverse-row-composition-api.vue +3 -1
- package/demos/pc/app/grid/dynamically-columns/reverse-row.vue +3 -1
- package/demos/pc/app/grid/faq/grid-in-dialog-box-composition-api.vue +1 -1
- package/demos/pc/app/grid/faq/grid-in-dialog-box.spec.js +1 -1
- package/demos/pc/app/grid/faq/grid-in-dialog-box.vue +1 -1
- package/demos/pc/app/grid/filter/advanced-filter-composition-api.vue +0 -15
- package/demos/pc/app/grid/filter/advanced-filter.spec.js +1 -1
- package/demos/pc/app/grid/filter/advanced-filter.vue +0 -14
- package/demos/pc/app/grid/filter/custom-filter.spec.js +1 -1
- package/demos/pc/app/grid/filter/default-filter-composition-api.vue +1 -1
- package/demos/pc/app/grid/filter/default-filter.spec.ts +1 -1
- package/demos/pc/app/grid/filter/default-filter.vue +1 -1
- package/demos/pc/app/grid/filter/simple-default-value-filter-composition-api.vue +0 -14
- package/demos/pc/app/grid/filter/simple-default-value-filter.vue +0 -14
- package/demos/pc/app/grid/filter/simple-filter-composition-api.vue +0 -14
- package/demos/pc/app/grid/filter/simple-filter.vue +0 -14
- package/demos/pc/app/grid/footer/configuration-summary.spec.js +1 -1
- package/demos/pc/app/grid/highlight/set-current-row-composition-api.vue +4 -1
- package/demos/pc/app/grid/highlight/set-current-row.vue +4 -1
- package/demos/pc/app/grid/large-data/scroll-to-composition-api.vue +6 -3
- package/demos/pc/app/grid/large-data/scroll-to.vue +6 -3
- package/demos/pc/app/grid/pager/inner-pager-composition-api.vue +1 -1
- package/demos/pc/app/grid/pager/inner-pager.spec.js +1 -1
- package/demos/pc/app/grid/pager/inner-pager.vue +1 -1
- package/demos/pc/app/grid/sort/server-sort-composition-api.vue +3 -3
- package/demos/pc/app/grid/sort/server-sort.vue +2 -2
- package/demos/pc/app/grid/sort/sort-composition-api.vue +4 -1
- package/demos/pc/app/grid/sort/sort.spec.js +1 -1
- package/demos/pc/app/grid/sort/sort.vue +4 -1
- package/demos/pc/app/grid/toolbar/insert-delete-update-composition-api.vue +2 -1
- package/demos/pc/app/grid/toolbar/insert-delete-update.vue +2 -1
- package/demos/pc/app/grid/toolbar/toolbar-op-config-composition-api.vue +3 -2
- package/demos/pc/app/grid/toolbar/toolbar-op-config.vue +3 -2
- package/demos/pc/app/grid/validation/before-submit-validation-composition-api.vue +5 -5
- package/demos/pc/app/grid/validation/before-submit-validation.spec.js +2 -2
- package/demos/pc/app/grid/validation/before-submit-validation.vue +5 -5
- package/demos/pc/app/grid/webdoc/grid-appearance-settings.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-context-menu.js +4 -4
- package/demos/pc/app/grid/webdoc/grid-custom-style.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-custom.js +31 -31
- package/demos/pc/app/grid/webdoc/grid-drag.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-dynamically-columns.js +4 -1
- package/demos/pc/app/grid/webdoc/grid-editor.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-empty.js +4 -1
- package/demos/pc/app/grid/webdoc/grid-expand.js +3 -3
- package/demos/pc/app/grid/webdoc/grid-faq.js +4 -4
- package/demos/pc/app/grid/webdoc/grid-filter.js +4 -4
- package/demos/pc/app/grid/webdoc/grid-footer.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-highlight.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-import-export.js +5 -2
- package/demos/pc/app/grid/webdoc/grid-large-data.js +6 -5
- package/demos/pc/app/grid/webdoc/grid-mouse-keyboard.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-pager.js +11 -2
- package/demos/pc/app/grid/webdoc/grid-renderer.js +11 -11
- package/demos/pc/app/grid/webdoc/grid-row-grouping.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-size.js +6 -6
- package/demos/pc/app/grid/webdoc/grid-slot.js +16 -4
- package/demos/pc/app/grid/webdoc/grid-tip.js +3 -3
- package/demos/pc/app/grid/webdoc/grid-toolbar.js +17 -9
- package/demos/pc/app/grid/webdoc/grid-tree-table.js +9 -7
- package/demos/pc/app/grid/webdoc/grid-validation.js +6 -6
- package/demos/pc/app/grid/webdoc/grid.js +160 -85
- package/demos/pc/app/icon/iconGroups.js +1 -0
- package/demos/pc/app/icon/list-composition-api.vue +8 -0
- package/demos/pc/app/icon/list.vue +7 -0
- package/demos/pc/app/image/basic-usage.spec.ts +1 -1
- package/demos/pc/app/image/events.spec.ts +1 -1
- package/demos/pc/app/image/lazy.spec.ts +1 -1
- package/demos/pc/app/image/preview-in-dialog.spec.ts +1 -1
- package/demos/pc/app/image/preview.spec.ts +1 -1
- package/demos/pc/app/image/slot.spec.ts +1 -1
- package/demos/pc/app/image/webdoc/image.cn.md +3 -1
- package/demos/pc/app/image/webdoc/image.en.md +3 -1
- package/demos/pc/app/image/webdoc/image.js +34 -18
- package/demos/pc/app/input/method-addMemory-composition-api.vue +1 -0
- package/demos/pc/app/input/method-addMemory.spec.ts +11 -0
- package/demos/pc/app/input/method-addMemory.vue +1 -0
- package/demos/pc/app/input/webdoc/input.js +12 -2
- package/demos/pc/app/ip-address/webdoc/ip-address.cn.md +2 -2
- package/demos/pc/app/ip-address/webdoc/ip-address.js +2 -2
- package/demos/pc/app/link/webdoc/link.js +1 -1
- package/demos/pc/app/loading/webdoc/loading.js +1 -1
- package/demos/pc/app/milestone/show-number-composition-api.vue +1 -1
- package/demos/pc/app/milestone/show-number.vue +1 -1
- package/demos/pc/app/milestone/solid-style-composition-api.vue +1 -1
- package/demos/pc/app/milestone/solid-style.vue +1 -1
- package/demos/pc/app/milestone/webdoc/milestone.js +9 -9
- package/demos/pc/app/mind-map/basic-usage-composition-api.vue +14 -0
- package/demos/pc/app/mind-map/basic-usage.spec.ts +36 -0
- package/demos/pc/app/mind-map/basic-usage.vue +20 -0
- package/demos/pc/app/mind-map/event-composition-api.vue +125 -0
- package/demos/pc/app/mind-map/event.spec.ts +52 -0
- package/demos/pc/app/mind-map/event.vue +136 -0
- package/demos/pc/app/mind-map/export-data-composition-api.vue +108 -0
- package/demos/pc/app/mind-map/export-data.spec.ts +19 -0
- package/demos/pc/app/mind-map/export-data.vue +119 -0
- package/demos/pc/app/mind-map/webdoc/mind-map.cn.md +7 -0
- package/demos/pc/app/mind-map/webdoc/mind-map.en.md +7 -0
- package/demos/pc/app/mind-map/webdoc/mind-map.js +250 -0
- package/demos/pc/app/modal/webdoc/modal.js +47 -47
- package/demos/pc/app/nav-menu/custom-service-composition-api.vue +5 -5
- package/demos/pc/app/nav-menu/custom-service.vue +5 -5
- package/demos/pc/app/notify/webdoc/notify.js +9 -6
- package/demos/pc/app/numeric/webdoc/numeric.js +23 -23
- package/demos/pc/app/pager/before-page-change-composition-api.vue +1 -1
- package/demos/pc/app/pager/before-page-change.vue +1 -1
- package/demos/pc/app/pager/custom-layout-composition-api.vue +8 -6
- package/demos/pc/app/pager/custom-layout.vue +8 -6
- package/demos/pc/app/pager/custom-total-composition-api.vue +20 -18
- package/demos/pc/app/pager/custom-total.vue +20 -18
- package/demos/pc/app/pager/hide-on-single-page-composition-api.vue +1 -1
- package/demos/pc/app/pager/hide-on-single-page.spec.ts +1 -1
- package/demos/pc/app/pager/hide-on-single-page.vue +1 -1
- package/demos/pc/app/pager/pager-event-composition-api.vue +10 -5
- package/demos/pc/app/pager/pager-event.vue +10 -5
- package/demos/pc/app/pager/webdoc/pager.js +3 -3
- package/demos/pc/app/pop-upload/webdoc/pop-upload.js +3 -3
- package/demos/pc/app/popconfirm/webdoc/popconfirm.js +1 -1
- package/demos/pc/app/progress/custom-color-composition-api.vue +10 -5
- package/demos/pc/app/progress/custom-color.spec.ts +14 -1
- package/demos/pc/app/progress/custom-color.vue +10 -5
- package/demos/pc/app/progress/custom-status-composition-api.vue +30 -11
- package/demos/pc/app/progress/custom-status.vue +30 -11
- package/demos/pc/app/progress/webdoc/progress.js +7 -8
- package/demos/pc/app/qr-code/level-composition-api.vue +5 -8
- package/demos/pc/app/qr-code/style-composition-api.vue +1 -0
- package/demos/pc/app/qr-code/style.vue +1 -0
- package/demos/pc/app/qr-code/webdoc/qr-code.js +22 -10
- package/demos/pc/app/radio/group-options-composition-api.vue +13 -0
- package/demos/pc/app/radio/group-options.vue +20 -2
- package/demos/pc/app/radio/webdoc/radio.js +3 -3
- package/demos/pc/app/rate/webdoc/rate.js +8 -10
- package/demos/pc/app/search/events-composition-api.vue +4 -4
- package/demos/pc/app/search/events.vue +4 -4
- package/demos/pc/app/search/slot-prefix-composition-api.vue +1 -1
- package/demos/pc/app/search/slot-prefix.vue +1 -1
- package/demos/pc/app/search/webdoc/search.js +2 -2
- package/demos/pc/app/select/basic-usage-composition-api.vue +11 -6
- package/demos/pc/app/select/basic-usage.spec.ts +34 -9
- package/demos/pc/app/select/basic-usage.vue +11 -6
- package/demos/pc/app/select/clear-no-match-value-composition-api.vue +1 -1
- package/demos/pc/app/select/clear-no-match-value.vue +1 -1
- package/demos/pc/app/select/events-composition-api.vue +12 -6
- package/demos/pc/app/select/events.vue +10 -5
- package/demos/pc/app/select/is-drop-inherit-width-composition-api.vue +1 -2
- package/demos/pc/app/select/is-drop-inherit-width.vue +1 -2
- package/demos/pc/app/select/no-data-text-composition-api.vue +1 -1
- package/demos/pc/app/select/no-data-text.spec.ts +1 -1
- package/demos/pc/app/select/no-data-text.vue +1 -1
- package/demos/pc/app/select/optimization-composition-api.vue +5 -2
- package/demos/pc/app/select/optimization.vue +4 -1
- package/demos/pc/app/select/option-group-composition-api.vue +33 -11
- package/demos/pc/app/select/option-group.spec.ts +2 -2
- package/demos/pc/app/select/option-group.vue +34 -13
- package/demos/pc/app/select/slot-default-composition-api.vue +49 -13
- package/demos/pc/app/select/slot-default.spec.ts +5 -2
- package/demos/pc/app/select/slot-default.vue +50 -14
- package/demos/pc/app/select/slot-empty-composition-api.vue +16 -3
- package/demos/pc/app/select/slot-empty.spec.ts +1 -1
- package/demos/pc/app/select/slot-empty.vue +18 -4
- package/demos/pc/app/select/webdoc/select.js +89 -16
- package/demos/pc/app/slider/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/slider/basic-usage.vue +1 -1
- package/demos/pc/app/switch/before-change-composition-api.vue +4 -1
- package/demos/pc/app/switch/before-change.vue +4 -3
- package/demos/pc/app/switch/custom-true-false-value-composition-api.vue +1 -1
- package/demos/pc/app/switch/custom-true-false-value.spec.ts +2 -2
- package/demos/pc/app/switch/custom-true-false-value.vue +1 -1
- package/demos/pc/app/switch/event-change-composition-api.vue +1 -1
- package/demos/pc/app/switch/event-change.vue +1 -1
- package/demos/pc/app/switch/webdoc/switch.cn.md +1 -1
- package/demos/pc/app/switch/webdoc/switch.js +1 -1
- package/demos/pc/app/tabs/webdoc/tabs.js +3 -3
- package/demos/pc/app/tag/webdoc/tag.js +1 -1
- package/demos/pc/app/tag-group/basic-usage.vue +1 -1
- package/demos/pc/app/tag-group/webdoc/tag-group.js +2 -2
- package/demos/pc/app/time-select/basic-usage.spec.ts +6 -5
- package/demos/pc/app/time-select/clear-icon.spec.ts +7 -5
- package/demos/pc/app/time-select/default-value.spec.ts +3 -2
- package/demos/pc/app/time-select/event-blur.spec.ts +2 -2
- package/demos/pc/app/time-select/focus.spec.ts +5 -4
- package/demos/pc/app/time-select/picker-options.spec.ts +1 -1
- package/demos/pc/app/time-select/range-placeholder.spec.ts +16 -13
- package/demos/pc/app/time-select/size-medium.spec.ts +5 -1
- package/demos/pc/app/toggle-menu/webdoc/toggle-menu.js +2 -2
- package/demos/pc/app/transfer/basic-usage.spec.ts +1 -1
- package/demos/pc/app/transfer/before-transfer.spec.ts +1 -1
- package/demos/pc/app/transfer/custom-btns.spec.ts +1 -1
- package/demos/pc/app/transfer/custom-filter.spec.ts +1 -1
- package/demos/pc/app/transfer/custom-footer.spec.ts +2 -1
- package/demos/pc/app/transfer/custom-render.spec.ts +1 -1
- package/demos/pc/app/transfer/custom-titles.spec.ts +1 -1
- package/demos/pc/app/transfer/default-checked.spec.ts +1 -1
- package/demos/pc/app/transfer/drop-config.spec.ts +1 -1
- package/demos/pc/app/transfer/nested-table.spec.ts +1 -1
- package/demos/pc/app/transfer/nested-tree.spec.ts +1 -1
- package/demos/pc/app/transfer/target-order.spec.ts +1 -1
- package/demos/pc/app/transfer/transfer-events.spec.ts +1 -1
- package/demos/pc/app/transfer/webdoc/transfer.cn.md +1 -1
- package/demos/pc/app/transfer/webdoc/transfer.en.md +3 -3
- package/demos/pc/app/transfer/webdoc/transfer.js +76 -43
- package/demos/pc/app/tree/basic-usage.spec.ts +1 -1
- package/demos/pc/app/tree/check-op.spec.ts +1 -1
- package/demos/pc/app/tree/checkbox.spec.ts +1 -1
- package/demos/pc/app/tree/contextmenu.spec.ts +1 -1
- package/demos/pc/app/tree/drag.spec.ts +1 -1
- package/demos/pc/app/tree/edit.spec.ts +1 -1
- package/demos/pc/app/tree/expand-control.spec.ts +1 -1
- package/demos/pc/app/tree/filter-view.spec.ts +1 -1
- package/demos/pc/app/tree/icons.spec.ts +1 -1
- package/demos/pc/app/tree/lazy.spec.ts +1 -1
- package/demos/pc/app/tree/node-hl.spec.ts +1 -1
- package/demos/pc/app/tree/node-op.spec.ts +1 -1
- package/demos/pc/app/tree/other.spec.ts +1 -1
- package/demos/pc/app/tree/props.spec.ts +1 -1
- package/demos/pc/app/tree/radio.spec.ts +1 -1
- package/demos/pc/app/tree/slot.spec.ts +1 -1
- package/demos/pc/app/tree/webdoc/tree.cn.md +1 -1
- package/demos/pc/app/tree/webdoc/tree.en.md +1 -1
- package/demos/pc/app/tree/webdoc/tree.js +67 -19
- package/demos/pc/app/tree-menu/custom-icon.spec.ts +1 -0
- package/demos/pc/app/tree-menu/only-check-children.spec.ts +24 -2
- package/demos/pc/app/tree-menu/props.spec.ts +22 -2
- package/demos/pc/app/tree-menu/show-expand.spec.ts +36 -4
- package/demos/pc/app/tree-menu/show-filter.spec.ts +54 -3
- package/demos/pc/app/tree-menu/show-number.spec.ts +14 -1
- package/demos/pc/app/tree-menu/webdoc/tree-menu.js +4 -4
- package/demos/pc/app/user-head/image-user-head-composition-api.vue +1 -1
- package/demos/pc/app/user-head/image-user-head.vue +1 -1
- package/demos/pc/app/user-head/webdoc/user-head.js +17 -17
- package/demos/pc/app/watermark/webdoc/watermark.js +32 -16
- package/demos/pc/menus.js +6 -1
- package/demos/pc/webdoc/form-valid-en.md +9 -3
- package/demos/pc/webdoc/form-valid.md +3 -1
- package/demos/pc/webdoc/theme-en.md +10 -8
- package/package.json +8 -7
- package/playground/App.vue +9 -0
- package/demos/mobile/app/button/event-click.vue +0 -40
- package/demos/mobile/app/button/native-type.vue +0 -105
- package/demos/mobile/app/button/plain.vue +0 -33
- package/demos/mobile/app/button/round.vue +0 -34
- package/demos/mobile/app/button/text.vue +0 -38
- package/demos/pc/app/calendar-view/hide-mode-composition-api.vue +0 -7
- package/demos/pc/app/calendar-view/hide-mode.vue +0 -13
- package/demos/pc/app/calendar-view/mode-combination-composition-api.vue +0 -7
- package/demos/pc/app/calendar-view/mode-combination.vue +0 -14
- package/demos/pc/app/file-upload/upload-limit-composition-api.vue +0 -22
- package/demos/pc/app/file-upload/upload-limit.spec.ts +0 -20
- package/demos/pc/app/file-upload/upload-limit.vue +0 -32
- package/demos/pc/app/time-select/disabled-composition-api.vue +0 -18
- package/demos/pc/app/time-select/disabled.spec.ts +0 -8
- package/demos/pc/app/time-select/disabled.vue +0 -26
- package/demos/pc/resource/user-group-2.png +0 -0
- package/demos/pc/resource/user-group.png +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="button-wrap">
|
|
3
|
+
<p>按钮类型</p>
|
|
4
|
+
<tiny-button type="primary" reset-time="500">主要按钮</tiny-button>
|
|
5
|
+
<tiny-button type="secondary">次要按钮</tiny-button>
|
|
6
|
+
<tiny-button type="danger">危险按钮</tiny-button>
|
|
7
|
+
<tiny-button type="text">文字按钮</tiny-button>
|
|
8
|
+
<tiny-button type="icon" :icon="IconMail"></tiny-button>
|
|
9
|
+
<tiny-button type="icon" :icon="IconMail" text="图标按钮"></tiny-button>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { Button } from '@opentiny/vue'
|
|
15
|
+
import { iconMail } from '@opentiny/vue-icon'
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
components: {
|
|
19
|
+
TinyButton: Button
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
IconMail: iconMail()
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style scoped>
|
|
30
|
+
body {
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
.button-wrap {
|
|
34
|
+
padding: 0 10px;
|
|
35
|
+
overflow-y: scroll;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
.button-wrap .tiny-mobile-button {
|
|
39
|
+
margin-right: 16px;
|
|
40
|
+
margin-bottom: 16px;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="button-wrap">
|
|
3
|
+
<h3>按钮不可用</h3>
|
|
4
|
+
<tiny-button type="primary" disabled>主要按钮不可用</tiny-button>
|
|
5
|
+
<tiny-button type="secondary" disabled>次要按钮不可用</tiny-button>
|
|
6
|
+
<tiny-button type="text" disabled>文字按钮不可用</tiny-button>
|
|
7
|
+
<tiny-button type="danger" disabled>危险按钮不可用</tiny-button>
|
|
8
|
+
<tiny-button type="icon" :icon="IconMail" disabled></tiny-button>
|
|
9
|
+
<tiny-button type="icon" :icon="IconMail" text="图标按钮" disabled></tiny-button>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { Button } from '@opentiny/vue'
|
|
15
|
+
import { iconMail } from '@opentiny/vue-icon'
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
components: {
|
|
19
|
+
TinyButton: Button
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
IconMail: iconMail()
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style scoped>
|
|
30
|
+
body {
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
}
|
|
33
|
+
.button-wrap {
|
|
34
|
+
padding: 0 10px;
|
|
35
|
+
overflow-y: scroll;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
.button-wrap .tiny-mobile-button {
|
|
39
|
+
margin-right: 16px;
|
|
40
|
+
margin-bottom: 16px;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="button-wrap">
|
|
3
|
+
<p>点击事件</p>
|
|
4
|
+
<tiny-button type="secondary" :loading="loading" @click="btnClick" size="small">点我加载</tiny-button>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { Button } from '@opentiny/vue'
|
|
10
|
+
import { iconMail } from '@opentiny/vue-icon'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
TinyButton: Button
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
IconMail: iconMail(),
|
|
19
|
+
loading: false
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
btnClick() {
|
|
24
|
+
this.loading = true
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
this.loading = false
|
|
27
|
+
}, 2000)
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<style scoped>
|
|
34
|
+
body {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
.button-wrap {
|
|
38
|
+
padding: 0 10px;
|
|
39
|
+
overflow-y: scroll;
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
.button-wrap .tiny-mobile-button {
|
|
43
|
+
margin-right: 16px;
|
|
44
|
+
margin-bottom: 16px;
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="button-wrap">
|
|
3
|
-
<
|
|
4
|
-
<tiny-button type="
|
|
5
|
-
<tiny-button type="
|
|
6
|
-
<tiny-button type="
|
|
7
|
-
<tiny-button type="
|
|
8
|
-
<tiny-button type="
|
|
3
|
+
<h3>图标</h3>
|
|
4
|
+
<tiny-button type="icon" :icon="IconSearch"></tiny-button>
|
|
5
|
+
<tiny-button type="icon" :icon="IconEdit" text="编辑"></tiny-button>
|
|
6
|
+
<tiny-button type="icon" :icon="IconYes" text="好的"></tiny-button>
|
|
7
|
+
<tiny-button type="icon" :icon="IconMail"></tiny-button>
|
|
8
|
+
<tiny-button type="icon" :icon="IconStarO"></tiny-button>
|
|
9
|
+
<tiny-button type="icon" :icon="IconDel" size="small"></tiny-button>
|
|
9
10
|
</div>
|
|
10
11
|
</template>
|
|
11
12
|
|
|
12
|
-
<script
|
|
13
|
+
<script>
|
|
13
14
|
import { Button } from '@opentiny/vue'
|
|
14
15
|
import { iconDel, iconYes, iconEdit, iconMail, iconStarO, iconSearch } from '@opentiny/vue-icon'
|
|
15
16
|
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="button-wrap">
|
|
3
|
-
<
|
|
4
|
-
<tiny-button type="primary" loading
|
|
5
|
-
<tiny-button type="
|
|
6
|
-
<tiny-button type="info" loading>加载中</tiny-button>
|
|
7
|
-
<tiny-button type="warning" loading>加载中</tiny-button>
|
|
8
|
-
<tiny-button type="danger" loading>加载中</tiny-button>
|
|
3
|
+
<h3>按钮加载状态</h3>
|
|
4
|
+
<tiny-button type="primary" loading>主要按钮-加载</tiny-button>
|
|
5
|
+
<tiny-button type="secondary" :loading="loading" @click="btnClick">点我加载</tiny-button>
|
|
9
6
|
</div>
|
|
10
7
|
</template>
|
|
11
8
|
|
|
12
|
-
<script
|
|
9
|
+
<script>
|
|
13
10
|
import { Button } from '@opentiny/vue'
|
|
14
11
|
|
|
15
12
|
export default {
|
|
@@ -17,16 +14,31 @@ export default {
|
|
|
17
14
|
TinyButton: Button
|
|
18
15
|
},
|
|
19
16
|
data() {
|
|
20
|
-
return {
|
|
17
|
+
return {
|
|
18
|
+
loading: false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
methods: {
|
|
22
|
+
btnClick() {
|
|
23
|
+
this.loading = true
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
this.loading = false
|
|
26
|
+
}, 2000)
|
|
27
|
+
}
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
</script>
|
|
24
31
|
|
|
25
32
|
<style scoped>
|
|
33
|
+
body {
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
26
36
|
.button-wrap {
|
|
27
37
|
padding: 0 10px;
|
|
38
|
+
overflow-y: scroll;
|
|
39
|
+
height: 100%;
|
|
28
40
|
}
|
|
29
|
-
.button-wrap .tiny-mobile-button
|
|
41
|
+
.button-wrap .tiny-mobile-button {
|
|
30
42
|
margin-right: 16px;
|
|
31
43
|
margin-bottom: 16px;
|
|
32
44
|
}
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="button-wrap">
|
|
3
|
-
<
|
|
4
|
-
<tiny-button type="primary"
|
|
5
|
-
<tiny-button type="success" round :reset-time="5000">禁用5秒</tiny-button>
|
|
6
|
-
<tiny-button round>圆角按钮</tiny-button>
|
|
7
|
-
<tiny-button type="primary" round disabled>主要按钮</tiny-button>
|
|
8
|
-
<tiny-button type="success" round disabled>成功按钮</tiny-button>
|
|
9
|
-
<tiny-button type="info" round disabled>信息按钮</tiny-button>
|
|
10
|
-
<tiny-button type="warning" round disabled>警告按钮</tiny-button>
|
|
11
|
-
<tiny-button type="danger" round disabled>危险按钮</tiny-button>
|
|
12
|
-
<tiny-button type="secondary" round disabled>次要按钮</tiny-button>
|
|
13
|
-
<tiny-button round disabled>弱按钮</tiny-button>
|
|
3
|
+
<p>按钮类型</p>
|
|
4
|
+
<tiny-button type="primary" reset-time="500">重置时间</tiny-button>
|
|
14
5
|
</div>
|
|
15
6
|
</template>
|
|
16
7
|
|
|
17
|
-
<script
|
|
8
|
+
<script>
|
|
18
9
|
import { Button } from '@opentiny/vue'
|
|
19
10
|
|
|
20
11
|
export default {
|
|
21
12
|
components: {
|
|
22
13
|
TinyButton: Button
|
|
23
|
-
},
|
|
24
|
-
data() {
|
|
25
|
-
return {}
|
|
26
14
|
}
|
|
27
15
|
}
|
|
28
16
|
</script>
|
|
29
17
|
|
|
30
18
|
<style scoped>
|
|
19
|
+
body {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
31
22
|
.button-wrap {
|
|
32
|
-
padding: 10px
|
|
23
|
+
padding: 0 10px;
|
|
24
|
+
overflow-y: scroll;
|
|
25
|
+
height: 100%;
|
|
33
26
|
}
|
|
34
27
|
.button-wrap .tiny-mobile-button {
|
|
35
28
|
margin-right: 16px;
|
|
@@ -1,33 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="button-wrap">
|
|
3
|
-
<
|
|
4
|
-
<tiny-button type="primary" size="
|
|
5
|
-
<tiny-button type="
|
|
6
|
-
<tiny-button type="
|
|
7
|
-
<tiny-button type="
|
|
8
|
-
<tiny-button type="
|
|
9
|
-
<tiny-button type="
|
|
10
|
-
<tiny-button type="
|
|
11
|
-
<tiny-button type="
|
|
3
|
+
<h3>按钮小尺寸</h3>
|
|
4
|
+
<tiny-button type="primary" size="small">主要按钮</tiny-button>
|
|
5
|
+
<tiny-button type="secondary" size="small">次要按钮</tiny-button>
|
|
6
|
+
<tiny-button type="danger" size="small">危险按钮</tiny-button>
|
|
7
|
+
<tiny-button type="text" size="small">文字按钮</tiny-button>
|
|
8
|
+
<tiny-button type="icon" :icon="IconMail" size="small"></tiny-button>
|
|
9
|
+
<tiny-button type="icon" :icon="IconMail" text="图标按钮" size="small"></tiny-button>
|
|
10
|
+
<tiny-button type="primary" loading size="small">主要按钮-加载</tiny-button>
|
|
11
|
+
<tiny-button type="secondary" :loading="loading" @click="btnClick" size="small">点我加载</tiny-button>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
|
-
<script
|
|
15
|
+
<script>
|
|
16
16
|
import { Button } from '@opentiny/vue'
|
|
17
|
+
import { iconMail } from '@opentiny/vue-icon'
|
|
17
18
|
|
|
18
19
|
export default {
|
|
19
20
|
components: {
|
|
20
21
|
TinyButton: Button
|
|
21
22
|
},
|
|
22
23
|
data() {
|
|
23
|
-
return {
|
|
24
|
+
return {
|
|
25
|
+
IconMail: iconMail(),
|
|
26
|
+
loading: false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
btnClick() {
|
|
31
|
+
this.loading = true
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
this.loading = false
|
|
34
|
+
}, 2000)
|
|
35
|
+
}
|
|
24
36
|
}
|
|
25
37
|
}
|
|
26
38
|
</script>
|
|
27
39
|
|
|
28
40
|
<style scoped>
|
|
41
|
+
body {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
}
|
|
29
44
|
.button-wrap {
|
|
30
45
|
padding: 0 10px;
|
|
46
|
+
overflow-y: scroll;
|
|
47
|
+
height: 100%;
|
|
31
48
|
}
|
|
32
49
|
.button-wrap .tiny-mobile-button {
|
|
33
50
|
margin-right: 16px;
|
|
@@ -3,28 +3,28 @@ export default {
|
|
|
3
3
|
owner: '',
|
|
4
4
|
demos: [
|
|
5
5
|
{
|
|
6
|
-
demoId: '
|
|
6
|
+
demoId: 'base',
|
|
7
7
|
name: {
|
|
8
|
-
'zh-CN': '
|
|
9
|
-
'en-US': '
|
|
8
|
+
'zh-CN': '基础用法',
|
|
9
|
+
'en-US': 'base'
|
|
10
10
|
},
|
|
11
11
|
desc: {
|
|
12
|
-
'zh-CN': '<p
|
|
13
|
-
'en-US': '<p>
|
|
12
|
+
'zh-CN': '<p>基础用法</p>',
|
|
13
|
+
'en-US': '<p>base</p>'
|
|
14
14
|
},
|
|
15
|
-
codeFiles: ['
|
|
15
|
+
codeFiles: ['base.vue']
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
demoId: '
|
|
18
|
+
demoId: 'disabled',
|
|
19
19
|
name: {
|
|
20
|
-
'zh-CN': '
|
|
21
|
-
'en-US': '
|
|
20
|
+
'zh-CN': '不可用',
|
|
21
|
+
'en-US': 'disabled'
|
|
22
22
|
},
|
|
23
23
|
desc: {
|
|
24
|
-
'zh-CN': '<p
|
|
25
|
-
'en-US': '<p>
|
|
24
|
+
'zh-CN': '<p>不可用</p>',
|
|
25
|
+
'en-US': '<p>disabled</p>'
|
|
26
26
|
},
|
|
27
|
-
codeFiles: ['
|
|
27
|
+
codeFiles: ['disabled.vue']
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
demoId: 'loading',
|
|
@@ -39,77 +39,52 @@ export default {
|
|
|
39
39
|
codeFiles: ['loading.vue']
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
demoId: '
|
|
42
|
+
demoId: 'size',
|
|
43
43
|
name: {
|
|
44
|
-
'zh-CN': '
|
|
44
|
+
'zh-CN': '不同尺寸',
|
|
45
45
|
'en-US': 'events'
|
|
46
46
|
},
|
|
47
47
|
desc: {
|
|
48
|
-
'zh-CN':
|
|
49
|
-
'<p>通过<code>native-type</code>属性可以设置原生 type 属性,该属性的可选值为 button / submit / reset</p>',
|
|
48
|
+
'zh-CN': '<p>不同尺寸</p>',
|
|
50
49
|
'en-US': '<p>bbutton click</p>'
|
|
51
50
|
},
|
|
52
|
-
codeFiles: ['
|
|
51
|
+
codeFiles: ['size.vue']
|
|
53
52
|
},
|
|
54
53
|
{
|
|
55
|
-
demoId: '
|
|
54
|
+
demoId: 'icon',
|
|
56
55
|
name: {
|
|
57
|
-
'zh-CN': '
|
|
58
|
-
'en-US': '
|
|
56
|
+
'zh-CN': '图标',
|
|
57
|
+
'en-US': 'icon'
|
|
59
58
|
},
|
|
60
59
|
desc: {
|
|
61
|
-
'zh-CN': '<p
|
|
62
|
-
'en-US': '<p>
|
|
60
|
+
'zh-CN': '<p>图标</p>',
|
|
61
|
+
'en-US': '<p>icon</p>'
|
|
63
62
|
},
|
|
64
|
-
codeFiles: ['
|
|
63
|
+
codeFiles: ['icon.vue']
|
|
65
64
|
},
|
|
66
65
|
{
|
|
67
66
|
demoId: 'reset-time',
|
|
68
67
|
name: {
|
|
69
|
-
'zh-CN': '
|
|
70
|
-
'en-US': '
|
|
68
|
+
'zh-CN': '重置时间',
|
|
69
|
+
'en-US': 'reset time'
|
|
71
70
|
},
|
|
72
71
|
desc: {
|
|
73
|
-
'zh-CN': '<p
|
|
74
|
-
'en-US': '<p>
|
|
72
|
+
'zh-CN': '<p>重置时间</p>',
|
|
73
|
+
'en-US': '<p>reset-time</p>'
|
|
75
74
|
},
|
|
76
75
|
codeFiles: ['reset-time.vue']
|
|
77
76
|
},
|
|
78
77
|
{
|
|
79
|
-
demoId: '
|
|
78
|
+
demoId: 'event',
|
|
80
79
|
name: {
|
|
81
|
-
'zh-CN': '
|
|
82
|
-
'en-US': 'events'
|
|
83
|
-
},
|
|
84
|
-
desc: {
|
|
85
|
-
'zh-CN': '<p>圆角按钮</p>',
|
|
86
|
-
'en-US': '<p>bbutton click</p>'
|
|
87
|
-
},
|
|
88
|
-
codeFiles: ['round.vue']
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
demoId: 'size',
|
|
92
|
-
name: {
|
|
93
|
-
'zh-CN': '不同尺寸',
|
|
94
|
-
'en-US': 'events'
|
|
95
|
-
},
|
|
96
|
-
desc: {
|
|
97
|
-
'zh-CN': '<p>不同尺寸</p>',
|
|
98
|
-
'en-US': '<p>bbutton click</p>'
|
|
99
|
-
},
|
|
100
|
-
codeFiles: ['size.vue']
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
demoId: 'text',
|
|
104
|
-
name: {
|
|
105
|
-
'zh-CN': '文字按钮',
|
|
80
|
+
'zh-CN': '点击事件',
|
|
106
81
|
'en-US': 'events'
|
|
107
82
|
},
|
|
108
83
|
desc: {
|
|
109
|
-
'zh-CN': '<p
|
|
110
|
-
'en-US': '<p>
|
|
84
|
+
'zh-CN': '<p>点击事件</p>',
|
|
85
|
+
'en-US': '<p>button click</p>'
|
|
111
86
|
},
|
|
112
|
-
codeFiles: ['
|
|
87
|
+
codeFiles: ['event.vue']
|
|
113
88
|
}
|
|
114
89
|
],
|
|
115
90
|
apis: [
|
|
@@ -119,17 +94,17 @@ export default {
|
|
|
119
94
|
properties: [
|
|
120
95
|
{
|
|
121
96
|
name: 'disabled',
|
|
122
|
-
type: '
|
|
97
|
+
type: 'boolean',
|
|
123
98
|
defaultValue: 'false',
|
|
124
99
|
desc: {
|
|
125
100
|
'zh-CN': '<p>设置按钮是否被禁用,该属性默认为false</p>',
|
|
126
101
|
'en-US': 'display different button'
|
|
127
102
|
},
|
|
128
|
-
demoId: ''
|
|
103
|
+
demoId: 'disabled'
|
|
129
104
|
},
|
|
130
105
|
{
|
|
131
106
|
name: 'icon',
|
|
132
|
-
type: '
|
|
107
|
+
type: 'VueComponent',
|
|
133
108
|
defaultValue: '',
|
|
134
109
|
desc: {
|
|
135
110
|
'zh-CN': '<p>svg 图片对象</p>',
|
|
@@ -139,7 +114,7 @@ export default {
|
|
|
139
114
|
},
|
|
140
115
|
{
|
|
141
116
|
name: 'loading',
|
|
142
|
-
type: '
|
|
117
|
+
type: 'boolean',
|
|
143
118
|
defaultValue: 'false',
|
|
144
119
|
desc: {
|
|
145
120
|
'zh-CN': '<p>svg 是否加载中状态,该属性默认为false</p>',
|
|
@@ -147,49 +122,19 @@ export default {
|
|
|
147
122
|
},
|
|
148
123
|
demoId: 'loading'
|
|
149
124
|
},
|
|
150
|
-
{
|
|
151
|
-
name: 'native-type',
|
|
152
|
-
type: 'String',
|
|
153
|
-
defaultValue: 'button',
|
|
154
|
-
desc: {
|
|
155
|
-
'zh-CN': '<p>原生 type 属性,该属性默认为button</p>',
|
|
156
|
-
'en-US': 'display different button'
|
|
157
|
-
},
|
|
158
|
-
demoId: 'native-type'
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: 'plain',
|
|
162
|
-
type: 'Boolean',
|
|
163
|
-
defaultValue: 'false',
|
|
164
|
-
desc: {
|
|
165
|
-
'zh-CN': '<p>是否朴素按钮,该属性默认为false</p>',
|
|
166
|
-
'en-US': 'display different button'
|
|
167
|
-
},
|
|
168
|
-
demoId: 'plain'
|
|
169
|
-
},
|
|
170
125
|
{
|
|
171
126
|
name: 'reset-time',
|
|
172
|
-
type: '
|
|
173
|
-
defaultValue: '
|
|
127
|
+
type: 'number',
|
|
128
|
+
defaultValue: '0',
|
|
174
129
|
desc: {
|
|
175
130
|
'zh-CN': '<p>设置按钮禁用时间,防止重复提交,单位毫秒,该属性默认为1000</p>',
|
|
176
131
|
'en-US': 'display different button'
|
|
177
132
|
},
|
|
178
133
|
demoId: 'reset-time'
|
|
179
134
|
},
|
|
180
|
-
{
|
|
181
|
-
name: 'round',
|
|
182
|
-
type: 'Boolean',
|
|
183
|
-
defaultValue: 'false',
|
|
184
|
-
desc: {
|
|
185
|
-
'zh-CN': '<p>是否圆角按钮,该属性默认为false</p>',
|
|
186
|
-
'en-US': 'display different button'
|
|
187
|
-
},
|
|
188
|
-
demoId: 'round'
|
|
189
|
-
},
|
|
190
135
|
{
|
|
191
136
|
name: 'size',
|
|
192
|
-
type: '
|
|
137
|
+
type: 'string',
|
|
193
138
|
defaultValue: '"large" | "medium" | "small" | "mini"',
|
|
194
139
|
desc: {
|
|
195
140
|
'zh-CN': '<p>尺寸</p>',
|
|
@@ -199,13 +144,13 @@ export default {
|
|
|
199
144
|
},
|
|
200
145
|
{
|
|
201
146
|
name: 'type',
|
|
202
|
-
type: '"primary" | "
|
|
147
|
+
type: '"primary" | "secondary" | "text" |"icon" | "danger"',
|
|
203
148
|
defaultValue: '',
|
|
204
149
|
desc: {
|
|
205
150
|
'zh-CN': '<p>类型</p>',
|
|
206
151
|
'en-US': 'display different button'
|
|
207
152
|
},
|
|
208
|
-
demoId: '
|
|
153
|
+
demoId: 'base'
|
|
209
154
|
},
|
|
210
155
|
{
|
|
211
156
|
name: 'text',
|
|
@@ -215,19 +160,19 @@ export default {
|
|
|
215
160
|
'zh-CN': '<p>设置按钮显示的文本,可配置国际化 </p>',
|
|
216
161
|
'en-US': 'display different button'
|
|
217
162
|
},
|
|
218
|
-
demoId: '
|
|
163
|
+
demoId: 'base'
|
|
219
164
|
}
|
|
220
165
|
],
|
|
221
166
|
events: [
|
|
222
167
|
{
|
|
223
168
|
name: 'click',
|
|
224
|
-
type: '',
|
|
169
|
+
type: '(event: PointEvent) => void',
|
|
225
170
|
defaultValue: '',
|
|
226
171
|
desc: {
|
|
227
172
|
'zh-CN': '<p>设置当按钮被点击时触发的回调函数。</p>',
|
|
228
173
|
'en-US': 'Click'
|
|
229
174
|
},
|
|
230
|
-
demoId: 'event
|
|
175
|
+
demoId: 'event'
|
|
231
176
|
}
|
|
232
177
|
],
|
|
233
178
|
slots: [
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
'name': 'suffix-icon',
|
|
176
|
-
'type': '
|
|
176
|
+
'type': 'Component',
|
|
177
177
|
'defaultValue': '',
|
|
178
178
|
'desc': {
|
|
179
179
|
'zh-CN': '下拉触发源图标',
|
|
@@ -259,7 +259,7 @@ interface IItemData {
|
|
|
259
259
|
disabled: boolean // 是否禁用
|
|
260
260
|
divided: boolean // 是否显示分割线
|
|
261
261
|
children: IItemData[] // 菜单项子集
|
|
262
|
-
icon:
|
|
262
|
+
icon: Component // 菜单项图标
|
|
263
263
|
}
|
|
264
264
|
`
|
|
265
265
|
},
|
|
@@ -7,7 +7,7 @@ test('关闭按钮', async ({ page }) => {
|
|
|
7
7
|
const demo = page.locator('#custom-close')
|
|
8
8
|
const customAlert = demo.locator('.tiny-alert').first()
|
|
9
9
|
const defaultClose = customAlert.locator('.tiny-alert__close')
|
|
10
|
-
const customClose = customAlert.locator('.
|
|
10
|
+
const customClose = customAlert.locator('.is-custom .tiny-svg')
|
|
11
11
|
const switchBtn = demo.locator('.tiny-switch')
|
|
12
12
|
|
|
13
13
|
// 自定义关闭图标
|