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
|
@@ -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>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var stdin_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
package/lib/swipe-item/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/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/lib/switch/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/tab/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/tabbar/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
|
));
|
|
@@ -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%)}
|
package/lib/tabbar-item/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
|
));
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
import type { ExtractPropTypes } from 'vue';
|
|
3
|
+
import { SortOrderType } from './types';
|
|
4
|
+
export declare type TableBodyOption = {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export declare type TableHeaderOption = {
|
|
8
|
+
label: string;
|
|
9
|
+
key: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
fixed?: boolean;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
click?: (data: TableBodyOption, index?: number) => void;
|
|
14
|
+
defaultSortOrder?: SortOrderType;
|
|
15
|
+
sorter?: boolean;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
export declare const tableProps: {
|
|
19
|
+
headList: {
|
|
20
|
+
type: import("vue").PropType<TableHeaderOption[]>;
|
|
21
|
+
default: () => TableHeaderOption[];
|
|
22
|
+
};
|
|
23
|
+
dataList: {
|
|
24
|
+
type: import("vue").PropType<TableBodyOption[]>;
|
|
25
|
+
default: () => TableBodyOption[];
|
|
26
|
+
};
|
|
27
|
+
striped: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: true;
|
|
30
|
+
};
|
|
31
|
+
emptyValue: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
loading: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
skeletonRow: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
border: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare type TableProps = ExtractPropTypes<typeof tableProps>;
|
|
49
|
+
declare const _default: import("vue").DefineComponent<{
|
|
50
|
+
headList: {
|
|
51
|
+
type: import("vue").PropType<TableHeaderOption[]>;
|
|
52
|
+
default: () => TableHeaderOption[];
|
|
53
|
+
};
|
|
54
|
+
dataList: {
|
|
55
|
+
type: import("vue").PropType<TableBodyOption[]>;
|
|
56
|
+
default: () => TableBodyOption[];
|
|
57
|
+
};
|
|
58
|
+
striped: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: true;
|
|
61
|
+
};
|
|
62
|
+
emptyValue: {
|
|
63
|
+
type: import("vue").PropType<string>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
loading: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
skeletonRow: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
border: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "sort"[], "sort", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
79
|
+
headList: {
|
|
80
|
+
type: import("vue").PropType<TableHeaderOption[]>;
|
|
81
|
+
default: () => TableHeaderOption[];
|
|
82
|
+
};
|
|
83
|
+
dataList: {
|
|
84
|
+
type: import("vue").PropType<TableBodyOption[]>;
|
|
85
|
+
default: () => TableBodyOption[];
|
|
86
|
+
};
|
|
87
|
+
striped: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: true;
|
|
90
|
+
};
|
|
91
|
+
emptyValue: {
|
|
92
|
+
type: import("vue").PropType<string>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
loading: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
skeletonRow: {
|
|
100
|
+
type: NumberConstructor;
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
border: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
}>> & {
|
|
108
|
+
onSort?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
border: boolean;
|
|
111
|
+
loading: boolean;
|
|
112
|
+
headList: TableHeaderOption[];
|
|
113
|
+
dataList: TableBodyOption[];
|
|
114
|
+
striped: boolean;
|
|
115
|
+
emptyValue: string;
|
|
116
|
+
skeletonRow: number;
|
|
117
|
+
}>;
|
|
118
|
+
export default _default;
|
|
@@ -0,0 +1,228 @@
|
|
|
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
|
+
tableProps: () => tableProps
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
24
|
+
var import_vue = require("vue");
|
|
25
|
+
var import_vue2 = require("vue");
|
|
26
|
+
var import_utils = require("../utils");
|
|
27
|
+
var import_icon = require("../icon");
|
|
28
|
+
var import_types = require("./types");
|
|
29
|
+
const [name, bem] = (0, import_utils.createNamespace)("table");
|
|
30
|
+
const tableProps = {
|
|
31
|
+
headList: (0, import_utils.makeArrayProp)(),
|
|
32
|
+
dataList: (0, import_utils.makeArrayProp)(),
|
|
33
|
+
striped: import_utils.truthProp,
|
|
34
|
+
emptyValue: (0, import_utils.makeStringProp)("-"),
|
|
35
|
+
loading: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
skeletonRow: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 6
|
|
42
|
+
},
|
|
43
|
+
border: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var stdin_default = (0, import_vue2.defineComponent)({
|
|
49
|
+
name,
|
|
50
|
+
props: tableProps,
|
|
51
|
+
emits: ["sort"],
|
|
52
|
+
setup(props, {
|
|
53
|
+
emit
|
|
54
|
+
}) {
|
|
55
|
+
const sortOrder = (0, import_vue2.ref)("");
|
|
56
|
+
const sortKey = (0, import_vue2.ref)("");
|
|
57
|
+
const fixedColumn = (0, import_vue2.computed)(() => props.headList.filter((v) => v.fixed));
|
|
58
|
+
const formatColumns = (0, import_vue2.computed)(() => {
|
|
59
|
+
const columns = [];
|
|
60
|
+
let left = 0;
|
|
61
|
+
props.headList.forEach((element, index) => {
|
|
62
|
+
var _a;
|
|
63
|
+
const column = Object.assign({}, element);
|
|
64
|
+
const preColumn = props.headList[index - 1];
|
|
65
|
+
const nextColumn = props.headList[index + 1];
|
|
66
|
+
if (preColumn) {
|
|
67
|
+
left += Number((_a = preColumn.width) == null ? void 0 : _a.split("px")[0]);
|
|
68
|
+
column.left = `${left}px`;
|
|
69
|
+
} else {
|
|
70
|
+
column.left = 0;
|
|
71
|
+
}
|
|
72
|
+
if (element.fixed && !nextColumn.fixed) {
|
|
73
|
+
column.lastFixLeft = true;
|
|
74
|
+
}
|
|
75
|
+
columns.push(column);
|
|
76
|
+
});
|
|
77
|
+
return columns;
|
|
78
|
+
});
|
|
79
|
+
const pingedLeft = (0, import_vue2.ref)(false);
|
|
80
|
+
const resortHeadList = (0, import_vue2.computed)(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
|
|
81
|
+
(0, import_vue2.onMounted)(() => {
|
|
82
|
+
const fixedIndexList = props.headList.map((v, i) => {
|
|
83
|
+
if (v.sorter && v.defaultSortOrder) {
|
|
84
|
+
sortOrder.value = v.defaultSortOrder || "";
|
|
85
|
+
sortKey.value = v.key;
|
|
86
|
+
}
|
|
87
|
+
if (v.fixed) {
|
|
88
|
+
return `tableHead${i}`;
|
|
89
|
+
} else {
|
|
90
|
+
return "";
|
|
91
|
+
}
|
|
92
|
+
}).filter((v) => v !== "");
|
|
93
|
+
if (fixedIndexList.length > 0) {
|
|
94
|
+
fixedIndexList.forEach((current, index) => {
|
|
95
|
+
const fixedDom = document.getElementById(`fixedHead${index}`);
|
|
96
|
+
const normalDom = document.getElementById(current);
|
|
97
|
+
if (fixedDom && normalDom) {
|
|
98
|
+
fixedDom.style.width = normalDom.offsetWidth + "px";
|
|
99
|
+
}
|
|
100
|
+
}, 0);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const getNextSortOrder = (type) => {
|
|
104
|
+
if (!type) {
|
|
105
|
+
return import_types.SortOrderEnum.ASCEND;
|
|
106
|
+
} else if (type === import_types.SortOrderEnum.ASCEND) {
|
|
107
|
+
return import_types.SortOrderEnum.DESCEND;
|
|
108
|
+
} else {
|
|
109
|
+
return "";
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const onHeaderClick = (data) => {
|
|
113
|
+
if (!data.sorter)
|
|
114
|
+
return;
|
|
115
|
+
sortOrder.value = getNextSortOrder(data.key === sortKey.value ? sortOrder.value : "");
|
|
116
|
+
sortKey.value = data.key;
|
|
117
|
+
emit("sort", {
|
|
118
|
+
order: sortOrder.value,
|
|
119
|
+
key: data.key
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
const onScroll = (event) => {
|
|
123
|
+
const {
|
|
124
|
+
scrollLeft,
|
|
125
|
+
currentTarget
|
|
126
|
+
} = event;
|
|
127
|
+
const mergedScrollLeft = typeof scrollLeft === "number" ? scrollLeft : currentTarget == null ? void 0 : currentTarget.scrollLeft;
|
|
128
|
+
pingedLeft.value = mergedScrollLeft > 0;
|
|
129
|
+
};
|
|
130
|
+
const getHead = (colData) => {
|
|
131
|
+
if ((colData == null ? void 0 : colData.colSpan) !== 0) {
|
|
132
|
+
return (0, import_vue.createVNode)("th", {
|
|
133
|
+
"class": bem("left", {
|
|
134
|
+
fixed: colData.fixed,
|
|
135
|
+
last: colData.lastFixLeft && pingedLeft.value
|
|
136
|
+
}),
|
|
137
|
+
"style": {
|
|
138
|
+
left: colData.fixed ? colData.left : ""
|
|
139
|
+
},
|
|
140
|
+
"colspan": (colData == null ? void 0 : colData.colSpan) !== 1 ? colData == null ? void 0 : colData.colSpan : null
|
|
141
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
142
|
+
"class": bem("head"),
|
|
143
|
+
"onClick": () => onHeaderClick(colData)
|
|
144
|
+
}, [(0, import_vue.createVNode)("span", {
|
|
145
|
+
"class": bem("head-label")
|
|
146
|
+
}, [colData.label]), colData.sorter ? (0, import_vue.createVNode)("span", {
|
|
147
|
+
"class": bem("head-sort")
|
|
148
|
+
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
|
149
|
+
"class": [colData.key === sortKey.value && sortOrder.value === import_types.SortOrderEnum.ASCEND ? bem("sort-active") : ""],
|
|
150
|
+
"name": "spinner-shrink",
|
|
151
|
+
"size": "12",
|
|
152
|
+
"style": {
|
|
153
|
+
marginBottom: "-3px"
|
|
154
|
+
}
|
|
155
|
+
}, null), (0, import_vue.createVNode)(import_icon.Icon, {
|
|
156
|
+
"class": [colData.key === sortKey.value && sortOrder.value === import_types.SortOrderEnum.DESCEND ? bem("sort-active") : ""],
|
|
157
|
+
"name": "spinner-expand",
|
|
158
|
+
"size": "12",
|
|
159
|
+
"style": {
|
|
160
|
+
marginTop: "-3px"
|
|
161
|
+
}
|
|
162
|
+
}, null)]) : ""])]);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const getBody = (rowData, rowIndex) => (0, import_vue.createVNode)("tr", null, [formatColumns.value.map((colData) => {
|
|
166
|
+
let additionalCellProps;
|
|
167
|
+
if (colData.customCell) {
|
|
168
|
+
additionalCellProps = colData.customCell(rowData, rowIndex);
|
|
169
|
+
}
|
|
170
|
+
const style = Object.assign({}, colData.style);
|
|
171
|
+
style.left = colData.fixed ? colData.left : "";
|
|
172
|
+
return (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 0 && (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 0 && (0, import_vue.createVNode)("td", {
|
|
173
|
+
"onClick": () => colData.click && colData.click(rowData, rowIndex),
|
|
174
|
+
"class": bem("left", {
|
|
175
|
+
fixed: colData.fixed,
|
|
176
|
+
last: colData.lastFixLeft && pingedLeft.value
|
|
177
|
+
}),
|
|
178
|
+
"colspan": (additionalCellProps == null ? void 0 : additionalCellProps.colSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.colSpan : null,
|
|
179
|
+
"rowspan": (additionalCellProps == null ? void 0 : additionalCellProps.rowSpan) !== 1 ? additionalCellProps == null ? void 0 : additionalCellProps.rowSpan : null,
|
|
180
|
+
"style": style
|
|
181
|
+
}, [rowData[colData.key]]);
|
|
182
|
+
})]);
|
|
183
|
+
const getCol = () => {
|
|
184
|
+
const cols = [];
|
|
185
|
+
const col = resortHeadList.value.length;
|
|
186
|
+
for (let j = 0; j < col; j++) {
|
|
187
|
+
cols.push((0, import_vue.createVNode)("div", {
|
|
188
|
+
"class": bem("col")
|
|
189
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
190
|
+
"class": bem("col-item")
|
|
191
|
+
}, null)]));
|
|
192
|
+
}
|
|
193
|
+
return cols;
|
|
194
|
+
};
|
|
195
|
+
const getLoadingColumn = () => {
|
|
196
|
+
const Rows = [];
|
|
197
|
+
for (let i = 0; i < props.skeletonRow; i++) {
|
|
198
|
+
Rows.push((0, import_vue.createVNode)("div", {
|
|
199
|
+
"class": bem("row", {
|
|
200
|
+
head: i === 0
|
|
201
|
+
})
|
|
202
|
+
}, [getCol()]));
|
|
203
|
+
}
|
|
204
|
+
return Rows;
|
|
205
|
+
};
|
|
206
|
+
return () => props.loading ? (0, import_vue.createVNode)("div", {
|
|
207
|
+
"class": bem({
|
|
208
|
+
animate: true,
|
|
209
|
+
skeleton: true
|
|
210
|
+
})
|
|
211
|
+
}, [getLoadingColumn()]) : (0, import_vue.createVNode)("div", {
|
|
212
|
+
"class": bem({
|
|
213
|
+
fixed: fixedColumn.value.length > 0,
|
|
214
|
+
bordered: props.border,
|
|
215
|
+
striped: props.striped
|
|
216
|
+
}),
|
|
217
|
+
"onScroll": onScroll
|
|
218
|
+
}, [(0, import_vue.createVNode)("table", null, [(0, import_vue.createVNode)("colgroup", null, [props.headList.map((item) => (0, import_vue.createVNode)("col", {
|
|
219
|
+
"style": {
|
|
220
|
+
width: item.width
|
|
221
|
+
}
|
|
222
|
+
}, null))]), (0, import_vue.createVNode)("thead", {
|
|
223
|
+
"class": bem("thead")
|
|
224
|
+
}, [(0, import_vue.createVNode)("tr", null, [formatColumns.value.map((colData) => getHead(colData))])]), (0, import_vue.createVNode)("tbody", {
|
|
225
|
+
"class": bem("tbody")
|
|
226
|
+
}, [props.dataList.map((rowData, rowIndex) => getBody(rowData, rowIndex))])])]);
|
|
227
|
+
}
|
|
228
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--zt-table-head-height: 40px;--zt-table-head-font-size: var(--zt-font-size-md);--zt-table-head-color: var(--zt-blue);--zt-table-head-background: #e6f5ff;--zt-table-body-height: 40px;--zt-table-body-line-height: 20px;--zt-table-body-font-size: var(--zt-font-size-md);--zt-table-body-color: var(--zt-gray-default);--zt-table-body-background: var(--zt-white);--zt-table-sort-default: var(--zt-gray-5);--zt-table-sort-active: var(--zt-blue)}.zt-base-hair{position:relative}.zt-base-hair: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-table table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;box-sizing:border-box}.zt-table--fixed{overflow:auto scroll}.zt-table--fixed::-webkit-scrollbar{width:0;height:0}.zt-table--fixed table{table-layout:fixed}.zt-table--thead-fixed{position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table--bordered{position:relative}.zt-table--bordered: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-table--bordered:after{border-left-width:var(--zt-border-width)}.zt-table--bordered>table{position:relative}.zt-table--bordered>table: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-table--bordered>table:after{border-top-width:var(--zt-border-width)}.zt-table--bordered .zt-table__thead>tr>th{position:relative}.zt-table--bordered .zt-table__thead>tr>th: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-table--bordered .zt-table__thead>tr>th:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table--bordered .zt-table__tbody>tr>td{position:relative}.zt-table--bordered .zt-table__tbody>tr>td: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-table--bordered .zt-table__tbody>tr>td:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table__thead>tr>th{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-head-height);font-weight:600;font-size:var(--zt-table-head-font-size);color:var(--zt-table-head-color);text-align:center;line-height:var(--zt-table-head-height);background:var(--zt-table-head-background)}.zt-table__tbody>tr>td{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-body-height);font-size:var(--zt-table-body-font-size);color:var(--zt-table-body-color);text-align:center;line-height:var(--zt-table-body-line-height);background:var(--zt-table-body-background);padding:10px 16px}.zt-table--striped .zt-table__tbody>tr:nth-child(even)>td{background:var(--zt-table-head-background)}.zt-table__left--last{border-right:none!important}.zt-table__left--last:after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%)}.zt-table__left--fixed{position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table__head{display:flex;justify-content:center}.zt-table__head-sort{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;color:var(--zt-table-sort-default)}.zt-table__head-label{line-height:var(--zt-table-head-height)}.zt-table__sort-active{color:var(--zt-table-sort-active)}.zt-table--skeleton{background-color:#fff;padding-bottom:10px}.zt-table__row{display:flex;box-sizing:border-box;padding:0 10px;height:40px}.zt-table__row--head{display:flex;justify-content:center;align-items:center;background-color:#e7f0fb;margin-bottom:8px}.zt-table__row--head .zt-table__col-item{background-color:#cfdae9;height:20px}.zt-table__col{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1;padding:4px 6px;height:40px}.zt-table__col-item{width:100%;height:100%;border-radius:4px;background-color:rgba(45,75,115,.06)}.zt-table--animate{animation:zt-table-blink var(--zt-skeleton-duration) ease-in-out infinite}@keyframes zt-table-blink{50%{opacity:.6}}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export declare const Table: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
headList: {
|
|
3
|
+
type: import("vue").PropType<import("./Table").TableHeaderOption[]>;
|
|
4
|
+
default: () => import("./Table").TableHeaderOption[];
|
|
5
|
+
};
|
|
6
|
+
dataList: {
|
|
7
|
+
type: import("vue").PropType<import("./Table").TableBodyOption[]>;
|
|
8
|
+
default: () => import("./Table").TableBodyOption[];
|
|
9
|
+
};
|
|
10
|
+
striped: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: true;
|
|
13
|
+
};
|
|
14
|
+
emptyValue: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
loading: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
skeletonRow: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
border: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "sort"[], "sort", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
headList: {
|
|
32
|
+
type: import("vue").PropType<import("./Table").TableHeaderOption[]>;
|
|
33
|
+
default: () => import("./Table").TableHeaderOption[];
|
|
34
|
+
};
|
|
35
|
+
dataList: {
|
|
36
|
+
type: import("vue").PropType<import("./Table").TableBodyOption[]>;
|
|
37
|
+
default: () => import("./Table").TableBodyOption[];
|
|
38
|
+
};
|
|
39
|
+
striped: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: true;
|
|
42
|
+
};
|
|
43
|
+
emptyValue: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
loading: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
skeletonRow: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
border: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
}>> & {
|
|
60
|
+
onSort?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
border: boolean;
|
|
63
|
+
loading: boolean;
|
|
64
|
+
headList: import("./Table").TableHeaderOption[];
|
|
65
|
+
dataList: import("./Table").TableBodyOption[];
|
|
66
|
+
striped: boolean;
|
|
67
|
+
emptyValue: string;
|
|
68
|
+
skeletonRow: number;
|
|
69
|
+
}>>;
|
|
70
|
+
export default Table;
|
|
71
|
+
export { tableProps } from './Table';
|
|
72
|
+
export type { TableHeaderOption, TableProps } from './Table';
|
|
73
|
+
declare module 'vue' {
|
|
74
|
+
interface GlobalComponents {
|
|
75
|
+
ZtTable: typeof Table;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -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
|
+
Table: () => Table,
|
|
31
|
+
default: () => stdin_default,
|
|
32
|
+
tableProps: () => import_Table2.tableProps
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
35
|
+
var import_utils = require("../utils");
|
|
36
|
+
var import_Table = __toESM(require("./Table"));
|
|
37
|
+
var import_Table2 = require("./Table");
|
|
38
|
+
const Table = (0, import_utils.withInstall)(import_Table.default);
|
|
39
|
+
var stdin_default = Table;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], 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
|
+
SortOrderEnum: () => SortOrderEnum
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
+
var SortOrderEnum = /* @__PURE__ */ ((SortOrderEnum2) => {
|
|
24
|
+
SortOrderEnum2["ASCEND"] = "ascend";
|
|
25
|
+
SortOrderEnum2["DESCEND"] = "descend";
|
|
26
|
+
return SortOrderEnum2;
|
|
27
|
+
})(SortOrderEnum || {});
|
package/lib/tabs/Tabs.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
|
));
|
|
@@ -37,6 +41,7 @@ var import_use_route = require("../composables/use-route");
|
|
|
37
41
|
var import_use_refs = require("../composables/use-refs");
|
|
38
42
|
var import_use_expose = require("../composables/use-expose");
|
|
39
43
|
var import_on_popup_reopen = require("../composables/on-popup-reopen");
|
|
44
|
+
var import_use_visibility_change = require("../composables/use-visibility-change");
|
|
40
45
|
var import_sticky = require("../sticky");
|
|
41
46
|
var import_TabsTitle = __toESM(require("./TabsTitle"));
|
|
42
47
|
var import_TabsContent = __toESM(require("./TabsContent"));
|
|
@@ -362,6 +367,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
362
367
|
(0, import_vue2.onActivated)(setLine);
|
|
363
368
|
(0, import_on_popup_reopen.onPopupReopen)(setLine);
|
|
364
369
|
(0, import_use.onMountedOrActivated)(init);
|
|
370
|
+
(0, import_use_visibility_change.useVisibilityChange)(root, setLine);
|
|
365
371
|
(0, import_use.useEventListener)("scroll", onScroll, {
|
|
366
372
|
target: scroller,
|
|
367
373
|
passive: true
|