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
package/lib/swipe/Swipe.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 = require("@zartui/use");
|
|
28
27
|
var import_use_touch = require("../composables/use-touch");
|
|
@@ -45,7 +44,7 @@ const swipeProps = {
|
|
|
45
44
|
title: Array
|
|
46
45
|
};
|
|
47
46
|
const SWIPE_KEY = Symbol(name);
|
|
48
|
-
var stdin_default = (0,
|
|
47
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
49
48
|
name,
|
|
50
49
|
props: swipeProps,
|
|
51
50
|
emits: ["change", "dragStart", "dragEnd"],
|
|
@@ -53,8 +52,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
53
52
|
emit,
|
|
54
53
|
slots
|
|
55
54
|
}) {
|
|
56
|
-
const root = (0,
|
|
57
|
-
const state = (0,
|
|
55
|
+
const root = (0, import_vue.ref)();
|
|
56
|
+
const state = (0, import_vue.reactive)({
|
|
58
57
|
rect: null,
|
|
59
58
|
width: 0,
|
|
60
59
|
height: 0,
|
|
@@ -68,24 +67,24 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
68
67
|
children,
|
|
69
68
|
linkChildren
|
|
70
69
|
} = (0, import_use.useChildren)(SWIPE_KEY);
|
|
71
|
-
const count = (0,
|
|
72
|
-
const size = (0,
|
|
73
|
-
const delta = (0,
|
|
74
|
-
const minOffset = (0,
|
|
70
|
+
const count = (0, import_vue.computed)(() => children.length);
|
|
71
|
+
const size = (0, import_vue.computed)(() => state[props.vertical ? "height" : "width"]);
|
|
72
|
+
const delta = (0, import_vue.computed)(() => props.vertical ? touch.deltaY.value : touch.deltaX.value);
|
|
73
|
+
const minOffset = (0, import_vue.computed)(() => {
|
|
75
74
|
if (state.rect) {
|
|
76
75
|
const base = props.vertical ? state.rect.height : state.rect.width;
|
|
77
76
|
return base - size.value * count.value;
|
|
78
77
|
}
|
|
79
78
|
return 0;
|
|
80
79
|
});
|
|
81
|
-
const maxCount = (0,
|
|
82
|
-
const trackSize = (0,
|
|
83
|
-
const activeIndicator = (0,
|
|
84
|
-
const isCorrectDirection = (0,
|
|
80
|
+
const maxCount = (0, import_vue.computed)(() => size.value ? Math.ceil(Math.abs(minOffset.value) / size.value) : count.value);
|
|
81
|
+
const trackSize = (0, import_vue.computed)(() => count.value * size.value);
|
|
82
|
+
const activeIndicator = (0, import_vue.computed)(() => count.value ? (state.active + count.value) % count.value : 0);
|
|
83
|
+
const isCorrectDirection = (0, import_vue.computed)(() => {
|
|
85
84
|
const expect = props.vertical ? "vertical" : "horizontal";
|
|
86
85
|
return touch.direction.value === expect;
|
|
87
86
|
});
|
|
88
|
-
const trackStyle = (0,
|
|
87
|
+
const trackStyle = (0, import_vue.computed)(() => {
|
|
89
88
|
const style = {
|
|
90
89
|
transitionDuration: `${state.swiping ? 0 : props.duration}ms`,
|
|
91
90
|
transform: `translate${props.vertical ? "Y" : "X"}(${+state.offset.toFixed(2)}px)`
|
|
@@ -225,7 +224,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
225
224
|
autoplay();
|
|
226
225
|
};
|
|
227
226
|
if ((0, import_utils.isHidden)(root)) {
|
|
228
|
-
(0,
|
|
227
|
+
(0, import_vue.nextTick)().then(cb);
|
|
229
228
|
} else {
|
|
230
229
|
cb();
|
|
231
230
|
}
|
|
@@ -368,24 +367,24 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
368
367
|
count,
|
|
369
368
|
activeIndicator
|
|
370
369
|
});
|
|
371
|
-
(0,
|
|
372
|
-
(0,
|
|
373
|
-
(0,
|
|
374
|
-
(0,
|
|
375
|
-
(0,
|
|
370
|
+
(0, import_vue.watch)(() => props.initialSwipe, (value) => initialize(+value));
|
|
371
|
+
(0, import_vue.watch)(count, () => initialize(state.active));
|
|
372
|
+
(0, import_vue.watch)(() => props.autoplay, autoplay);
|
|
373
|
+
(0, import_vue.watch)([import_utils.windowWidth, import_utils.windowHeight], resize);
|
|
374
|
+
(0, import_vue.watch)((0, import_use.usePageVisibility)(), (visible) => {
|
|
376
375
|
if (visible === "visible") {
|
|
377
376
|
autoplay();
|
|
378
377
|
} else {
|
|
379
378
|
stopAutoplay();
|
|
380
379
|
}
|
|
381
380
|
});
|
|
382
|
-
(0,
|
|
383
|
-
(0,
|
|
381
|
+
(0, import_vue.onMounted)(initialize);
|
|
382
|
+
(0, import_vue.onActivated)(() => initialize(state.active));
|
|
384
383
|
(0, import_on_popup_reopen.onPopupReopen)(() => {
|
|
385
384
|
initialize(state.active);
|
|
386
385
|
});
|
|
387
|
-
(0,
|
|
388
|
-
(0,
|
|
386
|
+
(0, import_vue.onDeactivated)(stopAutoplay);
|
|
387
|
+
(0, import_vue.onBeforeUnmount)(stopAutoplay);
|
|
389
388
|
return () => {
|
|
390
389
|
var _a;
|
|
391
390
|
return (0, import_vue.createVNode)("div", {
|
package/lib/swipe/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-swipe-indicator-size: 4px;--zt-swipe-indicator-active-opacity: 1;--zt-swipe-indicator-inactive-opacity: .4;--zt-swipe-indicator-active-background: var(--zt-white);--zt-swipe-indicator-inactive-background: var(--zt-white);--zt-swipe-title-color: var(--zt-white);--zt-footer-padding: 0 16px;--zt-footer-height: 44px}.zt-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor
|
|
1
|
+
:root{--zt-swipe-indicator-size: 4px;--zt-swipe-indicator-active-opacity: 1;--zt-swipe-indicator-inactive-opacity: .4;--zt-swipe-indicator-active-background: var(--zt-white);--zt-swipe-indicator-inactive-background: var(--zt-white);--zt-swipe-title-color: var(--zt-white);--zt-footer-padding: 0 16px;--zt-footer-height: 44px}.zt-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-swipe__track{display:flex;height:100%;transition-property:transform}.zt-swipe__track--vertical{flex-direction:column}.zt-swipe__foot{background-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.6));height:var(--zt-footer-height);position:absolute;bottom:0;width:100%;padding:var(--zt-footer-padding);display:flex;align-items:center;justify-content:space-between;box-sizing:border-box}.zt-swipe__title{font-size:var(--zt-font-size-lg);color:var(--zt-swipe-title-color)}.zt-swipe__indicators{display:flex}.zt-swipe__indicators--vertical{flex-direction:column}.zt-swipe__indicators--vertical .zt-swipe__indicator:not(:last-child){margin-bottom:var(--zt-swipe-indicator-size)}.zt-swipe__indicator{width:var(--zt-swipe-indicator-size);height:var(--zt-swipe-indicator-size);background-color:var(--zt-swipe-indicator-inactive-background);border-radius:100%;opacity:var(--zt-swipe-indicator-inactive-opacity);transition:opacity var(--zt-duration-fast),background-color var(--zt-duration-fast)}.zt-swipe__indicator:not(:last-child){margin-right:var(--zt-swipe-indicator-size)}.zt-swipe__indicator--active{background-color:var(--zt-swipe-indicator-active-background);opacity:var(--zt-swipe-indicator-active-opacity)}
|
package/lib/swipe/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SwipeProps } from './Swipe';
|
|
2
|
-
export declare const Swipe: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const Swipe: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
loop: {
|
|
4
4
|
type: BooleanConstructor;
|
|
5
5
|
default: true;
|
|
@@ -34,7 +34,7 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
|
34
34
|
default: true;
|
|
35
35
|
};
|
|
36
36
|
title: ArrayConstructor;
|
|
37
|
-
}
|
|
37
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "dragEnd" | "dragStart")[], "change" | "dragEnd" | "dragStart", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
loop: {
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: true;
|
|
@@ -69,11 +69,11 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
|
69
69
|
default: true;
|
|
70
70
|
};
|
|
71
71
|
title: ArrayConstructor;
|
|
72
|
-
}>> & {
|
|
72
|
+
}>> & Readonly<{
|
|
73
73
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
onDragEnd?: ((...args: any[]) => any) | undefined;
|
|
75
75
|
onDragStart?: ((...args: any[]) => any) | undefined;
|
|
76
|
-
}
|
|
76
|
+
}>, {
|
|
77
77
|
autoplay: string | number;
|
|
78
78
|
loop: boolean;
|
|
79
79
|
vertical: boolean;
|
|
@@ -83,7 +83,7 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
|
83
83
|
initialSwipe: string | number;
|
|
84
84
|
showIndicators: boolean;
|
|
85
85
|
stopPropagation: boolean;
|
|
86
|
-
}, {}>>;
|
|
86
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
87
87
|
export default Swipe;
|
|
88
88
|
export type { SwipeProps };
|
|
89
89
|
export type { SwipeInstance, SwipeToOptions, SwipeThemeVars } from './types';
|
|
@@ -12,7 +12,7 @@ export declare const swipeCellProps: {
|
|
|
12
12
|
stopPropagation: BooleanConstructor;
|
|
13
13
|
};
|
|
14
14
|
export type SwipeCellProps = ExtractPropTypes<typeof swipeCellProps>;
|
|
15
|
-
declare const _default: import("vue").DefineComponent<{
|
|
15
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
16
16
|
name: {
|
|
17
17
|
type: (NumberConstructor | StringConstructor)[];
|
|
18
18
|
default: string;
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
23
23
|
beforeClose: PropType<Interceptor>;
|
|
24
24
|
stopPropagation: BooleanConstructor;
|
|
25
|
-
}
|
|
25
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "click" | "close")[], "open" | "click" | "close", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
26
26
|
name: {
|
|
27
27
|
type: (NumberConstructor | StringConstructor)[];
|
|
28
28
|
default: string;
|
|
@@ -32,13 +32,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
33
33
|
beforeClose: PropType<Interceptor>;
|
|
34
34
|
stopPropagation: BooleanConstructor;
|
|
35
|
-
}>> & {
|
|
35
|
+
}>> & Readonly<{
|
|
36
36
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
|
38
37
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
|
|
38
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
40
|
name: string | number;
|
|
41
41
|
disabled: boolean;
|
|
42
42
|
stopPropagation: boolean;
|
|
43
|
-
}, {}>;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
export default _default;
|
|
@@ -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 = require("@zartui/use");
|
|
28
27
|
var import_use_touch = require("../composables/use-touch");
|
|
@@ -36,7 +35,7 @@ const swipeCellProps = {
|
|
|
36
35
|
beforeClose: Function,
|
|
37
36
|
stopPropagation: Boolean
|
|
38
37
|
};
|
|
39
|
-
var stdin_default = (0,
|
|
38
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
40
39
|
name,
|
|
41
40
|
props: swipeCellProps,
|
|
42
41
|
emits: ["open", "close", "click"],
|
|
@@ -48,17 +47,17 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
48
47
|
let lockClick;
|
|
49
48
|
let startOffset;
|
|
50
49
|
let isInBeforeClosing;
|
|
51
|
-
const root = (0,
|
|
52
|
-
const leftRef = (0,
|
|
53
|
-
const rightRef = (0,
|
|
54
|
-
const state = (0,
|
|
50
|
+
const root = (0, import_vue.ref)();
|
|
51
|
+
const leftRef = (0, import_vue.ref)();
|
|
52
|
+
const rightRef = (0, import_vue.ref)();
|
|
53
|
+
const state = (0, import_vue.reactive)({
|
|
55
54
|
offset: 0,
|
|
56
55
|
dragging: false
|
|
57
56
|
});
|
|
58
57
|
const touch = (0, import_use_touch.useTouch)();
|
|
59
58
|
const getWidthByRef = (ref2) => ref2.value ? (0, import_use.useRect)(ref2).width : 0;
|
|
60
|
-
const leftWidth = (0,
|
|
61
|
-
const rightWidth = (0,
|
|
59
|
+
const leftWidth = (0, import_vue.computed)(() => (0, import_utils.isDef)(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
|
|
60
|
+
const rightWidth = (0, import_vue.computed)(() => (0, import_utils.isDef)(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
|
|
62
61
|
const open = (side) => {
|
|
63
62
|
state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
|
|
64
63
|
if (!opened) {
|
package/lib/swipe-cell/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-swipe-cell{position:relative;overflow:hidden;cursor
|
|
1
|
+
.zt-swipe-cell{position:relative;overflow:hidden;cursor:grab}.zt-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.zt-swipe-cell__left,.zt-swipe-cell__right{position:absolute;top:0;height:100%}.zt-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.zt-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SwipeCellProps } from './SwipeCell';
|
|
2
|
-
export declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
name: {
|
|
4
4
|
type: (NumberConstructor | StringConstructor)[];
|
|
5
5
|
default: string;
|
|
@@ -9,7 +9,7 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
|
|
|
9
9
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
10
10
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
11
11
|
stopPropagation: BooleanConstructor;
|
|
12
|
-
}
|
|
12
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "click" | "close")[], "open" | "click" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
name: {
|
|
14
14
|
type: (NumberConstructor | StringConstructor)[];
|
|
15
15
|
default: string;
|
|
@@ -19,15 +19,15 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
|
|
|
19
19
|
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
20
20
|
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
21
21
|
stopPropagation: BooleanConstructor;
|
|
22
|
-
}>> & {
|
|
22
|
+
}>> & Readonly<{
|
|
23
23
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
|
25
24
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
|
|
25
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
27
|
name: string | number;
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
stopPropagation: boolean;
|
|
30
|
-
}, {}>>;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
31
31
|
export default SwipeCell;
|
|
32
32
|
export { swipeCellProps } from './SwipeCell';
|
|
33
33
|
export type { SwipeCellProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -21,19 +21,18 @@ __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_Swipe = require("../swipe/Swipe");
|
|
27
26
|
var import_use = require("@zartui/use");
|
|
28
27
|
var import_use_expose = require("../composables/use-expose");
|
|
29
28
|
const [name, bem] = (0, import_utils.createNamespace)("swipe-item");
|
|
30
|
-
var stdin_default = (0,
|
|
29
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
31
30
|
name,
|
|
32
31
|
setup(props, {
|
|
33
32
|
slots
|
|
34
33
|
}) {
|
|
35
34
|
let rendered;
|
|
36
|
-
const state = (0,
|
|
35
|
+
const state = (0, import_vue.reactive)({
|
|
37
36
|
offset: 0,
|
|
38
37
|
inited: false,
|
|
39
38
|
mounted: false
|
|
@@ -48,7 +47,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
48
47
|
}
|
|
49
48
|
return;
|
|
50
49
|
}
|
|
51
|
-
const style = (0,
|
|
50
|
+
const style = (0, import_vue.computed)(() => {
|
|
52
51
|
const style2 = {};
|
|
53
52
|
const {
|
|
54
53
|
vertical
|
|
@@ -61,7 +60,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
61
60
|
}
|
|
62
61
|
return style2;
|
|
63
62
|
});
|
|
64
|
-
const shouldRender = (0,
|
|
63
|
+
const shouldRender = (0, import_vue.computed)(() => {
|
|
65
64
|
const {
|
|
66
65
|
loop,
|
|
67
66
|
lazyRender
|
|
@@ -82,8 +81,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
82
81
|
const setOffset = (offset) => {
|
|
83
82
|
state.offset = offset;
|
|
84
83
|
};
|
|
85
|
-
(0,
|
|
86
|
-
(0,
|
|
84
|
+
(0, import_vue.onMounted)(() => {
|
|
85
|
+
(0, import_vue.nextTick)(() => {
|
|
87
86
|
state.mounted = true;
|
|
88
87
|
});
|
|
89
88
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
1
|
+
export declare const SwipeItem: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
2
2
|
export default SwipeItem;
|
|
3
3
|
declare module 'vue' {
|
|
4
4
|
interface GlobalComponents {
|
package/lib/switch/Switch.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare const switchProps: {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
export type SwitchProps = ExtractPropTypes<typeof switchProps>;
|
|
19
|
-
declare const _default: import("vue").DefineComponent<{
|
|
19
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
20
20
|
size: (NumberConstructor | StringConstructor)[];
|
|
21
21
|
loading: BooleanConstructor;
|
|
22
22
|
disabled: BooleanConstructor;
|
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
type: import("vue").PropType<unknown>;
|
|
32
32
|
default: unknown;
|
|
33
33
|
};
|
|
34
|
-
}
|
|
34
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
35
35
|
size: (NumberConstructor | StringConstructor)[];
|
|
36
36
|
loading: BooleanConstructor;
|
|
37
37
|
disabled: BooleanConstructor;
|
|
@@ -46,13 +46,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
type: import("vue").PropType<unknown>;
|
|
47
47
|
default: unknown;
|
|
48
48
|
};
|
|
49
|
-
}>> & {
|
|
49
|
+
}>> & Readonly<{
|
|
50
50
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
52
|
-
}
|
|
52
|
+
}>, {
|
|
53
53
|
disabled: boolean;
|
|
54
54
|
loading: boolean;
|
|
55
55
|
activeValue: unknown;
|
|
56
56
|
inactiveValue: unknown;
|
|
57
|
-
}, {}>;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
export default _default;
|
package/lib/switch/Switch.js
CHANGED
|
@@ -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 = require("@zartui/use");
|
|
27
26
|
var import_loading = require("../loading");
|
|
@@ -42,7 +41,7 @@ const switchProps = {
|
|
|
42
41
|
default: false
|
|
43
42
|
}
|
|
44
43
|
};
|
|
45
|
-
var stdin_default = (0,
|
|
44
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
46
45
|
name,
|
|
47
46
|
props: switchProps,
|
|
48
47
|
emits: ["change", "update:modelValue"],
|
package/lib/switch/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Switch: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Switch: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
size: (NumberConstructor | StringConstructor)[];
|
|
3
3
|
loading: BooleanConstructor;
|
|
4
4
|
disabled: BooleanConstructor;
|
|
@@ -13,7 +13,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
|
|
|
13
13
|
type: import("vue").PropType<unknown>;
|
|
14
14
|
default: unknown;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
size: (NumberConstructor | StringConstructor)[];
|
|
18
18
|
loading: BooleanConstructor;
|
|
19
19
|
disabled: BooleanConstructor;
|
|
@@ -28,15 +28,15 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
|
|
|
28
28
|
type: import("vue").PropType<unknown>;
|
|
29
29
|
default: unknown;
|
|
30
30
|
};
|
|
31
|
-
}>> & {
|
|
31
|
+
}>> & Readonly<{
|
|
32
32
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
}
|
|
34
|
+
}>, {
|
|
35
35
|
disabled: boolean;
|
|
36
36
|
loading: boolean;
|
|
37
37
|
activeValue: unknown;
|
|
38
38
|
inactiveValue: unknown;
|
|
39
|
-
}, {}>>;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
40
40
|
export default Switch;
|
|
41
41
|
export type { SwitchProps } from './Switch';
|
|
42
42
|
export type { SwitchThemeVars } from './types';
|
package/lib/tab/Tab.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare const tabProps: {
|
|
|
3
3
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
4
4
|
url: StringConstructor;
|
|
5
5
|
replace: BooleanConstructor;
|
|
6
|
+
$router: PropType<import("vue-router").Router>;
|
|
6
7
|
} & {
|
|
7
8
|
dot: BooleanConstructor;
|
|
8
9
|
name: (NumberConstructor | StringConstructor)[];
|
|
@@ -17,10 +18,11 @@ declare const tabProps: {
|
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
20
|
export type TabProps = ExtractPropTypes<typeof tabProps>;
|
|
20
|
-
declare const _default: import("vue").DefineComponent<{
|
|
21
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
21
22
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
22
23
|
url: StringConstructor;
|
|
23
24
|
replace: BooleanConstructor;
|
|
25
|
+
$router: PropType<import("vue-router").Router>;
|
|
24
26
|
} & {
|
|
25
27
|
dot: BooleanConstructor;
|
|
26
28
|
name: (NumberConstructor | StringConstructor)[];
|
|
@@ -33,10 +35,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
35
|
type: BooleanConstructor;
|
|
34
36
|
default: true;
|
|
35
37
|
};
|
|
36
|
-
}
|
|
38
|
+
}>, (() => import("vue/jsx-runtime").JSX.Element | undefined) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
37
39
|
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
38
40
|
url: StringConstructor;
|
|
39
41
|
replace: BooleanConstructor;
|
|
42
|
+
$router: PropType<import("vue-router").Router>;
|
|
40
43
|
} & {
|
|
41
44
|
dot: BooleanConstructor;
|
|
42
45
|
name: (NumberConstructor | StringConstructor)[];
|
|
@@ -49,10 +52,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
52
|
type: BooleanConstructor;
|
|
50
53
|
default: true;
|
|
51
54
|
};
|
|
52
|
-
}
|
|
55
|
+
}>> & Readonly<{}>, {
|
|
53
56
|
replace: boolean;
|
|
54
57
|
dot: boolean;
|
|
55
58
|
disabled: boolean;
|
|
56
59
|
showZeroBadge: boolean;
|
|
57
|
-
}, {}>;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
61
|
export default _default;
|
package/lib/tab/Tab.js
CHANGED
|
@@ -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_Tabs = require("../tabs/Tabs");
|
|
27
26
|
var import_use = require("@zartui/use");
|
|
@@ -41,14 +40,14 @@ const tabProps = (0, import_utils.extend)({}, import_use_route.routeProps, {
|
|
|
41
40
|
titleStyle: [String, Object],
|
|
42
41
|
showZeroBadge: import_utils.truthProp
|
|
43
42
|
});
|
|
44
|
-
var stdin_default = (0,
|
|
43
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
45
44
|
name,
|
|
46
45
|
props: tabProps,
|
|
47
46
|
setup(props, {
|
|
48
47
|
slots
|
|
49
48
|
}) {
|
|
50
49
|
const id = (0, import_use_id.useId)();
|
|
51
|
-
const inited = (0,
|
|
50
|
+
const inited = (0, import_vue.ref)(false);
|
|
52
51
|
const {
|
|
53
52
|
parent,
|
|
54
53
|
index
|
|
@@ -66,23 +65,23 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
66
65
|
const init = () => {
|
|
67
66
|
inited.value = true;
|
|
68
67
|
if (parent.props.lazyRender) {
|
|
69
|
-
(0,
|
|
68
|
+
(0, import_vue.nextTick)(() => {
|
|
70
69
|
parent.onRendered(getName(), props.title);
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
};
|
|
74
|
-
const active = (0,
|
|
73
|
+
const active = (0, import_vue.computed)(() => {
|
|
75
74
|
const isActive = getName() === parent.currentName.value;
|
|
76
75
|
if (isActive && !inited.value) {
|
|
77
76
|
init();
|
|
78
77
|
}
|
|
79
78
|
return isActive;
|
|
80
79
|
});
|
|
81
|
-
(0,
|
|
80
|
+
(0, import_vue.watch)(() => props.title, () => {
|
|
82
81
|
parent.setLine();
|
|
83
82
|
parent.scrollIntoView();
|
|
84
83
|
});
|
|
85
|
-
(0,
|
|
84
|
+
(0, import_vue.provide)(import_use_tab_status.TAB_STATUS_KEY, active);
|
|
86
85
|
return () => {
|
|
87
86
|
var _a;
|
|
88
87
|
const label = `${parent.id}-${index.value}`;
|
package/lib/tab/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Tab: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
3
3
|
url: StringConstructor;
|
|
4
4
|
replace: BooleanConstructor;
|
|
5
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
5
6
|
} & {
|
|
6
7
|
dot: BooleanConstructor;
|
|
7
8
|
name: (NumberConstructor | StringConstructor)[];
|
|
@@ -14,10 +15,11 @@ export declare const Tab: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
14
15
|
type: BooleanConstructor;
|
|
15
16
|
default: true;
|
|
16
17
|
};
|
|
17
|
-
}
|
|
18
|
+
}>, (() => import("vue/jsx-runtime").JSX.Element | undefined) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
19
|
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
19
20
|
url: StringConstructor;
|
|
20
21
|
replace: BooleanConstructor;
|
|
22
|
+
$router: import("vue").PropType<import("vue-router").Router>;
|
|
21
23
|
} & {
|
|
22
24
|
dot: BooleanConstructor;
|
|
23
25
|
name: (NumberConstructor | StringConstructor)[];
|
|
@@ -30,12 +32,12 @@ export declare const Tab: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
30
32
|
type: BooleanConstructor;
|
|
31
33
|
default: true;
|
|
32
34
|
};
|
|
33
|
-
}
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
34
36
|
replace: boolean;
|
|
35
37
|
dot: boolean;
|
|
36
38
|
disabled: boolean;
|
|
37
39
|
showZeroBadge: boolean;
|
|
38
|
-
}, {}>>;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
39
41
|
export default Tab;
|
|
40
42
|
export type { TabProps } from './Tab';
|
|
41
43
|
declare module 'vue' {
|
package/lib/tabbar/Tabbar.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export type TabbarProvide = {
|
|
|
30
30
|
setActive: (active: Numeric, afterChange: () => void) => void;
|
|
31
31
|
};
|
|
32
32
|
export declare const TABBAR_KEY: InjectionKey<TabbarProvide>;
|
|
33
|
-
declare const _default: import("vue").DefineComponent<{
|
|
33
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
34
34
|
route: BooleanConstructor;
|
|
35
35
|
fixed: {
|
|
36
36
|
type: BooleanConstructor;
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
type: PropType<boolean | null>;
|
|
54
54
|
default: null;
|
|
55
55
|
};
|
|
56
|
-
}
|
|
56
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
57
57
|
route: BooleanConstructor;
|
|
58
58
|
fixed: {
|
|
59
59
|
type: BooleanConstructor;
|
|
@@ -76,15 +76,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
type: PropType<boolean | null>;
|
|
77
77
|
default: null;
|
|
78
78
|
};
|
|
79
|
-
}>> & {
|
|
79
|
+
}>> & Readonly<{
|
|
80
80
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
}
|
|
82
|
+
}>, {
|
|
83
83
|
fixed: boolean;
|
|
84
84
|
border: boolean;
|
|
85
85
|
placeholder: boolean;
|
|
86
86
|
modelValue: string | number;
|
|
87
87
|
safeAreaInsetBottom: boolean | null;
|
|
88
88
|
route: boolean;
|
|
89
|
-
}, {}>;
|
|
89
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
90
|
export default _default;
|
package/lib/tabbar/Tabbar.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 = require("@zartui/use");
|
|
28
27
|
var import_use_placeholder = require("../composables/use-placeholder");
|
|
@@ -43,7 +42,7 @@ const tabbarProps = {
|
|
|
43
42
|
}
|
|
44
43
|
};
|
|
45
44
|
const TABBAR_KEY = Symbol(name);
|
|
46
|
-
var stdin_default = (0,
|
|
45
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
47
46
|
name,
|
|
48
47
|
props: tabbarProps,
|
|
49
48
|
emits: ["change", "update:modelValue"],
|
|
@@ -51,7 +50,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
51
50
|
emit,
|
|
52
51
|
slots
|
|
53
52
|
}) {
|
|
54
|
-
const root = (0,
|
|
53
|
+
const root = (0, import_vue.ref)();
|
|
55
54
|
const {
|
|
56
55
|
linkChildren
|
|
57
56
|
} = (0, import_use.useChildren)(TABBAR_KEY);
|