zartui 3.0.1 → 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/Stepper.mjs +1 -1
- 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,232 @@
|
|
|
1
|
+
import { createTextVNode as _createTextVNode, withDirectives as _withDirectives, createVNode as _createVNode, vShow as _vShow } from "vue";
|
|
2
|
+
import { computed, defineComponent, ref, Transition } from "vue";
|
|
3
|
+
import { createNamespace, makeArrayProp, makeNumericProp, makeStringProp } from "../utils/index.mjs";
|
|
4
|
+
import { getForceLandscapeEventPosition, getForceLandscapeStyle } from "./force-landscape.mjs";
|
|
5
|
+
import { showToast } from "../toast/index.mjs";
|
|
6
|
+
import { canvas2File } from "../media-picker/util/media-util.mjs";
|
|
7
|
+
import ZtButton from "../button/index.mjs";
|
|
8
|
+
import { parseNumber } from "../utils/parse.mjs";
|
|
9
|
+
const [name, bem] = createNamespace("signature");
|
|
10
|
+
const signatureProps = {
|
|
11
|
+
customClass: makeStringProp(""),
|
|
12
|
+
lineWidth: makeNumericProp(2),
|
|
13
|
+
strokeStyle: makeStringProp("#000"),
|
|
14
|
+
backgroundStyle: makeStringProp("#fff"),
|
|
15
|
+
imageType: makeStringProp("png"),
|
|
16
|
+
resultTypes: makeArrayProp(["file", "dataUrl"]),
|
|
17
|
+
unSupportTpl: makeStringProp("\u5BF9\u4E0D\u8D77\uFF0C\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Canvas\uFF0C\u65E0\u6CD5\u4F7F\u7528\u7B7E\u540D\u7EC4\u4EF6"),
|
|
18
|
+
allowPortrait: Boolean
|
|
19
|
+
};
|
|
20
|
+
var stdin_default = defineComponent({
|
|
21
|
+
name,
|
|
22
|
+
props: signatureProps,
|
|
23
|
+
emits: ["clear", "cancel", "confirm"],
|
|
24
|
+
setup(props, {
|
|
25
|
+
emit
|
|
26
|
+
}) {
|
|
27
|
+
const containerRef = ref();
|
|
28
|
+
const canvasRef = ref();
|
|
29
|
+
const canvasWidth = ref(0);
|
|
30
|
+
const canvasHeight = ref(0);
|
|
31
|
+
const ctx = ref();
|
|
32
|
+
const events = ref("ontouchstart" in window ? ["touchstart", "touchmove", "touchend", "touchleave"] : ["mousedown", "mousemove", "mouseup", "mouseleave"]);
|
|
33
|
+
const isCompleteButtonDisabled = ref(true);
|
|
34
|
+
const isHintHidden = ref(false);
|
|
35
|
+
const isSupportTouch = ref("ontouchstart" in window);
|
|
36
|
+
const isCanvasSupported = computed(() => {
|
|
37
|
+
const elem = document.createElement("canvas");
|
|
38
|
+
return !!(elem.getContext && elem.getContext("2d"));
|
|
39
|
+
});
|
|
40
|
+
const reset = () => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
if (!containerRef.value) {
|
|
43
|
+
console.error("container is empty");
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const style = getForceLandscapeStyle(((_a = containerRef.value) == null ? void 0 : _a.offsetLeft) || 0, ((_b = containerRef.value) == null ? void 0 : _b.offsetTop) || 0, !props.allowPortrait);
|
|
47
|
+
containerRef.value.style.transform = style.transform;
|
|
48
|
+
containerRef.value.style.width = style.width;
|
|
49
|
+
containerRef.value.style.height = style.height;
|
|
50
|
+
containerRef.value.style.transformOrigin = style.transformOrigin;
|
|
51
|
+
canvasWidth.value = parseNumber(style.width);
|
|
52
|
+
canvasHeight.value = parseNumber(style.height);
|
|
53
|
+
};
|
|
54
|
+
const setupBackground = () => {
|
|
55
|
+
var _a, _b, _c, _d;
|
|
56
|
+
if (props.imageType === "jpg") {
|
|
57
|
+
let backgroundColor = props.backgroundStyle;
|
|
58
|
+
if (backgroundColor === "transparent") {
|
|
59
|
+
backgroundColor = "#fff";
|
|
60
|
+
}
|
|
61
|
+
if (ctx.value) {
|
|
62
|
+
ctx.value.fillStyle = backgroundColor;
|
|
63
|
+
ctx.value.fillRect(0, 0, ((_a = canvasRef.value) == null ? void 0 : _a.width) || 0, ((_b = canvasRef.value) == null ? void 0 : _b.height) || 0);
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
const backgroundColor = props.backgroundStyle;
|
|
67
|
+
if (backgroundColor !== "transparent" && ctx.value) {
|
|
68
|
+
ctx.value.fillStyle = backgroundColor;
|
|
69
|
+
ctx.value.fillRect(0, 0, ((_c = canvasRef.value) == null ? void 0 : _c.width) || 0, ((_d = canvasRef.value) == null ? void 0 : _d.height) || 0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const moveEventHandler = (event) => {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
event.preventDefault();
|
|
76
|
+
isHintHidden.value = true;
|
|
77
|
+
isCompleteButtonDisabled.value = false;
|
|
78
|
+
const evt = isSupportTouch.value ? event.touches[0] : event;
|
|
79
|
+
if (canvasRef.value) {
|
|
80
|
+
const position = getForceLandscapeEventPosition(evt, canvasRef.value, !props.allowPortrait);
|
|
81
|
+
(_a = ctx.value) == null ? void 0 : _a.lineTo(position.x, position.y);
|
|
82
|
+
(_b = ctx.value) == null ? void 0 : _b.stroke();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
const endEventHandler = (event) => {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
(_a = canvasRef.value) == null ? void 0 : _a.removeEventListener(events.value[1], moveEventHandler, false);
|
|
89
|
+
(_b = canvasRef.value) == null ? void 0 : _b.removeEventListener(events.value[2], endEventHandler, false);
|
|
90
|
+
};
|
|
91
|
+
const leaveEventHandler = (event) => {
|
|
92
|
+
var _a, _b;
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
(_a = canvasRef.value) == null ? void 0 : _a.removeEventListener(events.value[1], moveEventHandler, false);
|
|
95
|
+
(_b = canvasRef.value) == null ? void 0 : _b.removeEventListener(events.value[2], endEventHandler, false);
|
|
96
|
+
};
|
|
97
|
+
const startEventHandler = (event) => {
|
|
98
|
+
var _a, _b, _c;
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
if (ctx.value) {
|
|
101
|
+
ctx.value.beginPath();
|
|
102
|
+
ctx.value.lineWidth = +props.lineWidth;
|
|
103
|
+
ctx.value.strokeStyle = props.strokeStyle;
|
|
104
|
+
}
|
|
105
|
+
(_a = canvasRef.value) == null ? void 0 : _a.addEventListener(events.value[1], moveEventHandler, false);
|
|
106
|
+
(_b = canvasRef.value) == null ? void 0 : _b.addEventListener(events.value[2], endEventHandler, false);
|
|
107
|
+
(_c = canvasRef.value) == null ? void 0 : _c.addEventListener(events.value[3], leaveEventHandler, false);
|
|
108
|
+
};
|
|
109
|
+
const clear = (isUnEmit = false) => {
|
|
110
|
+
var _a, _b, _c, _d, _e;
|
|
111
|
+
(_a = canvasRef.value) == null ? void 0 : _a.addEventListener(events.value[2], endEventHandler, false);
|
|
112
|
+
(_d = ctx.value) == null ? void 0 : _d.clearRect(0, 0, ((_b = canvasRef.value) == null ? void 0 : _b.width) || 0, ((_c = canvasRef.value) == null ? void 0 : _c.height) || 0);
|
|
113
|
+
(_e = ctx.value) == null ? void 0 : _e.closePath();
|
|
114
|
+
setupBackground();
|
|
115
|
+
isHintHidden.value = false;
|
|
116
|
+
isCompleteButtonDisabled.value = true;
|
|
117
|
+
if (!isUnEmit) {
|
|
118
|
+
emit("clear");
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
const onSave = (canvas) => {
|
|
122
|
+
Promise.all(props.resultTypes.map((resultType) => {
|
|
123
|
+
if (resultType.trim() === "dataUrl") {
|
|
124
|
+
let dataURL;
|
|
125
|
+
if (props.imageType === "png") {
|
|
126
|
+
dataURL = canvas.toDataURL("image/png");
|
|
127
|
+
} else {
|
|
128
|
+
dataURL = canvas.toDataURL("image/jpeg", 0.8);
|
|
129
|
+
}
|
|
130
|
+
return Promise.resolve(dataURL);
|
|
131
|
+
} else if (resultType.trim() === "file") {
|
|
132
|
+
const timestamp = new Date().getTime();
|
|
133
|
+
if (props.imageType === "png") {
|
|
134
|
+
const exportFilename2 = timestamp + ".png";
|
|
135
|
+
return canvas2File(canvas, exportFilename2, timestamp, "image/png");
|
|
136
|
+
}
|
|
137
|
+
const exportFilename = timestamp + ".jpg";
|
|
138
|
+
return canvas2File(canvas, exportFilename, timestamp);
|
|
139
|
+
}
|
|
140
|
+
return Promise.resolve(null);
|
|
141
|
+
})).then((results) => {
|
|
142
|
+
clear(true);
|
|
143
|
+
emit("confirm", results);
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
const confirm = () => {
|
|
147
|
+
if (canvasRef.value) {
|
|
148
|
+
onSave(canvasRef.value);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const cancel = () => {
|
|
152
|
+
clear(true);
|
|
153
|
+
emit("cancel");
|
|
154
|
+
};
|
|
155
|
+
const addEvent = () => {
|
|
156
|
+
var _a;
|
|
157
|
+
(_a = canvasRef.value) == null ? void 0 : _a.addEventListener(events.value[0], startEventHandler, false);
|
|
158
|
+
if (isCanvasSupported.value) {
|
|
159
|
+
window.addEventListener("resize", () => {
|
|
160
|
+
setTimeout(() => {
|
|
161
|
+
reset();
|
|
162
|
+
if (!isCompleteButtonDisabled.value) {
|
|
163
|
+
showToast("\u65CB\u8F6C\u5C4F\u5E55\u6216\u8005\u6539\u53D8\u5C4F\u5E55\u5927\u5C0F\u89E6\u53D1\u91CD\u65B0\u7ED8\u5236");
|
|
164
|
+
clear(true);
|
|
165
|
+
}
|
|
166
|
+
}, 100);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
const onAppear = () => {
|
|
171
|
+
var _a;
|
|
172
|
+
if (!isCanvasSupported.value) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
ctx.value = (_a = canvasRef.value) == null ? void 0 : _a.getContext("2d");
|
|
176
|
+
reset();
|
|
177
|
+
addEvent();
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
setupBackground();
|
|
180
|
+
}, 50);
|
|
181
|
+
};
|
|
182
|
+
return () => _createVNode(Transition, {
|
|
183
|
+
"appear": true,
|
|
184
|
+
"onAfterEnter": onAppear
|
|
185
|
+
}, {
|
|
186
|
+
default: () => [_createVNode("div", {
|
|
187
|
+
"class": [bem(""), props.customClass ? props.customClass : ""],
|
|
188
|
+
"ref": containerRef
|
|
189
|
+
}, [_withDirectives(_createVNode("label", {
|
|
190
|
+
"class": bem("placeholder")
|
|
191
|
+
}, [isCanvasSupported.value ? "\u8BF7\u5728\u6B64\u7B7E\u540D" : props.unSupportTpl]), [[_vShow, !isHintHidden.value]]), _createVNode("div", {
|
|
192
|
+
"class": bem("canvasWrapper"),
|
|
193
|
+
"ref": "canvasWrapper"
|
|
194
|
+
}, [_withDirectives(_createVNode("canvas", {
|
|
195
|
+
"class": bem("canvas"),
|
|
196
|
+
"ref": canvasRef,
|
|
197
|
+
"width": canvasWidth.value,
|
|
198
|
+
"height": canvasHeight.value
|
|
199
|
+
}, null), [[_vShow, isCanvasSupported.value]])]), _createVNode("div", {
|
|
200
|
+
"class": bem("actions")
|
|
201
|
+
}, [_createVNode(ZtButton, {
|
|
202
|
+
"plain": true,
|
|
203
|
+
"type": "warning",
|
|
204
|
+
"onClick": () => clear(),
|
|
205
|
+
"style": {
|
|
206
|
+
"background-color": "#fff"
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
default: () => [_createTextVNode("\u91CD\u7B7E")]
|
|
210
|
+
}), _createVNode(ZtButton, {
|
|
211
|
+
"type": "default",
|
|
212
|
+
"onClick": cancel,
|
|
213
|
+
"style": {
|
|
214
|
+
"background-color": "#fff"
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
default: () => [_createTextVNode("\u53D6\u6D88")]
|
|
218
|
+
}), _createVNode(ZtButton, {
|
|
219
|
+
"block": true,
|
|
220
|
+
"type": "primary",
|
|
221
|
+
"disabled": isCompleteButtonDisabled.value,
|
|
222
|
+
"onClick": confirm
|
|
223
|
+
}, {
|
|
224
|
+
default: () => [_createTextVNode("\u5B8C\u6210")]
|
|
225
|
+
})])])]
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
export {
|
|
230
|
+
stdin_default as default,
|
|
231
|
+
signatureProps
|
|
232
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 判断是否竖直的
|
|
3
|
+
*/
|
|
4
|
+
export declare const isPortrait: () => boolean;
|
|
5
|
+
export interface ForceLandscapeStyle {
|
|
6
|
+
transform: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
transformOrigin: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getForceLandscapeStyle: (offsetLeft: number, offsetTop: number, forceLandscape: boolean) => ForceLandscapeStyle;
|
|
12
|
+
export interface EventPosition {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const getForceLandscapeEventPosition: (evt: MouseEvent | Touch, canvas: HTMLCanvasElement, forceLandscape: boolean) => EventPosition;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const isPortrait = () => window.orientation == null || window.orientation === 180 || window.orientation === 0;
|
|
2
|
+
const getForceLandscapeStyle = (offsetLeft, offsetTop, forceLandscape) => {
|
|
3
|
+
const resultStyle = {
|
|
4
|
+
width: "",
|
|
5
|
+
height: "",
|
|
6
|
+
transform: "",
|
|
7
|
+
transformOrigin: ""
|
|
8
|
+
};
|
|
9
|
+
const { clientWidth } = document.documentElement;
|
|
10
|
+
const leftOffset = offsetLeft;
|
|
11
|
+
const { clientHeight } = document.documentElement;
|
|
12
|
+
const topOffset = offsetTop;
|
|
13
|
+
const width = clientWidth - leftOffset;
|
|
14
|
+
const height = clientHeight - topOffset;
|
|
15
|
+
const longSide = Math.max(width, height);
|
|
16
|
+
const shortSide = Math.min(width, height);
|
|
17
|
+
if (isPortrait()) {
|
|
18
|
+
if (width < height) {
|
|
19
|
+
if (forceLandscape) {
|
|
20
|
+
console.debug("\u7AD6\u5C4F\u6253\u5F00\uFF0C\u5F3A\u5236\u6A2A\u5C4F");
|
|
21
|
+
resultStyle.transform = `rotate(90deg)`;
|
|
22
|
+
resultStyle.width = `${longSide}px`;
|
|
23
|
+
resultStyle.height = `${shortSide}px`;
|
|
24
|
+
resultStyle.transformOrigin = `${shortSide / 2}px center`;
|
|
25
|
+
} else {
|
|
26
|
+
console.debug("\u7AD6\u5C4F\u6253\u5F00\uFF0C\u4FDD\u6301\u7AD6\u5C4F");
|
|
27
|
+
resultStyle.transform = `rotate(0deg)`;
|
|
28
|
+
resultStyle.width = `${shortSide}px`;
|
|
29
|
+
resultStyle.height = `${longSide}px`;
|
|
30
|
+
}
|
|
31
|
+
} else if (forceLandscape) {
|
|
32
|
+
console.debug("\u6A2A\u5C4F\u65CB\u8F6C\u5230\u5F3A\u5236\u6A2A\u5C4F");
|
|
33
|
+
resultStyle.transform = `rotate(90deg)`;
|
|
34
|
+
resultStyle.width = `${longSide}px`;
|
|
35
|
+
resultStyle.height = `${shortSide}px`;
|
|
36
|
+
resultStyle.transformOrigin = `${shortSide / 2}px center`;
|
|
37
|
+
} else {
|
|
38
|
+
console.debug("\u6A2A\u5C4F\u65CB\u8F6C\u5230\u7AD6\u5C4F");
|
|
39
|
+
resultStyle.transform = `rotate(0deg)`;
|
|
40
|
+
resultStyle.width = `${shortSide}px`;
|
|
41
|
+
resultStyle.height = `${longSide}px`;
|
|
42
|
+
}
|
|
43
|
+
} else {
|
|
44
|
+
if (width > height) {
|
|
45
|
+
console.debug("\u6A2A\u5C4F\u6253\u5F00");
|
|
46
|
+
} else {
|
|
47
|
+
console.debug("\u7AD6\u5C4F\u65CB\u8F6C\u5230\u6A2A\u5C4F");
|
|
48
|
+
}
|
|
49
|
+
resultStyle.transform = `rotate(0deg)`;
|
|
50
|
+
resultStyle.width = `${longSide}px`;
|
|
51
|
+
resultStyle.height = `${shortSide}px`;
|
|
52
|
+
}
|
|
53
|
+
return resultStyle;
|
|
54
|
+
};
|
|
55
|
+
const getForceLandscapeEventPosition = (evt, canvas, forceLandscape) => {
|
|
56
|
+
const coverPos = canvas.getBoundingClientRect();
|
|
57
|
+
const mouseX = evt.clientX - coverPos.left;
|
|
58
|
+
const mouseY = evt.clientY - coverPos.top;
|
|
59
|
+
const isReverseXY = forceLandscape && (window.orientation == null || window.orientation === 180 || window.orientation === 0);
|
|
60
|
+
if (isReverseXY) {
|
|
61
|
+
const { clientWidth } = document.documentElement;
|
|
62
|
+
const leftOffset = 0;
|
|
63
|
+
const width = clientWidth - leftOffset;
|
|
64
|
+
return { x: mouseY, y: width - mouseX };
|
|
65
|
+
}
|
|
66
|
+
return { x: mouseX, y: mouseY };
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
getForceLandscapeEventPosition,
|
|
70
|
+
getForceLandscapeStyle,
|
|
71
|
+
isPortrait
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-signature-canvas-z-index: 1;--zt-signature-hint-z-index: 2;--zt-signature-actions-z-index: 2}.zt-signature{background-color:var(--zt-background);width:100%;height:100%;position:relative}.zt-signature__placeholder{z-index:var(--zt-signature-hint-z-index);pointer-events:none;position:absolute;left:0;top:calc(50% - 12px);font-size:16px;height:24px;width:100%;color:var(--zt-gray-a2);text-align:center}.zt-signature__canvasWrapper{z-index:var(--zt-signature-canvas-z-index);position:absolute;top:0;left:0;width:100%;height:100%;background:var(--zt-white)}.zt-signature__actions{z-index:var(--zt-signature-actions-z-index);position:absolute;right:0;bottom:16px;width:320px;float:right}.zt-signature__actions button{float:left;width:96px;margin-right:8px}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const Signature: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
customClass: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
lineWidth: {
|
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
strokeStyle: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
backgroundStyle: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
imageType: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
resultTypes: {
|
|
23
|
+
type: import("vue").PropType<import("./types").SignatureResultType[]>;
|
|
24
|
+
default: () => import("./types").SignatureResultType[];
|
|
25
|
+
};
|
|
26
|
+
unSupportTpl: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
allowPortrait: BooleanConstructor;
|
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "cancel" | "confirm")[], "clear" | "cancel" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
customClass: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
lineWidth: {
|
|
37
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
strokeStyle: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
backgroundStyle: {
|
|
45
|
+
type: import("vue").PropType<string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
imageType: {
|
|
49
|
+
type: import("vue").PropType<string>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
resultTypes: {
|
|
53
|
+
type: import("vue").PropType<import("./types").SignatureResultType[]>;
|
|
54
|
+
default: () => import("./types").SignatureResultType[];
|
|
55
|
+
};
|
|
56
|
+
unSupportTpl: {
|
|
57
|
+
type: import("vue").PropType<string>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
allowPortrait: BooleanConstructor;
|
|
61
|
+
}>> & {
|
|
62
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
lineWidth: string | number;
|
|
67
|
+
customClass: string;
|
|
68
|
+
strokeStyle: string;
|
|
69
|
+
backgroundStyle: string;
|
|
70
|
+
imageType: string;
|
|
71
|
+
resultTypes: import("./types").SignatureResultType[];
|
|
72
|
+
unSupportTpl: string;
|
|
73
|
+
allowPortrait: boolean;
|
|
74
|
+
}>>;
|
|
75
|
+
export default Signature;
|
|
76
|
+
export { signatureProps } from './Signature';
|
|
77
|
+
export type { SignatureProps } from './Signature';
|
|
78
|
+
export type { SignatureResultType } from './types';
|
|
79
|
+
declare module 'vue' {
|
|
80
|
+
interface GlobalComponents {
|
|
81
|
+
ZtSignature: typeof Signature;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
|
2
|
+
import _Signature from "./Signature.mjs";
|
|
3
|
+
const Signature = withInstall(_Signature);
|
|
4
|
+
var stdin_default = Signature;
|
|
5
|
+
import { signatureProps } from "./Signature.mjs";
|
|
6
|
+
export {
|
|
7
|
+
Signature,
|
|
8
|
+
stdin_default as default,
|
|
9
|
+
signatureProps
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../style/base.css";
|
|
2
|
+
import "../../badge/index.css";
|
|
3
|
+
import "../../icon/index.css";
|
|
4
|
+
import "../../overlay/index.css";
|
|
5
|
+
import "../../popup/index.css";
|
|
6
|
+
import "../../loading/index.css";
|
|
7
|
+
import "../../toast/index.css";
|
|
8
|
+
import "../../button/index.css";
|
|
9
|
+
import "../../media-picker/index.css";
|
|
10
|
+
import "../index.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type SignatureResultType = 'file' | 'dataUrl';
|
|
File without changes
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
|
+
import { type Numeric } from '../utils';
|
|
3
|
+
export declare type SkeletonAvatarShape = 'square' | 'round';
|
|
4
|
+
export declare const skeletonProps: {
|
|
5
|
+
row: {
|
|
6
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
title: BooleanConstructor;
|
|
10
|
+
round: BooleanConstructor;
|
|
11
|
+
avatar: BooleanConstructor;
|
|
12
|
+
field: BooleanConstructor;
|
|
13
|
+
textarea: BooleanConstructor;
|
|
14
|
+
loading: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: true;
|
|
17
|
+
};
|
|
18
|
+
animate: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: true;
|
|
21
|
+
};
|
|
22
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
|
23
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
|
24
|
+
avatarShape: {
|
|
25
|
+
type: PropType<SkeletonAvatarShape>;
|
|
26
|
+
default: SkeletonAvatarShape;
|
|
27
|
+
};
|
|
28
|
+
rowWidth: {
|
|
29
|
+
type: PropType<Numeric | Numeric[]>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare type SkeletonProps = ExtractPropTypes<typeof skeletonProps>;
|
|
34
|
+
declare const _default: import("vue").DefineComponent<{
|
|
35
|
+
row: {
|
|
36
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
title: BooleanConstructor;
|
|
40
|
+
round: BooleanConstructor;
|
|
41
|
+
avatar: BooleanConstructor;
|
|
42
|
+
field: BooleanConstructor;
|
|
43
|
+
textarea: BooleanConstructor;
|
|
44
|
+
loading: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: true;
|
|
47
|
+
};
|
|
48
|
+
animate: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: true;
|
|
51
|
+
};
|
|
52
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
|
53
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
|
54
|
+
avatarShape: {
|
|
55
|
+
type: PropType<SkeletonAvatarShape>;
|
|
56
|
+
default: SkeletonAvatarShape;
|
|
57
|
+
};
|
|
58
|
+
rowWidth: {
|
|
59
|
+
type: PropType<Numeric | Numeric[]>;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
}, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
65
|
+
row: {
|
|
66
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
title: BooleanConstructor;
|
|
70
|
+
round: BooleanConstructor;
|
|
71
|
+
avatar: BooleanConstructor;
|
|
72
|
+
field: BooleanConstructor;
|
|
73
|
+
textarea: BooleanConstructor;
|
|
74
|
+
loading: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: true;
|
|
77
|
+
};
|
|
78
|
+
animate: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: true;
|
|
81
|
+
};
|
|
82
|
+
avatarSize: (NumberConstructor | StringConstructor)[];
|
|
83
|
+
titleWidth: (NumberConstructor | StringConstructor)[];
|
|
84
|
+
avatarShape: {
|
|
85
|
+
type: PropType<SkeletonAvatarShape>;
|
|
86
|
+
default: SkeletonAvatarShape;
|
|
87
|
+
};
|
|
88
|
+
rowWidth: {
|
|
89
|
+
type: PropType<Numeric | Numeric[]>;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
}>>, {
|
|
93
|
+
textarea: boolean;
|
|
94
|
+
title: boolean;
|
|
95
|
+
animate: boolean;
|
|
96
|
+
field: boolean;
|
|
97
|
+
round: boolean;
|
|
98
|
+
loading: boolean;
|
|
99
|
+
row: string | number;
|
|
100
|
+
avatar: boolean;
|
|
101
|
+
avatarShape: SkeletonAvatarShape;
|
|
102
|
+
rowWidth: Numeric | Numeric[];
|
|
103
|
+
}>;
|
|
104
|
+
export default _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
|
+
import { defineComponent } from "vue";
|
|
3
|
+
import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
|
4
|
+
const [name, bem] = createNamespace("skeleton");
|
|
5
|
+
const DEFAULT_ROW_WIDTH = "100%";
|
|
6
|
+
const DEFAULT_LAST_ROW_WIDTH = "60%";
|
|
7
|
+
const skeletonProps = {
|
|
8
|
+
row: makeNumericProp(0),
|
|
9
|
+
title: Boolean,
|
|
10
|
+
round: Boolean,
|
|
11
|
+
avatar: Boolean,
|
|
12
|
+
field: Boolean,
|
|
13
|
+
textarea: Boolean,
|
|
14
|
+
loading: truthProp,
|
|
15
|
+
animate: truthProp,
|
|
16
|
+
avatarSize: numericProp,
|
|
17
|
+
titleWidth: numericProp,
|
|
18
|
+
avatarShape: makeStringProp("round"),
|
|
19
|
+
rowWidth: {
|
|
20
|
+
type: [Number, String, Array],
|
|
21
|
+
default: DEFAULT_ROW_WIDTH
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var stdin_default = defineComponent({
|
|
25
|
+
name,
|
|
26
|
+
inheritAttrs: false,
|
|
27
|
+
props: skeletonProps,
|
|
28
|
+
setup(props, {
|
|
29
|
+
slots,
|
|
30
|
+
attrs
|
|
31
|
+
}) {
|
|
32
|
+
const renderAvatar = () => {
|
|
33
|
+
if (props.avatar) {
|
|
34
|
+
return _createVNode("div", {
|
|
35
|
+
"class": bem("avatar", props.avatarShape),
|
|
36
|
+
"style": getSizeStyle(props.avatarSize)
|
|
37
|
+
}, null);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const renderTitle = () => {
|
|
41
|
+
if (props.title && !props.field) {
|
|
42
|
+
return _createVNode("h3", {
|
|
43
|
+
"class": bem("title"),
|
|
44
|
+
"style": {
|
|
45
|
+
width: addUnit(props.titleWidth)
|
|
46
|
+
}
|
|
47
|
+
}, null);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
function renderRows() {
|
|
51
|
+
const Rows = [];
|
|
52
|
+
const {
|
|
53
|
+
rowWidth
|
|
54
|
+
} = props;
|
|
55
|
+
function getRowWidth(index) {
|
|
56
|
+
if (rowWidth === DEFAULT_ROW_WIDTH && index === +props.row - 1) {
|
|
57
|
+
return DEFAULT_LAST_ROW_WIDTH;
|
|
58
|
+
}
|
|
59
|
+
if (Array.isArray(rowWidth)) {
|
|
60
|
+
return rowWidth[index];
|
|
61
|
+
}
|
|
62
|
+
return rowWidth;
|
|
63
|
+
}
|
|
64
|
+
for (let i = 0; i < props.row; i++) {
|
|
65
|
+
if (props.field) {
|
|
66
|
+
Rows.push(_createVNode("div", {
|
|
67
|
+
"class": bem("field")
|
|
68
|
+
}, [_createVNode("span", {
|
|
69
|
+
"class": bem("field-title"),
|
|
70
|
+
"style": {
|
|
71
|
+
width: addUnit(props.titleWidth)
|
|
72
|
+
}
|
|
73
|
+
}, null), _createVNode("span", {
|
|
74
|
+
"class": bem("field-value"),
|
|
75
|
+
"style": {
|
|
76
|
+
width: addUnit(getRowWidth(i))
|
|
77
|
+
}
|
|
78
|
+
}, null)]));
|
|
79
|
+
} else if (props.textarea) {
|
|
80
|
+
Rows.push(_createVNode("div", {
|
|
81
|
+
"class": bem("textarea"),
|
|
82
|
+
"style": {
|
|
83
|
+
width: addUnit(getRowWidth(i))
|
|
84
|
+
}
|
|
85
|
+
}, null));
|
|
86
|
+
} else {
|
|
87
|
+
Rows.push(_createVNode("div", {
|
|
88
|
+
"class": bem("row"),
|
|
89
|
+
"style": {
|
|
90
|
+
width: addUnit(getRowWidth(i))
|
|
91
|
+
}
|
|
92
|
+
}, null));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return Rows;
|
|
96
|
+
}
|
|
97
|
+
return () => {
|
|
98
|
+
var _a;
|
|
99
|
+
if (!props.loading) {
|
|
100
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
101
|
+
}
|
|
102
|
+
return _createVNode("div", _mergeProps({
|
|
103
|
+
"class": bem({
|
|
104
|
+
animate: props.animate,
|
|
105
|
+
round: props.round
|
|
106
|
+
})
|
|
107
|
+
}, attrs), [renderAvatar(), _createVNode("div", {
|
|
108
|
+
"class": bem("content")
|
|
109
|
+
}, [renderTitle(), renderRows()])]);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
export {
|
|
114
|
+
stdin_default as default,
|
|
115
|
+
skeletonProps
|
|
116
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-skeleton-row-height: 16px;--zt-skeleton-row-background: var(--zt-active-color);--zt-skeleton-row-margin-top: var(--zt-padding-sm);--zt-skeleton-title-width: 40%;--zt-skeleton-avatar-size: 32px;--zt-skeleton-avatar-background: var(--zt-active-color);--zt-skeleton-duration: 1.2s}.zt-skeleton{display:flex;padding:0 var(--zt-padding-md)}.zt-skeleton__avatar{flex-shrink:0;width:var(--zt-skeleton-avatar-size);height:var(--zt-skeleton-avatar-size);margin-right:var(--zt-padding-md);background:var(--zt-skeleton-avatar-background)}.zt-skeleton__avatar--round{border-radius:var(--zt-radius-max)}.zt-skeleton__content{width:100%}.zt-skeleton__avatar+.zt-skeleton__content{padding-top:var(--zt-padding-xs)}.zt-skeleton__row,.zt-skeleton__textarea,.zt-skeleton__title{height:var(--zt-skeleton-row-height);background:var(--zt-skeleton-row-background)}.zt-skeleton__title{width:var(--zt-skeleton-title-width);margin:0}.zt-skeleton__textarea{margin-top:10px}.zt-skeleton__row:not(:first-child){margin-top:var(--zt-skeleton-row-margin-top)}.zt-skeleton__title+.zt-skeleton__row{margin-top:20px}.zt-skeleton--animate{animation:zt-skeleton-blink var(--zt-skeleton-duration) ease-in-out infinite}.zt-skeleton--round .zt-skeleton__row,.zt-skeleton--round .zt-skeleton__title{border-radius:var(--zt-radius-max)}.zt-skeleton__field{width:100%;display:flex;justify-content:space-between}.zt-skeleton__field:not(:first-child){margin-top:16px}.zt-skeleton__field-title,.zt-skeleton__field-value{height:var(--zt-skeleton-row-height);background:var(--zt-skeleton-row-background)}@keyframes zt-skeleton-blink{50%{opacity:.6}}
|