From 9d42fa10d567d7a23e0f4e74552131483b6b3d06 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Sat, 8 Feb 2025 18:17:38 +0800 Subject: [PATCH] docs: convert the mobile demo to the composition-api format --- .../demos/mobile/app/actionsheet/clickfn.vue | 63 +- .../demos/mobile/app/actionsheet/ellipsis.vue | 58 +- .../mobile/app/actionsheet/slot-action.vue | 96 +- .../mobile/app/actionsheet/slot-item.vue | 56 +- .../demos/mobile/app/alert/basic-usage.vue | 8 +- .../sites/demos/mobile/app/alert/center.vue | 8 +- .../demos/mobile/app/alert/custom-close.vue | 30 +- .../sites/demos/mobile/app/alert/icon.vue | 13 +- .../sites/demos/mobile/app/alert/size.vue | 8 +- .../demos/mobile/app/alert/slot-default.vue | 8 +- .../sites/demos/mobile/app/alert/target.vue | 12 +- .../demos/mobile/app/avatar/avatar-size.vue | 14 +- .../mobile/app/avatar/avatar-src-set.vue | 33 +- .../sites/demos/mobile/app/badge/content.vue | 14 +- .../sites/demos/mobile/app/badge/hidden.vue | 24 +- .../demos/mobile/app/badge/href-target.vue | 14 +- .../sites/demos/mobile/app/badge/is-dot.vue | 14 +- .../sites/demos/mobile/app/badge/is-mini.vue | 14 +- .../sites/demos/mobile/app/badge/type.vue | 14 +- .../sites/demos/mobile/app/button/base.vue | 13 +- .../demos/mobile/app/button/disabled.vue | 13 +- .../sites/demos/mobile/app/button/event.vue | 29 +- .../sites/demos/mobile/app/button/icon.vue | 23 +- .../sites/demos/mobile/app/button/loading.vue | 27 +- .../demos/mobile/app/button/reset-time.vue | 8 +- .../sites/demos/mobile/app/button/size.vue | 29 +- .../demos/mobile/app/checkbox/basic-usage.vue | 16 +- .../mobile/app/checkbox/checkbox-group.vue | 15 +- .../demos/mobile/app/checkbox/disabled.vue | 15 +- .../mobile/app/checkbox/event-change.vue | 21 +- .../mobile/app/checkbox/icon-position.vue | 17 +- .../mobile/app/checkbox/indeterminate.vue | 54 +- .../mobile/app/checkbox/true-false-label.vue | 14 +- .../mobile/app/checkboxgroup/disabled.vue | 17 +- .../mobile/app/checkboxgroup/event-change.vue | 24 +- .../mobile/app/checkboxgroup/min-max.vue | 17 +- .../mobile/app/checkboxgroup/vertical.vue | 17 +- .../mobile/app/container/basic-usage.vue | 16 +- .../mobile/app/container/custom-width.vue | 20 +- .../mobile/app/dialog-box/append-to-body.vue | 15 +- .../mobile/app/dialog-box/cancel-confirm.vue | 36 +- .../app/dialog-box/close-on-click-modal.vue | 15 +- .../app/dialog-box/events-open-close.vue | 36 +- .../mobile/app/dialog-box/lock-scroll.vue | 15 +- .../mobile/app/dialog-box/show-header.vue | 15 +- .../mobile/app/dialog-box/slot-footer.vue | 15 +- .../mobile/app/dialog-box/slot-title.vue | 15 +- .../mobile/app/dialog-box/with-input.vue | 20 +- .../mobile/app/dropdownmenu/activeColor.vue | 77 +- .../app/dropdownmenu/closeOnClickOutside.vue | 89 +- .../app/dropdownmenu/closeOnClickOverlay.vue | 89 +- .../mobile/app/dropdownmenu/direction.vue | 89 +- .../mobile/app/dropdownmenu/duration.vue | 89 +- .../demos/mobile/app/dropdownmenu/event.vue | 136 ++- .../demos/mobile/app/dropdownmenu/icon.vue | 27 +- .../mobile/app/dropdownmenu/item-disabled.vue | 89 +- .../demos/mobile/app/dropdownmenu/overlay.vue | 79 +- .../mobile/app/dropdownmenu/screen-funnel.vue | 83 +- .../demos/mobile/app/dropdownmenu/slot.vue | 93 +- .../mobile/app/dropdownmenu/title-class.vue | 83 +- .../demos/mobile/app/dropdownmenu/type.vue | 89 +- .../demos/mobile/app/exception/buttonText.vue | 21 +- .../mobile/app/exception/exceptionClass.vue | 18 +- .../demos/mobile/app/exception/message.vue | 16 +- .../mobile/app/exception/mobileexception.vue | 17 +- .../demos/mobile/app/exception/subMessage.vue | 12 +- .../sites/demos/mobile/app/exception/type.vue | 21 +- .../mobile/app/file-upload/abort-quest.vue | 29 +- .../mobile/app/file-upload/accept-file.vue | 21 +- .../mobile/app/file-upload/clear-files.vue | 45 +- .../mobile/app/file-upload/custom-trigger.vue | 17 +- .../app/file-upload/custom-upload-tip.vue | 20 +- .../demos/mobile/app/file-upload/data.vue | 26 +- .../app/file-upload/dynamic-disable.vue | 27 +- .../mobile/app/file-upload/file-icon-list.vue | 64 +- .../app/file-upload/file-picture-card.vue | 85 +- .../mobile/app/file-upload/header-show.vue | 19 +- .../mobile/app/file-upload/manual-upload.vue | 27 +- .../mobile/app/file-upload/max-file-count.vue | 20 +- .../mobile/app/file-upload/mini-mode.vue | 30 +- .../mobile/app/file-upload/multiple-file.vue | 18 +- .../mobile/app/file-upload/picture-card.vue | 93 +- .../app/file-upload/prevent-delete-file.vue | 45 +- .../demos/mobile/app/file-upload/size.vue | 17 +- .../mobile/app/file-upload/upload-events.vue | 85 +- .../app/file-upload/upload-file-list.vue | 34 +- .../app/file-upload/upload-http-request.vue | 47 +- .../mobile/app/file-upload/upload-request.vue | 47 +- .../app/file-upload/upload-user-head.vue | 27 +- .../app/file-upload/with-credentials.vue | 19 +- .../demos/mobile/app/form/auto-wordwrap.vue | 49 +- .../mobile/app/form/form-label-suffix.vue | 87 +- .../demos/mobile/app/form/form-select.vue | 79 +- .../demos/mobile/app/form/form-tabselect.vue | 23 +- .../demos/mobile/app/form/form-writeone.vue | 56 +- .../demos/mobile/app/form/form-writetwo.vue | 35 +- .../app/form/hide-required-asterisk.vue | 83 +- .../demos/mobile/app/form/label-width.vue | 90 +- .../sites/demos/mobile/app/form/only-read.vue | 75 +- .../mobile/app/form/validate-position.vue | 85 +- .../sites/demos/mobile/app/form/validate.vue | 99 +- .../sites/demos/mobile/app/icon/icon-set.vue | 54 +- .../app/imageviewer/events-change-close.vue | 46 +- .../app/imageviewer/image-full-current.vue | 32 +- .../mobile/app/imageviewer/slot-index.vue | 34 +- .../mobile/app/imageviewer/start-position.vue | 32 +- .../sites/demos/mobile/app/index-bar/base.vue | 33 +- .../demos/mobile/app/index-bar/event.vue | 36 +- .../demos/mobile/app/input/basic-usage.vue | 18 +- .../demos/mobile/app/input/clearable.vue | 14 +- .../sites/demos/mobile/app/input/counter.vue | 16 +- .../sites/demos/mobile/app/input/disabled.vue | 18 +- .../sites/demos/mobile/app/input/events.vue | 55 +- .../demos/mobile/app/input/max-min-length.vue | 14 +- .../sites/demos/mobile/app/input/methods.vue | 44 +- .../mobile/app/input/native-attributes.vue | 22 +- .../mobile/app/input/prefix-suffix-icon.vue | 16 +- .../demos/mobile/app/input/show-password.vue | 14 +- .../sites/demos/mobile/app/input/slots.vue | 18 +- .../mobile/app/input/textarea-rows-cols.vue | 18 +- .../mobile/app/input/textarea-scalable.vue | 24 +- .../demos/mobile/app/input/type-select.vue | 48 +- .../sites/demos/mobile/app/input/type.vue | 42 +- .../demos/mobile/app/input/validate-event.vue | 34 +- .../sites/demos/mobile/app/label/base.vue | 8 +- .../sites/demos/mobile/app/label/bold.vue | 8 +- .../sites/demos/mobile/app/label/color.vue | 8 +- .../sites/demos/mobile/app/label/decimal.vue | 8 +- .../sites/demos/mobile/app/label/ellipsis.vue | 14 +- .../sites/demos/mobile/app/label/limit.vue | 8 +- .../sites/demos/mobile/app/label/position.vue | 8 +- .../sites/demos/mobile/app/label/required.vue | 8 +- .../sites/demos/mobile/app/label/size.vue | 8 +- .../sites/demos/mobile/app/label/type.vue | 8 +- .../demos/mobile/app/label/wholeline.vue | 8 +- .../demos/mobile/app/list/double-line.vue | 36 +- .../demos/mobile/app/list/double-list.vue | 36 +- .../mobile/app/list/imformation-list.vue | 142 ++- .../demos/mobile/app/list/single-line.vue | 54 +- .../sites/demos/mobile/app/list/slots.vue | 58 +- .../demos/mobile/app/loading/background.vue | 21 +- .../sites/demos/mobile/app/loading/base.vue | 34 +- .../demos/mobile/app/loading/custom-class.vue | 21 +- .../mobile/app/loading/global-registry.vue | 54 +- .../sites/demos/mobile/app/loading/size.vue | 65 +- .../demos/mobile/app/loading/spinner.vue | 23 +- .../demos/mobile/app/loading/tip-text.vue | 19 +- .../sites/demos/mobile/app/loading/type.vue | 33 +- .../demos/mobile/app/mask/basic-usage.vue | 24 +- .../demos/mobile/app/mask/click-no-hide.vue | 15 +- .../demos/mobile/app/mask/slot-default.vue | 15 +- .../sites/demos/mobile/app/mask/z-index.vue | 17 +- .../app/minipicker/cancel-button-text.vue | 49 +- .../demos/mobile/app/minipicker/cancel.vue | 38 +- .../demos/mobile/app/minipicker/cascad.vue | 189 ++-- .../demos/mobile/app/minipicker/change.vue | 31 +- .../demos/mobile/app/minipicker/column.vue | 46 +- .../mobile/app/minipicker/defaultindex.vue | 24 +- .../mobile/app/minipicker/itemheight.vue | 24 +- .../demos/mobile/app/minipicker/methods.vue | 38 +- .../mobile/app/minipicker/multicolumn.vue | 49 +- .../demos/mobile/app/minipicker/toolbar.vue | 36 +- .../app/minipicker/visibleitemcount.vue | 24 +- .../sites/demos/mobile/app/modal/base.vue | 51 +- .../demos/mobile/app/modal/cancel-event.vue | 22 +- .../demos/mobile/app/modal/close-event.vue | 22 +- .../demos/mobile/app/modal/confirm-event.vue | 22 +- .../sites/demos/mobile/app/modal/duration.vue | 47 +- .../demos/mobile/app/modal/esc-closable.vue | 13 +- .../demos/mobile/app/modal/footer-slot.vue | 15 +- .../demos/mobile/app/modal/fullscreen.vue | 13 +- .../demos/mobile/app/modal/hide-event.vue | 22 +- examples/sites/demos/mobile/app/modal/id.vue | 13 +- .../demos/mobile/app/modal/is-form-reset.vue | 31 +- .../demos/mobile/app/modal/lock-scroll.vue | 23 +- .../demos/mobile/app/modal/lock-view.vue | 23 +- .../demos/mobile/app/modal/mask-closable.vue | 13 +- .../sites/demos/mobile/app/modal/message.vue | 13 +- .../demos/mobile/app/modal/min-height.vue | 23 +- .../demos/mobile/app/modal/min-width.vue | 23 +- .../sites/demos/mobile/app/modal/resize.vue | 25 +- .../demos/mobile/app/modal/show-event.vue | 22 +- .../demos/mobile/app/modal/showFooter.vue | 13 +- .../demos/mobile/app/modal/showHeader.vue | 13 +- .../sites/demos/mobile/app/modal/status.vue | 41 +- .../sites/demos/mobile/app/modal/title.vue | 13 +- examples/sites/demos/mobile/app/modal/top.vue | 13 +- .../sites/demos/mobile/app/modal/type.vue | 27 +- .../sites/demos/mobile/app/modal/value.vue | 15 +- .../sites/demos/mobile/app/modal/zIndex.vue | 13 +- .../demos/mobile/app/modal/zoom-event.vue | 22 +- .../mobile/app/multi-select/basic-usage.vue | 728 ++++++++------- .../mobile/app/multi-select/disabled.vue | 870 +++++++++--------- .../app/multi-select/event-click-item.vue | 445 +++++---- .../demos/mobile/app/multi-select/filter.vue | 438 +++++---- .../demos/mobile/app/multi-select/mask.vue | 72 +- .../demos/mobile/app/multi-select/slots.vue | 66 +- .../mobile/app/multi-select/type-wheel.vue | 374 ++++---- .../mobile/app/navbar/left-right-arrow.vue | 11 +- .../mobile/app/navbar/left-right-text.vue | 11 +- .../sites/demos/mobile/app/navbar/slots.vue | 18 +- .../sites/demos/mobile/app/navbar/z-index.vue | 11 +- .../mobile/app/numeric/automatic-price.vue | 20 +- .../demos/mobile/app/numeric/circulate.vue | 18 +- .../mobile/app/numeric/controls-position.vue | 16 +- .../demos/mobile/app/numeric/controls.vue | 14 +- .../sites/demos/mobile/app/numeric/event.vue | 35 +- .../sites/demos/mobile/app/numeric/max.vue | 16 +- .../demos/mobile/app/numeric/placeholder.vue | 14 +- .../demos/mobile/app/numeric/precision.vue | 16 +- .../sites/demos/mobile/app/numeric/step.vue | 16 +- .../sites/demos/mobile/app/popover/base.vue | 114 ++- .../demos/mobile/app/popover/direction.vue | 112 ++- .../mobile/app/progress/custom-color.vue | 48 +- .../app/progress/dynamic-control-changes.vue | 44 +- .../mobile/app/progress/dynamic-progress.vue | 48 +- .../demos/mobile/app/progress/format-text.vue | 16 +- .../demos/mobile/app/progress/format.vue | 21 +- .../mobile/app/progress/progress-status.vue | 10 +- .../app/progress/progress-type-circle.vue | 8 +- .../app/progress/progress-type-dashboard.vue | 47 +- .../mobile/app/progress/progress-type.vue | 8 +- .../mobile/app/progress/progress-width.vue | 15 +- .../app/progress/text-inside-or-no-text.vue | 16 +- .../sites/demos/mobile/app/progress/width.vue | 8 +- .../app/pull-refresh/animation-duration.vue | 50 +- .../demos/mobile/app/pull-refresh/base.vue | 46 +- .../app/pull-refresh/disabled-pull-down.vue | 39 +- .../app/pull-refresh/disabled-pull-up.vue | 41 +- .../demos/mobile/app/pull-refresh/event.vue | 46 +- .../mobile/app/pull-refresh/has-more.vue | 46 +- .../mobile/app/pull-refresh/loosing-text.vue | 46 +- .../app/pull-refresh/pull-refresh-slot.vue | 50 +- .../app/pull-refresh/pull-up-distance.vue | 46 +- .../mobile/app/pull-refresh/pulling-text.vue | 46 +- .../sites/demos/mobile/app/radio/base.vue | 14 +- .../sites/demos/mobile/app/radio/disabled.vue | 14 +- .../sites/demos/mobile/app/radio/event.vue | 23 +- .../sites/demos/mobile/app/radio/label.vue | 14 +- .../sites/demos/mobile/app/search/base.vue | 58 +- .../demos/mobile/app/search/button-text.vue | 8 +- .../sites/demos/mobile/app/search/clear.vue | 65 +- .../demos/mobile/app/search/default-value.vue | 14 +- .../sites/demos/mobile/app/search/events.vue | 30 +- .../demos/mobile/app/slider/about-step.vue | 14 +- .../mobile/app/slider/dynamic-disable.vue | 14 +- .../mobile/app/slider/format-tooltip.vue | 21 +- .../sites/demos/mobile/app/slider/max-min.vue | 14 +- .../demos/mobile/app/slider/range-select.vue | 14 +- .../mobile/app/slider/shortcut-operation.vue | 14 +- .../demos/mobile/app/slider/show-input.vue | 14 +- .../demos/mobile/app/slider/show-tip.vue | 14 +- .../mobile/app/slider/slider-event-change.vue | 21 +- .../mobile/app/slider/slider-event-start.vue | 21 +- .../mobile/app/slider/slider-event-stop.vue | 21 +- .../demos/mobile/app/slider/slider-slot.vue | 14 +- .../demos/mobile/app/slider/vertical-mode.vue | 14 +- .../sites/demos/mobile/app/switch/base.vue | 14 +- .../demos/mobile/app/switch/disabled.vue | 8 +- .../sites/demos/mobile/app/switch/event.vue | 23 +- .../sites/demos/mobile/app/switch/loading.vue | 42 +- .../sites/demos/mobile/app/switch/mini.vue | 8 +- .../app/tabbar/active-inactive-color.vue | 23 +- .../sites/demos/mobile/app/tabbar/badge.vue | 23 +- .../sites/demos/mobile/app/tabbar/base.vue | 66 +- .../sites/demos/mobile/app/tabbar/border.vue | 23 +- .../demos/mobile/app/tabbar/event-change.vue | 30 +- .../demos/mobile/app/tabbar/onlytext.vue | 36 +- .../sites/demos/mobile/app/tabbar/route.vue | 23 +- .../demos/mobile/app/tabbar/slot-icon.vue | 31 +- .../sites/demos/mobile/app/table/base.vue | 282 +++--- .../demos/mobile/app/tabs/active-color.vue | 15 +- .../demos/mobile/app/tabs/add-delete-tab.vue | 93 +- .../demos/mobile/app/tabs/basic-usage.vue | 15 +- .../demos/mobile/app/tabs/before-leave.vue | 28 +- .../sites/demos/mobile/app/tabs/expand.vue | 105 +-- examples/sites/demos/mobile/app/tabs/size.vue | 15 +- .../sites/demos/mobile/app/tabs/stretch.vue | 15 +- .../sites/demos/mobile/app/tabs/swipe.vue | 15 +- .../demos/mobile/app/tabs/tabs-events.vue | 76 +- .../demos/mobile/app/tag/basic-usage.vue | 8 +- .../demos/mobile/app/tag/different-color.vue | 8 +- .../sites/demos/mobile/app/tag/max-width.vue | 8 +- examples/sites/demos/mobile/app/tag/mini.vue | 8 +- .../mobile/app/timeline/different-data.vue | 75 +- .../mobile/app/timeline/mobileTimeLine.vue | 65 +- .../sites/demos/mobile/app/timeline/slot.vue | 115 ++- .../sites/demos/mobile/app/timeline/space.vue | 115 ++- .../sites/demos/mobile/app/timeline/steps.vue | 65 +- .../sites/demos/mobile/app/toast/base.vue | 26 +- .../sites/demos/mobile/app/toast/failed.vue | 24 +- .../sites/demos/mobile/app/toast/success.vue | 26 +- .../mobile/app/user-head/basic-usage.vue | 16 +- .../demos/mobile/app/user-head/color.vue | 8 +- .../app/user-head/custom-background-color.vue | 8 +- .../user-head/custom-user-head-content.vue | 11 +- .../mobile/app/user-head/icon-user-head.vue | 13 +- .../mobile/app/user-head/image-user-head.vue | 14 +- .../mobile/app/user-head/label-user-head.vue | 14 +- .../app/user-head/message-count-limit.vue | 8 +- .../app/user-head/message-count-total.vue | 8 +- .../app/user-head/message-count-type.vue | 8 +- .../mobile/app/user-head/min-user-head.vue | 8 +- .../mobile/app/user-head/round-user-head.vue | 8 +- 304 files changed, 5217 insertions(+), 7614 deletions(-) diff --git a/examples/sites/demos/mobile/app/actionsheet/clickfn.vue b/examples/sites/demos/mobile/app/actionsheet/clickfn.vue index b83a0ee8d0..ef83198237 100644 --- a/examples/sites/demos/mobile/app/actionsheet/clickfn.vue +++ b/examples/sites/demos/mobile/app/actionsheet/clickfn.vue @@ -15,47 +15,38 @@ - diff --git a/examples/sites/demos/mobile/app/actionsheet/ellipsis.vue b/examples/sites/demos/mobile/app/actionsheet/ellipsis.vue index b1890a8228..738b262cae 100644 --- a/examples/sites/demos/mobile/app/actionsheet/ellipsis.vue +++ b/examples/sites/demos/mobile/app/actionsheet/ellipsis.vue @@ -15,45 +15,35 @@ - diff --git a/examples/sites/demos/mobile/app/actionsheet/slot-action.vue b/examples/sites/demos/mobile/app/actionsheet/slot-action.vue index 3117eeb4e8..77756f20bc 100644 --- a/examples/sites/demos/mobile/app/actionsheet/slot-action.vue +++ b/examples/sites/demos/mobile/app/actionsheet/slot-action.vue @@ -22,63 +22,55 @@ - diff --git a/examples/sites/demos/mobile/app/actionsheet/slot-item.vue b/examples/sites/demos/mobile/app/actionsheet/slot-item.vue index ac0dfc29c7..0864c95583 100644 --- a/examples/sites/demos/mobile/app/actionsheet/slot-item.vue +++ b/examples/sites/demos/mobile/app/actionsheet/slot-item.vue @@ -20,44 +20,34 @@ - diff --git a/examples/sites/demos/mobile/app/alert/basic-usage.vue b/examples/sites/demos/mobile/app/alert/basic-usage.vue index c5eaaa5de2..a1e679312b 100644 --- a/examples/sites/demos/mobile/app/alert/basic-usage.vue +++ b/examples/sites/demos/mobile/app/alert/basic-usage.vue @@ -9,14 +9,10 @@ -