zartui 3.0.2 → 3.0.3
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/es/action-sheet/ActionSheet.d.ts +194 -0
- package/es/action-sheet/ActionSheet.mjs +142 -0
- package/es/action-sheet/index.css +1 -0
- package/es/action-sheet/index.d.ts +135 -0
- package/es/action-sheet/index.mjs +10 -0
- package/es/action-sheet/style/index.d.ts +1 -0
- package/es/action-sheet/style/index.mjs +7 -0
- package/es/avatar/Avatar.d.ts +55 -0
- package/es/avatar/Avatar.mjs +65 -0
- package/es/avatar/index.css +1 -0
- package/es/avatar/index.d.ts +43 -0
- package/es/avatar/index.mjs +8 -0
- package/es/avatar/style/index.d.ts +1 -0
- package/es/avatar/style/index.mjs +5 -0
- package/es/avatar/types.d.ts +2 -0
- package/es/avatar/types.mjs +0 -0
- package/es/badge/Badge.d.ts +11 -5
- package/es/badge/Badge.mjs +13 -6
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +7 -3
- package/es/button/Button.d.ts +1 -1
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/calendar/Calendar.d.ts +302 -0
- package/es/calendar/Calendar.mjs +419 -0
- package/es/calendar/CalendarDay.d.ts +32 -0
- package/es/calendar/CalendarDay.mjs +108 -0
- package/es/calendar/CalendarHeader.d.ts +26 -0
- package/es/calendar/CalendarHeader.mjs +58 -0
- package/es/calendar/CalendarMonth.d.ts +86 -0
- package/es/calendar/CalendarMonth.mjs +201 -0
- package/es/calendar/index.css +1 -0
- package/es/calendar/index.d.ts +217 -0
- package/es/calendar/index.mjs +10 -0
- package/es/calendar/style/index.d.ts +1 -0
- package/es/calendar/style/index.mjs +9 -0
- package/es/calendar/types.d.ts +28 -0
- package/es/calendar/types.mjs +0 -0
- package/es/calendar/utils.d.ts +12 -0
- package/es/calendar/utils.mjs +56 -0
- package/es/cascader/Cascader.d.ts +171 -0
- package/es/cascader/Cascader.mjs +284 -0
- package/es/cascader/index.css +1 -0
- package/es/cascader/index.d.ts +126 -0
- package/es/cascader/index.mjs +10 -0
- package/es/cascader/style/index.d.ts +1 -0
- package/es/cascader/style/index.mjs +14 -0
- package/es/cascader/types.d.ts +19 -0
- package/es/cascader/types.mjs +0 -0
- package/es/cell/Cell.d.ts +49 -26
- package/es/cell/Cell.mjs +71 -31
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +29 -15
- package/es/cell/types.d.ts +1 -0
- package/es/cell/types.mjs +0 -0
- package/es/cell-group/CellGroup.d.ts +29 -0
- package/es/cell-group/CellGroup.mjs +43 -0
- package/es/cell-group/index.css +1 -0
- package/es/cell-group/index.d.ts +25 -0
- package/es/cell-group/index.mjs +8 -0
- package/es/cell-group/style/index.d.ts +1 -0
- package/es/cell-group/style/index.mjs +2 -0
- package/es/checkbox/Checkbox.d.ts +64 -0
- package/es/checkbox/Checkbox.mjs +81 -0
- package/es/checkbox/Checker.d.ts +85 -0
- package/es/checkbox/Checker.mjs +113 -0
- package/es/checkbox/index.css +1 -0
- package/es/checkbox/index.d.ts +51 -0
- package/es/checkbox/index.mjs +8 -0
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/checkbox/style/index.mjs +5 -0
- package/es/checkbox/types.d.ts +13 -0
- package/es/checkbox/types.mjs +0 -0
- package/es/checkbox-group/CheckboxGroup.d.ts +54 -0
- package/es/checkbox-group/CheckboxGroup.mjs +71 -0
- package/es/checkbox-group/index.css +1 -0
- package/es/checkbox-group/index.d.ts +42 -0
- package/es/checkbox-group/index.mjs +8 -0
- package/es/checkbox-group/style/index.d.ts +1 -0
- package/es/checkbox-group/style/index.mjs +2 -0
- package/es/checkbox-group/types.d.ts +16 -0
- package/es/checkbox-group/types.mjs +0 -0
- package/es/col/Col.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +55 -0
- package/es/collapse/Collapse.mjs +109 -0
- package/es/collapse/index.d.ts +36 -0
- package/es/collapse/index.mjs +10 -0
- package/es/collapse/style/index.d.ts +1 -0
- package/es/collapse/style/index.mjs +1 -0
- package/es/collapse-item/CollapseItem.d.ts +34 -0
- package/es/collapse-item/CollapseItem.mjs +135 -0
- package/es/collapse-item/index.css +1 -0
- package/es/collapse-item/index.d.ts +30 -0
- package/es/collapse-item/index.mjs +10 -0
- package/es/collapse-item/style/index.d.ts +1 -0
- package/es/collapse-item/style/index.mjs +4 -0
- package/es/collapse-item/types.d.ts +6 -0
- package/es/collapse-item/types.mjs +0 -0
- package/es/composables/use-route.d.ts +1 -4
- package/es/composables/use-route.mjs +1 -3
- package/es/config-provider/ConfigProvider.mjs +2 -2
- package/es/date-time-picker/DateTimePicker.d.ts +242 -0
- package/es/date-time-picker/DateTimePicker.mjs +248 -0
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +334 -0
- package/es/date-time-picker/DateTimePickerWrapper.mjs +254 -0
- package/es/date-time-picker/index.css +1 -0
- package/es/date-time-picker/index.d.ts +247 -0
- package/es/date-time-picker/index.mjs +10 -0
- package/es/date-time-picker/style/index.d.ts +1 -0
- package/es/date-time-picker/style/index.mjs +12 -0
- package/es/date-time-picker/types.d.ts +5 -0
- package/es/date-time-picker/types.mjs +0 -0
- package/es/date-time-picker/utils.d.ts +53 -0
- package/es/date-time-picker/utils.mjs +42 -0
- package/es/dialog/Dialog.d.ts +187 -0
- package/es/dialog/Dialog.mjs +197 -0
- package/es/dialog/function-call.d.ts +6 -0
- package/es/dialog/function-call.mjs +85 -0
- package/es/dialog/index.css +1 -0
- package/es/dialog/index.d.ts +138 -0
- package/es/dialog/index.mjs +22 -0
- package/es/dialog/style/index.d.ts +1 -0
- package/es/dialog/style/index.mjs +8 -0
- package/es/dialog/types.d.ts +32 -0
- package/es/dialog/types.mjs +0 -0
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.css +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +78 -0
- package/es/dropdown-item/DropdownItem.mjs +302 -0
- package/es/dropdown-item/index.css +1 -0
- package/es/dropdown-item/index.d.ts +64 -0
- package/es/dropdown-item/index.mjs +10 -0
- package/es/dropdown-item/style/index.d.ts +1 -0
- package/es/dropdown-item/style/index.mjs +12 -0
- package/es/dropdown-item/types.d.ts +23 -0
- package/es/dropdown-item/types.mjs +0 -0
- package/es/dropdown-menu/DropdownMenu.d.ts +82 -0
- package/es/dropdown-menu/DropdownMenu.mjs +142 -0
- package/es/dropdown-menu/index.css +1 -0
- package/es/dropdown-menu/index.d.ts +63 -0
- package/es/dropdown-menu/index.mjs +10 -0
- package/es/dropdown-menu/style/index.d.ts +1 -0
- package/es/dropdown-menu/style/index.mjs +4 -0
- package/es/dropdown-menu/types.d.ts +8 -0
- package/es/dropdown-menu/types.mjs +0 -0
- package/es/empty/Empty.d.ts +2 -1
- package/es/empty/Empty.mjs +10 -5
- package/es/empty/Images.d.ts +7 -2
- package/es/empty/Images.mjs +855 -2004
- package/es/empty/index.css +1 -1
- package/es/field/Field.d.ts +364 -0
- package/es/field/Field.mjs +510 -0
- package/es/field/index.css +1 -0
- package/es/field/index.d.ts +230 -0
- package/es/field/index.mjs +8 -0
- package/es/field/style/index.d.ts +1 -0
- package/es/field/style/index.mjs +5 -0
- package/es/field/types.d.ts +44 -0
- package/es/field/types.mjs +0 -0
- package/es/field/utils.d.ts +15 -0
- package/es/field/utils.mjs +107 -0
- package/es/form/Form.d.ts +88 -0
- package/es/form/Form.mjs +158 -0
- package/es/form/index.d.ts +69 -0
- package/es/form/index.mjs +8 -0
- package/es/form/style/index.d.ts +1 -0
- package/es/form/style/index.mjs +1 -0
- package/es/form/types.d.ts +15 -0
- package/es/form/types.mjs +0 -0
- package/es/grid/Grid.d.ts +74 -0
- package/es/grid/Grid.mjs +48 -0
- package/es/grid/index.css +1 -0
- package/es/grid/index.d.ts +54 -0
- package/es/grid/index.mjs +10 -0
- package/es/grid/style/index.d.ts +1 -0
- package/es/grid/style/index.mjs +2 -0
- package/es/grid-item/GridItem.d.ts +45 -0
- package/es/grid-item/GridItem.mjs +146 -0
- package/es/grid-item/index.css +1 -0
- package/es/grid-item/index.d.ts +36 -0
- package/es/grid-item/index.mjs +10 -0
- package/es/grid-item/style/index.d.ts +1 -0
- package/es/grid-item/style/index.mjs +5 -0
- package/es/icon/config.mjs +7 -0
- package/es/icon/index.css +1 -1
- package/es/image/Image.d.ts +105 -0
- package/es/image/Image.mjs +151 -0
- package/es/image/index.css +1 -0
- package/es/image/index.d.ts +77 -0
- package/es/image/index.mjs +8 -0
- package/es/image/style/index.d.ts +1 -0
- package/es/image/style/index.mjs +4 -0
- package/es/image-preview/ImagePreview.d.ts +188 -0
- package/es/image-preview/ImagePreview.mjs +178 -0
- package/es/image-preview/ImagePreviewItem.d.ts +47 -0
- package/es/image-preview/ImagePreviewItem.mjs +257 -0
- package/es/image-preview/function-call.d.ts +3 -0
- package/es/image-preview/function-call.mjs +76 -0
- package/es/image-preview/index.css +1 -0
- package/es/image-preview/index.d.ts +139 -0
- package/es/image-preview/index.mjs +12 -0
- package/es/image-preview/style/index.d.ts +1 -0
- package/es/image-preview/style/index.mjs +10 -0
- package/es/image-preview/types.d.ts +43 -0
- package/es/image-preview/types.mjs +0 -0
- package/es/index.d.ts +39 -1
- package/es/index.mjs +114 -2
- package/es/lazyload/index.d.ts +3 -0
- package/es/lazyload/index.mjs +6 -0
- package/es/lazyload/style/index.d.ts +1 -0
- package/es/lazyload/style/index.mjs +1 -0
- package/es/lazyload/vue-lazyload/index.d.ts +55 -0
- package/es/lazyload/vue-lazyload/index.mjs +31 -0
- package/es/lazyload/vue-lazyload/lazy-component.mjs +51 -0
- package/es/lazyload/vue-lazyload/lazy-container.mjs +74 -0
- package/es/lazyload/vue-lazyload/lazy-image.mjs +100 -0
- package/es/lazyload/vue-lazyload/lazy.mjs +364 -0
- package/es/lazyload/vue-lazyload/listener.mjs +173 -0
- package/es/lazyload/vue-lazyload/util.mjs +166 -0
- package/es/list/List.d.ts +2 -2
- package/es/list/List.mjs +2 -1
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/index.css +1 -1
- package/es/locale/lang/zh-CN.mjs +1 -1
- package/es/media-picker/MediaPicker.d.ts +242 -0
- package/es/media-picker/MediaPicker.mjs +649 -0
- package/es/media-picker/image/DefaultAudioIcon.d.ts +2 -0
- package/es/media-picker/image/DefaultAudioIcon.mjs +98 -0
- package/es/media-picker/image/DefaultFileIcon.d.ts +2 -0
- package/es/media-picker/image/DefaultFileIcon.mjs +87 -0
- package/es/media-picker/image/DefaultVideoIcon.d.ts +2 -0
- package/es/media-picker/image/DefaultVideoIcon.mjs +119 -0
- package/es/media-picker/image/DeleteIcon.d.ts +2 -0
- package/es/media-picker/image/DeleteIcon.mjs +30 -0
- package/es/media-picker/image/PickFileIcon.d.ts +2 -0
- package/es/media-picker/image/PickFileIcon.mjs +27 -0
- package/es/media-picker/image/PickPhotoIcon.d.ts +2 -0
- package/es/media-picker/image/PickPhotoIcon.mjs +27 -0
- package/es/media-picker/image/TakeAudioIcon.d.ts +2 -0
- package/es/media-picker/image/TakeAudioIcon.mjs +27 -0
- package/es/media-picker/image/TakePhotoIcon.d.ts +2 -0
- package/es/media-picker/image/TakePhotoIcon.mjs +27 -0
- package/es/media-picker/image/TakeVideoIcon.d.ts +2 -0
- package/es/media-picker/image/TakeVideoIcon.mjs +27 -0
- package/es/media-picker/index.css +1 -0
- package/es/media-picker/index.d.ts +153 -0
- package/es/media-picker/index.mjs +8 -0
- package/es/media-picker/style/index.d.ts +1 -0
- package/es/media-picker/style/index.mjs +16 -0
- package/es/media-picker/type.d.ts +22 -0
- package/es/media-picker/type.mjs +0 -0
- package/es/media-picker/util/media-util.d.ts +71 -0
- package/es/media-picker/util/media-util.mjs +139 -0
- package/es/media-picker/util/orientation-util.d.ts +37 -0
- package/es/media-picker/util/orientation-util.mjs +118 -0
- package/es/media-picker/watermark/compress-options.d.ts +5 -0
- package/es/media-picker/watermark/compress-options.mjs +15 -0
- package/es/media-picker/watermark/image-processor.d.ts +12 -0
- package/es/media-picker/watermark/image-processor.mjs +55 -0
- package/es/media-picker/watermark/resize-options.d.ts +4 -0
- package/es/media-picker/watermark/resize-options.mjs +19 -0
- package/es/media-picker/watermark/watermark.d.ts +42 -0
- package/es/media-picker/watermark/watermark.mjs +641 -0
- package/es/media-player/MediaPlayer.d.ts +42 -0
- package/es/media-player/MediaPlayer.mjs +105 -0
- package/es/media-player/index.css +1 -0
- package/es/media-player/index.d.ts +34 -0
- package/es/media-player/index.mjs +8 -0
- package/es/media-player/style/index.d.ts +1 -0
- package/es/media-player/style/index.mjs +6 -0
- package/es/multiple-picker/MultiplePicker.d.ts +167 -0
- package/es/multiple-picker/MultiplePicker.mjs +170 -0
- package/es/multiple-picker/MultiplePickerOptions.d.ts +85 -0
- package/es/multiple-picker/MultiplePickerOptions.mjs +106 -0
- package/es/multiple-picker/index.css +1 -0
- package/es/multiple-picker/index.d.ts +123 -0
- package/es/multiple-picker/index.mjs +8 -0
- package/es/multiple-picker/style/index.d.ts +1 -0
- package/es/multiple-picker/style/index.mjs +8 -0
- package/es/multiple-picker/types.d.ts +14 -0
- package/es/multiple-picker/types.mjs +0 -0
- package/es/nav-bar/NavBar.d.ts +72 -0
- package/es/nav-bar/NavBar.mjs +114 -0
- package/es/nav-bar/index.css +1 -0
- package/es/nav-bar/index.d.ts +56 -0
- package/es/nav-bar/index.mjs +8 -0
- package/es/nav-bar/style/index.d.ts +1 -0
- package/es/nav-bar/style/index.mjs +4 -0
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.css +1 -1
- package/es/notify/index.d.ts +2 -2
- package/es/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/es/number-keyboard/NumberKeyboard.mjs +1 -2
- package/es/number-keyboard/NumberKeyboardKey.mjs +2 -2
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +5 -5
- package/es/number-keyboard/style/index.mjs +2 -2
- package/es/overlay/index.css +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/PasswordInput.mjs +1 -1
- package/es/password-input/index.css +1 -1
- package/es/picker/Picker.d.ts +224 -0
- package/es/picker/Picker.mjs +244 -0
- package/es/picker/PickerColumn.d.ts +69 -0
- package/es/picker/PickerColumn.mjs +211 -0
- package/es/picker/PickerToolbar.d.ts +18 -0
- package/es/picker/PickerToolbar.mjs +54 -0
- package/es/picker/index.css +1 -0
- package/es/picker/index.d.ts +142 -0
- package/es/picker/index.mjs +10 -0
- package/es/picker/style/index.d.ts +1 -0
- package/es/picker/style/index.mjs +9 -0
- package/es/picker/types.d.ts +44 -0
- package/es/picker/types.mjs +0 -0
- package/es/picker/utils.d.ts +13 -0
- package/es/picker/utils.mjs +80 -0
- package/es/popover/Popover.d.ts +164 -0
- package/es/popover/Popover.mjs +186 -0
- package/es/popover/index.css +1 -0
- package/es/popover/index.d.ts +121 -0
- package/es/popover/index.mjs +10 -0
- package/es/popover/style/index.d.ts +1 -0
- package/es/popover/style/index.mjs +6 -0
- package/es/popover/types.d.ts +11 -0
- package/es/popover/types.mjs +0 -0
- package/es/popup/Popup.d.ts +22 -5
- package/es/popup/Popup.mjs +85 -3
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +16 -4
- package/es/pull-refresh/PullRefresh.d.ts +3 -3
- package/es/pull-refresh/PullRefresh.mjs +7 -2
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +2 -2
- package/es/radio/Radio.d.ts +37 -0
- package/es/radio/Radio.mjs +41 -0
- package/es/radio/index.css +1 -0
- package/es/radio/index.d.ts +38 -0
- package/es/radio/index.mjs +8 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/radio/style/index.mjs +6 -0
- package/es/radio-group/RadioGroup.d.ts +45 -0
- package/es/radio-group/RadioGroup.mjs +44 -0
- package/es/radio-group/index.css +1 -0
- package/es/radio-group/index.d.ts +32 -0
- package/es/radio-group/index.mjs +8 -0
- package/es/radio-group/style/index.d.ts +1 -0
- package/es/radio-group/style/index.mjs +2 -0
- package/es/rate/Rate.d.ts +4 -4
- package/es/rate/Rate.mjs +1 -1
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +3 -3
- package/es/row/Row.d.ts +1 -1
- package/es/search/Search.d.ts +217 -0
- package/es/search/Search.mjs +136 -0
- package/es/search/index.css +1 -0
- package/es/search/index.d.ts +159 -0
- package/es/search/index.mjs +10 -0
- package/es/search/style/index.d.ts +1 -0
- package/es/search/style/index.mjs +6 -0
- package/es/search/types.d.ts +8 -0
- package/es/search/types.mjs +0 -0
- package/es/signature/Signature.d.ts +109 -0
- package/es/signature/Signature.mjs +232 -0
- package/es/signature/force-landscape.d.ts +16 -0
- package/es/signature/force-landscape.mjs +72 -0
- package/es/signature/index.css +1 -0
- package/es/signature/index.d.ts +83 -0
- package/es/signature/index.mjs +10 -0
- package/es/signature/style/index.d.ts +1 -0
- package/es/signature/style/index.mjs +10 -0
- package/es/signature/types.d.ts +1 -0
- package/es/signature/types.mjs +0 -0
- package/es/skeleton/Skeleton.d.ts +104 -0
- package/es/skeleton/Skeleton.mjs +116 -0
- package/es/skeleton/index.css +1 -0
- package/es/skeleton/index.d.ts +78 -0
- package/es/skeleton/index.mjs +10 -0
- package/es/skeleton/style/index.d.ts +1 -0
- package/es/skeleton/style/index.mjs +2 -0
- package/es/step/Step.d.ts +15 -0
- package/es/step/Step.mjs +137 -0
- package/es/step/index.css +1 -0
- package/es/step/index.d.ts +15 -0
- package/es/step/index.mjs +8 -0
- package/es/step/style/index.d.ts +1 -0
- package/es/step/style/index.mjs +5 -0
- package/es/stepper/Stepper.d.ts +3 -3
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +2 -2
- package/es/steps/Steps.d.ts +67 -0
- package/es/steps/Steps.mjs +49 -0
- package/es/steps/index.css +1 -0
- package/es/steps/index.d.ts +48 -0
- package/es/steps/index.mjs +10 -0
- package/es/steps/style/index.d.ts +1 -0
- package/es/steps/style/index.mjs +2 -0
- package/es/sticky/Sticky.d.ts +2 -2
- package/es/sticky/Sticky.mjs +2 -1
- package/es/sticky/index.css +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/style/normalize.css +1 -1
- package/es/swipe/Swipe.d.ts +4 -1
- package/es/swipe/Swipe.mjs +31 -12
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +2 -0
- package/es/swipe-item/SwipeItem.mjs +1 -1
- package/es/switch/Switch.d.ts +2 -2
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +1 -1
- package/es/tab/Tab.mjs +1 -1
- package/es/tab/style/index.mjs +1 -1
- package/es/tabbar/Tabbar.d.ts +90 -0
- package/es/tabbar/Tabbar.mjs +84 -0
- package/es/tabbar/image/common-normal.png +0 -0
- package/es/tabbar/image/common-selected.png +0 -0
- package/es/tabbar/index.css +1 -0
- package/es/tabbar/index.d.ts +64 -0
- package/es/tabbar/index.mjs +8 -0
- package/es/tabbar/style/index.d.ts +1 -0
- package/es/tabbar/style/index.mjs +2 -0
- package/es/tabbar-item/TabbarItem.d.ts +44 -0
- package/es/tabbar-item/TabbarItem.mjs +122 -0
- package/es/tabbar-item/index.css +1 -0
- package/es/tabbar-item/index.d.ts +35 -0
- package/es/tabbar-item/index.mjs +8 -0
- package/es/tabbar-item/style/index.d.ts +1 -0
- package/es/tabbar-item/style/index.mjs +5 -0
- package/es/tabs/Tabs.d.ts +6 -6
- package/es/tabs/Tabs.mjs +35 -4
- package/es/tabs/TabsTitle.d.ts +10 -1
- package/es/tabs/TabsTitle.mjs +8 -2
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +4 -4
- package/es/tag/Tag.d.ts +102 -0
- package/es/tag/Tag.mjs +101 -0
- package/es/tag/index.css +1 -0
- package/es/tag/index.d.ts +77 -0
- package/es/tag/index.mjs +10 -0
- package/es/tag/style/index.d.ts +1 -0
- package/es/tag/style/index.mjs +4 -0
- package/es/time-picker/Arrow.d.ts +4 -0
- package/es/time-picker/Arrow.mjs +27 -0
- package/es/time-picker/TimePicker.d.ts +286 -0
- package/es/time-picker/TimePicker.mjs +172 -0
- package/es/time-picker/TimePickerColumn.d.ts +71 -0
- package/es/time-picker/TimePickerColumn.mjs +233 -0
- package/es/time-picker/index.css +1 -0
- package/es/time-picker/index.d.ts +205 -0
- package/es/time-picker/index.mjs +10 -0
- package/es/time-picker/style/index.d.ts +1 -0
- package/es/time-picker/style/index.mjs +11 -0
- package/es/toast/Toast.d.ts +2 -2
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +6 -1
- package/es/toast/style/index.mjs +1 -1
- package/es/uploader/Uploader.d.ts +214 -0
- package/es/uploader/Uploader.mjs +249 -0
- package/es/uploader/UploaderPreviewItem.d.ts +36 -0
- package/es/uploader/UploaderPreviewItem.mjs +128 -0
- package/es/uploader/index.css +1 -0
- package/es/uploader/index.d.ts +155 -0
- package/es/uploader/index.mjs +10 -0
- package/es/uploader/style/index.d.ts +1 -0
- package/es/uploader/style/index.mjs +11 -0
- package/es/uploader/types.d.ts +31 -0
- package/es/uploader/types.mjs +0 -0
- package/es/uploader/utils.d.ts +11 -0
- package/es/uploader/utils.mjs +69 -0
- package/es/utils/basic.mjs +2 -1
- package/es/utils/constant.d.ts +4 -0
- package/es/utils/constant.mjs +4 -0
- package/es/utils/create.mjs +4 -1
- package/es/utils/date.d.ts +29 -0
- package/es/utils/date.mjs +96 -0
- package/es/utils/format.d.ts +1 -1
- package/es/utils/parse.d.ts +12 -0
- package/es/utils/parse.mjs +18 -0
- package/es/utils/props.d.ts +2 -2
- package/es/utils/props.mjs +2 -2
- package/es/utils/validate.d.ts +6 -1
- package/es/utils/validate.mjs +11 -1
- package/es/utils/with-install.d.ts +2 -2
- package/es/utils/with-install.mjs +4 -2
- package/es/vue-tsx-shim.d.ts +7 -0
- package/lib/action-sheet/ActionSheet.d.ts +194 -0
- package/lib/action-sheet/ActionSheet.js +161 -0
- package/lib/action-sheet/index.css +1 -0
- package/lib/action-sheet/index.d.ts +135 -0
- package/lib/action-sheet/index.js +35 -0
- package/lib/action-sheet/style/index.d.ts +1 -0
- package/lib/action-sheet/style/index.js +7 -0
- package/lib/avatar/Avatar.d.ts +55 -0
- package/lib/avatar/Avatar.js +90 -0
- package/lib/avatar/index.css +1 -0
- package/lib/avatar/index.d.ts +43 -0
- package/lib/avatar/index.js +33 -0
- package/lib/avatar/style/index.d.ts +1 -0
- package/lib/avatar/style/index.js +5 -0
- package/lib/avatar/types.d.ts +2 -0
- package/lib/avatar/types.js +15 -0
- package/lib/badge/Badge.d.ts +11 -5
- package/lib/badge/Badge.js +13 -6
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +7 -3
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/calendar/Calendar.d.ts +302 -0
- package/lib/calendar/Calendar.js +444 -0
- package/lib/calendar/CalendarDay.d.ts +32 -0
- package/lib/calendar/CalendarDay.js +127 -0
- package/lib/calendar/CalendarHeader.d.ts +26 -0
- package/lib/calendar/CalendarHeader.js +77 -0
- package/lib/calendar/CalendarMonth.d.ts +86 -0
- package/lib/calendar/CalendarMonth.js +226 -0
- package/lib/calendar/index.css +1 -0
- package/lib/calendar/index.d.ts +217 -0
- package/lib/calendar/index.js +35 -0
- package/lib/calendar/style/index.d.ts +1 -0
- package/lib/calendar/style/index.js +9 -0
- package/lib/calendar/types.d.ts +28 -0
- package/lib/calendar/types.js +15 -0
- package/lib/calendar/utils.d.ts +12 -0
- package/lib/calendar/utils.js +75 -0
- package/lib/cascader/Cascader.d.ts +171 -0
- package/lib/cascader/Cascader.js +309 -0
- package/lib/cascader/index.css +1 -0
- package/lib/cascader/index.d.ts +126 -0
- package/lib/cascader/index.js +35 -0
- package/lib/cascader/style/index.d.ts +1 -0
- package/lib/cascader/style/index.js +14 -0
- package/lib/cascader/types.d.ts +19 -0
- package/lib/cascader/types.js +15 -0
- package/lib/cell/Cell.d.ts +49 -26
- package/lib/cell/Cell.js +70 -30
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +29 -15
- package/lib/cell/types.d.ts +1 -0
- package/lib/cell/types.js +15 -0
- package/lib/cell-group/CellGroup.d.ts +29 -0
- package/lib/cell-group/CellGroup.js +62 -0
- package/lib/cell-group/index.css +1 -0
- package/lib/cell-group/index.d.ts +25 -0
- package/lib/cell-group/index.js +33 -0
- package/lib/cell-group/style/index.d.ts +1 -0
- package/lib/cell-group/style/index.js +2 -0
- package/lib/checkbox/Checkbox.d.ts +64 -0
- package/lib/checkbox/Checkbox.js +106 -0
- package/lib/checkbox/Checker.d.ts +85 -0
- package/lib/checkbox/Checker.js +132 -0
- package/lib/checkbox/index.css +1 -0
- package/lib/checkbox/index.d.ts +51 -0
- package/lib/checkbox/index.js +33 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.js +5 -0
- package/lib/checkbox/types.d.ts +13 -0
- package/lib/checkbox/types.js +15 -0
- package/lib/checkbox-group/CheckboxGroup.d.ts +54 -0
- package/lib/checkbox-group/CheckboxGroup.js +90 -0
- package/lib/checkbox-group/index.css +1 -0
- package/lib/checkbox-group/index.d.ts +42 -0
- package/lib/checkbox-group/index.js +33 -0
- package/lib/checkbox-group/style/index.d.ts +1 -0
- package/lib/checkbox-group/style/index.js +2 -0
- package/lib/checkbox-group/types.d.ts +16 -0
- package/lib/checkbox-group/types.js +15 -0
- package/lib/col/Col.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +55 -0
- package/lib/collapse/Collapse.js +128 -0
- package/lib/collapse/index.d.ts +36 -0
- package/lib/collapse/index.js +35 -0
- package/lib/collapse/style/index.d.ts +1 -0
- package/lib/collapse/style/index.js +1 -0
- package/lib/collapse-item/CollapseItem.d.ts +34 -0
- package/lib/collapse-item/CollapseItem.js +160 -0
- package/lib/collapse-item/index.css +1 -0
- package/lib/collapse-item/index.d.ts +30 -0
- package/lib/collapse-item/index.js +35 -0
- package/lib/collapse-item/style/index.d.ts +1 -0
- package/lib/collapse-item/style/index.js +4 -0
- package/lib/collapse-item/types.d.ts +6 -0
- package/lib/collapse-item/types.js +15 -0
- package/lib/composables/use-route.d.ts +1 -4
- package/lib/config-provider/ConfigProvider.js +2 -2
- package/lib/date-time-picker/DateTimePicker.d.ts +242 -0
- package/lib/date-time-picker/DateTimePicker.js +273 -0
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +334 -0
- package/lib/date-time-picker/DateTimePickerWrapper.js +279 -0
- package/lib/date-time-picker/index.css +1 -0
- package/lib/date-time-picker/index.d.ts +247 -0
- package/lib/date-time-picker/index.js +35 -0
- package/lib/date-time-picker/style/index.d.ts +1 -0
- package/lib/date-time-picker/style/index.js +12 -0
- package/lib/date-time-picker/types.d.ts +5 -0
- package/lib/date-time-picker/types.js +15 -0
- package/lib/date-time-picker/utils.d.ts +53 -0
- package/lib/date-time-picker/utils.js +61 -0
- package/lib/dialog/Dialog.d.ts +187 -0
- package/lib/dialog/Dialog.js +216 -0
- package/lib/dialog/function-call.d.ts +6 -0
- package/lib/dialog/function-call.js +110 -0
- package/lib/dialog/index.css +1 -0
- package/lib/dialog/index.d.ts +138 -0
- package/lib/dialog/index.js +41 -0
- package/lib/dialog/style/index.d.ts +1 -0
- package/lib/dialog/style/index.js +8 -0
- package/lib/dialog/types.d.ts +32 -0
- package/lib/dialog/types.js +15 -0
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +78 -0
- package/lib/dropdown-item/DropdownItem.js +321 -0
- package/lib/dropdown-item/index.css +1 -0
- package/lib/dropdown-item/index.d.ts +64 -0
- package/lib/dropdown-item/index.js +35 -0
- package/lib/dropdown-item/style/index.d.ts +1 -0
- package/lib/dropdown-item/style/index.js +12 -0
- package/lib/dropdown-item/types.d.ts +23 -0
- package/lib/dropdown-item/types.js +15 -0
- package/lib/dropdown-menu/DropdownMenu.d.ts +82 -0
- package/lib/dropdown-menu/DropdownMenu.js +167 -0
- package/lib/dropdown-menu/index.css +1 -0
- package/lib/dropdown-menu/index.d.ts +63 -0
- package/lib/dropdown-menu/index.js +35 -0
- package/lib/dropdown-menu/style/index.d.ts +1 -0
- package/lib/dropdown-menu/style/index.js +4 -0
- package/lib/dropdown-menu/types.d.ts +8 -0
- package/lib/dropdown-menu/types.js +15 -0
- package/lib/empty/Empty.d.ts +2 -1
- package/lib/empty/Empty.js +9 -4
- package/lib/empty/Images.d.ts +7 -2
- package/lib/empty/Images.js +854 -2003
- package/lib/empty/index.css +1 -1
- package/lib/field/Field.d.ts +364 -0
- package/lib/field/Field.js +529 -0
- package/lib/field/index.css +1 -0
- package/lib/field/index.d.ts +230 -0
- package/lib/field/index.js +33 -0
- package/lib/field/style/index.d.ts +1 -0
- package/lib/field/style/index.js +5 -0
- package/lib/field/types.d.ts +44 -0
- package/lib/field/types.js +15 -0
- package/lib/field/utils.d.ts +15 -0
- package/lib/field/utils.js +120 -0
- package/lib/form/Form.d.ts +88 -0
- package/lib/form/Form.js +177 -0
- package/lib/form/index.d.ts +69 -0
- package/lib/form/index.js +33 -0
- package/lib/form/style/index.d.ts +1 -0
- package/lib/form/style/index.js +1 -0
- package/lib/form/types.d.ts +15 -0
- package/lib/form/types.js +15 -0
- package/lib/grid/Grid.d.ts +74 -0
- package/lib/grid/Grid.js +67 -0
- package/lib/grid/index.css +1 -0
- package/lib/grid/index.d.ts +54 -0
- package/lib/grid/index.js +35 -0
- package/lib/grid/style/index.d.ts +1 -0
- package/lib/grid/style/index.js +2 -0
- package/lib/grid-item/GridItem.d.ts +45 -0
- package/lib/grid-item/GridItem.js +165 -0
- package/lib/grid-item/index.css +1 -0
- package/lib/grid-item/index.d.ts +36 -0
- package/lib/grid-item/index.js +35 -0
- package/lib/grid-item/style/index.d.ts +1 -0
- package/lib/grid-item/style/index.js +5 -0
- package/lib/icon/config.js +7 -0
- package/lib/icon/index.css +1 -1
- package/lib/image/Image.d.ts +105 -0
- package/lib/image/Image.js +170 -0
- package/lib/image/index.css +1 -0
- package/lib/image/index.d.ts +77 -0
- package/lib/image/index.js +33 -0
- package/lib/image/style/index.d.ts +1 -0
- package/lib/image/style/index.js +4 -0
- package/lib/image-preview/ImagePreview.d.ts +188 -0
- package/lib/image-preview/ImagePreview.js +203 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +47 -0
- package/lib/image-preview/ImagePreviewItem.js +276 -0
- package/lib/image-preview/function-call.d.ts +3 -0
- package/lib/image-preview/function-call.js +101 -0
- package/lib/image-preview/index.css +1 -0
- package/lib/image-preview/index.d.ts +139 -0
- package/lib/image-preview/index.js +37 -0
- package/lib/image-preview/style/index.d.ts +1 -0
- package/lib/image-preview/style/index.js +10 -0
- package/lib/image-preview/types.d.ts +43 -0
- package/lib/image-preview/types.js +15 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +39 -1
- package/lib/index.js +114 -2
- package/lib/lazyload/index.d.ts +3 -0
- package/lib/lazyload/index.js +25 -0
- package/lib/lazyload/style/index.d.ts +1 -0
- package/lib/lazyload/style/index.js +1 -0
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -0
- package/lib/lazyload/vue-lazyload/index.js +56 -0
- package/lib/lazyload/vue-lazyload/lazy-component.js +70 -0
- package/lib/lazyload/vue-lazyload/lazy-container.js +93 -0
- package/lib/lazyload/vue-lazyload/lazy-image.js +119 -0
- package/lib/lazyload/vue-lazyload/lazy.js +378 -0
- package/lib/lazyload/vue-lazyload/listener.js +192 -0
- package/lib/lazyload/vue-lazyload/util.js +185 -0
- package/lib/list/List.d.ts +2 -2
- package/lib/list/List.js +2 -1
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/media-picker/MediaPicker.d.ts +242 -0
- package/lib/media-picker/MediaPicker.js +674 -0
- package/lib/media-picker/image/DefaultAudioIcon.d.ts +2 -0
- package/lib/media-picker/image/DefaultAudioIcon.js +117 -0
- package/lib/media-picker/image/DefaultFileIcon.d.ts +2 -0
- package/lib/media-picker/image/DefaultFileIcon.js +106 -0
- package/lib/media-picker/image/DefaultVideoIcon.d.ts +2 -0
- package/lib/media-picker/image/DefaultVideoIcon.js +138 -0
- package/lib/media-picker/image/DeleteIcon.d.ts +2 -0
- package/lib/media-picker/image/DeleteIcon.js +49 -0
- package/lib/media-picker/image/PickFileIcon.d.ts +2 -0
- package/lib/media-picker/image/PickFileIcon.js +46 -0
- package/lib/media-picker/image/PickPhotoIcon.d.ts +2 -0
- package/lib/media-picker/image/PickPhotoIcon.js +46 -0
- package/lib/media-picker/image/TakeAudioIcon.d.ts +2 -0
- package/lib/media-picker/image/TakeAudioIcon.js +46 -0
- package/lib/media-picker/image/TakePhotoIcon.d.ts +2 -0
- package/lib/media-picker/image/TakePhotoIcon.js +46 -0
- package/lib/media-picker/image/TakeVideoIcon.d.ts +2 -0
- package/lib/media-picker/image/TakeVideoIcon.js +46 -0
- package/lib/media-picker/index.css +1 -0
- package/lib/media-picker/index.d.ts +153 -0
- package/lib/media-picker/index.js +33 -0
- package/lib/media-picker/style/index.d.ts +1 -0
- package/lib/media-picker/style/index.js +16 -0
- package/lib/media-picker/type.d.ts +22 -0
- package/lib/media-picker/type.js +15 -0
- package/lib/media-picker/util/media-util.d.ts +71 -0
- package/lib/media-picker/util/media-util.js +158 -0
- package/lib/media-picker/util/orientation-util.d.ts +37 -0
- package/lib/media-picker/util/orientation-util.js +137 -0
- package/lib/media-picker/watermark/compress-options.d.ts +5 -0
- package/lib/media-picker/watermark/compress-options.js +34 -0
- package/lib/media-picker/watermark/image-processor.d.ts +12 -0
- package/lib/media-picker/watermark/image-processor.js +74 -0
- package/lib/media-picker/watermark/resize-options.d.ts +4 -0
- package/lib/media-picker/watermark/resize-options.js +38 -0
- package/lib/media-picker/watermark/watermark.d.ts +42 -0
- package/lib/media-picker/watermark/watermark.js +653 -0
- package/lib/media-player/MediaPlayer.d.ts +42 -0
- package/lib/media-player/MediaPlayer.js +130 -0
- package/lib/media-player/index.css +1 -0
- package/lib/media-player/index.d.ts +34 -0
- package/lib/media-player/index.js +33 -0
- package/lib/media-player/style/index.d.ts +1 -0
- package/lib/media-player/style/index.js +6 -0
- package/lib/multiple-picker/MultiplePicker.d.ts +167 -0
- package/lib/multiple-picker/MultiplePicker.js +195 -0
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +85 -0
- package/lib/multiple-picker/MultiplePickerOptions.js +125 -0
- package/lib/multiple-picker/index.css +1 -0
- package/lib/multiple-picker/index.d.ts +123 -0
- package/lib/multiple-picker/index.js +33 -0
- package/lib/multiple-picker/style/index.d.ts +1 -0
- package/lib/multiple-picker/style/index.js +8 -0
- package/lib/multiple-picker/types.d.ts +14 -0
- package/lib/multiple-picker/types.js +15 -0
- package/lib/nav-bar/NavBar.d.ts +72 -0
- package/lib/nav-bar/NavBar.js +133 -0
- package/lib/nav-bar/index.css +1 -0
- package/lib/nav-bar/index.d.ts +56 -0
- package/lib/nav-bar/index.js +33 -0
- package/lib/nav-bar/style/index.d.ts +1 -0
- package/lib/nav-bar/style/index.js +4 -0
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.d.ts +2 -2
- package/lib/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/lib/number-keyboard/NumberKeyboard.js +1 -2
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -2
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +5 -5
- package/lib/number-keyboard/style/index.js +2 -2
- package/lib/overlay/index.css +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/PasswordInput.js +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/picker/Picker.d.ts +224 -0
- package/lib/picker/Picker.js +269 -0
- package/lib/picker/PickerColumn.d.ts +69 -0
- package/lib/picker/PickerColumn.js +230 -0
- package/lib/picker/PickerToolbar.d.ts +18 -0
- package/lib/picker/PickerToolbar.js +73 -0
- package/lib/picker/index.css +1 -0
- package/lib/picker/index.d.ts +142 -0
- package/lib/picker/index.js +35 -0
- package/lib/picker/style/index.d.ts +1 -0
- package/lib/picker/style/index.js +9 -0
- package/lib/picker/types.d.ts +44 -0
- package/lib/picker/types.js +15 -0
- package/lib/picker/utils.d.ts +13 -0
- package/lib/picker/utils.js +99 -0
- package/lib/popover/Popover.d.ts +164 -0
- package/lib/popover/Popover.js +205 -0
- package/lib/popover/index.css +1 -0
- package/lib/popover/index.d.ts +121 -0
- package/lib/popover/index.js +35 -0
- package/lib/popover/style/index.d.ts +1 -0
- package/lib/popover/style/index.js +6 -0
- package/lib/popover/types.d.ts +11 -0
- package/lib/popover/types.js +15 -0
- package/lib/popup/Popup.d.ts +22 -5
- package/lib/popup/Popup.js +84 -2
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +16 -4
- package/lib/pull-refresh/PullRefresh.d.ts +3 -3
- package/lib/pull-refresh/PullRefresh.js +6 -1
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +2 -2
- package/lib/radio/Radio.d.ts +37 -0
- package/lib/radio/Radio.js +66 -0
- package/lib/radio/index.css +1 -0
- package/lib/radio/index.d.ts +38 -0
- package/lib/radio/index.js +33 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/radio/style/index.js +6 -0
- package/lib/radio-group/RadioGroup.d.ts +45 -0
- package/lib/radio-group/RadioGroup.js +63 -0
- package/lib/radio-group/index.css +1 -0
- package/lib/radio-group/index.d.ts +32 -0
- package/lib/radio-group/index.js +33 -0
- package/lib/radio-group/style/index.d.ts +1 -0
- package/lib/radio-group/style/index.js +2 -0
- package/lib/rate/Rate.d.ts +4 -4
- package/lib/rate/Rate.js +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +3 -3
- package/lib/row/Row.d.ts +1 -1
- package/lib/search/Search.d.ts +217 -0
- package/lib/search/Search.js +155 -0
- package/lib/search/index.css +1 -0
- package/lib/search/index.d.ts +159 -0
- package/lib/search/index.js +35 -0
- package/lib/search/style/index.d.ts +1 -0
- package/lib/search/style/index.js +6 -0
- package/lib/search/types.d.ts +8 -0
- package/lib/search/types.js +15 -0
- package/lib/signature/Signature.d.ts +109 -0
- package/lib/signature/Signature.js +257 -0
- package/lib/signature/force-landscape.d.ts +16 -0
- package/lib/signature/force-landscape.js +91 -0
- package/lib/signature/index.css +1 -0
- package/lib/signature/index.d.ts +83 -0
- package/lib/signature/index.js +35 -0
- package/lib/signature/style/index.d.ts +1 -0
- package/lib/signature/style/index.js +10 -0
- package/lib/signature/types.d.ts +1 -0
- package/lib/signature/types.js +15 -0
- package/lib/skeleton/Skeleton.d.ts +104 -0
- package/lib/skeleton/Skeleton.js +135 -0
- package/lib/skeleton/index.css +1 -0
- package/lib/skeleton/index.d.ts +78 -0
- package/lib/skeleton/index.js +35 -0
- package/lib/skeleton/style/index.d.ts +1 -0
- package/lib/skeleton/style/index.js +2 -0
- package/lib/step/Step.d.ts +15 -0
- package/lib/step/Step.js +156 -0
- package/lib/step/index.css +1 -0
- package/lib/step/index.d.ts +15 -0
- package/lib/step/index.js +33 -0
- package/lib/step/style/index.d.ts +1 -0
- package/lib/step/style/index.js +5 -0
- package/lib/stepper/Stepper.d.ts +3 -3
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +2 -2
- package/lib/steps/Steps.d.ts +67 -0
- package/lib/steps/Steps.js +68 -0
- package/lib/steps/index.css +1 -0
- package/lib/steps/index.d.ts +48 -0
- package/lib/steps/index.js +35 -0
- package/lib/steps/style/index.d.ts +1 -0
- package/lib/steps/style/index.js +2 -0
- package/lib/sticky/Sticky.d.ts +2 -2
- package/lib/sticky/Sticky.js +2 -1
- package/lib/sticky/index.css +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/style/normalize.css +1 -1
- package/lib/swipe/Swipe.d.ts +4 -1
- package/lib/swipe/Swipe.js +31 -12
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +2 -0
- package/lib/swipe-item/SwipeItem.js +1 -1
- package/lib/switch/Switch.d.ts +2 -2
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/Tab.d.ts +1 -1
- package/lib/tab/Tab.js +1 -1
- package/lib/tab/style/index.js +1 -1
- package/lib/tabbar/Tabbar.d.ts +90 -0
- package/lib/tabbar/Tabbar.js +103 -0
- package/lib/tabbar/image/common-normal.png +0 -0
- package/lib/tabbar/image/common-selected.png +0 -0
- package/lib/tabbar/index.css +1 -0
- package/lib/tabbar/index.d.ts +64 -0
- package/lib/tabbar/index.js +33 -0
- package/lib/tabbar/style/index.d.ts +1 -0
- package/lib/tabbar/style/index.js +2 -0
- package/lib/tabbar-item/TabbarItem.d.ts +44 -0
- package/lib/tabbar-item/TabbarItem.js +141 -0
- package/lib/tabbar-item/index.css +1 -0
- package/lib/tabbar-item/index.d.ts +35 -0
- package/lib/tabbar-item/index.js +33 -0
- package/lib/tabbar-item/style/index.d.ts +1 -0
- package/lib/tabbar-item/style/index.js +5 -0
- package/lib/tabs/Tabs.d.ts +6 -6
- package/lib/tabs/Tabs.js +35 -4
- package/lib/tabs/TabsTitle.d.ts +10 -1
- package/lib/tabs/TabsTitle.js +8 -2
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tag/Tag.d.ts +102 -0
- package/lib/tag/Tag.js +120 -0
- package/lib/tag/index.css +1 -0
- package/lib/tag/index.d.ts +77 -0
- package/lib/tag/index.js +35 -0
- package/lib/tag/style/index.d.ts +1 -0
- package/lib/tag/style/index.js +4 -0
- package/lib/time-picker/Arrow.d.ts +4 -0
- package/lib/time-picker/Arrow.js +46 -0
- package/lib/time-picker/TimePicker.d.ts +286 -0
- package/lib/time-picker/TimePicker.js +197 -0
- package/lib/time-picker/TimePickerColumn.d.ts +71 -0
- package/lib/time-picker/TimePickerColumn.js +258 -0
- package/lib/time-picker/index.css +1 -0
- package/lib/time-picker/index.d.ts +205 -0
- package/lib/time-picker/index.js +35 -0
- package/lib/time-picker/style/index.d.ts +1 -0
- package/lib/time-picker/style/index.js +11 -0
- package/lib/toast/Toast.d.ts +2 -2
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +6 -1
- package/lib/toast/style/index.js +1 -1
- package/lib/uploader/Uploader.d.ts +214 -0
- package/lib/uploader/Uploader.js +274 -0
- package/lib/uploader/UploaderPreviewItem.d.ts +36 -0
- package/lib/uploader/UploaderPreviewItem.js +147 -0
- package/lib/uploader/index.css +1 -0
- package/lib/uploader/index.d.ts +155 -0
- package/lib/uploader/index.js +35 -0
- package/lib/uploader/style/index.d.ts +1 -0
- package/lib/uploader/style/index.js +11 -0
- package/lib/uploader/types.d.ts +31 -0
- package/lib/uploader/types.js +15 -0
- package/lib/uploader/utils.d.ts +11 -0
- package/lib/uploader/utils.js +88 -0
- package/lib/utils/basic.js +2 -1
- package/lib/utils/constant.d.ts +4 -0
- package/lib/utils/constant.js +4 -0
- package/lib/utils/create.js +4 -1
- package/lib/utils/date.d.ts +29 -0
- package/lib/utils/date.js +115 -0
- package/lib/utils/format.d.ts +1 -1
- package/lib/utils/parse.d.ts +12 -0
- package/lib/utils/parse.js +37 -0
- package/lib/utils/props.d.ts +2 -2
- package/lib/utils/props.js +2 -2
- package/lib/utils/validate.d.ts +6 -1
- package/lib/utils/validate.js +11 -1
- package/lib/utils/with-install.d.ts +2 -2
- package/lib/utils/with-install.js +4 -2
- package/lib/vue-tsx-shim.d.ts +7 -0
- package/lib/web-types.json +1 -3197
- package/lib/zartui.cjs.js +14724 -5172
- package/lib/zartui.es.js +14726 -5174
- package/lib/zartui.js +15738 -5305
- package/lib/zartui.min.js +1 -1
- package/package.json +14 -14
- package/README.md +0 -25
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare type ActionSheetAction = {
|
|
3
|
+
name?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
subname?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
callback?: (action: ActionSheetAction) => void;
|
|
9
|
+
className?: unknown;
|
|
10
|
+
};
|
|
11
|
+
export declare const actionSheetProps: {
|
|
12
|
+
show: BooleanConstructor;
|
|
13
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
14
|
+
overlay: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: true;
|
|
17
|
+
};
|
|
18
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
19
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
20
|
+
lockScroll: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: true;
|
|
23
|
+
};
|
|
24
|
+
lazyRender: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: true;
|
|
27
|
+
};
|
|
28
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
29
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
30
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
31
|
+
transitionAppear: BooleanConstructor;
|
|
32
|
+
closeOnClickOverlay: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: true;
|
|
35
|
+
};
|
|
36
|
+
} & {
|
|
37
|
+
title: StringConstructor;
|
|
38
|
+
round: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: true;
|
|
41
|
+
};
|
|
42
|
+
actions: {
|
|
43
|
+
type: import("vue").PropType<ActionSheetAction[]>;
|
|
44
|
+
default: () => ActionSheetAction[];
|
|
45
|
+
};
|
|
46
|
+
closeIcon: {
|
|
47
|
+
type: import("vue").PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
closeable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: true;
|
|
53
|
+
};
|
|
54
|
+
cancelText: StringConstructor;
|
|
55
|
+
description: StringConstructor;
|
|
56
|
+
closeOnPopstate: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: true;
|
|
59
|
+
};
|
|
60
|
+
closeOnClickAction: BooleanConstructor;
|
|
61
|
+
safeAreaInsetBottom: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare type ActionSheetProps = ExtractPropTypes<typeof actionSheetProps>;
|
|
67
|
+
declare const _default: import("vue").DefineComponent<{
|
|
68
|
+
show: BooleanConstructor;
|
|
69
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
70
|
+
overlay: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: true;
|
|
73
|
+
};
|
|
74
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
75
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
76
|
+
lockScroll: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: true;
|
|
79
|
+
};
|
|
80
|
+
lazyRender: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: true;
|
|
83
|
+
};
|
|
84
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
85
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
86
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
87
|
+
transitionAppear: BooleanConstructor;
|
|
88
|
+
closeOnClickOverlay: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: true;
|
|
91
|
+
};
|
|
92
|
+
} & {
|
|
93
|
+
title: StringConstructor;
|
|
94
|
+
round: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: true;
|
|
97
|
+
};
|
|
98
|
+
actions: {
|
|
99
|
+
type: import("vue").PropType<ActionSheetAction[]>;
|
|
100
|
+
default: () => ActionSheetAction[];
|
|
101
|
+
};
|
|
102
|
+
closeIcon: {
|
|
103
|
+
type: import("vue").PropType<string>;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
closeable: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: true;
|
|
109
|
+
};
|
|
110
|
+
cancelText: StringConstructor;
|
|
111
|
+
description: StringConstructor;
|
|
112
|
+
closeOnPopstate: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: true;
|
|
115
|
+
};
|
|
116
|
+
closeOnClickAction: BooleanConstructor;
|
|
117
|
+
safeAreaInsetBottom: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: true;
|
|
120
|
+
};
|
|
121
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
122
|
+
show: BooleanConstructor;
|
|
123
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
124
|
+
overlay: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: true;
|
|
127
|
+
};
|
|
128
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
129
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
130
|
+
lockScroll: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: true;
|
|
133
|
+
};
|
|
134
|
+
lazyRender: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: true;
|
|
137
|
+
};
|
|
138
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
139
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
140
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
141
|
+
transitionAppear: BooleanConstructor;
|
|
142
|
+
closeOnClickOverlay: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: true;
|
|
145
|
+
};
|
|
146
|
+
} & {
|
|
147
|
+
title: StringConstructor;
|
|
148
|
+
round: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
default: true;
|
|
151
|
+
};
|
|
152
|
+
actions: {
|
|
153
|
+
type: import("vue").PropType<ActionSheetAction[]>;
|
|
154
|
+
default: () => ActionSheetAction[];
|
|
155
|
+
};
|
|
156
|
+
closeIcon: {
|
|
157
|
+
type: import("vue").PropType<string>;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
closeable: {
|
|
161
|
+
type: BooleanConstructor;
|
|
162
|
+
default: true;
|
|
163
|
+
};
|
|
164
|
+
cancelText: StringConstructor;
|
|
165
|
+
description: StringConstructor;
|
|
166
|
+
closeOnPopstate: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: true;
|
|
169
|
+
};
|
|
170
|
+
closeOnClickAction: BooleanConstructor;
|
|
171
|
+
safeAreaInsetBottom: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: true;
|
|
174
|
+
};
|
|
175
|
+
}>> & {
|
|
176
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
}, {
|
|
180
|
+
show: boolean;
|
|
181
|
+
overlay: boolean;
|
|
182
|
+
lockScroll: boolean;
|
|
183
|
+
lazyRender: boolean;
|
|
184
|
+
transitionAppear: boolean;
|
|
185
|
+
closeOnClickOverlay: boolean;
|
|
186
|
+
round: boolean;
|
|
187
|
+
closeIcon: string;
|
|
188
|
+
closeable: boolean;
|
|
189
|
+
closeOnPopstate: boolean;
|
|
190
|
+
safeAreaInsetBottom: boolean;
|
|
191
|
+
actions: ActionSheetAction[];
|
|
192
|
+
closeOnClickAction: boolean;
|
|
193
|
+
}>;
|
|
194
|
+
export default _default;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { nextTick, defineComponent } from "vue";
|
|
3
|
+
import { pick, extend, truthProp, makeArrayProp, makeStringProp, createNamespace, HAPTICS_FEEDBACK, BORDER_BOTTOM } from "../utils/index.mjs";
|
|
4
|
+
import { Icon } from "../icon/index.mjs";
|
|
5
|
+
import { Popup } from "../popup/index.mjs";
|
|
6
|
+
import { Loading } from "../loading/index.mjs";
|
|
7
|
+
import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
|
|
8
|
+
const [name, bem] = createNamespace("action-sheet");
|
|
9
|
+
const actionSheetProps = extend({}, popupSharedProps, {
|
|
10
|
+
title: String,
|
|
11
|
+
round: truthProp,
|
|
12
|
+
actions: makeArrayProp(),
|
|
13
|
+
closeIcon: makeStringProp("cross"),
|
|
14
|
+
closeable: truthProp,
|
|
15
|
+
cancelText: String,
|
|
16
|
+
description: String,
|
|
17
|
+
closeOnPopstate: truthProp,
|
|
18
|
+
closeOnClickAction: Boolean,
|
|
19
|
+
safeAreaInsetBottom: truthProp
|
|
20
|
+
});
|
|
21
|
+
const popupInheritKeys = [...popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
|
22
|
+
var stdin_default = defineComponent({
|
|
23
|
+
name,
|
|
24
|
+
props: actionSheetProps,
|
|
25
|
+
emits: ["select", "cancel", "update:show"],
|
|
26
|
+
setup(props, {
|
|
27
|
+
slots,
|
|
28
|
+
emit
|
|
29
|
+
}) {
|
|
30
|
+
const updateShow = (show) => emit("update:show", show);
|
|
31
|
+
const onCancel = () => {
|
|
32
|
+
updateShow(false);
|
|
33
|
+
emit("cancel");
|
|
34
|
+
};
|
|
35
|
+
const renderHeader = () => {
|
|
36
|
+
if (props.title) {
|
|
37
|
+
return _createVNode("div", {
|
|
38
|
+
"class": bem("header")
|
|
39
|
+
}, [props.title, props.closeable && _createVNode(Icon, {
|
|
40
|
+
"name": props.closeIcon,
|
|
41
|
+
"class": [bem("close"), HAPTICS_FEEDBACK],
|
|
42
|
+
"onClick": onCancel
|
|
43
|
+
}, null)]);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const renderCancel = () => {
|
|
47
|
+
if (slots.cancel || props.cancelText) {
|
|
48
|
+
return [_createVNode("div", {
|
|
49
|
+
"class": bem("cancel")
|
|
50
|
+
}, [_createVNode("button", {
|
|
51
|
+
"type": "button",
|
|
52
|
+
"class": bem("cancel-btn"),
|
|
53
|
+
"onClick": onCancel
|
|
54
|
+
}, [slots.cancel ? slots.cancel() : props.cancelText])])];
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const renderActionContent = (action, index) => {
|
|
58
|
+
if (action.loading) {
|
|
59
|
+
return _createVNode(Loading, {
|
|
60
|
+
"class": bem("loading-icon")
|
|
61
|
+
}, null);
|
|
62
|
+
}
|
|
63
|
+
if (slots.action) {
|
|
64
|
+
return slots.action({
|
|
65
|
+
action,
|
|
66
|
+
index
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return [_createVNode("span", {
|
|
70
|
+
"class": bem("name")
|
|
71
|
+
}, [action.name]), action.subname && _createVNode("div", {
|
|
72
|
+
"class": bem("subname")
|
|
73
|
+
}, [action.subname])];
|
|
74
|
+
};
|
|
75
|
+
const renderAction = (action, index) => {
|
|
76
|
+
const {
|
|
77
|
+
color,
|
|
78
|
+
loading,
|
|
79
|
+
callback,
|
|
80
|
+
disabled,
|
|
81
|
+
className
|
|
82
|
+
} = action;
|
|
83
|
+
const onClick = () => {
|
|
84
|
+
if (disabled || loading) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (callback) {
|
|
88
|
+
callback(action);
|
|
89
|
+
}
|
|
90
|
+
if (props.closeOnClickAction) {
|
|
91
|
+
updateShow(false);
|
|
92
|
+
}
|
|
93
|
+
nextTick(() => emit("select", action, index));
|
|
94
|
+
};
|
|
95
|
+
let showBorder = true;
|
|
96
|
+
const hasCancelBtn = slots.cancel || props.cancelText;
|
|
97
|
+
if (props.actions && index === props.actions.length - 1 && !hasCancelBtn) {
|
|
98
|
+
showBorder = false;
|
|
99
|
+
}
|
|
100
|
+
return _createVNode("button", {
|
|
101
|
+
"type": "button",
|
|
102
|
+
"style": {
|
|
103
|
+
color
|
|
104
|
+
},
|
|
105
|
+
"class": [bem("item", {
|
|
106
|
+
loading,
|
|
107
|
+
disabled,
|
|
108
|
+
"with-sub": action.subname
|
|
109
|
+
}), className, {
|
|
110
|
+
[BORDER_BOTTOM]: showBorder
|
|
111
|
+
}],
|
|
112
|
+
"onClick": onClick
|
|
113
|
+
}, [renderActionContent(action, index)]);
|
|
114
|
+
};
|
|
115
|
+
const renderDescription = () => {
|
|
116
|
+
if (props.description || slots.description) {
|
|
117
|
+
const content = slots.description ? slots.description() : props.description;
|
|
118
|
+
return _createVNode("div", {
|
|
119
|
+
"class": bem("description", {
|
|
120
|
+
custom: !!slots.description
|
|
121
|
+
})
|
|
122
|
+
}, [content]);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
return () => _createVNode(Popup, _mergeProps({
|
|
126
|
+
"class": bem(),
|
|
127
|
+
"position": "bottom",
|
|
128
|
+
"onUpdate:show": updateShow
|
|
129
|
+
}, pick(props, popupInheritKeys)), {
|
|
130
|
+
default: () => {
|
|
131
|
+
var _a;
|
|
132
|
+
return [renderHeader(), renderDescription(), _createVNode("div", {
|
|
133
|
+
"class": bem("content")
|
|
134
|
+
}, [props.actions.map(renderAction), (_a = slots.default) == null ? void 0 : _a.call(slots)]), renderCancel()];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
actionSheetProps,
|
|
141
|
+
stdin_default as default
|
|
142
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-action-sheet-max-height: 80%;--zt-action-sheet-header-height: 44px;--zt-action-sheet-header-font-size: var(--zt-font-size-lg);--zt-action-sheet-description-color: var(--zt-text-color-a6);--zt-action-sheet-description-font-size: var(--zt-font-size-md);--zt-action-sheet-description-line-height: var(--zt-line-height-md);--zt-action-sheet-item-background: var(--zt-background-2);--zt-action-sheet-item-font-size: var(--zt-font-size-lg);--zt-action-sheet-item-line-height: 24px;--zt-action-sheet-item-text-color: var(--zt-text-color);--zt-action-sheet-item-disabled-text-color: var(--zt-text-color-a2);--zt-action-sheet-subname-color: var(--zt-text-color-a6);--zt-action-sheet-subname-font-size: var(--zt-font-size-sm);--zt-action-sheet-subname-line-height: var(--zt-line-height-xs);--zt-action-sheet-close-icon-size: 22px;--zt-action-sheet-close-icon-color: var(--zt-gray-5);--zt-action-sheet-close-icon-padding: 0 var(--zt-padding-md);--zt-action-sheet-cancel-text-color: var(--zt-text-color);--zt-action-sheet-loading-icon-size: 16px}.zt-action-sheet{display:flex;flex-direction:column;max-height:var(--zt-action-sheet-max-height);overflow:hidden;color:var(--zt-action-sheet-item-text-color)}.zt-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.zt-action-sheet__item,.zt-action-sheet__cancel{display:block;width:100%;padding:10px var(--zt-padding-md);font-size:var(--zt-action-sheet-item-font-size);background:var(--zt-action-sheet-item-background);border:none;cursor:pointer}.zt-action-sheet__item{line-height:var(--zt-action-sheet-item-line-height)}.zt-action-sheet__item:active{background-color:var(--zt-gray-a04)}.zt-action-sheet__item--loading,.zt-action-sheet__item--disabled{color:var(--zt-action-sheet-item-disabled-text-color)}.zt-action-sheet__item--loading:active,.zt-action-sheet__item--disabled:active{background-color:var(--zt-action-sheet-item-background)}.zt-action-sheet__item--disabled{cursor:not-allowed}.zt-action-sheet__item--loading{cursor:default}.zt-action-sheet__item--with-sub{padding-top:8px;padding-bottom:8px}.zt-action-sheet__cancel{padding:8px 16px;flex-shrink:0;box-sizing:border-box;color:var(--zt-action-sheet-cancel-text-color)}.zt-action-sheet__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:16px;color:var(--zt-text-color);line-height:24px}.zt-action-sheet__cancel-btn:active{opacity:var(--zt-active-opacity)}.zt-action-sheet__subname{margin-top:var(--zt-padding-xxs);color:var(--zt-action-sheet-subname-color);font-size:var(--zt-action-sheet-subname-font-size);line-height:var(--zt-action-sheet-subname-line-height)}.zt-action-sheet__header{flex-shrink:0;font-weight:var(--zt-font-bold);font-size:var(--zt-action-sheet-header-font-size);line-height:var(--zt-action-sheet-header-height);text-align:center}.zt-action-sheet__description{position:relative;flex-shrink:0;padding:12px var(--zt-padding-md);color:var(--zt-action-sheet-description-color);font-size:var(--zt-action-sheet-description-font-size);line-height:var(--zt-action-sheet-description-line-height);text-align:center}.zt-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-action-sheet__description--custom{padding:0}.zt-action-sheet__loading-icon .zt-loading__spinner{width:var(--zt-action-sheet-loading-icon-size);height:var(--zt-action-sheet-loading-icon-size)}.zt-action-sheet__close{position:absolute;top:0;right:0;padding:var(--zt-action-sheet-close-icon-padding);color:var(--zt-action-sheet-close-icon-color);font-size:var(--zt-action-sheet-close-icon-size);line-height:inherit}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
export declare const ActionSheet: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
show: BooleanConstructor;
|
|
3
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
4
|
+
overlay: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: true;
|
|
7
|
+
};
|
|
8
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
10
|
+
lockScroll: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: true;
|
|
13
|
+
};
|
|
14
|
+
lazyRender: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: true;
|
|
17
|
+
};
|
|
18
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
19
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
20
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
21
|
+
transitionAppear: BooleanConstructor;
|
|
22
|
+
closeOnClickOverlay: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: true;
|
|
25
|
+
};
|
|
26
|
+
} & {
|
|
27
|
+
title: StringConstructor;
|
|
28
|
+
round: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: true;
|
|
31
|
+
};
|
|
32
|
+
actions: {
|
|
33
|
+
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
|
|
34
|
+
default: () => import("./ActionSheet").ActionSheetAction[];
|
|
35
|
+
};
|
|
36
|
+
closeIcon: {
|
|
37
|
+
type: import("vue").PropType<string>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
closeable: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: true;
|
|
43
|
+
};
|
|
44
|
+
cancelText: StringConstructor;
|
|
45
|
+
description: StringConstructor;
|
|
46
|
+
closeOnPopstate: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: true;
|
|
49
|
+
};
|
|
50
|
+
closeOnClickAction: BooleanConstructor;
|
|
51
|
+
safeAreaInsetBottom: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: true;
|
|
54
|
+
};
|
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "cancel")[], "select" | "update:show" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
show: BooleanConstructor;
|
|
57
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
|
58
|
+
overlay: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: true;
|
|
61
|
+
};
|
|
62
|
+
duration: (NumberConstructor | StringConstructor)[];
|
|
63
|
+
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
64
|
+
lockScroll: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: true;
|
|
67
|
+
};
|
|
68
|
+
lazyRender: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: true;
|
|
71
|
+
};
|
|
72
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
73
|
+
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
74
|
+
overlayClass: import("vue").PropType<unknown>;
|
|
75
|
+
transitionAppear: BooleanConstructor;
|
|
76
|
+
closeOnClickOverlay: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: true;
|
|
79
|
+
};
|
|
80
|
+
} & {
|
|
81
|
+
title: StringConstructor;
|
|
82
|
+
round: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: true;
|
|
85
|
+
};
|
|
86
|
+
actions: {
|
|
87
|
+
type: import("vue").PropType<import("./ActionSheet").ActionSheetAction[]>;
|
|
88
|
+
default: () => import("./ActionSheet").ActionSheetAction[];
|
|
89
|
+
};
|
|
90
|
+
closeIcon: {
|
|
91
|
+
type: import("vue").PropType<string>;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
closeable: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: true;
|
|
97
|
+
};
|
|
98
|
+
cancelText: StringConstructor;
|
|
99
|
+
description: StringConstructor;
|
|
100
|
+
closeOnPopstate: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: true;
|
|
103
|
+
};
|
|
104
|
+
closeOnClickAction: BooleanConstructor;
|
|
105
|
+
safeAreaInsetBottom: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: true;
|
|
108
|
+
};
|
|
109
|
+
}>> & {
|
|
110
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
show: boolean;
|
|
115
|
+
overlay: boolean;
|
|
116
|
+
lockScroll: boolean;
|
|
117
|
+
lazyRender: boolean;
|
|
118
|
+
transitionAppear: boolean;
|
|
119
|
+
closeOnClickOverlay: boolean;
|
|
120
|
+
round: boolean;
|
|
121
|
+
closeIcon: string;
|
|
122
|
+
closeable: boolean;
|
|
123
|
+
closeOnPopstate: boolean;
|
|
124
|
+
safeAreaInsetBottom: boolean;
|
|
125
|
+
actions: import("./ActionSheet").ActionSheetAction[];
|
|
126
|
+
closeOnClickAction: boolean;
|
|
127
|
+
}>>;
|
|
128
|
+
export default ActionSheet;
|
|
129
|
+
export { actionSheetProps } from './ActionSheet';
|
|
130
|
+
export type { ActionSheetProps, ActionSheetAction } from './ActionSheet';
|
|
131
|
+
declare module 'vue' {
|
|
132
|
+
interface GlobalComponents {
|
|
133
|
+
ZtActionSheet: typeof ActionSheet;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
|
2
|
+
import _ActionSheet from "./ActionSheet.mjs";
|
|
3
|
+
const ActionSheet = withInstall(_ActionSheet);
|
|
4
|
+
var stdin_default = ActionSheet;
|
|
5
|
+
import { actionSheetProps } from "./ActionSheet.mjs";
|
|
6
|
+
export {
|
|
7
|
+
ActionSheet,
|
|
8
|
+
actionSheetProps,
|
|
9
|
+
stdin_default as default
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { AvatarShape, AvatarSize } from './types';
|
|
3
|
+
declare const avatarProps: {
|
|
4
|
+
src: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
type: import("vue").PropType<AvatarSize>;
|
|
10
|
+
default: AvatarSize;
|
|
11
|
+
};
|
|
12
|
+
shape: {
|
|
13
|
+
type: import("vue").PropType<AvatarShape>;
|
|
14
|
+
default: AvatarShape;
|
|
15
|
+
};
|
|
16
|
+
text: StringConstructor;
|
|
17
|
+
textBgColor: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
export declare type AvatarProps = ExtractPropTypes<typeof avatarProps>;
|
|
20
|
+
declare const _default: import("vue").DefineComponent<{
|
|
21
|
+
src: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
size: {
|
|
26
|
+
type: import("vue").PropType<AvatarSize>;
|
|
27
|
+
default: AvatarSize;
|
|
28
|
+
};
|
|
29
|
+
shape: {
|
|
30
|
+
type: import("vue").PropType<AvatarShape>;
|
|
31
|
+
default: AvatarShape;
|
|
32
|
+
};
|
|
33
|
+
text: StringConstructor;
|
|
34
|
+
textBgColor: StringConstructor;
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
36
|
+
src: {
|
|
37
|
+
type: import("vue").PropType<string>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: import("vue").PropType<AvatarSize>;
|
|
42
|
+
default: AvatarSize;
|
|
43
|
+
};
|
|
44
|
+
shape: {
|
|
45
|
+
type: import("vue").PropType<AvatarShape>;
|
|
46
|
+
default: AvatarShape;
|
|
47
|
+
};
|
|
48
|
+
text: StringConstructor;
|
|
49
|
+
textBgColor: StringConstructor;
|
|
50
|
+
}>>, {
|
|
51
|
+
shape: AvatarShape;
|
|
52
|
+
src: string;
|
|
53
|
+
size: AvatarSize;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { computed, defineComponent } from "vue";
|
|
3
|
+
import { createNamespace, makeStringProp } from "../utils/index.mjs";
|
|
4
|
+
import ZtImage from "../image/index.mjs";
|
|
5
|
+
const [name, bem] = createNamespace("avatar");
|
|
6
|
+
const avatarProps = {
|
|
7
|
+
src: makeStringProp(""),
|
|
8
|
+
size: makeStringProp("medium"),
|
|
9
|
+
shape: makeStringProp("square"),
|
|
10
|
+
text: String,
|
|
11
|
+
textBgColor: String
|
|
12
|
+
};
|
|
13
|
+
var stdin_default = defineComponent({
|
|
14
|
+
name,
|
|
15
|
+
props: avatarProps,
|
|
16
|
+
setup(props) {
|
|
17
|
+
const headText = computed(() => {
|
|
18
|
+
var _a;
|
|
19
|
+
if (props.text) {
|
|
20
|
+
const len = ((_a = props == null ? void 0 : props.text) == null ? void 0 : _a.length) || 0;
|
|
21
|
+
if (len === 1) {
|
|
22
|
+
return props.text;
|
|
23
|
+
} else if (len > 1) {
|
|
24
|
+
return props.text.substring(len - 2, 2);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return "";
|
|
28
|
+
});
|
|
29
|
+
const classArr = computed(() => {
|
|
30
|
+
const arr = [];
|
|
31
|
+
if (props.size) {
|
|
32
|
+
arr.push(props.size);
|
|
33
|
+
}
|
|
34
|
+
arr.push(props.shape);
|
|
35
|
+
return arr;
|
|
36
|
+
});
|
|
37
|
+
const style = computed(() => {
|
|
38
|
+
if (props.textBgColor) {
|
|
39
|
+
return {
|
|
40
|
+
backgroundColor: props.textBgColor
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const renderText = () => _createVNode("div", {
|
|
45
|
+
"class": bem("img", classArr.value),
|
|
46
|
+
"style": style.value
|
|
47
|
+
}, [headText.value]);
|
|
48
|
+
return () => {
|
|
49
|
+
if (!props.src) {
|
|
50
|
+
return renderText();
|
|
51
|
+
}
|
|
52
|
+
return _createVNode(ZtImage, {
|
|
53
|
+
"round": props.shape === "round",
|
|
54
|
+
"class": bem("img", classArr.value),
|
|
55
|
+
"style": style.value,
|
|
56
|
+
"src": props.src
|
|
57
|
+
}, {
|
|
58
|
+
error: renderText()
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
stdin_default as default
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-avatar-background-color: var(--zt-blue);--zt-avatar-color: var(--zt-white);--zt-avatar-size-small: 32px;--zt-avatar-font-size-small: 12px;--zt-avatar-size-medium: 48px;--zt-avatar-font-size-medium: 16px;--zt-avatar-size-large: 60px;--zt-avatar-font-size-large: 20px;--zt-avatar-square-radius: 4px}.zt-avatar{font-weight:700;display:flex;justify-content:center;align-items:center}.zt-avatar__img{background-color:var(--zt-avatar-background-color);color:var(--zt-avatar-color);text-align:center}.zt-avatar__img--small{width:var(--zt-avatar-size-small);height:var(--zt-avatar-size-small);font-size:var(--zt-avatar-font-size-small);line-height:var(--zt-avatar-size-small)}.zt-avatar__img--medium{width:var(--zt-avatar-size-medium);height:var(--zt-avatar-size-medium);font-size:var(--zt-avatar-font-size-medium);line-height:var(--zt-avatar-size-medium)}.zt-avatar__img--large{width:var(--zt-avatar-size-large);height:var(--zt-avatar-size-large);font-size:var(--zt-avatar-font-size-large);line-height:var(--zt-avatar-size-large)}.zt-avatar__img--square{border-radius:var(--zt-avatar-square-radius)}.zt-avatar__img--round{border-radius:var(--zt-radius-max)}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const Avatar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
src: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
size: {
|
|
7
|
+
type: import("vue").PropType<import("./types").AvatarSize>;
|
|
8
|
+
default: import("./types").AvatarSize;
|
|
9
|
+
};
|
|
10
|
+
shape: {
|
|
11
|
+
type: import("vue").PropType<import("./types").AvatarShape>;
|
|
12
|
+
default: import("./types").AvatarShape;
|
|
13
|
+
};
|
|
14
|
+
text: StringConstructor;
|
|
15
|
+
textBgColor: StringConstructor;
|
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
src: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: import("vue").PropType<import("./types").AvatarSize>;
|
|
23
|
+
default: import("./types").AvatarSize;
|
|
24
|
+
};
|
|
25
|
+
shape: {
|
|
26
|
+
type: import("vue").PropType<import("./types").AvatarShape>;
|
|
27
|
+
default: import("./types").AvatarShape;
|
|
28
|
+
};
|
|
29
|
+
text: StringConstructor;
|
|
30
|
+
textBgColor: StringConstructor;
|
|
31
|
+
}>>, {
|
|
32
|
+
shape: import("./types").AvatarShape;
|
|
33
|
+
src: string;
|
|
34
|
+
size: import("./types").AvatarSize;
|
|
35
|
+
}>>;
|
|
36
|
+
export default Avatar;
|
|
37
|
+
export type { AvatarProps } from './Avatar';
|
|
38
|
+
export type { AvatarShape, AvatarSize } from './types';
|
|
39
|
+
declare module 'vue' {
|
|
40
|
+
interface GlobalComponents {
|
|
41
|
+
ZtAvatar: typeof Avatar;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|