zartui 3.0.6 → 3.0.8
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/es/button/Button.d.ts +3 -0
- package/es/button/Button.mjs +2 -0
- package/es/button/index.d.ts +2 -0
- package/es/calendar/Calendar.d.ts +23 -33
- package/es/calendar/Calendar.mjs +124 -31
- package/es/calendar/CalendarDay.mjs +1 -1
- package/es/calendar/CalendarHeader.d.ts +15 -1
- package/es/calendar/CalendarHeader.mjs +106 -4
- package/es/calendar/CalendarMonth.d.ts +23 -24
- package/es/calendar/CalendarMonth.mjs +49 -8
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +15 -22
- package/es/calendar/types.d.ts +3 -1
- package/es/calendar/utils.d.ts +4 -1
- package/es/calendar/utils.mjs +23 -3
- package/es/cascader/Cascader.mjs +1 -3
- package/es/cascader/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.d.ts +2 -2
- package/es/checkbox/index.d.ts +1 -1
- package/es/collapse-item/CollapseItem.mjs +3 -1
- package/es/date-time-picker/DateTimePicker.d.ts +1 -1
- package/es/date-time-picker/DateTimePicker.mjs +9 -3
- 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 +4 -0
- package/es/dialog/Dialog.mjs +24 -9
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +3 -0
- package/es/dialog/types.d.ts +1 -0
- package/es/divider/index.css +1 -1
- package/es/dropdown-item/DropdownItem.mjs +7 -4
- package/es/dropdown-menu/DropdownMenu.mjs +2 -2
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/empty/Images.mjs +9 -9
- package/es/empty/index.css +1 -1
- package/es/field/Field.d.ts +3 -0
- package/es/field/Field.mjs +2 -1
- package/es/field/index.d.ts +2 -0
- package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
- package/es/hierarchy-select/Breadcrumb.mjs +56 -0
- package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
- package/es/hierarchy-select/HierarchySelect.mjs +221 -0
- package/es/hierarchy-select/index.css +1 -0
- package/es/hierarchy-select/index.d.ts +79 -0
- package/es/hierarchy-select/index.mjs +8 -0
- package/es/hierarchy-select/style/index.d.ts +1 -0
- package/es/hierarchy-select/style/index.mjs +8 -0
- package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
- package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
- package/es/hierarchy-select/types.d.ts +7 -0
- package/es/hierarchy-select/types.mjs +0 -0
- package/es/icon/config.mjs +4 -1
- package/es/icon/index.css +1 -1
- package/es/image-preview/ImagePreview.mjs +1 -1
- package/es/index-anchor/IndexAnchor.d.ts +11 -0
- package/es/index-anchor/IndexAnchor.mjs +88 -0
- package/es/index-anchor/index.css +1 -0
- package/es/index-anchor/index.d.ts +14 -0
- package/es/index-anchor/index.mjs +10 -0
- package/es/index-anchor/style/index.d.ts +1 -0
- package/es/index-anchor/style/index.mjs +3 -0
- package/es/index-anchor/types.d.ts +11 -0
- package/es/index-anchor/types.mjs +0 -0
- package/es/index-bar/IndexBar.d.ts +64 -0
- package/es/index-bar/IndexBar.mjs +275 -0
- package/es/index-bar/index.css +1 -0
- package/es/index-bar/index.d.ts +50 -0
- package/es/index-bar/index.mjs +10 -0
- package/es/index-bar/style/index.d.ts +1 -0
- package/es/index-bar/style/index.mjs +2 -0
- package/es/index-bar/types.d.ts +16 -0
- package/es/index-bar/types.mjs +0 -0
- package/es/index.d.ts +8 -1
- package/es/index.mjs +22 -1
- package/es/lazyload/vue-lazyload/index.mjs +5 -0
- package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
- package/es/lazyload/vue-lazyload/listener.mjs +45 -0
- package/es/list/List.mjs +2 -4
- package/es/list/index.css +1 -1
- package/es/locale/lang/en-US.d.ts +7 -23
- package/es/locale/lang/en-US.mjs +7 -23
- package/es/locale/lang/zh-CN.d.ts +7 -23
- package/es/locale/lang/zh-CN.mjs +7 -23
- package/es/media-picker/MediaPicker.mjs +20 -0
- package/es/media-picker/image/PickFileIcon.mjs +1 -1
- package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
- package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
- package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
- package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/util/media-util.mjs +3 -0
- package/es/media-picker/watermark/image-processor.mjs +10 -6
- package/es/media-picker/watermark/resize-options.mjs +1 -0
- package/es/media-picker/watermark/watermark.mjs +4 -0
- package/es/multiple-picker/MultiplePicker.d.ts +4 -4
- package/es/multiple-picker/MultiplePicker.mjs +3 -3
- package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
- package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
- package/es/multiple-picker/index.d.ts +3 -3
- package/es/notice-bar/index.css +1 -1
- package/es/overlay/index.d.ts +1 -1
- package/es/picker/Picker.mjs +7 -4
- package/es/picker/PickerToolbar.mjs +1 -0
- package/es/popover/Popover.d.ts +13 -0
- package/es/popover/Popover.mjs +99 -4
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +9 -0
- package/es/popup/Popup.mjs +1 -0
- package/es/popup/index.css +1 -1
- package/es/popup/shared.mjs +12 -0
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/search/Search.d.ts +1 -1
- package/es/search/Search.mjs +1 -0
- package/es/search/index.d.ts +1 -1
- package/es/signature/Signature.mjs +13 -10
- package/es/signature/index.css +1 -1
- package/es/step/Step.mjs +10 -6
- package/es/step/index.css +1 -1
- package/es/stepper/Stepper.mjs +2 -0
- package/es/stepper/index.css +1 -1
- package/es/steps/index.css +1 -1
- package/es/sticky/Sticky.mjs +2 -0
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/Swipe.d.ts +3 -1
- package/es/swipe/Swipe.mjs +19 -2
- package/es/swipe/index.d.ts +3 -1
- package/es/swipe-cell/SwipeCell.d.ts +44 -0
- package/es/swipe-cell/SwipeCell.mjs +163 -0
- package/es/swipe-cell/index.css +1 -0
- package/es/swipe-cell/index.d.ts +39 -0
- package/es/swipe-cell/index.mjs +10 -0
- package/es/swipe-cell/style/index.d.ts +1 -0
- package/es/swipe-cell/style/index.mjs +2 -0
- package/es/swipe-cell/types.d.ts +9 -0
- package/es/swipe-cell/types.mjs +0 -0
- package/es/switch/index.css +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/table/Table.d.ts +118 -0
- package/es/table/Table.mjs +209 -0
- package/es/table/index.css +1 -0
- package/es/table/index.d.ts +77 -0
- package/es/table/index.mjs +10 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.mjs +4 -0
- package/es/table/types.d.ts +5 -0
- package/es/table/types.mjs +8 -0
- package/es/tabs/Tabs.mjs +2 -0
- package/es/tabs/index.css +1 -1
- package/es/tag/Tag.d.ts +21 -1
- package/es/tag/Tag.mjs +63 -10
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +15 -1
- package/es/tag/style/index.mjs +1 -0
- package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
- package/es/text-ellipsis/TextEllipsis.mjs +118 -0
- package/es/text-ellipsis/index.css +1 -0
- package/es/text-ellipsis/index.d.ts +60 -0
- package/es/text-ellipsis/index.mjs +10 -0
- package/es/text-ellipsis/style/index.d.ts +1 -0
- package/es/text-ellipsis/style/index.mjs +2 -0
- package/es/text-ellipsis/types.d.ts +3 -0
- package/es/text-ellipsis/types.mjs +0 -0
- package/es/timeline/Timeline.d.ts +113 -0
- package/es/timeline/Timeline.mjs +162 -0
- package/es/timeline/index.css +1 -0
- package/es/timeline/index.d.ts +75 -0
- package/es/timeline/index.mjs +10 -0
- package/es/timeline/style/index.d.ts +1 -0
- package/es/timeline/style/index.mjs +4 -0
- 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/uploader/utils.mjs +1 -1
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.mjs +11 -0
- package/lib/action-sheet/index.js +4 -0
- package/lib/avatar/Avatar.js +4 -0
- package/lib/avatar/index.js +4 -0
- package/lib/badge/index.js +4 -0
- package/lib/button/Button.d.ts +3 -0
- package/lib/button/Button.js +2 -0
- package/lib/button/index.d.ts +2 -0
- package/lib/button/index.js +4 -0
- package/lib/calendar/Calendar.d.ts +23 -33
- package/lib/calendar/Calendar.js +127 -30
- package/lib/calendar/CalendarDay.js +1 -1
- package/lib/calendar/CalendarHeader.d.ts +15 -1
- package/lib/calendar/CalendarHeader.js +106 -4
- package/lib/calendar/CalendarMonth.d.ts +23 -24
- package/lib/calendar/CalendarMonth.js +52 -7
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +15 -22
- package/lib/calendar/index.js +4 -0
- package/lib/calendar/types.d.ts +3 -1
- package/lib/calendar/utils.d.ts +4 -1
- package/lib/calendar/utils.js +23 -3
- package/lib/cascader/Cascader.js +5 -3
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.js +4 -0
- package/lib/cell/index.js +4 -0
- package/lib/cell-group/index.js +4 -0
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checkbox.js +4 -0
- package/lib/checkbox/Checker.d.ts +2 -2
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +4 -0
- package/lib/checkbox-group/index.js +4 -0
- package/lib/col/index.js +4 -0
- package/lib/collapse/index.js +4 -0
- package/lib/collapse-item/CollapseItem.js +7 -1
- package/lib/collapse-item/index.js +4 -0
- package/lib/config-provider/index.js +4 -0
- package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
- package/lib/date-time-picker/DateTimePicker.js +13 -3
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
- package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
- package/lib/date-time-picker/index.d.ts +1 -1
- package/lib/date-time-picker/index.js +4 -0
- package/lib/dialog/Dialog.d.ts +4 -0
- package/lib/dialog/Dialog.js +24 -9
- package/lib/dialog/function-call.js +4 -0
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +3 -0
- package/lib/dialog/index.js +4 -0
- package/lib/dialog/types.d.ts +1 -0
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.js +4 -0
- package/lib/dropdown-item/DropdownItem.js +6 -3
- package/lib/dropdown-item/index.js +4 -0
- package/lib/dropdown-menu/DropdownMenu.js +6 -2
- package/lib/dropdown-menu/index.js +4 -0
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/empty/Images.js +9 -9
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.js +4 -0
- package/lib/field/Field.d.ts +3 -0
- package/lib/field/Field.js +2 -1
- package/lib/field/index.d.ts +2 -0
- package/lib/field/index.js +4 -0
- package/lib/form/index.js +4 -0
- package/lib/grid/index.js +4 -0
- package/lib/grid-item/index.js +4 -0
- package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
- package/lib/hierarchy-select/Breadcrumb.js +85 -0
- package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
- package/lib/hierarchy-select/HierarchySelect.js +250 -0
- package/lib/hierarchy-select/index.css +1 -0
- package/lib/hierarchy-select/index.d.ts +79 -0
- package/lib/hierarchy-select/index.js +37 -0
- package/lib/hierarchy-select/style/index.d.ts +1 -0
- package/lib/hierarchy-select/style/index.js +8 -0
- package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
- package/lib/hierarchy-select/svg/SubIcon.js +52 -0
- package/lib/hierarchy-select/types.d.ts +7 -0
- package/lib/hierarchy-select/types.js +15 -0
- package/lib/icon/config.js +4 -1
- package/lib/icon/index.css +1 -1
- package/lib/icon/index.js +4 -0
- package/lib/image/index.js +4 -0
- package/lib/image-preview/ImagePreview.js +5 -1
- package/lib/image-preview/function-call.js +4 -0
- package/lib/image-preview/index.js +4 -0
- package/lib/index-anchor/IndexAnchor.d.ts +11 -0
- package/lib/index-anchor/IndexAnchor.js +107 -0
- package/lib/index-anchor/index.css +1 -0
- package/lib/index-anchor/index.d.ts +14 -0
- package/lib/index-anchor/index.js +39 -0
- package/lib/index-anchor/style/index.d.ts +1 -0
- package/lib/index-anchor/style/index.js +3 -0
- package/lib/index-anchor/types.d.ts +11 -0
- package/lib/index-anchor/types.js +15 -0
- package/lib/index-bar/IndexBar.d.ts +64 -0
- package/lib/index-bar/IndexBar.js +294 -0
- package/lib/index-bar/index.css +1 -0
- package/lib/index-bar/index.d.ts +50 -0
- package/lib/index-bar/index.js +39 -0
- package/lib/index-bar/style/index.d.ts +1 -0
- package/lib/index-bar/style/index.js +2 -0
- package/lib/index-bar/types.d.ts +16 -0
- package/lib/index-bar/types.js +15 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +22 -1
- package/lib/lazyload/vue-lazyload/index.js +9 -0
- package/lib/lazyload/vue-lazyload/lazy.js +85 -0
- package/lib/lazyload/vue-lazyload/listener.js +45 -0
- package/lib/list/List.js +2 -4
- package/lib/list/index.css +1 -1
- package/lib/list/index.js +4 -0
- package/lib/loading/index.js +4 -0
- package/lib/locale/index.js +4 -0
- package/lib/locale/lang/en-US.d.ts +7 -23
- package/lib/locale/lang/en-US.js +7 -23
- package/lib/locale/lang/zh-CN.d.ts +7 -23
- package/lib/locale/lang/zh-CN.js +7 -23
- package/lib/media-picker/MediaPicker.js +24 -0
- package/lib/media-picker/image/PickFileIcon.js +1 -1
- package/lib/media-picker/image/PickPhotoIcon.js +1 -1
- package/lib/media-picker/image/TakeAudioIcon.js +1 -1
- package/lib/media-picker/image/TakePhotoIcon.js +1 -1
- package/lib/media-picker/image/TakeVideoIcon.js +1 -1
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.js +4 -0
- package/lib/media-picker/util/media-util.js +3 -0
- package/lib/media-picker/watermark/image-processor.js +10 -6
- package/lib/media-picker/watermark/resize-options.js +1 -0
- package/lib/media-picker/watermark/watermark.js +4 -0
- package/lib/media-player/MediaPlayer.js +4 -0
- package/lib/media-player/index.js +4 -0
- package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
- package/lib/multiple-picker/MultiplePicker.js +7 -3
- package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
- package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
- package/lib/multiple-picker/index.d.ts +3 -3
- package/lib/multiple-picker/index.js +4 -0
- package/lib/nav-bar/index.js +4 -0
- package/lib/notice-bar/NoticeBar.js +4 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.js +4 -0
- package/lib/notify/function-call.js +4 -0
- package/lib/notify/index.js +4 -0
- package/lib/number-keyboard/NumberKeyboard.js +4 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
- package/lib/number-keyboard/index.js +4 -0
- package/lib/overlay/index.d.ts +1 -1
- package/lib/overlay/index.js +4 -0
- package/lib/password-input/index.js +4 -0
- package/lib/picker/Picker.js +10 -3
- package/lib/picker/PickerToolbar.js +1 -0
- package/lib/picker/index.js +4 -0
- package/lib/popover/Popover.d.ts +13 -0
- package/lib/popover/Popover.js +98 -3
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +9 -0
- package/lib/popover/index.js +4 -0
- package/lib/popup/Popup.js +1 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.js +4 -0
- package/lib/popup/shared.js +12 -0
- package/lib/pull-refresh/index.js +4 -0
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/Radio.js +4 -0
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/index.js +4 -0
- package/lib/radio-group/index.js +4 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +4 -0
- package/lib/row/index.js +4 -0
- package/lib/search/Search.d.ts +1 -1
- package/lib/search/Search.js +1 -0
- package/lib/search/index.d.ts +1 -1
- package/lib/search/index.js +4 -0
- package/lib/signature/Signature.js +16 -9
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.js +4 -0
- package/lib/skeleton/index.js +4 -0
- package/lib/step/Step.js +10 -6
- package/lib/step/index.css +1 -1
- package/lib/step/index.js +4 -0
- package/lib/stepper/Stepper.js +6 -0
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.js +4 -0
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.js +4 -0
- package/lib/sticky/Sticky.js +2 -0
- package/lib/sticky/index.js +4 -0
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/Swipe.d.ts +3 -1
- package/lib/swipe/Swipe.js +19 -2
- package/lib/swipe/index.d.ts +3 -1
- package/lib/swipe/index.js +4 -0
- package/lib/swipe-cell/SwipeCell.d.ts +44 -0
- package/lib/swipe-cell/SwipeCell.js +182 -0
- package/lib/swipe-cell/index.css +1 -0
- package/lib/swipe-cell/index.d.ts +39 -0
- package/lib/swipe-cell/index.js +39 -0
- package/lib/swipe-cell/style/index.d.ts +1 -0
- package/lib/swipe-cell/style/index.js +2 -0
- package/lib/swipe-cell/types.d.ts +9 -0
- package/lib/swipe-cell/types.js +15 -0
- package/lib/swipe-item/index.js +4 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.js +4 -0
- package/lib/tab/index.js +4 -0
- package/lib/tabbar/index.js +4 -0
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.js +4 -0
- package/lib/table/Table.d.ts +118 -0
- package/lib/table/Table.js +228 -0
- package/lib/table/index.css +1 -0
- package/lib/table/index.d.ts +77 -0
- package/lib/table/index.js +39 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/table/style/index.js +4 -0
- package/lib/table/types.d.ts +5 -0
- package/lib/table/types.js +27 -0
- package/lib/tabs/Tabs.js +6 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.js +4 -0
- package/lib/tag/Tag.d.ts +21 -1
- package/lib/tag/Tag.js +73 -10
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +15 -1
- package/lib/tag/index.js +4 -0
- package/lib/tag/style/index.js +1 -0
- package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
- package/lib/text-ellipsis/TextEllipsis.js +137 -0
- package/lib/text-ellipsis/index.css +1 -0
- package/lib/text-ellipsis/index.d.ts +60 -0
- package/lib/text-ellipsis/index.js +39 -0
- package/lib/text-ellipsis/style/index.d.ts +1 -0
- package/lib/text-ellipsis/style/index.js +2 -0
- package/lib/text-ellipsis/types.d.ts +3 -0
- package/lib/text-ellipsis/types.js +15 -0
- package/lib/time-picker/TimePicker.js +4 -0
- package/lib/time-picker/TimePickerColumn.js +4 -0
- package/lib/time-picker/index.js +4 -0
- package/lib/timeline/Timeline.d.ts +113 -0
- package/lib/timeline/Timeline.js +191 -0
- package/lib/timeline/index.css +1 -0
- package/lib/timeline/index.d.ts +75 -0
- package/lib/timeline/index.js +39 -0
- package/lib/timeline/style/index.d.ts +1 -0
- package/lib/timeline/style/index.js +4 -0
- package/lib/toast/function-call.js +4 -0
- package/lib/toast/index.js +4 -0
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/Uploader.js +4 -0
- package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/index.js +4 -0
- package/lib/uploader/utils.js +1 -1
- package/lib/utils/create.js +4 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/dom.js +11 -0
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +3054 -1076
- package/lib/zartui.es.js +3102 -1124
- package/lib/zartui.js +3817 -1303
- package/lib/zartui.min.js +1 -1
- package/package.json +18 -17
|
@@ -10,6 +10,7 @@ const DEFAULT_JPEG_QUALITY = 0.8;
|
|
|
10
10
|
const MIN_JPEG_QUALITY = 0.1;
|
|
11
11
|
const JPEG_QUALITY_STEP = 0.05;
|
|
12
12
|
class ImageProcessor {
|
|
13
|
+
// 压缩图片的配置
|
|
13
14
|
constructor(file, resizeOptions, watermarkOptions, compressOptions) {
|
|
14
15
|
this.file = file;
|
|
15
16
|
this.resizeOptions = resizeOptions;
|
|
@@ -38,12 +39,15 @@ class ImageProcessor {
|
|
|
38
39
|
fileType = "image/png";
|
|
39
40
|
}
|
|
40
41
|
return file2Image(this.file).then(
|
|
41
|
-
(img) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
(img) => (
|
|
43
|
+
// 第一步 resize image
|
|
44
|
+
resize(img, {
|
|
45
|
+
inputType: fileType,
|
|
46
|
+
orientation,
|
|
47
|
+
sideLengthLimit: this.resizeOptions.maxSideLength,
|
|
48
|
+
resultType: "canvas"
|
|
49
|
+
})
|
|
50
|
+
)
|
|
47
51
|
).then((result) => {
|
|
48
52
|
const canvas = result;
|
|
49
53
|
return renderWatermark(canvas, this.watermarkOptions);
|
|
@@ -35,7 +35,7 @@ declare const multiplePickerProps: {
|
|
|
35
35
|
type: import("vue").PropType<string>;
|
|
36
36
|
default: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
textKey: {
|
|
39
39
|
type: import("vue").PropType<string>;
|
|
40
40
|
default: string;
|
|
41
41
|
};
|
|
@@ -84,7 +84,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
type: import("vue").PropType<string>;
|
|
85
85
|
default: string;
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
textKey: {
|
|
88
88
|
type: import("vue").PropType<string>;
|
|
89
89
|
default: string;
|
|
90
90
|
};
|
|
@@ -131,7 +131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
131
|
type: import("vue").PropType<string>;
|
|
132
132
|
default: string;
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
textKey: {
|
|
135
135
|
type: import("vue").PropType<string>;
|
|
136
136
|
default: string;
|
|
137
137
|
};
|
|
@@ -159,7 +159,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
159
|
showToolbar: boolean;
|
|
160
160
|
toolbarPosition: string;
|
|
161
161
|
showPicker: boolean;
|
|
162
|
-
|
|
162
|
+
textKey: string;
|
|
163
163
|
itemHeight: string | number;
|
|
164
164
|
columnCounts: number;
|
|
165
165
|
selectedIndex: number[];
|
|
@@ -21,7 +21,7 @@ const multiplePickerProps = {
|
|
|
21
21
|
showToolbar: truthProp,
|
|
22
22
|
options: makeArrayProp(),
|
|
23
23
|
toolbarPosition: makeStringProp("bottom"),
|
|
24
|
-
|
|
24
|
+
textKey: makeStringProp("text"),
|
|
25
25
|
columnCounts: makeNumberProp(3),
|
|
26
26
|
selectedIndex: makeArrayProp([])
|
|
27
27
|
};
|
|
@@ -64,7 +64,7 @@ var stdin_default = defineComponent({
|
|
|
64
64
|
indexes == null ? void 0 : indexes.forEach((index) => {
|
|
65
65
|
if (index > -1 && index < props.options.length && props.options[index]) {
|
|
66
66
|
result.push({
|
|
67
|
-
|
|
67
|
+
[props.textKey]: props.options[index][props.textKey],
|
|
68
68
|
value: props.options[index].value,
|
|
69
69
|
initialIndex: index
|
|
70
70
|
});
|
|
@@ -136,7 +136,7 @@ var stdin_default = defineComponent({
|
|
|
136
136
|
"columnCounts": props.columnCounts,
|
|
137
137
|
"initialOptions": formatOptions,
|
|
138
138
|
"allowHtml": props.allowHtml,
|
|
139
|
-
"
|
|
139
|
+
"textKey": props.textKey,
|
|
140
140
|
"readonly": props.readonly,
|
|
141
141
|
"itemHeight": Number(itemPxHeight),
|
|
142
142
|
"onChange": onChange
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
declare const multiplePickerOptionsProps: {
|
|
3
|
-
|
|
3
|
+
textKey: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
@@ -25,7 +25,7 @@ declare const multiplePickerOptionsProps: {
|
|
|
25
25
|
};
|
|
26
26
|
export declare type MultiplePickerOptionsProps = ExtractPropTypes<typeof multiplePickerOptionsProps>;
|
|
27
27
|
declare const _default: import("vue").DefineComponent<{
|
|
28
|
-
|
|
28
|
+
textKey: {
|
|
29
29
|
type: import("vue").PropType<string>;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
48
|
default: () => number[];
|
|
49
49
|
};
|
|
50
50
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:currentIndexes")[], "change" | "update:currentIndexes", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
51
|
-
|
|
51
|
+
textKey: {
|
|
52
52
|
type: import("vue").PropType<string>;
|
|
53
53
|
default: string;
|
|
54
54
|
};
|
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
}, {
|
|
77
77
|
readonly: boolean;
|
|
78
78
|
allowHtml: boolean;
|
|
79
|
-
|
|
79
|
+
textKey: string;
|
|
80
80
|
itemHeight: number;
|
|
81
81
|
columnCounts: number;
|
|
82
82
|
initialOptions: object[];
|
|
@@ -4,7 +4,7 @@ import { createNamespace, isObject, makeArrayProp, makeNumberProp, makeStringPro
|
|
|
4
4
|
import { useExpose } from "../composables/use-expose.mjs";
|
|
5
5
|
const [name, bem] = createNamespace("multiple-picker-options");
|
|
6
6
|
const multiplePickerOptionsProps = {
|
|
7
|
-
|
|
7
|
+
textKey: makeStringProp(""),
|
|
8
8
|
readonly: Boolean,
|
|
9
9
|
allowHtml: Boolean,
|
|
10
10
|
itemHeight: makeNumberProp(0),
|
|
@@ -44,8 +44,8 @@ var stdin_default = defineComponent({
|
|
|
44
44
|
emit("change");
|
|
45
45
|
};
|
|
46
46
|
const getOptionText = (option) => {
|
|
47
|
-
if (isObject(option) && props.
|
|
48
|
-
return option[props.
|
|
47
|
+
if (isObject(option) && props.textKey in option) {
|
|
48
|
+
return option[props.textKey];
|
|
49
49
|
}
|
|
50
50
|
return option;
|
|
51
51
|
};
|
|
@@ -34,7 +34,7 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
|
|
|
34
34
|
type: import("vue").PropType<string>;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
textKey: {
|
|
38
38
|
type: import("vue").PropType<string>;
|
|
39
39
|
default: string;
|
|
40
40
|
};
|
|
@@ -81,7 +81,7 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
|
|
|
81
81
|
type: import("vue").PropType<string>;
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
textKey: {
|
|
85
85
|
type: import("vue").PropType<string>;
|
|
86
86
|
default: string;
|
|
87
87
|
};
|
|
@@ -109,7 +109,7 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
|
|
|
109
109
|
showToolbar: boolean;
|
|
110
110
|
toolbarPosition: string;
|
|
111
111
|
showPicker: boolean;
|
|
112
|
-
|
|
112
|
+
textKey: string;
|
|
113
113
|
itemHeight: string | number;
|
|
114
114
|
columnCounts: number;
|
|
115
115
|
selectedIndex: number[];
|
package/es/notice-bar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-notice-bar-height: 36px;--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange-2);--zt-notice-bar-font-size: var(--zt-font-size-md);--zt-notice-bar-line-height: 36px;--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-notice-bar-font-size);line-height:var(--zt-notice-bar-line-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-height)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}
|
|
1
|
+
:root{--zt-notice-bar-height: 36px;--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange-2);--zt-notice-bar-font-size: var(--zt-font-size-md);--zt-notice-bar-line-height: 36px;--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-notice-bar-font-size);line-height:var(--zt-notice-bar-line-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-height)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}.zt-theme-dark{--zt-notice-bar-background: rgba(255, 245, 211, .1)}
|
package/es/overlay/index.d.ts
CHANGED
package/es/picker/Picker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
|
2
|
-
import { ref, watch, computed, defineComponent } from "vue";
|
|
2
|
+
import { ref, watch, computed, defineComponent, nextTick } from "vue";
|
|
3
3
|
import { pick, extend, unitToPx, truthProp, HAPTICS_FEEDBACK, isSameValue, makeArrayProp, preventDefault, makeStringProp, makeNumericProp } from "../utils/index.mjs";
|
|
4
4
|
import { bem, name, isOptionExist, getColumnsType, findOptionByValue, assignDefaultFields, formatCascadeColumns, getFirstEnabledOption } from "./utils.mjs";
|
|
5
5
|
import { useChildren, useEventListener } from "@zartui/use";
|
|
@@ -94,9 +94,11 @@ var stdin_default = defineComponent({
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
nextTick(() => {
|
|
98
|
+
emit("change", extend({
|
|
99
|
+
columnIndex
|
|
100
|
+
}, getEventParams()));
|
|
101
|
+
});
|
|
100
102
|
};
|
|
101
103
|
const onClickOption = (currentOption, columnIndex) => emit("clickOption", extend({
|
|
102
104
|
columnIndex,
|
|
@@ -194,6 +196,7 @@ var stdin_default = defineComponent({
|
|
|
194
196
|
watch(() => props.modelValue, (newValues) => {
|
|
195
197
|
if (!isSameValue(newValues, selectedValues.value) && !isSameValue(newValues, lastEmittedModelValue)) {
|
|
196
198
|
selectedValues.value = newValues.slice(0);
|
|
199
|
+
lastEmittedModelValue = newValues.slice(0);
|
|
197
200
|
}
|
|
198
201
|
}, {
|
|
199
202
|
deep: true
|
|
@@ -5,6 +5,7 @@ import { createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
|
|
|
5
5
|
import { Button } from "../button/index.mjs";
|
|
6
6
|
const [name] = createNamespace("picker-toolbar");
|
|
7
7
|
const pickerToolbarProps = {
|
|
8
|
+
// title: String,
|
|
8
9
|
cancelButtonText: String,
|
|
9
10
|
confirmButtonText: String
|
|
10
11
|
};
|
package/es/popover/Popover.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export declare const popoverProps: {
|
|
|
47
47
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
|
+
autoAdjustOverflow: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
50
54
|
};
|
|
51
55
|
export declare type PopoverProps = ExtractPropTypes<typeof popoverProps>;
|
|
52
56
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -96,6 +100,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
100
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
97
101
|
default: string;
|
|
98
102
|
};
|
|
103
|
+
autoAdjustOverflow: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
99
107
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
100
108
|
show: BooleanConstructor;
|
|
101
109
|
theme: {
|
|
@@ -143,6 +151,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
151
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
144
152
|
default: string;
|
|
145
153
|
};
|
|
154
|
+
autoAdjustOverflow: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
146
158
|
}>> & {
|
|
147
159
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
148
160
|
onTouchstart?: ((...args: any[]) => any) | undefined;
|
|
@@ -160,5 +172,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
172
|
trigger: PopoverTrigger;
|
|
161
173
|
showArrow: boolean;
|
|
162
174
|
placement: PopoverPlacement;
|
|
175
|
+
autoAdjustOverflow: boolean;
|
|
163
176
|
}>;
|
|
164
177
|
export default _default;
|
package/es/popover/Popover.mjs
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
|
+
var __async = (__this, __arguments, generator) => {
|
|
2
|
+
return new Promise((resolve, reject) => {
|
|
3
|
+
var fulfilled = (value) => {
|
|
4
|
+
try {
|
|
5
|
+
step(generator.next(value));
|
|
6
|
+
} catch (e) {
|
|
7
|
+
reject(e);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
var rejected = (value) => {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.throw(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
1
21
|
import { mergeProps as _mergeProps, Fragment as _Fragment, createVNode as _createVNode } from "vue";
|
|
2
22
|
import { ref, watch, nextTick, onMounted, watchEffect, onBeforeUnmount, defineComponent } from "vue";
|
|
23
|
+
import { arrow, computePosition, flip, offset, autoUpdate, hide, shift, limitShift } from "@floating-ui/vue";
|
|
3
24
|
import { createPopper, offsetModifier } from "@zartui/popperjs";
|
|
4
|
-
import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
25
|
+
import { pick, extend, inBrowser, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
5
26
|
import { useClickAway } from "@zartui/use";
|
|
6
27
|
import { Icon } from "../icon/index.mjs";
|
|
7
28
|
import { Popup } from "../popup/index.mjs";
|
|
@@ -29,6 +50,10 @@ const popoverProps = {
|
|
|
29
50
|
teleport: {
|
|
30
51
|
type: [String, Object],
|
|
31
52
|
default: "body"
|
|
53
|
+
},
|
|
54
|
+
autoAdjustOverflow: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
32
57
|
}
|
|
33
58
|
};
|
|
34
59
|
var stdin_default = defineComponent({
|
|
@@ -44,6 +69,7 @@ var stdin_default = defineComponent({
|
|
|
44
69
|
const popupRef = ref();
|
|
45
70
|
const wrapperRef = ref();
|
|
46
71
|
const popoverRef = ref();
|
|
72
|
+
const arrowRef = ref();
|
|
47
73
|
const getPopoverOptions = () => ({
|
|
48
74
|
placement: props.placement,
|
|
49
75
|
modifiers: [{
|
|
@@ -71,6 +97,10 @@ var stdin_default = defineComponent({
|
|
|
71
97
|
}
|
|
72
98
|
if (!popper) {
|
|
73
99
|
popper = createPopperInstance();
|
|
100
|
+
if (inBrowser) {
|
|
101
|
+
window.addEventListener("animationend", updateLocation);
|
|
102
|
+
window.addEventListener("transitionend", updateLocation);
|
|
103
|
+
}
|
|
74
104
|
} else {
|
|
75
105
|
popper.setOptions(getPopoverOptions());
|
|
76
106
|
}
|
|
@@ -139,15 +169,77 @@ var stdin_default = defineComponent({
|
|
|
139
169
|
"onClick": () => onClickAction(action, index)
|
|
140
170
|
}, [renderActionContent(action, index)]);
|
|
141
171
|
};
|
|
172
|
+
function update() {
|
|
173
|
+
return __async(this, null, function* () {
|
|
174
|
+
var _a;
|
|
175
|
+
if (wrapperRef.value && popupRef.value && arrowRef.value) {
|
|
176
|
+
const popoverEl = popupRef.value;
|
|
177
|
+
const wrapperEl = wrapperRef.value;
|
|
178
|
+
const {
|
|
179
|
+
x,
|
|
180
|
+
y,
|
|
181
|
+
placement: realPlacement,
|
|
182
|
+
middlewareData
|
|
183
|
+
} = yield computePosition(wrapperEl, popoverEl, {
|
|
184
|
+
placement: props.placement,
|
|
185
|
+
middleware: [offset(8), shift({
|
|
186
|
+
padding: 4,
|
|
187
|
+
crossAxis: false,
|
|
188
|
+
limiter: limitShift()
|
|
189
|
+
}), flip(), hide(), arrow({
|
|
190
|
+
element: arrowRef.value,
|
|
191
|
+
padding: 6
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
let popupTop = y;
|
|
195
|
+
const side = realPlacement.split("-")[0];
|
|
196
|
+
const arrowSide = {
|
|
197
|
+
top: "bottom",
|
|
198
|
+
right: "left",
|
|
199
|
+
bottom: "top",
|
|
200
|
+
left: "right"
|
|
201
|
+
}[side];
|
|
202
|
+
if (y < 0) {
|
|
203
|
+
popupTop = 0;
|
|
204
|
+
} else if (y > 0 && y + popoverEl.offsetHeight > document.body.clientHeight) {
|
|
205
|
+
popupTop = document.body.clientHeight - popoverEl.offsetHeight;
|
|
206
|
+
}
|
|
207
|
+
Object.assign(popupRef.value.style, {
|
|
208
|
+
left: `${x}px`,
|
|
209
|
+
top: `${popupTop}px`
|
|
210
|
+
});
|
|
211
|
+
popupRef.value.setAttribute("data-popper-placement", realPlacement);
|
|
212
|
+
const {
|
|
213
|
+
x: arrowX,
|
|
214
|
+
y: arrowY
|
|
215
|
+
} = (_a = middlewareData.arrow) != null ? _a : {};
|
|
216
|
+
Object.assign(arrowRef.value.style, {
|
|
217
|
+
left: arrowX != null ? `${arrowX}px` : "",
|
|
218
|
+
top: arrowY != null ? `${arrowY}px` : "",
|
|
219
|
+
margin: 0,
|
|
220
|
+
[arrowSide]: "calc(var(--zt-popover-arrow-size) * -1)"
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
142
225
|
onMounted(() => {
|
|
143
226
|
updateLocation();
|
|
144
227
|
watchEffect(() => {
|
|
145
228
|
var _a;
|
|
146
229
|
popupRef.value = (_a = popoverRef.value) == null ? void 0 : _a.popupRef.value;
|
|
230
|
+
if (wrapperRef.value && popupRef.value && props.autoAdjustOverflow) {
|
|
231
|
+
autoUpdate(wrapperRef.value, popupRef.value, update, {
|
|
232
|
+
elementResize: typeof ResizeObserver !== "undefined"
|
|
233
|
+
});
|
|
234
|
+
}
|
|
147
235
|
});
|
|
148
236
|
});
|
|
149
237
|
onBeforeUnmount(() => {
|
|
150
238
|
if (popper) {
|
|
239
|
+
if (inBrowser) {
|
|
240
|
+
window.removeEventListener("animationend", updateLocation);
|
|
241
|
+
window.removeEventListener("transitionend", updateLocation);
|
|
242
|
+
}
|
|
151
243
|
popper.destroy();
|
|
152
244
|
popper = null;
|
|
153
245
|
}
|
|
@@ -164,14 +256,17 @@ var stdin_default = defineComponent({
|
|
|
164
256
|
"onClick": onClickWrapper
|
|
165
257
|
}, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), _createVNode(Popup, _mergeProps({
|
|
166
258
|
"ref": popoverRef,
|
|
167
|
-
"class": bem([props.theme]),
|
|
259
|
+
"class": bem([props.theme, props.show ? "show" : "hidden"]),
|
|
168
260
|
"position": "",
|
|
169
261
|
"transition": "zt-popover-zoom",
|
|
170
262
|
"lockScroll": false,
|
|
171
263
|
"onUpdate:show": updateShow
|
|
172
|
-
}, attrs, pick(props, popupProps)
|
|
264
|
+
}, attrs, pick(props, popupProps), {
|
|
265
|
+
"show": true
|
|
266
|
+
}), {
|
|
173
267
|
default: () => [props.showArrow && _createVNode("div", {
|
|
174
|
-
"class": bem("arrow")
|
|
268
|
+
"class": bem("arrow"),
|
|
269
|
+
"ref": arrowRef
|
|
175
270
|
}, null), _createVNode("div", {
|
|
176
271
|
"role": "menu",
|
|
177
272
|
"class": bem("content")
|
package/es/popover/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-action-font-size: var(--zt-font-size-md);--zt-popover-action-line-height: var(--zt-line-height-md);--zt-popover-action-icon-size: 20px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-popover-action-font-size);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-popover-action-icon-size)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;
|
|
1
|
+
:root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-action-font-size: var(--zt-font-size-md);--zt-popover-action-line-height: var(--zt-line-height-md);--zt-popover-action-icon-size: 20px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-popover-action-font-size);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-popover-action-icon-size)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=top]{transform-origin:50% 100%}.zt-popover[data-popper-placement=top] .zt-popover__arrow{left:50%;transform:translate(-50%)}.zt-popover[data-popper-placement=top-start]{transform-origin:0 100%}.zt-popover[data-popper-placement=top-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=top-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover[data-popper-placement^=left] .zt-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=left]{transform-origin:100% 50%}.zt-popover[data-popper-placement=left] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=left-start]{transform-origin:100% 0}.zt-popover[data-popper-placement=left-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=left-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=right] .zt-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=right]{transform-origin:0 50%}.zt-popover[data-popper-placement=right] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=right-start]{transform-origin:0 0}.zt-popover[data-popper-placement=right-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=right-end]{transform-origin:0 100%}.zt-popover[data-popper-placement=right-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=bottom] .zt-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=bottom]{transform-origin:50% 0}.zt-popover[data-popper-placement=bottom] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.zt-popover[data-popper-placement=bottom-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.zt-popover[data-popper-placement=bottom-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover--light{display:none;color:var(--zt-popover-light-text-color)}.zt-popover--light .zt-popover__content{background:var(--zt-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.zt-popover--light .zt-popover__arrow{color:var(--zt-popover-light-background)}.zt-popover--light .zt-popover__action:active{background-color:var(--zt-active-color)}.zt-popover--light .zt-popover__action--selected{color:var(--zt-blue);cursor:not-allowed}.zt-popover--light .zt-popover__action--selected:active{background-color:transparent}.zt-popover--light .zt-popover__action--disabled{color:var(--zt-popover-light-action-disabled-text-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark{display:none;color:var(--zt-popover-dark-text-color)}.zt-popover--dark .zt-popover__content{background:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__arrow{color:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__action:active{background-color:rgba(0,0,0,.2)}.zt-popover--dark .zt-popover__action--disabled{color:var(--zt-popover-dark-action-disabled-text-color)}.zt-popover--dark .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark .zt-popover__action-text:after{border-color:var(--zt-gray-7)}.zt-popover--show{display:block}.zt-popover--hidden{display:none}.zt-popover-zoom-enter-from,.zt-popover-zoom-leave-active{transform:scale(.8);opacity:0}.zt-popover-zoom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popover-zoom-leave-active{transition-timing-function:var(--zt-ease-in)}
|
package/es/popover/index.d.ts
CHANGED
|
@@ -45,6 +45,10 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
|
45
45
|
type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
46
46
|
default: string;
|
|
47
47
|
};
|
|
48
|
+
autoAdjustOverflow: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
53
|
show: BooleanConstructor;
|
|
50
54
|
theme: {
|
|
@@ -92,6 +96,10 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
|
92
96
|
type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
93
97
|
default: string;
|
|
94
98
|
};
|
|
99
|
+
autoAdjustOverflow: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
95
103
|
}>> & {
|
|
96
104
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
97
105
|
onTouchstart?: ((...args: any[]) => any) | undefined;
|
|
@@ -109,6 +117,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
|
109
117
|
trigger: import("./types").PopoverTrigger;
|
|
110
118
|
showArrow: boolean;
|
|
111
119
|
placement: import("./types").PopoverPlacement;
|
|
120
|
+
autoAdjustOverflow: boolean;
|
|
112
121
|
}>>;
|
|
113
122
|
export default Popover;
|
|
114
123
|
export { popoverProps } from './Popover';
|
package/es/popup/Popup.mjs
CHANGED
|
@@ -21,6 +21,7 @@ const popupProps = extend({}, popupSharedProps, {
|
|
|
21
21
|
safeAreaInsetTop: Boolean,
|
|
22
22
|
safeAreaInsetBottom: Boolean,
|
|
23
23
|
sliderContentHeight: makeNumberProp(60),
|
|
24
|
+
// 控制滑动区域的高度,滑动区域最小高
|
|
24
25
|
minDragHeight: makeStringProp("40px"),
|
|
25
26
|
maxDragHeight: makeStringProp("85vh"),
|
|
26
27
|
slideable: Boolean
|
package/es/popup/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-size: 22px;--zt-popup-close-icon-color: var(--zt-gray-5);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
|
|
1
|
+
:root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-size: 22px;--zt-popup-close-icon-color: var(--zt-gray-5);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;left:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
|
package/es/popup/shared.mjs
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import { truthProp, unknownProp, numericProp } from "../utils/index.mjs";
|
|
2
2
|
const popupSharedProps = {
|
|
3
|
+
// whether to show popup
|
|
3
4
|
show: Boolean,
|
|
5
|
+
// z-index
|
|
4
6
|
zIndex: numericProp,
|
|
7
|
+
// whether to show overlay
|
|
5
8
|
overlay: truthProp,
|
|
9
|
+
// transition duration
|
|
6
10
|
duration: numericProp,
|
|
11
|
+
// teleport
|
|
7
12
|
teleport: [String, Object],
|
|
13
|
+
// prevent body scroll
|
|
8
14
|
lockScroll: truthProp,
|
|
15
|
+
// whether to lazy render
|
|
9
16
|
lazyRender: truthProp,
|
|
17
|
+
// callback function before close
|
|
10
18
|
beforeClose: Function,
|
|
19
|
+
// overlay custom style
|
|
11
20
|
overlayStyle: Object,
|
|
21
|
+
// overlay custom class name
|
|
12
22
|
overlayClass: unknownProp,
|
|
23
|
+
// Initial rendering animation
|
|
13
24
|
transitionAppear: Boolean,
|
|
25
|
+
// whether to close popup when overlay is clicked
|
|
14
26
|
closeOnClickOverlay: truthProp
|
|
15
27
|
};
|
|
16
28
|
const popupSharedPropKeys = Object.keys(
|
package/es/radio/Radio.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
}>> & {
|
|
31
31
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
disabled: boolean;
|
|
34
33
|
shape: CheckerShape;
|
|
34
|
+
disabled: boolean;
|
|
35
35
|
labelDisabled: boolean;
|
|
36
36
|
}>;
|
|
37
37
|
export default _default;
|
package/es/radio/index.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
|
|
|
25
25
|
}>> & {
|
|
26
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
disabled: boolean;
|
|
29
28
|
shape: import("../checkbox/Checker").CheckerShape;
|
|
29
|
+
disabled: boolean;
|
|
30
30
|
labelDisabled: boolean;
|
|
31
31
|
}>>;
|
|
32
32
|
export default Radio;
|
package/es/rate/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-rate-icon-size: 20px;--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color:
|
|
1
|
+
:root{--zt-rate-icon-size: 20px;--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color: rgba(0, 0, 0, .2);--zt-rate-icon-full-color: var(--zt-yellow);--zt-rate-icon-disabled-color: var(--zt-gray-5)}.zt-rate{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:inline-flex;align-items:center}.zt-rate__item{position:relative}.zt-rate__item:not(:last-child){padding-right:var(--zt-rate-icon-gutter)}.zt-rate__icon{display:block;width:1em;color:var(--zt-rate-icon-void-color);font-size:var(--zt-rate-icon-size)}.zt-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.zt-rate__icon--full{color:var(--zt-rate-icon-full-color)}.zt-rate__icon--disabled{color:var(--zt-rate-icon-disabled-color)}.zt-rate--disabled{cursor:not-allowed}.zt-rate--readonly{cursor:default}.zt-theme-dark{--zt-rate-icon-void-color: rgba(255, 255, 255, .2)}
|
package/es/search/Search.d.ts
CHANGED
|
@@ -201,9 +201,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
201
201
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
202
202
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
203
203
|
}, {
|
|
204
|
+
shape: SearchShape;
|
|
204
205
|
autofocus: boolean;
|
|
205
206
|
disabled: boolean;
|
|
206
|
-
shape: SearchShape;
|
|
207
207
|
leftIcon: string;
|
|
208
208
|
clearable: boolean;
|
|
209
209
|
clearIcon: string;
|
package/es/search/Search.mjs
CHANGED
package/es/search/index.d.ts
CHANGED
|
@@ -135,9 +135,9 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
|
135
135
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
136
136
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
137
137
|
}, {
|
|
138
|
+
shape: import("./types").SearchShape;
|
|
138
139
|
autofocus: boolean;
|
|
139
140
|
disabled: boolean;
|
|
140
|
-
shape: import("./types").SearchShape;
|
|
141
141
|
leftIcon: string;
|
|
142
142
|
clearable: boolean;
|
|
143
143
|
clearIcon: string;
|