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
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { createTextVNode as _createTextVNode, withDirectives as _withDirectives, createVNode as _createVNode, vShow as _vShow } from "vue";
|
|
2
2
|
import { computed, defineComponent, ref, Transition } from "vue";
|
|
3
|
-
import { createNamespace, makeArrayProp, makeNumericProp, makeStringProp } from "../utils/index.mjs";
|
|
3
|
+
import { createNamespace, makeArrayProp, makeNumericProp, makeStringProp, colorFromCSSClass } from "../utils/index.mjs";
|
|
4
4
|
import { getForceLandscapeEventPosition, getForceLandscapeStyle } from "./force-landscape.mjs";
|
|
5
5
|
import { showToast } from "../toast/index.mjs";
|
|
6
6
|
import { canvas2File } from "../media-picker/util/media-util.mjs";
|
|
7
7
|
import ZtButton from "../button/index.mjs";
|
|
8
8
|
import { parseNumber } from "../utils/parse.mjs";
|
|
9
9
|
const [name, bem] = createNamespace("signature");
|
|
10
|
+
const SignColorMap = {
|
|
11
|
+
white: "#FFF",
|
|
12
|
+
black: "#000"
|
|
13
|
+
};
|
|
14
|
+
const strokeColor = colorFromCSSClass(bem("stroke"), SignColorMap.black);
|
|
15
|
+
const canvasBgColor = colorFromCSSClass(bem("canvas"), SignColorMap.white);
|
|
10
16
|
const signatureProps = {
|
|
11
17
|
customClass: makeStringProp(""),
|
|
12
18
|
lineWidth: makeNumericProp(2),
|
|
13
|
-
strokeStyle: makeStringProp(
|
|
14
|
-
backgroundStyle: makeStringProp(
|
|
19
|
+
strokeStyle: makeStringProp(strokeColor),
|
|
20
|
+
backgroundStyle: makeStringProp(canvasBgColor),
|
|
15
21
|
imageType: makeStringProp("png"),
|
|
16
22
|
resultTypes: makeArrayProp(["file", "dataUrl"]),
|
|
17
23
|
unSupportTpl: makeStringProp("\u5BF9\u4E0D\u8D77\uFF0C\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Canvas\uFF0C\u65E0\u6CD5\u4F7F\u7528\u7B7E\u540D\u7EC4\u4EF6"),
|
|
@@ -202,24 +208,21 @@ var stdin_default = defineComponent({
|
|
|
202
208
|
"plain": true,
|
|
203
209
|
"type": "warning",
|
|
204
210
|
"onClick": () => clear(),
|
|
205
|
-
"
|
|
206
|
-
"background-color": "#fff"
|
|
207
|
-
}
|
|
211
|
+
"class": bem("button-again")
|
|
208
212
|
}, {
|
|
209
213
|
default: () => [_createTextVNode("\u91CD\u7B7E")]
|
|
210
214
|
}), _createVNode(ZtButton, {
|
|
211
215
|
"type": "default",
|
|
212
216
|
"onClick": cancel,
|
|
213
|
-
"
|
|
214
|
-
"background-color": "#fff"
|
|
215
|
-
}
|
|
217
|
+
"class": bem("button-cancel")
|
|
216
218
|
}, {
|
|
217
219
|
default: () => [_createTextVNode("\u53D6\u6D88")]
|
|
218
220
|
}), _createVNode(ZtButton, {
|
|
219
221
|
"block": true,
|
|
220
222
|
"type": "primary",
|
|
221
223
|
"disabled": isCompleteButtonDisabled.value,
|
|
222
|
-
"onClick": confirm
|
|
224
|
+
"onClick": confirm,
|
|
225
|
+
"class": bem("button-complete")
|
|
223
226
|
}, {
|
|
224
227
|
default: () => [_createTextVNode("\u5B8C\u6210")]
|
|
225
228
|
})])])]
|
package/es/signature/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-signature-canvas-z-index: 1;--zt-signature-hint-z-index: 2;--zt-signature-actions-z-index: 2}.zt-signature{background-color:var(--zt-background);width:100%;height:100%;position:relative}.zt-signature__placeholder{z-index:var(--zt-signature-hint-z-index);pointer-events:none;position:absolute;left:0;top:calc(50% - 12px);font-size:16px;height:24px;width:100%;color:var(--zt-gray-a2);text-align:center}.zt-signature__canvasWrapper{z-index:var(--zt-signature-canvas-z-index);position:absolute;top:0;left:0;width:100%;height:100%;background:var(--zt-
|
|
1
|
+
:root{--zt-signature-canvas-z-index: 1;--zt-signature-canvas-background-color: var(--zt-white);--zt-signature-hint-z-index: 2;--zt-signature-actions-z-index: 2;--zt-signature-button-backgroud: #ffffff;--zt-signature-button-again-border: .5px solid #ff8700;--zt-signature-button-cancel-border: .5px solid rgba(45, 75, 115, .2);--zt-signature-button-complete-background-image: linear-gradient(-45deg, #3cafff 0%, #0091fa 100%)}.zt-signature{background-color:var(--zt-background);width:100%;height:100%;position:relative}.zt-signature__placeholder{z-index:var(--zt-signature-hint-z-index);pointer-events:none;position:absolute;left:0;top:calc(50% - 12px);font-size:16px;height:24px;width:100%;color:var(--zt-gray-a2);text-align:center}.zt-signature__canvasWrapper{z-index:var(--zt-signature-canvas-z-index);position:absolute;top:0;left:0;width:100%;height:100%;background:var(--zt-signature-canvas-background-color)}.zt-signature__canvas{background:var(--zt-signature-canvas-background-color);color:var(--zt-signature-canvas-background-color)}.zt-signature__actions{z-index:var(--zt-signature-actions-z-index);position:absolute;right:0;bottom:16px;width:320px;float:right}.zt-signature__actions button{float:left;width:96px;margin-right:8px}.zt-signature__stroke{color:var(--zt-text-color)}.zt-signature__button-again{background:var(--zt-signature-button-backgroud);border:var(--zt-signature-button-again-border)}.zt-signature__button-cancel{background:var(--zt-signature-button-backgroud);color:var(--zt-text-color);border:var(--zt-signature-button-cancel-border)}.zt-signature__button-complete{background-image:var(--zt-signature-button-complete-background-image)}.zt-theme-dark{--zt-signature-canvas-background-color: #19222d;--zt-signature-button-backgroud: rgba(255, 255, 255, .04);--zt-signature-button-again-border: 0px;--zt-signature-button-cancel-border: 0px;--zt-signature-button-complete-background-image: linear-gradient(-45deg, #3cafff 0%, #0091fa 100%)}
|
package/es/step/Step.mjs
CHANGED
|
@@ -35,11 +35,11 @@ var stdin_default = defineComponent({
|
|
|
35
35
|
const titleStyle = computed(() => {
|
|
36
36
|
if (isActive()) {
|
|
37
37
|
return {
|
|
38
|
-
color: parentProps.titleActiveColor || "
|
|
38
|
+
color: parentProps.titleActiveColor || ""
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return {
|
|
42
|
-
color: parentProps.titleInactiveColor || "
|
|
42
|
+
color: parentProps.titleInactiveColor || ""
|
|
43
43
|
};
|
|
44
44
|
});
|
|
45
45
|
const onClickStep = () => parent.onClickStep(index.value);
|
|
@@ -55,12 +55,16 @@ var stdin_default = defineComponent({
|
|
|
55
55
|
const style = {};
|
|
56
56
|
if (isActive()) {
|
|
57
57
|
style.background = `${activeBgColor || "rgba(0,145,250,0.20)"}`;
|
|
58
|
-
|
|
58
|
+
if (activeBorderColor) {
|
|
59
|
+
style.border = `1px solid ${activeBorderColor}`;
|
|
60
|
+
}
|
|
59
61
|
style.fontWeight = "bold";
|
|
60
62
|
style.color = `${activeColor || "#0091FA"}`;
|
|
61
63
|
} else {
|
|
62
|
-
style.background = `${inactiveBgColor || "
|
|
63
|
-
|
|
64
|
+
style.background = `${inactiveBgColor || ""}`;
|
|
65
|
+
if (inactiveBorderColor) {
|
|
66
|
+
style.border = `1px solid ${inactiveBorderColor}`;
|
|
67
|
+
}
|
|
64
68
|
style.fontWeight = "normal";
|
|
65
69
|
style.color = `${inactiveColor || "#FFFFFF"}`;
|
|
66
70
|
}
|
|
@@ -107,7 +111,7 @@ var stdin_default = defineComponent({
|
|
|
107
111
|
return _createVNode("div", {
|
|
108
112
|
"class": bem("circle"),
|
|
109
113
|
"style": circleStyle()
|
|
110
|
-
}, [index.value]);
|
|
114
|
+
}, [index.value + 1]);
|
|
111
115
|
};
|
|
112
116
|
return () => {
|
|
113
117
|
var _a;
|
package/es/step/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-step-text-color: var(--zt-text-color-2);--zt-step-active-color: var(--zt-gray-default);--zt-step-process-text-color: var(--zt-text-color);--zt-step-font-size: var(--zt-font-size-md);--zt-step-line-color: var(--zt-gray-a1);--zt-step-finish-line-color: var(--zt-primary-color);--zt-step-finish-text-color: var(--zt-text-color);--zt-step-icon-size: 12px;--zt-step-circle-size: 20px;--zt-step-circle-font-size: 14px;--zt-step-circle-color: var(--zt-gray-6);--zt-step-horizontal-title-font-size: var(--zt-font-size-md)}.zt-step{-webkit-user-select:none;user-select:none;position:relative;flex:1}.zt-step__circle{display:block;width:var(--zt-step-circle-size);height:var(--zt-step-circle-size);line-height:var(--zt-step-circle-size);border-radius:50%;text-align:center;font-size:var(--zt-step-circle-font-size)}.zt-step__line{position:absolute;background-color:var(--zt-step-line-color);transition:background-color var(--zt-duration-base)}.zt-step--horizontal{float:left}.zt-step--horizontal .zt-step__circle-container{position:absolute;top:10px;left:calc(50% - 10px);z-index:1;background-color:var(--zt-
|
|
1
|
+
:root{--zt-step-text-color: var(--zt-text-color-2);--zt-step-active-color: var(--zt-gray-default);--zt-step-process-text-color: var(--zt-text-color);--zt-step-font-size: var(--zt-font-size-md);--zt-step-line-color: var(--zt-gray-a1);--zt-step-finish-line-color: var(--zt-primary-color);--zt-step-finish-text-color: var(--zt-text-color);--zt-step-icon-size: 12px;--zt-step-circle-container-backgroud: var(--zt-background-2);--zt-step-circle-size: 20px;--zt-step-circle-font-size: 14px;--zt-step-circle-color: var(--zt-gray-6);--zt-step-horizontal-title-font-size: var(--zt-font-size-md)}.zt-step{-webkit-user-select:none;user-select:none;position:relative;flex:1}.zt-step__circle{display:block;width:var(--zt-step-circle-size);height:var(--zt-step-circle-size);line-height:var(--zt-step-circle-size);background:var(--zt-gray-a2);border-radius:50%;text-align:center;font-size:var(--zt-step-circle-font-size)}.zt-step__line{position:absolute;background-color:var(--zt-step-line-color);transition:background-color var(--zt-duration-base)}.zt-step--horizontal{float:left}.zt-step--horizontal .zt-step__circle-container{position:absolute;top:10px;left:calc(50% - 10px);z-index:1;background-color:var(--zt-step-circle-container-backgroud);transform:translateY(-50%)}.zt-step--horizontal .zt-step__title{display:inline-block;margin-top:26px;font-size:var(--zt-step-horizontal-title-font-size);color:var(--zt-gray-a6);width:100%;text-align:center}.zt-step--horizontal .zt-step__title--active{color:var(--zt-text-color)}.zt-step--horizontal .zt-step__line{top:10px;left:calc(50% + 14px);width:calc(100% - 28px);height:1px}.zt-step--horizontal .zt-step__icon{display:block;font-size:var(--zt-step-icon-size);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step--horizontal .zt-step--process{color:var(--zt-step-process-text-color)}.zt-step--vertical{display:block;float:none;padding:10px 16px 10px 8px;line-height:var(--zt-line-height-sm)}.zt-step--vertical .zt-step__title{font-size:var(--zt-step-horizontal-title-font-size);color:var(--zt-gray-a6)}.zt-step--vertical .zt-step__circle-container{position:absolute;top:20px;left:0px;z-index:1;font-size:var(--zt-step-icon-size);line-height:1;transform:translate(-100%,-50%)}.zt-step--vertical .zt-step__line{left:-10px;top:34px;height:calc(100% - 28px);width:1px}.zt-step--vertical .zt-step__icon{display:block;font-size:var(--zt-step-icon-size);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step:last-child .zt-step__line{width:0}.zt-step__icon,.zt-step__title{transition:color var(--zt-duration-base)}
|
package/es/stepper/Stepper.mjs
CHANGED
|
@@ -209,6 +209,7 @@ var stdin_default = defineComponent({
|
|
|
209
209
|
bem("minus", {
|
|
210
210
|
disabled: minusDisabled.value
|
|
211
211
|
}),
|
|
212
|
+
// { [HAPTICS_FEEDBACK]: !minusDisabled.value },
|
|
212
213
|
{
|
|
213
214
|
[bem("could-click")]: !minusDisabled.value
|
|
214
215
|
}
|
|
@@ -244,6 +245,7 @@ var stdin_default = defineComponent({
|
|
|
244
245
|
{
|
|
245
246
|
[bem("could-click")]: !plusDisabled.value
|
|
246
247
|
}
|
|
248
|
+
// { [HAPTICS_FEEDBACK]: !plusDisabled.value },
|
|
247
249
|
],
|
|
248
250
|
"aria-disabled": plusDisabled.value || void 0
|
|
249
251
|
}, createListeners("plus")), [_createVNode(ZtIcon, {
|
package/es/stepper/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-stepper-background: rgba(45, 75, 115, .04);--zt-stepper-button-icon-color: var(--zt-text-color);--zt-stepper-button-disabled-color: var(--zt-background);--zt-stepper-button-disabled-icon-color: var(--zt-gray-
|
|
1
|
+
:root{--zt-stepper-background: rgba(45, 75, 115, .04);--zt-stepper-background-image: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-stepper-box-border: 0;--zt-stepper-button-icon-color: var(--zt-text-color);--zt-stepper-button-disabled-color: var(--zt-background);--zt-stepper-button-disabled-icon-color: var(--zt-gray-a2);--zt-stepper-button-round-theme-color: var(--zt-primary-color);--zt-stepper-button-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0px rgba(45, 75, 115, .1);--zt-stepper-input-width: 60px;--zt-stepper-input-height: 32px;--zt-stepper-input-font-size: var(--zt-font-size-md);--zt-stepper-input-line-height: 20px;--zt-stepper-input-text-color: var(--zt-text-color);--zt-stepper-input-disabled-text-color: var(--zt-gray-a2);--zt-stepper-input-disabled-background: var(--zt-active-color);--zt-stepper-input-box-shadow: inset 4px 4px 8px -4px rgba(45, 75, 115, .1);--zt-stepper-radius: var(--zt-radius-max)}.zt-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.zt-stepper__could-click:active{box-shadow:inset 4px 4px 8px rgba(45,75,115,.24)}.zt-stepper__minus,.zt-stepper__plus{display:inline-flex;justify-content:center;align-items:center;position:relative;box-sizing:border-box;width:var(--zt-stepper-input-height);height:var(--zt-stepper-input-height);margin:0;padding:0;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);background-image:var(--zt-stepper-background-image);box-shadow:var(--zt-stepper-button-box-shadow)}.zt-stepper__minus i,.zt-stepper__plus i{transform:scale(.625)}.zt-stepper__minus--disabled,.zt-stepper__plus--disabled{color:var(--zt-stepper-button-disabled-icon-color);background-color:var(--zt-stepper-button-disabled-color);cursor:not-allowed}.zt-stepper__minus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__minus:after{display:none}.zt-stepper__plus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__input{box-sizing:border-box;width:var(--zt-stepper-input-width);height:var(--zt-stepper-input-height);margin:0 12px;padding:4px;color:var(--zt-stepper-input-text-color);font-size:var(--zt-stepper-input-font-size);line-height:var(--zt-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);border-radius:var(--zt-radius-gt);box-shadow:var(--zt-stepper-input-box-shadow);-webkit-appearance:none}.zt-stepper__input:disabled{color:var(--zt-stepper-input-disabled-text-color);background:var(--zt-stepper-input-disabled-background);-webkit-text-fill-color:var(--zt-stepper-input-disabled-text-color);opacity:1}.zt-stepper__input:read-only{cursor:default}.zt-stepper--round .zt-stepper__input{background-color:transparent}.zt-stepper--round .zt-stepper__plus,.zt-stepper--round .zt-stepper__minus{border-radius:100%}.zt-stepper--round .zt-stepper__plus--disabled,.zt-stepper--round .zt-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.zt-stepper--round .zt-stepper__plus{color:var(--zt-white);background:var(--zt-stepper-button-round-theme-color)}.zt-stepper--round .zt-stepper__minus{color:var(--zt-stepper-button-round-theme-color);background-color:var(--zt-background-2);border:1px solid var(--zt-stepper-button-round-theme-color)}.zt-theme-dark{--zt-stepper-background: #19232d;--zt-stepper-background-image: linear-gradient(135deg, #0e1824 0%, #203043 100%);--zt-stepper-box-border: 1px solid rgba(255, 255, 255, .12);--zt-stepper-button-box-shadow: -1px -1px 2px 0 rgba(255, 255, 255, .12), 0 0 3px 0 rgba(0, 12, 24, .8);--zt-stepper-input-disabled-background: linear-gradient(147deg, #0e1824 0%, #203043 100%)}
|
package/es/steps/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-steps-background: var(--zt-background-2)}.zt-steps{overflow:hidden;background-color:var(--zt-steps-background);margin:12px;border:0 solid rgba(0,0,0,.1);box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:8px}.zt-steps--horizontal{padding:8px 0}.zt-steps--horizontal .zt-steps__items{position:relative;display:flex}.zt-steps--vertical{padding:0 0 0 var(--zt-padding-xl)}
|
|
1
|
+
:root{--zt-steps-background: var(--zt-background-2);--zt-steps-vertical-title-color: rgba(0, 0, 0, .4)}.zt-steps{overflow:hidden;background-color:var(--zt-steps-background);margin:12px;border:0 solid rgba(0,0,0,.1);box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:8px}.zt-steps--horizontal{padding:8px 0}.zt-steps--horizontal .zt-steps__items{position:relative;display:flex}.zt-steps--vertical{padding:0 0 0 var(--zt-padding-xl)}.zt-theme-dark{--zt-steps-vertical-title-color: rgba(255, 255, 255, .4)}
|
package/es/sticky/Sticky.mjs
CHANGED
|
@@ -24,7 +24,9 @@ var stdin_default = defineComponent({
|
|
|
24
24
|
const state = reactive({
|
|
25
25
|
fixed: false,
|
|
26
26
|
width: 0,
|
|
27
|
+
// root width
|
|
27
28
|
height: 0,
|
|
29
|
+
// root height
|
|
28
30
|
transform: 0
|
|
29
31
|
});
|
|
30
32
|
const offset = computed(() => unitToPx(props.position === "top" ? props.offsetTop : props.offsetBottom));
|
package/es/style/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-black: #000;--zt-white: #fff;--zt-gray-default: #2d4b73;--zt-gray-1: #f7f8fa;--zt-gray-2: #f2f3f5;--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #323233;--zt-gray-a04: rgba(45, 75, 115, .04);--zt-gray-a08: rgba(45, 75, 115, .08);--zt-gray-a1: rgba(45, 75, 115, .1);--zt-gray-a2: rgba(45, 75, 115, .2);--zt-gray-a4: rgba(45, 75, 115, .4);--zt-gray-a5: rgba(45, 75, 115, .5);--zt-gray-a6: rgba(45, 75, 115, .6);--zt-gray-a8: rgba(45, 75, 115, .8);--zt-red: #ff5a3c;--zt-blue-light: #3caafa;--zt-blue: #0091fa;--zt-orange: #faaf5a;--zt-orange-dark: #ff5a3c;--zt-orange-light: #fffbe8;--zt-green: #00e173;--zt-yellow: #ffcd23;--zt-orange-2: #ff8700;--zt-primary-color: var(--zt-blue);--zt-success-color: var(--zt-green);--zt-danger-color: #ff5a5a;--zt-warning-color: #ffaf00;--zt-text-color: var(--zt-gray-default);--zt-text-color-a2: var(--zt-gray-a2);--zt-text-color-a4: var(--zt-gray-a4);--zt-text-color-a6: var(--zt-gray-a6);--zt-text-color-a8: var(--zt-gray-a8);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-placeholder-color: var(--zt-text-color-a2);--zt-link-color: #576b95;--zt-active-color: var(--zt-gray-2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: var(--zt-white);--zt-background-4: rgba(255, 205, 35, .2);--zt-background-5: #ff4b50;--zt-background-card: var(--zt-white);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-font-size-gt: 18px;--zt-line-height-xs: 16px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-a1);--zt-border-left-color: #ffcdcd;--zt-border-right-color: rgba(220, 0, 4, .8);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}.zt-theme-dark{--zt-text-color: var(--zt-white);--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-border-color: #3a3a3c;--zt-active-color: #3a3a3c;--zt-background: #0f1923;--zt-background-2: #19232d;--zt-background-3: #37363b;--zt-background-card: rgba(255, 205, 205, .04);--zt-gray-default: rgba(255, 255, 255, .4);--zt-gray-a2: rgba(255, 255, 255, .2);--zt-gray-a6: rgba(255, 255, 255, .6);--zt-gray-a8: rgba(255, 255, 255, .8)}html{-webkit-tap-highlight-color:transparent}:root{margin:0;font-family:var(--zt-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=zt-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes zt-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes zt-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes zt-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes zt-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes zt-fade-in{0%{opacity:0}to{opacity:1}}@keyframes zt-fade-out{0%{opacity:1}to{opacity:0}}@keyframes zt-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.zt-fade-enter-active{animation:var(--zt-duration-base) zt-fade-in both var(--zt-ease-out)}.zt-fade-leave-active{animation:var(--zt-duration-base) zt-fade-out both var(--zt-ease-in)}.zt-slide-up-enter-active{animation:zt-slide-up-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-up-leave-active{animation:zt-slide-up-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-down-enter-active{animation:zt-slide-down-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-down-leave-active{animation:zt-slide-down-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-left-enter-active{animation:zt-slide-left-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-left-leave-active{animation:zt-slide-left-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-right-enter-active{animation:zt-slide-right-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-right-leave-active{animation:zt-slide-right-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-clearfix:after{display:table;clear:both;content:""}.zt-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zt-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.zt-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.zt-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-haptics-feedback{cursor:pointer}.zt-haptics-feedback:active{opacity:var(--zt-active-opacity)}[class*=zt-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-hairline,.zt-hairline--top,.zt-hairline--left,.zt-hairline--right,.zt-hairline--bottom,.zt-hairline--surround,.zt-hairline--top-bottom{position:relative}.zt-hairline--top:after{border-top-width:var(--zt-border-width)}.zt-hairline--left:after{border-left-width:var(--zt-border-width)}.zt-hairline--right:after{border-right-width:var(--zt-border-width)}.zt-hairline--bottom:after{border-bottom-width:var(--zt-border-width)}.zt-hairline--top-bottom:after,.zt-hairline-unset--top-bottom:after{border-width:var(--zt-border-width) 0}.zt-hairline--surround:after{border-width:var(--zt-border-width)}
|
|
1
|
+
:root{--zt-black: #000;--zt-white: #fff;--zt-gray-default: #2d4b73;--zt-gray-1: #f7f8fa;--zt-gray-2: #f2f3f5;--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #323233;--zt-gray-a04: rgba(45, 75, 115, .04);--zt-gray-a08: rgba(45, 75, 115, .08);--zt-gray-a1: rgba(45, 75, 115, .1);--zt-gray-a2: rgba(45, 75, 115, .2);--zt-gray-a4: rgba(45, 75, 115, .4);--zt-gray-a5: rgba(45, 75, 115, .5);--zt-gray-a6: rgba(45, 75, 115, .6);--zt-gray-a8: rgba(45, 75, 115, .8);--zt-red: #ff5a3c;--zt-blue-light: #3caafa;--zt-blue: #0091fa;--zt-orange: #faaf5a;--zt-orange-dark: #ff5a3c;--zt-orange-light: #fffbe8;--zt-green: #00e173;--zt-yellow: #ffcd23;--zt-orange-2: #ff8700;--zt-primary-color: var(--zt-blue);--zt-success-color: var(--zt-green);--zt-danger-color: #ff5a5a;--zt-warning-color: #ffaf00;--zt-text-color: var(--zt-gray-default);--zt-text-color-a2: var(--zt-gray-a2);--zt-text-color-a4: var(--zt-gray-a4);--zt-text-color-a6: var(--zt-gray-a6);--zt-text-color-a8: var(--zt-gray-a8);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-placeholder-color: var(--zt-text-color-a2);--zt-link-color: #576b95;--zt-active-color: var(--zt-gray-2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: var(--zt-white);--zt-background-4: rgba(255, 205, 35, .2);--zt-background-5: #ff4b50;--zt-background-card: var(--zt-white);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-font-size-gt: 18px;--zt-line-height-xs: 16px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-a1);--zt-border-left-color: #ffcdcd;--zt-border-right-color: rgba(220, 0, 4, .8);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}.zt-theme-dark{--zt-text-color: var(--zt-white);--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-border-color: #3a3a3c;--zt-active-color: #3a3a3c;--zt-background: #0f1923;--zt-background-2: #19232d;--zt-background-3: #37363b;--zt-background-card: rgba(255, 205, 205, .04);--zt-gray-default: rgba(255, 255, 255, .4);--zt-gray-a1: rgba(255, 255, 255, .1);--zt-gray-a2: rgba(255, 255, 255, .2);--zt-gray-a4: rgba(255, 255, 255, .4);--zt-gray-a6: rgba(255, 255, 255, .6);--zt-gray-a8: rgba(255, 255, 255, .8)}html{-webkit-tap-highlight-color:transparent}:root{margin:0;font-family:var(--zt-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=zt-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes zt-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes zt-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes zt-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes zt-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes zt-fade-in{0%{opacity:0}to{opacity:1}}@keyframes zt-fade-out{0%{opacity:1}to{opacity:0}}@keyframes zt-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.zt-fade-enter-active{animation:var(--zt-duration-base) zt-fade-in both var(--zt-ease-out)}.zt-fade-leave-active{animation:var(--zt-duration-base) zt-fade-out both var(--zt-ease-in)}.zt-slide-up-enter-active{animation:zt-slide-up-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-up-leave-active{animation:zt-slide-up-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-down-enter-active{animation:zt-slide-down-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-down-leave-active{animation:zt-slide-down-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-left-enter-active{animation:zt-slide-left-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-left-leave-active{animation:zt-slide-left-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-right-enter-active{animation:zt-slide-right-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-right-leave-active{animation:zt-slide-right-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-clearfix:after{display:table;clear:both;content:""}.zt-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zt-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.zt-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.zt-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-haptics-feedback{cursor:pointer}.zt-haptics-feedback:active{opacity:var(--zt-active-opacity)}[class*=zt-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-hairline,.zt-hairline--top,.zt-hairline--left,.zt-hairline--right,.zt-hairline--bottom,.zt-hairline--surround,.zt-hairline--top-bottom{position:relative}.zt-hairline--top:after{border-top-width:var(--zt-border-width)}.zt-hairline--left:after{border-left-width:var(--zt-border-width)}.zt-hairline--right:after{border-right-width:var(--zt-border-width)}.zt-hairline--bottom:after{border-bottom-width:var(--zt-border-width)}.zt-hairline--top-bottom:after,.zt-hairline-unset--top-bottom:after{border-width:var(--zt-border-width) 0}.zt-hairline--surround:after{border-width:var(--zt-border-width)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-black: #000;--zt-white: #fff;--zt-gray-default: #2d4b73;--zt-gray-1: #f7f8fa;--zt-gray-2: #f2f3f5;--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #323233;--zt-gray-a04: rgba(45, 75, 115, .04);--zt-gray-a08: rgba(45, 75, 115, .08);--zt-gray-a1: rgba(45, 75, 115, .1);--zt-gray-a2: rgba(45, 75, 115, .2);--zt-gray-a4: rgba(45, 75, 115, .4);--zt-gray-a5: rgba(45, 75, 115, .5);--zt-gray-a6: rgba(45, 75, 115, .6);--zt-gray-a8: rgba(45, 75, 115, .8);--zt-red: #ff5a3c;--zt-blue-light: #3caafa;--zt-blue: #0091fa;--zt-orange: #faaf5a;--zt-orange-dark: #ff5a3c;--zt-orange-light: #fffbe8;--zt-green: #00e173;--zt-yellow: #ffcd23;--zt-orange-2: #ff8700;--zt-primary-color: var(--zt-blue);--zt-success-color: var(--zt-green);--zt-danger-color: #ff5a5a;--zt-warning-color: #ffaf00;--zt-text-color: var(--zt-gray-default);--zt-text-color-a2: var(--zt-gray-a2);--zt-text-color-a4: var(--zt-gray-a4);--zt-text-color-a6: var(--zt-gray-a6);--zt-text-color-a8: var(--zt-gray-a8);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-placeholder-color: var(--zt-text-color-a2);--zt-link-color: #576b95;--zt-active-color: var(--zt-gray-2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: var(--zt-white);--zt-background-4: rgba(255, 205, 35, .2);--zt-background-5: #ff4b50;--zt-background-card: var(--zt-white);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-font-size-gt: 18px;--zt-line-height-xs: 16px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-a1);--zt-border-left-color: #ffcdcd;--zt-border-right-color: rgba(220, 0, 4, .8);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}.zt-theme-dark{--zt-text-color: var(--zt-white);--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-border-color: #3a3a3c;--zt-active-color: #3a3a3c;--zt-background: #0f1923;--zt-background-2: #19232d;--zt-background-3: #37363b;--zt-background-card: rgba(255, 205, 205, .04);--zt-gray-default: rgba(255, 255, 255, .4);--zt-gray-a2: rgba(255, 255, 255, .2);--zt-gray-a6: rgba(255, 255, 255, .6);--zt-gray-a8: rgba(255, 255, 255, .8)}
|
|
1
|
+
:root{--zt-black: #000;--zt-white: #fff;--zt-gray-default: #2d4b73;--zt-gray-1: #f7f8fa;--zt-gray-2: #f2f3f5;--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #323233;--zt-gray-a04: rgba(45, 75, 115, .04);--zt-gray-a08: rgba(45, 75, 115, .08);--zt-gray-a1: rgba(45, 75, 115, .1);--zt-gray-a2: rgba(45, 75, 115, .2);--zt-gray-a4: rgba(45, 75, 115, .4);--zt-gray-a5: rgba(45, 75, 115, .5);--zt-gray-a6: rgba(45, 75, 115, .6);--zt-gray-a8: rgba(45, 75, 115, .8);--zt-red: #ff5a3c;--zt-blue-light: #3caafa;--zt-blue: #0091fa;--zt-orange: #faaf5a;--zt-orange-dark: #ff5a3c;--zt-orange-light: #fffbe8;--zt-green: #00e173;--zt-yellow: #ffcd23;--zt-orange-2: #ff8700;--zt-primary-color: var(--zt-blue);--zt-success-color: var(--zt-green);--zt-danger-color: #ff5a5a;--zt-warning-color: #ffaf00;--zt-text-color: var(--zt-gray-default);--zt-text-color-a2: var(--zt-gray-a2);--zt-text-color-a4: var(--zt-gray-a4);--zt-text-color-a6: var(--zt-gray-a6);--zt-text-color-a8: var(--zt-gray-a8);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-placeholder-color: var(--zt-text-color-a2);--zt-link-color: #576b95;--zt-active-color: var(--zt-gray-2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: var(--zt-white);--zt-background-4: rgba(255, 205, 35, .2);--zt-background-5: #ff4b50;--zt-background-card: var(--zt-white);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-font-size-gt: 18px;--zt-line-height-xs: 16px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-a1);--zt-border-left-color: #ffcdcd;--zt-border-right-color: rgba(220, 0, 4, .8);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}.zt-theme-dark{--zt-text-color: var(--zt-white);--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-border-color: #3a3a3c;--zt-active-color: #3a3a3c;--zt-background: #0f1923;--zt-background-2: #19232d;--zt-background-3: #37363b;--zt-background-card: rgba(255, 205, 205, .04);--zt-gray-default: rgba(255, 255, 255, .4);--zt-gray-a1: rgba(255, 255, 255, .1);--zt-gray-a2: rgba(255, 255, 255, .2);--zt-gray-a4: rgba(255, 255, 255, .4);--zt-gray-a6: rgba(255, 255, 255, .6);--zt-gray-a8: rgba(255, 255, 255, .8)}
|
package/es/swipe/Swipe.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
default: true;
|
|
74
74
|
};
|
|
75
75
|
title: ArrayConstructor;
|
|
76
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
76
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "dragStart" | "dragEnd")[], "change" | "dragStart" | "dragEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
77
77
|
loop: {
|
|
78
78
|
type: BooleanConstructor;
|
|
79
79
|
default: true;
|
|
@@ -110,6 +110,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
title: ArrayConstructor;
|
|
111
111
|
}>> & {
|
|
112
112
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
onDragStart?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onDragEnd?: ((...args: any[]) => any) | undefined;
|
|
113
115
|
}, {
|
|
114
116
|
autoplay: string | number;
|
|
115
117
|
loop: boolean;
|
package/es/swipe/Swipe.mjs
CHANGED
|
@@ -25,7 +25,7 @@ const SWIPE_KEY = Symbol(name);
|
|
|
25
25
|
var stdin_default = defineComponent({
|
|
26
26
|
name,
|
|
27
27
|
props: swipeProps,
|
|
28
|
-
emits: ["change"],
|
|
28
|
+
emits: ["change", "dragStart", "dragEnd"],
|
|
29
29
|
setup(props, {
|
|
30
30
|
emit,
|
|
31
31
|
slots
|
|
@@ -39,6 +39,7 @@ var stdin_default = defineComponent({
|
|
|
39
39
|
active: 0,
|
|
40
40
|
swiping: false
|
|
41
41
|
});
|
|
42
|
+
let dragging = false;
|
|
42
43
|
const touch = useTouch();
|
|
43
44
|
const {
|
|
44
45
|
children,
|
|
@@ -189,6 +190,9 @@ var stdin_default = defineComponent({
|
|
|
189
190
|
if (count.value) {
|
|
190
191
|
active = Math.min(count.value - 1, active);
|
|
191
192
|
}
|
|
193
|
+
if (active === -1) {
|
|
194
|
+
active = count.value - 1;
|
|
195
|
+
}
|
|
192
196
|
state.active = active;
|
|
193
197
|
state.swiping = true;
|
|
194
198
|
state.offset = getTargetOffset(active);
|
|
@@ -206,9 +210,12 @@ var stdin_default = defineComponent({
|
|
|
206
210
|
const resize = () => initialize(state.active);
|
|
207
211
|
let touchStartTime;
|
|
208
212
|
const onTouchStart = (event) => {
|
|
209
|
-
if (!props.touchable
|
|
213
|
+
if (!props.touchable || // avoid resetting position on multi-finger touch
|
|
214
|
+
event.touches.length > 1) {
|
|
210
215
|
return;
|
|
216
|
+
}
|
|
211
217
|
touch.start(event);
|
|
218
|
+
dragging = false;
|
|
212
219
|
touchStartTime = Date.now();
|
|
213
220
|
stopAutoplay();
|
|
214
221
|
correctPosition();
|
|
@@ -221,6 +228,12 @@ var stdin_default = defineComponent({
|
|
|
221
228
|
move({
|
|
222
229
|
offset: delta.value
|
|
223
230
|
});
|
|
231
|
+
if (!dragging) {
|
|
232
|
+
emit("dragStart", {
|
|
233
|
+
index: activeIndicator.value
|
|
234
|
+
});
|
|
235
|
+
dragging = true;
|
|
236
|
+
}
|
|
224
237
|
}
|
|
225
238
|
}
|
|
226
239
|
};
|
|
@@ -248,7 +261,11 @@ var stdin_default = defineComponent({
|
|
|
248
261
|
pace: 0
|
|
249
262
|
});
|
|
250
263
|
}
|
|
264
|
+
dragging = false;
|
|
251
265
|
state.swiping = false;
|
|
266
|
+
emit("dragEnd", {
|
|
267
|
+
index: activeIndicator.value
|
|
268
|
+
});
|
|
252
269
|
autoplay();
|
|
253
270
|
};
|
|
254
271
|
const swipeTo = (index, options = {}) => {
|
package/es/swipe/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
|
34
34
|
default: true;
|
|
35
35
|
};
|
|
36
36
|
title: ArrayConstructor;
|
|
37
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "dragStart" | "dragEnd")[], "change" | "dragStart" | "dragEnd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
loop: {
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: true;
|
|
@@ -71,6 +71,8 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
|
71
71
|
title: ArrayConstructor;
|
|
72
72
|
}>> & {
|
|
73
73
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onDragStart?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
onDragEnd?: ((...args: any[]) => any) | undefined;
|
|
74
76
|
}, {
|
|
75
77
|
autoplay: string | number;
|
|
76
78
|
loop: boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
|
+
import { Interceptor } from '../utils';
|
|
3
|
+
export declare const swipeCellProps: {
|
|
4
|
+
name: {
|
|
5
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
disabled: BooleanConstructor;
|
|
9
|
+
leftWidth: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
beforeClose: PropType<Interceptor>;
|
|
12
|
+
stopPropagation: BooleanConstructor;
|
|
13
|
+
};
|
|
14
|
+
export declare type SwipeCellProps = ExtractPropTypes<typeof swipeCellProps>;
|
|
15
|
+
declare const _default: import("vue").DefineComponent<{
|
|
16
|
+
name: {
|
|
17
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: BooleanConstructor;
|
|
21
|
+
leftWidth: (NumberConstructor | StringConstructor)[];
|
|
22
|
+
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
23
|
+
beforeClose: PropType<Interceptor>;
|
|
24
|
+
stopPropagation: BooleanConstructor;
|
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close" | "open")[], "open" | "click" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
26
|
+
name: {
|
|
27
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
disabled: BooleanConstructor;
|
|
31
|
+
leftWidth: (NumberConstructor | StringConstructor)[];
|
|
32
|
+
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
33
|
+
beforeClose: PropType<Interceptor>;
|
|
34
|
+
stopPropagation: BooleanConstructor;
|
|
35
|
+
}>> & {
|
|
36
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string | number;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
stopPropagation: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { ref, reactive, computed, defineComponent } from "vue";
|
|
3
|
+
import { clamp, isDef, numericProp, preventDefault, callInterceptor, createNamespace, makeNumericProp } from "../utils/index.mjs";
|
|
4
|
+
import { useRect, useClickAway, useEventListener } from "@zartui/use";
|
|
5
|
+
import { useTouch } from "../composables/use-touch.mjs";
|
|
6
|
+
import { useExpose } from "../composables/use-expose.mjs";
|
|
7
|
+
const [name, bem] = createNamespace("swipe-cell");
|
|
8
|
+
const swipeCellProps = {
|
|
9
|
+
name: makeNumericProp(""),
|
|
10
|
+
disabled: Boolean,
|
|
11
|
+
leftWidth: numericProp,
|
|
12
|
+
rightWidth: numericProp,
|
|
13
|
+
beforeClose: Function,
|
|
14
|
+
stopPropagation: Boolean
|
|
15
|
+
};
|
|
16
|
+
var stdin_default = defineComponent({
|
|
17
|
+
name,
|
|
18
|
+
props: swipeCellProps,
|
|
19
|
+
emits: ["open", "close", "click"],
|
|
20
|
+
setup(props, {
|
|
21
|
+
emit,
|
|
22
|
+
slots
|
|
23
|
+
}) {
|
|
24
|
+
let opened;
|
|
25
|
+
let lockClick;
|
|
26
|
+
let startOffset;
|
|
27
|
+
const root = ref();
|
|
28
|
+
const leftRef = ref();
|
|
29
|
+
const rightRef = ref();
|
|
30
|
+
const state = reactive({
|
|
31
|
+
offset: 0,
|
|
32
|
+
dragging: false
|
|
33
|
+
});
|
|
34
|
+
const touch = useTouch();
|
|
35
|
+
const getWidthByRef = (ref2) => ref2.value ? useRect(ref2).width : 0;
|
|
36
|
+
const leftWidth = computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));
|
|
37
|
+
const rightWidth = computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));
|
|
38
|
+
const open = (side) => {
|
|
39
|
+
state.offset = side === "left" ? leftWidth.value : -rightWidth.value;
|
|
40
|
+
if (!opened) {
|
|
41
|
+
opened = true;
|
|
42
|
+
emit("open", {
|
|
43
|
+
name: props.name,
|
|
44
|
+
position: side
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const close = (position) => {
|
|
49
|
+
state.offset = 0;
|
|
50
|
+
if (opened) {
|
|
51
|
+
opened = false;
|
|
52
|
+
emit("close", {
|
|
53
|
+
name: props.name,
|
|
54
|
+
position
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const toggle = (side) => {
|
|
59
|
+
const offset = Math.abs(state.offset);
|
|
60
|
+
const THRESHOLD = 0.15;
|
|
61
|
+
const threshold = opened ? 1 - THRESHOLD : THRESHOLD;
|
|
62
|
+
const width = side === "left" ? leftWidth.value : rightWidth.value;
|
|
63
|
+
if (width && offset > width * threshold) {
|
|
64
|
+
open(side);
|
|
65
|
+
} else {
|
|
66
|
+
close(side);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const onTouchStart = (event) => {
|
|
70
|
+
if (!props.disabled) {
|
|
71
|
+
startOffset = state.offset;
|
|
72
|
+
touch.start(event);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const onTouchMove = (event) => {
|
|
76
|
+
if (props.disabled) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const {
|
|
80
|
+
deltaX
|
|
81
|
+
} = touch;
|
|
82
|
+
touch.move(event);
|
|
83
|
+
if (touch.isHorizontal()) {
|
|
84
|
+
lockClick = true;
|
|
85
|
+
state.dragging = true;
|
|
86
|
+
const isEdge = !opened || deltaX.value * startOffset < 0;
|
|
87
|
+
if (isEdge) {
|
|
88
|
+
preventDefault(event, props.stopPropagation);
|
|
89
|
+
}
|
|
90
|
+
state.offset = clamp(deltaX.value + startOffset, -rightWidth.value, leftWidth.value);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const onTouchEnd = () => {
|
|
94
|
+
if (state.dragging) {
|
|
95
|
+
state.dragging = false;
|
|
96
|
+
toggle(state.offset > 0 ? "left" : "right");
|
|
97
|
+
setTimeout(() => {
|
|
98
|
+
lockClick = false;
|
|
99
|
+
}, 0);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
const onClick = (position = "outside") => {
|
|
103
|
+
emit("click", position);
|
|
104
|
+
if (opened && !lockClick) {
|
|
105
|
+
callInterceptor(props.beforeClose, {
|
|
106
|
+
args: [{
|
|
107
|
+
name: props.name,
|
|
108
|
+
position
|
|
109
|
+
}],
|
|
110
|
+
done: () => close(position)
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
const getClickHandler = (position, stop) => (event) => {
|
|
115
|
+
if (stop) {
|
|
116
|
+
event.stopPropagation();
|
|
117
|
+
}
|
|
118
|
+
onClick(position);
|
|
119
|
+
};
|
|
120
|
+
const renderSideContent = (side, ref2) => {
|
|
121
|
+
const contentSlot = slots[side];
|
|
122
|
+
if (contentSlot) {
|
|
123
|
+
return _createVNode("div", {
|
|
124
|
+
"ref": ref2,
|
|
125
|
+
"class": bem(side),
|
|
126
|
+
"onClick": getClickHandler(side, true)
|
|
127
|
+
}, [contentSlot()]);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
useExpose({
|
|
131
|
+
open,
|
|
132
|
+
close
|
|
133
|
+
});
|
|
134
|
+
useClickAway(root, () => onClick("outside"), {
|
|
135
|
+
eventName: "touchstart"
|
|
136
|
+
});
|
|
137
|
+
useEventListener("touchmove", onTouchMove, {
|
|
138
|
+
target: root
|
|
139
|
+
});
|
|
140
|
+
return () => {
|
|
141
|
+
var _a;
|
|
142
|
+
const wrapperStyle = {
|
|
143
|
+
transform: `translate3d(${state.offset}px, 0, 0)`,
|
|
144
|
+
transitionDuration: state.dragging ? "0s" : ".6s"
|
|
145
|
+
};
|
|
146
|
+
return _createVNode("div", {
|
|
147
|
+
"ref": root,
|
|
148
|
+
"class": bem(),
|
|
149
|
+
"onClick": getClickHandler("cell", lockClick),
|
|
150
|
+
"onTouchstartPassive": onTouchStart,
|
|
151
|
+
"onTouchend": onTouchEnd,
|
|
152
|
+
"onTouchcancel": onTouchEnd
|
|
153
|
+
}, [_createVNode("div", {
|
|
154
|
+
"class": bem("wrapper"),
|
|
155
|
+
"style": wrapperStyle
|
|
156
|
+
}, [renderSideContent("left", leftRef), (_a = slots.default) == null ? void 0 : _a.call(slots), renderSideContent("right", rightRef)])]);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
export {
|
|
161
|
+
stdin_default as default,
|
|
162
|
+
swipeCellProps
|
|
163
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zt-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.zt-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.zt-swipe-cell__left,.zt-swipe-cell__right{position:absolute;top:0;height:100%}.zt-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.zt-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { SwipeCellProps } from './SwipeCell';
|
|
2
|
+
export declare const SwipeCell: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
3
|
+
name: {
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
disabled: BooleanConstructor;
|
|
8
|
+
leftWidth: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
10
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
11
|
+
stopPropagation: BooleanConstructor;
|
|
12
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close" | "open")[], "open" | "click" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
name: {
|
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
disabled: BooleanConstructor;
|
|
18
|
+
leftWidth: (NumberConstructor | StringConstructor)[];
|
|
19
|
+
rightWidth: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
|
21
|
+
stopPropagation: BooleanConstructor;
|
|
22
|
+
}>> & {
|
|
23
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
name: string | number;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
stopPropagation: boolean;
|
|
30
|
+
}>>;
|
|
31
|
+
export default SwipeCell;
|
|
32
|
+
export { swipeCellProps } from './SwipeCell';
|
|
33
|
+
export type { SwipeCellProps };
|
|
34
|
+
export type { SwipeCellSide, SwipeCellPosition, SwipeCellInstance, } from './types';
|
|
35
|
+
declare module 'vue' {
|
|
36
|
+
interface GlobalComponents {
|
|
37
|
+
ZtSwipeCell: typeof SwipeCell;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
|
2
|
+
import _SwipeCell from "./SwipeCell.mjs";
|
|
3
|
+
const SwipeCell = withInstall(_SwipeCell);
|
|
4
|
+
var stdin_default = SwipeCell;
|
|
5
|
+
import { swipeCellProps } from "./SwipeCell.mjs";
|
|
6
|
+
export {
|
|
7
|
+
SwipeCell,
|
|
8
|
+
stdin_default as default,
|
|
9
|
+
swipeCellProps
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { SwipeCellProps } from './SwipeCell';
|
|
3
|
+
export declare type SwipeCellSide = 'left' | 'right';
|
|
4
|
+
export declare type SwipeCellPosition = SwipeCellSide | 'cell' | 'outside';
|
|
5
|
+
export declare type SwipeCellExpose = {
|
|
6
|
+
open: (side: SwipeCellSide) => void;
|
|
7
|
+
close: (position: SwipeCellPosition) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare type SwipeCellInstance = ComponentPublicInstance<SwipeCellProps, SwipeCellExpose>;
|
|
File without changes
|
package/es/switch/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-switch-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-background: var(--zt-
|
|
1
|
+
:root{--zt-switch-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-border-radius: 18px;--zt-switch-node-background: linear-gradient(135deg, #e6edf0 0%, #ffffff 100%, #ffffff 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid #ffffff99;--zt-switch-node-on-border: var(--zt-switch-node-border);--zt-switch-node-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .15);--zt-switch-node-on-shadow: -2px 2px 4px 0 rgba(45, 75, 115, .4);--zt-switch-background: #fafaff;--zt-switch-on-background: var(--zt-primary-color);--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-duration: var(--zt-duration-base);--zt-switch-disabled-opacity: var(--zt-disabled-opacity)}.zt-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--zt-switch-width);height:var(--zt-switch-height);font-size:var(--zt-switch-size);background:var(--zt-switch-background);border-radius:var(--zt-switch-node-size);cursor:pointer;transition:background-color var(--zt-switch-duration);box-shadow:var(--zt-switch-shadow)}.zt-switch__node{position:absolute;top:1px;left:1px;width:var(--zt-switch-node-size);height:var(--zt-switch-node-size);font-size:inherit;background-image:var(--zt-switch-node-background);border:var(--zt-switch-node-border);border-radius:100%;box-shadow:var(--zt-switch-node-shadow);transition:transform var(--zt-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.zt-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.zt-switch--on{background:var(--zt-switch-on-background);box-shadow:var(--zt-switch-on-shadow)}.zt-switch--on .zt-switch__node{background:var(--zt-switch-node-on-background);border:var(--zt-switch-node-on-border);box-shadow:var(--zt-switch-node-on-shadow);transform:translate(calc(var(--zt-switch-width) - var(--zt-switch-node-size) - 4px))}.zt-switch--on .zt-switch__loading{color:var(--zt-switch-on-background)}.zt-switch--disabled{cursor:not-allowed;opacity:var(--zt-switch-disabled-opacity)}.zt-switch--loading{cursor:default}.zt-theme-dark{--zt-switch-shadow: inset 4px 4px 8px 0 #0f1923;--zt-switch-background: #202d39;--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-node-background: linear-gradient(135deg, #0e1824 0%, #24364b 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid rgba(255, 255, 255, .08);--zt-switch-node-on-border: 1px solid rgba(255, 255, 255, .6);--zt-switch-node-shadow: 0 0 5px 0 rgba(0, 12, 24, .8)}
|
package/es/tabbar-item/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tabbar-item-font-size: var(--zt-font-size-sm);--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-active-background:
|
|
1
|
+
:root{--zt-tabbar-item-font-size: var(--zt-font-size-sm);--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-icon-active-background: rgba(45, 75, 115, .02);--zt-tabbar-item-margin: 8px auto 6px;--zt-tabbar-item-icon-size: 24px;--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-tabbar-item-icon-margin-bottom: var(--zt-padding-base);--zt-tabbar-item-box-width: 36px;--zt-tabbar-item-box-height: 36px;--zt-tabbar-item-box-border-radius: var(--zt-radius-lg);--zt-tabbar-item-icon-border: 0;--zt-tabbar-item-text-padding-top: 4px;--zt-tabbar-item-text-height: 12px;--zt-tabbar-item-icon-background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%)}.zt-tabbar-item{color:var(--zt-tabbar-item-text-color);margin:var(--zt-tabbar-item-margin);-webkit-text-size-adjust:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.zt-tabbar-item__icon{font-size:var(--zt-tabbar-item-icon-size);border:var(--zt-tabbar-item-icon-border);display:flex;justify-content:center;align-items:center;width:var(--zt-tabbar-item-box-width);height:var(--zt-tabbar-item-box-height);box-shadow:var(--zt-tabbar-item-icon-box-shadow);background:var(--zt-tabbar-item-icon-background);border-radius:var(--zt-tabbar-item-box-border-radius)}.zt-tabbar-item__icon--active{border:var(--zt-tabbar-item-icon-border);background:var(--zt-tabbar-item-icon-active-background);box-shadow:inset 4px 4px 8px rgba(45,75,115,.1)}.zt-tabbar-item__text{font-size:var(--zt-tabbar-item-font-size);padding-top:var(--zt-tabbar-item-text-padding-top);transform:scale(.83333);text-align:center;height:var(--zt-tabbar-item-text-height);line-height:var(--zt-tabbar-item-text-height)}.zt-tabbar-item--active{color:var(--zt-tabbar-item-active-color);font-weight:var(--zt-font-bold)}.zt-theme-dark{--zt-tabbar-item-text-color: var(--zt-gray-default);--zt-tabbar-item-icon-active-background: linear-gradient(135deg, #0a1420 0%, #1d2b3d 100%);--zt-tabbar-item-icon-border: 1px solid rgba(151, 151, 151, .12);--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-tabbar-item-icon-background: linear-gradient(135deg, #121d2a 0%, #1d2c3d 100%)}
|