zartui 3.0.2 → 3.0.4
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 +59 -0
- package/es/avatar/Avatar.mjs +70 -0
- package/es/avatar/index.css +1 -0
- package/es/avatar/index.d.ts +46 -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 +12 -6
- package/es/badge/Badge.mjs +13 -6
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +8 -4
- 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 +2 -2
- package/es/col/index.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.d.ts +1 -1
- package/es/config-provider/ConfigProvider.mjs +2 -2
- package/es/config-provider/index.d.ts +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 +2 -2
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +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 +3 -2
- 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/empty/index.d.ts +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/Icon.d.ts +1 -1
- package/es/icon/config.mjs +10 -2
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +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 +189 -0
- package/es/image-preview/ImagePreview.mjs +183 -0
- package/es/image-preview/ImagePreviewItem.d.ts +48 -0
- package/es/image-preview/ImagePreviewItem.mjs +266 -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 +140 -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/Loading.d.ts +1 -1
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +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 +86 -0
- package/es/media-picker/util/media-util.mjs +266 -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 +80 -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 +169 -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 +15 -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/Overlay.d.ts +1 -1
- package/es/overlay/index.css +1 -1
- package/es/overlay/index.d.ts +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 +212 -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 +48 -5
- package/es/popup/Popup.mjs +87 -3
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +34 -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 +2 -2
- package/es/row/index.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 +4 -4
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +3 -3
- 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 +28 -11
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +2 -0
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -1
- package/es/swipe-item/index.d.ts +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 +2 -2
- package/es/tab/Tab.mjs +1 -1
- package/es/tab/index.d.ts +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-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 +11 -2
- 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 +5 -0
- package/es/utils/constant.mjs +7 -1
- package/es/utils/create.mjs +4 -1
- package/es/utils/format.d.ts +1 -1
- package/es/utils/mount-component.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 +59 -0
- package/lib/avatar/Avatar.js +95 -0
- package/lib/avatar/index.css +1 -0
- package/lib/avatar/index.d.ts +46 -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 +12 -6
- package/lib/badge/Badge.js +13 -6
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +8 -4
- 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 +2 -2
- package/lib/col/index.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.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.js +2 -2
- package/lib/config-provider/index.d.ts +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 +2 -2
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +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 +3 -2
- 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/empty/index.d.ts +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/Icon.d.ts +1 -1
- package/lib/icon/config.js +10 -2
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +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 +189 -0
- package/lib/image-preview/ImagePreview.js +208 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +48 -0
- package/lib/image-preview/ImagePreviewItem.js +285 -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 +140 -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/Loading.d.ts +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +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 +86 -0
- package/lib/media-picker/util/media-util.js +285 -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 +94 -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 +194 -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 +15 -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/Overlay.d.ts +1 -1
- package/lib/overlay/index.css +1 -1
- package/lib/overlay/index.d.ts +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 +231 -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 +48 -5
- package/lib/popup/Popup.js +86 -2
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +34 -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 +2 -2
- package/lib/row/index.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 +4 -4
- package/lib/stepper/Stepper.js +1 -2
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +3 -3
- 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 +28 -11
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +2 -0
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +1 -1
- package/lib/swipe-item/index.d.ts +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 +2 -2
- package/lib/tab/Tab.js +1 -1
- package/lib/tab/index.d.ts +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-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 +11 -2
- 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 +5 -0
- package/lib/utils/constant.js +7 -1
- package/lib/utils/create.js +4 -1
- package/lib/utils/format.d.ts +1 -1
- package/lib/utils/mount-component.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 +14689 -4998
- package/lib/zartui.es.js +14691 -5000
- package/lib/zartui.js +15878 -5306
- package/lib/zartui.min.js +1 -1
- package/package.json +28 -27
- package/README.md +0 -25
package/es/rate/Rate.mjs
CHANGED
|
@@ -207,7 +207,7 @@ var stdin_default = defineComponent({
|
|
|
207
207
|
"tabindex": props.disabled ? void 0 : 0,
|
|
208
208
|
"aria-disabled": props.disabled,
|
|
209
209
|
"aria-readonly": props.readonly,
|
|
210
|
-
"
|
|
210
|
+
"onTouchstartPassive": onTouchStart,
|
|
211
211
|
"onTouchmove": onTouchMove
|
|
212
212
|
}, [list.value.map(renderStar)]);
|
|
213
213
|
}
|
package/es/rate/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
:root{--zt-rate-icon-size: 20px;--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color: var(--zt-gray-5);--zt-rate-icon-full-color: var(--zt-yellow);--zt-rate-icon-disabled-color: var(--zt-gray-5)}.zt-rate{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:inline-flex;align-items:center}.zt-rate__item{position:relative}.zt-rate__item:not(:last-child){padding-right:var(--zt-rate-icon-gutter)}.zt-rate__icon{display:block;width:1em;color:var(--zt-rate-icon-void-color);font-size:var(--zt-rate-icon-size)}.zt-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.zt-rate__icon--full{color:var(--zt-rate-icon-full-color)}.zt-rate__icon--disabled{color:var(--zt-rate-icon-disabled-color)}.zt-rate--disabled{cursor:not-allowed}.zt-rate--readonly{cursor:default}
|
package/es/rate/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
28
28
|
default: number;
|
|
29
29
|
};
|
|
30
30
|
disabledColor: StringConstructor;
|
|
31
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
32
|
size: (NumberConstructor | StringConstructor)[];
|
|
33
33
|
icon: {
|
|
34
34
|
type: import("vue").PropType<string>;
|
|
@@ -65,11 +65,11 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
65
65
|
disabled: boolean;
|
|
66
66
|
icon: string;
|
|
67
67
|
modelValue: number;
|
|
68
|
-
count: string | number;
|
|
69
68
|
readonly: boolean;
|
|
69
|
+
touchable: boolean;
|
|
70
|
+
count: string | number;
|
|
70
71
|
voidIcon: string;
|
|
71
72
|
allowHalf: boolean;
|
|
72
|
-
touchable: boolean;
|
|
73
73
|
}>>;
|
|
74
74
|
export default Rate;
|
|
75
75
|
export type { RateProps } from './Rate';
|
package/es/row/Row.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, ComputedRef, InjectionKey, ExtractPropTypes } from 'vue';
|
|
1
|
+
import type { PropType, ComputedRef, InjectionKey, ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare type RowSpaces = {
|
|
3
3
|
left?: number;
|
|
4
4
|
right: number;
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
default: number;
|
|
42
42
|
};
|
|
43
43
|
justify: PropType<RowJustify>;
|
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
44
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
45
45
|
tag: {
|
|
46
46
|
type: PropType<keyof HTMLElementTagNameMap>;
|
|
47
47
|
default: keyof HTMLElementTagNameMap;
|
package/es/row/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const Row: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
15
|
justify: import("vue").PropType<import("./Row").RowJustify>;
|
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
tag: {
|
|
18
18
|
type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
|
19
19
|
default: keyof HTMLElementTagNameMap;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { SearchShape } from './types';
|
|
3
|
+
export declare const searchProps: {
|
|
4
|
+
id: StringConstructor;
|
|
5
|
+
name: StringConstructor;
|
|
6
|
+
titleIcon: StringConstructor;
|
|
7
|
+
leftIcon: StringConstructor;
|
|
8
|
+
rightIcon: StringConstructor;
|
|
9
|
+
autofocus: BooleanConstructor;
|
|
10
|
+
clearable: BooleanConstructor;
|
|
11
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
|
12
|
+
formatter: import("vue").PropType<(value: string) => string>;
|
|
13
|
+
clearIcon: {
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
inputAlign: import("vue").PropType<import("../field").FieldTextAlign>;
|
|
22
|
+
placeholder: StringConstructor;
|
|
23
|
+
autocomplete: StringConstructor;
|
|
24
|
+
errorMessage: StringConstructor;
|
|
25
|
+
enterkeyhint: StringConstructor;
|
|
26
|
+
clearTrigger: {
|
|
27
|
+
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
|
28
|
+
default: import("../field").FieldClearTrigger;
|
|
29
|
+
};
|
|
30
|
+
formatTrigger: {
|
|
31
|
+
type: import("vue").PropType<import("../field").FieldFormatTrigger>;
|
|
32
|
+
default: import("../field").FieldFormatTrigger;
|
|
33
|
+
};
|
|
34
|
+
error: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: null;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: null;
|
|
41
|
+
};
|
|
42
|
+
readonly: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: null;
|
|
45
|
+
};
|
|
46
|
+
} & {
|
|
47
|
+
shape: {
|
|
48
|
+
type: import("vue").PropType<SearchShape>;
|
|
49
|
+
default: SearchShape;
|
|
50
|
+
};
|
|
51
|
+
value: StringConstructor;
|
|
52
|
+
label: StringConstructor;
|
|
53
|
+
leftIcon: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
rightIcon: StringConstructor;
|
|
58
|
+
clearable: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: true;
|
|
61
|
+
};
|
|
62
|
+
background: StringConstructor;
|
|
63
|
+
inputBackground: StringConstructor;
|
|
64
|
+
actionText: StringConstructor;
|
|
65
|
+
showAction: BooleanConstructor;
|
|
66
|
+
};
|
|
67
|
+
export declare type SearchProps = ExtractPropTypes<typeof searchProps>;
|
|
68
|
+
declare const _default: import("vue").DefineComponent<{
|
|
69
|
+
id: StringConstructor;
|
|
70
|
+
name: StringConstructor;
|
|
71
|
+
titleIcon: StringConstructor;
|
|
72
|
+
leftIcon: StringConstructor;
|
|
73
|
+
rightIcon: StringConstructor;
|
|
74
|
+
autofocus: BooleanConstructor;
|
|
75
|
+
clearable: BooleanConstructor;
|
|
76
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
|
77
|
+
formatter: import("vue").PropType<(value: string) => string>;
|
|
78
|
+
clearIcon: {
|
|
79
|
+
type: import("vue").PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
modelValue: {
|
|
83
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
inputAlign: import("vue").PropType<import("../field").FieldTextAlign>;
|
|
87
|
+
placeholder: StringConstructor;
|
|
88
|
+
autocomplete: StringConstructor;
|
|
89
|
+
errorMessage: StringConstructor;
|
|
90
|
+
enterkeyhint: StringConstructor;
|
|
91
|
+
clearTrigger: {
|
|
92
|
+
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
|
93
|
+
default: import("../field").FieldClearTrigger;
|
|
94
|
+
};
|
|
95
|
+
formatTrigger: {
|
|
96
|
+
type: import("vue").PropType<import("../field").FieldFormatTrigger>;
|
|
97
|
+
default: import("../field").FieldFormatTrigger;
|
|
98
|
+
};
|
|
99
|
+
error: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: null;
|
|
102
|
+
};
|
|
103
|
+
disabled: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: null;
|
|
106
|
+
};
|
|
107
|
+
readonly: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: null;
|
|
110
|
+
};
|
|
111
|
+
} & {
|
|
112
|
+
shape: {
|
|
113
|
+
type: import("vue").PropType<SearchShape>;
|
|
114
|
+
default: SearchShape;
|
|
115
|
+
};
|
|
116
|
+
value: StringConstructor;
|
|
117
|
+
label: StringConstructor;
|
|
118
|
+
leftIcon: {
|
|
119
|
+
type: import("vue").PropType<string>;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
rightIcon: StringConstructor;
|
|
123
|
+
clearable: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: true;
|
|
126
|
+
};
|
|
127
|
+
background: StringConstructor;
|
|
128
|
+
inputBackground: StringConstructor;
|
|
129
|
+
actionText: StringConstructor;
|
|
130
|
+
showAction: BooleanConstructor;
|
|
131
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "focus" | "blur" | "clear" | "clickInput" | "clickRightIcon" | "update:modelValue" | "cancel")[], "search" | "focus" | "blur" | "clear" | "clickInput" | "clickRightIcon" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
132
|
+
id: StringConstructor;
|
|
133
|
+
name: StringConstructor;
|
|
134
|
+
titleIcon: StringConstructor;
|
|
135
|
+
leftIcon: StringConstructor;
|
|
136
|
+
rightIcon: StringConstructor;
|
|
137
|
+
autofocus: BooleanConstructor;
|
|
138
|
+
clearable: BooleanConstructor;
|
|
139
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
|
140
|
+
formatter: import("vue").PropType<(value: string) => string>;
|
|
141
|
+
clearIcon: {
|
|
142
|
+
type: import("vue").PropType<string>;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
modelValue: {
|
|
146
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
inputAlign: import("vue").PropType<import("../field").FieldTextAlign>;
|
|
150
|
+
placeholder: StringConstructor;
|
|
151
|
+
autocomplete: StringConstructor;
|
|
152
|
+
errorMessage: StringConstructor;
|
|
153
|
+
enterkeyhint: StringConstructor;
|
|
154
|
+
clearTrigger: {
|
|
155
|
+
type: import("vue").PropType<import("../field").FieldClearTrigger>;
|
|
156
|
+
default: import("../field").FieldClearTrigger;
|
|
157
|
+
};
|
|
158
|
+
formatTrigger: {
|
|
159
|
+
type: import("vue").PropType<import("../field").FieldFormatTrigger>;
|
|
160
|
+
default: import("../field").FieldFormatTrigger;
|
|
161
|
+
};
|
|
162
|
+
error: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: null;
|
|
165
|
+
};
|
|
166
|
+
disabled: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: null;
|
|
169
|
+
};
|
|
170
|
+
readonly: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: null;
|
|
173
|
+
};
|
|
174
|
+
} & {
|
|
175
|
+
shape: {
|
|
176
|
+
type: import("vue").PropType<SearchShape>;
|
|
177
|
+
default: SearchShape;
|
|
178
|
+
};
|
|
179
|
+
value: StringConstructor;
|
|
180
|
+
label: StringConstructor;
|
|
181
|
+
leftIcon: {
|
|
182
|
+
type: import("vue").PropType<string>;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
rightIcon: StringConstructor;
|
|
186
|
+
clearable: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: true;
|
|
189
|
+
};
|
|
190
|
+
background: StringConstructor;
|
|
191
|
+
inputBackground: StringConstructor;
|
|
192
|
+
actionText: StringConstructor;
|
|
193
|
+
showAction: BooleanConstructor;
|
|
194
|
+
}>> & {
|
|
195
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
196
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
197
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
198
|
+
onClickInput?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
|
200
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
autofocus: boolean;
|
|
205
|
+
disabled: boolean;
|
|
206
|
+
shape: SearchShape;
|
|
207
|
+
leftIcon: string;
|
|
208
|
+
clearable: boolean;
|
|
209
|
+
clearIcon: string;
|
|
210
|
+
modelValue: string | number;
|
|
211
|
+
clearTrigger: import("../field").FieldClearTrigger;
|
|
212
|
+
formatTrigger: import("../field").FieldFormatTrigger;
|
|
213
|
+
error: boolean;
|
|
214
|
+
readonly: boolean;
|
|
215
|
+
showAction: boolean;
|
|
216
|
+
}>;
|
|
217
|
+
export default _default;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { ref, defineComponent } from "vue";
|
|
3
|
+
import { pick, extend, truthProp, preventDefault, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
4
|
+
import { fieldSharedProps } from "../field/Field.mjs";
|
|
5
|
+
import { useId } from "../composables/use-id.mjs";
|
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
|
7
|
+
import { Field } from "../field/index.mjs";
|
|
8
|
+
const [name, bem] = createNamespace("search");
|
|
9
|
+
const searchProps = extend({}, fieldSharedProps, {
|
|
10
|
+
shape: makeStringProp("round"),
|
|
11
|
+
value: String,
|
|
12
|
+
label: String,
|
|
13
|
+
leftIcon: makeStringProp("search"),
|
|
14
|
+
rightIcon: String,
|
|
15
|
+
clearable: truthProp,
|
|
16
|
+
background: String,
|
|
17
|
+
inputBackground: String,
|
|
18
|
+
actionText: String,
|
|
19
|
+
showAction: Boolean
|
|
20
|
+
});
|
|
21
|
+
var stdin_default = defineComponent({
|
|
22
|
+
name,
|
|
23
|
+
props: searchProps,
|
|
24
|
+
emits: [
|
|
25
|
+
"blur",
|
|
26
|
+
"focus",
|
|
27
|
+
"clear",
|
|
28
|
+
"search",
|
|
29
|
+
"cancel",
|
|
30
|
+
"clickInput",
|
|
31
|
+
"clickRightIcon",
|
|
32
|
+
"update:modelValue"
|
|
33
|
+
],
|
|
34
|
+
setup(props, {
|
|
35
|
+
emit,
|
|
36
|
+
slots,
|
|
37
|
+
attrs
|
|
38
|
+
}) {
|
|
39
|
+
const id = useId();
|
|
40
|
+
const filedRef = ref();
|
|
41
|
+
const onKeypress = (event) => {
|
|
42
|
+
const ENTER_CODE = 13;
|
|
43
|
+
if (event.keyCode === ENTER_CODE) {
|
|
44
|
+
preventDefault(event);
|
|
45
|
+
emit("search", props.modelValue);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
function onActionSearch() {
|
|
49
|
+
if (slots.action) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
emit("search", props.modelValue);
|
|
53
|
+
}
|
|
54
|
+
const getInputId = () => props.id || `${id}-input`;
|
|
55
|
+
const renderLabel = () => {
|
|
56
|
+
if (slots.label || props.label) {
|
|
57
|
+
return _createVNode("label", {
|
|
58
|
+
"class": bem("label"),
|
|
59
|
+
"for": getInputId()
|
|
60
|
+
}, [slots.label ? slots.label() : props.label]);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const renderAction = () => {
|
|
64
|
+
if (props.showAction) {
|
|
65
|
+
const text = props.actionText || "\u641C\u7D22";
|
|
66
|
+
return slots.action ? slots.action() : _createVNode("div", {
|
|
67
|
+
"class": bem("action"),
|
|
68
|
+
"role": "button",
|
|
69
|
+
"tabindex": 0,
|
|
70
|
+
"onClick": onActionSearch
|
|
71
|
+
}, [text]);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const blur = () => {
|
|
75
|
+
var _a;
|
|
76
|
+
return (_a = filedRef.value) == null ? void 0 : _a.blur();
|
|
77
|
+
};
|
|
78
|
+
const focus = () => {
|
|
79
|
+
var _a;
|
|
80
|
+
return (_a = filedRef.value) == null ? void 0 : _a.focus();
|
|
81
|
+
};
|
|
82
|
+
const onBlur = (event) => emit("blur", event);
|
|
83
|
+
const onFocus = (event) => emit("focus", event);
|
|
84
|
+
const onClear = (event) => emit("clear", event);
|
|
85
|
+
const onClickInput = (event) => emit("clickInput", event);
|
|
86
|
+
const onClickRightIcon = (event) => emit("clickRightIcon", event);
|
|
87
|
+
const fieldPropNames = Object.keys(fieldSharedProps);
|
|
88
|
+
const direction = "horizontal";
|
|
89
|
+
const renderField = () => {
|
|
90
|
+
const fieldAttrs = extend({}, attrs, pick(props, fieldPropNames), {
|
|
91
|
+
id: getInputId(),
|
|
92
|
+
leftIcon: props.leftIcon,
|
|
93
|
+
rightIcon: props.rightIcon,
|
|
94
|
+
direction
|
|
95
|
+
});
|
|
96
|
+
const onInput = (value) => emit("update:modelValue", value);
|
|
97
|
+
return _createVNode(Field, _mergeProps({
|
|
98
|
+
"class": bem("field"),
|
|
99
|
+
"ref": filedRef,
|
|
100
|
+
"type": "search",
|
|
101
|
+
"border": false,
|
|
102
|
+
"onBlur": onBlur,
|
|
103
|
+
"onFocus": onFocus,
|
|
104
|
+
"onClear": onClear,
|
|
105
|
+
"onKeypress": onKeypress,
|
|
106
|
+
"onClickInput": onClickInput,
|
|
107
|
+
"onClickRightIcon": onClickRightIcon,
|
|
108
|
+
"onUpdate:modelValue": onInput
|
|
109
|
+
}, fieldAttrs), pick(slots, ["left-icon", "right-icon"]));
|
|
110
|
+
};
|
|
111
|
+
useExpose({
|
|
112
|
+
focus,
|
|
113
|
+
blur
|
|
114
|
+
});
|
|
115
|
+
return () => {
|
|
116
|
+
var _a;
|
|
117
|
+
return _createVNode("div", {
|
|
118
|
+
"class": bem({
|
|
119
|
+
"show-action": props.showAction
|
|
120
|
+
}),
|
|
121
|
+
"style": {
|
|
122
|
+
background: props.background
|
|
123
|
+
}
|
|
124
|
+
}, [(_a = slots.left) == null ? void 0 : _a.call(slots), _createVNode("div", {
|
|
125
|
+
"class": bem("content", props.shape),
|
|
126
|
+
"style": {
|
|
127
|
+
background: props.inputBackground
|
|
128
|
+
}
|
|
129
|
+
}, [renderLabel(), renderField()]), renderAction()]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
stdin_default as default,
|
|
135
|
+
searchProps
|
|
136
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-search-padding: 4px var(--zt-padding-md);--zt-search-background: transparent;--zt-search-content-background: var(--zt-gray-a04);--zt-search-input-height: 20px;--zt-search-label-padding: 8px 0 8px 12px;--zt-search-label-color: var(--zt-text-color);--zt-search-label-font-size: var(--zt-font-size-md);--zt-search-left-icon-color: var(--zt-gray-a4);--zt-search-action-padding: 0 var(--zt-padding-md);--zt-search-action-text-color: var(--zt-blue);--zt-search-action-font-size: var(--zt-font-size-md);--zt-search-border-radius-sm: 2px;--zt-search-content-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a1);--zt-search-content-border-color: linear-gradient(#fff, rgba(255, 255, 255, .4));--zt-search-round-border: none;--zt-search-placeholder: var(--zt-gray-a2)}.zt-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--zt-search-padding);background-color:var(--zt-search-background)}.zt-search__content{display:flex;flex:1;background-color:var(--zt-search-content-background);border-radius:var(--zt-radius-sm);box-shadow:var(--zt-search-content-box-shadow);padding-left:var(--zt-padding-sm)}.zt-search__content--round{border-radius:var(--zt-radius-max);border:var(--zt-search-round-border)}.zt-search__label{padding:var(--zt-search-label-padding);color:var(--zt-search-label-color);font-size:var(--zt-search-label-font-size);line-height:var(--zt-search-input-height)}.zt-search__field{width:100%}.zt-search .zt-cell--horizontal{background:transparent;padding:8px 16px 8px 0}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:var(--zt-blue)}.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search input::-webkit-input-placeholder{color:var(--zt-search-placeholder)}.zt-search input::placeholder{color:var(--zt-search-placeholder)}.zt-search__action{padding:var(--zt-search-action-padding);color:var(--zt-search-action-text-color);font-size:var(--zt-search-action-font-size);font-weight:400;height:36px;cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;justify-content:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}.zt-theme-dark{--zt-search-content-background: var(--zt-background);--zt-search-content-box-shadow: inset 4px 4px 8px 0 var(--zt-background);--zt-search-round-border: 1px solid rgba(15, 155, 255, .2)}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { SearchProps } from './Search';
|
|
2
|
+
export declare const Search: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
3
|
+
id: StringConstructor;
|
|
4
|
+
name: StringConstructor;
|
|
5
|
+
titleIcon: StringConstructor;
|
|
6
|
+
leftIcon: StringConstructor;
|
|
7
|
+
rightIcon: StringConstructor;
|
|
8
|
+
autofocus: BooleanConstructor;
|
|
9
|
+
clearable: BooleanConstructor;
|
|
10
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
formatter: import("vue").PropType<(value: string) => string>;
|
|
12
|
+
clearIcon: {
|
|
13
|
+
type: import("vue").PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
|
21
|
+
placeholder: StringConstructor;
|
|
22
|
+
autocomplete: StringConstructor;
|
|
23
|
+
errorMessage: StringConstructor;
|
|
24
|
+
enterkeyhint: StringConstructor;
|
|
25
|
+
clearTrigger: {
|
|
26
|
+
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
|
27
|
+
default: import("..").FieldClearTrigger;
|
|
28
|
+
};
|
|
29
|
+
formatTrigger: {
|
|
30
|
+
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
|
31
|
+
default: import("..").FieldFormatTrigger;
|
|
32
|
+
};
|
|
33
|
+
error: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: null;
|
|
40
|
+
};
|
|
41
|
+
readonly: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
} & {
|
|
46
|
+
shape: {
|
|
47
|
+
type: import("vue").PropType<import("./types").SearchShape>;
|
|
48
|
+
default: import("./types").SearchShape;
|
|
49
|
+
};
|
|
50
|
+
value: StringConstructor;
|
|
51
|
+
label: StringConstructor;
|
|
52
|
+
leftIcon: {
|
|
53
|
+
type: import("vue").PropType<string>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
rightIcon: StringConstructor;
|
|
57
|
+
clearable: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: true;
|
|
60
|
+
};
|
|
61
|
+
background: StringConstructor;
|
|
62
|
+
inputBackground: StringConstructor;
|
|
63
|
+
actionText: StringConstructor;
|
|
64
|
+
showAction: BooleanConstructor;
|
|
65
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "focus" | "blur" | "clear" | "clickInput" | "clickRightIcon" | "update:modelValue" | "cancel")[], "search" | "focus" | "blur" | "clear" | "clickInput" | "clickRightIcon" | "update:modelValue" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
id: StringConstructor;
|
|
67
|
+
name: StringConstructor;
|
|
68
|
+
titleIcon: StringConstructor;
|
|
69
|
+
leftIcon: StringConstructor;
|
|
70
|
+
rightIcon: StringConstructor;
|
|
71
|
+
autofocus: BooleanConstructor;
|
|
72
|
+
clearable: BooleanConstructor;
|
|
73
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
|
74
|
+
formatter: import("vue").PropType<(value: string) => string>;
|
|
75
|
+
clearIcon: {
|
|
76
|
+
type: import("vue").PropType<string>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
modelValue: {
|
|
80
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
|
|
84
|
+
placeholder: StringConstructor;
|
|
85
|
+
autocomplete: StringConstructor;
|
|
86
|
+
errorMessage: StringConstructor;
|
|
87
|
+
enterkeyhint: StringConstructor;
|
|
88
|
+
clearTrigger: {
|
|
89
|
+
type: import("vue").PropType<import("..").FieldClearTrigger>;
|
|
90
|
+
default: import("..").FieldClearTrigger;
|
|
91
|
+
};
|
|
92
|
+
formatTrigger: {
|
|
93
|
+
type: import("vue").PropType<import("..").FieldFormatTrigger>;
|
|
94
|
+
default: import("..").FieldFormatTrigger;
|
|
95
|
+
};
|
|
96
|
+
error: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: null;
|
|
99
|
+
};
|
|
100
|
+
disabled: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: null;
|
|
103
|
+
};
|
|
104
|
+
readonly: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: null;
|
|
107
|
+
};
|
|
108
|
+
} & {
|
|
109
|
+
shape: {
|
|
110
|
+
type: import("vue").PropType<import("./types").SearchShape>;
|
|
111
|
+
default: import("./types").SearchShape;
|
|
112
|
+
};
|
|
113
|
+
value: StringConstructor;
|
|
114
|
+
label: StringConstructor;
|
|
115
|
+
leftIcon: {
|
|
116
|
+
type: import("vue").PropType<string>;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
rightIcon: StringConstructor;
|
|
120
|
+
clearable: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: true;
|
|
123
|
+
};
|
|
124
|
+
background: StringConstructor;
|
|
125
|
+
inputBackground: StringConstructor;
|
|
126
|
+
actionText: StringConstructor;
|
|
127
|
+
showAction: BooleanConstructor;
|
|
128
|
+
}>> & {
|
|
129
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
132
|
+
onClickInput?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
|
134
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
autofocus: boolean;
|
|
139
|
+
disabled: boolean;
|
|
140
|
+
shape: import("./types").SearchShape;
|
|
141
|
+
leftIcon: string;
|
|
142
|
+
clearable: boolean;
|
|
143
|
+
clearIcon: string;
|
|
144
|
+
modelValue: string | number;
|
|
145
|
+
clearTrigger: import("..").FieldClearTrigger;
|
|
146
|
+
formatTrigger: import("..").FieldFormatTrigger;
|
|
147
|
+
error: boolean;
|
|
148
|
+
readonly: boolean;
|
|
149
|
+
showAction: boolean;
|
|
150
|
+
}>>;
|
|
151
|
+
export default Search;
|
|
152
|
+
export { searchProps } from './Search';
|
|
153
|
+
export type { SearchProps };
|
|
154
|
+
export type { SearchShape, SearchInstance } from './types';
|
|
155
|
+
declare module 'vue' {
|
|
156
|
+
interface GlobalComponents {
|
|
157
|
+
ZtSearch: typeof Search;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
|
2
|
+
import _Search from "./Search.mjs";
|
|
3
|
+
const Search = withInstall(_Search);
|
|
4
|
+
var stdin_default = Search;
|
|
5
|
+
import { searchProps } from "./Search.mjs";
|
|
6
|
+
export {
|
|
7
|
+
Search,
|
|
8
|
+
stdin_default as default,
|
|
9
|
+
searchProps
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { SearchProps } from './Search';
|
|
3
|
+
export declare type SearchShape = 'square' | 'round';
|
|
4
|
+
export declare type SearchExpose = {
|
|
5
|
+
focus: () => void;
|
|
6
|
+
blur: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare type SearchInstance = ComponentPublicInstance<SearchProps, SearchExpose>;
|
|
File without changes
|