@tplc/wot 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -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/placeholder.css +20 -0
- 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/placeholder.css +20 -0
- package/components/wd-textarea/types.ts +24 -34
- package/components/wd-textarea/wd-textarea.vue +53 -33
- 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
|
@@ -45,6 +45,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
45
45
|
type: BooleanConstructor
|
|
46
46
|
default: boolean
|
|
47
47
|
}
|
|
48
|
+
rootPortal: {
|
|
49
|
+
type: BooleanConstructor
|
|
50
|
+
default: boolean
|
|
51
|
+
}
|
|
48
52
|
customStyle: {
|
|
49
53
|
type: import('vue').PropType<string>
|
|
50
54
|
default: string
|
|
@@ -62,13 +66,13 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
62
66
|
import('vue').ComponentOptionsMixin,
|
|
63
67
|
{
|
|
64
68
|
select: (...args: any[]) => void
|
|
69
|
+
'update:modelValue': (...args: any[]) => void
|
|
65
70
|
'click-modal': (...args: any[]) => void
|
|
71
|
+
close: (...args: any[]) => void
|
|
66
72
|
cancel: (...args: any[]) => void
|
|
67
73
|
closed: (...args: any[]) => void
|
|
68
|
-
close: (...args: any[]) => void
|
|
69
74
|
open: (...args: any[]) => void
|
|
70
75
|
opened: (...args: any[]) => void
|
|
71
|
-
'update:modelValue': (...args: any[]) => void
|
|
72
76
|
},
|
|
73
77
|
string,
|
|
74
78
|
import('vue').PublicProps,
|
|
@@ -117,6 +121,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
117
121
|
type: BooleanConstructor
|
|
118
122
|
default: boolean
|
|
119
123
|
}
|
|
124
|
+
rootPortal: {
|
|
125
|
+
type: BooleanConstructor
|
|
126
|
+
default: boolean
|
|
127
|
+
}
|
|
120
128
|
customStyle: {
|
|
121
129
|
type: import('vue').PropType<string>
|
|
122
130
|
default: string
|
|
@@ -128,26 +136,27 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
128
136
|
}>
|
|
129
137
|
> & {
|
|
130
138
|
onSelect?: ((...args: any[]) => any) | undefined
|
|
139
|
+
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
131
140
|
'onClick-modal'?: ((...args: any[]) => any) | undefined
|
|
141
|
+
onClose?: ((...args: any[]) => any) | undefined
|
|
132
142
|
onCancel?: ((...args: any[]) => any) | undefined
|
|
133
143
|
onClosed?: ((...args: any[]) => any) | undefined
|
|
134
|
-
onClose?: ((...args: any[]) => any) | undefined
|
|
135
144
|
onOpen?: ((...args: any[]) => any) | undefined
|
|
136
145
|
onOpened?: ((...args: any[]) => any) | undefined
|
|
137
|
-
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
138
146
|
},
|
|
139
147
|
{
|
|
148
|
+
customStyle: string
|
|
149
|
+
customClass: string
|
|
150
|
+
duration: number
|
|
151
|
+
lazyRender: boolean
|
|
152
|
+
zIndex: number
|
|
153
|
+
rootPortal: boolean
|
|
154
|
+
closeOnClickModal: boolean
|
|
155
|
+
safeAreaInsetBottom: boolean
|
|
140
156
|
customHeaderClass: string
|
|
141
157
|
actions: import('./types').Action[]
|
|
142
158
|
panels: (Panel | Panel[])[]
|
|
143
159
|
closeOnClickAction: boolean
|
|
144
|
-
closeOnClickModal: boolean
|
|
145
|
-
duration: number
|
|
146
|
-
zIndex: number
|
|
147
|
-
lazyRender: boolean
|
|
148
|
-
safeAreaInsetBottom: boolean
|
|
149
|
-
customStyle: string
|
|
150
|
-
customClass: string
|
|
151
160
|
},
|
|
152
161
|
{}
|
|
153
162
|
>,
|
|
@@ -4,7 +4,7 @@ export declare const backtopProps: {
|
|
|
4
4
|
*/
|
|
5
5
|
scrollTop: {
|
|
6
6
|
type: NumberConstructor
|
|
7
|
-
|
|
7
|
+
required: true
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* 距离顶部多少距离时显示
|
|
@@ -55,14 +55,6 @@ export declare const backtopProps: {
|
|
|
55
55
|
type: NumberConstructor
|
|
56
56
|
default: number
|
|
57
57
|
}
|
|
58
|
-
alwaysShow: {
|
|
59
|
-
type: BooleanConstructor
|
|
60
|
-
default: boolean
|
|
61
|
-
}
|
|
62
|
-
left: {
|
|
63
|
-
type: NumberConstructor
|
|
64
|
-
default: number
|
|
65
|
-
}
|
|
66
58
|
customStyle: {
|
|
67
59
|
type: import('vue').PropType<string>
|
|
68
60
|
default: string
|
|
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
3
3
|
{
|
|
4
4
|
scrollTop: {
|
|
5
5
|
type: NumberConstructor
|
|
6
|
-
|
|
6
|
+
required: true
|
|
7
7
|
}
|
|
8
8
|
top: {
|
|
9
9
|
type: NumberConstructor
|
|
@@ -33,14 +33,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
33
33
|
type: NumberConstructor
|
|
34
34
|
default: number
|
|
35
35
|
}
|
|
36
|
-
alwaysShow: {
|
|
37
|
-
type: BooleanConstructor
|
|
38
|
-
default: boolean
|
|
39
|
-
}
|
|
40
|
-
left: {
|
|
41
|
-
type: NumberConstructor
|
|
42
|
-
default: number
|
|
43
|
-
}
|
|
44
36
|
customStyle: {
|
|
45
37
|
type: import('vue').PropType<string>
|
|
46
38
|
default: string
|
|
@@ -63,7 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
63
55
|
import('vue').ExtractPropTypes<{
|
|
64
56
|
scrollTop: {
|
|
65
57
|
type: NumberConstructor
|
|
66
|
-
|
|
58
|
+
required: true
|
|
67
59
|
}
|
|
68
60
|
top: {
|
|
69
61
|
type: NumberConstructor
|
|
@@ -93,14 +85,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
93
85
|
type: NumberConstructor
|
|
94
86
|
default: number
|
|
95
87
|
}
|
|
96
|
-
alwaysShow: {
|
|
97
|
-
type: BooleanConstructor
|
|
98
|
-
default: boolean
|
|
99
|
-
}
|
|
100
|
-
left: {
|
|
101
|
-
type: NumberConstructor
|
|
102
|
-
default: number
|
|
103
|
-
}
|
|
104
88
|
customStyle: {
|
|
105
89
|
type: import('vue').PropType<string>
|
|
106
90
|
default: string
|
|
@@ -112,18 +96,15 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
112
96
|
}>
|
|
113
97
|
>,
|
|
114
98
|
{
|
|
115
|
-
duration: number
|
|
116
|
-
zIndex: number
|
|
117
99
|
customStyle: string
|
|
118
100
|
customClass: string
|
|
119
|
-
|
|
120
|
-
|
|
101
|
+
duration: number
|
|
102
|
+
zIndex: number
|
|
121
103
|
top: number
|
|
104
|
+
right: number
|
|
105
|
+
bottom: number
|
|
122
106
|
iconStyle: string
|
|
123
107
|
shape: string
|
|
124
|
-
right: number
|
|
125
|
-
alwaysShow: boolean
|
|
126
|
-
left: number
|
|
127
108
|
},
|
|
128
109
|
{}
|
|
129
110
|
>,
|
|
@@ -4,10 +4,7 @@ export declare const badgeProps: {
|
|
|
4
4
|
/**
|
|
5
5
|
* 显示值
|
|
6
6
|
*/
|
|
7
|
-
modelValue:
|
|
8
|
-
type: PropType<number | string | null>
|
|
9
|
-
default: null
|
|
10
|
-
}
|
|
7
|
+
modelValue: (NumberConstructor | StringConstructor)[]
|
|
11
8
|
/** 当数值为 0 时,是否展示徽标 */
|
|
12
9
|
showZero: {
|
|
13
10
|
type: BooleanConstructor
|
|
@@ -36,11 +33,11 @@ export declare const badgeProps: {
|
|
|
36
33
|
/**
|
|
37
34
|
* 为正时,角标向下偏移对应的像素
|
|
38
35
|
*/
|
|
39
|
-
top: NumberConstructor
|
|
36
|
+
top: (NumberConstructor | StringConstructor)[]
|
|
40
37
|
/**
|
|
41
38
|
* 为正时,角标向左偏移对应的像素
|
|
42
39
|
*/
|
|
43
|
-
right: NumberConstructor
|
|
40
|
+
right: (NumberConstructor | StringConstructor)[]
|
|
44
41
|
customStyle: {
|
|
45
42
|
type: PropType<string>
|
|
46
43
|
default: string
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<
|
|
2
2
|
import('vue').DefineComponent<
|
|
3
3
|
{
|
|
4
|
-
modelValue:
|
|
5
|
-
type: import('vue').PropType<number | string | null>
|
|
6
|
-
default: null
|
|
7
|
-
}
|
|
4
|
+
modelValue: (NumberConstructor | StringConstructor)[]
|
|
8
5
|
showZero: {
|
|
9
6
|
type: BooleanConstructor
|
|
10
7
|
default: boolean
|
|
@@ -17,8 +14,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
17
14
|
type: import('vue').PropType<import('./types').BadgeType | undefined>
|
|
18
15
|
default: import('./types').BadgeType | undefined
|
|
19
16
|
}
|
|
20
|
-
top: NumberConstructor
|
|
21
|
-
right: NumberConstructor
|
|
17
|
+
top: (NumberConstructor | StringConstructor)[]
|
|
18
|
+
right: (NumberConstructor | StringConstructor)[]
|
|
22
19
|
customStyle: {
|
|
23
20
|
type: import('vue').PropType<string>
|
|
24
21
|
default: string
|
|
@@ -39,10 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
39
36
|
import('vue').PublicProps,
|
|
40
37
|
Readonly<
|
|
41
38
|
import('vue').ExtractPropTypes<{
|
|
42
|
-
modelValue:
|
|
43
|
-
type: import('vue').PropType<number | string | null>
|
|
44
|
-
default: null
|
|
45
|
-
}
|
|
39
|
+
modelValue: (NumberConstructor | StringConstructor)[]
|
|
46
40
|
showZero: {
|
|
47
41
|
type: BooleanConstructor
|
|
48
42
|
default: boolean
|
|
@@ -55,8 +49,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
55
49
|
type: import('vue').PropType<import('./types').BadgeType | undefined>
|
|
56
50
|
default: import('./types').BadgeType | undefined
|
|
57
51
|
}
|
|
58
|
-
top: NumberConstructor
|
|
59
|
-
right: NumberConstructor
|
|
52
|
+
top: (NumberConstructor | StringConstructor)[]
|
|
53
|
+
right: (NumberConstructor | StringConstructor)[]
|
|
60
54
|
customStyle: {
|
|
61
55
|
type: import('vue').PropType<string>
|
|
62
56
|
default: string
|
|
@@ -68,13 +62,12 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
68
62
|
}>
|
|
69
63
|
>,
|
|
70
64
|
{
|
|
71
|
-
modelValue: string | number | null
|
|
72
65
|
customStyle: string
|
|
73
66
|
customClass: string
|
|
74
67
|
type: import('./types').BadgeType | undefined
|
|
68
|
+
hidden: boolean
|
|
75
69
|
showZero: boolean
|
|
76
70
|
isDot: boolean
|
|
77
|
-
hidden: boolean
|
|
78
71
|
},
|
|
79
72
|
{}
|
|
80
73
|
>,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue'
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue'
|
|
2
2
|
export type ButtonType =
|
|
3
3
|
| 'primary'
|
|
4
4
|
| 'success'
|
|
@@ -9,6 +9,37 @@ export type ButtonType =
|
|
|
9
9
|
| 'text'
|
|
10
10
|
| 'icon'
|
|
11
11
|
export type ButtonSize = 'small' | 'medium' | 'large'
|
|
12
|
+
export type ButtonLang = 'zh_CN' | 'zh_TW' | 'en'
|
|
13
|
+
export type ButtonOpenType =
|
|
14
|
+
| 'feedback'
|
|
15
|
+
| 'share'
|
|
16
|
+
| 'getUserInfo'
|
|
17
|
+
| 'contact'
|
|
18
|
+
| 'getPhoneNumber'
|
|
19
|
+
| 'getRealtimePhoneNumber'
|
|
20
|
+
| 'launchApp'
|
|
21
|
+
| 'openSetting'
|
|
22
|
+
| 'chooseAvatar'
|
|
23
|
+
| 'getAuthorize'
|
|
24
|
+
| 'lifestyle'
|
|
25
|
+
| 'contactShare'
|
|
26
|
+
| 'openGroupProfile'
|
|
27
|
+
| 'openGuildProfile'
|
|
28
|
+
| 'openPublicProfile'
|
|
29
|
+
| 'shareMessageToFriend'
|
|
30
|
+
| 'addFriend'
|
|
31
|
+
| 'addColorSign'
|
|
32
|
+
| 'addGroupApp'
|
|
33
|
+
| 'addToFavorites'
|
|
34
|
+
| 'chooseAddress'
|
|
35
|
+
| 'chooseInvoiceTitle'
|
|
36
|
+
| 'login'
|
|
37
|
+
| 'subscribe'
|
|
38
|
+
| 'favorite'
|
|
39
|
+
| 'watchLater'
|
|
40
|
+
| 'openProfile'
|
|
41
|
+
| 'agreePrivacyAuthorization'
|
|
42
|
+
export type ButtonScope = 'phoneNumber' | 'userInfo'
|
|
12
43
|
export declare const buttonProps: {
|
|
13
44
|
/**
|
|
14
45
|
* 幽灵按钮
|
|
@@ -49,14 +80,14 @@ export declare const buttonProps: {
|
|
|
49
80
|
* 按钮类型,可选值:primary / success / info / warning / error / text / icon
|
|
50
81
|
*/
|
|
51
82
|
type: {
|
|
52
|
-
type:
|
|
83
|
+
type: PropType<ButtonType>
|
|
53
84
|
default: ButtonType
|
|
54
85
|
}
|
|
55
86
|
/**
|
|
56
87
|
* 按钮尺寸,可选值:small / medium / large
|
|
57
88
|
*/
|
|
58
89
|
size: {
|
|
59
|
-
type:
|
|
90
|
+
type: PropType<ButtonSize>
|
|
60
91
|
default: ButtonSize
|
|
61
92
|
}
|
|
62
93
|
/**
|
|
@@ -67,7 +98,7 @@ export declare const buttonProps: {
|
|
|
67
98
|
* 类名前缀,用于使用自定义图标,用法参考Icon组件
|
|
68
99
|
*/
|
|
69
100
|
classPrefix: {
|
|
70
|
-
type:
|
|
101
|
+
type: PropType<string>
|
|
71
102
|
default: string
|
|
72
103
|
}
|
|
73
104
|
/**
|
|
@@ -84,7 +115,7 @@ export declare const buttonProps: {
|
|
|
84
115
|
/**
|
|
85
116
|
* 开放能力
|
|
86
117
|
*/
|
|
87
|
-
openType:
|
|
118
|
+
openType: PropType<ButtonOpenType>
|
|
88
119
|
/**
|
|
89
120
|
* 指定是否阻止本节点的祖先节点出现点击态
|
|
90
121
|
*/
|
|
@@ -92,7 +123,7 @@ export declare const buttonProps: {
|
|
|
92
123
|
/**
|
|
93
124
|
* 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文
|
|
94
125
|
*/
|
|
95
|
-
lang:
|
|
126
|
+
lang: PropType<ButtonLang>
|
|
96
127
|
/**
|
|
97
128
|
* 会话来源,open-type="contact"时有效
|
|
98
129
|
*/
|
|
@@ -121,12 +152,17 @@ export declare const buttonProps: {
|
|
|
121
152
|
* 按钮的唯一标识,可用于设置隐私同意授权按钮的id
|
|
122
153
|
*/
|
|
123
154
|
buttonId: StringConstructor
|
|
155
|
+
/**
|
|
156
|
+
* 支付宝小程序,当 open-type 为 getAuthorize 时有效。
|
|
157
|
+
* 可选值:'phoneNumber' | 'userInfo'
|
|
158
|
+
*/
|
|
159
|
+
scope: PropType<ButtonScope>
|
|
124
160
|
customStyle: {
|
|
125
|
-
type:
|
|
161
|
+
type: PropType<string>
|
|
126
162
|
default: string
|
|
127
163
|
}
|
|
128
164
|
customClass: {
|
|
129
|
-
type:
|
|
165
|
+
type: PropType<string>
|
|
130
166
|
default: string
|
|
131
167
|
}
|
|
132
168
|
}
|
|
@@ -39,9 +39,9 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
39
39
|
default: boolean
|
|
40
40
|
}
|
|
41
41
|
loadingColor: StringConstructor
|
|
42
|
-
openType:
|
|
42
|
+
openType: import('vue').PropType<import('./types').ButtonOpenType>
|
|
43
43
|
hoverStopPropagation: BooleanConstructor
|
|
44
|
-
lang:
|
|
44
|
+
lang: import('vue').PropType<import('./types').ButtonLang>
|
|
45
45
|
sessionFrom: StringConstructor
|
|
46
46
|
sendMessageTitle: StringConstructor
|
|
47
47
|
sendMessagePath: StringConstructor
|
|
@@ -49,6 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
49
49
|
appParameter: StringConstructor
|
|
50
50
|
showMessageCard: BooleanConstructor
|
|
51
51
|
buttonId: StringConstructor
|
|
52
|
+
scope: import('vue').PropType<import('./types').ButtonScope>
|
|
52
53
|
customStyle: {
|
|
53
54
|
type: import('vue').PropType<string>
|
|
54
55
|
default: string
|
|
@@ -67,9 +68,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
67
68
|
{
|
|
68
69
|
click: (...args: any[]) => void
|
|
69
70
|
error: (...args: any[]) => void
|
|
70
|
-
getuserinfo: (...args: any[]) => void
|
|
71
71
|
contact: (...args: any[]) => void
|
|
72
|
+
getuserinfo: (...args: any[]) => void
|
|
72
73
|
getphonenumber: (...args: any[]) => void
|
|
74
|
+
getrealtimephonenumber: (...args: any[]) => void
|
|
73
75
|
launchapp: (...args: any[]) => void
|
|
74
76
|
opensetting: (...args: any[]) => void
|
|
75
77
|
chooseavatar: (...args: any[]) => void
|
|
@@ -117,9 +119,9 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
117
119
|
default: boolean
|
|
118
120
|
}
|
|
119
121
|
loadingColor: StringConstructor
|
|
120
|
-
openType:
|
|
122
|
+
openType: import('vue').PropType<import('./types').ButtonOpenType>
|
|
121
123
|
hoverStopPropagation: BooleanConstructor
|
|
122
|
-
lang:
|
|
124
|
+
lang: import('vue').PropType<import('./types').ButtonLang>
|
|
123
125
|
sessionFrom: StringConstructor
|
|
124
126
|
sendMessageTitle: StringConstructor
|
|
125
127
|
sendMessagePath: StringConstructor
|
|
@@ -127,6 +129,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
127
129
|
appParameter: StringConstructor
|
|
128
130
|
showMessageCard: BooleanConstructor
|
|
129
131
|
buttonId: StringConstructor
|
|
132
|
+
scope: import('vue').PropType<import('./types').ButtonScope>
|
|
130
133
|
customStyle: {
|
|
131
134
|
type: import('vue').PropType<string>
|
|
132
135
|
default: string
|
|
@@ -137,17 +140,20 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
137
140
|
}
|
|
138
141
|
}>
|
|
139
142
|
> & {
|
|
140
|
-
onError?: ((...args: any[]) => any) | undefined
|
|
141
143
|
onClick?: ((...args: any[]) => any) | undefined
|
|
142
|
-
|
|
144
|
+
onError?: ((...args: any[]) => any) | undefined
|
|
143
145
|
onContact?: ((...args: any[]) => any) | undefined
|
|
146
|
+
onGetuserinfo?: ((...args: any[]) => any) | undefined
|
|
144
147
|
onGetphonenumber?: ((...args: any[]) => any) | undefined
|
|
148
|
+
onGetrealtimephonenumber?: ((...args: any[]) => any) | undefined
|
|
145
149
|
onLaunchapp?: ((...args: any[]) => any) | undefined
|
|
146
150
|
onOpensetting?: ((...args: any[]) => any) | undefined
|
|
147
151
|
onChooseavatar?: ((...args: any[]) => any) | undefined
|
|
148
152
|
onAgreeprivacyauthorization?: ((...args: any[]) => any) | undefined
|
|
149
153
|
},
|
|
150
154
|
{
|
|
155
|
+
size: import('./types').ButtonSize
|
|
156
|
+
classPrefix: string
|
|
151
157
|
customStyle: string
|
|
152
158
|
customClass: string
|
|
153
159
|
type: import('./types').ButtonType
|
|
@@ -156,8 +162,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
156
162
|
disabled: boolean
|
|
157
163
|
hairline: boolean
|
|
158
164
|
block: boolean
|
|
159
|
-
size: import('./types').ButtonSize
|
|
160
|
-
classPrefix: string
|
|
161
165
|
loading: boolean
|
|
162
166
|
hoverStopPropagation: boolean
|
|
163
167
|
showMessageCard: boolean
|
|
@@ -80,20 +80,9 @@ export declare const calendarProps: {
|
|
|
80
80
|
/**
|
|
81
81
|
* 设置左侧标题宽度
|
|
82
82
|
*/
|
|
83
|
-
labelWidth:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
*/
|
|
87
|
-
useLabelSlot: {
|
|
88
|
-
type: BooleanConstructor
|
|
89
|
-
default: boolean
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* 使用默认插槽时设置该选项
|
|
93
|
-
*/
|
|
94
|
-
useDefaultSlot: {
|
|
95
|
-
type: BooleanConstructor
|
|
96
|
-
default: boolean
|
|
83
|
+
labelWidth: {
|
|
84
|
+
type: PropType<string>
|
|
85
|
+
default: string
|
|
97
86
|
}
|
|
98
87
|
/**
|
|
99
88
|
* 禁用
|
|
@@ -254,10 +243,6 @@ export declare const calendarProps: {
|
|
|
254
243
|
type: BooleanConstructor
|
|
255
244
|
default: boolean
|
|
256
245
|
}
|
|
257
|
-
/**
|
|
258
|
-
* 打开前执行的函数
|
|
259
|
-
*/
|
|
260
|
-
initFun: PropType<() => void>
|
|
261
246
|
/**
|
|
262
247
|
* 是否使用内置单元格
|
|
263
248
|
* 默认为 true,使用内置单元格
|
|
@@ -266,6 +251,27 @@ export declare const calendarProps: {
|
|
|
266
251
|
type: BooleanConstructor
|
|
267
252
|
default: boolean
|
|
268
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
|
|
256
|
+
*/
|
|
257
|
+
rootPortal: {
|
|
258
|
+
type: BooleanConstructor
|
|
259
|
+
default: boolean
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* 必填标记位置,可选值:before、after
|
|
263
|
+
*/
|
|
264
|
+
markerSide: {
|
|
265
|
+
type: PropType<'before' | 'after'>
|
|
266
|
+
default: 'before' | 'after'
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* 显示清空按钮
|
|
270
|
+
*/
|
|
271
|
+
clearable: {
|
|
272
|
+
type: BooleanConstructor
|
|
273
|
+
default: boolean
|
|
274
|
+
}
|
|
269
275
|
customStyle: {
|
|
270
276
|
type: PropType<string>
|
|
271
277
|
default: string
|
|
@@ -39,14 +39,9 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
39
39
|
default: boolean
|
|
40
40
|
}
|
|
41
41
|
label: StringConstructor
|
|
42
|
-
labelWidth:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
default: boolean
|
|
46
|
-
}
|
|
47
|
-
useDefaultSlot: {
|
|
48
|
-
type: BooleanConstructor
|
|
49
|
-
default: boolean
|
|
42
|
+
labelWidth: {
|
|
43
|
+
type: import('vue').PropType<string>
|
|
44
|
+
default: string
|
|
50
45
|
}
|
|
51
46
|
disabled: {
|
|
52
47
|
type: BooleanConstructor
|
|
@@ -129,11 +124,22 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
129
124
|
type: BooleanConstructor
|
|
130
125
|
default: boolean
|
|
131
126
|
}
|
|
132
|
-
initFun: import('vue').PropType<() => void>
|
|
133
127
|
withCell: {
|
|
134
128
|
type: BooleanConstructor
|
|
135
129
|
default: boolean
|
|
136
130
|
}
|
|
131
|
+
rootPortal: {
|
|
132
|
+
type: BooleanConstructor
|
|
133
|
+
default: boolean
|
|
134
|
+
}
|
|
135
|
+
markerSide: {
|
|
136
|
+
type: import('vue').PropType<'before' | 'after'>
|
|
137
|
+
default: 'before' | 'after'
|
|
138
|
+
}
|
|
139
|
+
clearable: {
|
|
140
|
+
type: BooleanConstructor
|
|
141
|
+
default: boolean
|
|
142
|
+
}
|
|
137
143
|
customStyle: {
|
|
138
144
|
type: import('vue').PropType<string>
|
|
139
145
|
default: string
|
|
@@ -153,10 +159,11 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
153
159
|
import('vue').ComponentOptionsMixin,
|
|
154
160
|
import('vue').ComponentOptionsMixin,
|
|
155
161
|
{
|
|
162
|
+
'update:modelValue': (...args: any[]) => void
|
|
156
163
|
cancel: (...args: any[]) => void
|
|
157
164
|
open: (...args: any[]) => void
|
|
158
|
-
'update:modelValue': (...args: any[]) => void
|
|
159
165
|
change: (...args: any[]) => void
|
|
166
|
+
clear: (...args: any[]) => void
|
|
160
167
|
confirm: (...args: any[]) => void
|
|
161
168
|
},
|
|
162
169
|
string,
|
|
@@ -199,14 +206,9 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
199
206
|
default: boolean
|
|
200
207
|
}
|
|
201
208
|
label: StringConstructor
|
|
202
|
-
labelWidth:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
default: boolean
|
|
206
|
-
}
|
|
207
|
-
useDefaultSlot: {
|
|
208
|
-
type: BooleanConstructor
|
|
209
|
-
default: boolean
|
|
209
|
+
labelWidth: {
|
|
210
|
+
type: import('vue').PropType<string>
|
|
211
|
+
default: string
|
|
210
212
|
}
|
|
211
213
|
disabled: {
|
|
212
214
|
type: BooleanConstructor
|
|
@@ -289,11 +291,22 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
289
291
|
type: BooleanConstructor
|
|
290
292
|
default: boolean
|
|
291
293
|
}
|
|
292
|
-
initFun: import('vue').PropType<() => void>
|
|
293
294
|
withCell: {
|
|
294
295
|
type: BooleanConstructor
|
|
295
296
|
default: boolean
|
|
296
297
|
}
|
|
298
|
+
rootPortal: {
|
|
299
|
+
type: BooleanConstructor
|
|
300
|
+
default: boolean
|
|
301
|
+
}
|
|
302
|
+
markerSide: {
|
|
303
|
+
type: import('vue').PropType<'before' | 'after'>
|
|
304
|
+
default: 'before' | 'after'
|
|
305
|
+
}
|
|
306
|
+
clearable: {
|
|
307
|
+
type: BooleanConstructor
|
|
308
|
+
default: boolean
|
|
309
|
+
}
|
|
297
310
|
customStyle: {
|
|
298
311
|
type: import('vue').PropType<string>
|
|
299
312
|
default: string
|
|
@@ -304,21 +317,24 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
304
317
|
}
|
|
305
318
|
}>
|
|
306
319
|
> & {
|
|
320
|
+
onChange?: ((...args: any[]) => any) | undefined
|
|
321
|
+
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
307
322
|
onCancel?: ((...args: any[]) => any) | undefined
|
|
308
323
|
onOpen?: ((...args: any[]) => any) | undefined
|
|
309
|
-
|
|
310
|
-
onChange?: ((...args: any[]) => any) | undefined
|
|
324
|
+
onClear?: ((...args: any[]) => any) | undefined
|
|
311
325
|
onConfirm?: ((...args: any[]) => any) | undefined
|
|
312
326
|
},
|
|
313
327
|
{
|
|
314
|
-
closeOnClickModal: boolean
|
|
315
|
-
zIndex: number
|
|
316
|
-
safeAreaInsetBottom: boolean
|
|
317
328
|
customStyle: string
|
|
318
329
|
customClass: string
|
|
319
|
-
readonly: boolean
|
|
320
330
|
type: CalendarType
|
|
321
331
|
required: boolean
|
|
332
|
+
zIndex: number
|
|
333
|
+
rootPortal: boolean
|
|
334
|
+
center: boolean
|
|
335
|
+
closeOnClickModal: boolean
|
|
336
|
+
safeAreaInsetBottom: boolean
|
|
337
|
+
readonly: boolean
|
|
322
338
|
error: boolean
|
|
323
339
|
disabled: boolean
|
|
324
340
|
minDate: number
|
|
@@ -328,24 +344,24 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
328
344
|
hideSecond: boolean
|
|
329
345
|
immediateChange: boolean
|
|
330
346
|
rules: FormItemRule[]
|
|
331
|
-
|
|
332
|
-
|
|
347
|
+
customLabelClass: string
|
|
348
|
+
customValueClass: string
|
|
349
|
+
ellipsis: boolean
|
|
350
|
+
markerSide: 'before' | 'after'
|
|
351
|
+
labelWidth: string
|
|
333
352
|
alignRight: boolean
|
|
334
|
-
center: boolean
|
|
335
353
|
showConfirm: boolean
|
|
336
|
-
ellipsis: boolean
|
|
337
354
|
showTypeSwitch: boolean
|
|
338
355
|
shortcuts: Record<string, any>[]
|
|
339
356
|
customViewClass: string
|
|
340
|
-
customLabelClass: string
|
|
341
|
-
customValueClass: string
|
|
342
357
|
withCell: boolean
|
|
358
|
+
clearable: boolean
|
|
343
359
|
},
|
|
344
360
|
{}
|
|
345
361
|
>,
|
|
346
362
|
{
|
|
347
|
-
default?(_: {}): any
|
|
348
363
|
label?(_: {}): any
|
|
364
|
+
default?(_: {}): any
|
|
349
365
|
}
|
|
350
366
|
>
|
|
351
367
|
export default _default
|