zartui 3.1.22 → 3.1.23-beta.2
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 +23 -23
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/audio/Audio.d.ts +82 -0
- package/es/audio/Audio.mjs +224 -0
- package/es/audio/index.css +1 -0
- package/es/audio/index.d.ts +66 -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 +2 -2
- package/es/avatar/index.d.ts +2 -2
- package/es/badge/Badge.d.ts +1 -1
- package/es/badge/index.d.ts +1 -1
- package/es/button/Button.d.ts +5 -5
- package/es/button/index.d.ts +4 -4
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/CalendarDay.d.ts +1 -1
- package/es/calendar/CalendarHeader.d.ts +1 -1
- package/es/calendar/CalendarMonth.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +4 -4
- package/es/cell/index.d.ts +3 -3
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/col/Col.d.ts +1 -1
- package/es/col/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/composables/use-lazy-render.d.ts +1 -0
- package/es/composables/use-placeholder.d.ts +2 -1
- package/es/composables/use-route.d.ts +1 -2
- package/es/config-provider/ConfigProvider.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/date-time-picker/DateTimePicker.d.ts +1 -1
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/es/date-time-picker/index.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/types.d.ts +1 -0
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/drawer-select/DrawerSelect.d.ts +1 -1
- package/es/drawer-select/index.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.d.ts +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/empty/Empty.d.ts +1 -1
- package/es/empty/Images.d.ts +11 -11
- package/es/empty/index.d.ts +1 -1
- package/es/field/Field.d.ts +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/floating-bubble/FloatingBubble.d.ts +1 -1
- package/es/floating-bubble/index.d.ts +1 -1
- package/es/form/Form.d.ts +1 -1
- package/es/form/index.d.ts +1 -1
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/grid-item/GridItem.d.ts +4 -4
- package/es/grid-item/index.d.ts +3 -3
- package/es/hierarchy-select/Breadcrumb.d.ts +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +1 -1
- package/es/hierarchy-select/index.d.ts +1 -1
- package/es/hierarchy-select/svg/SubIcon.d.ts +1 -1
- package/es/icon/Icon.d.ts +1 -1
- package/es/icon/config.mjs +1 -0
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/ImagePreviewItem.d.ts +1 -1
- package/es/image-preview/index.d.ts +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +1 -1
- package/es/index-anchor/index.d.ts +1 -1
- package/es/index-bar/IndexBar.d.ts +1 -1
- package/es/index-bar/index.d.ts +1 -1
- package/es/index.d.ts +3 -1
- package/es/index.mjs +8 -2
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/lazyload/vue-lazyload/util.d.ts +25 -0
- package/es/list/List.d.ts +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/loading/Loading.d.ts +1 -1
- package/es/loading/index.d.ts +1 -1
- package/es/media-picker/MediaPicker.d.ts +2 -2
- package/es/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/es/media-picker/image/DeleteIcon.d.ts +1 -1
- package/es/media-picker/image/PickFileIcon.d.ts +1 -1
- package/es/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/es/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/es/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/es/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/es/media-picker/index.d.ts +2 -2
- package/es/media-player/MediaPlayer.d.ts +1 -1
- package/es/media-player/index.d.ts +1 -1
- package/es/multiple-picker/MultiplePicker.d.ts +1 -1
- package/es/multiple-picker/MultiplePickerOptions.d.ts +1 -1
- package/es/multiple-picker/index.d.ts +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/index.d.ts +1 -1
- package/es/notice-bar/NoticeBar.d.ts +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notify/Notify.d.ts +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/es/number-keyboard/index.d.ts +1 -1
- package/es/overlay/Overlay.d.ts +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +1 -1
- package/es/password-input/index.d.ts +1 -1
- package/es/picker/Picker.d.ts +1 -1
- package/es/picker/PickerColumn.d.ts +1 -1
- package/es/picker/PickerOptions.d.ts +1 -1
- package/es/picker/PickerToolbar.d.ts +1 -1
- package/es/picker/index.d.ts +1 -1
- package/es/popover/Popover.d.ts +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/pull-refresh/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.d.ts +1 -1
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/radio-group/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.d.ts +1 -1
- package/es/radio-picker/RadioPicker.d.ts +1 -1
- package/es/radio-picker/RadioPickerColumn.d.ts +1 -1
- package/es/radio-picker/RadioPickerToolbar.d.ts +1 -1
- package/es/radio-picker/index.d.ts +1 -1
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/row/Row.d.ts +1 -1
- package/es/row/index.d.ts +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/signature/Signature.d.ts +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +2 -2
- package/es/skeleton/index.d.ts +2 -2
- package/es/slider/Slider.d.ts +29 -3
- package/es/slider/Slider.mjs +15 -5
- package/es/slider/index.d.ts +21 -3
- package/es/step/Step.d.ts +1 -1
- package/es/step/index.d.ts +1 -1
- package/es/stepper/Stepper.d.ts +3 -3
- package/es/stepper/index.d.ts +3 -3
- package/es/steps/Steps.d.ts +1 -1
- package/es/steps/index.d.ts +1 -1
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/es/swipe/Swipe.d.ts +2 -2
- package/es/swipe/index.d.ts +2 -2
- package/es/swipe-cell/SwipeCell.d.ts +1 -1
- package/es/swipe-cell/index.d.ts +1 -1
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/tab/Tab.d.ts +4 -4
- package/es/tab/index.d.ts +3 -3
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +1 -1
- package/es/tabbar-item/TabbarItem.d.ts +4 -4
- package/es/tabbar-item/index.d.ts +3 -3
- package/es/table/Table.d.ts +1 -1
- package/es/table/Table.mjs +13 -2
- package/es/table/index.d.ts +1 -1
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/TabsContent.d.ts +1 -1
- package/es/tabs/TabsTitle.d.ts +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/es/text-ellipsis/index.d.ts +1 -1
- package/es/time-picker/Arrow.d.ts +1 -1
- package/es/time-picker/TimePicker.d.ts +1 -1
- package/es/time-picker/TimePickerColumn.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -1
- package/es/timeline/Timeline.d.ts +1 -1
- package/es/timeline/index.d.ts +1 -1
- package/es/toast/Toast.d.ts +1 -1
- package/es/toast/index.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/UploaderPreviewItem.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/utils/constant.d.ts +5 -5
- package/es/utils/format.d.ts +1 -0
- package/es/utils/format.mjs +15 -0
- package/es/video/Video.d.ts +104 -0
- package/es/video/Video.mjs +390 -0
- package/es/video/index.css +1 -0
- package/es/video/index.d.ts +78 -0
- package/es/video/index.mjs +8 -0
- package/es/video/style/index.d.ts +1 -0
- package/es/video/style/index.mjs +4 -0
- package/es/video/types.d.ts +12 -0
- package/es/video/types.mjs +0 -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 +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/audio/Audio.d.ts +82 -0
- package/lib/audio/Audio.js +253 -0
- package/lib/audio/index.css +1 -0
- package/lib/audio/index.d.ts +66 -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 +2 -2
- package/lib/avatar/index.d.ts +2 -2
- package/lib/badge/Badge.d.ts +1 -1
- package/lib/badge/index.d.ts +1 -1
- package/lib/button/Button.d.ts +5 -5
- package/lib/button/index.d.ts +4 -4
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/CalendarDay.d.ts +1 -1
- package/lib/calendar/CalendarHeader.d.ts +1 -1
- package/lib/calendar/CalendarMonth.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +4 -4
- package/lib/cell/index.d.ts +3 -3
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.d.ts +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/col/Col.d.ts +1 -1
- package/lib/col/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/composables/use-lazy-render.d.ts +1 -0
- package/lib/composables/use-placeholder.d.ts +2 -1
- package/lib/composables/use-route.d.ts +1 -2
- package/lib/config-provider/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/lib/date-time-picker/index.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/types.d.ts +1 -0
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/drawer-select/DrawerSelect.d.ts +1 -1
- package/lib/drawer-select/index.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.d.ts +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/empty/Empty.d.ts +1 -1
- package/lib/empty/Images.d.ts +11 -11
- package/lib/empty/index.d.ts +1 -1
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/floating-bubble/FloatingBubble.d.ts +1 -1
- package/lib/floating-bubble/index.d.ts +1 -1
- package/lib/form/Form.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/grid-item/GridItem.d.ts +4 -4
- package/lib/grid-item/index.d.ts +3 -3
- package/lib/hierarchy-select/Breadcrumb.d.ts +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +1 -1
- package/lib/hierarchy-select/index.d.ts +1 -1
- package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -1
- package/lib/icon/Icon.d.ts +1 -1
- package/lib/icon/config.js +1 -0
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
- package/lib/image-preview/index.d.ts +1 -1
- package/lib/index-anchor/IndexAnchor.d.ts +1 -1
- package/lib/index-anchor/index.d.ts +1 -1
- package/lib/index-bar/IndexBar.d.ts +1 -1
- package/lib/index-bar/index.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +8 -2
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
- package/lib/list/List.d.ts +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/loading/Loading.d.ts +1 -1
- package/lib/loading/index.d.ts +1 -1
- package/lib/media-picker/MediaPicker.d.ts +2 -2
- package/lib/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/DeleteIcon.d.ts +1 -1
- package/lib/media-picker/image/PickFileIcon.d.ts +1 -1
- package/lib/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/lib/media-picker/index.d.ts +2 -2
- package/lib/media-player/MediaPlayer.d.ts +1 -1
- package/lib/media-player/index.d.ts +1 -1
- package/lib/multiple-picker/MultiplePicker.d.ts +1 -1
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +1 -1
- package/lib/multiple-picker/index.d.ts +1 -1
- package/lib/nav-bar/NavBar.d.ts +1 -1
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/notice-bar/NoticeBar.d.ts +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notify/Notify.d.ts +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
- package/lib/number-keyboard/index.d.ts +1 -1
- package/lib/overlay/Overlay.d.ts +1 -1
- package/lib/overlay/index.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +1 -1
- package/lib/password-input/index.d.ts +1 -1
- package/lib/picker/Picker.d.ts +1 -1
- package/lib/picker/PickerColumn.d.ts +1 -1
- package/lib/picker/PickerOptions.d.ts +1 -1
- package/lib/picker/PickerToolbar.d.ts +1 -1
- package/lib/picker/index.d.ts +1 -1
- package/lib/popover/Popover.d.ts +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/pull-refresh/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.d.ts +1 -1
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio-group/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.d.ts +1 -1
- package/lib/radio-picker/RadioPicker.d.ts +1 -1
- package/lib/radio-picker/RadioPickerColumn.d.ts +1 -1
- package/lib/radio-picker/RadioPickerToolbar.d.ts +1 -1
- package/lib/radio-picker/index.d.ts +1 -1
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/row/Row.d.ts +1 -1
- package/lib/row/index.d.ts +1 -1
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/signature/Signature.d.ts +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +2 -2
- package/lib/skeleton/index.d.ts +2 -2
- package/lib/slider/Slider.d.ts +29 -3
- package/lib/slider/Slider.js +14 -4
- package/lib/slider/index.d.ts +21 -3
- package/lib/step/Step.d.ts +1 -1
- package/lib/step/index.d.ts +1 -1
- package/lib/stepper/Stepper.d.ts +3 -3
- package/lib/stepper/index.d.ts +3 -3
- package/lib/steps/Steps.d.ts +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/swipe/Swipe.d.ts +2 -2
- package/lib/swipe/index.d.ts +2 -2
- package/lib/swipe-cell/SwipeCell.d.ts +1 -1
- package/lib/swipe-cell/index.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/tab/Tab.d.ts +4 -4
- package/lib/tab/index.d.ts +3 -3
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +1 -1
- package/lib/tabbar-item/TabbarItem.d.ts +4 -4
- package/lib/tabbar-item/index.d.ts +3 -3
- package/lib/table/Table.d.ts +1 -1
- package/lib/table/Table.js +13 -2
- package/lib/table/index.d.ts +1 -1
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/TabsContent.d.ts +1 -1
- package/lib/tabs/TabsTitle.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
- package/lib/text-ellipsis/index.d.ts +1 -1
- package/lib/time-picker/Arrow.d.ts +1 -1
- package/lib/time-picker/TimePicker.d.ts +1 -1
- package/lib/time-picker/TimePickerColumn.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/timeline/Timeline.d.ts +1 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/toast/Toast.d.ts +1 -1
- package/lib/toast/index.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/utils/constant.d.ts +5 -5
- package/lib/utils/format.d.ts +1 -0
- package/lib/utils/format.js +15 -0
- package/lib/video/Video.d.ts +104 -0
- package/lib/video/Video.js +419 -0
- package/lib/video/index.css +1 -0
- package/lib/video/index.d.ts +78 -0
- package/lib/video/index.js +37 -0
- package/lib/video/style/index.d.ts +1 -0
- package/lib/video/style/index.js +4 -0
- package/lib/video/types.d.ts +12 -0
- package/lib/video/types.js +15 -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 +15155 -14516
- package/lib/zartui.es.js +15156 -14517
- package/lib/zartui.js +5601 -4013
- package/lib/zartui.min.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# ZartUI
|
|
2
|
-
|
|
3
|
-
[ZartUI](https://zartui.egova.com.cn) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
|
|
4
|
-
|
|
5
|
-
Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了ZartUI的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
|
|
6
|
-
|
|
7
|
-
## 特性
|
|
8
|
-
|
|
9
|
-
1)【组件重构】【组件审核】提供50多个高质量组件,覆盖移动端各类场景;
|
|
10
|
-
|
|
11
|
-
2)【UI重构】基于全新的视觉规范;
|
|
12
|
-
|
|
13
|
-
3)【在线网站】完善的文档、示例、演示效果;
|
|
14
|
-
|
|
15
|
-
4)支持主题定制、按需引入;
|
|
16
|
-
|
|
17
|
-
5)支持Vue3.0、TypeScript;
|
|
18
|
-
|
|
19
|
-
6)性能佳,组件平均体积小(min+gzip);
|
|
20
|
-
|
|
21
|
-
## 浏览器支持
|
|
22
|
-
|
|
23
|
-
ZartUI 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致)。
|
|
1
|
+
# ZartUI
|
|
2
|
+
|
|
3
|
+
[ZartUI](https://zartui.egova.com.cn) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
|
|
4
|
+
|
|
5
|
+
Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了ZartUI的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
|
|
6
|
+
|
|
7
|
+
## 特性
|
|
8
|
+
|
|
9
|
+
1)【组件重构】【组件审核】提供50多个高质量组件,覆盖移动端各类场景;
|
|
10
|
+
|
|
11
|
+
2)【UI重构】基于全新的视觉规范;
|
|
12
|
+
|
|
13
|
+
3)【在线网站】完善的文档、示例、演示效果;
|
|
14
|
+
|
|
15
|
+
4)支持主题定制、按需引入;
|
|
16
|
+
|
|
17
|
+
5)支持Vue3.0、TypeScript;
|
|
18
|
+
|
|
19
|
+
6)性能佳,组件平均体积小(min+gzip);
|
|
20
|
+
|
|
21
|
+
## 浏览器支持
|
|
22
|
+
|
|
23
|
+
ZartUI 3 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一致)。
|
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
type: BooleanConstructor;
|
|
119
119
|
default: true;
|
|
120
120
|
};
|
|
121
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").
|
|
121
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
122
122
|
show: BooleanConstructor;
|
|
123
123
|
zIndex: (NumberConstructor | StringConstructor)[];
|
|
124
124
|
overlay: {
|
|
@@ -52,7 +52,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
|
52
52
|
type: BooleanConstructor;
|
|
53
53
|
default: true;
|
|
54
54
|
};
|
|
55
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").
|
|
55
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
56
|
show: BooleanConstructor;
|
|
57
57
|
zIndex: (NumberConstructor | StringConstructor)[];
|
|
58
58
|
overlay: {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { AudioType } from './types';
|
|
3
|
+
declare const audioProps: {
|
|
4
|
+
src: {
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
muted: BooleanConstructor;
|
|
9
|
+
autoplay: BooleanConstructor;
|
|
10
|
+
loop: BooleanConstructor;
|
|
11
|
+
preload: {
|
|
12
|
+
type: import("vue").PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
second: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
type: {
|
|
20
|
+
type: import("vue").PropType<AudioType>;
|
|
21
|
+
default: AudioType;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type AudioProps = ExtractPropTypes<typeof audioProps>;
|
|
25
|
+
declare const _default: import("vue").DefineComponent<{
|
|
26
|
+
src: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
muted: BooleanConstructor;
|
|
31
|
+
autoplay: BooleanConstructor;
|
|
32
|
+
loop: BooleanConstructor;
|
|
33
|
+
preload: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
second: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
type: {
|
|
42
|
+
type: import("vue").PropType<AudioType>;
|
|
43
|
+
default: AudioType;
|
|
44
|
+
};
|
|
45
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ended" | "play" | "forward" | "mute" | "fastBack" | "changeProgress" | "canPlay")[], "ended" | "play" | "forward" | "mute" | "fastBack" | "changeProgress" | "canPlay", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
46
|
+
src: {
|
|
47
|
+
type: import("vue").PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
muted: BooleanConstructor;
|
|
51
|
+
autoplay: BooleanConstructor;
|
|
52
|
+
loop: BooleanConstructor;
|
|
53
|
+
preload: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
second: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
type: {
|
|
62
|
+
type: import("vue").PropType<AudioType>;
|
|
63
|
+
default: AudioType;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
onEnded?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onPlay?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onForward?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onMute?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onFastBack?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onChangeProgress?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onCanPlay?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
type: AudioType;
|
|
75
|
+
autoplay: boolean;
|
|
76
|
+
loop: boolean;
|
|
77
|
+
muted: boolean;
|
|
78
|
+
preload: string;
|
|
79
|
+
src: string;
|
|
80
|
+
second: number;
|
|
81
|
+
}, {}>;
|
|
82
|
+
export default _default;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { defineComponent, onMounted, provide, reactive, ref, watch } from "vue";
|
|
3
|
+
import Icon from "../icon/index.mjs";
|
|
4
|
+
import Slider from "../slider/index.mjs";
|
|
5
|
+
import { clamp, createNamespace, formatSeconds, makeNumberProp, makeStringProp } from "../utils/index.mjs";
|
|
6
|
+
import { ZT_AUDIO_KEY } from "./types.mjs";
|
|
7
|
+
const [name, bem] = createNamespace("audio");
|
|
8
|
+
const audioProps = {
|
|
9
|
+
src: makeStringProp(""),
|
|
10
|
+
muted: Boolean,
|
|
11
|
+
autoplay: Boolean,
|
|
12
|
+
loop: Boolean,
|
|
13
|
+
preload: makeStringProp("auto"),
|
|
14
|
+
second: makeNumberProp(0),
|
|
15
|
+
type: makeStringProp("progress")
|
|
16
|
+
};
|
|
17
|
+
var stdin_default = defineComponent({
|
|
18
|
+
name,
|
|
19
|
+
props: audioProps,
|
|
20
|
+
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "canPlay"],
|
|
21
|
+
setup(props, {
|
|
22
|
+
emit,
|
|
23
|
+
slots,
|
|
24
|
+
expose
|
|
25
|
+
}) {
|
|
26
|
+
const audioRef = ref();
|
|
27
|
+
const audioData = reactive({
|
|
28
|
+
currentTime: 0,
|
|
29
|
+
currentDuration: "00:00:00",
|
|
30
|
+
percent: 0,
|
|
31
|
+
duration: "00:00:00",
|
|
32
|
+
second: 0,
|
|
33
|
+
hanMuted: props.muted,
|
|
34
|
+
playing: props.autoplay,
|
|
35
|
+
handPlaying: false
|
|
36
|
+
});
|
|
37
|
+
const onCanplay = (e) => {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
if (props.autoplay) {
|
|
40
|
+
if (audioRef.value && audioRef.value.paused) {
|
|
41
|
+
audioRef.value.play();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
audioData.second = ((_a = audioRef.value) == null ? void 0 : _a.duration) || 0;
|
|
45
|
+
audioData.duration = formatSeconds(((_c = (_b = audioRef.value) == null ? void 0 : _b.duration) == null ? void 0 : _c.toString()) || "");
|
|
46
|
+
emit("canPlay", e);
|
|
47
|
+
};
|
|
48
|
+
const onTimeupdate = (e) => {
|
|
49
|
+
audioData.currentTime = parseInt(e.target.currentTime);
|
|
50
|
+
};
|
|
51
|
+
const fastBack = (val) => {
|
|
52
|
+
if (audioData.currentTime > 0) {
|
|
53
|
+
if (val) {
|
|
54
|
+
audioData.currentTime = clamp(audioData.currentTime - val, 0, audioData.second);
|
|
55
|
+
} else {
|
|
56
|
+
audioData.currentTime--;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if (audioRef.value) {
|
|
60
|
+
audioRef.value.currentTime = audioData.currentTime;
|
|
61
|
+
}
|
|
62
|
+
emit("fastBack", audioData.currentTime);
|
|
63
|
+
};
|
|
64
|
+
const changeStatus = () => {
|
|
65
|
+
if (audioRef.value) {
|
|
66
|
+
if (audioData.playing) {
|
|
67
|
+
audioRef.value.pause();
|
|
68
|
+
audioData.handPlaying = false;
|
|
69
|
+
} else {
|
|
70
|
+
audioRef.value.play();
|
|
71
|
+
audioData.handPlaying = true;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
audioData.playing = !audioData.playing;
|
|
75
|
+
emit("play", audioData.playing);
|
|
76
|
+
};
|
|
77
|
+
const forward = (val) => {
|
|
78
|
+
if (val) {
|
|
79
|
+
audioData.currentTime = clamp(audioData.currentTime + val, 0, audioData.second);
|
|
80
|
+
} else {
|
|
81
|
+
audioData.currentTime++;
|
|
82
|
+
}
|
|
83
|
+
if (audioRef.value) {
|
|
84
|
+
audioRef.value.currentTime = audioData.currentTime;
|
|
85
|
+
}
|
|
86
|
+
emit("forward", audioData.currentTime);
|
|
87
|
+
};
|
|
88
|
+
const handle = (val) => {
|
|
89
|
+
audioData.currentDuration = formatSeconds(val);
|
|
90
|
+
audioData.percent = val / audioData.second * 100;
|
|
91
|
+
};
|
|
92
|
+
const audioEnd = () => {
|
|
93
|
+
audioData.playing = false;
|
|
94
|
+
emit("ended");
|
|
95
|
+
};
|
|
96
|
+
const progressChange = (val) => {
|
|
97
|
+
var _a;
|
|
98
|
+
audioData.percent = val;
|
|
99
|
+
if (audioRef.value) {
|
|
100
|
+
audioRef.value.currentTime = audioData.second * val / 100;
|
|
101
|
+
}
|
|
102
|
+
emit("changeProgress", ((_a = audioRef.value) == null ? void 0 : _a.currentTime) || 0);
|
|
103
|
+
};
|
|
104
|
+
const handleMute = () => {
|
|
105
|
+
audioData.hanMuted = !audioData.hanMuted;
|
|
106
|
+
emit("mute", audioData.hanMuted);
|
|
107
|
+
};
|
|
108
|
+
function renderProgress() {
|
|
109
|
+
if (props.type === "progress") {
|
|
110
|
+
return _createVNode("div", {
|
|
111
|
+
"class": bem("progress")
|
|
112
|
+
}, [_createVNode("div", {
|
|
113
|
+
"class": bem("time")
|
|
114
|
+
}, [audioData.currentDuration]), _createVNode("div", {
|
|
115
|
+
"class": bem("bar")
|
|
116
|
+
}, [_createVNode(Slider, {
|
|
117
|
+
"modelValue": audioData.percent,
|
|
118
|
+
"showPercent": false,
|
|
119
|
+
"readonly": false,
|
|
120
|
+
"onUpdate:modelValue": progressChange
|
|
121
|
+
}, null)]), _createVNode("div", {
|
|
122
|
+
"class": bem("time")
|
|
123
|
+
}, [audioData.duration])]);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function renderIcon() {
|
|
127
|
+
if (props.type === "icon") {
|
|
128
|
+
return _createVNode("div", {
|
|
129
|
+
"class": bem("icon")
|
|
130
|
+
}, [_createVNode("div", {
|
|
131
|
+
"class": bem("icon-box", {
|
|
132
|
+
play: audioData.playing,
|
|
133
|
+
stop: !audioData.playing
|
|
134
|
+
}),
|
|
135
|
+
"onClick": () => changeStatus()
|
|
136
|
+
}, [_createVNode(Icon, {
|
|
137
|
+
"name": "audio",
|
|
138
|
+
"class": bem("", {
|
|
139
|
+
rotate: audioData.playing
|
|
140
|
+
})
|
|
141
|
+
}, null)])]);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function renderSlots() {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
if (props.type === "none") {
|
|
147
|
+
return _createVNode("div", {
|
|
148
|
+
"onClick": () => changeStatus()
|
|
149
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
150
|
+
} else {
|
|
151
|
+
return (_b = slots.default) == null ? void 0 : _b.call(slots);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
watch(() => audioData.currentTime, (value) => {
|
|
155
|
+
handle(value);
|
|
156
|
+
});
|
|
157
|
+
onMounted(() => {
|
|
158
|
+
const arr = ["webkitVisibilityState", "visibilitychange"];
|
|
159
|
+
try {
|
|
160
|
+
for (let i = 0; i < arr.length; i++) {
|
|
161
|
+
document.addEventListener(arr[i], () => {
|
|
162
|
+
var _a;
|
|
163
|
+
if (document.hidden) {
|
|
164
|
+
(_a = audioRef.value) == null ? void 0 : _a.pause();
|
|
165
|
+
} else {
|
|
166
|
+
if (audioData.playing) {
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
var _a2;
|
|
169
|
+
(_a2 = audioRef.value) == null ? void 0 : _a2.play();
|
|
170
|
+
}, 200);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
} catch (e) {
|
|
176
|
+
console.log(e.message);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
provide(ZT_AUDIO_KEY, {
|
|
180
|
+
children: [],
|
|
181
|
+
props,
|
|
182
|
+
audioData,
|
|
183
|
+
handleMute,
|
|
184
|
+
forward,
|
|
185
|
+
fastBack,
|
|
186
|
+
changeStatus
|
|
187
|
+
});
|
|
188
|
+
expose({
|
|
189
|
+
audioData,
|
|
190
|
+
audioRef,
|
|
191
|
+
handleMute,
|
|
192
|
+
forward,
|
|
193
|
+
fastBack,
|
|
194
|
+
changeStatus
|
|
195
|
+
});
|
|
196
|
+
return () => {
|
|
197
|
+
const {
|
|
198
|
+
src,
|
|
199
|
+
type,
|
|
200
|
+
preload,
|
|
201
|
+
autoplay,
|
|
202
|
+
loop
|
|
203
|
+
} = props;
|
|
204
|
+
return _createVNode("div", {
|
|
205
|
+
"class": bem()
|
|
206
|
+
}, [renderProgress(), renderIcon(), renderSlots(), _createVNode("audio", {
|
|
207
|
+
"ref": audioRef,
|
|
208
|
+
"class": bem("audio-main"),
|
|
209
|
+
"controls": type === "controls",
|
|
210
|
+
"src": src,
|
|
211
|
+
"preload": preload,
|
|
212
|
+
"autoplay": autoplay,
|
|
213
|
+
"loop": loop,
|
|
214
|
+
"muted": audioData.hanMuted,
|
|
215
|
+
"onTimeupdate": onTimeupdate,
|
|
216
|
+
"onCanplay": onCanplay,
|
|
217
|
+
"onEnded": audioEnd
|
|
218
|
+
}, null)]);
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
export {
|
|
223
|
+
stdin_default as default
|
|
224
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-audio-icon-disabled-background: var(--zt-gray-a4);--zt-audio-icon-size: var(--zt-font-size-xl);--zt-audio-icon-box-shadow: 0 0 8px var(--zt-gray-a4);--zt-audio-icon-playing-duration: 2s;--zt-audio-icon-box-size: 30px}.zt-audio{padding:0}.zt-audio .zt-audio__progress{display:flex;align-items:center;width:100%;margin:0 auto;padding:10px 0}.zt-audio .zt-audio__progress .zt-audio__bar{flex:1;margin:0 10px}.zt-audio .zt-audio__progress .zt-audio__time{min-width:50px;font-size:12px;text-align:center}.zt-audio .zt-audio__icon{position:relative;display:inline-block}.zt-audio .zt-audio__icon-box{display:flex;align-items:center;justify-content:center;width:var(--zt-audio-icon-box-size);height:var(--zt-audio-icon-box-size);background:#fff;border-radius:50%;box-shadow:var(--zt-audio-icon-box-shadow)}.zt-audio .zt-audio__icon-box>i{font-size:var(--zt-audio-icon-size)}.zt-audio .zt-audio__icon-box--play>i{animation:rotation var(--zt-audio-icon-playing-duration) linear infinite}.zt-audio .zt-audio__icon-box--stop:after{position:absolute;left:50%;top:50%;content:"";height:2px;width:var(--zt-audio-icon-box-size);background:var(--zt-audio-icon-disabled-background);transform:translate(-50%,-50%) rotate(45deg)}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const Audio: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
src: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
muted: BooleanConstructor;
|
|
7
|
+
autoplay: BooleanConstructor;
|
|
8
|
+
loop: BooleanConstructor;
|
|
9
|
+
preload: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
second: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: import("vue").PropType<import("./types").AudioType>;
|
|
19
|
+
default: import("./types").AudioType;
|
|
20
|
+
};
|
|
21
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ended" | "play" | "forward" | "mute" | "fastBack" | "changeProgress" | "canPlay")[], "ended" | "play" | "forward" | "mute" | "fastBack" | "changeProgress" | "canPlay", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
src: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
muted: BooleanConstructor;
|
|
27
|
+
autoplay: BooleanConstructor;
|
|
28
|
+
loop: BooleanConstructor;
|
|
29
|
+
preload: {
|
|
30
|
+
type: import("vue").PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
second: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
type: {
|
|
38
|
+
type: import("vue").PropType<import("./types").AudioType>;
|
|
39
|
+
default: import("./types").AudioType;
|
|
40
|
+
};
|
|
41
|
+
}>> & {
|
|
42
|
+
onEnded?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
onPlay?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onForward?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
onMute?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
onFastBack?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
onChangeProgress?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
onCanPlay?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
type: import("./types").AudioType;
|
|
51
|
+
autoplay: boolean;
|
|
52
|
+
loop: boolean;
|
|
53
|
+
muted: boolean;
|
|
54
|
+
preload: string;
|
|
55
|
+
src: string;
|
|
56
|
+
second: number;
|
|
57
|
+
}, {}>>;
|
|
58
|
+
export default Audio;
|
|
59
|
+
export type { AudioProps } from './Audio';
|
|
60
|
+
export type { AudioType, AudioOperateType } from './types';
|
|
61
|
+
export { ZT_AUDIO_KEY } from './types';
|
|
62
|
+
declare module 'vue' {
|
|
63
|
+
interface GlobalComponents {
|
|
64
|
+
ZtAudio: typeof Audio;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
|
2
|
+
import _Audio from "./Audio.mjs";
|
|
3
|
+
const Audio = withInstall(_Audio);
|
|
4
|
+
var stdin_default = Audio;
|
|
5
|
+
import { ZT_AUDIO_KEY } from "./types.mjs";
|
|
6
|
+
export {
|
|
7
|
+
Audio,
|
|
8
|
+
ZT_AUDIO_KEY,
|
|
9
|
+
stdin_default as default
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/avatar/Avatar.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
text: StringConstructor;
|
|
35
35
|
textBgColor: StringConstructor;
|
|
36
36
|
border: BooleanConstructor;
|
|
37
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
37
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
38
38
|
src: {
|
|
39
39
|
type: import("vue").PropType<string>;
|
|
40
40
|
default: string;
|
|
@@ -51,9 +51,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
textBgColor: StringConstructor;
|
|
52
52
|
border: BooleanConstructor;
|
|
53
53
|
}>>, {
|
|
54
|
+
size: AvatarSize;
|
|
54
55
|
shape: AvatarShape;
|
|
55
56
|
src: string;
|
|
56
|
-
size: AvatarSize;
|
|
57
57
|
border: boolean;
|
|
58
58
|
}, {}>;
|
|
59
59
|
export default _default;
|
package/es/avatar/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const Avatar: import("../utils").WithInstall<import("vue").Define
|
|
|
14
14
|
text: StringConstructor;
|
|
15
15
|
textBgColor: StringConstructor;
|
|
16
16
|
border: BooleanConstructor;
|
|
17
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
17
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
src: {
|
|
19
19
|
type: import("vue").PropType<string>;
|
|
20
20
|
default: string;
|
|
@@ -31,9 +31,9 @@ export declare const Avatar: import("../utils").WithInstall<import("vue").Define
|
|
|
31
31
|
textBgColor: StringConstructor;
|
|
32
32
|
border: BooleanConstructor;
|
|
33
33
|
}>>, {
|
|
34
|
+
size: import("./types").AvatarSize;
|
|
34
35
|
shape: import("./types").AvatarShape;
|
|
35
36
|
src: string;
|
|
36
|
-
size: import("./types").AvatarSize;
|
|
37
37
|
border: boolean;
|
|
38
38
|
}, {}>>;
|
|
39
39
|
export default Avatar;
|
package/es/badge/Badge.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
type: PropType<BadgePosition>;
|
|
44
44
|
default: BadgePosition;
|
|
45
45
|
};
|
|
46
|
-
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
46
|
+
}, () => import("vue/jsx-runtime").JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
47
47
|
dot: BooleanConstructor;
|
|
48
48
|
max: (NumberConstructor | StringConstructor)[];
|
|
49
49
|
tag: {
|
package/es/badge/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const Badge: import("../utils").WithInstall<import("vue").DefineC
|
|
|
18
18
|
type: import("vue").PropType<import("./Badge").BadgePosition>;
|
|
19
19
|
default: import("./Badge").BadgePosition;
|
|
20
20
|
};
|
|
21
|
-
}, () => JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
21
|
+
}, () => import("vue/jsx-runtime").JSX.Element | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
dot: BooleanConstructor;
|
|
23
23
|
max: (NumberConstructor | StringConstructor)[];
|
|
24
24
|
tag: {
|
package/es/button/Button.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { PropType, ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import { LoadingType } from '../loading';
|
|
3
3
|
import { ButtonSize, ButtonType, ButtonNativeType, ButtonIconPosition } from './types';
|
|
4
4
|
declare const buttonProps: {
|
|
5
|
-
to: PropType<import("vue-router").
|
|
5
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
6
6
|
url: StringConstructor;
|
|
7
7
|
replace: BooleanConstructor;
|
|
8
8
|
} & {
|
|
@@ -48,7 +48,7 @@ declare const buttonProps: {
|
|
|
48
48
|
};
|
|
49
49
|
export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
50
50
|
declare const _default: import("vue").DefineComponent<{
|
|
51
|
-
to: PropType<import("vue-router").
|
|
51
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
52
52
|
url: StringConstructor;
|
|
53
53
|
replace: BooleanConstructor;
|
|
54
54
|
} & {
|
|
@@ -91,8 +91,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
type: PropType<ButtonIconPosition>;
|
|
92
92
|
default: ButtonIconPosition;
|
|
93
93
|
};
|
|
94
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").
|
|
95
|
-
to: PropType<import("vue-router").
|
|
94
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
95
|
+
to: PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
96
96
|
url: StringConstructor;
|
|
97
97
|
replace: BooleanConstructor;
|
|
98
98
|
} & {
|
|
@@ -141,10 +141,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
replace: boolean;
|
|
142
142
|
type: ButtonType;
|
|
143
143
|
tag: keyof HTMLElementTagNameMap;
|
|
144
|
+
size: ButtonSize;
|
|
144
145
|
disabled: boolean;
|
|
145
146
|
round: boolean;
|
|
146
147
|
block: boolean;
|
|
147
|
-
size: ButtonSize;
|
|
148
148
|
square: boolean;
|
|
149
149
|
loading: boolean;
|
|
150
150
|
borderLess: boolean;
|
package/es/button/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Button: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
-
to: import("vue").PropType<import("vue-router").
|
|
2
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
3
3
|
url: StringConstructor;
|
|
4
4
|
replace: BooleanConstructor;
|
|
5
5
|
} & {
|
|
@@ -42,8 +42,8 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
42
42
|
type: import("vue").PropType<import("./types").ButtonIconPosition>;
|
|
43
43
|
default: import("./types").ButtonIconPosition;
|
|
44
44
|
};
|
|
45
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").
|
|
46
|
-
to: import("vue").PropType<import("vue-router").
|
|
45
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
to: import("vue").PropType<string | import("vue-router").RouteLocationAsRelativeGeneric | import("vue-router").RouteLocationAsPathGeneric>;
|
|
47
47
|
url: StringConstructor;
|
|
48
48
|
replace: BooleanConstructor;
|
|
49
49
|
} & {
|
|
@@ -92,10 +92,10 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
|
92
92
|
replace: boolean;
|
|
93
93
|
type: import("./types").ButtonType;
|
|
94
94
|
tag: keyof HTMLElementTagNameMap;
|
|
95
|
+
size: import("./types").ButtonSize;
|
|
95
96
|
disabled: boolean;
|
|
96
97
|
round: boolean;
|
|
97
98
|
block: boolean;
|
|
98
|
-
size: import("./types").ButtonSize;
|
|
99
99
|
square: boolean;
|
|
100
100
|
loading: boolean;
|
|
101
101
|
borderLess: boolean;
|
|
@@ -181,7 +181,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
181
|
validator: (val: number) => boolean;
|
|
182
182
|
};
|
|
183
183
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
184
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange")[], "select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange", import("vue").
|
|
184
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange")[], "select" | "cancel" | "update:show" | "clickSubtitle" | "confirm" | "unselect" | "monthShow" | "overRange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
185
185
|
show: BooleanConstructor;
|
|
186
186
|
showType: {
|
|
187
187
|
type: PropType<CalendarShowType>;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
14
|
rowHeight: StringConstructor;
|
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").
|
|
15
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
item: {
|
|
17
17
|
type: PropType<CalendarDayItem>;
|
|
18
18
|
required: true;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
monthPreEnable: BooleanConstructor;
|
|
13
13
|
yearNextEnable: BooleanConstructor;
|
|
14
14
|
monthNextEnable: BooleanConstructor;
|
|
15
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickSubtitle" | "clickPreIcon" | "clickNextIcon")[], "clickSubtitle" | "clickPreIcon" | "clickNextIcon", import("vue").
|
|
15
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickSubtitle" | "clickPreIcon" | "clickNextIcon")[], "clickSubtitle" | "clickPreIcon" | "clickNextIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
title: StringConstructor;
|
|
17
17
|
subtitle: StringConstructor;
|
|
18
18
|
showTitle: BooleanConstructor;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
showMonthTitle: BooleanConstructor;
|
|
50
50
|
firstDayOfWeek: NumberConstructor;
|
|
51
51
|
disabledDate: PropType<(date: Date) => boolean>;
|
|
52
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").
|
|
52
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
53
53
|
date: {
|
|
54
54
|
type: DateConstructor;
|
|
55
55
|
required: true;
|