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
package/lib/tabs/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-font-size: var(--zt-font-size-md);--zt-tab-active-font-size: var(--zt-font-size-lg);--zt-tab-active-opacity: .2;--zt-tab-disabled-font-size: var(--zt-font-size-md);--zt-tab-line-height: var(--zt-line-height-md);--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-tab-font-size);line-height:var(--zt-tab-line-height);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-tab-active-font-size);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-tab-disabled-font-size)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-
|
|
1
|
+
:root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-font-size: var(--zt-font-size-md);--zt-tab-active-font-size: var(--zt-font-size-lg);--zt-tab-active-opacity: .2;--zt-tab-disabled-font-size: var(--zt-font-size-md);--zt-tab-line-height: var(--zt-line-height-md);--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-tab-font-size);line-height:var(--zt-tab-line-height);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-tab-active-font-size);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-tab-disabled-font-size)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
|
package/lib/tabs/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/tag/Tag.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const tagProps: {
|
|
|
17
17
|
borderColor: StringConstructor;
|
|
18
18
|
closeable: BooleanConstructor;
|
|
19
19
|
icon: StringConstructor;
|
|
20
|
+
image: StringConstructor;
|
|
20
21
|
iconPrefix: StringConstructor;
|
|
21
22
|
iconColor: StringConstructor;
|
|
22
23
|
badge: BooleanConstructor;
|
|
@@ -28,6 +29,11 @@ export declare const tagProps: {
|
|
|
28
29
|
type: NumberConstructor;
|
|
29
30
|
default: number;
|
|
30
31
|
};
|
|
32
|
+
stamp: BooleanConstructor;
|
|
33
|
+
stampDiameter: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
31
37
|
};
|
|
32
38
|
export declare type TagProps = ExtractPropTypes<typeof tagProps>;
|
|
33
39
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -47,6 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
53
|
borderColor: StringConstructor;
|
|
48
54
|
closeable: BooleanConstructor;
|
|
49
55
|
icon: StringConstructor;
|
|
56
|
+
image: StringConstructor;
|
|
50
57
|
iconPrefix: StringConstructor;
|
|
51
58
|
iconColor: StringConstructor;
|
|
52
59
|
badge: BooleanConstructor;
|
|
@@ -58,6 +65,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
65
|
type: NumberConstructor;
|
|
59
66
|
default: number;
|
|
60
67
|
};
|
|
68
|
+
stamp: BooleanConstructor;
|
|
69
|
+
stampDiameter: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
61
73
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
62
74
|
mark: BooleanConstructor;
|
|
63
75
|
show: {
|
|
@@ -75,6 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
87
|
borderColor: StringConstructor;
|
|
76
88
|
closeable: BooleanConstructor;
|
|
77
89
|
icon: StringConstructor;
|
|
90
|
+
image: StringConstructor;
|
|
78
91
|
iconPrefix: StringConstructor;
|
|
79
92
|
iconColor: StringConstructor;
|
|
80
93
|
badge: BooleanConstructor;
|
|
@@ -86,17 +99,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
99
|
type: NumberConstructor;
|
|
87
100
|
default: number;
|
|
88
101
|
};
|
|
102
|
+
stamp: BooleanConstructor;
|
|
103
|
+
stampDiameter: {
|
|
104
|
+
type: NumberConstructor;
|
|
105
|
+
default: number;
|
|
106
|
+
};
|
|
89
107
|
}>> & {
|
|
90
108
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
91
109
|
}, {
|
|
110
|
+
mark: boolean;
|
|
92
111
|
type: TagType;
|
|
93
112
|
badge: boolean;
|
|
94
|
-
mark: boolean;
|
|
95
113
|
show: boolean;
|
|
96
114
|
round: boolean;
|
|
97
115
|
closeable: boolean;
|
|
98
116
|
plain: boolean;
|
|
99
117
|
badgeWidth: number;
|
|
100
118
|
badgeHeight: number;
|
|
119
|
+
stamp: boolean;
|
|
120
|
+
stampDiameter: number;
|
|
101
121
|
}>;
|
|
102
122
|
export default _default;
|
package/lib/tag/Tag.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name2 in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
var stdin_exports = {};
|
|
19
29
|
__export(stdin_exports, {
|
|
@@ -26,6 +36,7 @@ var import_vue2 = require("vue");
|
|
|
26
36
|
var import_utils = require("../utils");
|
|
27
37
|
var import_icon = require("../icon");
|
|
28
38
|
var import_parse = require("../utils/parse");
|
|
39
|
+
var import_image = __toESM(require("../image"));
|
|
29
40
|
const [name, bem] = (0, import_utils.createNamespace)("tag");
|
|
30
41
|
const tagProps = {
|
|
31
42
|
mark: Boolean,
|
|
@@ -38,11 +49,14 @@ const tagProps = {
|
|
|
38
49
|
borderColor: String,
|
|
39
50
|
closeable: Boolean,
|
|
40
51
|
icon: String,
|
|
52
|
+
image: String,
|
|
41
53
|
iconPrefix: String,
|
|
42
54
|
iconColor: String,
|
|
43
55
|
badge: Boolean,
|
|
44
56
|
badgeWidth: (0, import_utils.makeNumberProp)(50),
|
|
45
|
-
badgeHeight: (0, import_utils.makeNumberProp)(50)
|
|
57
|
+
badgeHeight: (0, import_utils.makeNumberProp)(50),
|
|
58
|
+
stamp: Boolean,
|
|
59
|
+
stampDiameter: (0, import_utils.makeNumberProp)(60)
|
|
46
60
|
};
|
|
47
61
|
var stdin_default = (0, import_vue2.defineComponent)({
|
|
48
62
|
name,
|
|
@@ -98,23 +112,72 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
98
112
|
"class": [bem("close"), import_utils.HAPTICS_FEEDBACK],
|
|
99
113
|
"onClick": onClose
|
|
100
114
|
}, null);
|
|
101
|
-
const LeftIcon =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
115
|
+
const LeftIcon = () => {
|
|
116
|
+
if (props.image) {
|
|
117
|
+
return (0, import_vue.createVNode)(import_image.default, {
|
|
118
|
+
"class": bem("image"),
|
|
119
|
+
"src": props.image
|
|
120
|
+
}, null);
|
|
121
|
+
} else if (props.icon) {
|
|
122
|
+
return (0, import_vue.createVNode)(import_icon.Icon, {
|
|
123
|
+
"name": props.icon,
|
|
124
|
+
"class": bem("icon"),
|
|
125
|
+
"classPrefix": props.iconPrefix,
|
|
126
|
+
"style": {
|
|
127
|
+
color: props.iconColor
|
|
128
|
+
}
|
|
129
|
+
}, null);
|
|
107
130
|
}
|
|
108
|
-
}
|
|
131
|
+
};
|
|
109
132
|
return (0, import_vue.createVNode)("span", {
|
|
110
133
|
"style": getStyle(),
|
|
111
134
|
"class": bem([classes, type])
|
|
112
|
-
}, [LeftIcon, (_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
|
135
|
+
}, [LeftIcon(), (_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
|
|
136
|
+
};
|
|
137
|
+
const getStampStyle = () => ({
|
|
138
|
+
color: props.color || props.textColor,
|
|
139
|
+
width: props.stampDiameter + "px",
|
|
140
|
+
height: props.stampDiameter + "px"
|
|
141
|
+
});
|
|
142
|
+
const renderStampTag = () => {
|
|
143
|
+
var _a;
|
|
144
|
+
const {
|
|
145
|
+
type
|
|
146
|
+
} = props;
|
|
147
|
+
return (0, import_vue.createVNode)("svg", {
|
|
148
|
+
"style": getStampStyle(),
|
|
149
|
+
"class": bem("stamp", [type]),
|
|
150
|
+
"viewBox": "0 0 60 60",
|
|
151
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
152
|
+
}, [(0, import_vue.createVNode)("g", {
|
|
153
|
+
"stroke": "none",
|
|
154
|
+
"stroke-width": "1",
|
|
155
|
+
"fill": "none",
|
|
156
|
+
"fill-rule": "evenodd"
|
|
157
|
+
}, [(0, import_vue.createVNode)("g", {
|
|
158
|
+
"transform": "translate(-334.000000, -500.000000)",
|
|
159
|
+
"fill": "currentColor"
|
|
160
|
+
}, [(0, import_vue.createVNode)("g", {
|
|
161
|
+
"transform": "translate(16.000000, 496.000000)"
|
|
162
|
+
}, [(0, import_vue.createVNode)("g", {
|
|
163
|
+
"transform": "translate(318.000000, 4.000000)"
|
|
164
|
+
}, [(0, import_vue.createVNode)("path", {
|
|
165
|
+
"d": "M30,54 C38.0297784,54 45.1385247,50.0565924 49.4952837,44.0007323 L51.9121045,44.0009744 C47.2917236,51.217056 39.20442,56 30,56 C20.79558,56 12.7082764,51.217056 8.08789552,44.0009744 L10.5047163,44.0007323 C14.8614753,50.0565924 21.9702216,54 30,54 Z M24.4914569,48.5 L25.1164192,49.7519142 L26.5,49.9601927 L25.5057346,50.9266793 L25.7498261,52.3 L24.5100062,51.6450994 L23.2778261,52.2855681 L23.5057346,50.915003 L22.5,49.9368402 L23.8812192,49.7447029 L24.4914569,48.5 Z M35.4914569,48.5 L36.1164192,49.7519142 L37.5,49.9601927 L36.5057346,50.9266793 L36.7498261,52.3 L35.5100062,51.6450994 L34.2778261,52.2855681 L34.5057346,50.915003 L33.5,49.9368402 L34.8812192,49.7447029 L35.4914569,48.5 Z M30,46 C32.8118899,46 35.4543634,45.274642 37.7505137,44.0008326 L41.3137959,44.0007062 C38.2224755,46.5018817 34.2861899,48 30,48 C25.7138101,48 21.7775245,46.5018817 18.6862041,44.0007062 L22.2494863,44.0008326 C24.5456366,45.274642 27.1881101,46 30,46 Z M16.4914569,44 L17.1164192,45.2519142 L18.5,45.4601927 L17.5057346,46.4266793 L17.7498261,47.8 L16.5100062,47.1450994 L15.2778261,47.7855681 L15.5057346,46.415003 L14.5,45.4368402 L15.8812192,45.2447029 L16.4914569,44 Z M43.4914569,44 L44.1164192,45.2519142 L45.5,45.4601927 L44.5057346,46.4266793 L44.7498261,47.8 L43.5100062,47.1450994 L42.2778261,47.7855681 L42.5057346,46.415003 L41.5,45.4368402 L42.8812192,45.2447029 L43.4914569,44 Z M56,18 C58.209139,18 60,19.790861 60,22 L60,22 L60,38.0000356 C60,40.2091746 58.209139,42.0000356 56,42.0000356 L56,42.0000356 L4,42.0000356 C1.790861,42.0000356 2.705415e-16,40.2091746 0,38.0000356 L0,38.0000356 L0,22 C-2.705415e-16,19.790861 1.790861,18 4,18 L4,18 Z M55,20 L5,20 C3.34314575,20 2,21.3431458 2,23 L2,37 C2,38.6568542 3.34314575,40 5,40 L55,40 C56.6568542,40 58,38.6568542 58,37 L58,23 C58,21.3431458 56.6568542,20 55,20 Z M30,4 C39.2048436,4 47.2924679,8.78338418 51.9127423,16.0000219 L49.4960029,16.0002674 C45.139307,9.94384156 38.0302203,6 30,6 C21.9697797,6 14.860693,9.94384156 10.5039971,16.0002674 L8.08725766,16.0000219 C12.7075321,8.78338418 20.7951564,4 30,4 Z M30,12 C34.2866501,12 38.2233209,13.49844 41.3147917,16.0000995 L37.7525036,16.0002715 C35.4558902,14.7257772 32.8127023,14 30,14 C27.1872977,14 24.5441098,14.7257772 22.2474964,16.0002715 L18.6852083,16.0000995 C21.7766791,13.49844 25.7133499,12 30,12 Z M16.4914569,12 L17.1164192,13.2519142 L18.5,13.4601927 L17.5057346,14.4266793 L17.7498261,15.8 L16.5100062,15.1450994 L15.2778261,15.7855681 L15.5057346,14.415003 L14.5,13.4368402 L15.8812192,13.2447029 L16.4914569,12 Z M43.4914569,12 L44.1164192,13.2519142 L45.5,13.4601927 L44.5057346,14.4266793 L44.7498261,15.8 L43.5100062,15.1450994 L42.2778261,15.7855681 L42.5057346,14.415003 L41.5,13.4368402 L42.8812192,13.2447029 L43.4914569,12 Z M24.4914569,7.5 L25.1164192,8.75191416 L26.5,8.96019274 L25.5057346,9.92667928 L25.7498261,11.3 L24.5100062,10.6450994 L23.2778261,11.2855681 L23.5057346,9.91500302 L22.5,8.93684023 L23.8812192,8.7447029 L24.4914569,7.5 Z M35.4914569,7.5 L36.1164192,8.75191416 L37.5,8.96019274 L36.5057346,9.92667928 L36.7498261,11.3 L35.5100062,10.6450994 L34.2778261,11.2855681 L34.5057346,9.91500302 L33.5,8.93684023 L34.8812192,8.7447029 L35.4914569,7.5 Z",
|
|
166
|
+
"transform": "translate(30.000000, 30.000000) rotate(35.000000) translate(-30.000000, -30.000000) "
|
|
167
|
+
}, null)])])])]), (0, import_vue.createVNode)("foreignObject", {
|
|
168
|
+
"width": "50px",
|
|
169
|
+
"height": "24px",
|
|
170
|
+
"x": "5",
|
|
171
|
+
"y": "19",
|
|
172
|
+
"transform": "rotate(35, 30, 30)"
|
|
173
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
174
|
+
"class": bem("stamp", ["text"])
|
|
175
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])])]);
|
|
113
176
|
};
|
|
114
177
|
return () => (0, import_vue.createVNode)(import_vue2.Transition, {
|
|
115
178
|
"name": props.closeable ? "zt-fade" : void 0
|
|
116
179
|
}, {
|
|
117
|
-
default: () => [props.show ? renderTag() : null]
|
|
180
|
+
default: () => [props.stamp && props.show ? renderStampTag() : props.show ? renderTag() : null]
|
|
118
181
|
});
|
|
119
182
|
}
|
|
120
183
|
});
|
package/lib/tag/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tag-padding:
|
|
1
|
+
:root{--zt-tag-padding: var(--zt-padding-base) var(--zt-padding-sm);--zt-tag-text-color: var(--zt-white);--zt-tag-font-size: var(--zt-font-size-sm);--zt-tag-radius: 2px;--zt-tag-line-height: 16px;--zt-tag-icon-gap: 2px;--zt-tag-icon-size: 16px;--zt-tag-close-icon-size: 20px;--zt-tag-round-radius: 12px;--zt-tag-round-line-height: 16px;--zt-tag-badge-padding: 0 var(--zt-padding-sm);--zt-tag-closeable-font-size: var(--zt-font-size-md);--zt-tag-closeable-line-height: 20px;--zt-tag-closeable-radius: 14px;--zt-tag-closeable-background: var(--zt-gray-a6);--zt-tag-danger-color: var(--zt-danger-color);--zt-tag-primary-color: var(--zt-primary-color);--zt-tag-success-color: var(--zt-success-color);--zt-tag-warning-color: var(--zt-warning-color);--zt-tag-default-color: var(--zt-gray-a08);--zt-tag-plain-background: var(--zt-background-2);--zt-tag-stamp-diameter: 60px}.zt-tag{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;padding:var(--zt-tag-padding);color:var(--zt-tag-text-color);font-size:var(--zt-tag-font-size);line-height:var(--zt-tag-line-height);border-radius:var(--zt-tag-radius);overflow:hidden;word-break:break-all}.zt-tag__icon{font-size:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag__image{width:var(--zt-tag-icon-size);height:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag--default{background:var(--zt-tag-default-color)}.zt-tag--default.zt-tag--plain{color:var(--zt-tag-default-color)}.zt-tag--danger{background:var(--zt-tag-danger-color)}.zt-tag--danger.zt-tag--plain{color:var(--zt-tag-danger-color)}.zt-tag--primary{background:var(--zt-tag-primary-color)}.zt-tag--primary.zt-tag--plain{color:var(--zt-tag-primary-color)}.zt-tag--success{background:var(--zt-tag-success-color)}.zt-tag--success.zt-tag--plain{color:var(--zt-tag-success-color)}.zt-tag--warning{background:var(--zt-tag-warning-color)}.zt-tag--warning.zt-tag--plain{color:var(--zt-tag-warning-color)}.zt-tag--plain{background:var(--zt-tag-plain-background);border-color:currentColor}.zt-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.zt-tag--mark{border-radius:0 var(--zt-tag-round-radius) var(--zt-tag-round-radius) 0}.zt-tag--mark:after{display:block;width:2px;content:""}.zt-tag--round{border-radius:var(--zt-tag-round-radius);line-height:var(--zt-tag-round-line-height)}.zt-tag__close{font-size:var(--zt-tag-close-icon-size);margin-left:2px}.zt-tag--closeable{font-size:var(--zt-tag-closeable-font-size);line-height:var(--zt-tag-closeable-line-height);background:var(--zt-tag-closeable-background);border-radius:var(--zt-tag-closeable-radius)}.zt-tag--badge{position:absolute;text-align:center;display:block;box-sizing:border-box;padding:var(--zt-tag-badge-padding)}.zt-tag__stamp{width:var(--zt-tag-stamp-diameter);height:var(--zt-tag-stamp-diameter);background:rgba(0,0,0,0);padding:0}.zt-tag__stamp--text{width:50px;height:24px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-align:center;font-weight:600}.zt-tag__stamp--default{color:var(--zt-gray-a6)}.zt-tag__stamp--danger{color:var(--zt-tag-danger-color)}.zt-tag__stamp--primary{color:var(--zt-tag-primary-color)}.zt-tag__stamp--success{color:var(--zt-tag-success-color)}.zt-tag__stamp--warning{color:var(--zt-tag-warning-color)}.zt-theme-dark{--zt-tag-closeable-background: rgba(255, 255, 255, .1)}
|
package/lib/tag/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
15
15
|
borderColor: StringConstructor;
|
|
16
16
|
closeable: BooleanConstructor;
|
|
17
17
|
icon: StringConstructor;
|
|
18
|
+
image: StringConstructor;
|
|
18
19
|
iconPrefix: StringConstructor;
|
|
19
20
|
iconColor: StringConstructor;
|
|
20
21
|
badge: BooleanConstructor;
|
|
@@ -26,6 +27,11 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
26
27
|
type: NumberConstructor;
|
|
27
28
|
default: number;
|
|
28
29
|
};
|
|
30
|
+
stamp: BooleanConstructor;
|
|
31
|
+
stampDiameter: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
29
35
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
36
|
mark: BooleanConstructor;
|
|
31
37
|
show: {
|
|
@@ -43,6 +49,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
43
49
|
borderColor: StringConstructor;
|
|
44
50
|
closeable: BooleanConstructor;
|
|
45
51
|
icon: StringConstructor;
|
|
52
|
+
image: StringConstructor;
|
|
46
53
|
iconPrefix: StringConstructor;
|
|
47
54
|
iconColor: StringConstructor;
|
|
48
55
|
badge: BooleanConstructor;
|
|
@@ -54,18 +61,25 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
54
61
|
type: NumberConstructor;
|
|
55
62
|
default: number;
|
|
56
63
|
};
|
|
64
|
+
stamp: BooleanConstructor;
|
|
65
|
+
stampDiameter: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
57
69
|
}>> & {
|
|
58
70
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
59
71
|
}, {
|
|
72
|
+
mark: boolean;
|
|
60
73
|
type: import("./Tag").TagType;
|
|
61
74
|
badge: boolean;
|
|
62
|
-
mark: boolean;
|
|
63
75
|
show: boolean;
|
|
64
76
|
round: boolean;
|
|
65
77
|
closeable: boolean;
|
|
66
78
|
plain: boolean;
|
|
67
79
|
badgeWidth: number;
|
|
68
80
|
badgeHeight: number;
|
|
81
|
+
stamp: boolean;
|
|
82
|
+
stampDiameter: number;
|
|
69
83
|
}>>;
|
|
70
84
|
export default Tag;
|
|
71
85
|
export { tagProps } from './Tag';
|
package/lib/tag/index.js
CHANGED
|
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
19
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
24
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
25
|
mod
|
|
22
26
|
));
|
package/lib/tag/style/index.js
CHANGED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const textEllipsisProps: {
|
|
3
|
+
rows: {
|
|
4
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
content: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
expandText: {
|
|
12
|
+
type: import("vue").PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
collapseText: {
|
|
16
|
+
type: import("vue").PropType<string>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
highlight: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare type TextEllipsisProps = ExtractPropTypes<typeof textEllipsisProps>;
|
|
25
|
+
declare const _default: import("vue").DefineComponent<{
|
|
26
|
+
rows: {
|
|
27
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
content: {
|
|
31
|
+
type: import("vue").PropType<string>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
expandText: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
collapseText: {
|
|
39
|
+
type: import("vue").PropType<string>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
highlight: {
|
|
43
|
+
type: import("vue").PropType<string>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickAction"[], "clickAction", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
47
|
+
rows: {
|
|
48
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
content: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
expandText: {
|
|
56
|
+
type: import("vue").PropType<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
collapseText: {
|
|
60
|
+
type: import("vue").PropType<string>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
highlight: {
|
|
64
|
+
type: import("vue").PropType<string>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
}>> & {
|
|
68
|
+
onClickAction?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
content: string;
|
|
71
|
+
rows: string | number;
|
|
72
|
+
expandText: string;
|
|
73
|
+
collapseText: string;
|
|
74
|
+
highlight: string;
|
|
75
|
+
}>;
|
|
76
|
+
export default _default;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name2 in all)
|
|
7
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var stdin_exports = {};
|
|
19
|
+
__export(stdin_exports, {
|
|
20
|
+
default: () => stdin_default,
|
|
21
|
+
textEllipsisProps: () => textEllipsisProps
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
24
|
+
var import_vue = require("vue");
|
|
25
|
+
var import_vue2 = require("vue");
|
|
26
|
+
var import_use = require("@zartui/use");
|
|
27
|
+
var import_utils = require("../utils");
|
|
28
|
+
const [name, bem] = (0, import_utils.createNamespace)("text-ellipsis");
|
|
29
|
+
const textEllipsisProps = {
|
|
30
|
+
rows: (0, import_utils.makeNumericProp)(1),
|
|
31
|
+
content: (0, import_utils.makeStringProp)(""),
|
|
32
|
+
expandText: (0, import_utils.makeStringProp)(""),
|
|
33
|
+
collapseText: (0, import_utils.makeStringProp)(""),
|
|
34
|
+
highlight: (0, import_utils.makeStringProp)("")
|
|
35
|
+
};
|
|
36
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
|
37
|
+
name,
|
|
38
|
+
props: textEllipsisProps,
|
|
39
|
+
emits: ["clickAction"],
|
|
40
|
+
setup(props, {
|
|
41
|
+
emit
|
|
42
|
+
}) {
|
|
43
|
+
const text = (0, import_vue2.ref)("");
|
|
44
|
+
const expanded = (0, import_vue2.ref)(false);
|
|
45
|
+
const hasAction = (0, import_vue2.ref)(false);
|
|
46
|
+
const root = (0, import_vue2.ref)();
|
|
47
|
+
const pxToNum = (value) => {
|
|
48
|
+
if (!value)
|
|
49
|
+
return 0;
|
|
50
|
+
const match = value.match(/^\d*(\.\d*)?/);
|
|
51
|
+
return match ? Number(match[0]) : 0;
|
|
52
|
+
};
|
|
53
|
+
const calcEllipsised = () => {
|
|
54
|
+
const cloneContainer = () => {
|
|
55
|
+
if (!root.value)
|
|
56
|
+
return;
|
|
57
|
+
const originStyle = window.getComputedStyle(root.value);
|
|
58
|
+
const container2 = document.createElement("div");
|
|
59
|
+
const styleNames = Array.prototype.slice.apply(originStyle);
|
|
60
|
+
styleNames.forEach((name2) => {
|
|
61
|
+
container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
|
62
|
+
});
|
|
63
|
+
container2.style.position = "fixed";
|
|
64
|
+
container2.style.zIndex = "-9999";
|
|
65
|
+
container2.style.top = "-9999px";
|
|
66
|
+
container2.style.height = "auto";
|
|
67
|
+
container2.style.minHeight = "auto";
|
|
68
|
+
container2.style.maxHeight = "auto";
|
|
69
|
+
container2.innerText = props.content;
|
|
70
|
+
document.body.appendChild(container2);
|
|
71
|
+
return container2;
|
|
72
|
+
};
|
|
73
|
+
const calcEllipsisText = (container2, maxHeight2) => {
|
|
74
|
+
const {
|
|
75
|
+
content,
|
|
76
|
+
expandText
|
|
77
|
+
} = props;
|
|
78
|
+
const dot = "...";
|
|
79
|
+
let left = 0;
|
|
80
|
+
let right = content.length;
|
|
81
|
+
let res = -1;
|
|
82
|
+
while (left <= right) {
|
|
83
|
+
const mid = Math.floor((left + right) / 2);
|
|
84
|
+
container2.innerText = content.slice(0, mid) + dot + expandText;
|
|
85
|
+
if (container2.offsetHeight <= maxHeight2) {
|
|
86
|
+
left = mid + 1;
|
|
87
|
+
res = mid;
|
|
88
|
+
} else {
|
|
89
|
+
right = mid - 1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return content.slice(0, res) + dot;
|
|
93
|
+
};
|
|
94
|
+
const container = cloneContainer();
|
|
95
|
+
if (!container)
|
|
96
|
+
return;
|
|
97
|
+
const {
|
|
98
|
+
paddingBottom,
|
|
99
|
+
paddingTop,
|
|
100
|
+
lineHeight
|
|
101
|
+
} = container.style;
|
|
102
|
+
const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
|
|
103
|
+
if (maxHeight < container.offsetHeight) {
|
|
104
|
+
hasAction.value = true;
|
|
105
|
+
text.value = calcEllipsisText(container, maxHeight);
|
|
106
|
+
} else {
|
|
107
|
+
hasAction.value = false;
|
|
108
|
+
text.value = props.content;
|
|
109
|
+
}
|
|
110
|
+
document.body.removeChild(container);
|
|
111
|
+
};
|
|
112
|
+
const onClickAction = (event) => {
|
|
113
|
+
expanded.value = !expanded.value;
|
|
114
|
+
emit("clickAction", event);
|
|
115
|
+
};
|
|
116
|
+
const formatSearchKeyword = (keywords, text2) => {
|
|
117
|
+
if (!keywords)
|
|
118
|
+
return text2;
|
|
119
|
+
const replaceReg = new RegExp(keywords, "ig");
|
|
120
|
+
const replaceString = `<span style="color: #0091FA; background: rgba(0, 145, 250, 0.1);">${keywords}</span>`;
|
|
121
|
+
return text2.replace(replaceReg, replaceString);
|
|
122
|
+
};
|
|
123
|
+
const renderAction = () => (0, import_vue.createVNode)("span", {
|
|
124
|
+
"class": bem("action"),
|
|
125
|
+
"onClick": onClickAction
|
|
126
|
+
}, [expanded.value ? props.collapseText : props.expandText]);
|
|
127
|
+
(0, import_vue2.onMounted)(calcEllipsised);
|
|
128
|
+
(0, import_vue2.watch)(() => [props.content, props.rows], calcEllipsised);
|
|
129
|
+
(0, import_use.useEventListener)("resize", calcEllipsised);
|
|
130
|
+
return () => (0, import_vue.createVNode)("div", {
|
|
131
|
+
"ref": root,
|
|
132
|
+
"class": bem()
|
|
133
|
+
}, [(0, import_vue.createVNode)("span", {
|
|
134
|
+
"innerHTML": formatSearchKeyword(props.highlight, expanded.value ? props.content : text.value)
|
|
135
|
+
}, null), hasAction.value ? renderAction() : null]);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-text-ellipsis-line-height:calc(200% - 8px);--zt-text-ellipsis-action-color: var(--zt-blue)}.zt-text-ellipsis{line-height:var(--zt-text-ellipsis-line-height);white-space:pre-wrap;word-break:break-all}.zt-text-ellipsis__action{cursor:pointer;color:var(--zt-text-ellipsis-action-color)}.zt-text-ellipsis__action:active{opacity:var(--zt-active-opacity)}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const TextEllipsis: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
rows: {
|
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
content: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
expandText: {
|
|
11
|
+
type: import("vue").PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
collapseText: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
highlight: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickAction"[], "clickAction", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
rows: {
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
content: {
|
|
28
|
+
type: import("vue").PropType<string>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
expandText: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
collapseText: {
|
|
36
|
+
type: import("vue").PropType<string>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
highlight: {
|
|
40
|
+
type: import("vue").PropType<string>;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>> & {
|
|
44
|
+
onClickAction?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
content: string;
|
|
47
|
+
rows: string | number;
|
|
48
|
+
expandText: string;
|
|
49
|
+
collapseText: string;
|
|
50
|
+
highlight: string;
|
|
51
|
+
}>>;
|
|
52
|
+
export default TextEllipsis;
|
|
53
|
+
export { textEllipsisProps } from './TextEllipsis';
|
|
54
|
+
export type { TextEllipsisProps } from './TextEllipsis';
|
|
55
|
+
export type { TextEllipsisThemeVars } from './types';
|
|
56
|
+
declare module 'vue' {
|
|
57
|
+
interface GlobalComponents {
|
|
58
|
+
ZtTextEllipsis: typeof TextEllipsis;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var stdin_exports = {};
|
|
29
|
+
__export(stdin_exports, {
|
|
30
|
+
TextEllipsis: () => TextEllipsis,
|
|
31
|
+
default: () => stdin_default,
|
|
32
|
+
textEllipsisProps: () => import_TextEllipsis2.textEllipsisProps
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
35
|
+
var import_utils = require("../utils");
|
|
36
|
+
var import_TextEllipsis = __toESM(require("./TextEllipsis"));
|
|
37
|
+
var import_TextEllipsis2 = require("./TextEllipsis");
|
|
38
|
+
const TextEllipsis = (0, import_utils.withInstall)(import_TextEllipsis.default);
|
|
39
|
+
var stdin_default = TextEllipsis;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|