@tplc/wot 1.0.7 → 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 +7 -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 +12 -4
- 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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { PropType } from 'vue'
|
|
2
|
+
export type KeyboardMode = 'default' | 'custom' | 'car'
|
|
3
|
+
export type KeyType = '' | 'delete' | 'extra' | 'close'
|
|
4
|
+
export type CarKeyboardLang = 'zh' | 'en'
|
|
5
|
+
export interface Key {
|
|
6
|
+
text?: number | string
|
|
7
|
+
type?: KeyType
|
|
8
|
+
wider?: boolean
|
|
9
|
+
}
|
|
10
|
+
export declare const keyboardProps: {
|
|
11
|
+
/**
|
|
12
|
+
* 是否可见
|
|
13
|
+
*/
|
|
14
|
+
visible: {
|
|
15
|
+
type: BooleanConstructor
|
|
16
|
+
default: boolean
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 绑定的值
|
|
20
|
+
*/
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: PropType<string>
|
|
23
|
+
default: string
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 标题
|
|
27
|
+
*/
|
|
28
|
+
title: StringConstructor
|
|
29
|
+
/**
|
|
30
|
+
* 键盘模式
|
|
31
|
+
*/
|
|
32
|
+
mode: {
|
|
33
|
+
type: PropType<KeyboardMode>
|
|
34
|
+
default: KeyboardMode
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 层级
|
|
38
|
+
*/
|
|
39
|
+
zIndex: {
|
|
40
|
+
type: NumberConstructor
|
|
41
|
+
default: number
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* 最大长度
|
|
45
|
+
*/
|
|
46
|
+
maxlength: {
|
|
47
|
+
type: NumberConstructor
|
|
48
|
+
default: number
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 是否显示删除键
|
|
52
|
+
*/
|
|
53
|
+
showDeleteKey: {
|
|
54
|
+
type: BooleanConstructor
|
|
55
|
+
default: boolean
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 是否随机键盘按键顺序
|
|
59
|
+
*/
|
|
60
|
+
randomKeyOrder: {
|
|
61
|
+
type: BooleanConstructor
|
|
62
|
+
default: boolean
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 确认按钮文本
|
|
66
|
+
*/
|
|
67
|
+
closeText: StringConstructor
|
|
68
|
+
/**
|
|
69
|
+
* 删除按钮文本
|
|
70
|
+
*/
|
|
71
|
+
deleteText: StringConstructor
|
|
72
|
+
/**
|
|
73
|
+
* 关闭按钮是否显示加载状态
|
|
74
|
+
*/
|
|
75
|
+
closeButtonLoading: {
|
|
76
|
+
type: BooleanConstructor
|
|
77
|
+
default: boolean
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 是否显示蒙层
|
|
81
|
+
*/
|
|
82
|
+
modal: {
|
|
83
|
+
type: BooleanConstructor
|
|
84
|
+
default: boolean
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 是否在点击外部时收起键盘
|
|
88
|
+
*/
|
|
89
|
+
hideOnClickOutside: {
|
|
90
|
+
type: BooleanConstructor
|
|
91
|
+
default: boolean
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 是否锁定滚动
|
|
95
|
+
*/
|
|
96
|
+
lockScroll: {
|
|
97
|
+
type: BooleanConstructor
|
|
98
|
+
default: boolean
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* 是否在底部安全区域内
|
|
102
|
+
*/
|
|
103
|
+
safeAreaInsetBottom: {
|
|
104
|
+
type: BooleanConstructor
|
|
105
|
+
default: boolean
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 额外按键
|
|
109
|
+
*/
|
|
110
|
+
extraKey: PropType<string | Array<string>>
|
|
111
|
+
/**
|
|
112
|
+
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
|
|
113
|
+
*/
|
|
114
|
+
rootPortal: {
|
|
115
|
+
type: BooleanConstructor
|
|
116
|
+
default: boolean
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 车牌键盘语言模式 当mode=car时生效
|
|
120
|
+
*/
|
|
121
|
+
carLang: PropType<CarKeyboardLang>
|
|
122
|
+
/**
|
|
123
|
+
* 是否自动切换车牌键盘语言 当mode=car且carLang是非受控状态时生效
|
|
124
|
+
*/
|
|
125
|
+
autoSwitchLang: {
|
|
126
|
+
type: BooleanConstructor
|
|
127
|
+
default: boolean
|
|
128
|
+
}
|
|
129
|
+
customStyle: {
|
|
130
|
+
type: PropType<string>
|
|
131
|
+
default: string
|
|
132
|
+
}
|
|
133
|
+
customClass: {
|
|
134
|
+
type: PropType<string>
|
|
135
|
+
default: string
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { type CarKeyboardLang } from './types'
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
3
|
+
import('vue').DefineComponent<
|
|
4
|
+
{
|
|
5
|
+
visible: {
|
|
6
|
+
type: BooleanConstructor
|
|
7
|
+
default: boolean
|
|
8
|
+
}
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: import('vue').PropType<string>
|
|
11
|
+
default: string
|
|
12
|
+
}
|
|
13
|
+
title: StringConstructor
|
|
14
|
+
mode: {
|
|
15
|
+
type: import('vue').PropType<import('./types').KeyboardMode>
|
|
16
|
+
default: import('./types').KeyboardMode
|
|
17
|
+
}
|
|
18
|
+
zIndex: {
|
|
19
|
+
type: NumberConstructor
|
|
20
|
+
default: number
|
|
21
|
+
}
|
|
22
|
+
maxlength: {
|
|
23
|
+
type: NumberConstructor
|
|
24
|
+
default: number
|
|
25
|
+
}
|
|
26
|
+
showDeleteKey: {
|
|
27
|
+
type: BooleanConstructor
|
|
28
|
+
default: boolean
|
|
29
|
+
}
|
|
30
|
+
randomKeyOrder: {
|
|
31
|
+
type: BooleanConstructor
|
|
32
|
+
default: boolean
|
|
33
|
+
}
|
|
34
|
+
closeText: StringConstructor
|
|
35
|
+
deleteText: StringConstructor
|
|
36
|
+
closeButtonLoading: {
|
|
37
|
+
type: BooleanConstructor
|
|
38
|
+
default: boolean
|
|
39
|
+
}
|
|
40
|
+
modal: {
|
|
41
|
+
type: BooleanConstructor
|
|
42
|
+
default: boolean
|
|
43
|
+
}
|
|
44
|
+
hideOnClickOutside: {
|
|
45
|
+
type: BooleanConstructor
|
|
46
|
+
default: boolean
|
|
47
|
+
}
|
|
48
|
+
lockScroll: {
|
|
49
|
+
type: BooleanConstructor
|
|
50
|
+
default: boolean
|
|
51
|
+
}
|
|
52
|
+
safeAreaInsetBottom: {
|
|
53
|
+
type: BooleanConstructor
|
|
54
|
+
default: boolean
|
|
55
|
+
}
|
|
56
|
+
extraKey: import('vue').PropType<string | Array<string>>
|
|
57
|
+
rootPortal: {
|
|
58
|
+
type: BooleanConstructor
|
|
59
|
+
default: boolean
|
|
60
|
+
}
|
|
61
|
+
carLang: import('vue').PropType<CarKeyboardLang>
|
|
62
|
+
autoSwitchLang: {
|
|
63
|
+
type: BooleanConstructor
|
|
64
|
+
default: boolean
|
|
65
|
+
}
|
|
66
|
+
customStyle: {
|
|
67
|
+
type: import('vue').PropType<string>
|
|
68
|
+
default: string
|
|
69
|
+
}
|
|
70
|
+
customClass: {
|
|
71
|
+
type: import('vue').PropType<string>
|
|
72
|
+
default: string
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{},
|
|
76
|
+
unknown,
|
|
77
|
+
{},
|
|
78
|
+
{},
|
|
79
|
+
import('vue').ComponentOptionsMixin,
|
|
80
|
+
import('vue').ComponentOptionsMixin,
|
|
81
|
+
{
|
|
82
|
+
input: (...args: any[]) => void
|
|
83
|
+
'update:modelValue': (...args: any[]) => void
|
|
84
|
+
close: (...args: any[]) => void
|
|
85
|
+
delete: (...args: any[]) => void
|
|
86
|
+
'update:visible': (...args: any[]) => void
|
|
87
|
+
'update:carLang': (...args: any[]) => void
|
|
88
|
+
},
|
|
89
|
+
string,
|
|
90
|
+
import('vue').PublicProps,
|
|
91
|
+
Readonly<
|
|
92
|
+
import('vue').ExtractPropTypes<{
|
|
93
|
+
visible: {
|
|
94
|
+
type: BooleanConstructor
|
|
95
|
+
default: boolean
|
|
96
|
+
}
|
|
97
|
+
modelValue: {
|
|
98
|
+
type: import('vue').PropType<string>
|
|
99
|
+
default: string
|
|
100
|
+
}
|
|
101
|
+
title: StringConstructor
|
|
102
|
+
mode: {
|
|
103
|
+
type: import('vue').PropType<import('./types').KeyboardMode>
|
|
104
|
+
default: import('./types').KeyboardMode
|
|
105
|
+
}
|
|
106
|
+
zIndex: {
|
|
107
|
+
type: NumberConstructor
|
|
108
|
+
default: number
|
|
109
|
+
}
|
|
110
|
+
maxlength: {
|
|
111
|
+
type: NumberConstructor
|
|
112
|
+
default: number
|
|
113
|
+
}
|
|
114
|
+
showDeleteKey: {
|
|
115
|
+
type: BooleanConstructor
|
|
116
|
+
default: boolean
|
|
117
|
+
}
|
|
118
|
+
randomKeyOrder: {
|
|
119
|
+
type: BooleanConstructor
|
|
120
|
+
default: boolean
|
|
121
|
+
}
|
|
122
|
+
closeText: StringConstructor
|
|
123
|
+
deleteText: StringConstructor
|
|
124
|
+
closeButtonLoading: {
|
|
125
|
+
type: BooleanConstructor
|
|
126
|
+
default: boolean
|
|
127
|
+
}
|
|
128
|
+
modal: {
|
|
129
|
+
type: BooleanConstructor
|
|
130
|
+
default: boolean
|
|
131
|
+
}
|
|
132
|
+
hideOnClickOutside: {
|
|
133
|
+
type: BooleanConstructor
|
|
134
|
+
default: boolean
|
|
135
|
+
}
|
|
136
|
+
lockScroll: {
|
|
137
|
+
type: BooleanConstructor
|
|
138
|
+
default: boolean
|
|
139
|
+
}
|
|
140
|
+
safeAreaInsetBottom: {
|
|
141
|
+
type: BooleanConstructor
|
|
142
|
+
default: boolean
|
|
143
|
+
}
|
|
144
|
+
extraKey: import('vue').PropType<string | Array<string>>
|
|
145
|
+
rootPortal: {
|
|
146
|
+
type: BooleanConstructor
|
|
147
|
+
default: boolean
|
|
148
|
+
}
|
|
149
|
+
carLang: import('vue').PropType<CarKeyboardLang>
|
|
150
|
+
autoSwitchLang: {
|
|
151
|
+
type: BooleanConstructor
|
|
152
|
+
default: boolean
|
|
153
|
+
}
|
|
154
|
+
customStyle: {
|
|
155
|
+
type: import('vue').PropType<string>
|
|
156
|
+
default: string
|
|
157
|
+
}
|
|
158
|
+
customClass: {
|
|
159
|
+
type: import('vue').PropType<string>
|
|
160
|
+
default: string
|
|
161
|
+
}
|
|
162
|
+
}>
|
|
163
|
+
> & {
|
|
164
|
+
onInput?: ((...args: any[]) => any) | undefined
|
|
165
|
+
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
166
|
+
onClose?: ((...args: any[]) => any) | undefined
|
|
167
|
+
onDelete?: ((...args: any[]) => any) | undefined
|
|
168
|
+
'onUpdate:visible'?: ((...args: any[]) => any) | undefined
|
|
169
|
+
'onUpdate:carLang'?: ((...args: any[]) => any) | undefined
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
customStyle: string
|
|
173
|
+
customClass: string
|
|
174
|
+
lockScroll: boolean
|
|
175
|
+
zIndex: number
|
|
176
|
+
rootPortal: boolean
|
|
177
|
+
modal: boolean
|
|
178
|
+
safeAreaInsetBottom: boolean
|
|
179
|
+
modelValue: string
|
|
180
|
+
visible: boolean
|
|
181
|
+
mode: import('./types').KeyboardMode
|
|
182
|
+
maxlength: number
|
|
183
|
+
showDeleteKey: boolean
|
|
184
|
+
randomKeyOrder: boolean
|
|
185
|
+
closeButtonLoading: boolean
|
|
186
|
+
hideOnClickOutside: boolean
|
|
187
|
+
autoSwitchLang: boolean
|
|
188
|
+
},
|
|
189
|
+
{}
|
|
190
|
+
>,
|
|
191
|
+
{
|
|
192
|
+
title?(_: {}): any
|
|
193
|
+
}
|
|
194
|
+
>
|
|
195
|
+
export default _default
|
|
196
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
197
|
+
new (): {
|
|
198
|
+
$slots: S
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -55,11 +55,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
55
55
|
}>
|
|
56
56
|
>,
|
|
57
57
|
{
|
|
58
|
+
color: string
|
|
59
|
+
size: string | number
|
|
58
60
|
customStyle: string
|
|
59
61
|
customClass: string
|
|
60
62
|
type: import('./types').LoadingType
|
|
61
|
-
size: string | number
|
|
62
|
-
color: string
|
|
63
63
|
},
|
|
64
64
|
{}
|
|
65
65
|
>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue'
|
|
2
|
+
import type { LoadingProps } from '../wd-loading/types'
|
|
2
3
|
export type LoadMoreState = 'loading' | 'error' | 'finished'
|
|
3
4
|
export declare const loadmoreProps: {
|
|
4
5
|
/**
|
|
@@ -16,10 +17,12 @@ export declare const loadmoreProps: {
|
|
|
16
17
|
/**
|
|
17
18
|
* 加载失败的提示文案
|
|
18
19
|
*/
|
|
19
|
-
errorText:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
errorText: StringConstructor
|
|
21
|
+
/**
|
|
22
|
+
* 加载中loading组件的属性
|
|
23
|
+
* 参考loading组件
|
|
24
|
+
*/
|
|
25
|
+
loadingProps: PropType<Partial<LoadingProps>>
|
|
23
26
|
customStyle: {
|
|
24
27
|
type: PropType<string>
|
|
25
28
|
default: string
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { type LoadMoreState } from './types'
|
|
2
|
+
import type { LoadingProps } from '../wd-loading/types'
|
|
2
3
|
declare const _default: import('vue').DefineComponent<
|
|
3
4
|
{
|
|
4
5
|
state: import('vue').PropType<LoadMoreState>
|
|
5
6
|
loadingText: StringConstructor
|
|
6
7
|
finishedText: StringConstructor
|
|
7
|
-
errorText:
|
|
8
|
-
|
|
9
|
-
default: string
|
|
10
|
-
}
|
|
8
|
+
errorText: StringConstructor
|
|
9
|
+
loadingProps: import('vue').PropType<Partial<LoadingProps>>
|
|
11
10
|
customStyle: {
|
|
12
11
|
type: import('vue').PropType<string>
|
|
13
12
|
default: string
|
|
@@ -33,10 +32,8 @@ declare const _default: import('vue').DefineComponent<
|
|
|
33
32
|
state: import('vue').PropType<LoadMoreState>
|
|
34
33
|
loadingText: StringConstructor
|
|
35
34
|
finishedText: StringConstructor
|
|
36
|
-
errorText:
|
|
37
|
-
|
|
38
|
-
default: string
|
|
39
|
-
}
|
|
35
|
+
errorText: StringConstructor
|
|
36
|
+
loadingProps: import('vue').PropType<Partial<LoadingProps>>
|
|
40
37
|
customStyle: {
|
|
41
38
|
type: import('vue').PropType<string>
|
|
42
39
|
default: string
|
|
@@ -52,7 +49,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
52
49
|
{
|
|
53
50
|
customStyle: string
|
|
54
51
|
customClass: string
|
|
55
|
-
errorText: string
|
|
56
52
|
},
|
|
57
53
|
{}
|
|
58
54
|
>
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type { Message,
|
|
2
|
-
|
|
3
|
-
* useMessage 用到的key
|
|
4
|
-
*
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare const messageDefaultOptionKey = '__MESSAGE_OPTION__'
|
|
8
|
-
export declare const defaultOptions: MessageOptions
|
|
1
|
+
import type { Message, MessageOptionsWithCallBack } from './types'
|
|
2
|
+
export declare const defaultOptions: MessageOptionsWithCallBack
|
|
9
3
|
export declare function useMessage(selector?: string): Message
|
|
4
|
+
export declare const getMessageDefaultOptionKey: (selector: string) => string
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { ButtonProps } from '../wd-button/types'
|
|
2
|
+
import { type InputSize, type InputType } from '../wd-input/types'
|
|
1
3
|
export type MessageType = 'alert' | 'confirm' | 'prompt'
|
|
2
4
|
export type MessageBeforeConfirmOption = {
|
|
3
5
|
resolve: (isPass: boolean) => void
|
|
4
|
-
value
|
|
6
|
+
value?: string | number
|
|
5
7
|
}
|
|
6
8
|
export type MessageOptions = {
|
|
7
9
|
/**
|
|
@@ -12,7 +14,6 @@ export type MessageOptions = {
|
|
|
12
14
|
* 是否展示取消按钮
|
|
13
15
|
*/
|
|
14
16
|
showCancelButton?: boolean
|
|
15
|
-
show?: boolean
|
|
16
17
|
/**
|
|
17
18
|
* 是否支持点击蒙层进行关闭,点击蒙层回调传入的action为'modal'
|
|
18
19
|
*/
|
|
@@ -36,7 +37,11 @@ export type MessageOptions = {
|
|
|
36
37
|
/**
|
|
37
38
|
* 当type为prompt时,输入框类型
|
|
38
39
|
*/
|
|
39
|
-
inputType?:
|
|
40
|
+
inputType?: InputType
|
|
41
|
+
/**
|
|
42
|
+
* 设置输入框大小,可选值:large
|
|
43
|
+
*/
|
|
44
|
+
inputSize?: InputSize
|
|
40
45
|
/**
|
|
41
46
|
* 当type为prompt时,输入框初始值
|
|
42
47
|
*/
|
|
@@ -52,7 +57,7 @@ export type MessageOptions = {
|
|
|
52
57
|
/**
|
|
53
58
|
* 当type为prompt时,输入框校验函数,点击确定按钮时进行校验
|
|
54
59
|
*/
|
|
55
|
-
inputValidate?: InputValidate
|
|
60
|
+
inputValidate?: InputValidate
|
|
56
61
|
/**
|
|
57
62
|
* 当type为prompt时,输入框检验不通过时的错误提示文案
|
|
58
63
|
*/
|
|
@@ -73,6 +78,19 @@ export type MessageOptions = {
|
|
|
73
78
|
* 确认前钩子
|
|
74
79
|
*/
|
|
75
80
|
beforeConfirm?: (options: MessageBeforeConfirmOption) => void
|
|
81
|
+
/**
|
|
82
|
+
* 取消按钮Props
|
|
83
|
+
*/
|
|
84
|
+
cancelButtonProps?: Partial<ButtonProps>
|
|
85
|
+
/**
|
|
86
|
+
* 确认按钮Props
|
|
87
|
+
*/
|
|
88
|
+
confirmButtonProps?: Partial<ButtonProps>
|
|
89
|
+
}
|
|
90
|
+
export type MessageOptionsWithCallBack = MessageOptions & {
|
|
91
|
+
show?: boolean
|
|
92
|
+
success?: (res: MessageResult) => void
|
|
93
|
+
fail?: (res: MessageResult) => void
|
|
76
94
|
}
|
|
77
95
|
export type ActionType = 'confirm' | 'cancel' | 'modal'
|
|
78
96
|
export type InputValidate = (inputValue: string | number) => boolean
|
|
@@ -88,7 +106,20 @@ export interface Message {
|
|
|
88
106
|
close(): void
|
|
89
107
|
}
|
|
90
108
|
export declare const messageBoxProps: {
|
|
91
|
-
|
|
109
|
+
/**
|
|
110
|
+
* 指定唯一标识
|
|
111
|
+
*/
|
|
112
|
+
selector: {
|
|
113
|
+
type: import('vue').PropType<string>
|
|
114
|
+
default: string
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
|
|
118
|
+
*/
|
|
119
|
+
rootPortal: {
|
|
120
|
+
type: BooleanConstructor
|
|
121
|
+
default: boolean
|
|
122
|
+
}
|
|
92
123
|
customStyle: {
|
|
93
124
|
type: import('vue').PropType<string>
|
|
94
125
|
default: string
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<
|
|
2
2
|
import('vue').DefineComponent<
|
|
3
3
|
{
|
|
4
|
-
selector:
|
|
4
|
+
selector: {
|
|
5
|
+
type: import('vue').PropType<string>
|
|
6
|
+
default: string
|
|
7
|
+
}
|
|
8
|
+
rootPortal: {
|
|
9
|
+
type: BooleanConstructor
|
|
10
|
+
default: boolean
|
|
11
|
+
}
|
|
5
12
|
customStyle: {
|
|
6
13
|
type: import('vue').PropType<string>
|
|
7
14
|
default: string
|
|
@@ -22,7 +29,14 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
22
29
|
import('vue').PublicProps,
|
|
23
30
|
Readonly<
|
|
24
31
|
import('vue').ExtractPropTypes<{
|
|
25
|
-
selector:
|
|
32
|
+
selector: {
|
|
33
|
+
type: import('vue').PropType<string>
|
|
34
|
+
default: string
|
|
35
|
+
}
|
|
36
|
+
rootPortal: {
|
|
37
|
+
type: BooleanConstructor
|
|
38
|
+
default: boolean
|
|
39
|
+
}
|
|
26
40
|
customStyle: {
|
|
27
41
|
type: import('vue').PropType<string>
|
|
28
42
|
default: string
|
|
@@ -36,6 +50,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
36
50
|
{
|
|
37
51
|
customStyle: string
|
|
38
52
|
customClass: string
|
|
53
|
+
rootPortal: boolean
|
|
54
|
+
selector: string
|
|
39
55
|
},
|
|
40
56
|
{}
|
|
41
57
|
>,
|
|
@@ -108,13 +108,13 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
108
108
|
'onClick-right'?: ((...args: any[]) => any) | undefined
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
|
|
111
|
+
fixed: boolean
|
|
112
112
|
customStyle: string
|
|
113
113
|
customClass: string
|
|
114
|
-
|
|
114
|
+
zIndex: number
|
|
115
115
|
placeholder: boolean
|
|
116
|
-
bordered: boolean
|
|
117
116
|
leftArrow: boolean
|
|
117
|
+
bordered: boolean
|
|
118
118
|
safeAreaInsetTop: boolean
|
|
119
119
|
leftDisabled: boolean
|
|
120
120
|
rightDisabled: boolean
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue'
|
|
2
|
+
export declare const navbarCapsuleProps: {
|
|
3
|
+
customStyle: {
|
|
4
|
+
type: import('vue').PropType<string>
|
|
5
|
+
default: string
|
|
6
|
+
}
|
|
7
|
+
customClass: {
|
|
8
|
+
type: import('vue').PropType<string>
|
|
9
|
+
default: string
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export type NavbarCapsuleProps = ExtractPropTypes<typeof navbarCapsuleProps>
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<
|
|
2
|
+
{
|
|
3
|
+
customStyle: {
|
|
4
|
+
type: import('vue').PropType<string>
|
|
5
|
+
default: string
|
|
6
|
+
}
|
|
7
|
+
customClass: {
|
|
8
|
+
type: import('vue').PropType<string>
|
|
9
|
+
default: string
|
|
10
|
+
}
|
|
11
|
+
},
|
|
2
12
|
{},
|
|
3
|
-
|
|
4
|
-
{},
|
|
13
|
+
unknown,
|
|
5
14
|
{},
|
|
6
15
|
{},
|
|
7
16
|
import('vue').ComponentOptionsMixin,
|
|
@@ -12,11 +21,25 @@ declare const _default: import('vue').DefineComponent<
|
|
|
12
21
|
},
|
|
13
22
|
string,
|
|
14
23
|
import('vue').PublicProps,
|
|
15
|
-
Readonly<
|
|
24
|
+
Readonly<
|
|
25
|
+
import('vue').ExtractPropTypes<{
|
|
26
|
+
customStyle: {
|
|
27
|
+
type: import('vue').PropType<string>
|
|
28
|
+
default: string
|
|
29
|
+
}
|
|
30
|
+
customClass: {
|
|
31
|
+
type: import('vue').PropType<string>
|
|
32
|
+
default: string
|
|
33
|
+
}
|
|
34
|
+
}>
|
|
35
|
+
> & {
|
|
16
36
|
onBack?: ((...args: any[]) => any) | undefined
|
|
17
37
|
'onBack-home'?: ((...args: any[]) => any) | undefined
|
|
18
38
|
},
|
|
19
|
-
{
|
|
39
|
+
{
|
|
40
|
+
customStyle: string
|
|
41
|
+
customClass: string
|
|
42
|
+
},
|
|
20
43
|
{}
|
|
21
44
|
>
|
|
22
45
|
export default _default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropType } from 'vue'
|
|
1
|
+
import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue'
|
|
2
2
|
export type NoticeBarType = 'warning' | 'info' | 'danger' | ''
|
|
3
3
|
export type NoticeBarScrollDirection = 'horizontal' | 'vertical'
|
|
4
4
|
export declare const noticeBarProps: {
|
|
@@ -79,3 +79,11 @@ export declare const noticeBarProps: {
|
|
|
79
79
|
default: string
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
export type NoticeBarProps = ExtractPropTypes<typeof noticeBarProps>
|
|
83
|
+
export type NoticeBarExpose = {
|
|
84
|
+
/**
|
|
85
|
+
* 重置NoticeBar动画
|
|
86
|
+
*/
|
|
87
|
+
reset: () => void
|
|
88
|
+
}
|
|
89
|
+
export type NoticeBarInstance = ComponentPublicInstance<NoticeBarProps, NoticeBarExpose>
|
|
@@ -45,15 +45,17 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
45
45
|
default: string
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
{
|
|
48
|
+
{
|
|
49
|
+
reset: () => void
|
|
50
|
+
},
|
|
49
51
|
unknown,
|
|
50
52
|
{},
|
|
51
53
|
{},
|
|
52
54
|
import('vue').ComponentOptionsMixin,
|
|
53
55
|
import('vue').ComponentOptionsMixin,
|
|
54
56
|
{
|
|
55
|
-
close: (...args: any[]) => void
|
|
56
57
|
click: (...args: any[]) => void
|
|
58
|
+
close: (...args: any[]) => void
|
|
57
59
|
next: (...args: any[]) => void
|
|
58
60
|
},
|
|
59
61
|
string,
|
|
@@ -105,8 +107,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
105
107
|
}
|
|
106
108
|
}>
|
|
107
109
|
> & {
|
|
108
|
-
onClose?: ((...args: any[]) => any) | undefined
|
|
109
110
|
onClick?: ((...args: any[]) => any) | undefined
|
|
111
|
+
onClose?: ((...args: any[]) => any) | undefined
|
|
110
112
|
onNext?: ((...args: any[]) => any) | undefined
|
|
111
113
|
},
|
|
112
114
|
{
|
|
@@ -114,11 +116,11 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
114
116
|
customClass: string
|
|
115
117
|
type: import('./types').NoticeBarType
|
|
116
118
|
text: string | string[]
|
|
117
|
-
|
|
119
|
+
closable: boolean
|
|
118
120
|
direction: import('./types').NoticeBarScrollDirection
|
|
121
|
+
speed: number
|
|
119
122
|
scrollable: boolean
|
|
120
123
|
delay: number
|
|
121
|
-
closable: boolean
|
|
122
124
|
wrapable: boolean
|
|
123
125
|
},
|
|
124
126
|
{}
|
|
@@ -84,4 +84,11 @@ export declare const notifyProps: {
|
|
|
84
84
|
type: PropType<string>
|
|
85
85
|
default: string
|
|
86
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
|
|
89
|
+
*/
|
|
90
|
+
rootPortal: {
|
|
91
|
+
type: BooleanConstructor
|
|
92
|
+
default: boolean
|
|
93
|
+
}
|
|
87
94
|
}
|