@tplc/wot 1.0.6 → 1.0.8
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/CHANGELOG.md +20 -0
- package/components/common/AbortablePromise.ts +3 -11
- package/components/common/abstracts/_config.scss +1 -1
- package/components/common/abstracts/_function.scss +26 -13
- package/components/common/abstracts/_mixin.scss +117 -71
- package/components/common/abstracts/variable.scss +325 -697
- package/components/common/base64.ts +1 -2
- package/components/common/canvasHelper.ts +1 -1
- package/components/common/interceptor.ts +43 -0
- package/components/common/props.ts +8 -8
- package/components/common/util.ts +145 -60
- package/components/composables/index.ts +11 -0
- package/components/composables/useChildren.ts +9 -18
- package/components/composables/useCountDown.ts +2 -2
- package/components/composables/useLockScroll.ts +1 -3
- package/components/composables/useParent.ts +4 -4
- package/components/composables/usePopover.ts +43 -60
- package/components/composables/useQueue.ts +2 -2
- package/components/composables/useTouch.ts +2 -3
- package/components/composables/useTranslate.ts +2 -13
- package/components/composables/useUpload.ts +389 -0
- package/components/wd-action-sheet/index.scss +22 -22
- package/components/wd-action-sheet/types.ts +11 -21
- package/components/wd-action-sheet/wd-action-sheet.vue +21 -40
- package/components/wd-backtop/index.scss +5 -5
- package/components/wd-backtop/types.ts +3 -15
- package/components/wd-backtop/wd-backtop.vue +12 -20
- package/components/wd-badge/index.scss +14 -10
- package/components/wd-badge/types.ts +6 -9
- package/components/wd-badge/wd-badge.vue +29 -37
- package/components/wd-button/index.scss +76 -80
- package/components/wd-button/types.ts +43 -13
- package/components/wd-button/wd-button.vue +41 -22
- package/components/wd-calendar/index.scss +58 -145
- package/components/wd-calendar/types.ts +23 -41
- package/components/wd-calendar/wd-calendar.vue +123 -130
- package/components/wd-calendar-view/month/index.scss +33 -65
- package/components/wd-calendar-view/month/month.vue +80 -113
- package/components/wd-calendar-view/month/types.ts +2 -1
- package/components/wd-calendar-view/monthPanel/index.scss +15 -15
- package/components/wd-calendar-view/monthPanel/month-panel.vue +64 -78
- package/components/wd-calendar-view/monthPanel/types.ts +58 -10
- package/components/wd-calendar-view/types.ts +12 -36
- package/components/wd-calendar-view/utils.ts +14 -36
- package/components/wd-calendar-view/wd-calendar-view.vue +7 -7
- package/components/wd-calendar-view/year/index.scss +18 -13
- package/components/wd-calendar-view/year/types.ts +2 -1
- package/components/wd-calendar-view/year/year.vue +25 -43
- package/components/wd-calendar-view/yearPanel/index.scss +4 -4
- package/components/wd-calendar-view/yearPanel/types.ts +2 -2
- package/components/wd-calendar-view/yearPanel/year-panel.vue +36 -41
- package/components/wd-card/index.scss +11 -10
- package/components/wd-card/types.ts +1 -1
- package/components/wd-card/wd-card.vue +6 -9
- package/components/wd-cell/index.scss +56 -41
- package/components/wd-cell/types.ts +23 -8
- package/components/wd-cell/wd-cell.vue +48 -18
- package/components/wd-cell-group/index.scss +8 -7
- package/components/wd-cell-group/types.ts +1 -1
- package/components/wd-cell-group/wd-cell-group.vue +5 -5
- package/components/wd-checkbox/index.scss +35 -35
- package/components/wd-checkbox/types.ts +6 -6
- package/components/wd-checkbox/wd-checkbox.vue +12 -20
- package/components/wd-checkbox-group/index.scss +4 -4
- package/components/wd-checkbox-group/types.ts +2 -2
- package/components/wd-checkbox-group/wd-checkbox-group.vue +9 -12
- package/components/wd-circle/index.scss +5 -5
- package/components/wd-circle/types.ts +2 -2
- package/components/wd-circle/wd-circle.vue +18 -40
- package/components/wd-col/index.scss +2 -2
- package/components/wd-col/types.ts +1 -1
- package/components/wd-col/wd-col.vue +11 -53
- package/components/wd-col-picker/index.scss +41 -115
- package/components/wd-col-picker/types.ts +10 -14
- package/components/wd-col-picker/wd-col-picker.vue +103 -155
- package/components/wd-collapse/index.scss +7 -13
- package/components/wd-collapse/types.ts +4 -10
- package/components/wd-collapse/wd-collapse.vue +22 -55
- package/components/wd-collapse-item/index.scss +16 -5
- package/components/wd-collapse-item/types.ts +14 -2
- package/components/wd-collapse-item/wd-collapse-item.vue +70 -81
- package/components/wd-config-provider/types.ts +69 -40
- package/components/wd-config-provider/wd-config-provider.vue +11 -11
- package/components/wd-count-down/index.scss +3 -2
- package/components/wd-count-down/types.ts +1 -1
- package/components/wd-count-down/wd-count-down.vue +5 -5
- package/components/wd-count-to/index.scss +2 -1
- package/components/wd-count-to/types.ts +10 -3
- package/components/wd-count-to/wd-count-to.vue +9 -18
- package/components/wd-curtain/index.scss +28 -23
- package/components/wd-curtain/types.ts +46 -9
- package/components/wd-curtain/wd-curtain.vue +45 -47
- package/components/wd-datetime-picker/index.scss +65 -145
- package/components/wd-datetime-picker/types.ts +41 -31
- package/components/wd-datetime-picker/wd-datetime-picker.vue +307 -333
- package/components/wd-datetime-picker-view/types.ts +29 -46
- package/components/wd-datetime-picker-view/util.ts +30 -0
- package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +104 -119
- package/components/wd-divider/index.scss +78 -10
- package/components/wd-divider/types.ts +26 -3
- package/components/wd-divider/wd-divider.vue +33 -10
- package/components/wd-drop-menu/index.scss +17 -45
- package/components/wd-drop-menu/types.ts +3 -3
- package/components/wd-drop-menu/wd-drop-menu.vue +61 -25
- package/components/wd-drop-menu-item/index.scss +15 -15
- package/components/wd-drop-menu-item/types.ts +18 -15
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +33 -54
- package/components/wd-fab/index.scss +13 -12
- package/components/wd-fab/types.ts +9 -4
- package/components/wd-fab/wd-fab.vue +70 -51
- package/components/wd-floating-panel/index.scss +64 -0
- package/components/wd-floating-panel/type.ts +32 -0
- package/components/wd-floating-panel/wd-floating-panel.vue +140 -0
- package/components/wd-form/types.ts +8 -16
- package/components/wd-form/wd-form.vue +67 -45
- package/components/wd-form-item/index.scss +3 -2
- package/components/wd-form-item/types.ts +2 -8
- package/components/wd-form-item/wd-form-item.vue +3 -3
- package/components/wd-grid/index.scss +2 -2
- package/components/wd-grid/types.ts +5 -0
- package/components/wd-grid/wd-grid.vue +11 -12
- package/components/wd-grid-item/index.scss +44 -33
- package/components/wd-grid-item/types.ts +7 -4
- package/components/wd-grid-item/wd-grid-item.vue +39 -44
- package/components/wd-icon/index.scss +311 -303
- package/components/wd-icon/types.ts +3 -3
- package/components/wd-icon/wd-icon.vue +6 -6
- package/components/wd-img/types.ts +1 -1
- package/components/wd-img/wd-img.vue +13 -3
- package/components/wd-img-cropper/index.scss +43 -39
- package/components/wd-img-cropper/types.ts +6 -8
- package/components/wd-img-cropper/wd-img-cropper.vue +132 -127
- package/components/wd-index-anchor/index.scss +7 -6
- package/components/wd-index-anchor/type.ts +2 -2
- package/components/wd-index-anchor/wd-index-anchor.vue +3 -9
- package/components/wd-index-bar/index.scss +5 -5
- package/components/wd-index-bar/type.ts +3 -2
- package/components/wd-index-bar/wd-index-bar.vue +15 -51
- package/components/wd-input/index.scss +44 -33
- package/components/wd-input/types.ts +40 -19
- package/components/wd-input/wd-input.vue +58 -42
- package/components/wd-input-number/index.scss +23 -31
- package/components/wd-input-number/types.ts +42 -14
- package/components/wd-input-number/wd-input-number.vue +374 -141
- package/components/wd-keyboard/constants.ts +81 -0
- package/components/wd-keyboard/index.scss +102 -0
- package/components/wd-keyboard/key/index.scss +79 -0
- package/components/wd-keyboard/key/index.vue +71 -0
- package/components/wd-keyboard/key/types.ts +11 -0
- package/components/wd-keyboard/types.ts +92 -0
- package/components/wd-keyboard/wd-keyboard.vue +206 -0
- package/components/wd-loading/index.scss +9 -6
- package/components/wd-loading/types.ts +1 -1
- package/components/wd-loading/wd-loading.vue +9 -9
- package/components/wd-loadmore/index.scss +5 -5
- package/components/wd-loadmore/types.ts +8 -2
- package/components/wd-loadmore/wd-loadmore.vue +28 -13
- package/components/wd-message-box/index.scss +21 -34
- package/components/wd-message-box/index.ts +30 -29
- package/components/wd-message-box/types.ts +33 -8
- package/components/wd-message-box/wd-message-box.vue +130 -152
- package/components/wd-navbar/index.scss +14 -24
- package/components/wd-navbar/types.ts +1 -1
- package/components/wd-navbar/wd-navbar.vue +14 -45
- package/components/wd-navbar-capsule/index.scss +16 -15
- package/components/wd-navbar-capsule/types.ts +8 -0
- package/components/wd-navbar-capsule/wd-navbar-capsule.vue +8 -4
- package/components/wd-notice-bar/index.scss +15 -33
- package/components/wd-notice-bar/types.ts +14 -3
- package/components/wd-notice-bar/wd-notice-bar.vue +109 -66
- package/components/wd-notify/index.scss +5 -5
- package/components/wd-notify/index.ts +17 -15
- package/components/wd-notify/types.ts +4 -0
- package/components/wd-notify/wd-notify.vue +21 -19
- package/components/wd-number-keyboard/index.scss +10 -10
- package/components/wd-number-keyboard/key/index.scss +7 -5
- package/components/wd-number-keyboard/key/index.vue +6 -9
- package/components/wd-number-keyboard/key/types.ts +1 -1
- package/components/wd-number-keyboard/types.ts +4 -0
- package/components/wd-number-keyboard/wd-number-keyboard.vue +22 -44
- package/components/wd-overlay/index.scss +3 -3
- package/components/wd-overlay/types.ts +2 -2
- package/components/wd-overlay/wd-overlay.vue +7 -15
- package/components/wd-pagination/index.scss +17 -17
- package/components/wd-pagination/types.ts +1 -1
- package/components/wd-pagination/wd-pagination.vue +10 -21
- package/components/wd-password-input/index.scss +7 -6
- package/components/wd-password-input/types.ts +2 -8
- package/components/wd-password-input/wd-password-input.vue +6 -15
- package/components/wd-picker/index.scss +46 -153
- package/components/wd-picker/types.ts +22 -19
- package/components/wd-picker/wd-picker.vue +89 -86
- package/components/wd-picker-view/index.scss +13 -12
- package/components/wd-picker-view/types.ts +16 -26
- package/components/wd-picker-view/wd-picker-view.vue +32 -24
- package/components/wd-popover/index.scss +29 -36
- package/components/wd-popover/types.ts +1 -1
- package/components/wd-popover/wd-popover.vue +20 -56
- package/components/wd-popup/index.scss +47 -75
- package/components/wd-popup/types.ts +40 -4
- package/components/wd-popup/wd-popup.vue +100 -157
- package/components/wd-progress/index.scss +20 -14
- package/components/wd-progress/types.ts +10 -6
- package/components/wd-progress/wd-progress.vue +137 -141
- package/components/wd-radio/index.scss +54 -53
- package/components/wd-radio/types.ts +15 -6
- package/components/wd-radio/wd-radio.vue +41 -59
- package/components/wd-radio-group/index.scss +5 -5
- package/components/wd-radio-group/types.ts +4 -1
- package/components/wd-radio-group/wd-radio-group.vue +6 -9
- package/components/wd-rate/index.scss +1 -1
- package/components/wd-rate/types.ts +10 -5
- package/components/wd-rate/wd-rate.vue +35 -17
- package/components/wd-resize/index.scss +2 -1
- package/components/wd-resize/types.ts +1 -1
- package/components/wd-resize/wd-resize.vue +11 -22
- package/components/wd-root-portal/wd-root-portal.vue +50 -0
- package/components/wd-row/index.scss +1 -1
- package/components/wd-row/types.ts +1 -1
- package/components/wd-row/wd-row.vue +14 -35
- package/components/wd-search/index.scss +29 -29
- package/components/wd-search/types.ts +22 -3
- package/components/wd-search/wd-search.vue +70 -120
- package/components/wd-segmented/index.scss +19 -15
- package/components/wd-segmented/types.ts +16 -4
- package/components/wd-segmented/wd-segmented.vue +34 -34
- package/components/wd-select-picker/index.scss +55 -122
- package/components/wd-select-picker/types.ts +29 -36
- package/components/wd-select-picker/wd-select-picker.vue +128 -274
- package/components/wd-sidebar/index.scss +5 -5
- package/components/wd-sidebar/types.ts +22 -3
- package/components/wd-sidebar/wd-sidebar.vue +26 -4
- package/components/wd-sidebar-item/index.scss +17 -13
- package/components/wd-sidebar-item/types.ts +3 -3
- package/components/wd-sidebar-item/wd-sidebar-item.vue +12 -10
- package/components/wd-signature/index.scss +31 -0
- package/components/wd-signature/types.ts +263 -0
- package/components/wd-signature/wd-signature.vue +630 -0
- package/components/wd-skeleton/index.scss +8 -13
- package/components/wd-skeleton/types.ts +6 -6
- package/components/wd-skeleton/wd-skeleton.vue +15 -31
- package/components/wd-slider/index.scss +24 -17
- package/components/wd-slider/types.ts +45 -17
- package/components/wd-slider/wd-slider.vue +275 -297
- package/components/wd-sort-button/index.scss +10 -7
- package/components/wd-sort-button/types.ts +1 -1
- package/components/wd-sort-button/wd-sort-button.vue +7 -14
- package/components/wd-status-tip/index.scss +8 -8
- package/components/wd-status-tip/types.ts +8 -2
- package/components/wd-status-tip/wd-status-tip.vue +14 -37
- package/components/wd-step/index.scss +29 -30
- package/components/wd-step/types.ts +1 -1
- package/components/wd-step/wd-step.vue +8 -9
- package/components/wd-steps/index.scss +1 -1
- package/components/wd-steps/types.ts +1 -1
- package/components/wd-steps/wd-steps.vue +5 -5
- package/components/wd-sticky/index.scss +1 -1
- package/components/wd-sticky/types.ts +1 -1
- package/components/wd-sticky/wd-sticky.vue +21 -29
- package/components/wd-sticky-box/index.scss +1 -1
- package/components/wd-sticky-box/wd-sticky-box.vue +7 -6
- package/components/wd-swipe-action/index.scss +1 -1
- package/components/wd-swipe-action/types.ts +2 -5
- package/components/wd-swipe-action/wd-swipe-action.vue +9 -22
- package/components/wd-swiper-nav/index.scss +22 -16
- package/components/wd-swiper-nav/types.ts +1 -9
- package/components/wd-swiper-nav/wd-swiper-nav.vue +2 -5
- package/components/wd-switch/index.scss +15 -15
- package/components/wd-switch/types.ts +8 -6
- package/components/wd-switch/wd-switch.vue +15 -15
- package/components/wd-tab/index.scss +11 -3
- package/components/wd-tab/types.ts +11 -1
- package/components/wd-tab/wd-tab.vue +28 -36
- package/components/wd-tabbar/index.scss +12 -7
- package/components/wd-tabbar/types.ts +3 -18
- package/components/wd-tabbar/wd-tabbar.vue +10 -23
- package/components/wd-tabbar-item/index.scss +15 -12
- package/components/wd-tabbar-item/types.ts +3 -3
- package/components/wd-tabbar-item/wd-tabbar-item.vue +11 -13
- package/components/wd-table/index.scss +40 -9
- package/components/wd-table/types.ts +13 -15
- package/components/wd-table/wd-table.vue +123 -94
- package/components/wd-table-col/index.scss +6 -4
- package/components/wd-table-col/types.ts +1 -1
- package/components/wd-table-col/wd-table-col.vue +12 -12
- package/components/wd-tag/index.scss +19 -19
- package/components/wd-tag/types.ts +1 -1
- package/components/wd-tag/wd-tag.vue +14 -20
- package/components/wd-text/index.scss +4 -1
- package/components/wd-text/types.ts +4 -4
- package/components/wd-text/wd-text.vue +12 -11
- package/components/wd-textarea/index.scss +51 -41
- package/components/wd-textarea/types.ts +24 -34
- package/components/wd-textarea/wd-textarea.vue +59 -66
- package/components/wd-toast/index.scss +31 -18
- package/components/wd-toast/index.ts +26 -43
- package/components/wd-toast/types.ts +117 -3
- package/components/wd-toast/wd-toast.vue +49 -69
- package/components/wd-tooltip/index.scss +21 -16
- package/components/wd-tooltip/types.ts +8 -3
- package/components/wd-tooltip/wd-tooltip.vue +17 -43
- package/components/wd-tour/index.scss +123 -0
- package/components/wd-tour/types.ts +153 -0
- package/components/wd-tour/wd-tour.vue +509 -0
- package/components/wd-transition/index.scss +39 -35
- package/components/wd-transition/types.ts +27 -9
- package/components/wd-transition/wd-transition.vue +45 -34
- package/components/wd-upload/index.scss +23 -21
- package/components/wd-upload/types.ts +43 -30
- package/components/wd-upload/wd-upload.vue +183 -247
- package/components/wd-video-preview/index.scss +9 -9
- package/components/wd-video-preview/types.ts +1 -1
- package/components/wd-video-preview/wd-video-preview.vue +18 -22
- package/components/wd-watermark/index.scss +7 -7
- package/components/wd-watermark/types.ts +2 -8
- package/components/wd-watermark/wd-watermark.vue +38 -135
- package/dayjs/constant.js +26 -0
- package/dayjs/index.d.ts +430 -0
- package/dayjs/index.js +542 -0
- package/dayjs/locale/en.js +13 -0
- package/dayjs/utils.js +59 -0
- package/global.d.ts +97 -91
- package/index.ts +2 -10
- package/locale/index.ts +3 -15
- package/locale/lang/ar-SA.ts +133 -0
- package/locale/lang/de-DE.ts +133 -0
- package/locale/lang/en-US.ts +31 -26
- package/locale/lang/es-ES.ts +133 -0
- package/locale/lang/fr-FR.ts +133 -0
- package/locale/lang/ja-JP.ts +133 -0
- package/locale/lang/ko-KR.ts +133 -0
- package/locale/lang/pt-PT.ts +133 -0
- package/locale/lang/ru-RU.ts +133 -0
- package/locale/lang/th-TH.ts +28 -22
- package/locale/lang/tr-TR.ts +138 -0
- package/locale/lang/ug-CN.ts +137 -0
- package/locale/lang/vi-VN.ts +27 -30
- package/locale/lang/zh-CN.ts +32 -22
- package/locale/lang/zh-HK.ts +18 -31
- package/locale/lang/zh-TW.ts +22 -31
- package/package.json +1 -1
- package/types/components/common/interceptor.d.ts +15 -0
- package/types/components/common/util.d.ts +61 -1
- package/types/components/composables/useCell.d.ts +1 -1
- package/types/components/composables/useLockScroll.d.ts +1 -2
- package/types/components/composables/useParent.d.ts +1 -1
- package/types/components/composables/usePopover.d.ts +2 -2
- package/types/components/composables/useUpload.d.ts +41 -0
- package/types/components/wd-action-sheet/types.d.ts +13 -4
- package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +20 -11
- package/types/components/wd-backtop/types.d.ts +1 -9
- package/types/components/wd-backtop/wd-backtop.vue.d.ts +6 -25
- package/types/components/wd-badge/types.d.ts +3 -6
- package/types/components/wd-badge/wd-badge.vue.d.ts +7 -14
- package/types/components/wd-button/types.d.ts +44 -8
- package/types/components/wd-button/wd-button.vue.d.ts +13 -9
- package/types/components/wd-calendar/types.d.ts +24 -18
- package/types/components/wd-calendar/wd-calendar.vue.d.ts +48 -32
- package/types/components/wd-calendar-view/month/month.vue.d.ts +11 -3
- package/types/components/wd-calendar-view/month/types.d.ts +4 -0
- package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +18 -12
- package/types/components/wd-calendar-view/monthPanel/types.d.ts +48 -6
- package/types/components/wd-calendar-view/types.d.ts +11 -4
- package/types/components/wd-calendar-view/utils.d.ts +3 -12
- package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +1 -1
- package/types/components/wd-calendar-view/year/types.d.ts +4 -0
- package/types/components/wd-calendar-view/year/year.vue.d.ts +11 -3
- package/types/components/wd-cell/types.d.ts +37 -1
- package/types/components/wd-cell/wd-cell.vue.d.ts +53 -9
- package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +2 -2
- package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +2 -2
- package/types/components/wd-circle/wd-circle.vue.d.ts +3 -3
- package/types/components/wd-col-picker/types.d.ts +14 -0
- package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +36 -19
- package/types/components/wd-collapse/types.d.ts +1 -5
- package/types/components/wd-collapse/wd-collapse.vue.d.ts +3 -11
- package/types/components/wd-collapse-item/types.d.ts +19 -1
- package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +20 -1
- package/types/components/wd-config-provider/types.d.ts +64 -7
- package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +1 -1
- package/types/components/wd-count-to/types.d.ts +11 -0
- package/types/components/wd-count-to/wd-count-to.vue.d.ts +13 -4
- package/types/components/wd-curtain/types.d.ts +56 -0
- package/types/components/wd-curtain/wd-curtain.vue.d.ts +152 -77
- package/types/components/wd-datetime-picker/types.d.ts +49 -15
- package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +75 -38
- package/types/components/wd-datetime-picker-view/types.d.ts +36 -14
- package/types/components/wd-datetime-picker-view/util.d.ts +12 -0
- package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +35 -9
- package/types/components/wd-divider/types.d.ts +32 -4
- package/types/components/wd-divider/wd-divider.vue.d.ts +30 -7
- package/types/components/wd-drop-menu/types.d.ts +3 -3
- package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +8 -8
- package/types/components/wd-drop-menu-item/types.d.ts +27 -15
- package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +47 -36
- package/types/components/wd-fab/types.d.ts +19 -3
- package/types/components/wd-fab/wd-fab.vue.d.ts +13 -1
- package/types/components/wd-floating-panel/type.d.ts +54 -0
- package/types/components/wd-floating-panel/wd-floating-panel.vue.d.ts +109 -0
- package/types/components/wd-form/types.d.ts +1 -1
- package/types/components/wd-form/wd-form.vue.d.ts +2 -2
- package/types/components/wd-form-item/wd-form-item.vue.d.ts +2 -2
- package/types/components/wd-grid/types.d.ts +5 -0
- package/types/components/wd-grid/wd-grid.vue.d.ts +2 -0
- package/types/components/wd-grid-item/types.d.ts +4 -1
- package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +3 -3
- package/types/components/wd-icon/types.d.ts +1 -1
- package/types/components/wd-icon/wd-icon.vue.d.ts +3 -3
- package/types/components/wd-img/types.d.ts +4 -1
- package/types/components/wd-img/wd-img.vue.d.ts +11 -4
- package/types/components/wd-img-cropper/types.d.ts +7 -0
- package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +12 -3
- package/types/components/wd-index-bar/type.d.ts +2 -1
- package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +1 -5
- package/types/components/wd-input/types.d.ts +53 -37
- package/types/components/wd-input/wd-input.vue.d.ts +50 -52
- package/types/components/wd-input-number/types.d.ts +51 -6
- package/types/components/wd-input-number/wd-input-number.vue.d.ts +152 -125
- package/types/components/wd-keyboard/constants.d.ts +8 -0
- package/types/components/wd-keyboard/key/index.vue.d.ts +70 -0
- package/types/components/wd-keyboard/key/types.d.ts +23 -0
- package/types/components/wd-keyboard/types.d.ts +137 -0
- package/types/components/wd-keyboard/wd-keyboard.vue.d.ts +200 -0
- package/types/components/wd-loading/wd-loading.vue.d.ts +2 -2
- package/types/components/wd-loadmore/types.d.ts +7 -4
- package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +5 -9
- package/types/components/wd-message-box/index.d.ts +3 -8
- package/types/components/wd-message-box/types.d.ts +36 -5
- package/types/components/wd-message-box/wd-message-box.vue.d.ts +18 -2
- package/types/components/wd-navbar/wd-navbar.vue.d.ts +3 -3
- package/types/components/wd-navbar-capsule/types.d.ts +12 -0
- package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +27 -4
- package/types/components/wd-notice-bar/types.d.ts +9 -1
- package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +7 -5
- package/types/components/wd-notify/types.d.ts +7 -0
- package/types/components/wd-notify/wd-notify.vue.d.ts +13 -4
- package/types/components/wd-number-keyboard/types.d.ts +7 -0
- package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +18 -9
- package/types/components/wd-overlay/wd-overlay.vue.d.ts +2 -2
- package/types/components/wd-pagination/wd-pagination.vue.d.ts +1 -1
- package/types/components/wd-password-input/wd-password-input.vue.d.ts +2 -2
- package/types/components/wd-picker/types.d.ts +28 -2
- package/types/components/wd-picker/wd-picker.vue.d.ts +55 -19
- package/types/components/wd-picker-view/types.d.ts +10 -0
- package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +15 -3
- package/types/components/wd-popover/wd-popover.vue.d.ts +4 -4
- package/types/components/wd-popup/types.d.ts +44 -5
- package/types/components/wd-popup/wd-popup.vue.d.ts +35 -24
- package/types/components/wd-progress/types.d.ts +6 -3
- package/types/components/wd-progress/wd-progress.vue.d.ts +4 -6
- package/types/components/wd-qr-code/uqrcode.vue.d.ts +3 -3
- package/types/components/wd-qr-code/wd-qr-code.vue.d.ts +4 -4
- package/types/components/wd-radio/types.d.ts +8 -0
- package/types/components/wd-radio/wd-radio.vue.d.ts +7 -0
- package/types/components/wd-radio-group/types.d.ts +7 -1
- package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +11 -2
- package/types/components/wd-rate/types.d.ts +9 -0
- package/types/components/wd-rate/wd-rate.vue.d.ts +13 -4
- package/types/components/wd-root-portal/wd-root-portal.vue.d.ts +26 -0
- package/types/components/wd-search/types.d.ts +16 -1
- package/types/components/wd-search/wd-search.vue.d.ts +28 -8
- package/types/components/wd-segmented/types.d.ts +10 -1
- package/types/components/wd-segmented/wd-segmented.vue.d.ts +6 -4
- package/types/components/wd-select-picker/types.d.ts +37 -22
- package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +59 -30
- package/types/components/wd-sidebar/types.d.ts +19 -3
- package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +4 -2
- package/types/components/wd-signature/types.d.ts +252 -0
- package/types/components/wd-signature/wd-signature.vue.d.ts +229 -0
- package/types/components/wd-skeleton/types.d.ts +3 -4
- package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +10 -10
- package/types/components/wd-slider/types.d.ts +39 -15
- package/types/components/wd-slider/wd-slider.vue.d.ts +12 -38
- package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +3 -3
- package/types/components/wd-status-tip/types.d.ts +9 -0
- package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +69 -49
- package/types/components/wd-steps/wd-steps.vue.d.ts +1 -1
- package/types/components/wd-sticky/wd-sticky.vue.d.ts +3 -7
- package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +3 -3
- package/types/components/wd-swiper/wd-swiper.vue.d.ts +4 -4
- package/types/components/wd-swiper-nav/types.d.ts +0 -14
- package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +0 -18
- package/types/components/wd-switch/types.d.ts +0 -1
- package/types/components/wd-switch/wd-switch.vue.d.ts +2 -5
- package/types/components/wd-tab/types.d.ts +16 -3
- package/types/components/wd-tab/wd-tab.vue.d.ts +12 -4
- package/types/components/wd-tabbar/types.d.ts +1 -1
- package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +5 -5
- package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +1 -1
- package/types/components/wd-table/types.d.ts +12 -8
- package/types/components/wd-table/wd-table.vue.d.ts +16 -13
- package/types/components/wd-table-col/wd-table-col.vue.d.ts +1 -1
- package/types/components/wd-tabs/wd-tabs.vue.d.ts +7 -7
- package/types/components/wd-tag/wd-tag.vue.d.ts +4 -4
- package/types/components/wd-text/types.d.ts +2 -2
- package/types/components/wd-text/wd-text.vue.d.ts +7 -7
- package/types/components/wd-textarea/types.d.ts +41 -39
- package/types/components/wd-textarea/wd-textarea.vue.d.ts +46 -46
- package/types/components/wd-toast/index.d.ts +1 -6
- package/types/components/wd-toast/types.d.ts +127 -5
- package/types/components/wd-toast/wd-toast.vue.d.ts +101 -0
- package/types/components/wd-tooltip/types.d.ts +1 -1
- package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +7 -7
- package/types/components/wd-tour/types.d.ts +194 -0
- package/types/components/wd-tour/wd-tour.vue.d.ts +267 -0
- package/types/components/wd-transition/types.d.ts +22 -7
- package/types/components/wd-transition/wd-transition.vue.d.ts +33 -20
- package/types/components/wd-upload/types.d.ts +39 -10
- package/types/components/wd-upload/wd-upload.vue.d.ts +42 -16
- package/types/components/wd-watermark/wd-watermark.vue.d.ts +7 -7
- package/types/locale/index.d.ts +0 -3
- package/types/locale/lang/zh-CN.d.ts +9 -0
- package/components/wd-datetime-picker-view/index.scss +0 -0
- package/components/wd-form/index.scss +0 -10
- package/components/wd-upload/utils.ts +0 -152
- package/types/components/common/dayjs.d.ts +0 -26
- package/types/components/wd-upload/utils.d.ts +0 -11
- package/types/locale/lang/en-US.d.ts +0 -128
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue'
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue'
|
|
2
2
|
import type { FormItemRule } from '../wd-form/types'
|
|
3
|
-
import type { InputClearTrigger } from '../wd-input/types'
|
|
3
|
+
import type { InputClearTrigger, InputMode } from '../wd-input/types'
|
|
4
4
|
export type ConfirmType = 'send' | 'search' | 'next' | 'go' | 'done'
|
|
5
5
|
export declare const textareaProps: {
|
|
6
6
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const textareaProps: {
|
|
|
8
8
|
* 类型:string
|
|
9
9
|
*/
|
|
10
10
|
customTextareaContainerClass: {
|
|
11
|
-
type:
|
|
11
|
+
type: PropType<string>
|
|
12
12
|
default: string
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
@@ -16,7 +16,7 @@ export declare const textareaProps: {
|
|
|
16
16
|
* 类型:string
|
|
17
17
|
*/
|
|
18
18
|
customTextareaClass: {
|
|
19
|
-
type:
|
|
19
|
+
type: PropType<string>
|
|
20
20
|
default: string
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -24,7 +24,7 @@ export declare const textareaProps: {
|
|
|
24
24
|
* 类型:string
|
|
25
25
|
*/
|
|
26
26
|
customLabelClass: {
|
|
27
|
-
type:
|
|
27
|
+
type: PropType<string>
|
|
28
28
|
default: string
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -52,7 +52,7 @@ export declare const textareaProps: {
|
|
|
52
52
|
* 默认值:空字符串
|
|
53
53
|
*/
|
|
54
54
|
placeholderClass: {
|
|
55
|
-
type:
|
|
55
|
+
type: PropType<string>
|
|
56
56
|
default: string
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -133,10 +133,7 @@ export declare const textareaProps: {
|
|
|
133
133
|
* 默认值:'done'
|
|
134
134
|
* 可选值有'done', 'go', 'next', 'search', 'send'
|
|
135
135
|
*/
|
|
136
|
-
confirmType:
|
|
137
|
-
type: import('vue').PropType<ConfirmType | null>
|
|
138
|
-
default: ConfirmType | null
|
|
139
|
-
}
|
|
136
|
+
confirmType: PropType<ConfirmType>
|
|
140
137
|
/**
|
|
141
138
|
* * 点击键盘右下角按钮时是否保持键盘不收起。
|
|
142
139
|
* 类型:boolean
|
|
@@ -232,15 +229,6 @@ export declare const textareaProps: {
|
|
|
232
229
|
* 类型:string
|
|
233
230
|
*/
|
|
234
231
|
prefixIcon: StringConstructor
|
|
235
|
-
/**
|
|
236
|
-
* * 是否使用前置图标插槽。
|
|
237
|
-
* 类型:boolean
|
|
238
|
-
* 默认值:false
|
|
239
|
-
*/
|
|
240
|
-
usePrefixSlot: {
|
|
241
|
-
type: BooleanConstructor
|
|
242
|
-
default: boolean
|
|
243
|
-
}
|
|
244
232
|
/**
|
|
245
233
|
* * 是否显示字数限制,需要同时设置maxlength。
|
|
246
234
|
* 类型:boolean
|
|
@@ -251,28 +239,18 @@ export declare const textareaProps: {
|
|
|
251
239
|
default: boolean
|
|
252
240
|
}
|
|
253
241
|
/**
|
|
254
|
-
*
|
|
242
|
+
* 设置左侧标题。
|
|
255
243
|
* 类型:string
|
|
256
244
|
*/
|
|
257
245
|
label: StringConstructor
|
|
258
246
|
/**
|
|
259
|
-
*
|
|
247
|
+
* 设置左侧标题宽度。
|
|
260
248
|
* 类型:string
|
|
261
|
-
* 默认值:'33%'
|
|
262
249
|
*/
|
|
263
250
|
labelWidth: {
|
|
264
|
-
type:
|
|
251
|
+
type: PropType<string>
|
|
265
252
|
default: string
|
|
266
253
|
}
|
|
267
|
-
/**
|
|
268
|
-
* * 是否使用label插槽。
|
|
269
|
-
* 类型:boolean
|
|
270
|
-
* 默认值:false
|
|
271
|
-
*/
|
|
272
|
-
useLabelSlot: {
|
|
273
|
-
type: BooleanConstructor
|
|
274
|
-
default: boolean
|
|
275
|
-
}
|
|
276
254
|
/**
|
|
277
255
|
* * 设置输入框大小。
|
|
278
256
|
* 类型:string
|
|
@@ -319,7 +297,7 @@ export declare const textareaProps: {
|
|
|
319
297
|
* 类型:string
|
|
320
298
|
*/
|
|
321
299
|
prop: {
|
|
322
|
-
type:
|
|
300
|
+
type: PropType<string>
|
|
323
301
|
default: string
|
|
324
302
|
}
|
|
325
303
|
/**
|
|
@@ -328,35 +306,59 @@ export declare const textareaProps: {
|
|
|
328
306
|
* 默认值:[]
|
|
329
307
|
*/
|
|
330
308
|
rules: {
|
|
331
|
-
type:
|
|
309
|
+
type: PropType<FormItemRule[]>
|
|
332
310
|
default: () => never[]
|
|
333
311
|
}
|
|
334
312
|
/**
|
|
335
313
|
* 显示清除图标的时机,always 表示输入框不为空时展示,focus 表示输入框聚焦且不为空时展示
|
|
336
314
|
* 类型: "focus" | "always"
|
|
337
315
|
* 默认值: "always"
|
|
338
|
-
* 最低版本: $LOWEST_VERSION$
|
|
339
316
|
*/
|
|
340
317
|
clearTrigger: {
|
|
341
|
-
type:
|
|
318
|
+
type: PropType<InputClearTrigger>
|
|
342
319
|
default: InputClearTrigger
|
|
343
320
|
}
|
|
344
321
|
/**
|
|
345
322
|
* 是否在点击清除按钮时聚焦输入框
|
|
346
323
|
* 类型: boolean
|
|
347
324
|
* 默认值: true
|
|
348
|
-
* 最低版本: $LOWEST_VERSION$
|
|
349
325
|
*/
|
|
350
326
|
focusWhenClear: {
|
|
351
327
|
type: BooleanConstructor
|
|
352
328
|
default: boolean
|
|
353
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件
|
|
332
|
+
* 类型: boolean
|
|
333
|
+
* 默认值: true
|
|
334
|
+
*/
|
|
335
|
+
ignoreCompositionEvent: {
|
|
336
|
+
type: BooleanConstructor
|
|
337
|
+
default: boolean
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* 它提供了用户在编辑元素或其内容时可能输入的数据类型的提示。在符合条件的高版本webview里,uni-app的web和app-vue平台中可使用本属性。
|
|
341
|
+
* 类型: InputMode
|
|
342
|
+
* 可选值: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | "password"
|
|
343
|
+
* 默认值: "text"
|
|
344
|
+
*/
|
|
345
|
+
inputmode: {
|
|
346
|
+
type: PropType<InputMode>
|
|
347
|
+
default: InputMode
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* 必填标记位置,可选值:before(标签前)、after(标签后)
|
|
351
|
+
*/
|
|
352
|
+
markerSide: {
|
|
353
|
+
type: PropType<'before' | 'after'>
|
|
354
|
+
default: 'before' | 'after'
|
|
355
|
+
}
|
|
354
356
|
customStyle: {
|
|
355
|
-
type:
|
|
357
|
+
type: PropType<string>
|
|
356
358
|
default: string
|
|
357
359
|
}
|
|
358
360
|
customClass: {
|
|
359
|
-
type:
|
|
361
|
+
type: PropType<string>
|
|
360
362
|
default: string
|
|
361
363
|
}
|
|
362
364
|
}
|
|
@@ -56,10 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
56
56
|
type: NumberConstructor
|
|
57
57
|
default: number
|
|
58
58
|
}
|
|
59
|
-
confirmType:
|
|
60
|
-
type: import('vue').PropType<import('./types').ConfirmType | null>
|
|
61
|
-
default: import('./types').ConfirmType | null
|
|
62
|
-
}
|
|
59
|
+
confirmType: import('vue').PropType<import('./types').ConfirmType>
|
|
63
60
|
confirmHold: {
|
|
64
61
|
type: BooleanConstructor
|
|
65
62
|
default: boolean
|
|
@@ -101,10 +98,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
101
98
|
default: boolean
|
|
102
99
|
}
|
|
103
100
|
prefixIcon: StringConstructor
|
|
104
|
-
usePrefixSlot: {
|
|
105
|
-
type: BooleanConstructor
|
|
106
|
-
default: boolean
|
|
107
|
-
}
|
|
108
101
|
showWordLimit: {
|
|
109
102
|
type: BooleanConstructor
|
|
110
103
|
default: boolean
|
|
@@ -114,10 +107,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
114
107
|
type: import('vue').PropType<string>
|
|
115
108
|
default: string
|
|
116
109
|
}
|
|
117
|
-
useLabelSlot: {
|
|
118
|
-
type: BooleanConstructor
|
|
119
|
-
default: boolean
|
|
120
|
-
}
|
|
121
110
|
size: StringConstructor
|
|
122
111
|
error: {
|
|
123
112
|
type: BooleanConstructor
|
|
@@ -144,13 +133,25 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
144
133
|
default: () => never[]
|
|
145
134
|
}
|
|
146
135
|
clearTrigger: {
|
|
147
|
-
type: import('vue').PropType<import('../wd-input/types').InputClearTrigger>
|
|
148
|
-
default: import('../wd-input/types').InputClearTrigger
|
|
136
|
+
type: import('vue').PropType<import('../wd-input/types.js').InputClearTrigger>
|
|
137
|
+
default: import('../wd-input/types.js').InputClearTrigger
|
|
149
138
|
}
|
|
150
139
|
focusWhenClear: {
|
|
151
140
|
type: BooleanConstructor
|
|
152
141
|
default: boolean
|
|
153
142
|
}
|
|
143
|
+
ignoreCompositionEvent: {
|
|
144
|
+
type: BooleanConstructor
|
|
145
|
+
default: boolean
|
|
146
|
+
}
|
|
147
|
+
inputmode: {
|
|
148
|
+
type: import('vue').PropType<import('../wd-input/types.js').InputMode>
|
|
149
|
+
default: import('../wd-input/types.js').InputMode
|
|
150
|
+
}
|
|
151
|
+
markerSide: {
|
|
152
|
+
type: import('vue').PropType<'before' | 'after'>
|
|
153
|
+
default: 'before' | 'after'
|
|
154
|
+
}
|
|
154
155
|
customStyle: {
|
|
155
156
|
type: import('vue').PropType<string>
|
|
156
157
|
default: string
|
|
@@ -167,12 +168,11 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
167
168
|
import('vue').ComponentOptionsMixin,
|
|
168
169
|
import('vue').ComponentOptionsMixin,
|
|
169
170
|
{
|
|
170
|
-
'update:modelValue': (...args: any[]) => void
|
|
171
|
-
input: (...args: any[]) => void
|
|
172
171
|
click: (...args: any[]) => void
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
input: (...args: any[]) => void
|
|
173
|
+
'update:modelValue': (...args: any[]) => void
|
|
175
174
|
clear: (...args: any[]) => void
|
|
175
|
+
confirm: (...args: any[]) => void
|
|
176
176
|
focus: (...args: any[]) => void
|
|
177
177
|
blur: (...args: any[]) => void
|
|
178
178
|
keyboardheightchange: (...args: any[]) => void
|
|
@@ -237,10 +237,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
237
237
|
type: NumberConstructor
|
|
238
238
|
default: number
|
|
239
239
|
}
|
|
240
|
-
confirmType:
|
|
241
|
-
type: import('vue').PropType<import('./types').ConfirmType | null>
|
|
242
|
-
default: import('./types').ConfirmType | null
|
|
243
|
-
}
|
|
240
|
+
confirmType: import('vue').PropType<import('./types').ConfirmType>
|
|
244
241
|
confirmHold: {
|
|
245
242
|
type: BooleanConstructor
|
|
246
243
|
default: boolean
|
|
@@ -282,10 +279,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
282
279
|
default: boolean
|
|
283
280
|
}
|
|
284
281
|
prefixIcon: StringConstructor
|
|
285
|
-
usePrefixSlot: {
|
|
286
|
-
type: BooleanConstructor
|
|
287
|
-
default: boolean
|
|
288
|
-
}
|
|
289
282
|
showWordLimit: {
|
|
290
283
|
type: BooleanConstructor
|
|
291
284
|
default: boolean
|
|
@@ -295,10 +288,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
295
288
|
type: import('vue').PropType<string>
|
|
296
289
|
default: string
|
|
297
290
|
}
|
|
298
|
-
useLabelSlot: {
|
|
299
|
-
type: BooleanConstructor
|
|
300
|
-
default: boolean
|
|
301
|
-
}
|
|
302
291
|
size: StringConstructor
|
|
303
292
|
error: {
|
|
304
293
|
type: BooleanConstructor
|
|
@@ -325,13 +314,25 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
325
314
|
default: () => never[]
|
|
326
315
|
}
|
|
327
316
|
clearTrigger: {
|
|
328
|
-
type: import('vue').PropType<import('../wd-input/types').InputClearTrigger>
|
|
329
|
-
default: import('../wd-input/types').InputClearTrigger
|
|
317
|
+
type: import('vue').PropType<import('../wd-input/types.js').InputClearTrigger>
|
|
318
|
+
default: import('../wd-input/types.js').InputClearTrigger
|
|
330
319
|
}
|
|
331
320
|
focusWhenClear: {
|
|
332
321
|
type: BooleanConstructor
|
|
333
322
|
default: boolean
|
|
334
323
|
}
|
|
324
|
+
ignoreCompositionEvent: {
|
|
325
|
+
type: BooleanConstructor
|
|
326
|
+
default: boolean
|
|
327
|
+
}
|
|
328
|
+
inputmode: {
|
|
329
|
+
type: import('vue').PropType<import('../wd-input/types.js').InputMode>
|
|
330
|
+
default: import('../wd-input/types.js').InputMode
|
|
331
|
+
}
|
|
332
|
+
markerSide: {
|
|
333
|
+
type: import('vue').PropType<'before' | 'after'>
|
|
334
|
+
default: 'before' | 'after'
|
|
335
|
+
}
|
|
335
336
|
customStyle: {
|
|
336
337
|
type: import('vue').PropType<string>
|
|
337
338
|
default: string
|
|
@@ -342,33 +343,33 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
342
343
|
}
|
|
343
344
|
}>
|
|
344
345
|
> & {
|
|
345
|
-
|
|
346
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
346
347
|
onFocus?: ((...args: any[]) => any) | undefined
|
|
347
348
|
onBlur?: ((...args: any[]) => any) | undefined
|
|
348
|
-
onChange?: ((...args: any[]) => any) | undefined
|
|
349
349
|
onInput?: ((...args: any[]) => any) | undefined
|
|
350
|
-
|
|
351
|
-
onConfirm?: ((...args: any[]) => any) | undefined
|
|
350
|
+
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
352
351
|
onClear?: ((...args: any[]) => any) | undefined
|
|
352
|
+
onConfirm?: ((...args: any[]) => any) | undefined
|
|
353
353
|
onKeyboardheightchange?: ((...args: any[]) => any) | undefined
|
|
354
354
|
onClickprefixicon?: ((...args: any[]) => any) | undefined
|
|
355
355
|
onLinechange?: ((...args: any[]) => any) | undefined
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
|
|
358
|
+
fixed: boolean
|
|
359
359
|
customStyle: string
|
|
360
360
|
customClass: string
|
|
361
|
-
fixed: boolean
|
|
362
|
-
readonly: boolean
|
|
363
361
|
required: boolean
|
|
362
|
+
center: boolean
|
|
363
|
+
modelValue: string | number
|
|
364
|
+
readonly: boolean
|
|
364
365
|
error: boolean
|
|
365
366
|
disabled: boolean
|
|
366
367
|
rules: FormItemRule[]
|
|
367
|
-
labelWidth: string
|
|
368
|
-
useLabelSlot: boolean
|
|
369
|
-
center: boolean
|
|
370
368
|
prop: string
|
|
371
369
|
customLabelClass: string
|
|
370
|
+
markerSide: 'before' | 'after'
|
|
371
|
+
labelWidth: string
|
|
372
|
+
clearable: boolean
|
|
372
373
|
focus: boolean
|
|
373
374
|
placeholderClass: string
|
|
374
375
|
cursorSpacing: number
|
|
@@ -377,16 +378,15 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
377
378
|
selectionEnd: number
|
|
378
379
|
adjustPosition: boolean
|
|
379
380
|
holdKeyboard: boolean
|
|
380
|
-
confirmType: import('./types').ConfirmType | null
|
|
381
381
|
confirmHold: boolean
|
|
382
382
|
maxlength: number
|
|
383
383
|
showPassword: boolean
|
|
384
|
-
clearable: boolean
|
|
385
|
-
usePrefixSlot: boolean
|
|
386
384
|
showWordLimit: boolean
|
|
387
385
|
noBorder: boolean
|
|
388
|
-
clearTrigger: import('../wd-input/types').InputClearTrigger
|
|
386
|
+
clearTrigger: import('../wd-input/types.js').InputClearTrigger
|
|
389
387
|
focusWhenClear: boolean
|
|
388
|
+
ignoreCompositionEvent: boolean
|
|
389
|
+
inputmode: import('../wd-input/types.js').InputMode
|
|
390
390
|
customTextareaContainerClass: string
|
|
391
391
|
customTextareaClass: string
|
|
392
392
|
autoFocus: boolean
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { Toast, ToastOptions } from './types'
|
|
2
|
-
/**
|
|
3
|
-
* useToast 用到的key
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare const toastDefaultOptionKey = '__TOAST_OPTION__'
|
|
8
2
|
export declare const defaultOptions: ToastOptions
|
|
9
3
|
export declare function useToast(selector?: string): Toast
|
|
4
|
+
export declare const getToastOptionKey: (selector: string) => string
|
|
10
5
|
export declare const toastIcon: {
|
|
11
6
|
success(): string
|
|
12
7
|
warning(): string
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue'
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue'
|
|
2
2
|
import type { LoadingType } from '../wd-loading/types'
|
|
3
3
|
export type ToastIconType = 'success' | 'error' | 'warning' | 'loading' | 'info'
|
|
4
|
-
export type ToastPositionType = 'top' | 'middle' | 'bottom'
|
|
4
|
+
export type ToastPositionType = 'top' | 'middle-top' | 'middle' | 'bottom'
|
|
5
|
+
export type ToastDirection = 'vertical' | 'horizontal'
|
|
5
6
|
export type ToastLoadingType = LoadingType
|
|
6
7
|
export type ToastOptions = {
|
|
7
8
|
msg?: string
|
|
8
9
|
duration?: number
|
|
10
|
+
direction?: ToastDirection
|
|
9
11
|
iconName?: ToastIconType
|
|
10
12
|
iconSize?: number
|
|
11
13
|
loadingType?: ToastLoadingType
|
|
@@ -46,16 +48,136 @@ export interface Toast {
|
|
|
46
48
|
close(): void
|
|
47
49
|
}
|
|
48
50
|
export declare const toastProps: {
|
|
51
|
+
/**
|
|
52
|
+
* 选择器
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @default ''
|
|
55
|
+
*/
|
|
49
56
|
selector: {
|
|
50
|
-
type:
|
|
57
|
+
type: PropType<string>
|
|
58
|
+
default: string
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 提示信息
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @default ''
|
|
64
|
+
*/
|
|
65
|
+
msg: {
|
|
66
|
+
type: StringConstructor
|
|
67
|
+
default: string
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 排列方向
|
|
71
|
+
* @type {'vertical' | 'horizontal'}
|
|
72
|
+
* @default 'horizontal'
|
|
73
|
+
*/
|
|
74
|
+
direction: {
|
|
75
|
+
type: PropType<ToastDirection>
|
|
76
|
+
default: ToastDirection
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 图标名称
|
|
80
|
+
* @type {'success' | 'error' | 'warning' | 'loading' | 'info'}
|
|
81
|
+
* @default ''
|
|
82
|
+
*/
|
|
83
|
+
iconName: {
|
|
84
|
+
type: PropType<ToastIconType>
|
|
51
85
|
default: string
|
|
52
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* 图标大小
|
|
89
|
+
* @type {number}
|
|
90
|
+
*/
|
|
91
|
+
iconSize: NumberConstructor
|
|
92
|
+
/**
|
|
93
|
+
* 加载类型
|
|
94
|
+
* @type {'outline' | 'ring'}
|
|
95
|
+
* @default 'outline'
|
|
96
|
+
*/
|
|
97
|
+
loadingType: {
|
|
98
|
+
type: PropType<LoadingType>
|
|
99
|
+
default: LoadingType
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 加载颜色
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @default '#4D80F0'
|
|
105
|
+
*/
|
|
106
|
+
loadingColor: {
|
|
107
|
+
type: StringConstructor
|
|
108
|
+
default: string
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 加载大小
|
|
112
|
+
* @type {number}
|
|
113
|
+
*/
|
|
114
|
+
loadingSize: NumberConstructor
|
|
115
|
+
/**
|
|
116
|
+
* 图标颜色
|
|
117
|
+
* @type {string}
|
|
118
|
+
*/
|
|
119
|
+
iconColor: StringConstructor
|
|
120
|
+
/**
|
|
121
|
+
* 位置
|
|
122
|
+
* @type {'top' | 'middle-top' | 'middle' | 'bottom'}
|
|
123
|
+
* @default 'middle-top'
|
|
124
|
+
*/
|
|
125
|
+
position: {
|
|
126
|
+
type: PropType<ToastPositionType>
|
|
127
|
+
default: ToastPositionType
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 层级
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @default 100
|
|
133
|
+
*/
|
|
134
|
+
zIndex: {
|
|
135
|
+
type: NumberConstructor
|
|
136
|
+
default: number
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* 是否存在遮罩层
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @default false
|
|
142
|
+
*/
|
|
143
|
+
cover: {
|
|
144
|
+
type: BooleanConstructor
|
|
145
|
+
default: boolean
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* 图标类名
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @default ''
|
|
151
|
+
*/
|
|
152
|
+
iconClass: {
|
|
153
|
+
type: StringConstructor
|
|
154
|
+
default: string
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 类名前缀
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @default 'wd-icon'
|
|
160
|
+
*/
|
|
161
|
+
classPrefix: {
|
|
162
|
+
type: StringConstructor
|
|
163
|
+
default: string
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 完全展示后的回调函数
|
|
167
|
+
* @type {Function}
|
|
168
|
+
*/
|
|
169
|
+
opened: PropType<() => void>
|
|
170
|
+
/**
|
|
171
|
+
* 完全关闭时的回调函数
|
|
172
|
+
* @type {Function}
|
|
173
|
+
*/
|
|
174
|
+
closed: PropType<() => void>
|
|
53
175
|
customStyle: {
|
|
54
|
-
type:
|
|
176
|
+
type: PropType<string>
|
|
55
177
|
default: string
|
|
56
178
|
}
|
|
57
179
|
customClass: {
|
|
58
|
-
type:
|
|
180
|
+
type: PropType<string>
|
|
59
181
|
default: string
|
|
60
182
|
}
|
|
61
183
|
}
|
|
@@ -1,9 +1,55 @@
|
|
|
1
|
+
import { type ToastDirection } from './types'
|
|
1
2
|
declare const _default: import('vue').DefineComponent<
|
|
2
3
|
{
|
|
3
4
|
selector: {
|
|
4
5
|
type: import('vue').PropType<string>
|
|
5
6
|
default: string
|
|
6
7
|
}
|
|
8
|
+
msg: {
|
|
9
|
+
type: StringConstructor
|
|
10
|
+
default: string
|
|
11
|
+
}
|
|
12
|
+
direction: {
|
|
13
|
+
type: import('vue').PropType<ToastDirection>
|
|
14
|
+
default: ToastDirection
|
|
15
|
+
}
|
|
16
|
+
iconName: {
|
|
17
|
+
type: import('vue').PropType<import('./types').ToastIconType>
|
|
18
|
+
default: string
|
|
19
|
+
}
|
|
20
|
+
iconSize: NumberConstructor
|
|
21
|
+
loadingType: {
|
|
22
|
+
type: import('vue').PropType<import('../wd-loading/types.js').LoadingType>
|
|
23
|
+
default: import('../wd-loading/types.js').LoadingType
|
|
24
|
+
}
|
|
25
|
+
loadingColor: {
|
|
26
|
+
type: StringConstructor
|
|
27
|
+
default: string
|
|
28
|
+
}
|
|
29
|
+
loadingSize: NumberConstructor
|
|
30
|
+
iconColor: StringConstructor
|
|
31
|
+
position: {
|
|
32
|
+
type: import('vue').PropType<import('./types').ToastPositionType>
|
|
33
|
+
default: import('./types').ToastPositionType
|
|
34
|
+
}
|
|
35
|
+
zIndex: {
|
|
36
|
+
type: NumberConstructor
|
|
37
|
+
default: number
|
|
38
|
+
}
|
|
39
|
+
cover: {
|
|
40
|
+
type: BooleanConstructor
|
|
41
|
+
default: boolean
|
|
42
|
+
}
|
|
43
|
+
iconClass: {
|
|
44
|
+
type: StringConstructor
|
|
45
|
+
default: string
|
|
46
|
+
}
|
|
47
|
+
classPrefix: {
|
|
48
|
+
type: StringConstructor
|
|
49
|
+
default: string
|
|
50
|
+
}
|
|
51
|
+
opened: import('vue').PropType<() => void>
|
|
52
|
+
closed: import('vue').PropType<() => void>
|
|
7
53
|
customStyle: {
|
|
8
54
|
type: import('vue').PropType<string>
|
|
9
55
|
default: string
|
|
@@ -28,6 +74,51 @@ declare const _default: import('vue').DefineComponent<
|
|
|
28
74
|
type: import('vue').PropType<string>
|
|
29
75
|
default: string
|
|
30
76
|
}
|
|
77
|
+
msg: {
|
|
78
|
+
type: StringConstructor
|
|
79
|
+
default: string
|
|
80
|
+
}
|
|
81
|
+
direction: {
|
|
82
|
+
type: import('vue').PropType<ToastDirection>
|
|
83
|
+
default: ToastDirection
|
|
84
|
+
}
|
|
85
|
+
iconName: {
|
|
86
|
+
type: import('vue').PropType<import('./types').ToastIconType>
|
|
87
|
+
default: string
|
|
88
|
+
}
|
|
89
|
+
iconSize: NumberConstructor
|
|
90
|
+
loadingType: {
|
|
91
|
+
type: import('vue').PropType<import('../wd-loading/types.js').LoadingType>
|
|
92
|
+
default: import('../wd-loading/types.js').LoadingType
|
|
93
|
+
}
|
|
94
|
+
loadingColor: {
|
|
95
|
+
type: StringConstructor
|
|
96
|
+
default: string
|
|
97
|
+
}
|
|
98
|
+
loadingSize: NumberConstructor
|
|
99
|
+
iconColor: StringConstructor
|
|
100
|
+
position: {
|
|
101
|
+
type: import('vue').PropType<import('./types').ToastPositionType>
|
|
102
|
+
default: import('./types').ToastPositionType
|
|
103
|
+
}
|
|
104
|
+
zIndex: {
|
|
105
|
+
type: NumberConstructor
|
|
106
|
+
default: number
|
|
107
|
+
}
|
|
108
|
+
cover: {
|
|
109
|
+
type: BooleanConstructor
|
|
110
|
+
default: boolean
|
|
111
|
+
}
|
|
112
|
+
iconClass: {
|
|
113
|
+
type: StringConstructor
|
|
114
|
+
default: string
|
|
115
|
+
}
|
|
116
|
+
classPrefix: {
|
|
117
|
+
type: StringConstructor
|
|
118
|
+
default: string
|
|
119
|
+
}
|
|
120
|
+
opened: import('vue').PropType<() => void>
|
|
121
|
+
closed: import('vue').PropType<() => void>
|
|
31
122
|
customStyle: {
|
|
32
123
|
type: import('vue').PropType<string>
|
|
33
124
|
default: string
|
|
@@ -39,9 +130,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
39
130
|
}>
|
|
40
131
|
>,
|
|
41
132
|
{
|
|
133
|
+
classPrefix: string
|
|
42
134
|
customStyle: string
|
|
43
135
|
customClass: string
|
|
136
|
+
zIndex: number
|
|
137
|
+
position: import('./types').ToastPositionType
|
|
138
|
+
loadingColor: string
|
|
44
139
|
selector: string
|
|
140
|
+
msg: string
|
|
141
|
+
direction: ToastDirection
|
|
142
|
+
iconName: import('./types').ToastIconType
|
|
143
|
+
loadingType: import('../wd-loading/types.js').LoadingType
|
|
144
|
+
cover: boolean
|
|
145
|
+
iconClass: string
|
|
45
146
|
},
|
|
46
147
|
{}
|
|
47
148
|
>
|