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,126 @@
|
|
|
1
|
+
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
show: BooleanConstructor;
|
|
4
|
+
round: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: true;
|
|
7
|
+
};
|
|
8
|
+
closeOnPopstate: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: true;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
type: import("vue").PropType<import("./types").CascaderOption[]>;
|
|
14
|
+
default: () => import("./types").CascaderOption[];
|
|
15
|
+
};
|
|
16
|
+
closeable: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: true;
|
|
19
|
+
};
|
|
20
|
+
swipeable: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: true;
|
|
23
|
+
};
|
|
24
|
+
popup: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: true;
|
|
27
|
+
};
|
|
28
|
+
teleport: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
position: {
|
|
33
|
+
type: import("vue").PropType<import("..").PopupPosition>;
|
|
34
|
+
default: import("..").PopupPosition;
|
|
35
|
+
};
|
|
36
|
+
showHeader: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: true;
|
|
39
|
+
};
|
|
40
|
+
modelValue: (NumberConstructor | StringConstructor)[];
|
|
41
|
+
fieldNames: import("vue").PropType<import("./types").CascaderFieldNames>;
|
|
42
|
+
placeholder: StringConstructor;
|
|
43
|
+
activeColor: StringConstructor;
|
|
44
|
+
safeAreaInsetTop: BooleanConstructor;
|
|
45
|
+
closeOnClickOverlay: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: true;
|
|
48
|
+
};
|
|
49
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "update:show" | "cancel" | "clickTab" | "finish")[], "update:modelValue" | "change" | "update:show" | "cancel" | "clickTab" | "finish", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
title: StringConstructor;
|
|
51
|
+
show: BooleanConstructor;
|
|
52
|
+
round: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: true;
|
|
55
|
+
};
|
|
56
|
+
closeOnPopstate: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: true;
|
|
59
|
+
};
|
|
60
|
+
options: {
|
|
61
|
+
type: import("vue").PropType<import("./types").CascaderOption[]>;
|
|
62
|
+
default: () => import("./types").CascaderOption[];
|
|
63
|
+
};
|
|
64
|
+
closeable: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: true;
|
|
67
|
+
};
|
|
68
|
+
swipeable: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: true;
|
|
71
|
+
};
|
|
72
|
+
popup: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: true;
|
|
75
|
+
};
|
|
76
|
+
teleport: {
|
|
77
|
+
type: import("vue").PropType<string>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
position: {
|
|
81
|
+
type: import("vue").PropType<import("..").PopupPosition>;
|
|
82
|
+
default: import("..").PopupPosition;
|
|
83
|
+
};
|
|
84
|
+
showHeader: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: true;
|
|
87
|
+
};
|
|
88
|
+
modelValue: (NumberConstructor | StringConstructor)[];
|
|
89
|
+
fieldNames: import("vue").PropType<import("./types").CascaderFieldNames>;
|
|
90
|
+
placeholder: StringConstructor;
|
|
91
|
+
activeColor: StringConstructor;
|
|
92
|
+
safeAreaInsetTop: BooleanConstructor;
|
|
93
|
+
closeOnClickOverlay: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: true;
|
|
96
|
+
};
|
|
97
|
+
}>> & {
|
|
98
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onClickTab?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
onFinish?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
position: import("..").PopupPosition;
|
|
106
|
+
show: boolean;
|
|
107
|
+
teleport: string;
|
|
108
|
+
closeOnClickOverlay: boolean;
|
|
109
|
+
round: boolean;
|
|
110
|
+
closeable: boolean;
|
|
111
|
+
closeOnPopstate: boolean;
|
|
112
|
+
safeAreaInsetTop: boolean;
|
|
113
|
+
popup: boolean;
|
|
114
|
+
swipeable: boolean;
|
|
115
|
+
options: import("./types").CascaderOption[];
|
|
116
|
+
showHeader: boolean;
|
|
117
|
+
}>>;
|
|
118
|
+
export default Cascader;
|
|
119
|
+
export { cascaderProps } from './Cascader';
|
|
120
|
+
export type { CascaderProps } from './Cascader';
|
|
121
|
+
export type { CascaderOption, CascaderFieldNames } from './types';
|
|
122
|
+
declare module 'vue' {
|
|
123
|
+
interface GlobalComponents {
|
|
124
|
+
ZtCascader: typeof Cascader;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var stdin_exports = {};
|
|
25
|
+
__export(stdin_exports, {
|
|
26
|
+
Cascader: () => Cascader,
|
|
27
|
+
cascaderProps: () => import_Cascader2.cascaderProps,
|
|
28
|
+
default: () => stdin_default
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
31
|
+
var import_utils = require("../utils");
|
|
32
|
+
var import_Cascader = __toESM(require("./Cascader"));
|
|
33
|
+
var import_Cascader2 = require("./Cascader");
|
|
34
|
+
const Cascader = (0, import_utils.withInstall)(import_Cascader.default);
|
|
35
|
+
var stdin_default = Cascader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require("../../style/base.css");
|
|
2
|
+
require("../../badge/index.css");
|
|
3
|
+
require("../../icon/index.css");
|
|
4
|
+
require("../../overlay/index.css");
|
|
5
|
+
require("../../popup/index.css");
|
|
6
|
+
require("../../loading/index.css");
|
|
7
|
+
require("../../button/index.css");
|
|
8
|
+
require("../../sticky/index.css");
|
|
9
|
+
require("../../swipe/index.css");
|
|
10
|
+
require("../../swipe-item/index.css");
|
|
11
|
+
require("../../tabs/index.css");
|
|
12
|
+
require("../../tab/index.css");
|
|
13
|
+
require("../../divider/index.css");
|
|
14
|
+
require("../index.css");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Numeric } from '../utils';
|
|
2
|
+
export declare type CascaderOption = {
|
|
3
|
+
text?: string;
|
|
4
|
+
value?: Numeric;
|
|
5
|
+
color?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
children?: CascaderOption[];
|
|
8
|
+
className?: unknown;
|
|
9
|
+
[key: PropertyKey]: any;
|
|
10
|
+
};
|
|
11
|
+
export declare type CascaderTab = {
|
|
12
|
+
options: CascaderOption[];
|
|
13
|
+
selected: CascaderOption | null;
|
|
14
|
+
};
|
|
15
|
+
export declare type CascaderFieldNames = {
|
|
16
|
+
text?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
children?: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var stdin_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
package/lib/cell/Cell.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
|
-
|
|
1
|
+
import type { PropType, CSSProperties, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { CellDirection } from './types';
|
|
3
3
|
export declare type CellArrowDirection = 'up' | 'down' | 'left' | 'right';
|
|
4
4
|
export declare const cellSharedProps: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
leftIcon: StringConstructor;
|
|
6
|
+
titleIcon: StringConstructor;
|
|
7
7
|
title: (NumberConstructor | StringConstructor)[];
|
|
8
|
-
value:
|
|
8
|
+
value: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
9
12
|
label: (NumberConstructor | StringConstructor)[];
|
|
13
|
+
direction: {
|
|
14
|
+
type: PropType<CellDirection>;
|
|
15
|
+
default: CellDirection;
|
|
16
|
+
};
|
|
10
17
|
center: BooleanConstructor;
|
|
11
18
|
isLink: BooleanConstructor;
|
|
12
19
|
border: {
|
|
@@ -24,15 +31,20 @@ export declare const cellSharedProps: {
|
|
|
24
31
|
type: PropType<boolean | null>;
|
|
25
32
|
default: null;
|
|
26
33
|
};
|
|
27
|
-
direction: StringConstructor;
|
|
28
|
-
fullLine: BooleanConstructor;
|
|
29
34
|
};
|
|
30
35
|
declare const cellProps: {
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
leftIcon: StringConstructor;
|
|
37
|
+
titleIcon: StringConstructor;
|
|
33
38
|
title: (NumberConstructor | StringConstructor)[];
|
|
34
|
-
value:
|
|
39
|
+
value: {
|
|
40
|
+
type: PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
35
43
|
label: (NumberConstructor | StringConstructor)[];
|
|
44
|
+
direction: {
|
|
45
|
+
type: PropType<CellDirection>;
|
|
46
|
+
default: CellDirection;
|
|
47
|
+
};
|
|
36
48
|
center: BooleanConstructor;
|
|
37
49
|
isLink: BooleanConstructor;
|
|
38
50
|
border: {
|
|
@@ -50,8 +62,6 @@ declare const cellProps: {
|
|
|
50
62
|
type: PropType<boolean | null>;
|
|
51
63
|
default: null;
|
|
52
64
|
};
|
|
53
|
-
direction: StringConstructor;
|
|
54
|
-
fullLine: BooleanConstructor;
|
|
55
65
|
} & {
|
|
56
66
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
57
67
|
url: StringConstructor;
|
|
@@ -59,11 +69,18 @@ declare const cellProps: {
|
|
|
59
69
|
};
|
|
60
70
|
export declare type CellProps = ExtractPropTypes<typeof cellProps>;
|
|
61
71
|
declare const _default: import("vue").DefineComponent<{
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
leftIcon: StringConstructor;
|
|
73
|
+
titleIcon: StringConstructor;
|
|
64
74
|
title: (NumberConstructor | StringConstructor)[];
|
|
65
|
-
value:
|
|
75
|
+
value: {
|
|
76
|
+
type: PropType<string>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
66
79
|
label: (NumberConstructor | StringConstructor)[];
|
|
80
|
+
direction: {
|
|
81
|
+
type: PropType<CellDirection>;
|
|
82
|
+
default: CellDirection;
|
|
83
|
+
};
|
|
67
84
|
center: BooleanConstructor;
|
|
68
85
|
isLink: BooleanConstructor;
|
|
69
86
|
border: {
|
|
@@ -81,18 +98,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
98
|
type: PropType<boolean | null>;
|
|
82
99
|
default: null;
|
|
83
100
|
};
|
|
84
|
-
direction: StringConstructor;
|
|
85
|
-
fullLine: BooleanConstructor;
|
|
86
101
|
} & {
|
|
87
102
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
88
103
|
url: StringConstructor;
|
|
89
104
|
replace: BooleanConstructor;
|
|
90
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
91
|
-
|
|
92
|
-
|
|
105
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
106
|
+
leftIcon: StringConstructor;
|
|
107
|
+
titleIcon: StringConstructor;
|
|
93
108
|
title: (NumberConstructor | StringConstructor)[];
|
|
94
|
-
value:
|
|
109
|
+
value: {
|
|
110
|
+
type: PropType<string>;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
95
113
|
label: (NumberConstructor | StringConstructor)[];
|
|
114
|
+
direction: {
|
|
115
|
+
type: PropType<CellDirection>;
|
|
116
|
+
default: CellDirection;
|
|
117
|
+
};
|
|
96
118
|
center: BooleanConstructor;
|
|
97
119
|
isLink: BooleanConstructor;
|
|
98
120
|
border: {
|
|
@@ -110,19 +132,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
132
|
type: PropType<boolean | null>;
|
|
111
133
|
default: null;
|
|
112
134
|
};
|
|
113
|
-
direction: StringConstructor;
|
|
114
|
-
fullLine: BooleanConstructor;
|
|
115
135
|
} & {
|
|
116
136
|
to: PropType<import("vue-router").RouteLocationRaw>;
|
|
117
137
|
url: StringConstructor;
|
|
118
138
|
replace: BooleanConstructor;
|
|
119
|
-
}
|
|
139
|
+
}>> & {
|
|
140
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
141
|
+
}, {
|
|
120
142
|
replace: boolean;
|
|
121
143
|
required: boolean;
|
|
144
|
+
value: string;
|
|
145
|
+
direction: CellDirection;
|
|
122
146
|
center: boolean;
|
|
123
|
-
border: boolean;
|
|
124
147
|
isLink: boolean;
|
|
148
|
+
border: boolean;
|
|
125
149
|
clickable: boolean | null;
|
|
126
|
-
fullLine: boolean;
|
|
127
150
|
}>;
|
|
128
151
|
export default _default;
|
package/lib/cell/Cell.js
CHANGED
|
@@ -28,11 +28,12 @@ var import_use_route = require("../composables/use-route");
|
|
|
28
28
|
var import_icon = require("../icon");
|
|
29
29
|
const [name, bem] = (0, import_utils.createNamespace)("cell");
|
|
30
30
|
const cellSharedProps = {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
leftIcon: String,
|
|
32
|
+
titleIcon: String,
|
|
33
33
|
title: import_utils.numericProp,
|
|
34
|
-
value: import_utils.
|
|
34
|
+
value: (0, import_utils.makeStringProp)(""),
|
|
35
35
|
label: import_utils.numericProp,
|
|
36
|
+
direction: (0, import_utils.makeStringProp)("vertical"),
|
|
36
37
|
center: Boolean,
|
|
37
38
|
isLink: Boolean,
|
|
38
39
|
border: import_utils.truthProp,
|
|
@@ -46,16 +47,16 @@ const cellSharedProps = {
|
|
|
46
47
|
clickable: {
|
|
47
48
|
type: Boolean,
|
|
48
49
|
default: null
|
|
49
|
-
}
|
|
50
|
-
direction: String,
|
|
51
|
-
fullLine: Boolean
|
|
50
|
+
}
|
|
52
51
|
};
|
|
53
52
|
const cellProps = (0, import_utils.extend)({}, cellSharedProps, import_use_route.routeProps);
|
|
54
53
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
55
54
|
name,
|
|
56
55
|
props: cellProps,
|
|
56
|
+
emits: ["click"],
|
|
57
57
|
setup(props, {
|
|
58
|
-
slots
|
|
58
|
+
slots,
|
|
59
|
+
emit
|
|
59
60
|
}) {
|
|
60
61
|
const route = (0, import_use_route.useRoute)();
|
|
61
62
|
const renderLabel = () => {
|
|
@@ -66,14 +67,31 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
66
67
|
}, [slots.label ? slots.label() : props.label]);
|
|
67
68
|
}
|
|
68
69
|
};
|
|
70
|
+
const renderTitleIcon = () => {
|
|
71
|
+
if (slots["title-icon"]) {
|
|
72
|
+
return slots["title-icon"]();
|
|
73
|
+
}
|
|
74
|
+
if (props.titleIcon) {
|
|
75
|
+
return (0, import_vue.createVNode)(import_icon.Icon, {
|
|
76
|
+
"name": props.titleIcon,
|
|
77
|
+
"class": bem("title-icon"),
|
|
78
|
+
"classPrefix": props.iconPrefix
|
|
79
|
+
}, null);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
69
82
|
const renderTitle = () => {
|
|
70
83
|
if (slots.title || (0, import_utils.isDef)(props.title)) {
|
|
84
|
+
const hasValue = slots.value || slots.default || props.value;
|
|
85
|
+
const isHorizontal = props.direction === "horizontal";
|
|
71
86
|
return (0, import_vue.createVNode)("div", {
|
|
72
|
-
"class": [bem("title"
|
|
87
|
+
"class": [bem("title", {
|
|
88
|
+
[props.direction]: true,
|
|
89
|
+
"with-value": isHorizontal && hasValue
|
|
90
|
+
}), props.titleClass],
|
|
73
91
|
"style": props.titleStyle
|
|
74
|
-
}, [slots.title ? slots.title() : (0, import_vue.createVNode)("span", {
|
|
75
|
-
"class": bem("title
|
|
76
|
-
}, [props.title]), renderLabel()]);
|
|
92
|
+
}, [slots.title ? slots.title() : [renderTitleIcon(), (0, import_vue.createVNode)("span", {
|
|
93
|
+
"class": bem("title-text")
|
|
94
|
+
}, [props.title])], renderLabel()]);
|
|
77
95
|
}
|
|
78
96
|
};
|
|
79
97
|
const renderRightIcon = () => {
|
|
@@ -89,34 +107,52 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
89
107
|
}, null);
|
|
90
108
|
}
|
|
91
109
|
};
|
|
110
|
+
const onClick = (ignore) => {
|
|
111
|
+
if (ignore) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (props.to || props.url) {
|
|
115
|
+
route();
|
|
116
|
+
} else {
|
|
117
|
+
emit("click");
|
|
118
|
+
}
|
|
119
|
+
};
|
|
92
120
|
const renderValue = () => {
|
|
93
121
|
var _a;
|
|
94
122
|
const slot = slots.value || slots.default;
|
|
95
123
|
const hasValue = slot || (0, import_utils.isDef)(props.value);
|
|
124
|
+
const isHorizontal = props.direction === "horizontal";
|
|
96
125
|
if (hasValue) {
|
|
97
126
|
return (0, import_vue.createVNode)("div", {
|
|
98
|
-
"class": [bem("value"
|
|
127
|
+
"class": [bem("value", {
|
|
128
|
+
[props.direction]: true
|
|
129
|
+
}), props.valueClass],
|
|
130
|
+
"onClick": () => onClick(isHorizontal)
|
|
99
131
|
}, [slot ? slot() : (0, import_vue.createVNode)("span", {
|
|
100
132
|
"class": bem("value-text")
|
|
101
133
|
}, [props.value]), (_a = slots.extra) == null ? void 0 : _a.call(slots), renderRightIcon()]);
|
|
102
134
|
}
|
|
103
135
|
};
|
|
104
136
|
const renderLeftIcon = () => {
|
|
105
|
-
if (slots
|
|
106
|
-
return slots
|
|
137
|
+
if (slots["left-icon"]) {
|
|
138
|
+
return slots["left-icon"]();
|
|
107
139
|
}
|
|
108
|
-
if (props.
|
|
140
|
+
if (props.leftIcon) {
|
|
109
141
|
return (0, import_vue.createVNode)(import_icon.Icon, {
|
|
110
|
-
"name": props.
|
|
142
|
+
"name": props.leftIcon,
|
|
111
143
|
"class": bem("left-icon"),
|
|
112
144
|
"classPrefix": props.iconPrefix
|
|
113
145
|
}, null);
|
|
114
146
|
}
|
|
115
147
|
};
|
|
148
|
+
const renderBottom = () => {
|
|
149
|
+
if (slots.bottom) {
|
|
150
|
+
return slots.bottom();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
116
153
|
return () => {
|
|
117
154
|
var _a;
|
|
118
155
|
const {
|
|
119
|
-
size,
|
|
120
156
|
center,
|
|
121
157
|
border,
|
|
122
158
|
isLink,
|
|
@@ -129,23 +165,27 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
129
165
|
clickable,
|
|
130
166
|
borderless: !border
|
|
131
167
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
168
|
+
classes[props.direction] = true;
|
|
169
|
+
const hasLeftIcon = !!(slots["left-icon"] || props.leftIcon);
|
|
170
|
+
const renderWrapper = () => {
|
|
171
|
+
if (hasLeftIcon) {
|
|
172
|
+
classes.borderless = true;
|
|
173
|
+
}
|
|
136
174
|
return (0, import_vue.createVNode)("div", {
|
|
137
|
-
"class":
|
|
175
|
+
"class": bem(classes),
|
|
138
176
|
"role": clickable ? "button" : void 0,
|
|
139
177
|
"tabindex": clickable ? 0 : void 0,
|
|
140
|
-
"onClick":
|
|
141
|
-
}, [
|
|
178
|
+
"onClick": () => onClick(props.direction === "vertical")
|
|
179
|
+
}, [renderTitle(), renderValue(), renderBottom()]);
|
|
180
|
+
};
|
|
181
|
+
if (hasLeftIcon) {
|
|
182
|
+
return (0, import_vue.createVNode)("div", {
|
|
183
|
+
"class": [bem("with-left", {
|
|
184
|
+
borderless: !border
|
|
185
|
+
})]
|
|
186
|
+
}, [renderLeftIcon(), renderWrapper()]);
|
|
142
187
|
}
|
|
143
|
-
return (
|
|
144
|
-
"class": bem(classes),
|
|
145
|
-
"role": clickable ? "button" : void 0,
|
|
146
|
-
"tabindex": clickable ? 0 : void 0,
|
|
147
|
-
"onClick": route
|
|
148
|
-
}, [renderLeftIcon(), renderTitle(), renderValue()]);
|
|
188
|
+
return renderWrapper();
|
|
149
189
|
};
|
|
150
190
|
}
|
|
151
191
|
});
|
package/lib/cell/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
:root{--zt-cell-font-size: var(--zt-font-size-md);--zt-cell-line-height: var(--zt-line-height-md);--zt-cell-vertical-padding: 10px;--zt-cell-horizontal-padding: var(--zt-padding-md);--zt-cell-text-color: var(--zt-text-color);--zt-cell-border-color: var(--zt-border-color);--zt-cell-active-color: var(--zt-active-color);--zt-cell-required-color: var(--zt-danger-color);--zt-cell-label-color: var(--zt-gray-a4);--zt-cell-label-font-size: var(--zt-font-size-md);--zt-cell-label-line-height: var(--zt-line-height-md);--zt-cell-label-margin-top: var(--zt-padding-base);--zt-cell-title-color: var(--zt-text-color);--zt-cell-icon-size: var(--zt-cell-line-height);--zt-cell-right-icon-color: var(--zt-text-color-a4);--zt-cell-large-vertical-padding: var(--zt-padding-sm);--zt-cell-large-title-font-size: var(--zt-font-size-lg);--zt-cell-large-label-font-size: var(--zt-font-size-md);--zt-cell-value-height: 44px;--zt-cell-background: var(--zt-background);--zt-cell-value-padding: 12px;--zt-cell-value-radius: 4px;--zt-cell-direction: column;--zt-cell-padding: 16px;--zt-cell-left-icon-size: 48px;--zt-cell-left-icon-radius: 4px;--zt-cell-row-title-max-width: 100px}.zt-cell{position:relative;display:flex;box-sizing:border-box;width:100%;overflow:hidden;color:var(--zt-cell-text-color);font-size:var(--zt-cell-font-size);line-height:var(--zt-cell-line-height);background:var(--zt-cell-background);flex-direction:var(--zt-cell-direction);padding:var(--zt-cell-padding)}.zt-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-cell-border-color);transform:scaleY(.5)}.zt-cell--borderless:after{display:none}.zt-cell__label{color:var(--zt-cell-label-color);line-height:var(--zt-cell-label-line-height);font-size:var(--zt-cell-font-size);flex:1;text-align:right}.zt-cell__value{position:relative;overflow:hidden;vertical-align:middle;word-wrap:break-word;box-sizing:border-box;display:flex;border-radius:var(--zt-cell-value-radius);font-size:var(--zt-cell-font-size);line-height:var(--zt-cell-line-height);word-break:break-all}.zt-cell__value--horizontal{padding:0;flex:1;justify-content:flex-end;align-items:center;text-align:right;background:transparent}.zt-cell__value--vertical{padding:var(--zt-cell-value-padding);background:var(--zt-white)}.zt-cell__value-text{display:inline-block;flex:1}.zt-cell__title{margin-bottom:8px;display:flex;align-items:center}.zt-cell__title--horizontal{padding:0;margin:0;flex:1}.zt-cell__title--with-value{margin-right:8px;max-width:var(--zt-cell-row-title-max-width)}.zt-cell__title-text{font-size:var(--zt-cell-font-size);line-height:var(--zt-cell-line-height);word-break:break-all;display:inline-block;overflow:hidden;flex:1}.zt-cell__title-icon,.zt-cell__right-icon{height:var(--zt-cell-line-height);font-size:var(--zt-cell-icon-size);line-height:var(--zt-cell-line-height)}.zt-cell__left-icon{width:var(--zt-cell-left-icon-size);height:var(--zt-cell-left-icon-size);font-size:var(--zt-cell-left-icon-size);line-height:var(--zt-cell-left-icon-size);margin-right:var(--zt-padding-base)}.zt-cell__right-icon{margin-left:var(--zt-padding-base);color:var(--zt-cell-right-icon-color)}.zt-cell__title-icon{margin-right:var(--zt-padding-base)}.zt-cell__with-left{position:relative;display:flex}.zt-cell__with-left:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-cell-border-color);transform:scaleY(.5)}.zt-cell__with-left--borderless:after{display:none}.zt-cell__left-icon{margin:16px 0 16px 16px}.zt-cell--clickable{cursor:pointer}.zt-cell--clickable .zt-cell__value:active,.zt-cell--clickable.zt-cell--horizontal:active{background-color:var(--zt-cell-active-color)}.zt-cell--required{overflow:visible}.zt-cell--required:before{position:absolute;left:var(--zt-padding-xs);color:var(--zt-cell-required-color);font-size:var(--zt-cell-font-size);content:"*"}.zt-cell--center .zt-cell__value{align-items:center}.zt-cell--horizontal{flex-direction:row;justify-content:space-between;background:var(--zt-white);padding:12px 16px}.zt-cell--horizontal:last-child:after{display:none}
|
package/lib/cell/index.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
leftIcon: StringConstructor;
|
|
3
|
+
titleIcon: StringConstructor;
|
|
4
4
|
title: (NumberConstructor | StringConstructor)[];
|
|
5
|
-
value:
|
|
5
|
+
value: {
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
6
9
|
label: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
direction: {
|
|
11
|
+
type: import("vue").PropType<import("./types").CellDirection>;
|
|
12
|
+
default: import("./types").CellDirection;
|
|
13
|
+
};
|
|
7
14
|
center: BooleanConstructor;
|
|
8
15
|
isLink: BooleanConstructor;
|
|
9
16
|
border: {
|
|
@@ -21,18 +28,23 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
21
28
|
type: import("vue").PropType<boolean | null>;
|
|
22
29
|
default: null;
|
|
23
30
|
};
|
|
24
|
-
direction: StringConstructor;
|
|
25
|
-
fullLine: BooleanConstructor;
|
|
26
31
|
} & {
|
|
27
32
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
28
33
|
url: StringConstructor;
|
|
29
34
|
replace: BooleanConstructor;
|
|
30
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
leftIcon: StringConstructor;
|
|
37
|
+
titleIcon: StringConstructor;
|
|
33
38
|
title: (NumberConstructor | StringConstructor)[];
|
|
34
|
-
value:
|
|
39
|
+
value: {
|
|
40
|
+
type: import("vue").PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
35
43
|
label: (NumberConstructor | StringConstructor)[];
|
|
44
|
+
direction: {
|
|
45
|
+
type: import("vue").PropType<import("./types").CellDirection>;
|
|
46
|
+
default: import("./types").CellDirection;
|
|
47
|
+
};
|
|
36
48
|
center: BooleanConstructor;
|
|
37
49
|
isLink: BooleanConstructor;
|
|
38
50
|
border: {
|
|
@@ -50,23 +62,25 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
50
62
|
type: import("vue").PropType<boolean | null>;
|
|
51
63
|
default: null;
|
|
52
64
|
};
|
|
53
|
-
direction: StringConstructor;
|
|
54
|
-
fullLine: BooleanConstructor;
|
|
55
65
|
} & {
|
|
56
66
|
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
|
57
67
|
url: StringConstructor;
|
|
58
68
|
replace: BooleanConstructor;
|
|
59
|
-
}
|
|
69
|
+
}>> & {
|
|
70
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}, {
|
|
60
72
|
replace: boolean;
|
|
61
73
|
required: boolean;
|
|
74
|
+
value: string;
|
|
75
|
+
direction: import("./types").CellDirection;
|
|
62
76
|
center: boolean;
|
|
63
|
-
border: boolean;
|
|
64
77
|
isLink: boolean;
|
|
78
|
+
border: boolean;
|
|
65
79
|
clickable: boolean | null;
|
|
66
|
-
fullLine: boolean;
|
|
67
80
|
}>>;
|
|
68
81
|
export default Cell;
|
|
69
|
-
export type {
|
|
82
|
+
export type { CellProps, CellArrowDirection } from './Cell';
|
|
83
|
+
export type { CellDirection } from './types';
|
|
70
84
|
declare module 'vue' {
|
|
71
85
|
interface GlobalComponents {
|
|
72
86
|
ZtCell: typeof Cell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type CellDirection = 'horizontal' | 'vertical';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var stdin_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|