zartui 3.1.23-beta.1 → 3.1.23-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- 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 +95 -0
- package/es/audio/Audio.mjs +226 -0
- package/es/audio/index.css +1 -0
- package/es/audio/index.d.ts +75 -0
- package/es/audio/index.mjs +10 -0
- package/es/audio/style/index.d.ts +1 -0
- package/es/audio/style/index.mjs +5 -0
- package/es/audio/types.d.ts +3 -0
- package/es/audio/types.mjs +4 -0
- 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/config.mjs +1 -0
- 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 +2 -1
- package/es/index.mjs +4 -1
- 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 +5 -4
- 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 +33 -7
- package/es/slider/Slider.mjs +16 -7
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +25 -7
- 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 +7 -7
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +7 -7
- 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 +6 -6
- package/es/swipe/Swipe.mjs +1 -2
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +6 -6
- 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 +14 -4
- 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 +1 -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/format.d.ts +1 -0
- package/es/utils/format.mjs +15 -0
- package/es/utils/mount-component.d.ts +1 -1
- package/es/video/Video.d.ts +8 -5
- package/es/video/Video.mjs +9 -28
- package/es/video/index.css +1 -1
- package/es/video/index.d.ts +7 -5
- package/es/video/types.d.ts +1 -0
- 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 +95 -0
- package/lib/audio/Audio.js +255 -0
- package/lib/audio/index.css +1 -0
- package/lib/audio/index.d.ts +75 -0
- package/lib/audio/index.js +39 -0
- package/lib/audio/style/index.d.ts +1 -0
- package/lib/audio/style/index.js +5 -0
- package/lib/audio/types.d.ts +3 -0
- package/lib/audio/types.js +23 -0
- 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/config.js +1 -0
- 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 +2 -1
- package/lib/index.js +4 -1
- 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 +4 -3
- 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 +33 -7
- package/lib/slider/Slider.js +22 -13
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +25 -7
- 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 +7 -7
- package/lib/stepper/Stepper.js +11 -12
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +7 -7
- 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 +6 -6
- package/lib/swipe/Swipe.js +22 -23
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +6 -6
- 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 +21 -11
- 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 +4 -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/format.d.ts +1 -0
- package/lib/utils/format.js +15 -0
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/video/Video.d.ts +8 -5
- package/lib/video/Video.js +16 -35
- 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/web-types.json +1 -1
- package/lib/zartui.cjs.js +2366 -2119
- package/lib/zartui.es.js +2367 -2120
- package/lib/zartui.js +18194 -17944
- package/lib/zartui.min.js +1 -1
- package/package.json +81 -81
package/es/time-picker/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-time-picker-cancel-margin: 8px 4px 8px 16px;--zt-time-picker-confirm-margin: 8px 16px 8px 4px;--zt-time-picker-title-height: 44px;--zt-time-picker-title-border-radius: 16px 16px 0 0;--zt-time-picker-frame-background-color: var(--zt-gray-a04);--zt-time-picker-cancel-background-color: var(--zt-white);--zt-time-picker-title-text-color: var(--zt-gray-a4);--zt-time-picker-background: var(--zt-background-popup);--zt-time-picker-toolbar-height: 60px;--zt-time-picker-action-padding: 0 var(--zt-padding-md);--zt-time-picker-confirm-action-color: var(--zt-white);--zt-time-picker-cancel-action-color: var(--zt-text-color);--zt-time-picker-option-radius: 8px;--zt-time-picker-option-padding: 0 var(--zt-padding-base);--zt-time-picker-option-text-color: var(--zt-text-color);--zt-time-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-time-picker-loading-icon-color: var(--zt-primary-color);--zt-time-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-time-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4));--zt-time-picker-unit-background: var(--zt-white);--zt-time-picker-unit-font-size: 24px}:root[zt-theme-size=large]{--zt-time-picker-unit-font-size: 30px}.zt-theme-dark{--zt-time-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1));--zt-time-picker-unit-background: rgba(255, 255, 255, .04)}.zt-time-picker{position:relative;background:var(--zt-time-picker-background);-webkit-user-select:none;user-select:none}.zt-time-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-time-picker-toolbar-height)}.zt-time-picker__cancel,.zt-time-picker__confirm{width:50%}.zt-time-picker__cancel{background:#ffffff;margin:var(--zt-time-picker-cancel-margin)}.zt-time-picker__confirm{margin:var(--zt-time-picker-confirm-margin)}.zt-time-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-time-picker-title-height);border-radius:var(--zt-time-picker-title-border-radius);font-size:var(--zt-font-size-md);background:#ffffff;color:var(--zt-time-picker-title-text-color)}.zt-time-picker__columns{background:var(--zt-time-picker-background);position:relative;display:flex;cursor
|
|
1
|
+
:root{--zt-time-picker-cancel-margin: 8px 4px 8px 16px;--zt-time-picker-confirm-margin: 8px 16px 8px 4px;--zt-time-picker-title-height: 44px;--zt-time-picker-title-border-radius: 16px 16px 0 0;--zt-time-picker-frame-background-color: var(--zt-gray-a04);--zt-time-picker-cancel-background-color: var(--zt-white);--zt-time-picker-title-text-color: var(--zt-gray-a4);--zt-time-picker-background: var(--zt-background-popup);--zt-time-picker-toolbar-height: 60px;--zt-time-picker-action-padding: 0 var(--zt-padding-md);--zt-time-picker-confirm-action-color: var(--zt-white);--zt-time-picker-cancel-action-color: var(--zt-text-color);--zt-time-picker-option-radius: 8px;--zt-time-picker-option-padding: 0 var(--zt-padding-base);--zt-time-picker-option-text-color: var(--zt-text-color);--zt-time-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-time-picker-loading-icon-color: var(--zt-primary-color);--zt-time-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-time-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4));--zt-time-picker-unit-background: var(--zt-white);--zt-time-picker-unit-font-size: 24px}:root[zt-theme-size=large]{--zt-time-picker-unit-font-size: 30px}.zt-theme-dark{--zt-time-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1));--zt-time-picker-unit-background: rgba(255, 255, 255, .04)}.zt-time-picker{position:relative;background:var(--zt-time-picker-background);-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-time-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-time-picker-toolbar-height)}.zt-time-picker__cancel,.zt-time-picker__confirm{width:50%}.zt-time-picker__cancel{background:#ffffff;margin:var(--zt-time-picker-cancel-margin)}.zt-time-picker__confirm{margin:var(--zt-time-picker-confirm-margin)}.zt-time-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-time-picker-title-height);border-radius:var(--zt-time-picker-title-border-radius);font-size:var(--zt-font-size-md);background:#ffffff;color:var(--zt-time-picker-title-text-color)}.zt-time-picker__columns{background:var(--zt-time-picker-background);position:relative;display:flex;cursor:grab;padding:16px 0;justify-content:space-evenly}.zt-time-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-time-picker-loading-icon-color);background:var(--zt-time-picker-loading-mask-color)}.zt-time-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-time-picker-frame-background-color)}.zt-time-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-time-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-time-picker__separator{position:absolute;display:flex;align-items:center;width:100%;height:100%;top:0}.zt-time-picker__colon{position:relative}.zt-time-picker__colon:only-child{left:50%}.zt-time-picker__colon:not(:only-child):first-child{left:35%}.zt-time-picker__colon:not(:only-child):last-child{left:65%}.zt-time-picker__colon:before{position:absolute;content:" ";width:6px;height:6px;border-radius:50%;background:var(--zt-gray);left:calc(50% - 3px);top:calc(50% - 9px)}.zt-time-picker__colon:after{position:absolute;content:" ";width:6px;height:6px;border-radius:50%;background:var(--zt-gray);left:calc(50% - 3px);top:calc(50% + 3px)}.zt-time-picker-column{position:relative;overflow:hidden;font-size:var(--zt-time-picker-unit-font-size);background:var(--zt-gray-a04);border-radius:var(--zt-time-picker-option-radius)}.zt-time-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-time-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-time-picker-option-padding);color:var(--zt-time-picker-option-text-color)}.zt-time-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-time-picker-option-disabled-opacity)}.zt-time-picker-column__unit{position:absolute;display:flex;align-items:center;justify-content:center;background:var(--zt-time-picker-unit-background);color:var(--zt-time-picker-option-text-color);font-size:var(--zt-time-picker-unit-font-size);width:100%;height:100%}.zt-time-picker-column__unit-text{margin:0 4px;font-size:var(--zt-font-size-md);font-weight:700}.zt-time-picker-column__arrow-top{width:16px;height:6px;position:absolute;top:8px;left:calc(50% - 8px)}.zt-time-picker-column__arrow-bottom{width:16px;height:6px;transform:rotate(180deg);position:absolute;bottom:8px;left:calc(50% - 8px)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TimePickerProps } from './TimePicker';
|
|
2
|
-
export declare const TimePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const TimePicker: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
loading: BooleanConstructor;
|
|
4
4
|
readonly: BooleanConstructor;
|
|
5
5
|
allowHtml: BooleanConstructor;
|
|
@@ -84,7 +84,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
|
84
84
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
|
85
85
|
default: () => string[];
|
|
86
86
|
};
|
|
87
|
-
}
|
|
87
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "clickOption")[], "update:modelValue" | "change" | "clickOption", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
88
|
loading: BooleanConstructor;
|
|
89
89
|
readonly: BooleanConstructor;
|
|
90
90
|
allowHtml: BooleanConstructor;
|
|
@@ -169,11 +169,11 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
|
169
169
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
|
170
170
|
default: () => string[];
|
|
171
171
|
};
|
|
172
|
-
}>> & {
|
|
172
|
+
}>> & Readonly<{
|
|
173
173
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
174
174
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
175
175
|
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
176
|
-
}
|
|
176
|
+
}>, {
|
|
177
177
|
title: string;
|
|
178
178
|
formatter: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
|
179
179
|
modelValue: string[];
|
|
@@ -193,7 +193,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
|
193
193
|
minSecond: string | number;
|
|
194
194
|
maxSecond: string | number;
|
|
195
195
|
columnsType: import("./TimePicker").TimePickerColumnType[];
|
|
196
|
-
}, {}>>;
|
|
196
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
197
197
|
export default TimePicker;
|
|
198
198
|
export { timePickerProps } from './TimePicker';
|
|
199
199
|
export type { TimePickerProps };
|
|
@@ -43,7 +43,7 @@ export declare const timelineProps: {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
export type TimelineProps = ExtractPropTypes<typeof timelineProps>;
|
|
46
|
-
declare const _default: import("vue").DefineComponent<{
|
|
46
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
47
47
|
title: {
|
|
48
48
|
type: import("vue").PropType<string>;
|
|
49
49
|
default: string;
|
|
@@ -72,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
type: BooleanConstructor;
|
|
73
73
|
default: boolean;
|
|
74
74
|
};
|
|
75
|
-
}
|
|
75
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
76
76
|
title: {
|
|
77
77
|
type: import("vue").PropType<string>;
|
|
78
78
|
default: string;
|
|
@@ -101,7 +101,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
101
|
type: BooleanConstructor;
|
|
102
102
|
default: boolean;
|
|
103
103
|
};
|
|
104
|
-
}
|
|
104
|
+
}>> & Readonly<{}>, {
|
|
105
105
|
title: string;
|
|
106
106
|
dot: boolean;
|
|
107
107
|
defaultFold: boolean;
|
|
@@ -109,5 +109,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
processes: TimelineProcessOption[];
|
|
110
110
|
opinionKey: string;
|
|
111
111
|
enableSingleFold: boolean;
|
|
112
|
-
}, {}>;
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
113
|
export default _default;
|
package/es/timeline/Timeline.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent, computed, ref } from "vue";
|
|
1
|
+
import { defineComponent, computed, ref, createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
|
|
3
2
|
import Switch from "../switch/index.mjs";
|
|
4
3
|
import { BORDER_BOTTOM, createNamespace, makeArrayProp, makeNumberProp, makeStringProp, truthProp } from "../utils/index.mjs";
|
|
5
4
|
const [name, bem] = createNamespace("timeline");
|
package/es/timeline/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Timeline: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Timeline: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
title: {
|
|
3
3
|
type: import("vue").PropType<string>;
|
|
4
4
|
default: string;
|
|
@@ -27,7 +27,7 @@ export declare const Timeline: import("../utils").WithInstall<import("vue").Defi
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: boolean;
|
|
29
29
|
};
|
|
30
|
-
}
|
|
30
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
title: {
|
|
32
32
|
type: import("vue").PropType<string>;
|
|
33
33
|
default: string;
|
|
@@ -56,7 +56,7 @@ export declare const Timeline: import("../utils").WithInstall<import("vue").Defi
|
|
|
56
56
|
type: BooleanConstructor;
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
|
-
}
|
|
59
|
+
}>> & Readonly<{}>, {
|
|
60
60
|
title: string;
|
|
61
61
|
dot: boolean;
|
|
62
62
|
defaultFold: boolean;
|
|
@@ -64,7 +64,7 @@ export declare const Timeline: import("../utils").WithInstall<import("vue").Defi
|
|
|
64
64
|
processes: import("./Timeline").TimelineProcessOption[];
|
|
65
65
|
opinionKey: string;
|
|
66
66
|
enableSingleFold: boolean;
|
|
67
|
-
}, {}>>;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
68
68
|
export default Timeline;
|
|
69
69
|
export { timelineProps } from './Timeline';
|
|
70
70
|
export type { TimelineProcessOption, TimelineProps } from './Timeline';
|
package/es/toast/Toast.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare const toastProps: {
|
|
|
35
35
|
closeOnClickOverlay: BooleanConstructor;
|
|
36
36
|
};
|
|
37
37
|
export type ToastProps = ExtractPropTypes<typeof toastProps>;
|
|
38
|
-
declare const _default: import("vue").DefineComponent<{
|
|
38
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
39
39
|
icon: StringConstructor;
|
|
40
40
|
show: BooleanConstructor;
|
|
41
41
|
type: {
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
overlayStyle: PropType<CSSProperties>;
|
|
68
68
|
closeOnClick: BooleanConstructor;
|
|
69
69
|
closeOnClickOverlay: BooleanConstructor;
|
|
70
|
-
}
|
|
70
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
71
71
|
icon: StringConstructor;
|
|
72
72
|
show: BooleanConstructor;
|
|
73
73
|
type: {
|
|
@@ -99,9 +99,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
overlayStyle: PropType<CSSProperties>;
|
|
100
100
|
closeOnClick: BooleanConstructor;
|
|
101
101
|
closeOnClickOverlay: BooleanConstructor;
|
|
102
|
-
}>> & {
|
|
102
|
+
}>> & Readonly<{
|
|
103
103
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
104
|
-
}
|
|
104
|
+
}>, {
|
|
105
105
|
type: ToastType;
|
|
106
106
|
position: ToastPosition;
|
|
107
107
|
overlay: boolean;
|
|
@@ -111,5 +111,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
transition: string;
|
|
112
112
|
forbidClick: boolean;
|
|
113
113
|
closeOnClick: boolean;
|
|
114
|
-
}, {}>;
|
|
114
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
115
115
|
export default _default;
|
package/es/toast/Toast.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { watch, onMounted, onUnmounted, defineComponent } from "vue";
|
|
1
|
+
import { watch, onMounted, onUnmounted, defineComponent, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
|
3
2
|
import { pick, isDef, unknownProp, numericProp, makeStringProp, makeNumberProp, createNamespace } from "../utils/index.mjs";
|
|
4
3
|
import { lockClick } from "./lock-click.mjs";
|
|
5
4
|
import { Icon } from "../icon/index.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ref, watch, getCurrentInstance } from "vue";
|
|
1
|
+
import { ref, watch, getCurrentInstance, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
3
2
|
import { extend, isObject, inBrowser } from "../utils/index.mjs";
|
|
4
3
|
import { mountComponent, usePopupState } from "../utils/mount-component.mjs";
|
|
5
4
|
import ZtToast from "./Toast.mjs";
|
package/es/toast/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-toast-max-width: 70%;--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: var(--zt-gray-a8);--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-default-max-height: 80%;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%;--zt-toast-icon-font-size: 36px}:root[zt-theme-size=large]{--zt-toast-icon-font-size: 42px}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);max-height:var(--zt-toast-default-max-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--break-normal{word-break:normal;word-wrap:normal}.zt-toast--break-word{word-break:normal;word-wrap:break-word}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-
|
|
1
|
+
:root{--zt-toast-max-width: 70%;--zt-toast-text-color: var(--zt-white);--zt-toast-loading-icon-color: var(--zt-white);--zt-toast-radius: var(--zt-radius-lg);--zt-toast-background: var(--zt-gray-a8);--zt-toast-text-min-width: 96px;--zt-toast-text-padding: var(--zt-padding-xs) var(--zt-padding-sm);--zt-toast-default-padding: var(--zt-padding-md);--zt-toast-default-width: 88px;--zt-toast-default-min-height: 84px;--zt-toast-default-max-height: 80%;--zt-toast-position-top-distance: 20%;--zt-toast-position-bottom-distance: 20%;--zt-toast-icon-font-size: 36px}:root[zt-theme-size=large]{--zt-toast-icon-font-size: 42px}.zt-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--zt-duration-fast);width:var(--zt-toast-default-width);max-width:var(--zt-toast-max-width);min-height:var(--zt-toast-default-min-height);max-height:var(--zt-toast-default-max-height);padding:var(--zt-toast-default-padding);color:var(--zt-toast-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:center;word-break:break-all;background:var(--zt-toast-background);border-radius:var(--zt-toast-radius)}.zt-toast--break-normal{word-break:normal;word-wrap:normal}.zt-toast--break-word{word-break:normal;word-wrap:break-word}.zt-toast--unclickable{overflow:hidden;cursor:not-allowed}.zt-toast--unclickable *{pointer-events:none}.zt-toast--text,.zt-toast--html{width:-moz-fit-content;width:fit-content;min-width:var(--zt-toast-text-min-width);min-height:0;padding:var(--zt-toast-text-padding)}.zt-toast--text .zt-toast__text,.zt-toast--html .zt-toast__text{margin-top:0}.zt-toast--top{top:var(--zt-toast-position-top-distance)}.zt-toast--bottom{top:auto;bottom:var(--zt-toast-position-bottom-distance)}.zt-toast__icon{font-size:var(--zt-toast-icon-font-size)}.zt-toast__loading{padding:var(--zt-padding-base);color:var(--zt-toast-loading-icon-color)}.zt-toast__text{margin-top:var(--zt-padding-xs)}.zt-theme-dark{--zt-toast-background: var(--zt-gray-a1)}
|
package/es/toast/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Toast: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
icon: StringConstructor;
|
|
3
3
|
show: BooleanConstructor;
|
|
4
4
|
type: {
|
|
@@ -30,7 +30,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
30
30
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
31
31
|
closeOnClick: BooleanConstructor;
|
|
32
32
|
closeOnClickOverlay: BooleanConstructor;
|
|
33
|
-
}
|
|
33
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
34
|
icon: StringConstructor;
|
|
35
35
|
show: BooleanConstructor;
|
|
36
36
|
type: {
|
|
@@ -62,9 +62,9 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
62
62
|
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
|
63
63
|
closeOnClick: BooleanConstructor;
|
|
64
64
|
closeOnClickOverlay: BooleanConstructor;
|
|
65
|
-
}>> & {
|
|
65
|
+
}>> & Readonly<{
|
|
66
66
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
67
|
-
}
|
|
67
|
+
}>, {
|
|
68
68
|
type: import("./types").ToastType;
|
|
69
69
|
position: import("./types").ToastPosition;
|
|
70
70
|
overlay: boolean;
|
|
@@ -74,7 +74,7 @@ export declare const Toast: import("../utils").WithInstall<import("vue").DefineC
|
|
|
74
74
|
transition: string;
|
|
75
75
|
forbidClick: boolean;
|
|
76
76
|
closeOnClick: boolean;
|
|
77
|
-
}, {}>>;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
78
78
|
export default Toast;
|
|
79
79
|
export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
|
|
80
80
|
export type { ToastProps } from './Toast';
|
|
@@ -66,7 +66,7 @@ export declare const uploaderProps: {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
export type UploaderProps = ExtractPropTypes<typeof uploaderProps>;
|
|
69
|
-
declare const _default: import("vue").DefineComponent<{
|
|
69
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
70
70
|
name: {
|
|
71
71
|
type: (NumberConstructor | StringConstructor)[];
|
|
72
72
|
default: string;
|
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
126
|
type: PropType<UploaderMaxSize>;
|
|
127
127
|
default: number;
|
|
128
128
|
};
|
|
129
|
-
}
|
|
129
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "update:modelValue" | "oversize" | "clickUpload" | "closePreview" | "clickPreview")[], "delete" | "update:modelValue" | "oversize" | "clickUpload" | "closePreview" | "clickPreview", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
130
130
|
name: {
|
|
131
131
|
type: (NumberConstructor | StringConstructor)[];
|
|
132
132
|
default: string;
|
|
@@ -186,14 +186,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
186
|
type: PropType<UploaderMaxSize>;
|
|
187
187
|
default: number;
|
|
188
188
|
};
|
|
189
|
-
}>> & {
|
|
189
|
+
}>> & Readonly<{
|
|
190
190
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
191
191
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
192
192
|
onOversize?: ((...args: any[]) => any) | undefined;
|
|
193
193
|
onClickUpload?: ((...args: any[]) => any) | undefined;
|
|
194
194
|
onClosePreview?: ((...args: any[]) => any) | undefined;
|
|
195
195
|
onClickPreview?: ((...args: any[]) => any) | undefined;
|
|
196
|
-
}
|
|
196
|
+
}>, {
|
|
197
197
|
name: string | number;
|
|
198
198
|
disabled: boolean;
|
|
199
199
|
accept: string;
|
|
@@ -210,5 +210,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
210
|
previewImage: boolean;
|
|
211
211
|
previewFullImage: boolean;
|
|
212
212
|
maxSize: UploaderMaxSize;
|
|
213
|
-
}, {}>;
|
|
213
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
214
214
|
export default _default;
|
package/es/uploader/Uploader.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ref, reactive, defineComponent, onBeforeUnmount } from "vue";
|
|
1
|
+
import { ref, reactive, defineComponent, onBeforeUnmount, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
3
2
|
import { pick, extend, toArray, isPromise, truthProp, getSizeStyle, makeArrayProp, makeStringProp, makeNumericProp } from "../utils/index.mjs";
|
|
4
3
|
import { bem, name, isOversize, filterFiles, isImageFile, readFileContent } from "./utils.mjs";
|
|
5
4
|
import { useCustomFieldValue } from "@zartui/use";
|
|
@@ -2,7 +2,7 @@ import type { PropType } from 'vue';
|
|
|
2
2
|
import type { Numeric, Interceptor } from '../utils';
|
|
3
3
|
import { ImageFit } from '../image';
|
|
4
4
|
import type { UploaderFileListItem } from './types';
|
|
5
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
name: (NumberConstructor | StringConstructor)[];
|
|
7
7
|
item: {
|
|
8
8
|
type: PropType<UploaderFileListItem>;
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
deletable: BooleanConstructor;
|
|
15
15
|
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
|
16
16
|
beforeDelete: PropType<Interceptor>;
|
|
17
|
-
}
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "preview")[], "delete" | "preview", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
name: (NumberConstructor | StringConstructor)[];
|
|
19
19
|
item: {
|
|
20
20
|
type: PropType<UploaderFileListItem>;
|
|
@@ -26,11 +26,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
deletable: BooleanConstructor;
|
|
27
27
|
previewSize: PropType<Numeric | [Numeric, Numeric]>;
|
|
28
28
|
beforeDelete: PropType<Interceptor>;
|
|
29
|
-
}>> & {
|
|
29
|
+
}>> & Readonly<{
|
|
30
30
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
31
31
|
onPreview?: ((...args: any[]) => any) | undefined;
|
|
32
|
-
}
|
|
32
|
+
}>, {
|
|
33
33
|
lazyLoad: boolean;
|
|
34
34
|
deletable: boolean;
|
|
35
|
-
}, {}>;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
36
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
import { defineComponent } from "vue";
|
|
1
|
+
import { defineComponent, createVNode as _createVNode } from "vue";
|
|
3
2
|
import { t, bem, isImageFile } from "./utils.mjs";
|
|
4
3
|
import { isDef, extend, numericProp, getSizeStyle, callInterceptor, makeRequiredProp } from "../utils/index.mjs";
|
|
5
4
|
import { Icon } from "../icon/index.mjs";
|
package/es/uploader/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UploaderProps } from './Uploader';
|
|
2
|
-
export declare const Uploader: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const Uploader: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
name: {
|
|
4
4
|
type: (NumberConstructor | StringConstructor)[];
|
|
5
5
|
default: string;
|
|
@@ -59,7 +59,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
|
59
59
|
type: import("vue").PropType<import("./types").UploaderMaxSize>;
|
|
60
60
|
default: number;
|
|
61
61
|
};
|
|
62
|
-
}
|
|
62
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "update:modelValue" | "oversize" | "clickUpload" | "closePreview" | "clickPreview")[], "delete" | "update:modelValue" | "oversize" | "clickUpload" | "closePreview" | "clickPreview", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
name: {
|
|
64
64
|
type: (NumberConstructor | StringConstructor)[];
|
|
65
65
|
default: string;
|
|
@@ -119,14 +119,14 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
|
119
119
|
type: import("vue").PropType<import("./types").UploaderMaxSize>;
|
|
120
120
|
default: number;
|
|
121
121
|
};
|
|
122
|
-
}>> & {
|
|
122
|
+
}>> & Readonly<{
|
|
123
123
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
124
124
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
125
125
|
onOversize?: ((...args: any[]) => any) | undefined;
|
|
126
126
|
onClickUpload?: ((...args: any[]) => any) | undefined;
|
|
127
127
|
onClosePreview?: ((...args: any[]) => any) | undefined;
|
|
128
128
|
onClickPreview?: ((...args: any[]) => any) | undefined;
|
|
129
|
-
}
|
|
129
|
+
}>, {
|
|
130
130
|
name: string | number;
|
|
131
131
|
disabled: boolean;
|
|
132
132
|
accept: string;
|
|
@@ -143,7 +143,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
|
143
143
|
previewImage: boolean;
|
|
144
144
|
previewFullImage: boolean;
|
|
145
145
|
maxSize: import("./types").UploaderMaxSize;
|
|
146
|
-
}, {}>>;
|
|
146
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
147
147
|
export default Uploader;
|
|
148
148
|
export { uploaderProps } from './Uploader';
|
|
149
149
|
export type { UploaderProps };
|
package/es/utils/dom.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export declare function preventDefault(event: Event, isStopPropagation?: boolean
|
|
|
12
12
|
export declare function isHidden(elementRef: HTMLElement | Ref<HTMLElement | undefined>): boolean;
|
|
13
13
|
export declare function colorFromCSSClass(className: string, defaultColor: string): string;
|
|
14
14
|
export declare const getTargetDom: (target: TargetContainer) => HTMLElement;
|
|
15
|
-
export declare const windowWidth: Ref<number>, windowHeight: Ref<number>;
|
|
15
|
+
export declare const windowWidth: Ref<number, number>, windowHeight: Ref<number, number>;
|
package/es/utils/format.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare function padZero(num: Numeric, targetLength?: number): string;
|
|
|
11
11
|
export declare const clamp: (num: number, min: number, max: number) => number;
|
|
12
12
|
export declare function formatNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
13
13
|
export declare function addNumber(num1: number, num2: number): number;
|
|
14
|
+
export declare function formatSeconds(value?: string | number): string;
|
package/es/utils/format.mjs
CHANGED
|
@@ -106,12 +106,27 @@ function addNumber(num1, num2) {
|
|
|
106
106
|
const cardinal = 10 ** 10;
|
|
107
107
|
return Math.round((num1 + num2) * cardinal) / cardinal;
|
|
108
108
|
}
|
|
109
|
+
function formatSeconds(value = 0) {
|
|
110
|
+
if (!value) {
|
|
111
|
+
return "00:00:00";
|
|
112
|
+
}
|
|
113
|
+
const time = typeof value === "number" ? value : parseInt(value);
|
|
114
|
+
const hours = Math.floor(time / 3600);
|
|
115
|
+
const minutes = Math.floor((time - hours * 3600) / 60);
|
|
116
|
+
const seconds = time - hours * 3600 - minutes * 60;
|
|
117
|
+
let result = "";
|
|
118
|
+
result += ("0" + hours.toString()).slice(-2) + ":";
|
|
119
|
+
result += ("0" + minutes.toString()).slice(-2) + ":";
|
|
120
|
+
result += ("0" + seconds.toString()).slice(-2);
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
109
123
|
export {
|
|
110
124
|
addNumber,
|
|
111
125
|
addUnit,
|
|
112
126
|
camelize,
|
|
113
127
|
clamp,
|
|
114
128
|
formatNumber,
|
|
129
|
+
formatSeconds,
|
|
115
130
|
getSizeStyle,
|
|
116
131
|
getZIndexStyle,
|
|
117
132
|
kebabCase,
|
|
@@ -9,6 +9,6 @@ export declare function usePopupState(): {
|
|
|
9
9
|
toggle: (show: boolean) => void;
|
|
10
10
|
};
|
|
11
11
|
export declare function mountComponent(RootComponent: Component): {
|
|
12
|
-
instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
|
12
|
+
instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
13
13
|
unmount(): void;
|
|
14
14
|
};
|
package/es/video/Video.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare const videoProps: {
|
|
|
19
19
|
playsinline: boolean;
|
|
20
20
|
touchPlay: boolean;
|
|
21
21
|
preload: string;
|
|
22
|
+
controlsList: string[];
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
errorTip: {
|
|
@@ -31,7 +32,7 @@ declare const videoProps: {
|
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
34
|
export type VideoProps = ExtractPropTypes<typeof videoProps>;
|
|
34
|
-
declare const _default: import("vue").DefineComponent<{
|
|
35
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
35
36
|
src: {
|
|
36
37
|
type: PropType<string>;
|
|
37
38
|
default: string;
|
|
@@ -50,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
51
|
playsinline: boolean;
|
|
51
52
|
touchPlay: boolean;
|
|
52
53
|
preload: string;
|
|
54
|
+
controlsList: string[];
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
57
|
errorTip: {
|
|
@@ -60,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
62
|
type: PropType<string>;
|
|
61
63
|
default: string;
|
|
62
64
|
};
|
|
63
|
-
}
|
|
65
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("time" | "pause" | "play" | "play-end")[], "time" | "pause" | "play" | "play-end", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
64
66
|
src: {
|
|
65
67
|
type: PropType<string>;
|
|
66
68
|
default: string;
|
|
@@ -79,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
81
|
playsinline: boolean;
|
|
80
82
|
touchPlay: boolean;
|
|
81
83
|
preload: string;
|
|
84
|
+
controlsList: string[];
|
|
82
85
|
};
|
|
83
86
|
};
|
|
84
87
|
errorTip: {
|
|
@@ -89,16 +92,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
92
|
type: PropType<string>;
|
|
90
93
|
default: string;
|
|
91
94
|
};
|
|
92
|
-
}>> & {
|
|
95
|
+
}>> & Readonly<{
|
|
93
96
|
onPause?: ((...args: any[]) => any) | undefined;
|
|
94
97
|
onPlay?: ((...args: any[]) => any) | undefined;
|
|
95
98
|
onTime?: ((...args: any[]) => any) | undefined;
|
|
96
99
|
"onPlay-end"?: ((...args: any[]) => any) | undefined;
|
|
97
|
-
}
|
|
100
|
+
}>, {
|
|
98
101
|
src: string;
|
|
99
102
|
options: Partial<VideoOptions>;
|
|
100
103
|
showToolBox: boolean;
|
|
101
104
|
errorTip: string;
|
|
102
105
|
clickRetryTip: string;
|
|
103
|
-
}, {}>;
|
|
106
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
104
107
|
export default _default;
|
package/es/video/Video.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed, defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
|
|
1
|
+
import { computed, defineComponent, nextTick, onMounted, reactive, ref, watch, Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
|
3
2
|
import { useExpose } from "../composables/use-expose.mjs";
|
|
4
3
|
import { useGlobalZIndex } from "../composables/use-global-z-index.mjs";
|
|
5
4
|
import Icon from "../icon/index.mjs";
|
|
6
5
|
import { throttle } from "../lazyload/vue-lazyload/util.mjs";
|
|
7
|
-
import { createNamespace, makeStringProp } from "../utils/index.mjs";
|
|
6
|
+
import { createNamespace, makeStringProp, formatSeconds } from "../utils/index.mjs";
|
|
8
7
|
const [name, bem] = createNamespace("video");
|
|
9
8
|
const videoProps = {
|
|
10
|
-
src: makeStringProp("
|
|
9
|
+
src: makeStringProp(""),
|
|
11
10
|
// 控制控制器和标题的显示
|
|
12
11
|
showToolBox: Boolean,
|
|
13
12
|
options: {
|
|
@@ -26,7 +25,8 @@ const videoProps = {
|
|
|
26
25
|
playsinline: false,
|
|
27
26
|
// 行内展示
|
|
28
27
|
touchPlay: false,
|
|
29
|
-
preload: ""
|
|
28
|
+
preload: "",
|
|
29
|
+
controlsList: ["nodownload"]
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
errorTip: makeStringProp("\u64AD\u653E\u5668\u53D1\u751F\u9519\u8BEF"),
|
|
@@ -174,27 +174,6 @@ var stdin_default = defineComponent({
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
const timeFormat = (t = 0) => {
|
|
178
|
-
let h = Math.floor(t / 3600);
|
|
179
|
-
if (+h < 10) {
|
|
180
|
-
h = "0" + h;
|
|
181
|
-
}
|
|
182
|
-
let m = Math.floor(t % 3600 / 60);
|
|
183
|
-
if (+m < 10) {
|
|
184
|
-
m = "0" + m;
|
|
185
|
-
}
|
|
186
|
-
let s = Math.round(t % 3600 % 60);
|
|
187
|
-
if (+s < 10) {
|
|
188
|
-
s = "0" + s;
|
|
189
|
-
}
|
|
190
|
-
let str = "";
|
|
191
|
-
if (h != 0) {
|
|
192
|
-
str = h + ":" + m + ":" + s;
|
|
193
|
-
} else {
|
|
194
|
-
str = m + ":" + s;
|
|
195
|
-
}
|
|
196
|
-
return str;
|
|
197
|
-
};
|
|
198
177
|
const getLoadTime = () => {
|
|
199
178
|
var _a, _b;
|
|
200
179
|
state.videoSet.loaded = (((_a = root.value) == null ? void 0 : _a.buffered.end(0)) || 0) / (((_b = root.value) == null ? void 0 : _b.duration) || 1) * 100;
|
|
@@ -205,8 +184,8 @@ var stdin_default = defineComponent({
|
|
|
205
184
|
const currentTime = Number.isNaN((_c = root.value) == null ? void 0 : _c.currentTime) ? 0 : (_d = root.value) == null ? void 0 : _d.currentTime;
|
|
206
185
|
const percent = (currentTime || 0) / (durationTime || 1);
|
|
207
186
|
state.videoSet.progress.current = Math.round(state.videoSet.progress.width * percent);
|
|
208
|
-
state.videoSet.totalTime =
|
|
209
|
-
state.videoSet.displayTime =
|
|
187
|
+
state.videoSet.totalTime = formatSeconds(durationTime);
|
|
188
|
+
state.videoSet.displayTime = formatSeconds((_e = root.value) == null ? void 0 : _e.currentTime);
|
|
210
189
|
emit("time", currentTime, durationTime, state.videoSet.displayTime, state.videoSet.totalTime);
|
|
211
190
|
};
|
|
212
191
|
const playEnded = () => {
|
|
@@ -389,6 +368,7 @@ var stdin_default = defineComponent({
|
|
|
389
368
|
src,
|
|
390
369
|
options
|
|
391
370
|
} = props;
|
|
371
|
+
const controlsList = options.controlsList || ["nodownload"];
|
|
392
372
|
return _createVNode("div", {
|
|
393
373
|
"class": bem()
|
|
394
374
|
}, [_createVNode("video", {
|
|
@@ -399,6 +379,7 @@ var stdin_default = defineComponent({
|
|
|
399
379
|
"loop": options.loop,
|
|
400
380
|
"poster": options.poster,
|
|
401
381
|
"controls": options.controls,
|
|
382
|
+
"controlslist": controlsList.join(" "),
|
|
402
383
|
"preload": options.preload,
|
|
403
384
|
"src": src,
|
|
404
385
|
"onError": handleError
|
package/es/video/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-video-player-background: var(--zt-black);--zt-video-player-btn-color: var(--zt-white);--zt-video-player-btn-background: rgba(0, 0, 0, .5);--zt-video-player-controller-background: rgba(0, 0, 0, .5);--zt-video-player-controller-font-size: var(--zt-font-size-sm);--zt-video-player-error-color: var(--zt-white);--zt-video-player-time-color: var(--zt-white);--zt-video-player-progress-height: 4px;--zt-video-player-progress-background: rgba(255, 255, 255, .5);--zt-video-player-progress-buffered-color: rgba(255, 255, 255, .8);--zt-video-player-progress-ball-color: var(--zt-primary-color);--zt-video-player-progress-ball-border: 2px solid var(--zt-white)}.zt-video{width:100%;height:100%;position:relative;display:flex}.zt-video>video{width:100%;height:100
|
|
1
|
+
:root{--zt-video-player-background: var(--zt-black);--zt-video-player-btn-color: var(--zt-white);--zt-video-player-btn-background: rgba(0, 0, 0, .5);--zt-video-player-controller-background: rgba(0, 0, 0, .5);--zt-video-player-controller-font-size: var(--zt-font-size-sm);--zt-video-player-error-color: var(--zt-white);--zt-video-player-time-color: var(--zt-white);--zt-video-player-progress-height: 4px;--zt-video-player-progress-background: rgba(255, 255, 255, .5);--zt-video-player-progress-buffered-color: rgba(255, 255, 255, .8);--zt-video-player-progress-ball-color: var(--zt-primary-color);--zt-video-player-progress-ball-border: 2px solid var(--zt-white)}.zt-video{width:100%;height:100%;position:relative;display:flex}.zt-video>video{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.zt-video__player{width:100%;background:var(--zt-video-player-background)}.zt-video__player:focus{outline:none}.zt-video__mask{width:100%;position:absolute;left:0;top:0;right:0;bottom:60px}.zt-video__mask.custom-touch{bottom:0}.zt-video__play-btn{width:80px;height:50px;margin-top:-25px;display:flex;align-items:center;justify-content:center;border:0;color:var(--zt-video-player-btn-color);transition:border-color .4s,outline .4s,background-color .4s;position:absolute;top:50%;left:50%;margin-left:-40px;padding:0;font-size:80px;border-radius:20%}.zt-video__controller{position:absolute;display:flex;left:0;bottom:0;background-color:var(--zt-video-player-controller-background);height:35px;width:100%;align-items:center;opacity:0;transition:all 1s;font-size:var(--zt-video-player-controller-font-size)}.zt-video__controller.zt-video__controller--show{opacity:1}.zt-video__controller.zt-video__controller--hide{opacity:0}.zt-video__controller--play-btn{width:18px;height:18px;margin:0 10px}.zt-video__controller-total,.zt-video__controller-now{color:var(--zt-video-player-time-color);padding:0 5px}.zt-video__controller-progress{position:relative;display:inline-block;height:100%;width:100%;margin:0 6px;transition:all .2s ease-in;flex:1}.zt-video__controller-progress-value{position:absolute;top:50%;width:100%;height:var(--zt-video-player-progress-height);margin-top:-.05rem;background:var(--zt-video-player-progress-background);border-radius:2px}.zt-video__controller-progress .buffered{background:var(--zt-video-player-progress-buffered-color);height:var(--zt-video-player-progress-height);border-radius:2px}.zt-video__controller-progress-ball{width:14px;height:14px;position:absolute;top:50%;left:0;border-radius:50%;box-sizing:content-box}.zt-video__controller-progress-ball div{width:10px;height:10px;background:var(--zt-video-player-progress-ball-color);box-shadow:0 2px 4px rgba(32,0,0,.2);margin:0 -5px;border-radius:50%;border:var(--zt-video-player-progress-ball-border)}.zt-video__controller-volume,.zt-video__controller-full{width:26px;height:30px;display:flex;align-items:center;justify-content:center}.zt-video__controller-volume>i,.zt-video__controller-full>i{color:var(--zt-video-player-btn-color);font-size:22px}.zt-video__controller-full{width:40px}.zt-video__error{position:absolute;width:100%;height:100%;background:var(--zt-video-player-background);color:var(--zt-video-player-error-color);display:flex;flex-direction:column;align-items:center;justify-content:center}
|