zartui 3.1.23 → 3.1.25
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/README.md +27 -27
- package/es/action-sheet/ActionSheet.d.ts +5 -5
- package/es/action-sheet/ActionSheet.mjs +1 -2
- package/es/action-sheet/index.d.ts +5 -5
- package/es/audio/Audio.d.ts +18 -5
- package/es/audio/Audio.mjs +7 -5
- package/es/audio/index.d.ts +14 -5
- package/es/avatar/Avatar.d.ts +4 -4
- package/es/avatar/Avatar.mjs +1 -2
- package/es/avatar/index.d.ts +4 -4
- package/es/badge/Badge.d.ts +4 -4
- package/es/badge/Badge.mjs +1 -2
- package/es/badge/index.d.ts +4 -4
- package/es/button/Button.d.ts +8 -5
- package/es/button/Button.mjs +1 -2
- package/es/button/index.d.ts +7 -5
- package/es/calendar/Calendar.d.ts +5 -5
- package/es/calendar/Calendar.mjs +1 -2
- package/es/calendar/CalendarDay.d.ts +5 -5
- package/es/calendar/CalendarDay.mjs +1 -2
- package/es/calendar/CalendarHeader.d.ts +5 -5
- package/es/calendar/CalendarHeader.mjs +1 -2
- package/es/calendar/CalendarMonth.d.ts +5 -5
- package/es/calendar/CalendarMonth.mjs +1 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +5 -5
- package/es/cascader/Cascader.d.ts +5 -5
- package/es/cascader/Cascader.mjs +1 -2
- package/es/cascader/index.d.ts +5 -5
- package/es/cell/Cell.d.ts +8 -5
- package/es/cell/Cell.mjs +1 -2
- package/es/cell/index.d.ts +7 -5
- package/es/cell-group/CellGroup.d.ts +4 -4
- package/es/cell-group/CellGroup.mjs +1 -2
- package/es/cell-group/index.d.ts +4 -4
- package/es/checkbox/Checkbox.d.ts +5 -5
- package/es/checkbox/Checkbox.mjs +1 -2
- package/es/checkbox/Checker.d.ts +5 -5
- package/es/checkbox/Checker.mjs +1 -2
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.mjs +1 -2
- package/es/checkbox-group/index.d.ts +5 -5
- package/es/col/Col.d.ts +4 -4
- package/es/col/Col.mjs +1 -2
- package/es/col/index.d.ts +4 -4
- package/es/collapse/Collapse.d.ts +5 -5
- package/es/collapse/Collapse.mjs +1 -2
- package/es/collapse/index.d.ts +5 -5
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.mjs +1 -2
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +4 -4
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-refs.d.ts +1 -1
- package/es/composables/use-route.d.ts +2 -0
- package/es/composables/use-route.mjs +2 -1
- package/es/composables/use-sync-prop-ref.d.ts +1 -1
- package/es/composables/use-touch.d.ts +8 -8
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/ConfigProvider.mjs +1 -2
- package/es/config-provider/index.d.ts +4 -4
- package/es/date-time-picker/DateTimePicker.d.ts +5 -5
- package/es/date-time-picker/DateTimePicker.mjs +1 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
- package/es/date-time-picker/DateTimePickerWrapper.mjs +1 -2
- package/es/date-time-picker/index.d.ts +5 -5
- package/es/dialog/Dialog.d.ts +5 -5
- package/es/dialog/Dialog.mjs +1 -2
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +5 -5
- package/es/divider/Divider.d.ts +4 -4
- package/es/divider/Divider.mjs +1 -2
- package/es/divider/index.d.ts +4 -4
- package/es/drawer-select/DrawerSelect.d.ts +5 -5
- package/es/drawer-select/DrawerSelect.mjs +1 -2
- package/es/drawer-select/index.d.ts +5 -5
- package/es/dropdown-item/DropdownItem.d.ts +6 -6
- package/es/dropdown-item/DropdownItem.mjs +1 -2
- package/es/dropdown-item/index.d.ts +6 -6
- package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.mjs +1 -2
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +4 -4
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.mjs +1 -2
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +5 -5
- package/es/field/Field.mjs +1 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.mjs +1 -2
- package/es/floating-bubble/index.css +1 -1
- package/es/floating-bubble/index.d.ts +5 -5
- package/es/form/Form.d.ts +5 -5
- package/es/form/Form.mjs +1 -2
- package/es/form/index.d.ts +5 -5
- package/es/grid/Grid.d.ts +4 -4
- package/es/grid/Grid.mjs +1 -2
- package/es/grid/index.d.ts +4 -4
- package/es/grid-item/GridItem.d.ts +7 -4
- package/es/grid-item/GridItem.mjs +1 -2
- package/es/grid-item/index.d.ts +6 -4
- package/es/hierarchy-select/Breadcrumb.d.ts +5 -5
- package/es/hierarchy-select/Breadcrumb.mjs +1 -2
- package/es/hierarchy-select/HierarchySelect.d.ts +5 -5
- package/es/hierarchy-select/HierarchySelect.mjs +1 -2
- package/es/hierarchy-select/index.d.ts +5 -5
- package/es/icon/Icon.d.ts +4 -4
- package/es/icon/Icon.mjs +1 -2
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +4 -4
- package/es/image/Image.d.ts +5 -5
- package/es/image/Image.mjs +1 -2
- package/es/image/index.d.ts +5 -5
- package/es/image-preview/ImagePreview.d.ts +5 -5
- package/es/image-preview/ImagePreview.mjs +1 -2
- package/es/image-preview/ImagePreviewItem.d.ts +5 -5
- package/es/image-preview/ImagePreviewItem.mjs +1 -2
- package/es/image-preview/function-call.mjs +1 -1
- package/es/image-preview/index.d.ts +5 -5
- package/es/index-anchor/IndexAnchor.d.ts +3 -3
- package/es/index-anchor/IndexAnchor.mjs +1 -2
- package/es/index-anchor/index.d.ts +3 -3
- package/es/index-bar/IndexBar.d.ts +5 -5
- package/es/index-bar/IndexBar.mjs +1 -2
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +5 -5
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/List.d.ts +5 -5
- package/es/list/List.mjs +1 -2
- package/es/list/index.d.ts +5 -5
- package/es/loading/Loading.d.ts +4 -4
- package/es/loading/Loading.mjs +1 -2
- package/es/loading/index.d.ts +4 -4
- package/es/media-picker/MediaPicker.d.ts +9 -5
- package/es/media-picker/MediaPicker.mjs +7 -5
- package/es/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultAudioIcon.mjs +1 -2
- package/es/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultFileIcon.mjs +1 -2
- package/es/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultVideoIcon.mjs +1 -2
- package/es/media-picker/image/DeleteIcon.d.ts +1 -1
- package/es/media-picker/image/DeleteIcon.mjs +1 -2
- package/es/media-picker/image/PickFileIcon.d.ts +1 -1
- package/es/media-picker/image/PickFileIcon.mjs +1 -2
- package/es/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/es/media-picker/image/PickPhotoIcon.mjs +1 -2
- package/es/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/es/media-picker/image/TakeAudioIcon.mjs +1 -2
- package/es/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/es/media-picker/image/TakePhotoIcon.mjs +1 -2
- package/es/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/es/media-picker/image/TakeVideoIcon.mjs +1 -2
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.d.ts +7 -5
- package/es/media-player/MediaPlayer.d.ts +21 -5
- package/es/media-player/MediaPlayer.mjs +7 -3
- package/es/media-player/index.d.ts +14 -5
- package/es/multiple-picker/MultiplePicker.d.ts +5 -5
- package/es/multiple-picker/MultiplePicker.mjs +1 -2
- package/es/multiple-picker/MultiplePickerOptions.d.ts +5 -5
- package/es/multiple-picker/MultiplePickerOptions.mjs +1 -2
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.d.ts +5 -5
- package/es/nav-bar/NavBar.d.ts +5 -5
- package/es/nav-bar/NavBar.mjs +1 -2
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +5 -5
- package/es/notice-bar/NoticeBar.d.ts +5 -5
- package/es/notice-bar/NoticeBar.mjs +1 -2
- package/es/notice-bar/index.d.ts +5 -5
- package/es/notify/Notify.d.ts +5 -5
- package/es/notify/Notify.mjs +1 -2
- package/es/notify/function-call.mjs +1 -1
- package/es/notify/index.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/es/number-keyboard/NumberKeyboard.mjs +1 -2
- package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +6 -6
- package/es/overlay/Overlay.d.ts +4 -4
- package/es/overlay/Overlay.mjs +1 -2
- package/es/overlay/index.d.ts +4 -4
- package/es/password-input/PasswordInput.d.ts +5 -5
- package/es/password-input/PasswordInput.mjs +1 -2
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +5 -5
- package/es/picker/Picker.d.ts +5 -5
- package/es/picker/Picker.mjs +1 -2
- package/es/picker/PickerColumn.d.ts +5 -5
- package/es/picker/PickerColumn.mjs +1 -2
- package/es/picker/PickerOptions.d.ts +5 -5
- package/es/picker/PickerOptions.mjs +1 -2
- package/es/picker/PickerToolbar.d.ts +4 -4
- package/es/picker/PickerToolbar.mjs +1 -2
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +5 -5
- package/es/popover/Popover.d.ts +5 -5
- package/es/popover/Popover.mjs +1 -2
- package/es/popover/index.d.ts +5 -5
- package/es/popup/Popup.d.ts +6 -6
- package/es/popup/Popup.mjs +1 -2
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +6 -6
- package/es/pull-refresh/PullRefresh.d.ts +5 -5
- package/es/pull-refresh/PullRefresh.mjs +1 -2
- package/es/pull-refresh/index.d.ts +5 -5
- package/es/radio/Radio.d.ts +5 -5
- package/es/radio/Radio.mjs +1 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +5 -5
- package/es/radio-group/RadioGroup.d.ts +5 -5
- package/es/radio-group/RadioGroup.mjs +1 -2
- package/es/radio-group/index.d.ts +5 -5
- package/es/radio-picker/RadioPicker.d.ts +5 -5
- package/es/radio-picker/RadioPicker.mjs +1 -2
- package/es/radio-picker/RadioPickerColumn.d.ts +5 -5
- package/es/radio-picker/RadioPickerColumn.mjs +1 -2
- package/es/radio-picker/RadioPickerToolbar.d.ts +4 -4
- package/es/radio-picker/RadioPickerToolbar.mjs +1 -2
- package/es/radio-picker/index.css +1 -1
- package/es/radio-picker/index.d.ts +5 -5
- package/es/rate/Rate.d.ts +5 -5
- package/es/rate/Rate.mjs +1 -2
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +5 -5
- package/es/row/Row.d.ts +4 -4
- package/es/row/Row.mjs +1 -2
- package/es/row/index.d.ts +4 -4
- package/es/search/Search.d.ts +5 -5
- package/es/search/Search.mjs +1 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +5 -5
- package/es/signature/Signature.d.ts +5 -5
- package/es/signature/Signature.mjs +1 -2
- package/es/signature/index.d.ts +5 -5
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.mjs +1 -2
- package/es/skeleton/index.d.ts +5 -5
- package/es/slider/Slider.d.ts +5 -5
- package/es/slider/Slider.mjs +1 -2
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +5 -5
- package/es/step/Step.d.ts +3 -3
- package/es/step/Step.mjs +1 -2
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +3 -3
- package/es/stepper/Stepper.d.ts +5 -5
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +5 -5
- package/es/steps/Steps.d.ts +5 -5
- package/es/steps/Steps.mjs +1 -2
- package/es/steps/index.d.ts +5 -5
- package/es/sticky/Sticky.d.ts +5 -5
- package/es/sticky/Sticky.mjs +1 -2
- package/es/sticky/index.d.ts +5 -5
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.mjs +1 -2
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +5 -5
- package/es/swipe-cell/SwipeCell.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.mjs +1 -2
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +6 -6
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -2
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +5 -5
- package/es/switch/Switch.mjs +1 -2
- package/es/switch/index.d.ts +5 -5
- package/es/tab/Tab.d.ts +7 -4
- package/es/tab/Tab.mjs +1 -2
- package/es/tab/index.d.ts +6 -4
- package/es/tabbar/Tabbar.d.ts +5 -5
- package/es/tabbar/Tabbar.mjs +1 -2
- package/es/tabbar/index.d.ts +5 -5
- package/es/tabbar-item/TabbarItem.d.ts +8 -5
- package/es/tabbar-item/TabbarItem.mjs +1 -2
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +7 -5
- package/es/table/Table.d.ts +5 -5
- package/es/table/Table.mjs +1 -2
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +5 -5
- package/es/tabs/Tabs.d.ts +5 -5
- package/es/tabs/Tabs.mjs +1 -2
- package/es/tabs/TabsContent.d.ts +5 -5
- package/es/tabs/TabsContent.mjs +1 -2
- package/es/tabs/TabsTitle.d.ts +4 -4
- package/es/tabs/TabsTitle.mjs +1 -2
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +5 -5
- package/es/tag/Tag.d.ts +5 -5
- package/es/tag/Tag.mjs +1 -2
- package/es/tag/index.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.mjs +1 -2
- package/es/text-ellipsis/index.d.ts +5 -5
- package/es/time-picker/Arrow.d.ts +2 -2
- package/es/time-picker/Arrow.mjs +1 -2
- package/es/time-picker/TimePicker.d.ts +5 -5
- package/es/time-picker/TimePicker.mjs +1 -2
- package/es/time-picker/TimePickerColumn.d.ts +5 -5
- package/es/time-picker/TimePickerColumn.mjs +1 -2
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +5 -5
- package/es/timeline/Timeline.d.ts +4 -4
- package/es/timeline/Timeline.mjs +1 -2
- package/es/timeline/index.d.ts +4 -4
- package/es/toast/Toast.d.ts +5 -5
- package/es/toast/Toast.mjs +1 -2
- package/es/toast/function-call.mjs +1 -2
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +5 -5
- package/es/uploader/Uploader.d.ts +5 -5
- package/es/uploader/Uploader.mjs +2 -2
- package/es/uploader/UploaderPreviewItem.d.ts +5 -5
- package/es/uploader/UploaderPreviewItem.mjs +1 -2
- package/es/uploader/index.d.ts +5 -5
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/video/Video.d.ts +8 -5
- package/es/video/Video.mjs +5 -3
- package/es/video/index.css +1 -1
- package/es/video/index.d.ts +7 -5
- package/es/video/types.d.ts +1 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/ActionSheet.d.ts +5 -5
- package/lib/action-sheet/ActionSheet.js +2 -3
- package/lib/action-sheet/index.d.ts +5 -5
- package/lib/audio/Audio.d.ts +18 -5
- package/lib/audio/Audio.js +11 -9
- package/lib/audio/index.d.ts +14 -5
- package/lib/avatar/Avatar.d.ts +4 -4
- package/lib/avatar/Avatar.js +4 -5
- package/lib/avatar/index.d.ts +4 -4
- package/lib/badge/Badge.d.ts +4 -4
- package/lib/badge/Badge.js +2 -3
- package/lib/badge/index.d.ts +4 -4
- package/lib/button/Button.d.ts +8 -5
- package/lib/button/Button.js +1 -2
- package/lib/button/index.d.ts +7 -5
- package/lib/calendar/Calendar.d.ts +5 -5
- package/lib/calendar/Calendar.js +19 -20
- package/lib/calendar/CalendarDay.d.ts +5 -5
- package/lib/calendar/CalendarDay.js +2 -3
- package/lib/calendar/CalendarHeader.d.ts +5 -5
- package/lib/calendar/CalendarHeader.js +1 -2
- package/lib/calendar/CalendarMonth.d.ts +5 -5
- package/lib/calendar/CalendarMonth.js +11 -12
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +5 -5
- package/lib/cascader/Cascader.d.ts +5 -5
- package/lib/cascader/Cascader.js +11 -12
- package/lib/cascader/index.d.ts +5 -5
- package/lib/cell/Cell.d.ts +8 -5
- package/lib/cell/Cell.js +5 -6
- package/lib/cell/index.d.ts +7 -5
- package/lib/cell-group/CellGroup.d.ts +4 -4
- package/lib/cell-group/CellGroup.js +1 -2
- package/lib/cell-group/index.d.ts +4 -4
- package/lib/checkbox/Checkbox.d.ts +5 -5
- package/lib/checkbox/Checkbox.js +3 -4
- package/lib/checkbox/Checker.d.ts +5 -5
- package/lib/checkbox/Checker.js +5 -6
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.js +2 -3
- package/lib/checkbox-group/index.d.ts +5 -5
- package/lib/col/Col.d.ts +4 -4
- package/lib/col/Col.js +2 -3
- package/lib/col/index.d.ts +4 -4
- package/lib/collapse/Collapse.d.ts +5 -5
- package/lib/collapse/Collapse.js +1 -2
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +8 -9
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +4 -4
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-refs.d.ts +1 -1
- package/lib/composables/use-route.d.ts +2 -0
- package/lib/composables/use-route.js +2 -1
- package/lib/composables/use-sync-prop-ref.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +8 -8
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/ConfigProvider.js +10 -11
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/date-time-picker/DateTimePicker.d.ts +5 -5
- package/lib/date-time-picker/DateTimePicker.js +17 -18
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
- package/lib/date-time-picker/DateTimePickerWrapper.js +12 -13
- package/lib/date-time-picker/index.d.ts +5 -5
- package/lib/dialog/Dialog.d.ts +5 -5
- package/lib/dialog/Dialog.js +4 -5
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +5 -5
- package/lib/divider/Divider.d.ts +4 -4
- package/lib/divider/Divider.js +1 -2
- package/lib/divider/index.d.ts +4 -4
- package/lib/drawer-select/DrawerSelect.d.ts +5 -5
- package/lib/drawer-select/DrawerSelect.js +13 -14
- package/lib/drawer-select/index.d.ts +5 -5
- package/lib/dropdown-item/DropdownItem.d.ts +6 -6
- package/lib/dropdown-item/DropdownItem.js +5 -6
- package/lib/dropdown-item/index.d.ts +6 -6
- package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.js +6 -7
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +4 -4
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +1 -2
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +5 -5
- package/lib/field/Field.js +18 -19
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.js +14 -15
- package/lib/floating-bubble/index.css +1 -1
- package/lib/floating-bubble/index.d.ts +5 -5
- package/lib/form/Form.d.ts +5 -5
- package/lib/form/Form.js +1 -2
- package/lib/form/index.d.ts +5 -5
- package/lib/grid/Grid.d.ts +4 -4
- package/lib/grid/Grid.js +1 -2
- package/lib/grid/index.d.ts +4 -4
- package/lib/grid-item/GridItem.d.ts +7 -4
- package/lib/grid-item/GridItem.js +3 -4
- package/lib/grid-item/index.d.ts +6 -4
- package/lib/hierarchy-select/Breadcrumb.d.ts +5 -5
- package/lib/hierarchy-select/Breadcrumb.js +1 -2
- package/lib/hierarchy-select/HierarchySelect.d.ts +5 -5
- package/lib/hierarchy-select/HierarchySelect.js +6 -7
- package/lib/hierarchy-select/index.d.ts +5 -5
- package/lib/icon/Icon.d.ts +4 -4
- package/lib/icon/Icon.js +3 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +4 -4
- package/lib/image/Image.d.ts +5 -5
- package/lib/image/Image.js +9 -10
- package/lib/image/index.d.ts +5 -5
- package/lib/image-preview/ImagePreview.d.ts +5 -5
- package/lib/image-preview/ImagePreview.js +8 -9
- package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
- package/lib/image-preview/ImagePreviewItem.js +10 -11
- package/lib/image-preview/index.d.ts +5 -5
- package/lib/index-anchor/IndexAnchor.d.ts +3 -3
- package/lib/index-anchor/IndexAnchor.js +4 -5
- package/lib/index-anchor/index.d.ts +3 -3
- package/lib/index-bar/IndexBar.d.ts +5 -5
- package/lib/index-bar/IndexBar.js +12 -13
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +5 -5
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/List.d.ts +5 -5
- package/lib/list/List.js +10 -11
- package/lib/list/index.d.ts +5 -5
- package/lib/loading/Loading.d.ts +4 -4
- package/lib/loading/Loading.js +2 -3
- package/lib/loading/index.d.ts +4 -4
- package/lib/media-picker/MediaPicker.d.ts +9 -5
- package/lib/media-picker/MediaPicker.js +6 -4
- package/lib/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultAudioIcon.js +1 -2
- package/lib/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultFileIcon.js +1 -2
- package/lib/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultVideoIcon.js +1 -2
- package/lib/media-picker/image/DeleteIcon.d.ts +1 -1
- package/lib/media-picker/image/DeleteIcon.js +1 -2
- package/lib/media-picker/image/PickFileIcon.d.ts +1 -1
- package/lib/media-picker/image/PickFileIcon.js +1 -2
- package/lib/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/PickPhotoIcon.js +1 -2
- package/lib/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeAudioIcon.js +1 -2
- package/lib/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakePhotoIcon.js +1 -2
- package/lib/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeVideoIcon.js +1 -2
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.d.ts +7 -5
- package/lib/media-player/MediaPlayer.d.ts +21 -5
- package/lib/media-player/MediaPlayer.js +5 -1
- package/lib/media-player/index.d.ts +14 -5
- package/lib/multiple-picker/MultiplePicker.d.ts +5 -5
- package/lib/multiple-picker/MultiplePicker.js +9 -10
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +5 -5
- package/lib/multiple-picker/MultiplePickerOptions.js +4 -5
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.d.ts +5 -5
- package/lib/nav-bar/NavBar.d.ts +5 -5
- package/lib/nav-bar/NavBar.js +2 -3
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.js +5 -6
- package/lib/notice-bar/index.d.ts +5 -5
- package/lib/notify/Notify.d.ts +5 -5
- package/lib/notify/Notify.js +1 -2
- package/lib/notify/index.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/lib/number-keyboard/NumberKeyboard.js +6 -7
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +6 -6
- package/lib/overlay/Overlay.d.ts +4 -4
- package/lib/overlay/Overlay.js +2 -3
- package/lib/overlay/index.d.ts +4 -4
- package/lib/password-input/PasswordInput.d.ts +5 -5
- package/lib/password-input/PasswordInput.js +1 -2
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +5 -5
- package/lib/picker/Picker.d.ts +5 -5
- package/lib/picker/Picker.js +18 -19
- package/lib/picker/PickerColumn.d.ts +5 -5
- package/lib/picker/PickerColumn.js +6 -7
- package/lib/picker/PickerOptions.d.ts +5 -5
- package/lib/picker/PickerOptions.js +5 -6
- package/lib/picker/PickerToolbar.d.ts +4 -4
- package/lib/picker/PickerToolbar.js +1 -2
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +5 -5
- package/lib/popover/Popover.d.ts +5 -5
- package/lib/popover/Popover.js +16 -17
- package/lib/popover/index.d.ts +5 -5
- package/lib/popup/Popup.d.ts +6 -6
- package/lib/popup/Popup.js +15 -16
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +6 -6
- package/lib/pull-refresh/PullRefresh.d.ts +5 -5
- package/lib/pull-refresh/PullRefresh.js +7 -8
- package/lib/pull-refresh/index.d.ts +5 -5
- package/lib/radio/Radio.d.ts +5 -5
- package/lib/radio/Radio.js +1 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +5 -5
- package/lib/radio-group/RadioGroup.d.ts +5 -5
- package/lib/radio-group/RadioGroup.js +2 -3
- package/lib/radio-group/index.d.ts +5 -5
- package/lib/radio-picker/RadioPicker.d.ts +5 -5
- package/lib/radio-picker/RadioPicker.js +18 -19
- package/lib/radio-picker/RadioPickerColumn.d.ts +5 -5
- package/lib/radio-picker/RadioPickerColumn.js +7 -8
- package/lib/radio-picker/RadioPickerToolbar.d.ts +4 -4
- package/lib/radio-picker/RadioPickerToolbar.js +1 -2
- package/lib/radio-picker/index.css +1 -1
- package/lib/radio-picker/index.d.ts +5 -5
- package/lib/rate/Rate.d.ts +5 -5
- package/lib/rate/Rate.js +3 -4
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +5 -5
- package/lib/row/Row.d.ts +4 -4
- package/lib/row/Row.js +3 -4
- package/lib/row/index.d.ts +4 -4
- package/lib/search/Search.d.ts +5 -5
- package/lib/search/Search.js +2 -3
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +5 -5
- package/lib/signature/Signature.d.ts +5 -5
- package/lib/signature/Signature.js +12 -13
- package/lib/signature/index.d.ts +5 -5
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +1 -2
- package/lib/skeleton/index.d.ts +5 -5
- package/lib/slider/Slider.d.ts +5 -5
- package/lib/slider/Slider.js +8 -9
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +5 -5
- package/lib/step/Step.d.ts +3 -3
- package/lib/step/Step.js +2 -3
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +3 -3
- package/lib/stepper/Stepper.d.ts +5 -5
- package/lib/stepper/Stepper.js +11 -12
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +5 -5
- package/lib/steps/Steps.d.ts +5 -5
- package/lib/steps/Steps.js +1 -2
- package/lib/steps/index.d.ts +5 -5
- package/lib/sticky/Sticky.d.ts +5 -5
- package/lib/sticky/Sticky.js +7 -8
- package/lib/sticky/index.d.ts +5 -5
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +22 -23
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +5 -5
- package/lib/swipe-cell/SwipeCell.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.js +7 -8
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +6 -6
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +6 -7
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +5 -5
- package/lib/switch/Switch.js +1 -2
- package/lib/switch/index.d.ts +5 -5
- package/lib/tab/Tab.d.ts +7 -4
- package/lib/tab/Tab.js +6 -7
- package/lib/tab/index.d.ts +6 -4
- package/lib/tabbar/Tabbar.d.ts +5 -5
- package/lib/tabbar/Tabbar.js +2 -3
- package/lib/tabbar/index.d.ts +5 -5
- package/lib/tabbar-item/TabbarItem.d.ts +8 -5
- package/lib/tabbar-item/TabbarItem.js +3 -4
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +7 -5
- package/lib/table/Table.d.ts +5 -5
- package/lib/table/Table.js +8 -9
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +5 -5
- package/lib/tabs/Tabs.d.ts +5 -5
- package/lib/tabs/Tabs.js +20 -21
- package/lib/tabs/TabsContent.d.ts +5 -5
- package/lib/tabs/TabsContent.js +4 -5
- package/lib/tabs/TabsTitle.d.ts +4 -4
- package/lib/tabs/TabsTitle.js +6 -7
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +5 -5
- package/lib/tag/Tag.d.ts +5 -5
- package/lib/tag/Tag.js +2 -3
- package/lib/tag/index.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.js +8 -9
- package/lib/text-ellipsis/index.d.ts +5 -5
- package/lib/time-picker/Arrow.d.ts +2 -2
- package/lib/time-picker/Arrow.js +1 -2
- package/lib/time-picker/TimePicker.d.ts +5 -5
- package/lib/time-picker/TimePicker.js +12 -13
- package/lib/time-picker/TimePickerColumn.d.ts +5 -5
- package/lib/time-picker/TimePickerColumn.js +6 -7
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +5 -5
- package/lib/timeline/Timeline.d.ts +4 -4
- package/lib/timeline/Timeline.js +3 -4
- package/lib/timeline/index.d.ts +4 -4
- package/lib/toast/Toast.d.ts +5 -5
- package/lib/toast/Toast.js +5 -6
- package/lib/toast/function-call.js +3 -4
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +5 -5
- package/lib/uploader/Uploader.d.ts +5 -5
- package/lib/uploader/Uploader.js +5 -5
- package/lib/uploader/UploaderPreviewItem.d.ts +5 -5
- package/lib/uploader/UploaderPreviewItem.js +1 -2
- package/lib/uploader/index.d.ts +5 -5
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/video/Video.d.ts +8 -5
- package/lib/video/Video.js +13 -11
- package/lib/video/index.css +1 -1
- package/lib/video/index.d.ts +7 -5
- package/lib/video/types.d.ts +1 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +24 -10
- package/lib/zartui.es.js +24 -10
- package/lib/zartui.js +37 -20
- package/lib/zartui.min.js +1 -1
- package/package.json +7 -7
|
@@ -26,7 +26,7 @@ declare const calendarMonthProps: {
|
|
|
26
26
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
27
27
|
};
|
|
28
28
|
export type CalendarMonthProps = ExtractPropTypes<typeof calendarMonthProps>;
|
|
29
|
-
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
30
|
date: {
|
|
31
31
|
type: DateConstructor;
|
|
32
32
|
required: true;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
showMonthTitle: BooleanConstructor;
|
|
50
50
|
firstDayOfWeek: NumberConstructor;
|
|
51
51
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
52
|
-
}
|
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
53
53
|
date: {
|
|
54
54
|
type: DateConstructor;
|
|
55
55
|
required: true;
|
|
@@ -72,14 +72,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
showMonthTitle: BooleanConstructor;
|
|
73
73
|
firstDayOfWeek: NumberConstructor;
|
|
74
74
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
75
|
-
}>> & {
|
|
75
|
+
}>> & Readonly<{
|
|
76
76
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
77
|
-
}
|
|
77
|
+
}>, {
|
|
78
78
|
lazyRender: boolean;
|
|
79
79
|
showType: CalendarShowType;
|
|
80
80
|
showMark: boolean;
|
|
81
81
|
allowSameDay: boolean;
|
|
82
82
|
showSubtitle: boolean;
|
|
83
83
|
showMonthTitle: boolean;
|
|
84
|
-
}, {}>;
|
|
84
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
85
|
export default _default;
|
|
@@ -31,7 +31,6 @@ __export(stdin_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(stdin_exports);
|
|
33
33
|
var import_vue = require("vue");
|
|
34
|
-
var import_vue2 = require("vue");
|
|
35
34
|
var import_utils = require("../utils");
|
|
36
35
|
var import_utils2 = require("./utils");
|
|
37
36
|
var import_use = require("@zartui/use");
|
|
@@ -57,7 +56,7 @@ const calendarMonthProps = {
|
|
|
57
56
|
firstDayOfWeek: Number,
|
|
58
57
|
disabledDate: Function
|
|
59
58
|
};
|
|
60
|
-
var stdin_default = (0,
|
|
59
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
61
60
|
name,
|
|
62
61
|
props: calendarMonthProps,
|
|
63
62
|
emits: ["click"],
|
|
@@ -66,12 +65,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
66
65
|
slots
|
|
67
66
|
}) {
|
|
68
67
|
const [visible, setVisible] = (0, import_use.useToggle)();
|
|
69
|
-
const daysRef = (0,
|
|
70
|
-
const monthRef = (0,
|
|
68
|
+
const daysRef = (0, import_vue.ref)();
|
|
69
|
+
const monthRef = (0, import_vue.ref)();
|
|
71
70
|
const height = (0, import_use_height.useHeight)(monthRef);
|
|
72
|
-
const title = (0,
|
|
73
|
-
const rowHeight = (0,
|
|
74
|
-
const offset = (0,
|
|
71
|
+
const title = (0, import_vue.computed)(() => (0, import_utils2.formatMonthTitle)(props.date));
|
|
72
|
+
const rowHeight = (0, import_vue.computed)(() => (0, import_utils.addUnit)(props.rowHeight));
|
|
73
|
+
const offset = (0, import_vue.computed)(() => {
|
|
75
74
|
const realDay = props.date.getDay();
|
|
76
75
|
if (props.firstDayOfWeek) {
|
|
77
76
|
return (realDay + 7 - props.firstDayOfWeek) % 7;
|
|
@@ -79,8 +78,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
79
78
|
return realDay;
|
|
80
79
|
});
|
|
81
80
|
const getMonthEndDay = (year, month) => 32 - new Date(year, month - 1, 32).getDate();
|
|
82
|
-
const totalDay = (0,
|
|
83
|
-
const shouldRender = (0,
|
|
81
|
+
const totalDay = (0, import_vue.computed)(() => getMonthEndDay(props.date.getFullYear(), props.date.getMonth() + 1));
|
|
82
|
+
const shouldRender = (0, import_vue.computed)(() => visible.value || !props.lazyRender);
|
|
84
83
|
const getTitle = () => title.value;
|
|
85
84
|
const getDate = () => props.date;
|
|
86
85
|
const getMultipleDayType = (day) => {
|
|
@@ -173,13 +172,13 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
173
172
|
}, [title.value]);
|
|
174
173
|
}
|
|
175
174
|
};
|
|
176
|
-
const placeholders = (0,
|
|
175
|
+
const placeholders = (0, import_vue.computed)(() => {
|
|
177
176
|
const count = Math.ceil((totalDay.value + offset.value) / 7);
|
|
178
177
|
return Array(count).fill({
|
|
179
178
|
type: "placeholder"
|
|
180
179
|
});
|
|
181
180
|
});
|
|
182
|
-
const days = (0,
|
|
181
|
+
const days = (0, import_vue.computed)(() => {
|
|
183
182
|
const days2 = [];
|
|
184
183
|
const year = props.date.getFullYear();
|
|
185
184
|
const month = props.date.getMonth();
|
|
@@ -232,7 +231,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
232
231
|
}
|
|
233
232
|
return days2;
|
|
234
233
|
});
|
|
235
|
-
const disabledDays = (0,
|
|
234
|
+
const disabledDays = (0, import_vue.computed)(() => days.value.filter((day) => day.type === "disabled"));
|
|
236
235
|
const scrollToDate = (body, targetDate) => {
|
|
237
236
|
if (daysRef.value) {
|
|
238
237
|
const daysRect = (0, import_use.useRect)(daysRef.value);
|
package/lib/calendar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-calendar-background: var(--zt-background-popup);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4);--zt-calendar-weekday-line-height: 30px;--zt-calendar-header-height: 32px;--zt-calendar-header-subtitle-line-height: 44px}:root[zt-theme-size=large]{--zt-calendar-weekday-line-height: 42px;--zt-calendar-header-height: 44px;--zt-calendar-header-subtitle-line-height: 56px}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-subtitle-line-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:var(--zt-calendar-header-height);border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-font-size-md);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-calendar__header-subtitle,.zt-calendar__month-title{font-size:var(--zt-font-size-md)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-font-size-sm);line-height:var(--zt-calendar-weekday-line-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-font-size-lg);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-range-middle-color: var(--zt-white)}
|
|
1
|
+
:root{--zt-calendar-background: var(--zt-background-popup);--zt-calendar-popup-height: 80%;--zt-calendar-body-box-shadow: inset 0 4px 8px 0 var(--zt-gray-a1);--zt-calendar-header-title-height: 44px;--zt-calendar-weekdays-font-color: var(--zt-gray-a8);--zt-calendar-weekdays-background: var(--zt-calendar-background);--zt-calendar-day-height: 14.285vw;--zt-calendar-day-height-half: 7.143vw;--zt-calendar-day-margin-bottom: 4px;--zt-calendar-range-edge-color: var(--zt-white);--zt-calendar-range-edge-background: var(--zt-primary-color);--zt-calendar-range-middle-color: var(--zt-primary-color);--zt-calendar-range-middle-background-opacity: .1;--zt-calendar-selected-day-size: var(--zt-calendar-day-height);--zt-calendar-selected-day-color: var(--zt-white);--zt-calendar-selected-day-background: var(--zt-primary-color);--zt-calendar-day-disabled-color: var(--zt-gray-a2);--zt-calendar-confirm-button-height: 36px;--zt-calendar-confirm-button-margin: 7px 0;--zt-calendar-header-title-color: var(--zt-gray-a4);--zt-calendar-weekday-line-height: 30px;--zt-calendar-header-height: 32px;--zt-calendar-header-subtitle-line-height: 44px}:root[zt-theme-size=large]{--zt-calendar-weekday-line-height: 42px;--zt-calendar-header-height: 44px;--zt-calendar-header-subtitle-line-height: 56px}.zt-calendar{display:flex;flex-direction:column;height:100%;background:var(--zt-calendar-background);color:var(--zt-text-color)}.zt-calendar__popup.zt-popup--top,.zt-calendar__popup.zt-popup--bottom{height:var(--zt-calendar-popup-height)}.zt-calendar__popup.zt-popup--left,.zt-calendar__popup.zt-popup--right{height:100%}.zt-calendar__header{flex-shrink:0}.zt-calendar__svg-defs-path-fill{fill:var(--zt-primary-color)}.zt-calendar__month-title,.zt-calendar__header-title,.zt-calendar__header-subtitle{display:flex;padding:0 16px;color:var(--zt-text-color);height:var(--zt-calendar-header-title-height);line-height:var(--zt-calendar-header-subtitle-line-height);text-align:center;align-items:center;justify-content:center}.zt-calendar__month-title--opt,.zt-calendar__header-title--opt,.zt-calendar__header-subtitle--opt{width:32px;height:32px;line-height:var(--zt-calendar-header-height);border-radius:50%;padding:0;margin:0 8px}.zt-calendar__month-title--right,.zt-calendar__header-title--right,.zt-calendar__header-subtitle--right{transform:rotate(180deg)}.zt-calendar__month-title--unenable,.zt-calendar__header-title--unenable,.zt-calendar__header-subtitle--unenable{opacity:.2}.zt-calendar__month-title--enable,.zt-calendar__header-title--enable,.zt-calendar__header-subtitle--enable{opacity:1}.zt-calendar__month-title--enable:active,.zt-calendar__header-title--enable:active,.zt-calendar__header-subtitle--enable:active{border-radius:50%;background-color:var(--zt-gray-a1);opacity:.6}.zt-calendar__month-title-text,.zt-calendar__header-title-text,.zt-calendar__header-subtitle-text{flex-grow:1}.zt-calendar__header-title{font-size:var(--zt-font-size-md);color:var(--zt-calendar-header-title-color);position:relative;display:flex;justify-content:center;align-items:center}.zt-calendar__header-title:after{top:var(--zt-calendar-header-title-height);content:"";position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-calendar__header-subtitle,.zt-calendar__month-title{font-size:var(--zt-font-size-md)}.zt-calendar__weekdays{display:flex;background-color:rgba(0,0,0,.02)}.zt-calendar__weekday{flex:1;font-size:var(--zt-font-size-sm);line-height:var(--zt-calendar-weekday-line-height);font-weight:var(--zt-font-bold);text-align:center;background:var(--zt-calendar-weekdays-background);color:var(--zt-calendar-weekdays-font-color)}.zt-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;background-color:var(--zt-calendar-background);box-shadow:var(--zt-calendar-body-box-shadow)}.zt-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-calendar__day,.zt-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.zt-calendar__day{position:relative;width:14.285%;height:var(--zt-calendar-day-height);margin-bottom:var(--zt-calendar-day-margin-bottom);font-size:var(--zt-font-size-lg);cursor:pointer;outline:none}.zt-calendar__day--end,.zt-calendar__day--start,.zt-calendar__day--start-end,.zt-calendar__day--multiple-middle,.zt-calendar__day--multiple-selected{color:var(--zt-calendar-range-edge-color);background:var(--zt-calendar-range-edge-background);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__day--start{border-radius:var(--zt-calendar-day-height-half) 0 0 var(--zt-calendar-day-height-half);border-right:none}.zt-calendar__day--end{border-radius:0 var(--zt-calendar-day-height-half) var(--zt-calendar-day-height-half) 0;border-left:none}.zt-calendar__day--start-end,.zt-calendar__day--multiple-selected{border-radius:var(--zt-calendar-day-height-half)}.zt-calendar__day--middle{color:var(--zt-calendar-range-middle-color)}.zt-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--zt-calendar-range-middle-background-opacity);content:""}.zt-calendar__day--disabled,.zt-calendar__day--preview{color:var(--zt-calendar-day-disabled-color);cursor:default}.zt-calendar__selected-day{font-weight:var(--zt-font-bold);width:var(--zt-calendar-selected-day-size);height:var(--zt-calendar-selected-day-size);color:var(--zt-calendar-selected-day-color);background:var(--zt-calendar-selected-day-background);border-radius:calc(var(--zt-calendar-selected-day-size) / 2);box-shadow:0 0 0 3px var(--zt-primary-color-a1)}.zt-calendar__footer{flex-shrink:0;display:flex;padding:8px 16px;border-top:1px solid rgba(45,75,115,.1)}.zt-calendar__footer--unfit{padding-bottom:0}.zt-theme-dark{--zt-calendar-range-middle-color: var(--zt-white)}
|
package/lib/calendar/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Calendar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
show: BooleanConstructor;
|
|
3
3
|
showType: {
|
|
4
4
|
type: import("vue").PropType<import("./types").CalendarShowType>;
|
|
@@ -87,7 +87,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
87
87
|
validator: (val: number) => boolean;
|
|
88
88
|
};
|
|
89
89
|
disabledDate: import("vue").PropType<(date: Date) => boolean>;
|
|
90
|
-
}
|
|
90
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange")[], "select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
91
|
show: BooleanConstructor;
|
|
92
92
|
showType: {
|
|
93
93
|
type: import("vue").PropType<import("./types").CalendarShowType>;
|
|
@@ -176,7 +176,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
176
176
|
validator: (val: number) => boolean;
|
|
177
177
|
};
|
|
178
178
|
disabledDate: import("vue").PropType<(date: Date) => boolean>;
|
|
179
|
-
}>> & {
|
|
179
|
+
}>> & Readonly<{
|
|
180
180
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
181
181
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
182
182
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
@@ -185,7 +185,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
185
185
|
onUnselect?: ((...args: any[]) => any) | undefined;
|
|
186
186
|
onMonthShow?: ((...args: any[]) => any) | undefined;
|
|
187
187
|
onOverRange?: ((...args: any[]) => any) | undefined;
|
|
188
|
-
}
|
|
188
|
+
}>, {
|
|
189
189
|
type: import("./types").CalendarType;
|
|
190
190
|
position: import("..").PopupPosition;
|
|
191
191
|
round: boolean;
|
|
@@ -207,7 +207,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
|
207
207
|
showWeekDays: boolean;
|
|
208
208
|
showRangePrompt: boolean;
|
|
209
209
|
firstDayOfWeek: string | number;
|
|
210
|
-
}, {}>>;
|
|
210
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
211
211
|
export default Calendar;
|
|
212
212
|
export { calendarProps } from './Calendar';
|
|
213
213
|
export type { CalendarProps } from './Calendar';
|
|
@@ -51,7 +51,7 @@ export declare const cascaderProps: {
|
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
|
54
|
-
declare const _default: import("vue").DefineComponent<{
|
|
54
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
55
55
|
title: StringConstructor;
|
|
56
56
|
show: BooleanConstructor;
|
|
57
57
|
round: {
|
|
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
type: BooleanConstructor;
|
|
100
100
|
default: true;
|
|
101
101
|
};
|
|
102
|
-
}
|
|
102
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "update:show" | "clickTab" | "finish")[], "update:modelValue" | "cancel" | "change" | "update:show" | "clickTab" | "finish", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
103
103
|
title: StringConstructor;
|
|
104
104
|
show: BooleanConstructor;
|
|
105
105
|
round: {
|
|
@@ -147,14 +147,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
147
147
|
type: BooleanConstructor;
|
|
148
148
|
default: true;
|
|
149
149
|
};
|
|
150
|
-
}>> & {
|
|
150
|
+
}>> & Readonly<{
|
|
151
151
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
152
152
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
153
153
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
154
154
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
155
155
|
onClickTab?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
157
|
-
}
|
|
157
|
+
}>, {
|
|
158
158
|
position: PopupPosition;
|
|
159
159
|
round: boolean;
|
|
160
160
|
show: boolean;
|
|
@@ -167,5 +167,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
swipeable: boolean;
|
|
168
168
|
options: CascaderOption[];
|
|
169
169
|
showHeader: boolean;
|
|
170
|
-
}, {}>;
|
|
170
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
171
|
export default _default;
|
package/lib/cascader/Cascader.js
CHANGED
|
@@ -32,7 +32,6 @@ __export(stdin_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(stdin_exports);
|
|
34
34
|
var import_vue = require("vue");
|
|
35
|
-
var import_vue2 = require("vue");
|
|
36
35
|
var import_utils = require("../utils");
|
|
37
36
|
var import_tab = require("../tab");
|
|
38
37
|
var import_tabs = require("../tabs");
|
|
@@ -60,7 +59,7 @@ const cascaderProps = {
|
|
|
60
59
|
safeAreaInsetTop: Boolean,
|
|
61
60
|
closeOnClickOverlay: import_utils.truthProp
|
|
62
61
|
};
|
|
63
|
-
var stdin_default = (0,
|
|
62
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
64
63
|
name,
|
|
65
64
|
props: cascaderProps,
|
|
66
65
|
emits: ["change", "finish", "clickTab", "update:modelValue", "update:show", "cancel"],
|
|
@@ -68,10 +67,10 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
68
67
|
slots,
|
|
69
68
|
emit
|
|
70
69
|
}) {
|
|
71
|
-
const tabs = (0,
|
|
72
|
-
const activeTab = (0,
|
|
73
|
-
const currentValues = (0,
|
|
74
|
-
const currentShow = (0,
|
|
70
|
+
const tabs = (0, import_vue.ref)([]);
|
|
71
|
+
const activeTab = (0, import_vue.ref)(0);
|
|
72
|
+
const currentValues = (0, import_vue.ref)(props.modelValue);
|
|
73
|
+
const currentShow = (0, import_vue.ref)(props.show);
|
|
75
74
|
const {
|
|
76
75
|
text: textKey,
|
|
77
76
|
value: valueKey,
|
|
@@ -120,7 +119,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
120
119
|
selected: null
|
|
121
120
|
});
|
|
122
121
|
}
|
|
123
|
-
(0,
|
|
122
|
+
(0, import_vue.nextTick)(() => {
|
|
124
123
|
activeTab.value = tabs.value.length - 1;
|
|
125
124
|
});
|
|
126
125
|
return;
|
|
@@ -149,7 +148,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
149
148
|
} else {
|
|
150
149
|
tabs.value.push(nextTab);
|
|
151
150
|
}
|
|
152
|
-
(0,
|
|
151
|
+
(0, import_vue.nextTick)(() => {
|
|
153
152
|
activeTab.value++;
|
|
154
153
|
});
|
|
155
154
|
}
|
|
@@ -262,20 +261,20 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
262
261
|
currentValues.value = props.modelValue;
|
|
263
262
|
}
|
|
264
263
|
};
|
|
265
|
-
(0,
|
|
264
|
+
(0, import_vue.watch)(currentShow, (newValue) => {
|
|
266
265
|
if (newValue !== props.show) {
|
|
267
266
|
emit("update:show", newValue);
|
|
268
267
|
}
|
|
269
268
|
});
|
|
270
|
-
(0,
|
|
269
|
+
(0, import_vue.watch)(() => props.show, (newValue) => {
|
|
271
270
|
if (newValue !== currentShow.value) {
|
|
272
271
|
currentShow.value = newValue;
|
|
273
272
|
}
|
|
274
273
|
});
|
|
275
|
-
(0,
|
|
274
|
+
(0, import_vue.watch)(() => props.options, updateTabs, {
|
|
276
275
|
deep: true
|
|
277
276
|
});
|
|
278
|
-
(0,
|
|
277
|
+
(0, import_vue.watch)(() => props.modelValue, (value) => {
|
|
279
278
|
if (value !== void 0) {
|
|
280
279
|
const values = tabs.value.map((tab) => {
|
|
281
280
|
var _a;
|
package/lib/cascader/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Cascader: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
show: BooleanConstructor;
|
|
4
4
|
round: {
|
|
@@ -46,7 +46,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: true;
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "update:show" | "clickTab" | "finish")[], "update:modelValue" | "cancel" | "change" | "update:show" | "clickTab" | "finish", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
title: StringConstructor;
|
|
51
51
|
show: BooleanConstructor;
|
|
52
52
|
round: {
|
|
@@ -94,14 +94,14 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
94
94
|
type: BooleanConstructor;
|
|
95
95
|
default: true;
|
|
96
96
|
};
|
|
97
|
-
}>> & {
|
|
97
|
+
}>> & Readonly<{
|
|
98
98
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
102
102
|
onClickTab?: ((...args: any[]) => any) | undefined;
|
|
103
103
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
104
|
-
}
|
|
104
|
+
}>, {
|
|
105
105
|
position: import("..").PopupPosition;
|
|
106
106
|
round: boolean;
|
|
107
107
|
show: boolean;
|
|
@@ -114,7 +114,7 @@ export declare const Cascader: import("../utils").WithInstall<import("vue").Defi
|
|
|
114
114
|
swipeable: boolean;
|
|
115
115
|
options: import("./types").CascaderOption[];
|
|
116
116
|
showHeader: boolean;
|
|
117
|
-
}, {}>>;
|
|
117
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
118
118
|
export default Cascader;
|
|
119
119
|
export { cascaderProps } from './Cascader';
|
|
120
120
|
export type { CascaderProps } from './Cascader';
|
package/lib/cell/Cell.d.ts
CHANGED
|
@@ -93,9 +93,10 @@ declare const cellProps: {
|
|
|
93
93
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
94
94
|
url: StringConstructor;
|
|
95
95
|
replace: BooleanConstructor;
|
|
96
|
+
$router: PropType<import("vue-router").Router>;
|
|
96
97
|
};
|
|
97
98
|
export type CellProps = ExtractPropTypes<typeof cellProps>;
|
|
98
|
-
declare const _default: import("vue").DefineComponent<{
|
|
99
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
99
100
|
leftIcon: StringConstructor;
|
|
100
101
|
titleIcon: StringConstructor;
|
|
101
102
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -142,7 +143,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
143
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
143
144
|
url: StringConstructor;
|
|
144
145
|
replace: BooleanConstructor;
|
|
145
|
-
|
|
146
|
+
$router: PropType<import("vue-router").Router>;
|
|
147
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
146
148
|
leftIcon: StringConstructor;
|
|
147
149
|
titleIcon: StringConstructor;
|
|
148
150
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -189,10 +191,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
189
191
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
190
192
|
url: StringConstructor;
|
|
191
193
|
replace: BooleanConstructor;
|
|
192
|
-
|
|
194
|
+
$router: PropType<import("vue-router").Router>;
|
|
195
|
+
}>> & Readonly<{
|
|
193
196
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
194
197
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
195
|
-
}
|
|
198
|
+
}>, {
|
|
196
199
|
replace: boolean;
|
|
197
200
|
center: boolean;
|
|
198
201
|
value: string;
|
|
@@ -204,5 +207,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
207
|
clearable: boolean;
|
|
205
208
|
clearIcon: string;
|
|
206
209
|
description: string;
|
|
207
|
-
}, {}>;
|
|
210
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
208
211
|
export default _default;
|
package/lib/cell/Cell.js
CHANGED
|
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
|
24
24
|
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
25
|
var import_utils = require("../utils");
|
|
27
26
|
var import_use_route = require("../composables/use-route");
|
|
28
27
|
var import_use = require("@zartui/use");
|
|
@@ -59,7 +58,7 @@ const cellSharedProps = {
|
|
|
59
58
|
description: (0, import_utils.makeStringProp)("")
|
|
60
59
|
};
|
|
61
60
|
const cellProps = (0, import_utils.extend)({}, cellSharedProps, import_use_route.routeProps);
|
|
62
|
-
var stdin_default = (0,
|
|
61
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
63
62
|
name,
|
|
64
63
|
props: cellProps,
|
|
65
64
|
emits: ["click", "clear"],
|
|
@@ -68,7 +67,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
68
67
|
emit
|
|
69
68
|
}) {
|
|
70
69
|
const route = (0, import_use_route.useRoute)();
|
|
71
|
-
const clearIconRef = (0,
|
|
70
|
+
const clearIconRef = (0, import_vue.ref)();
|
|
72
71
|
const renderLabel = () => {
|
|
73
72
|
const showLabel = slots.label || (0, import_utils.isDef)(props.label);
|
|
74
73
|
if (showLabel) {
|
|
@@ -141,7 +140,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
141
140
|
return "click";
|
|
142
141
|
}
|
|
143
142
|
(0, import_use.useEventListener)(getClearIconListenerEvent(), onClear, {
|
|
144
|
-
target: (0,
|
|
143
|
+
target: (0, import_vue.computed)(() => {
|
|
145
144
|
var _a;
|
|
146
145
|
return (_a = clearIconRef.value) == null ? void 0 : _a.$el;
|
|
147
146
|
})
|
|
@@ -192,8 +191,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
192
191
|
}, null);
|
|
193
192
|
}
|
|
194
193
|
};
|
|
195
|
-
const showDescription = (0,
|
|
196
|
-
const showErrorMessage = (0,
|
|
194
|
+
const showDescription = (0, import_vue.computed)(() => !(0, import_utils2.isEmptyValue)(props.description));
|
|
195
|
+
const showErrorMessage = (0, import_vue.computed)(() => !(0, import_utils2.isEmptyValue)(props.errorMessage));
|
|
197
196
|
const renderDescription = () => {
|
|
198
197
|
if (!showDescription.value) {
|
|
199
198
|
return;
|
package/lib/cell/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Cell: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
leftIcon: StringConstructor;
|
|
3
3
|
titleIcon: StringConstructor;
|
|
4
4
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -45,7 +45,8 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
45
45
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
46
46
|
url: StringConstructor;
|
|
47
47
|
replace: BooleanConstructor;
|
|
48
|
-
|
|
48
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
49
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "click")[], "clear" | "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
50
|
leftIcon: StringConstructor;
|
|
50
51
|
titleIcon: StringConstructor;
|
|
51
52
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -92,10 +93,11 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
92
93
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
93
94
|
url: StringConstructor;
|
|
94
95
|
replace: BooleanConstructor;
|
|
95
|
-
|
|
96
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
97
|
+
}>> & Readonly<{
|
|
96
98
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
97
99
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
98
|
-
}
|
|
100
|
+
}>, {
|
|
99
101
|
replace: boolean;
|
|
100
102
|
center: boolean;
|
|
101
103
|
value: string;
|
|
@@ -107,7 +109,7 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
107
109
|
clearable: boolean;
|
|
108
110
|
clearIcon: string;
|
|
109
111
|
description: string;
|
|
110
|
-
}, {}>>;
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
111
113
|
export default Cell;
|
|
112
114
|
export type { CellProps, CellArrowDirection } from './Cell';
|
|
113
115
|
export type { CellDirection, CellThemeVars } from './types';
|
|
@@ -8,22 +8,22 @@ declare const cellGroupProps: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export type CellGroupProps = ExtractPropTypes<typeof cellGroupProps>;
|
|
11
|
-
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
12
12
|
title: StringConstructor;
|
|
13
13
|
inset: BooleanConstructor;
|
|
14
14
|
border: {
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: true;
|
|
17
17
|
};
|
|
18
|
-
}
|
|
18
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
19
19
|
title: StringConstructor;
|
|
20
20
|
inset: BooleanConstructor;
|
|
21
21
|
border: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: true;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
26
|
inset: boolean;
|
|
27
27
|
border: boolean;
|
|
28
|
-
}, {}>;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
29
|
export default _default;
|
|
@@ -21,7 +21,6 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
var import_vue2 = require("vue");
|
|
25
24
|
var import_utils = require("../utils");
|
|
26
25
|
var import_use_scope_id = require("../composables/use-scope-id");
|
|
27
26
|
const [name, bem] = (0, import_utils.createNamespace)("cell-group");
|
|
@@ -30,7 +29,7 @@ const cellGroupProps = {
|
|
|
30
29
|
inset: Boolean,
|
|
31
30
|
border: import_utils.truthProp
|
|
32
31
|
};
|
|
33
|
-
var stdin_default = (0,
|
|
32
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
34
33
|
name,
|
|
35
34
|
inheritAttrs: false,
|
|
36
35
|
props: cellGroupProps,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare const CellGroup: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const CellGroup: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
title: StringConstructor;
|
|
3
3
|
inset: BooleanConstructor;
|
|
4
4
|
border: {
|
|
5
5
|
type: BooleanConstructor;
|
|
6
6
|
default: true;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
title: StringConstructor;
|
|
10
10
|
inset: BooleanConstructor;
|
|
11
11
|
border: {
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: true;
|
|
14
14
|
};
|
|
15
|
-
}
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
16
|
inset: boolean;
|
|
17
17
|
border: boolean;
|
|
18
|
-
}, {}>>;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
19
19
|
export default CellGroup;
|
|
20
20
|
export type { CellGroupProps } from './CellGroup';
|
|
21
21
|
declare module 'vue' {
|
|
@@ -23,7 +23,7 @@ declare const checkboxProps: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
26
|
-
declare const _default: import("vue").DefineComponent<{
|
|
26
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
27
27
|
name: PropType<unknown>;
|
|
28
28
|
shape: {
|
|
29
29
|
type: PropType<import("./Checker").CheckerShape>;
|
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
type: PropType<boolean | null>;
|
|
45
45
|
default: null;
|
|
46
46
|
};
|
|
47
|
-
}
|
|
47
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
48
48
|
name: PropType<unknown>;
|
|
49
49
|
shape: {
|
|
50
50
|
type: PropType<import("./Checker").CheckerShape>;
|
|
@@ -65,14 +65,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
type: PropType<boolean | null>;
|
|
66
66
|
default: null;
|
|
67
67
|
};
|
|
68
|
-
}>> & {
|
|
68
|
+
}>> & Readonly<{
|
|
69
69
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}
|
|
71
|
+
}>, {
|
|
72
72
|
shape: import("./Checker").CheckerShape;
|
|
73
73
|
disabled: boolean;
|
|
74
74
|
labelDisabled: boolean;
|
|
75
75
|
bindGroup: boolean;
|
|
76
76
|
indeterminate: boolean | null;
|
|
77
|
-
}, {}>;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
78
|
export default _default;
|
package/lib/checkbox/Checkbox.js
CHANGED
|
@@ -31,7 +31,6 @@ __export(stdin_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(stdin_exports);
|
|
33
33
|
var import_vue = require("vue");
|
|
34
|
-
var import_vue2 = require("vue");
|
|
35
34
|
var import_utils = require("../utils");
|
|
36
35
|
var import_CheckboxGroup = require("../checkbox-group/CheckboxGroup");
|
|
37
36
|
var import_use = require("@zartui/use");
|
|
@@ -45,7 +44,7 @@ const checkboxProps = (0, import_utils.extend)({}, import_Checker.checkerProps,
|
|
|
45
44
|
default: null
|
|
46
45
|
}
|
|
47
46
|
});
|
|
48
|
-
var stdin_default = (0,
|
|
47
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
49
48
|
name,
|
|
50
49
|
props: checkboxProps,
|
|
51
50
|
emits: ["change", "update:modelValue"],
|
|
@@ -83,7 +82,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
};
|
|
86
|
-
const checked = (0,
|
|
85
|
+
const checked = (0, import_vue.computed)(() => {
|
|
87
86
|
if (parent && props.bindGroup) {
|
|
88
87
|
return parent.props.modelValue.indexOf(props.name) !== -1;
|
|
89
88
|
}
|
|
@@ -99,7 +98,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
};
|
|
102
|
-
(0,
|
|
101
|
+
(0, import_vue.watch)(() => props.modelValue, (value) => {
|
|
103
102
|
if (props.indeterminate === null) {
|
|
104
103
|
emit("change", value);
|
|
105
104
|
}
|
|
@@ -24,7 +24,7 @@ export declare const checkerProps: {
|
|
|
24
24
|
labelPosition: PropType<CheckerLabelPosition>;
|
|
25
25
|
labelDisabled: BooleanConstructor;
|
|
26
26
|
};
|
|
27
|
-
declare const _default: import("vue").DefineComponent<{
|
|
27
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
28
28
|
name: PropType<unknown>;
|
|
29
29
|
shape: {
|
|
30
30
|
type: PropType<CheckerShape>;
|
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
type: PropType<boolean | null>;
|
|
53
53
|
default: null;
|
|
54
54
|
};
|
|
55
|
-
}
|
|
55
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
56
|
name: PropType<unknown>;
|
|
57
57
|
shape: {
|
|
58
58
|
type: PropType<CheckerShape>;
|
|
@@ -80,15 +80,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
type: PropType<boolean | null>;
|
|
81
81
|
default: null;
|
|
82
82
|
};
|
|
83
|
-
}>> & {
|
|
83
|
+
}>> & Readonly<{
|
|
84
84
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
onToggle?: ((...args: any[]) => any) | undefined;
|
|
86
|
-
}
|
|
86
|
+
}>, {
|
|
87
87
|
shape: CheckerShape;
|
|
88
88
|
disabled: boolean;
|
|
89
89
|
checked: boolean;
|
|
90
90
|
labelDisabled: boolean;
|
|
91
91
|
bindGroup: boolean;
|
|
92
92
|
indeterminate: boolean | null;
|
|
93
|
-
}, {}>;
|
|
93
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
94
94
|
export default _default;
|