zartui 3.1.23 → 3.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -27
- package/es/action-sheet/ActionSheet.d.ts +5 -5
- package/es/action-sheet/ActionSheet.mjs +1 -2
- package/es/action-sheet/index.d.ts +5 -5
- package/es/audio/Audio.d.ts +18 -5
- package/es/audio/Audio.mjs +7 -5
- package/es/audio/index.d.ts +14 -5
- package/es/avatar/Avatar.d.ts +4 -4
- package/es/avatar/Avatar.mjs +1 -2
- package/es/avatar/index.d.ts +4 -4
- package/es/badge/Badge.d.ts +4 -4
- package/es/badge/Badge.mjs +1 -2
- package/es/badge/index.d.ts +4 -4
- package/es/button/Button.d.ts +8 -5
- package/es/button/Button.mjs +1 -2
- package/es/button/index.d.ts +7 -5
- package/es/calendar/Calendar.d.ts +5 -5
- package/es/calendar/Calendar.mjs +1 -2
- package/es/calendar/CalendarDay.d.ts +5 -5
- package/es/calendar/CalendarDay.mjs +1 -2
- package/es/calendar/CalendarHeader.d.ts +5 -5
- package/es/calendar/CalendarHeader.mjs +1 -2
- package/es/calendar/CalendarMonth.d.ts +5 -5
- package/es/calendar/CalendarMonth.mjs +1 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +5 -5
- package/es/cascader/Cascader.d.ts +5 -5
- package/es/cascader/Cascader.mjs +1 -2
- package/es/cascader/index.d.ts +5 -5
- package/es/cell/Cell.d.ts +8 -5
- package/es/cell/Cell.mjs +1 -2
- package/es/cell/index.d.ts +7 -5
- package/es/cell-group/CellGroup.d.ts +4 -4
- package/es/cell-group/CellGroup.mjs +1 -2
- package/es/cell-group/index.d.ts +4 -4
- package/es/checkbox/Checkbox.d.ts +5 -5
- package/es/checkbox/Checkbox.mjs +1 -2
- package/es/checkbox/Checker.d.ts +5 -5
- package/es/checkbox/Checker.mjs +1 -2
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/es/checkbox-group/CheckboxGroup.mjs +1 -2
- package/es/checkbox-group/index.d.ts +5 -5
- package/es/col/Col.d.ts +4 -4
- package/es/col/Col.mjs +1 -2
- package/es/col/index.d.ts +4 -4
- package/es/collapse/Collapse.d.ts +5 -5
- package/es/collapse/Collapse.mjs +1 -2
- package/es/collapse/index.d.ts +5 -5
- package/es/collapse-item/CollapseItem.d.ts +4 -4
- package/es/collapse-item/CollapseItem.mjs +1 -2
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +4 -4
- package/es/composables/use-height.d.ts +1 -1
- package/es/composables/use-refs.d.ts +1 -1
- package/es/composables/use-route.d.ts +2 -0
- package/es/composables/use-route.mjs +2 -1
- package/es/composables/use-sync-prop-ref.d.ts +1 -1
- package/es/composables/use-touch.d.ts +8 -8
- package/es/config-provider/ConfigProvider.d.ts +4 -4
- package/es/config-provider/ConfigProvider.mjs +1 -2
- package/es/config-provider/index.d.ts +4 -4
- package/es/date-time-picker/DateTimePicker.d.ts +5 -5
- package/es/date-time-picker/DateTimePicker.mjs +1 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
- package/es/date-time-picker/DateTimePickerWrapper.mjs +1 -2
- package/es/date-time-picker/index.d.ts +5 -5
- package/es/dialog/Dialog.d.ts +5 -5
- package/es/dialog/Dialog.mjs +1 -2
- package/es/dialog/function-call.mjs +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +5 -5
- package/es/divider/Divider.d.ts +4 -4
- package/es/divider/Divider.mjs +1 -2
- package/es/divider/index.d.ts +4 -4
- package/es/drawer-select/DrawerSelect.d.ts +5 -5
- package/es/drawer-select/DrawerSelect.mjs +1 -2
- package/es/drawer-select/index.d.ts +5 -5
- package/es/dropdown-item/DropdownItem.d.ts +6 -6
- package/es/dropdown-item/DropdownItem.mjs +1 -2
- package/es/dropdown-item/index.d.ts +6 -6
- package/es/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/es/dropdown-menu/DropdownMenu.mjs +1 -2
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +4 -4
- package/es/empty/Empty.d.ts +4 -4
- package/es/empty/Empty.mjs +1 -2
- package/es/empty/index.d.ts +4 -4
- package/es/field/Field.d.ts +5 -5
- package/es/field/Field.mjs +1 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.d.ts +5 -5
- package/es/floating-bubble/FloatingBubble.mjs +1 -2
- package/es/floating-bubble/index.css +1 -1
- package/es/floating-bubble/index.d.ts +5 -5
- package/es/form/Form.d.ts +5 -5
- package/es/form/Form.mjs +1 -2
- package/es/form/index.d.ts +5 -5
- package/es/grid/Grid.d.ts +4 -4
- package/es/grid/Grid.mjs +1 -2
- package/es/grid/index.d.ts +4 -4
- package/es/grid-item/GridItem.d.ts +7 -4
- package/es/grid-item/GridItem.mjs +1 -2
- package/es/grid-item/index.d.ts +6 -4
- package/es/hierarchy-select/Breadcrumb.d.ts +5 -5
- package/es/hierarchy-select/Breadcrumb.mjs +1 -2
- package/es/hierarchy-select/HierarchySelect.d.ts +5 -5
- package/es/hierarchy-select/HierarchySelect.mjs +1 -2
- package/es/hierarchy-select/index.d.ts +5 -5
- package/es/icon/Icon.d.ts +4 -4
- package/es/icon/Icon.mjs +1 -2
- package/es/icon/index.css +1 -1
- package/es/icon/index.d.ts +4 -4
- package/es/image/Image.d.ts +5 -5
- package/es/image/Image.mjs +1 -2
- package/es/image/index.d.ts +5 -5
- package/es/image-preview/ImagePreview.d.ts +5 -5
- package/es/image-preview/ImagePreview.mjs +1 -2
- package/es/image-preview/ImagePreviewItem.d.ts +5 -5
- package/es/image-preview/ImagePreviewItem.mjs +1 -2
- package/es/image-preview/function-call.mjs +1 -1
- package/es/image-preview/index.d.ts +5 -5
- package/es/index-anchor/IndexAnchor.d.ts +3 -3
- package/es/index-anchor/IndexAnchor.mjs +1 -2
- package/es/index-anchor/index.d.ts +3 -3
- package/es/index-bar/IndexBar.d.ts +5 -5
- package/es/index-bar/IndexBar.mjs +1 -2
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +5 -5
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/List.d.ts +5 -5
- package/es/list/List.mjs +1 -2
- package/es/list/index.d.ts +5 -5
- package/es/loading/Loading.d.ts +4 -4
- package/es/loading/Loading.mjs +1 -2
- package/es/loading/index.d.ts +4 -4
- package/es/media-picker/MediaPicker.d.ts +9 -5
- package/es/media-picker/MediaPicker.mjs +7 -5
- package/es/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultAudioIcon.mjs +1 -2
- package/es/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultFileIcon.mjs +1 -2
- package/es/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/es/media-picker/image/DefaultVideoIcon.mjs +1 -2
- package/es/media-picker/image/DeleteIcon.d.ts +1 -1
- package/es/media-picker/image/DeleteIcon.mjs +1 -2
- package/es/media-picker/image/PickFileIcon.d.ts +1 -1
- package/es/media-picker/image/PickFileIcon.mjs +1 -2
- package/es/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/es/media-picker/image/PickPhotoIcon.mjs +1 -2
- package/es/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/es/media-picker/image/TakeAudioIcon.mjs +1 -2
- package/es/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/es/media-picker/image/TakePhotoIcon.mjs +1 -2
- package/es/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/es/media-picker/image/TakeVideoIcon.mjs +1 -2
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.d.ts +7 -5
- package/es/media-player/MediaPlayer.d.ts +21 -5
- package/es/media-player/MediaPlayer.mjs +7 -3
- package/es/media-player/index.d.ts +14 -5
- package/es/multiple-picker/MultiplePicker.d.ts +5 -5
- package/es/multiple-picker/MultiplePicker.mjs +1 -2
- package/es/multiple-picker/MultiplePickerOptions.d.ts +5 -5
- package/es/multiple-picker/MultiplePickerOptions.mjs +1 -2
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.d.ts +5 -5
- package/es/nav-bar/NavBar.d.ts +5 -5
- package/es/nav-bar/NavBar.mjs +1 -2
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +5 -5
- package/es/notice-bar/NoticeBar.d.ts +5 -5
- package/es/notice-bar/NoticeBar.mjs +1 -2
- package/es/notice-bar/index.d.ts +5 -5
- package/es/notify/Notify.d.ts +5 -5
- package/es/notify/Notify.mjs +1 -2
- package/es/notify/function-call.mjs +1 -1
- package/es/notify/index.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/es/number-keyboard/NumberKeyboard.mjs +1 -2
- package/es/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/es/number-keyboard/NumberKeyboardKey.mjs +1 -2
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +6 -6
- package/es/overlay/Overlay.d.ts +4 -4
- package/es/overlay/Overlay.mjs +1 -2
- package/es/overlay/index.d.ts +4 -4
- package/es/password-input/PasswordInput.d.ts +5 -5
- package/es/password-input/PasswordInput.mjs +1 -2
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +5 -5
- package/es/picker/Picker.d.ts +5 -5
- package/es/picker/Picker.mjs +1 -2
- package/es/picker/PickerColumn.d.ts +5 -5
- package/es/picker/PickerColumn.mjs +1 -2
- package/es/picker/PickerOptions.d.ts +5 -5
- package/es/picker/PickerOptions.mjs +1 -2
- package/es/picker/PickerToolbar.d.ts +4 -4
- package/es/picker/PickerToolbar.mjs +1 -2
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +5 -5
- package/es/popover/Popover.d.ts +5 -5
- package/es/popover/Popover.mjs +1 -2
- package/es/popover/index.d.ts +5 -5
- package/es/popup/Popup.d.ts +6 -6
- package/es/popup/Popup.mjs +1 -2
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +6 -6
- package/es/pull-refresh/PullRefresh.d.ts +5 -5
- package/es/pull-refresh/PullRefresh.mjs +1 -2
- package/es/pull-refresh/index.d.ts +5 -5
- package/es/radio/Radio.d.ts +5 -5
- package/es/radio/Radio.mjs +1 -2
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +5 -5
- package/es/radio-group/RadioGroup.d.ts +5 -5
- package/es/radio-group/RadioGroup.mjs +1 -2
- package/es/radio-group/index.d.ts +5 -5
- package/es/radio-picker/RadioPicker.d.ts +5 -5
- package/es/radio-picker/RadioPicker.mjs +1 -2
- package/es/radio-picker/RadioPickerColumn.d.ts +5 -5
- package/es/radio-picker/RadioPickerColumn.mjs +1 -2
- package/es/radio-picker/RadioPickerToolbar.d.ts +4 -4
- package/es/radio-picker/RadioPickerToolbar.mjs +1 -2
- package/es/radio-picker/index.css +1 -1
- package/es/radio-picker/index.d.ts +5 -5
- package/es/rate/Rate.d.ts +5 -5
- package/es/rate/Rate.mjs +1 -2
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +5 -5
- package/es/row/Row.d.ts +4 -4
- package/es/row/Row.mjs +1 -2
- package/es/row/index.d.ts +4 -4
- package/es/search/Search.d.ts +5 -5
- package/es/search/Search.mjs +1 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +5 -5
- package/es/signature/Signature.d.ts +5 -5
- package/es/signature/Signature.mjs +1 -2
- package/es/signature/index.d.ts +5 -5
- package/es/skeleton/Skeleton.d.ts +5 -5
- package/es/skeleton/Skeleton.mjs +1 -2
- package/es/skeleton/index.d.ts +5 -5
- package/es/slider/Slider.d.ts +5 -5
- package/es/slider/Slider.mjs +1 -2
- package/es/slider/index.css +1 -1
- package/es/slider/index.d.ts +5 -5
- package/es/step/Step.d.ts +3 -3
- package/es/step/Step.mjs +1 -2
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +3 -3
- package/es/stepper/Stepper.d.ts +5 -5
- package/es/stepper/Stepper.mjs +1 -2
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +5 -5
- package/es/steps/Steps.d.ts +5 -5
- package/es/steps/Steps.mjs +1 -2
- package/es/steps/index.d.ts +5 -5
- package/es/sticky/Sticky.d.ts +5 -5
- package/es/sticky/Sticky.mjs +1 -2
- package/es/sticky/index.d.ts +5 -5
- package/es/swipe/Swipe.d.ts +5 -5
- package/es/swipe/Swipe.mjs +1 -2
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +5 -5
- package/es/swipe-cell/SwipeCell.d.ts +6 -6
- package/es/swipe-cell/SwipeCell.mjs +1 -2
- package/es/swipe-cell/index.css +1 -1
- package/es/swipe-cell/index.d.ts +6 -6
- package/es/swipe-item/SwipeItem.d.ts +1 -1
- package/es/swipe-item/SwipeItem.mjs +1 -2
- package/es/swipe-item/index.d.ts +1 -1
- package/es/switch/Switch.d.ts +5 -5
- package/es/switch/Switch.mjs +1 -2
- package/es/switch/index.d.ts +5 -5
- package/es/tab/Tab.d.ts +7 -4
- package/es/tab/Tab.mjs +1 -2
- package/es/tab/index.d.ts +6 -4
- package/es/tabbar/Tabbar.d.ts +5 -5
- package/es/tabbar/Tabbar.mjs +1 -2
- package/es/tabbar/index.d.ts +5 -5
- package/es/tabbar-item/TabbarItem.d.ts +8 -5
- package/es/tabbar-item/TabbarItem.mjs +1 -2
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +7 -5
- package/es/table/Table.d.ts +5 -5
- package/es/table/Table.mjs +1 -2
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +5 -5
- package/es/tabs/Tabs.d.ts +5 -5
- package/es/tabs/Tabs.mjs +1 -2
- package/es/tabs/TabsContent.d.ts +5 -5
- package/es/tabs/TabsContent.mjs +1 -2
- package/es/tabs/TabsTitle.d.ts +4 -4
- package/es/tabs/TabsTitle.mjs +1 -2
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +5 -5
- package/es/tag/Tag.d.ts +5 -5
- package/es/tag/Tag.mjs +1 -2
- package/es/tag/index.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/es/text-ellipsis/TextEllipsis.mjs +1 -2
- package/es/text-ellipsis/index.d.ts +5 -5
- package/es/time-picker/Arrow.d.ts +2 -2
- package/es/time-picker/Arrow.mjs +1 -2
- package/es/time-picker/TimePicker.d.ts +5 -5
- package/es/time-picker/TimePicker.mjs +1 -2
- package/es/time-picker/TimePickerColumn.d.ts +5 -5
- package/es/time-picker/TimePickerColumn.mjs +1 -2
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +5 -5
- package/es/timeline/Timeline.d.ts +4 -4
- package/es/timeline/Timeline.mjs +1 -2
- package/es/timeline/index.d.ts +4 -4
- package/es/toast/Toast.d.ts +5 -5
- package/es/toast/Toast.mjs +1 -2
- package/es/toast/function-call.mjs +1 -2
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +5 -5
- package/es/uploader/Uploader.d.ts +5 -5
- package/es/uploader/Uploader.mjs +2 -2
- package/es/uploader/UploaderPreviewItem.d.ts +5 -5
- package/es/uploader/UploaderPreviewItem.mjs +1 -2
- package/es/uploader/index.d.ts +5 -5
- package/es/utils/dom.d.ts +1 -1
- package/es/utils/mount-component.d.ts +1 -1
- package/es/video/Video.d.ts +8 -5
- package/es/video/Video.mjs +5 -3
- package/es/video/index.css +1 -1
- package/es/video/index.d.ts +7 -5
- package/es/video/types.d.ts +1 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/ActionSheet.d.ts +5 -5
- package/lib/action-sheet/ActionSheet.js +2 -3
- package/lib/action-sheet/index.d.ts +5 -5
- package/lib/audio/Audio.d.ts +18 -5
- package/lib/audio/Audio.js +11 -9
- package/lib/audio/index.d.ts +14 -5
- package/lib/avatar/Avatar.d.ts +4 -4
- package/lib/avatar/Avatar.js +4 -5
- package/lib/avatar/index.d.ts +4 -4
- package/lib/badge/Badge.d.ts +4 -4
- package/lib/badge/Badge.js +2 -3
- package/lib/badge/index.d.ts +4 -4
- package/lib/button/Button.d.ts +8 -5
- package/lib/button/Button.js +1 -2
- package/lib/button/index.d.ts +7 -5
- package/lib/calendar/Calendar.d.ts +5 -5
- package/lib/calendar/Calendar.js +19 -20
- package/lib/calendar/CalendarDay.d.ts +5 -5
- package/lib/calendar/CalendarDay.js +2 -3
- package/lib/calendar/CalendarHeader.d.ts +5 -5
- package/lib/calendar/CalendarHeader.js +1 -2
- package/lib/calendar/CalendarMonth.d.ts +5 -5
- package/lib/calendar/CalendarMonth.js +11 -12
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +5 -5
- package/lib/cascader/Cascader.d.ts +5 -5
- package/lib/cascader/Cascader.js +11 -12
- package/lib/cascader/index.d.ts +5 -5
- package/lib/cell/Cell.d.ts +8 -5
- package/lib/cell/Cell.js +5 -6
- package/lib/cell/index.d.ts +7 -5
- package/lib/cell-group/CellGroup.d.ts +4 -4
- package/lib/cell-group/CellGroup.js +1 -2
- package/lib/cell-group/index.d.ts +4 -4
- package/lib/checkbox/Checkbox.d.ts +5 -5
- package/lib/checkbox/Checkbox.js +3 -4
- package/lib/checkbox/Checker.d.ts +5 -5
- package/lib/checkbox/Checker.js +5 -6
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.d.ts +5 -5
- package/lib/checkbox-group/CheckboxGroup.js +2 -3
- package/lib/checkbox-group/index.d.ts +5 -5
- package/lib/col/Col.d.ts +4 -4
- package/lib/col/Col.js +2 -3
- package/lib/col/index.d.ts +4 -4
- package/lib/collapse/Collapse.d.ts +5 -5
- package/lib/collapse/Collapse.js +1 -2
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse-item/CollapseItem.d.ts +4 -4
- package/lib/collapse-item/CollapseItem.js +8 -9
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +4 -4
- package/lib/composables/use-height.d.ts +1 -1
- package/lib/composables/use-refs.d.ts +1 -1
- package/lib/composables/use-route.d.ts +2 -0
- package/lib/composables/use-route.js +2 -1
- package/lib/composables/use-sync-prop-ref.d.ts +1 -1
- package/lib/composables/use-touch.d.ts +8 -8
- package/lib/config-provider/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/ConfigProvider.js +10 -11
- package/lib/config-provider/index.d.ts +4 -4
- package/lib/date-time-picker/DateTimePicker.d.ts +5 -5
- package/lib/date-time-picker/DateTimePicker.js +17 -18
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +5 -5
- package/lib/date-time-picker/DateTimePickerWrapper.js +12 -13
- package/lib/date-time-picker/index.d.ts +5 -5
- package/lib/dialog/Dialog.d.ts +5 -5
- package/lib/dialog/Dialog.js +4 -5
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +5 -5
- package/lib/divider/Divider.d.ts +4 -4
- package/lib/divider/Divider.js +1 -2
- package/lib/divider/index.d.ts +4 -4
- package/lib/drawer-select/DrawerSelect.d.ts +5 -5
- package/lib/drawer-select/DrawerSelect.js +13 -14
- package/lib/drawer-select/index.d.ts +5 -5
- package/lib/dropdown-item/DropdownItem.d.ts +6 -6
- package/lib/dropdown-item/DropdownItem.js +5 -6
- package/lib/dropdown-item/index.d.ts +6 -6
- package/lib/dropdown-menu/DropdownMenu.d.ts +4 -4
- package/lib/dropdown-menu/DropdownMenu.js +6 -7
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +4 -4
- package/lib/empty/Empty.d.ts +4 -4
- package/lib/empty/Empty.js +1 -2
- package/lib/empty/index.d.ts +4 -4
- package/lib/field/Field.d.ts +5 -5
- package/lib/field/Field.js +18 -19
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.d.ts +5 -5
- package/lib/floating-bubble/FloatingBubble.js +14 -15
- package/lib/floating-bubble/index.css +1 -1
- package/lib/floating-bubble/index.d.ts +5 -5
- package/lib/form/Form.d.ts +5 -5
- package/lib/form/Form.js +1 -2
- package/lib/form/index.d.ts +5 -5
- package/lib/grid/Grid.d.ts +4 -4
- package/lib/grid/Grid.js +1 -2
- package/lib/grid/index.d.ts +4 -4
- package/lib/grid-item/GridItem.d.ts +7 -4
- package/lib/grid-item/GridItem.js +3 -4
- package/lib/grid-item/index.d.ts +6 -4
- package/lib/hierarchy-select/Breadcrumb.d.ts +5 -5
- package/lib/hierarchy-select/Breadcrumb.js +1 -2
- package/lib/hierarchy-select/HierarchySelect.d.ts +5 -5
- package/lib/hierarchy-select/HierarchySelect.js +6 -7
- package/lib/hierarchy-select/index.d.ts +5 -5
- package/lib/icon/Icon.d.ts +4 -4
- package/lib/icon/Icon.js +3 -4
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.d.ts +4 -4
- package/lib/image/Image.d.ts +5 -5
- package/lib/image/Image.js +9 -10
- package/lib/image/index.d.ts +5 -5
- package/lib/image-preview/ImagePreview.d.ts +5 -5
- package/lib/image-preview/ImagePreview.js +8 -9
- package/lib/image-preview/ImagePreviewItem.d.ts +5 -5
- package/lib/image-preview/ImagePreviewItem.js +10 -11
- package/lib/image-preview/index.d.ts +5 -5
- package/lib/index-anchor/IndexAnchor.d.ts +3 -3
- package/lib/index-anchor/IndexAnchor.js +4 -5
- package/lib/index-anchor/index.d.ts +3 -3
- package/lib/index-bar/IndexBar.d.ts +5 -5
- package/lib/index-bar/IndexBar.js +12 -13
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +5 -5
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/List.d.ts +5 -5
- package/lib/list/List.js +10 -11
- package/lib/list/index.d.ts +5 -5
- package/lib/loading/Loading.d.ts +4 -4
- package/lib/loading/Loading.js +2 -3
- package/lib/loading/index.d.ts +4 -4
- package/lib/media-picker/MediaPicker.d.ts +9 -5
- package/lib/media-picker/MediaPicker.js +6 -4
- package/lib/media-picker/image/DefaultAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultAudioIcon.js +1 -2
- package/lib/media-picker/image/DefaultFileIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultFileIcon.js +1 -2
- package/lib/media-picker/image/DefaultVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/DefaultVideoIcon.js +1 -2
- package/lib/media-picker/image/DeleteIcon.d.ts +1 -1
- package/lib/media-picker/image/DeleteIcon.js +1 -2
- package/lib/media-picker/image/PickFileIcon.d.ts +1 -1
- package/lib/media-picker/image/PickFileIcon.js +1 -2
- package/lib/media-picker/image/PickPhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/PickPhotoIcon.js +1 -2
- package/lib/media-picker/image/TakeAudioIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeAudioIcon.js +1 -2
- package/lib/media-picker/image/TakePhotoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakePhotoIcon.js +1 -2
- package/lib/media-picker/image/TakeVideoIcon.d.ts +1 -1
- package/lib/media-picker/image/TakeVideoIcon.js +1 -2
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.d.ts +7 -5
- package/lib/media-player/MediaPlayer.d.ts +21 -5
- package/lib/media-player/MediaPlayer.js +5 -1
- package/lib/media-player/index.d.ts +14 -5
- package/lib/multiple-picker/MultiplePicker.d.ts +5 -5
- package/lib/multiple-picker/MultiplePicker.js +9 -10
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +5 -5
- package/lib/multiple-picker/MultiplePickerOptions.js +4 -5
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.d.ts +5 -5
- package/lib/nav-bar/NavBar.d.ts +5 -5
- package/lib/nav-bar/NavBar.js +2 -3
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.d.ts +5 -5
- package/lib/notice-bar/NoticeBar.js +5 -6
- package/lib/notice-bar/index.d.ts +5 -5
- package/lib/notify/Notify.d.ts +5 -5
- package/lib/notify/Notify.js +1 -2
- package/lib/notify/index.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboard.d.ts +6 -6
- package/lib/number-keyboard/NumberKeyboard.js +6 -7
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +5 -5
- package/lib/number-keyboard/NumberKeyboardKey.js +2 -3
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +6 -6
- package/lib/overlay/Overlay.d.ts +4 -4
- package/lib/overlay/Overlay.js +2 -3
- package/lib/overlay/index.d.ts +4 -4
- package/lib/password-input/PasswordInput.d.ts +5 -5
- package/lib/password-input/PasswordInput.js +1 -2
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +5 -5
- package/lib/picker/Picker.d.ts +5 -5
- package/lib/picker/Picker.js +18 -19
- package/lib/picker/PickerColumn.d.ts +5 -5
- package/lib/picker/PickerColumn.js +6 -7
- package/lib/picker/PickerOptions.d.ts +5 -5
- package/lib/picker/PickerOptions.js +5 -6
- package/lib/picker/PickerToolbar.d.ts +4 -4
- package/lib/picker/PickerToolbar.js +1 -2
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +5 -5
- package/lib/popover/Popover.d.ts +5 -5
- package/lib/popover/Popover.js +16 -17
- package/lib/popover/index.d.ts +5 -5
- package/lib/popup/Popup.d.ts +6 -6
- package/lib/popup/Popup.js +15 -16
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +6 -6
- package/lib/pull-refresh/PullRefresh.d.ts +5 -5
- package/lib/pull-refresh/PullRefresh.js +7 -8
- package/lib/pull-refresh/index.d.ts +5 -5
- package/lib/radio/Radio.d.ts +5 -5
- package/lib/radio/Radio.js +1 -2
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +5 -5
- package/lib/radio-group/RadioGroup.d.ts +5 -5
- package/lib/radio-group/RadioGroup.js +2 -3
- package/lib/radio-group/index.d.ts +5 -5
- package/lib/radio-picker/RadioPicker.d.ts +5 -5
- package/lib/radio-picker/RadioPicker.js +18 -19
- package/lib/radio-picker/RadioPickerColumn.d.ts +5 -5
- package/lib/radio-picker/RadioPickerColumn.js +7 -8
- package/lib/radio-picker/RadioPickerToolbar.d.ts +4 -4
- package/lib/radio-picker/RadioPickerToolbar.js +1 -2
- package/lib/radio-picker/index.css +1 -1
- package/lib/radio-picker/index.d.ts +5 -5
- package/lib/rate/Rate.d.ts +5 -5
- package/lib/rate/Rate.js +3 -4
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +5 -5
- package/lib/row/Row.d.ts +4 -4
- package/lib/row/Row.js +3 -4
- package/lib/row/index.d.ts +4 -4
- package/lib/search/Search.d.ts +5 -5
- package/lib/search/Search.js +2 -3
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +5 -5
- package/lib/signature/Signature.d.ts +5 -5
- package/lib/signature/Signature.js +12 -13
- package/lib/signature/index.d.ts +5 -5
- package/lib/skeleton/Skeleton.d.ts +5 -5
- package/lib/skeleton/Skeleton.js +1 -2
- package/lib/skeleton/index.d.ts +5 -5
- package/lib/slider/Slider.d.ts +5 -5
- package/lib/slider/Slider.js +8 -9
- package/lib/slider/index.css +1 -1
- package/lib/slider/index.d.ts +5 -5
- package/lib/step/Step.d.ts +3 -3
- package/lib/step/Step.js +2 -3
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +3 -3
- package/lib/stepper/Stepper.d.ts +5 -5
- package/lib/stepper/Stepper.js +11 -12
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +5 -5
- package/lib/steps/Steps.d.ts +5 -5
- package/lib/steps/Steps.js +1 -2
- package/lib/steps/index.d.ts +5 -5
- package/lib/sticky/Sticky.d.ts +5 -5
- package/lib/sticky/Sticky.js +7 -8
- package/lib/sticky/index.d.ts +5 -5
- package/lib/swipe/Swipe.d.ts +5 -5
- package/lib/swipe/Swipe.js +22 -23
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +5 -5
- package/lib/swipe-cell/SwipeCell.d.ts +6 -6
- package/lib/swipe-cell/SwipeCell.js +7 -8
- package/lib/swipe-cell/index.css +1 -1
- package/lib/swipe-cell/index.d.ts +6 -6
- package/lib/swipe-item/SwipeItem.d.ts +1 -1
- package/lib/swipe-item/SwipeItem.js +6 -7
- package/lib/swipe-item/index.d.ts +1 -1
- package/lib/switch/Switch.d.ts +5 -5
- package/lib/switch/Switch.js +1 -2
- package/lib/switch/index.d.ts +5 -5
- package/lib/tab/Tab.d.ts +7 -4
- package/lib/tab/Tab.js +6 -7
- package/lib/tab/index.d.ts +6 -4
- package/lib/tabbar/Tabbar.d.ts +5 -5
- package/lib/tabbar/Tabbar.js +2 -3
- package/lib/tabbar/index.d.ts +5 -5
- package/lib/tabbar-item/TabbarItem.d.ts +8 -5
- package/lib/tabbar-item/TabbarItem.js +3 -4
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +7 -5
- package/lib/table/Table.d.ts +5 -5
- package/lib/table/Table.js +8 -9
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +5 -5
- package/lib/tabs/Tabs.d.ts +5 -5
- package/lib/tabs/Tabs.js +20 -21
- package/lib/tabs/TabsContent.d.ts +5 -5
- package/lib/tabs/TabsContent.js +4 -5
- package/lib/tabs/TabsTitle.d.ts +4 -4
- package/lib/tabs/TabsTitle.js +6 -7
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +5 -5
- package/lib/tag/Tag.d.ts +5 -5
- package/lib/tag/Tag.js +2 -3
- package/lib/tag/index.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.d.ts +5 -5
- package/lib/text-ellipsis/TextEllipsis.js +8 -9
- package/lib/text-ellipsis/index.d.ts +5 -5
- package/lib/time-picker/Arrow.d.ts +2 -2
- package/lib/time-picker/Arrow.js +1 -2
- package/lib/time-picker/TimePicker.d.ts +5 -5
- package/lib/time-picker/TimePicker.js +12 -13
- package/lib/time-picker/TimePickerColumn.d.ts +5 -5
- package/lib/time-picker/TimePickerColumn.js +6 -7
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +5 -5
- package/lib/timeline/Timeline.d.ts +4 -4
- package/lib/timeline/Timeline.js +3 -4
- package/lib/timeline/index.d.ts +4 -4
- package/lib/toast/Toast.d.ts +5 -5
- package/lib/toast/Toast.js +5 -6
- package/lib/toast/function-call.js +3 -4
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +5 -5
- package/lib/uploader/Uploader.d.ts +5 -5
- package/lib/uploader/Uploader.js +5 -5
- package/lib/uploader/UploaderPreviewItem.d.ts +5 -5
- package/lib/uploader/UploaderPreviewItem.js +1 -2
- package/lib/uploader/index.d.ts +5 -5
- package/lib/utils/dom.d.ts +1 -1
- package/lib/utils/mount-component.d.ts +1 -1
- package/lib/video/Video.d.ts +8 -5
- package/lib/video/Video.js +13 -11
- package/lib/video/index.css +1 -1
- package/lib/video/index.d.ts +7 -5
- package/lib/video/types.d.ts +1 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +24 -10
- package/lib/zartui.es.js +24 -10
- package/lib/zartui.js +37 -20
- package/lib/zartui.min.js +1 -1
- package/package.json +27 -27
|
@@ -31,7 +31,6 @@ __export(stdin_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(stdin_exports);
|
|
33
33
|
var import_vue = require("vue");
|
|
34
|
-
var import_vue2 = require("vue");
|
|
35
34
|
var import_use = require("@zartui/use");
|
|
36
35
|
var import_utils = require("../utils");
|
|
37
36
|
var import_search = __toESM(require("../search"));
|
|
@@ -54,23 +53,23 @@ const drawerSelectProps = {
|
|
|
54
53
|
defaultSelectNode: Object,
|
|
55
54
|
activeClassName: (0, import_utils.makeStringProp)("")
|
|
56
55
|
};
|
|
57
|
-
var stdin_default = (0,
|
|
56
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
58
57
|
name,
|
|
59
58
|
props: drawerSelectProps,
|
|
60
59
|
emits: ["change", "select"],
|
|
61
60
|
setup(props, {
|
|
62
61
|
emit
|
|
63
62
|
}) {
|
|
64
|
-
const keyword = (0,
|
|
65
|
-
const expandNode = (0,
|
|
66
|
-
const selectNode = (0,
|
|
67
|
-
const flatArray = (0,
|
|
68
|
-
const show = (0,
|
|
69
|
-
const searchRef = (0,
|
|
70
|
-
const offset = (0,
|
|
71
|
-
const historyList = (0,
|
|
72
|
-
const defaultTreeNode = (0,
|
|
73
|
-
const fields = (0,
|
|
63
|
+
const keyword = (0, import_vue.ref)("");
|
|
64
|
+
const expandNode = (0, import_vue.ref)();
|
|
65
|
+
const selectNode = (0, import_vue.ref)(props.defaultSelectNode);
|
|
66
|
+
const flatArray = (0, import_vue.ref)([]);
|
|
67
|
+
const show = (0, import_vue.ref)(false);
|
|
68
|
+
const searchRef = (0, import_vue.ref)();
|
|
69
|
+
const offset = (0, import_vue.ref)(0);
|
|
70
|
+
const historyList = (0, import_vue.ref)([]);
|
|
71
|
+
const defaultTreeNode = (0, import_vue.ref)(props.treeData);
|
|
72
|
+
const fields = (0, import_vue.computed)(() => (0, import_utils2.assignDefaultFields)(props.treeFieldName));
|
|
74
73
|
const {
|
|
75
74
|
value,
|
|
76
75
|
children,
|
|
@@ -142,7 +141,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
142
141
|
getNext(data);
|
|
143
142
|
flatArray.value = result;
|
|
144
143
|
};
|
|
145
|
-
(0,
|
|
144
|
+
(0, import_vue.onMounted)(() => {
|
|
146
145
|
var _a;
|
|
147
146
|
historyList.value = JSON.parse((_a = localStorage.getItem("problemSearchHistory")) != null ? _a : "[]") || [];
|
|
148
147
|
expandNode.value = {
|
|
@@ -197,7 +196,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
197
196
|
const replaceString = `<span style="color: #0091FA; background: rgba(0, 145, 250, 0.1); font-weight: bold;">${keywords}</span>`;
|
|
198
197
|
return text.replace(replaceReg, replaceString);
|
|
199
198
|
};
|
|
200
|
-
const filterTree = (0,
|
|
199
|
+
const filterTree = (0, import_vue.computed)(() => {
|
|
201
200
|
if (keyword.value) {
|
|
202
201
|
return flatArray.value.filter((item) => {
|
|
203
202
|
return (item.fullName || "").indexOf(keyword.value) > -1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DrawerSelect: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const DrawerSelect: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
treeData: {
|
|
3
3
|
type: import("vue").PropType<import("./types").DrawerSelectTreeNode[]>;
|
|
4
4
|
default: () => import("./types").DrawerSelectTreeNode[];
|
|
@@ -21,7 +21,7 @@ export declare const DrawerSelect: import("../utils").WithInstall<import("vue").
|
|
|
21
21
|
type: import("vue").PropType<string>;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
|
-
}
|
|
24
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
treeData: {
|
|
26
26
|
type: import("vue").PropType<import("./types").DrawerSelectTreeNode[]>;
|
|
27
27
|
default: () => import("./types").DrawerSelectTreeNode[];
|
|
@@ -44,16 +44,16 @@ export declare const DrawerSelect: import("../utils").WithInstall<import("vue").
|
|
|
44
44
|
type: import("vue").PropType<string>;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
|
-
}>> & {
|
|
47
|
+
}>> & Readonly<{
|
|
48
48
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
}
|
|
50
|
+
}>, {
|
|
51
51
|
title: string;
|
|
52
52
|
placeholder: string;
|
|
53
53
|
treeData: import("./types").DrawerSelectTreeNode[];
|
|
54
54
|
expandAll: boolean;
|
|
55
55
|
activeClassName: string;
|
|
56
|
-
}, {}>>;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
57
57
|
export default DrawerSelect;
|
|
58
58
|
export type { DrawerSelectProps } from './DrawerSelect';
|
|
59
59
|
export type { DrawerSelectThemeVars, DrawerSelectTreeNode, FlatTreeNode, } from './types';
|
|
@@ -32,7 +32,7 @@ export declare const dropdownItemProps: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
export type DropdownItemProps = ExtractPropTypes<typeof dropdownItemProps>;
|
|
35
|
-
declare const _default: import("vue").DefineComponent<{
|
|
35
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
36
36
|
title: StringConstructor;
|
|
37
37
|
options: {
|
|
38
38
|
type: PropType<DropdownItemOption[]>;
|
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
type: PropType<any[]>;
|
|
62
62
|
default: () => any[];
|
|
63
63
|
};
|
|
64
|
-
}
|
|
64
|
+
}>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "update:modelValue" | "change" | "close" | "opened" | "closed" | "confirm")[], "reset" | "open" | "update:modelValue" | "change" | "close" | "opened" | "closed" | "confirm", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
65
65
|
title: StringConstructor;
|
|
66
66
|
options: {
|
|
67
67
|
type: PropType<DropdownItemOption[]>;
|
|
@@ -90,16 +90,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
90
|
type: PropType<any[]>;
|
|
91
91
|
default: () => any[];
|
|
92
92
|
};
|
|
93
|
-
}>> & {
|
|
93
|
+
}>> & Readonly<{
|
|
94
94
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
96
97
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
97
98
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
98
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
100
100
|
onClosed?: ((...args: any[]) => any) | undefined;
|
|
101
101
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
102
|
-
}
|
|
102
|
+
}>, {
|
|
103
103
|
disabled: boolean;
|
|
104
104
|
placeholder: string;
|
|
105
105
|
lazyRender: boolean;
|
|
@@ -107,5 +107,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
107
|
modelValueArray: any[];
|
|
108
108
|
multiSelect: boolean;
|
|
109
109
|
resetDefaultValue: any[];
|
|
110
|
-
}, {}>;
|
|
110
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
111
111
|
export default _default;
|
|
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
|
24
24
|
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
25
|
var import_utils = require("../utils");
|
|
27
26
|
var import_DropdownMenu = require("../dropdown-menu/DropdownMenu");
|
|
28
27
|
var import_use = require("@zartui/use");
|
|
@@ -48,7 +47,7 @@ const dropdownItemProps = {
|
|
|
48
47
|
placeholder: (0, import_utils.makeStringProp)("\u672A\u9009\u62E9"),
|
|
49
48
|
resetDefaultValue: (0, import_utils.makeArrayProp)()
|
|
50
49
|
};
|
|
51
|
-
var stdin_default = (0,
|
|
50
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
52
51
|
name,
|
|
53
52
|
inheritAttrs: false,
|
|
54
53
|
props: dropdownItemProps,
|
|
@@ -58,12 +57,12 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
58
57
|
slots,
|
|
59
58
|
attrs
|
|
60
59
|
}) {
|
|
61
|
-
const state = (0,
|
|
60
|
+
const state = (0, import_vue.reactive)({
|
|
62
61
|
showPopup: false,
|
|
63
62
|
transition: true,
|
|
64
63
|
showWrapper: false
|
|
65
64
|
});
|
|
66
|
-
const fields = (0,
|
|
65
|
+
const fields = (0, import_vue.computed)(() => (0, import_utils.extend)({
|
|
67
66
|
text: "text",
|
|
68
67
|
value: "value",
|
|
69
68
|
children: "children"
|
|
@@ -72,7 +71,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
72
71
|
parent,
|
|
73
72
|
index
|
|
74
73
|
} = (0, import_use.useParent)(import_DropdownMenu.DROPDOWN_KEY);
|
|
75
|
-
const modelArray = (0,
|
|
74
|
+
const modelArray = (0, import_vue.reactive)(props.modelValueArray);
|
|
76
75
|
if (!parent) {
|
|
77
76
|
if (process.env.NODE_ENV !== "production") {
|
|
78
77
|
console.error("[ZartUI] <DropdownItem> must be a child component of <DropdownMenu>.");
|
|
@@ -329,7 +328,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
329
328
|
});
|
|
330
329
|
return () => {
|
|
331
330
|
if (props.teleport) {
|
|
332
|
-
return (0, import_vue.createVNode)(
|
|
331
|
+
return (0, import_vue.createVNode)(import_vue.Teleport, {
|
|
333
332
|
"to": props.teleport
|
|
334
333
|
}, {
|
|
335
334
|
default: () => [renderContent()]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownItemProps } from './DropdownItem';
|
|
2
|
-
export declare const DropdownItem: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const DropdownItem: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
title: StringConstructor;
|
|
4
4
|
options: {
|
|
5
5
|
type: import("vue").PropType<import("./types").DropdownItemOption[]>;
|
|
@@ -28,7 +28,7 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
|
28
28
|
type: import("vue").PropType<any[]>;
|
|
29
29
|
default: () => any[];
|
|
30
30
|
};
|
|
31
|
-
}
|
|
31
|
+
}>, (() => import("vue/jsx-runtime").JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("reset" | "open" | "update:modelValue" | "change" | "close" | "opened" | "closed" | "confirm")[], "reset" | "open" | "update:modelValue" | "change" | "close" | "opened" | "closed" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
32
|
title: StringConstructor;
|
|
33
33
|
options: {
|
|
34
34
|
type: import("vue").PropType<import("./types").DropdownItemOption[]>;
|
|
@@ -57,16 +57,16 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
|
57
57
|
type: import("vue").PropType<any[]>;
|
|
58
58
|
default: () => any[];
|
|
59
59
|
};
|
|
60
|
-
}>> & {
|
|
60
|
+
}>> & Readonly<{
|
|
61
61
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
62
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
63
64
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
64
65
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
66
66
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
onClosed?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
69
|
-
}
|
|
69
|
+
}>, {
|
|
70
70
|
disabled: boolean;
|
|
71
71
|
placeholder: string;
|
|
72
72
|
lazyRender: boolean;
|
|
@@ -74,7 +74,7 @@ export declare const DropdownItem: import("../utils").WithInstall<import("vue").
|
|
|
74
74
|
modelValueArray: any[];
|
|
75
75
|
multiSelect: boolean;
|
|
76
76
|
resetDefaultValue: any[];
|
|
77
|
-
}, {}>>;
|
|
77
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
78
78
|
export default DropdownItem;
|
|
79
79
|
export { dropdownItemProps } from './DropdownItem';
|
|
80
80
|
export type { DropdownItemProps };
|
|
@@ -26,7 +26,7 @@ export declare const dropdownMenuProps: {
|
|
|
26
26
|
};
|
|
27
27
|
export type DropdownMenuProps = ExtractPropTypes<typeof dropdownMenuProps>;
|
|
28
28
|
export declare const DROPDOWN_KEY: InjectionKey<DropdownMenuProvide>;
|
|
29
|
-
declare const _default: import("vue").DefineComponent<{
|
|
29
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
30
|
overlay: {
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: true;
|
|
@@ -49,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
type: BooleanConstructor;
|
|
50
50
|
default: true;
|
|
51
51
|
};
|
|
52
|
-
}
|
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
53
53
|
overlay: {
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
default: true;
|
|
@@ -72,11 +72,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
type: BooleanConstructor;
|
|
73
73
|
default: true;
|
|
74
74
|
};
|
|
75
|
-
}
|
|
75
|
+
}>> & Readonly<{}>, {
|
|
76
76
|
overlay: boolean;
|
|
77
77
|
direction: DropdownMenuDirection;
|
|
78
78
|
duration: string | number;
|
|
79
79
|
closeOnClickOverlay: boolean;
|
|
80
80
|
closeOnClickOutside: boolean;
|
|
81
|
-
}, {}>;
|
|
81
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
82
82
|
export default _default;
|
|
@@ -33,7 +33,6 @@ __export(stdin_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(stdin_exports);
|
|
35
35
|
var import_vue = require("vue");
|
|
36
|
-
var import_vue2 = require("vue");
|
|
37
36
|
var import_icon = __toESM(require("../icon"));
|
|
38
37
|
var import_utils = require("../utils");
|
|
39
38
|
var import_use_id = require("../composables/use-id");
|
|
@@ -49,23 +48,23 @@ const dropdownMenuProps = {
|
|
|
49
48
|
closeOnClickOverlay: import_utils.truthProp
|
|
50
49
|
};
|
|
51
50
|
const DROPDOWN_KEY = Symbol(name);
|
|
52
|
-
var stdin_default = (0,
|
|
51
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
53
52
|
name,
|
|
54
53
|
props: dropdownMenuProps,
|
|
55
54
|
setup(props, {
|
|
56
55
|
slots
|
|
57
56
|
}) {
|
|
58
57
|
const id = (0, import_use_id.useId)();
|
|
59
|
-
const root = (0,
|
|
60
|
-
const barRef = (0,
|
|
61
|
-
const offset = (0,
|
|
58
|
+
const root = (0, import_vue.ref)();
|
|
59
|
+
const barRef = (0, import_vue.ref)();
|
|
60
|
+
const offset = (0, import_vue.ref)(0);
|
|
62
61
|
const {
|
|
63
62
|
children,
|
|
64
63
|
linkChildren
|
|
65
64
|
} = (0, import_use.useChildren)(DROPDOWN_KEY);
|
|
66
65
|
const scrollParent = (0, import_use.useScrollParent)(root);
|
|
67
|
-
const opened = (0,
|
|
68
|
-
const barStyle = (0,
|
|
66
|
+
const opened = (0, import_vue.computed)(() => children.some((item) => item.state.showWrapper));
|
|
67
|
+
const barStyle = (0, import_vue.computed)(() => {
|
|
69
68
|
if (opened.value && (0, import_utils.isDef)(props.zIndex)) {
|
|
70
69
|
return {
|
|
71
70
|
zIndex: +props.zIndex + 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-dropdown-menu-background: var(--zt-background-popup);--zt-dropdown-menu-bar-padding: 0 12px;--zt-dropdown-menu-item-margin: 12px 4px;--zt-dropdown-menu-item-height: 36px;--zt-dropdown-menu-item-padding: 0 12px;--zt-dropdown-menu-title-text-color: var(--zt-text-color);--zt-dropdown-menu-title-active-text-color: var(--zt-primary-color);--zt-dropdown-menu-title-disabled-text-color: var(--zt-text-color-2);--zt-dropdown-menu-option-active-color: var(--zt-primary-color);--zt-dropdown-menu-content-max-height: 80%}:root[zt-theme-size=large]{--zt-dropdown-menu-item-height: 48px}.zt-dropdown-menu{-webkit-user-select:none;user-select:none}.zt-dropdown-menu__bar{position:relative;display:flex;padding:var(--zt-dropdown-menu-bar-padding);align-items:center}.zt-dropdown-menu__bar--opened{z-index:calc(var(--zt-dropdown-item-z-index) + 1)}.zt-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;background:var(--zt-dropdown-menu-background);min-width:0;margin:var(--zt-dropdown-menu-item-margin);height:var(--zt-dropdown-menu-item-height);border-radius:calc(var(--zt-dropdown-menu-item-height) / 2);padding:var(--zt-dropdown-menu-item-padding);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);cursor:pointer}.zt-dropdown-menu__item:last-child{margin-right:0}.zt-dropdown-menu__item:active{opacity:.7}.zt-dropdown-menu__item--disabled:active{opacity:1}.zt-dropdown-menu__item--disabled .zt-dropdown-menu__title{color:var(--zt-dropdown-menu-title-disabled-text-color)}.zt-dropdown-menu__title{position:relative;box-sizing:border-box;width:100%;color:var(--zt-dropdown-menu-title-text-color);font-size:var(--zt-font-size-md)}.zt-dropdown-menu__title .zt-icon{position:absolute;right:0;top:3px;color:var(--zt-gray-4)}.zt-dropdown-menu__title--active{color:var(--zt-dropdown-menu-title-active-text-color)}.zt-dropdown-menu__title--active .zt-icon{color:currentColor}.zt-dropdown-menu__title--active .zt-dropdown-menu__icon{transform:rotate(180deg)}.zt-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}.zt-dropdown-menu__placeholder{color:var(--zt-gray-a2)}
|
|
1
|
+
:root{--zt-dropdown-menu-background: var(--zt-background-popup);--zt-dropdown-menu-bar-padding: 0 12px;--zt-dropdown-menu-item-margin: 12px 4px;--zt-dropdown-menu-item-height: 36px;--zt-dropdown-menu-item-padding: 0 12px;--zt-dropdown-menu-title-text-color: var(--zt-text-color);--zt-dropdown-menu-title-active-text-color: var(--zt-primary-color);--zt-dropdown-menu-title-disabled-text-color: var(--zt-text-color-2);--zt-dropdown-menu-option-active-color: var(--zt-primary-color);--zt-dropdown-menu-content-max-height: 80%}:root[zt-theme-size=large]{--zt-dropdown-menu-item-height: 48px}.zt-dropdown-menu{-webkit-user-select:none;-moz-user-select:none;user-select:none}.zt-dropdown-menu__bar{position:relative;display:flex;padding:var(--zt-dropdown-menu-bar-padding);align-items:center}.zt-dropdown-menu__bar--opened{z-index:calc(var(--zt-dropdown-item-z-index) + 1)}.zt-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;background:var(--zt-dropdown-menu-background);min-width:0;margin:var(--zt-dropdown-menu-item-margin);height:var(--zt-dropdown-menu-item-height);border-radius:calc(var(--zt-dropdown-menu-item-height) / 2);padding:var(--zt-dropdown-menu-item-padding);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);cursor:pointer}.zt-dropdown-menu__item:last-child{margin-right:0}.zt-dropdown-menu__item:active{opacity:.7}.zt-dropdown-menu__item--disabled:active{opacity:1}.zt-dropdown-menu__item--disabled .zt-dropdown-menu__title{color:var(--zt-dropdown-menu-title-disabled-text-color)}.zt-dropdown-menu__title{position:relative;box-sizing:border-box;width:100%;color:var(--zt-dropdown-menu-title-text-color);font-size:var(--zt-font-size-md)}.zt-dropdown-menu__title .zt-icon{position:absolute;right:0;top:3px;color:var(--zt-gray-4)}.zt-dropdown-menu__title--active{color:var(--zt-dropdown-menu-title-active-text-color)}.zt-dropdown-menu__title--active .zt-icon{color:currentColor}.zt-dropdown-menu__title--active .zt-dropdown-menu__icon{transform:rotate(180deg)}.zt-dropdown-menu__title--down:after{margin-top:-1px;transform:rotate(135deg)}.zt-dropdown-menu__placeholder{color:var(--zt-gray-a2)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownMenuProps } from './DropdownMenu';
|
|
2
|
-
export declare const DropdownMenu: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const DropdownMenu: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
overlay: {
|
|
4
4
|
type: BooleanConstructor;
|
|
5
5
|
default: true;
|
|
@@ -22,7 +22,7 @@ export declare const DropdownMenu: import("../utils").WithInstall<import("vue").
|
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: true;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
overlay: {
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
default: true;
|
|
@@ -45,13 +45,13 @@ export declare const DropdownMenu: import("../utils").WithInstall<import("vue").
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: true;
|
|
47
47
|
};
|
|
48
|
-
}
|
|
48
|
+
}>> & Readonly<{}>, {
|
|
49
49
|
overlay: boolean;
|
|
50
50
|
direction: import("./types").DropdownMenuDirection;
|
|
51
51
|
duration: string | number;
|
|
52
52
|
closeOnClickOverlay: boolean;
|
|
53
53
|
closeOnClickOutside: boolean;
|
|
54
|
-
}, {}>>;
|
|
54
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
55
55
|
export default DropdownMenu;
|
|
56
56
|
export { dropdownMenuProps } from './DropdownMenu';
|
|
57
57
|
export type { DropdownMenuProps };
|
package/lib/empty/Empty.d.ts
CHANGED
|
@@ -10,21 +10,21 @@ declare const emptyProps: {
|
|
|
10
10
|
description: StringConstructor;
|
|
11
11
|
};
|
|
12
12
|
export type EmptyProps = ExtractPropTypes<typeof emptyProps>;
|
|
13
|
-
declare const _default: import("vue").DefineComponent<{
|
|
13
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
14
14
|
image: {
|
|
15
15
|
type: PropType<string>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
imageSize: PropType<Numeric | [Numeric, Numeric]>;
|
|
19
19
|
description: StringConstructor;
|
|
20
|
-
}
|
|
20
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
21
21
|
image: {
|
|
22
22
|
type: PropType<string>;
|
|
23
23
|
default: string;
|
|
24
24
|
};
|
|
25
25
|
imageSize: PropType<Numeric | [Numeric, Numeric]>;
|
|
26
26
|
description: StringConstructor;
|
|
27
|
-
}
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
28
|
image: string;
|
|
29
|
-
}, {}>;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
30
|
export default _default;
|
package/lib/empty/Empty.js
CHANGED
|
@@ -21,7 +21,6 @@ __export(stdin_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(stdin_exports);
|
|
23
23
|
var import_vue = require("vue");
|
|
24
|
-
var import_vue2 = require("vue");
|
|
25
24
|
var import_utils = require("../utils");
|
|
26
25
|
var import_Images = require("./Images");
|
|
27
26
|
var import_use_id = require("../composables/use-id");
|
|
@@ -45,7 +44,7 @@ const emptyProps = {
|
|
|
45
44
|
imageSize: [Number, String, Array],
|
|
46
45
|
description: String
|
|
47
46
|
};
|
|
48
|
-
var stdin_default = (0,
|
|
47
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
49
48
|
name,
|
|
50
49
|
props: emptyProps,
|
|
51
50
|
setup(props, {
|
package/lib/empty/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export declare const Empty: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const Empty: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
image: {
|
|
3
3
|
type: import("vue").PropType<string>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
imageSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
|
7
7
|
description: StringConstructor;
|
|
8
|
-
}
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
image: {
|
|
10
10
|
type: import("vue").PropType<string>;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
13
|
imageSize: import("vue").PropType<import("../utils").Numeric | [import("../utils").Numeric, import("../utils").Numeric]>;
|
|
14
14
|
description: StringConstructor;
|
|
15
|
-
}
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
16
|
image: string;
|
|
17
|
-
}, {}>>;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
18
18
|
export default Empty;
|
|
19
19
|
export type { EmptyProps } from './Empty';
|
|
20
20
|
export type { EmptyThemeVars } from './types';
|
package/lib/field/Field.d.ts
CHANGED
|
@@ -154,7 +154,7 @@ declare const fieldProps: {
|
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
156
|
export type FieldProps = ExtractPropTypes<typeof fieldProps>;
|
|
157
|
-
declare const _default: import("vue").DefineComponent<{
|
|
157
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
158
158
|
leftIcon: StringConstructor;
|
|
159
159
|
titleIcon: StringConstructor;
|
|
160
160
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -262,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
262
|
type: BooleanConstructor;
|
|
263
263
|
default: null;
|
|
264
264
|
};
|
|
265
|
-
}
|
|
265
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue")[], "clear" | "focus" | "blur" | "keypress" | "clickInput" | "endValidate" | "startValidate" | "clickLeftIcon" | "clickRightIcon" | "update:modelValue", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
266
266
|
leftIcon: StringConstructor;
|
|
267
267
|
titleIcon: StringConstructor;
|
|
268
268
|
title: (NumberConstructor | StringConstructor)[];
|
|
@@ -370,7 +370,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
370
370
|
type: BooleanConstructor;
|
|
371
371
|
default: null;
|
|
372
372
|
};
|
|
373
|
-
}>> & {
|
|
373
|
+
}>> & Readonly<{
|
|
374
374
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
375
375
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
376
376
|
onKeypress?: ((...args: any[]) => any) | undefined;
|
|
@@ -381,7 +381,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
onClickLeftIcon?: ((...args: any[]) => any) | undefined;
|
|
382
382
|
onClickRightIcon?: ((...args: any[]) => any) | undefined;
|
|
383
383
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
384
|
-
}
|
|
384
|
+
}>, {
|
|
385
385
|
center: boolean;
|
|
386
386
|
type: FieldType;
|
|
387
387
|
autofocus: boolean;
|
|
@@ -402,5 +402,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
402
402
|
readonly: boolean;
|
|
403
403
|
showWordLimit: boolean;
|
|
404
404
|
colon: boolean;
|
|
405
|
-
}, {}>;
|
|
405
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
406
406
|
export default _default;
|
package/lib/field/Field.js
CHANGED
|
@@ -22,7 +22,6 @@ __export(stdin_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stdin_exports);
|
|
24
24
|
var import_vue = require("vue");
|
|
25
|
-
var import_vue2 = require("vue");
|
|
26
25
|
var import_utils = require("../utils");
|
|
27
26
|
var import_utils2 = require("./utils");
|
|
28
27
|
var import_Cell = require("../cell/Cell");
|
|
@@ -81,7 +80,7 @@ const fieldProps = (0, import_utils.extend)({}, import_Cell.cellSharedProps, fie
|
|
|
81
80
|
default: null
|
|
82
81
|
}
|
|
83
82
|
});
|
|
84
|
-
var stdin_default = (0,
|
|
83
|
+
var stdin_default = (0, import_vue.defineComponent)({
|
|
85
84
|
name,
|
|
86
85
|
props: fieldProps,
|
|
87
86
|
emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"],
|
|
@@ -90,15 +89,15 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
90
89
|
slots
|
|
91
90
|
}) {
|
|
92
91
|
const id = (0, import_use_id.useId)();
|
|
93
|
-
const state = (0,
|
|
92
|
+
const state = (0, import_vue.reactive)({
|
|
94
93
|
status: "unvalidated",
|
|
95
94
|
focused: false,
|
|
96
95
|
validateMessage: "",
|
|
97
96
|
showPassword: false
|
|
98
97
|
});
|
|
99
|
-
const inputRef = (0,
|
|
100
|
-
const clearIconRef = (0,
|
|
101
|
-
const customValue = (0,
|
|
98
|
+
const inputRef = (0, import_vue.ref)();
|
|
99
|
+
const clearIconRef = (0, import_vue.ref)();
|
|
100
|
+
const customValue = (0, import_vue.ref)();
|
|
102
101
|
const {
|
|
103
102
|
parent: form
|
|
104
103
|
} = (0, import_use.useParent)(import_utils.FORM_KEY);
|
|
@@ -114,7 +113,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
114
113
|
return form.props[key];
|
|
115
114
|
}
|
|
116
115
|
};
|
|
117
|
-
const showClear = (0,
|
|
116
|
+
const showClear = (0, import_vue.computed)(() => {
|
|
118
117
|
const readonly = getProp("readonly");
|
|
119
118
|
if (props.clearable && !readonly) {
|
|
120
119
|
const hasValue = getModelValue() !== "";
|
|
@@ -123,7 +122,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
123
122
|
}
|
|
124
123
|
return false;
|
|
125
124
|
});
|
|
126
|
-
const formValue = (0,
|
|
125
|
+
const formValue = (0, import_vue.computed)(() => {
|
|
127
126
|
if (customValue.value && slots.input) {
|
|
128
127
|
return customValue.value();
|
|
129
128
|
}
|
|
@@ -255,7 +254,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
255
254
|
const onFocus = (event) => {
|
|
256
255
|
state.focused = true;
|
|
257
256
|
emit("focus", event);
|
|
258
|
-
(0,
|
|
257
|
+
(0, import_vue.nextTick)(adjustTextareaSize);
|
|
259
258
|
if (getProp("readonly")) {
|
|
260
259
|
blur();
|
|
261
260
|
}
|
|
@@ -268,7 +267,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
268
267
|
updateValue(getModelValue(), "onBlur");
|
|
269
268
|
emit("blur", event);
|
|
270
269
|
validateWithTrigger("onBlur");
|
|
271
|
-
(0,
|
|
270
|
+
(0, import_vue.nextTick)(adjustTextareaSize);
|
|
272
271
|
(0, import_utils.resetScroll)();
|
|
273
272
|
};
|
|
274
273
|
const onClickInput = (event) => emit("clickInput", event);
|
|
@@ -282,7 +281,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
282
281
|
emit("update:modelValue", "");
|
|
283
282
|
emit("clear", event);
|
|
284
283
|
};
|
|
285
|
-
const showError = (0,
|
|
284
|
+
const showError = (0, import_vue.computed)(() => {
|
|
286
285
|
if (typeof props.error === "boolean") {
|
|
287
286
|
return props.error;
|
|
288
287
|
}
|
|
@@ -290,7 +289,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
290
289
|
return true;
|
|
291
290
|
}
|
|
292
291
|
});
|
|
293
|
-
const labelStyle = (0,
|
|
292
|
+
const labelStyle = (0, import_vue.computed)(() => {
|
|
294
293
|
const labelWidth = getProp("labelWidth");
|
|
295
294
|
if (labelWidth) {
|
|
296
295
|
return {
|
|
@@ -415,7 +414,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
415
414
|
"class": [bem("description"), props.descriptionClass]
|
|
416
415
|
}, [props.description]);
|
|
417
416
|
};
|
|
418
|
-
const showMessage = (0,
|
|
417
|
+
const showMessage = (0, import_vue.computed)(() => !(form && form.props.showErrorMessage === false) && (props.errorMessage || state.validateMessage));
|
|
419
418
|
const renderMessage = () => {
|
|
420
419
|
if (!showMessage.value) {
|
|
421
420
|
return;
|
|
@@ -468,23 +467,23 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
468
467
|
resetValidation,
|
|
469
468
|
getValidationStatus
|
|
470
469
|
});
|
|
471
|
-
(0,
|
|
470
|
+
(0, import_vue.provide)(import_use.CUSTOM_FIELD_INJECTION_KEY, {
|
|
472
471
|
customValue,
|
|
473
472
|
resetValidation,
|
|
474
473
|
validateWithTrigger
|
|
475
474
|
});
|
|
476
|
-
(0,
|
|
475
|
+
(0, import_vue.watch)(() => props.modelValue, () => {
|
|
477
476
|
updateValue(getModelValue());
|
|
478
477
|
resetValidation();
|
|
479
478
|
validateWithTrigger("onChange");
|
|
480
|
-
(0,
|
|
479
|
+
(0, import_vue.nextTick)(adjustTextareaSize);
|
|
481
480
|
});
|
|
482
|
-
(0,
|
|
481
|
+
(0, import_vue.onMounted)(() => {
|
|
483
482
|
updateValue(getModelValue(), props.formatTrigger);
|
|
484
|
-
(0,
|
|
483
|
+
(0, import_vue.nextTick)(adjustTextareaSize);
|
|
485
484
|
});
|
|
486
485
|
(0, import_use.useEventListener)("touchstart", onClear, {
|
|
487
|
-
target: (0,
|
|
486
|
+
target: (0, import_vue.computed)(() => {
|
|
488
487
|
var _a;
|
|
489
488
|
return (_a = clearIconRef.value) == null ? void 0 : _a.$el;
|
|
490
489
|
})
|
package/lib/field/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-field-value-border-radius: var(--zt-radius-md);--zt-field-input-text-color: var(--zt-text-color);--zt-field-input-disabled-text-color: var(--zt-gray-a4);--zt-field-placeholder-text-color: var(--zt-placeholder-color);--zt-field-clear-icon-color: var(--zt-gray-a6);--zt-field-left-icon-color: var(--zt-gray-a4);--zt-field-right-icon-color: var(--zt-gray-a4);--zt-field-password-icon-color: var(--zt-gray-a6);--zt-field-error-message-background-color: rgb(var(--zt-red-r), var(--zt-red-g), var(--zt-red-b), .1);--zt-field-error-message-color: var(--zt-red);--zt-field-description-background-color: var(--zt-gray-a04);--zt-field-description-color: var(--zt-gray-a6);--zt-field-description-border-color: var(--zt-gray-a2);--zt-field-text-area-min-height: 60px;--zt-field-word-limit-color: var(--zt-gray-a4);--zt-field-disabled-text-color: var(--zt-gray-a6);--zt-field-required-mark-color: var(--zt-red);--zt-field-required-mark-margin: 0 0 0 4px;--zt-field-caret-color: var(--zt-primary-color)}.zt-field--wraper{position:relative;background:var(--zt-background)}.zt-field--wraper>.zt-cell:after{display:none}.zt-field--wraper .zt-field__bottom{padding:0 var(--zt-padding-md) var(--zt-padding-xs)}.zt-field--wraper:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-field__label{flex:none;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.zt-field__label--center{text-align:center}.zt-field__label--right{text-align:right}.zt-field__label--required:after{margin:var(--zt-field-required-mark-margin);color:var(--zt-field-required-mark-color);content:"*";font-weight:var(--zt-font-bold);line-height:var(--zt-line-height-md)}.zt-field--disabled .zt-field__label{color:var(--zt-field-disabled-text-color)}.zt-field--disabled .zt-cell__value--vertical,.zt-field--readonly .zt-cell__value--vertical{background:var(--zt-gray-a04)}.zt-field__value{display:block;overflow:visible;border-radius:var(--zt-field-value-border-radius)}.zt-field__body{width:100%;display:flex;align-items:center}.zt-field__body input,.zt-field__body textarea{caret-color:var(--zt-field-caret-color)}.zt-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--zt-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;user-select:auto}.zt-field__control::-
|
|
1
|
+
:root{--zt-field-value-border-radius: var(--zt-radius-md);--zt-field-input-text-color: var(--zt-text-color);--zt-field-input-disabled-text-color: var(--zt-gray-a4);--zt-field-placeholder-text-color: var(--zt-placeholder-color);--zt-field-clear-icon-color: var(--zt-gray-a6);--zt-field-left-icon-color: var(--zt-gray-a4);--zt-field-right-icon-color: var(--zt-gray-a4);--zt-field-password-icon-color: var(--zt-gray-a6);--zt-field-error-message-background-color: rgb(var(--zt-red-r), var(--zt-red-g), var(--zt-red-b), .1);--zt-field-error-message-color: var(--zt-red);--zt-field-description-background-color: var(--zt-gray-a04);--zt-field-description-color: var(--zt-gray-a6);--zt-field-description-border-color: var(--zt-gray-a2);--zt-field-text-area-min-height: 60px;--zt-field-word-limit-color: var(--zt-gray-a4);--zt-field-disabled-text-color: var(--zt-gray-a6);--zt-field-required-mark-color: var(--zt-red);--zt-field-required-mark-margin: 0 0 0 4px;--zt-field-caret-color: var(--zt-primary-color)}.zt-field--wraper{position:relative;background:var(--zt-background)}.zt-field--wraper>.zt-cell:after{display:none}.zt-field--wraper .zt-field__bottom{padding:0 var(--zt-padding-md) var(--zt-padding-xs)}.zt-field--wraper:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:var(--zt-padding-md);border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-field__label{flex:none;box-sizing:border-box;word-wrap:break-word;overflow:hidden}.zt-field__label--center{text-align:center}.zt-field__label--right{text-align:right}.zt-field__label--required:after{margin:var(--zt-field-required-mark-margin);color:var(--zt-field-required-mark-color);content:"*";font-weight:var(--zt-font-bold);line-height:var(--zt-line-height-md)}.zt-field--disabled .zt-field__label{color:var(--zt-field-disabled-text-color)}.zt-field--disabled .zt-cell__value--vertical,.zt-field--readonly .zt-cell__value--vertical{background:var(--zt-gray-a04)}.zt-field__value{display:block;overflow:visible;border-radius:var(--zt-field-value-border-radius)}.zt-field__body{width:100%;display:flex;align-items:center}.zt-field__body input,.zt-field__body textarea{caret-color:var(--zt-field-caret-color)}.zt-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--zt-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.zt-field__control::-moz-placeholder{color:var(--zt-field-placeholder-text-color)}.zt-field__control::placeholder{color:var(--zt-field-placeholder-text-color)}.zt-field__control:disabled{color:var(--zt-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--zt-field-input-disabled-text-color)}.zt-field__control:-moz-read-only{cursor:default}.zt-field__control:read-only{cursor:default}.zt-field__control--center{justify-content:center;text-align:center}.zt-field__control--right{justify-content:flex-end;text-align:right}.zt-field__control--custom{display:flex;align-items:center;min-height:var(--zt-line-height-md)}.zt-field__control--min-height{min-height:var(--zt-field-text-area-min-height)}.zt-field__control[type=date],.zt-field__control[type=time],.zt-field__control[type=datetime-local]{min-height:var(--zt-line-height-md)}.zt-field__control[type=search]{-webkit-appearance:none}.zt-field__clear,.zt-field__icon,.zt-field__button,.zt-field__right-icon{flex-shrink:0}.zt-field__clear,.zt-field__right-icon{margin-right:calc(var(--zt-padding-xs) * -1);padding:0 var(--zt-padding-xs);line-height:inherit}.zt-field__clear{color:var(--zt-field-clear-icon-color);font-size:var(--zt-font-size-xxl);cursor:pointer}.zt-field__left-icon .zt-icon,.zt-field__right-icon .zt-icon{display:block;font-size:var(--zt-font-size-xxl)}.zt-field__left-icon{color:var(--zt-field-left-icon-color);margin-right:var(--zt-padding-base);display:flex;align-items:center}.zt-field__right-icon{color:var(--zt-field-right-icon-color)}.zt-field__button{padding-left:var(--zt-padding-xs)}.zt-field__error-message{background:var(--zt-field-error-message-background-color);border-radius:0 0 var(--zt-radius-md) var(--zt-radius-md);padding:var(--zt-padding-xs);font-size:var(--zt-font-size-sm);color:var(--zt-field-error-message-color);letter-spacing:0;line-height:var(--zt-line-height-sm);position:relative}.zt-field__error-message:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:0;border-top:1px solid var(--zt-field-error-message-color);transform:scaleY(.5)}.zt-field__error-message--center{text-align:center}.zt-field__error-message--right{text-align:right}.zt-field__word-limit{margin-top:var(--zt-padding-md);color:var(--zt-field-word-limit-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md)}.zt-field__word-num--exceed{color:var(--zt-field-error-message-color)}.zt-field--error-message .zt-cell__value,.zt-field--error .zt-cell__value,.zt-field--description .zt-cell__value{border-bottom-left-radius:0;border-bottom-right-radius:0}.zt-field__bottom{border-radius:0 0 var(--zt-radius-md) var(--zt-radius-md)}.zt-field--error-message .zt-field__label,.zt-field--error .zt-field__label{color:var(--zt-field-error-message-color)}.zt-field--error-message.zt-field--description .zt-field__error-message,.zt-field--error.zt-field--description .zt-field__error-message{border-radius:0}.zt-field__description{background:var(--zt-field-description-background-color);border-radius:0 0 var(--zt-radius-md) var(--zt-radius-md);padding:var(--zt-padding-xs);font-size:var(--zt-font-size-sm);color:var(--zt-field-description-color);letter-spacing:0;line-height:var(--zt-line-height-sm);position:relative}.zt-field__description:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:0;border-top:1px solid var(--zt-field-description-border-color);transform:scaleY(.5)}.zt-field__password{width:100%;display:flex;justify-content:space-between;align-items:center}.zt-field__password .zt-icon{color:var(--zt-field-password-icon-color);font-size:var(--zt-font-size-xxl)}.zt-field--is-link .zt-field__value{display:flex}.zt-theme-dark{--zt-field-left-icon-color: var(--zt-gray)}
|