@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
|
@@ -2,7 +2,7 @@ import { type DatetimePickerViewColumnType, type DatetimePickerViewOption } from
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
3
|
{
|
|
4
4
|
modelValue: {
|
|
5
|
-
type: (NumberConstructor | StringConstructor
|
|
5
|
+
type: (NumberConstructor | StringConstructor)[]
|
|
6
6
|
required: true
|
|
7
7
|
}
|
|
8
8
|
loading: {
|
|
@@ -17,6 +17,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
17
17
|
type: NumberConstructor
|
|
18
18
|
default: number
|
|
19
19
|
}
|
|
20
|
+
itemHeight: {
|
|
21
|
+
type: NumberConstructor
|
|
22
|
+
default: number
|
|
23
|
+
}
|
|
20
24
|
valueKey: {
|
|
21
25
|
type: import('vue').PropType<string>
|
|
22
26
|
default: string
|
|
@@ -56,11 +60,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
56
60
|
type: NumberConstructor
|
|
57
61
|
default: number
|
|
58
62
|
}
|
|
59
|
-
|
|
63
|
+
useSecond: {
|
|
60
64
|
type: BooleanConstructor
|
|
61
65
|
default: boolean
|
|
62
66
|
}
|
|
63
|
-
|
|
67
|
+
minSecond: {
|
|
68
|
+
type: NumberConstructor
|
|
69
|
+
default: number
|
|
70
|
+
}
|
|
71
|
+
maxSecond: {
|
|
72
|
+
type: NumberConstructor
|
|
73
|
+
default: number
|
|
74
|
+
}
|
|
75
|
+
immediateChange: {
|
|
64
76
|
type: BooleanConstructor
|
|
65
77
|
default: boolean
|
|
66
78
|
}
|
|
@@ -78,7 +90,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
78
90
|
setColumns: (columnList: DatetimePickerViewOption[][]) => void
|
|
79
91
|
getSelects: () => Record<string, any> | Record<string, any>[] | undefined
|
|
80
92
|
correctValue: (value: string | number) => string | number
|
|
81
|
-
getPickerValue: (value: string | number, type: import('./types').DateTimeType) => number[]
|
|
82
93
|
getOriginColumns: () => {
|
|
83
94
|
type: DatetimePickerViewColumnType
|
|
84
95
|
values: number[]
|
|
@@ -100,7 +111,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
100
111
|
Readonly<
|
|
101
112
|
import('vue').ExtractPropTypes<{
|
|
102
113
|
modelValue: {
|
|
103
|
-
type: (NumberConstructor | StringConstructor
|
|
114
|
+
type: (NumberConstructor | StringConstructor)[]
|
|
104
115
|
required: true
|
|
105
116
|
}
|
|
106
117
|
loading: {
|
|
@@ -115,6 +126,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
115
126
|
type: NumberConstructor
|
|
116
127
|
default: number
|
|
117
128
|
}
|
|
129
|
+
itemHeight: {
|
|
130
|
+
type: NumberConstructor
|
|
131
|
+
default: number
|
|
132
|
+
}
|
|
118
133
|
valueKey: {
|
|
119
134
|
type: import('vue').PropType<string>
|
|
120
135
|
default: string
|
|
@@ -154,11 +169,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
154
169
|
type: NumberConstructor
|
|
155
170
|
default: number
|
|
156
171
|
}
|
|
157
|
-
|
|
172
|
+
useSecond: {
|
|
158
173
|
type: BooleanConstructor
|
|
159
174
|
default: boolean
|
|
160
175
|
}
|
|
161
|
-
|
|
176
|
+
minSecond: {
|
|
177
|
+
type: NumberConstructor
|
|
178
|
+
default: number
|
|
179
|
+
}
|
|
180
|
+
maxSecond: {
|
|
181
|
+
type: NumberConstructor
|
|
182
|
+
default: number
|
|
183
|
+
}
|
|
184
|
+
immediateChange: {
|
|
162
185
|
type: BooleanConstructor
|
|
163
186
|
default: boolean
|
|
164
187
|
}
|
|
@@ -172,8 +195,8 @@ declare const _default: import('vue').DefineComponent<
|
|
|
172
195
|
}
|
|
173
196
|
}>
|
|
174
197
|
> & {
|
|
175
|
-
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
176
198
|
onChange?: ((...args: any[]) => any) | undefined
|
|
199
|
+
'onUpdate:modelValue'?: ((...args: any[]) => any) | undefined
|
|
177
200
|
onPickstart?: ((...args: any[]) => any) | undefined
|
|
178
201
|
onPickend?: ((...args: any[]) => any) | undefined
|
|
179
202
|
},
|
|
@@ -187,13 +210,16 @@ declare const _default: import('vue').DefineComponent<
|
|
|
187
210
|
maxDate: number
|
|
188
211
|
immediateChange: boolean
|
|
189
212
|
columnsHeight: number
|
|
213
|
+
itemHeight: number
|
|
190
214
|
valueKey: string
|
|
191
215
|
labelKey: string
|
|
192
216
|
minHour: number
|
|
193
217
|
maxHour: number
|
|
194
218
|
minMinute: number
|
|
195
219
|
maxMinute: number
|
|
196
|
-
|
|
220
|
+
useSecond: boolean
|
|
221
|
+
minSecond: number
|
|
222
|
+
maxSecond: number
|
|
197
223
|
},
|
|
198
224
|
{}
|
|
199
225
|
>
|
|
@@ -1,11 +1,39 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue'
|
|
2
|
+
export type DividerPosition = 'center' | 'left' | 'right'
|
|
3
|
+
export type DividerDirection = 'horizontal' | 'vertical'
|
|
2
4
|
export declare const dividerProps: {
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* 自定义颜色
|
|
5
7
|
*/
|
|
6
|
-
color:
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
color: StringConstructor
|
|
9
|
+
/**
|
|
10
|
+
* 内容位置,可选值为 `left` `right` `center`
|
|
11
|
+
* 默认值:`center`
|
|
12
|
+
*/
|
|
13
|
+
contentPosition: {
|
|
14
|
+
type: import('vue').PropType<DividerPosition>
|
|
15
|
+
default: DividerPosition
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 是否显示为虚线
|
|
19
|
+
* 默认值:`false`
|
|
20
|
+
*/
|
|
21
|
+
dashed: BooleanConstructor
|
|
22
|
+
/**
|
|
23
|
+
* 是否为垂直分割线
|
|
24
|
+
* 默认值:`false`
|
|
25
|
+
*/
|
|
26
|
+
vertical: {
|
|
27
|
+
type: BooleanConstructor
|
|
28
|
+
default: boolean
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 是否显示为 0.5px 的线
|
|
32
|
+
* 默认值:`true`
|
|
33
|
+
*/
|
|
34
|
+
hairline: {
|
|
35
|
+
type: BooleanConstructor
|
|
36
|
+
default: boolean
|
|
9
37
|
}
|
|
10
38
|
customStyle: {
|
|
11
39
|
type: import('vue').PropType<string>
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<
|
|
2
2
|
import('vue').DefineComponent<
|
|
3
3
|
{
|
|
4
|
-
color:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
color: StringConstructor
|
|
5
|
+
contentPosition: {
|
|
6
|
+
type: import('vue').PropType<import('./types').DividerPosition>
|
|
7
|
+
default: import('./types').DividerPosition
|
|
8
|
+
}
|
|
9
|
+
dashed: BooleanConstructor
|
|
10
|
+
vertical: {
|
|
11
|
+
type: BooleanConstructor
|
|
12
|
+
default: boolean
|
|
13
|
+
}
|
|
14
|
+
hairline: {
|
|
15
|
+
type: BooleanConstructor
|
|
16
|
+
default: boolean
|
|
7
17
|
}
|
|
8
18
|
customStyle: {
|
|
9
19
|
type: import('vue').PropType<string>
|
|
@@ -25,9 +35,19 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
25
35
|
import('vue').PublicProps,
|
|
26
36
|
Readonly<
|
|
27
37
|
import('vue').ExtractPropTypes<{
|
|
28
|
-
color:
|
|
29
|
-
|
|
30
|
-
|
|
38
|
+
color: StringConstructor
|
|
39
|
+
contentPosition: {
|
|
40
|
+
type: import('vue').PropType<import('./types').DividerPosition>
|
|
41
|
+
default: import('./types').DividerPosition
|
|
42
|
+
}
|
|
43
|
+
dashed: BooleanConstructor
|
|
44
|
+
vertical: {
|
|
45
|
+
type: BooleanConstructor
|
|
46
|
+
default: boolean
|
|
47
|
+
}
|
|
48
|
+
hairline: {
|
|
49
|
+
type: BooleanConstructor
|
|
50
|
+
default: boolean
|
|
31
51
|
}
|
|
32
52
|
customStyle: {
|
|
33
53
|
type: import('vue').PropType<string>
|
|
@@ -42,7 +62,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
42
62
|
{
|
|
43
63
|
customStyle: string
|
|
44
64
|
customClass: string
|
|
45
|
-
|
|
65
|
+
hairline: boolean
|
|
66
|
+
vertical: boolean
|
|
67
|
+
contentPosition: import('./types').DividerPosition
|
|
68
|
+
dashed: boolean
|
|
46
69
|
},
|
|
47
70
|
{}
|
|
48
71
|
>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type InjectionKey, type Ref } from 'vue'
|
|
2
|
-
export type
|
|
2
|
+
export type DropDirection = 'up' | 'down'
|
|
3
3
|
export type DropMenuProvide = {
|
|
4
4
|
props: Partial<DropMenuProps>
|
|
5
5
|
fold: (child?: any) => void
|
|
@@ -18,8 +18,8 @@ export declare const dropMenuProps: {
|
|
|
18
18
|
* 菜单展开方向,可选值为up 或 down
|
|
19
19
|
*/
|
|
20
20
|
direction: {
|
|
21
|
-
type: import('vue').PropType<
|
|
22
|
-
default:
|
|
21
|
+
type: import('vue').PropType<DropDirection>
|
|
22
|
+
default: DropDirection
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* 是否展示蒙层
|
|
@@ -6,8 +6,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
6
6
|
default: number
|
|
7
7
|
}
|
|
8
8
|
direction: {
|
|
9
|
-
type: import('vue').PropType<import('./types').
|
|
10
|
-
default: import('./types').
|
|
9
|
+
type: import('vue').PropType<import('./types').DropDirection>
|
|
10
|
+
default: import('./types').DropDirection
|
|
11
11
|
}
|
|
12
12
|
modal: {
|
|
13
13
|
type: BooleanConstructor
|
|
@@ -46,8 +46,8 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
46
46
|
default: number
|
|
47
47
|
}
|
|
48
48
|
direction: {
|
|
49
|
-
type: import('vue').PropType<import('./types').
|
|
50
|
-
default: import('./types').
|
|
49
|
+
type: import('vue').PropType<import('./types').DropDirection>
|
|
50
|
+
default: import('./types').DropDirection
|
|
51
51
|
}
|
|
52
52
|
modal: {
|
|
53
53
|
type: BooleanConstructor
|
|
@@ -72,13 +72,13 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
72
72
|
}>
|
|
73
73
|
>,
|
|
74
74
|
{
|
|
75
|
-
closeOnClickModal: boolean
|
|
76
|
-
duration: number
|
|
77
|
-
zIndex: number
|
|
78
75
|
customStyle: string
|
|
79
76
|
customClass: string
|
|
80
|
-
|
|
77
|
+
duration: number
|
|
78
|
+
zIndex: number
|
|
79
|
+
closeOnClickModal: boolean
|
|
81
80
|
modal: boolean
|
|
81
|
+
direction: import('./types').DropDirection
|
|
82
82
|
},
|
|
83
83
|
{}
|
|
84
84
|
>,
|
|
@@ -24,7 +24,7 @@ export declare const dorpMenuItemProps: {
|
|
|
24
24
|
*/
|
|
25
25
|
modelValue: (NumberConstructor | StringConstructor)[]
|
|
26
26
|
/**
|
|
27
|
-
* 列表数据,对应数据结构 [{
|
|
27
|
+
* 列表数据,对应数据结构 [{label: '标题', value: '0', tip: '提示文字'}]
|
|
28
28
|
*/
|
|
29
29
|
options: {
|
|
30
30
|
type: PropType<Record<string, any>[]>
|
|
@@ -58,10 +58,7 @@ export declare const dorpMenuItemProps: {
|
|
|
58
58
|
/**
|
|
59
59
|
* 菜单图标大小
|
|
60
60
|
*/
|
|
61
|
-
iconSize:
|
|
62
|
-
type: PropType<string>
|
|
63
|
-
default: string
|
|
64
|
-
}
|
|
61
|
+
iconSize: (NumberConstructor | StringConstructor)[]
|
|
65
62
|
/**
|
|
66
63
|
* 自定义点击事件
|
|
67
64
|
*/
|
|
@@ -87,16 +84,33 @@ export declare const dorpMenuItemProps: {
|
|
|
87
84
|
type: PropType<string>
|
|
88
85
|
default: string
|
|
89
86
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
/**
|
|
88
|
+
* 自定义下拉菜单popup样式类
|
|
89
|
+
*/
|
|
90
|
+
customPopupClass: {
|
|
91
|
+
type: PropType<string>
|
|
92
|
+
default: string
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
95
|
+
* 自定义下拉菜单popup样式
|
|
96
|
+
*/
|
|
97
|
+
customPopupStyle: {
|
|
98
|
+
type: PropType<string>
|
|
99
|
+
default: string
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 弹出层高度 这里设置了 就取这里的
|
|
96
103
|
*/
|
|
97
|
-
|
|
98
|
-
type:
|
|
99
|
-
default:
|
|
104
|
+
popupHeight: {
|
|
105
|
+
type: PropType<string>
|
|
106
|
+
default: string
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)
|
|
110
|
+
*/
|
|
111
|
+
rootPortal: {
|
|
112
|
+
type: BooleanConstructor
|
|
113
|
+
default: boolean
|
|
100
114
|
}
|
|
101
115
|
customStyle: {
|
|
102
116
|
type: PropType<string>
|
|
@@ -113,7 +127,5 @@ export type DropMenuItemExpose = {
|
|
|
113
127
|
open: () => void
|
|
114
128
|
close: () => void
|
|
115
129
|
toggle: () => void
|
|
116
|
-
getSelected: () => boolean
|
|
117
|
-
getDot: () => number
|
|
118
130
|
}
|
|
119
|
-
export type DropMenuItemInstance = ComponentPublicInstance<DropMenuItemProps>
|
|
131
|
+
export type DropMenuItemInstance = ComponentPublicInstance<DropMenuItemProps, DropMenuItemExpose>
|
|
@@ -27,10 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
27
27
|
type: import('vue').PropType<string>
|
|
28
28
|
default: string
|
|
29
29
|
}
|
|
30
|
-
iconSize:
|
|
31
|
-
type: import('vue').PropType<string>
|
|
32
|
-
default: string
|
|
33
|
-
}
|
|
30
|
+
iconSize: (NumberConstructor | StringConstructor)[]
|
|
34
31
|
beforeToggle: import('vue').PropType<import('./types').DropMenuItemBeforeToggle>
|
|
35
32
|
valueKey: {
|
|
36
33
|
type: import('vue').PropType<string>
|
|
@@ -44,14 +41,22 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
44
41
|
type: import('vue').PropType<string>
|
|
45
42
|
default: string
|
|
46
43
|
}
|
|
47
|
-
|
|
44
|
+
customPopupClass: {
|
|
45
|
+
type: import('vue').PropType<string>
|
|
46
|
+
default: string
|
|
47
|
+
}
|
|
48
|
+
customPopupStyle: {
|
|
49
|
+
type: import('vue').PropType<string>
|
|
50
|
+
default: string
|
|
51
|
+
}
|
|
52
|
+
popupHeight: {
|
|
53
|
+
type: import('vue').PropType<string>
|
|
54
|
+
default: string
|
|
55
|
+
}
|
|
56
|
+
rootPortal: {
|
|
48
57
|
type: BooleanConstructor
|
|
49
58
|
default: boolean
|
|
50
59
|
}
|
|
51
|
-
dot: {
|
|
52
|
-
type: NumberConstructor
|
|
53
|
-
default: number
|
|
54
|
-
}
|
|
55
60
|
customStyle: {
|
|
56
61
|
type: import('vue').PropType<string>
|
|
57
62
|
default: string
|
|
@@ -66,8 +71,6 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
66
71
|
open: () => void
|
|
67
72
|
close: () => void
|
|
68
73
|
toggle: () => void
|
|
69
|
-
getSelected: () => boolean
|
|
70
|
-
getDot: () => number
|
|
71
74
|
},
|
|
72
75
|
unknown,
|
|
73
76
|
{},
|
|
@@ -75,12 +78,12 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
75
78
|
import('vue').ComponentOptionsMixin,
|
|
76
79
|
import('vue').ComponentOptionsMixin,
|
|
77
80
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
open: (
|
|
81
|
-
opened: (
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
'update:modelValue': (value: string | number) => void
|
|
82
|
+
change: (event: { value: string | number; selectedItem: Record<string, any> }) => void
|
|
83
|
+
open: () => void
|
|
84
|
+
opened: () => void
|
|
85
|
+
close: () => void
|
|
86
|
+
closed: () => void
|
|
84
87
|
},
|
|
85
88
|
string,
|
|
86
89
|
import('vue').PublicProps,
|
|
@@ -112,10 +115,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
112
115
|
type: import('vue').PropType<string>
|
|
113
116
|
default: string
|
|
114
117
|
}
|
|
115
|
-
iconSize:
|
|
116
|
-
type: import('vue').PropType<string>
|
|
117
|
-
default: string
|
|
118
|
-
}
|
|
118
|
+
iconSize: (NumberConstructor | StringConstructor)[]
|
|
119
119
|
beforeToggle: import('vue').PropType<import('./types').DropMenuItemBeforeToggle>
|
|
120
120
|
valueKey: {
|
|
121
121
|
type: import('vue').PropType<string>
|
|
@@ -129,14 +129,22 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
129
129
|
type: import('vue').PropType<string>
|
|
130
130
|
default: string
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
customPopupClass: {
|
|
133
|
+
type: import('vue').PropType<string>
|
|
134
|
+
default: string
|
|
135
|
+
}
|
|
136
|
+
customPopupStyle: {
|
|
137
|
+
type: import('vue').PropType<string>
|
|
138
|
+
default: string
|
|
139
|
+
}
|
|
140
|
+
popupHeight: {
|
|
141
|
+
type: import('vue').PropType<string>
|
|
142
|
+
default: string
|
|
143
|
+
}
|
|
144
|
+
rootPortal: {
|
|
133
145
|
type: BooleanConstructor
|
|
134
146
|
default: boolean
|
|
135
147
|
}
|
|
136
|
-
dot: {
|
|
137
|
-
type: NumberConstructor
|
|
138
|
-
default: number
|
|
139
|
-
}
|
|
140
148
|
customStyle: {
|
|
141
149
|
type: import('vue').PropType<string>
|
|
142
150
|
default: string
|
|
@@ -147,28 +155,31 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
147
155
|
}
|
|
148
156
|
}>
|
|
149
157
|
> & {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
onChange?:
|
|
159
|
+
| ((event: { value: string | number; selectedItem: Record<string, any> }) => any)
|
|
160
|
+
| undefined
|
|
161
|
+
'onUpdate:modelValue'?: ((value: string | number) => any) | undefined
|
|
162
|
+
onClose?: (() => any) | undefined
|
|
163
|
+
onClosed?: (() => any) | undefined
|
|
164
|
+
onOpen?: (() => any) | undefined
|
|
165
|
+
onOpened?: (() => any) | undefined
|
|
156
166
|
},
|
|
157
167
|
{
|
|
168
|
+
options: Record<string, any>[]
|
|
158
169
|
customStyle: string
|
|
159
170
|
customClass: string
|
|
160
|
-
|
|
171
|
+
rootPortal: boolean
|
|
161
172
|
icon: string
|
|
162
173
|
disabled: boolean
|
|
163
|
-
selected: boolean
|
|
164
174
|
iconName: string
|
|
165
|
-
iconSize: string
|
|
166
175
|
valueKey: string
|
|
167
176
|
labelKey: string
|
|
168
177
|
tipKey: string
|
|
169
178
|
customTitle: string
|
|
170
179
|
customIcon: string
|
|
171
|
-
|
|
180
|
+
customPopupClass: string
|
|
181
|
+
customPopupStyle: string
|
|
182
|
+
popupHeight: string
|
|
172
183
|
},
|
|
173
184
|
{}
|
|
174
185
|
>,
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import type { ComponentPublicInstance, ExtractPropTypes
|
|
1
|
+
import type { ComponentPublicInstance, ExtractPropTypes } from 'vue'
|
|
2
|
+
import type { PropType } from 'vue'
|
|
2
3
|
export type FabType = 'primary' | 'success' | 'info' | 'warning' | 'error' | 'default'
|
|
3
|
-
export type FabPosition =
|
|
4
|
+
export type FabPosition =
|
|
5
|
+
| 'left-top'
|
|
6
|
+
| 'right-top'
|
|
7
|
+
| 'left-bottom'
|
|
8
|
+
| 'right-bottom'
|
|
9
|
+
| 'left-center'
|
|
10
|
+
| 'right-center'
|
|
11
|
+
| 'top-center'
|
|
12
|
+
| 'bottom-center'
|
|
4
13
|
export type FabDirection = 'top' | 'right' | 'bottom' | 'left'
|
|
5
14
|
export type FabGap = Partial<Record<FabDirection, number>>
|
|
6
15
|
export declare const fabProps: {
|
|
@@ -19,7 +28,7 @@ export declare const fabProps: {
|
|
|
19
28
|
default: FabType
|
|
20
29
|
}
|
|
21
30
|
/**
|
|
22
|
-
* 悬浮按钮位置,可选值为 left-top right-top left-bottom right-bottom
|
|
31
|
+
* 悬浮按钮位置,可选值为 left-top right-top left-bottom right-bottom left-center right-center top-center bottom-center
|
|
23
32
|
*/
|
|
24
33
|
position: {
|
|
25
34
|
type: PropType<FabPosition>
|
|
@@ -71,6 +80,13 @@ export declare const fabProps: {
|
|
|
71
80
|
type: PropType<FabGap>
|
|
72
81
|
default: () => {}
|
|
73
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* 用于控制点击时是否展开菜单
|
|
85
|
+
*/
|
|
86
|
+
expandable: {
|
|
87
|
+
type: BooleanConstructor
|
|
88
|
+
default: boolean
|
|
89
|
+
}
|
|
74
90
|
customStyle: {
|
|
75
91
|
type: PropType<string>
|
|
76
92
|
default: string
|
|
@@ -41,6 +41,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
41
41
|
type: import('vue').PropType<import('./types').FabGap>
|
|
42
42
|
default: () => {}
|
|
43
43
|
}
|
|
44
|
+
expandable: {
|
|
45
|
+
type: BooleanConstructor
|
|
46
|
+
default: boolean
|
|
47
|
+
}
|
|
44
48
|
customStyle: {
|
|
45
49
|
type: import('vue').PropType<string>
|
|
46
50
|
default: string
|
|
@@ -60,6 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
60
64
|
import('vue').ComponentOptionsMixin,
|
|
61
65
|
import('vue').ComponentOptionsMixin,
|
|
62
66
|
{
|
|
67
|
+
click: (...args: any[]) => void
|
|
63
68
|
'update:active': (...args: any[]) => void
|
|
64
69
|
},
|
|
65
70
|
string,
|
|
@@ -106,6 +111,10 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
106
111
|
type: import('vue').PropType<import('./types').FabGap>
|
|
107
112
|
default: () => {}
|
|
108
113
|
}
|
|
114
|
+
expandable: {
|
|
115
|
+
type: BooleanConstructor
|
|
116
|
+
default: boolean
|
|
117
|
+
}
|
|
109
118
|
customStyle: {
|
|
110
119
|
type: import('vue').PropType<string>
|
|
111
120
|
default: string
|
|
@@ -116,13 +125,14 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
116
125
|
}
|
|
117
126
|
}>
|
|
118
127
|
> & {
|
|
128
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
119
129
|
'onUpdate:active'?: ((...args: any[]) => any) | undefined
|
|
120
130
|
},
|
|
121
131
|
{
|
|
122
|
-
zIndex: number
|
|
123
132
|
customStyle: string
|
|
124
133
|
customClass: string
|
|
125
134
|
type: import('./types').FabType
|
|
135
|
+
zIndex: number
|
|
126
136
|
position: import('./types').FabPosition
|
|
127
137
|
disabled: boolean
|
|
128
138
|
direction: import('./types').FabDirection
|
|
@@ -131,10 +141,12 @@ declare const _default: __VLS_WithTemplateSlots<
|
|
|
131
141
|
activeIcon: string
|
|
132
142
|
draggable: boolean
|
|
133
143
|
gap: Partial<Record<import('./types').FabDirection, number>>
|
|
144
|
+
expandable: boolean
|
|
134
145
|
},
|
|
135
146
|
{}
|
|
136
147
|
>,
|
|
137
148
|
{
|
|
149
|
+
trigger?(_: {}): any
|
|
138
150
|
default?(_: {}): any
|
|
139
151
|
}
|
|
140
152
|
>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue'
|
|
2
|
+
export declare const floatingPanelProps: {
|
|
3
|
+
/**
|
|
4
|
+
* 面板的显示高度
|
|
5
|
+
*/
|
|
6
|
+
height: {
|
|
7
|
+
type: NumberConstructor
|
|
8
|
+
default: number
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 设置自定义锚点,默认值 [100, windowHeight * 0.6]
|
|
12
|
+
*/
|
|
13
|
+
anchors: {
|
|
14
|
+
type: import('vue').PropType<number[]>
|
|
15
|
+
default: () => never[]
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 弹出面板是否设置底部安全距离(iphone X 类型的机型)
|
|
19
|
+
*/
|
|
20
|
+
safeAreaInsetBottom: {
|
|
21
|
+
type: BooleanConstructor
|
|
22
|
+
default: boolean
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 是否显示滚动条,默认值为 true
|
|
26
|
+
*/
|
|
27
|
+
showScrollbar: {
|
|
28
|
+
type: BooleanConstructor
|
|
29
|
+
default: true
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 动画时长,单位毫秒,默认值为 300ms
|
|
33
|
+
*/
|
|
34
|
+
duration: {
|
|
35
|
+
type: (NumberConstructor | StringConstructor)[]
|
|
36
|
+
default: number
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 是否允许内容区容器拖拽,默认值为 true
|
|
40
|
+
*/
|
|
41
|
+
contentDraggable: {
|
|
42
|
+
type: BooleanConstructor
|
|
43
|
+
default: true
|
|
44
|
+
}
|
|
45
|
+
customStyle: {
|
|
46
|
+
type: import('vue').PropType<string>
|
|
47
|
+
default: string
|
|
48
|
+
}
|
|
49
|
+
customClass: {
|
|
50
|
+
type: import('vue').PropType<string>
|
|
51
|
+
default: string
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export type FloatingPanelProps = ExtractPropTypes<typeof floatingPanelProps>
|