ep-craft 0.1.33 → 0.1.35
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/dist/components/button/index.d.ts +12 -0
- package/dist/components/button-group/index.d.ts +3 -2
- package/dist/components/button-group/index.js +7 -3
- package/dist/components/button-group/src/button-group.d.ts +48 -0
- package/dist/components/button-group/src/button-group.js +7 -0
- package/dist/components/button-group/src/button-group.vue.d.ts +16 -0
- package/dist/components/button-group/src/button-group.vue.js +42 -0
- package/dist/components/button-group/src/button-group2.vue.js +4 -0
- package/dist/components/carousel/EpCarousel.vue.d.ts +39 -0
- package/dist/components/carousel/EpCarousel.vue.js +227 -0
- package/dist/components/carousel/EpCarousel2.vue.js +4 -0
- package/dist/components/carousel/carousel.d.ts +86 -0
- package/dist/components/carousel/carousel.js +113 -0
- package/dist/components/carousel/constants.d.ts +32 -0
- package/dist/components/carousel/constants.js +5 -0
- package/dist/components/carousel/index.d.ts +28 -2
- package/dist/components/carousel/index.js +11 -4
- package/dist/components/carousel/instance.d.ts +8 -0
- package/dist/components/carousel/use-carousel.d.ts +41 -0
- package/dist/components/carousel/use-carousel.js +200 -0
- package/dist/components/carousel-item/EpCarouselItem.vue.d.ts +16 -0
- package/dist/components/carousel-item/EpCarouselItem.vue.js +74 -0
- package/dist/components/carousel-item/EpCarouselItem2.vue.js +4 -0
- package/dist/components/carousel-item/carousel-item.d.ts +22 -0
- package/dist/components/carousel-item/carousel-item.js +22 -0
- package/dist/components/carousel-item/index.d.ts +14 -2
- package/dist/components/carousel-item/index.js +9 -4
- package/dist/components/carousel-item/use-carousel-item.d.ts +14 -0
- package/dist/components/carousel-item/use-carousel-item.js +79 -0
- package/dist/components/cascader/EpCascader.vue.d.ts +232 -0
- package/dist/components/cascader/EpCascader.vue.js +757 -0
- package/dist/components/cascader/EpCascader2.vue.js +4 -0
- package/dist/components/cascader/cascader.d.ts +313 -0
- package/dist/components/cascader/cascader.js +210 -0
- package/dist/components/cascader/index.d.ts +17 -2
- package/dist/components/cascader/index.js +9 -3
- package/dist/components/cascader/instances.d.ts +2 -0
- package/dist/components/cascader-panel/EpCascaderMenu.vue.d.ts +32 -0
- package/dist/components/cascader-panel/EpCascaderMenu.vue.js +204 -0
- package/dist/components/cascader-panel/EpCascaderMenu2.vue.js +4 -0
- package/dist/components/cascader-panel/EpCascaderNode.vue.d.ts +11 -0
- package/dist/components/cascader-panel/EpCascaderNode.vue.js +134 -0
- package/dist/components/cascader-panel/EpCascaderNode2.vue.js +4 -0
- package/dist/components/cascader-panel/EpCascaderPanel.vue.d.ts +290 -0
- package/dist/components/cascader-panel/EpCascaderPanel.vue.js +266 -0
- package/dist/components/cascader-panel/EpCascaderPanel2.vue.js +4 -0
- package/dist/components/cascader-panel/config.d.ts +102 -0
- package/dist/components/cascader-panel/config.js +136 -0
- package/dist/components/cascader-panel/index.d.ts +17 -2
- package/dist/components/cascader-panel/index.js +21 -4
- package/dist/components/cascader-panel/instance.d.ts +4 -0
- package/dist/components/cascader-panel/node-content.d.ts +14 -0
- package/dist/components/cascader-panel/node-content.js +50 -0
- package/dist/components/cascader-panel/node.d.ts +50 -0
- package/dist/components/cascader-panel/node.js +75 -0
- package/dist/components/cascader-panel/store.d.ts +17 -0
- package/dist/components/cascader-panel/store.js +49 -0
- package/dist/components/cascader-panel/types.d.ts +64 -0
- package/dist/components/cascader-panel/types.js +4 -0
- package/dist/components/cascader-panel/utils.d.ts +4 -0
- package/dist/components/cascader-panel/utils.js +26 -0
- package/dist/components/checkbox/EpCheckbox.vue.d.ts +1 -1
- package/dist/components/checkbox-button/EpCheckboxButton.vue.d.ts +1 -1
- package/dist/components/checkbox-group/index.js +4 -3
- package/dist/components/collapse-transition/index.js +4 -3
- package/dist/components/collection/index.d.ts +8 -0
- package/dist/components/collection/src/collection-item.vue.d.ts +2 -0
- package/dist/components/collection/src/collection-item.vue.js +10 -0
- package/dist/components/collection/src/collection-item2.vue.js +8 -0
- package/dist/components/collection/src/collection.d.ts +39 -0
- package/dist/components/collection/src/collection.js +52 -0
- package/dist/components/collection/src/collection.vue.d.ts +2 -0
- package/dist/components/collection/src/collection.vue.js +10 -0
- package/dist/components/collection/src/collection2.vue.js +7 -0
- package/dist/components/collection/src/tokens.d.ts +18 -0
- package/dist/components/color-picker/EpColorPicker.vue.d.ts +53 -0
- package/dist/components/color-picker/EpColorPicker.vue.js +318 -0
- package/dist/components/color-picker/EpColorPicker2.vue.js +4 -0
- package/dist/components/color-picker/color-picker.d.ts +240 -0
- package/dist/components/color-picker/color-picker.js +124 -0
- package/dist/components/color-picker/index.d.ts +16 -2
- package/dist/components/color-picker/index.js +11 -4
- package/dist/components/color-picker-panel/EpColorPickerPanel.vue.d.ts +413 -0
- package/dist/components/color-picker-panel/EpColorPickerPanel.vue.js +142 -0
- package/dist/components/color-picker-panel/EpColorPickerPanel2.vue.js +4 -0
- package/dist/components/color-picker-panel/color-picker-panel.d.ts +91 -0
- package/dist/components/color-picker-panel/color-picker-panel.js +71 -0
- package/dist/components/color-picker-panel/components/EpAlphaSlider.vue.d.ts +19 -0
- package/dist/components/color-picker-panel/components/EpAlphaSlider.vue.js +92 -0
- package/dist/components/color-picker-panel/components/EpAlphaSlider2.vue.js +4 -0
- package/dist/components/color-picker-panel/components/EpHueSlider.vue.d.ts +20 -0
- package/dist/components/color-picker-panel/components/EpHueSlider.vue.js +84 -0
- package/dist/components/color-picker-panel/components/EpHueSlider2.vue.js +4 -0
- package/dist/components/color-picker-panel/components/EpPredefine.vue.d.ts +3 -0
- package/dist/components/color-picker-panel/components/EpPredefine.vue.js +39 -0
- package/dist/components/color-picker-panel/components/EpPredefine2.vue.js +4 -0
- package/dist/components/color-picker-panel/components/EpSvPanel.vue.d.ts +8 -0
- package/dist/components/color-picker-panel/components/EpSvPanel.vue.js +67 -0
- package/dist/components/color-picker-panel/components/EpSvPanel2.vue.js +4 -0
- package/dist/components/color-picker-panel/composables/use-common-color.d.ts +11 -0
- package/dist/components/color-picker-panel/composables/use-common-color.js +23 -0
- package/dist/components/color-picker-panel/composables/use-predefine.d.ts +14 -0
- package/dist/components/color-picker-panel/composables/use-predefine.js +66 -0
- package/dist/components/color-picker-panel/composables/use-slider.d.ts +35 -0
- package/dist/components/color-picker-panel/composables/use-slider.js +152 -0
- package/dist/components/color-picker-panel/composables/use-sv-panel.d.ts +25 -0
- package/dist/components/color-picker-panel/composables/use-sv-panel.js +123 -0
- package/dist/components/color-picker-panel/index.d.ts +4 -0
- package/dist/components/color-picker-panel/props/predefine.d.ts +36 -0
- package/dist/components/color-picker-panel/props/slider.d.ts +39 -0
- package/dist/components/color-picker-panel/props/sv-panel.d.ts +22 -0
- package/dist/components/color-picker-panel/utils/color.d.ts +28 -0
- package/dist/components/color-picker-panel/utils/color.js +62 -0
- package/dist/components/color-picker-panel/utils/draggable.d.ts +6 -0
- package/dist/components/color-picker-panel/utils/draggable.js +23 -0
- package/dist/components/descriptions/EpDescriptions.vue.d.ts +20 -0
- package/dist/components/descriptions/EpDescriptions.vue.js +100 -0
- package/dist/components/descriptions/EpDescriptions2.vue.js +4 -0
- package/dist/components/descriptions/EpDescriptionsRow.vue.d.ts +5 -0
- package/dist/components/descriptions/EpDescriptionsRow.vue.js +56 -0
- package/dist/components/descriptions/EpDescriptionsRow2.vue.js +4 -0
- package/dist/components/descriptions/constants.d.ts +1 -0
- package/dist/components/descriptions/constants.js +4 -0
- package/dist/components/descriptions/description.d.ts +66 -0
- package/dist/components/descriptions/description.js +61 -0
- package/dist/components/descriptions/descriptions-cell.d.ts +31 -0
- package/dist/components/descriptions/descriptions-cell.js +133 -0
- package/dist/components/descriptions/descriptions-row.d.ts +10 -0
- package/dist/components/descriptions/descriptions.type.d.ts +29 -0
- package/dist/components/descriptions/index.d.ts +22 -2
- package/dist/components/descriptions/index.js +9 -3
- package/dist/components/descriptions/token.d.ts +3 -0
- package/dist/components/descriptions/token.js +4 -0
- package/dist/components/descriptions-item/description-item.d.ts +84 -0
- package/dist/components/descriptions-item/description-item.js +87 -0
- package/dist/components/descriptions-item/index.d.ts +14 -2
- package/dist/components/descriptions-item/index.js +6 -4
- package/dist/components/divider/index.d.ts +24 -2
- package/dist/components/divider/index.js +8 -3
- package/dist/components/divider/src/divider.d.ts +30 -0
- package/dist/components/divider/src/divider.js +34 -0
- package/dist/components/divider/src/divider.vue.d.ts +24 -0
- package/dist/components/divider/src/divider.vue.js +39 -0
- package/dist/components/divider/src/divider2.vue.js +4 -0
- package/dist/components/dropdown/index.d.ts +3017 -3
- package/dist/components/dropdown/index.js +23 -3
- package/dist/components/dropdown/src/dropdown-item-impl.vue.d.ts +79 -0
- package/dist/components/dropdown/src/dropdown-item-impl.vue.js +40 -0
- package/dist/components/dropdown/src/dropdown-item-impl2.vue.js +68 -0
- package/dist/components/dropdown/src/dropdown-item.vue.d.ts +169 -0
- package/dist/components/dropdown/src/dropdown-item.vue.js +35 -0
- package/dist/components/dropdown/src/dropdown-item2.vue.js +63 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.d.ts +27 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.js +24 -0
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +75 -0
- package/dist/components/dropdown/src/dropdown.d.ts +200 -0
- package/dist/components/dropdown/src/dropdown.js +201 -0
- package/dist/components/dropdown/src/dropdown.vue.d.ts +1126 -0
- package/dist/components/dropdown/src/dropdown.vue.js +127 -0
- package/dist/components/dropdown/src/dropdown2.vue.js +127 -0
- package/dist/components/dropdown/src/instance.d.ts +2 -0
- package/dist/components/dropdown/src/tokens.d.ts +13 -0
- package/dist/components/dropdown/src/tokens.js +5 -0
- package/dist/components/dropdown/src/useDropdown.d.ts +5 -0
- package/dist/components/dropdown/src/useDropdown.js +15 -0
- package/dist/components/dropdown-item/index.d.ts +1 -4
- package/dist/components/dropdown-menu/index.d.ts +1 -4
- package/dist/components/index.js +129 -131
- package/dist/components/input-number/index.js +3 -2
- package/dist/components/mention/EpMention.vue.d.ts +430 -0
- package/dist/components/mention/EpMention.vue.js +303 -0
- package/dist/components/mention/EpMention2.vue.js +4 -0
- package/dist/components/mention/EpMentionDropdown.vue.d.ts +34 -0
- package/dist/components/mention/EpMentionDropdown.vue.js +140 -0
- package/dist/components/mention/EpMentionDropdown2.vue.js +4 -0
- package/dist/components/mention/helper.d.ts +32 -0
- package/dist/components/mention/helper.js +112 -0
- package/dist/components/mention/index.d.ts +13 -2
- package/dist/components/mention/index.js +11 -4
- package/dist/components/mention/mention-dropdown.d.ts +21 -0
- package/dist/components/mention/mention-dropdown.js +22 -0
- package/dist/components/mention/mention.d.ts +313 -0
- package/dist/components/mention/mention.js +123 -0
- package/dist/components/mention/types.d.ts +19 -0
- package/dist/components/popover/index.d.ts +121 -3
- package/dist/components/popover/index.js +19 -4
- package/dist/components/popover/src/directive.d.ts +4 -0
- package/dist/components/popover/src/directive.js +15 -0
- package/dist/components/popover/src/popover.d.ts +291 -0
- package/dist/components/popover/src/popover.js +168 -0
- package/dist/components/popover/src/popover.vue.d.ts +53 -0
- package/dist/components/popover/src/popover.vue.js +125 -0
- package/dist/components/popover/src/popover2.vue.js +4 -0
- package/dist/components/progress/index.d.ts +35 -2
- package/dist/components/progress/index.js +10 -4
- package/dist/components/progress/src/progress.d.ts +97 -0
- package/dist/components/progress/src/progress.js +104 -0
- package/dist/components/progress/src/progress.vue.d.ts +30 -0
- package/dist/components/progress/src/progress.vue.js +179 -0
- package/dist/components/progress/src/progress2.vue.js +4 -0
- package/dist/components/radio/index.js +4 -3
- package/dist/components/rate/EpRate.vue.d.ts +32 -0
- package/dist/components/rate/EpRate.vue.js +229 -0
- package/dist/components/rate/EpRate2.vue.js +4 -0
- package/dist/components/rate/index.d.ts +15 -2
- package/dist/components/rate/index.js +7 -4
- package/dist/components/rate/rate.d.ts +131 -0
- package/dist/components/rate/rate.js +158 -0
- package/dist/components/roving-focus-group/index.d.ts +14 -0
- package/dist/components/roving-focus-group/index.js +15 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +50 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl.vue.js +10 -0
- package/dist/components/roving-focus-group/src/roving-focus-group-impl2.vue.js +115 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.d.ts +56 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.js +43 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.d.ts +67 -0
- package/dist/components/roving-focus-group/src/roving-focus-group.vue.js +13 -0
- package/dist/components/roving-focus-group/src/roving-focus-group2.vue.js +21 -0
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.d.ts +43 -0
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +78 -0
- package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +20 -0
- package/dist/components/roving-focus-group/src/tokens.d.ts +28 -0
- package/dist/components/roving-focus-group/src/tokens.js +5 -0
- package/dist/components/roving-focus-group/src/utils.d.ts +8 -0
- package/dist/components/roving-focus-group/src/utils.js +28 -0
- package/dist/components/segmented/EpSegmented.vue.d.ts +22 -0
- package/dist/components/segmented/EpSegmented.vue.js +136 -0
- package/dist/components/segmented/EpSegmented2.vue.js +4 -0
- package/dist/components/segmented/index.d.ts +14 -2
- package/dist/components/segmented/index.js +11 -4
- package/dist/components/segmented/segmented.d.ts +85 -0
- package/dist/components/segmented/segmented.js +85 -0
- package/dist/components/segmented/types.d.ts +1 -0
- package/dist/components/select/index.d.ts +4 -2
- package/dist/components/select/index.js +3 -2
- package/dist/components/select/select2.vue.js +60 -61
- package/dist/components/select-v2/src/select.vue.d.ts +1 -1
- package/dist/components/slider/EpSlider.vue.d.ts +175 -0
- package/dist/components/slider/EpSlider.vue.js +211 -0
- package/dist/components/slider/EpSlider2.vue.js +4 -0
- package/dist/components/slider/EpSliderButton.vue.d.ts +26 -0
- package/dist/components/slider/EpSliderButton.vue.js +103 -0
- package/dist/components/slider/EpSliderButton2.vue.js +4 -0
- package/dist/components/slider/button.d.ts +28 -0
- package/dist/components/slider/button.js +28 -0
- package/dist/components/slider/composables/index.d.ts +7 -0
- package/dist/components/slider/composables/use-lifecycle.d.ts +4 -0
- package/dist/components/slider/composables/use-lifecycle.js +20 -0
- package/dist/components/slider/composables/use-marks.d.ts +7 -0
- package/dist/components/slider/composables/use-marks.js +30 -0
- package/dist/components/slider/composables/use-slide.d.ts +23 -0
- package/dist/components/slider/composables/use-slide.js +92 -0
- package/dist/components/slider/composables/use-slider-button.d.ts +18 -0
- package/dist/components/slider/composables/use-slider-button.js +179 -0
- package/dist/components/slider/composables/use-stops.d.ts +8 -0
- package/dist/components/slider/composables/use-stops.js +23 -0
- package/dist/components/slider/composables/use-watch.d.ts +4 -0
- package/dist/components/slider/composables/use-watch.js +42 -0
- package/dist/components/slider/constants.d.ts +17 -0
- package/dist/components/slider/constants.js +4 -0
- package/dist/components/slider/index.d.ts +18 -2
- package/dist/components/slider/index.js +10 -4
- package/dist/components/slider/marker.d.ts +64 -0
- package/dist/components/slider/marker.js +40 -0
- package/dist/components/slider/slider.d.ts +80 -0
- package/dist/components/slider/slider.js +170 -0
- package/dist/components/step/EpStep.vue.d.ts +38 -0
- package/dist/components/step/EpStep.vue.js +157 -0
- package/dist/components/step/EpStep2.vue.js +4 -0
- package/dist/components/step/index.d.ts +12 -2
- package/dist/components/step/index.js +8 -3
- package/dist/components/step/step.d.ts +42 -0
- package/dist/components/step/step.js +39 -0
- package/dist/components/steps/EpSteps.vue.d.ts +23 -0
- package/dist/components/steps/EpSteps.vue.js +57 -0
- package/dist/components/steps/EpSteps2.vue.js +4 -0
- package/dist/components/steps/index.d.ts +20 -2
- package/dist/components/steps/index.js +8 -4
- package/dist/components/steps/steps.d.ts +69 -0
- package/dist/components/steps/steps.js +66 -0
- package/dist/components/steps/tokens.d.ts +1 -0
- package/dist/components/steps/tokens.js +4 -0
- package/dist/components/switch/EpSwitch.vue.d.ts +50 -0
- package/dist/components/switch/EpSwitch.vue.js +251 -0
- package/dist/components/switch/EpSwitch2.vue.js +4 -0
- package/dist/components/switch/index.d.ts +15 -2
- package/dist/components/switch/index.js +10 -4
- package/dist/components/switch/switch.d.ts +157 -0
- package/dist/components/switch/switch.js +145 -0
- package/dist/components/table/src/filter-panel.vue.d.ts +3 -3
- package/dist/components/table/src/table-header/index.d.ts +3 -3
- package/dist/components/text/index.d.ts +4 -2
- package/dist/components/text/index.js +7 -4
- package/dist/components/text/src/text.d.ts +43 -0
- package/dist/components/text/src/text.js +45 -0
- package/dist/components/text/src/text.vue.d.ts +17 -0
- package/dist/components/text/src/text.vue.js +63 -0
- package/dist/components/text/src/text2.vue.js +4 -0
- package/dist/components/time-select/EpTimeSelect.vue.d.ts +38 -0
- package/dist/components/time-select/EpTimeSelect.vue.js +154 -0
- package/dist/components/time-select/EpTimeSelect2.vue.js +4 -0
- package/dist/components/time-select/index.d.ts +17 -2
- package/dist/components/time-select/index.js +12 -4
- package/dist/components/time-select/time-select.d.ts +143 -0
- package/dist/components/time-select/time-select.js +139 -0
- package/dist/components/time-select/utils.d.ts +11 -0
- package/dist/components/time-select/utils.js +39 -0
- package/dist/components/tour/EpTour.vue.d.ts +40 -0
- package/dist/components/tour/EpTour.vue.js +174 -0
- package/dist/components/tour/EpTour2.vue.js +4 -0
- package/dist/components/tour/EpTourContent.vue.d.ts +23 -0
- package/dist/components/tour/EpTourContent.vue.js +72 -0
- package/dist/components/tour/EpTourContent2.vue.js +4 -0
- package/dist/components/tour/EpTourMask.vue.d.ts +7 -0
- package/dist/components/tour/EpTourMask.vue.js +76 -0
- package/dist/components/tour/EpTourMask2.vue.js +4 -0
- package/dist/components/tour/constants.d.ts +10 -0
- package/dist/components/tour/constants.js +4 -0
- package/dist/components/tour/content.d.ts +49 -0
- package/dist/components/tour/content.js +70 -0
- package/dist/components/tour/helper.d.ts +36 -0
- package/dist/components/tour/helper.js +161 -0
- package/dist/components/tour/index.d.ts +28 -2
- package/dist/components/tour/index.js +19 -4
- package/dist/components/tour/mask.d.ts +43 -0
- package/dist/components/tour/steps.d.ts +19 -0
- package/dist/components/tour/steps.js +35 -0
- package/dist/components/tour/tour.d.ts +136 -0
- package/dist/components/tour/tour.js +120 -0
- package/dist/components/tour/types.d.ts +21 -0
- package/dist/components/tour-step/EpTourStep.vue.d.ts +25 -0
- package/dist/components/tour-step/EpTourStep.vue.js +179 -0
- package/dist/components/tour-step/EpTourStep2.vue.js +4 -0
- package/dist/components/tour-step/index.d.ts +13 -2
- package/dist/components/tour-step/index.js +10 -4
- package/dist/components/tour-step/step.d.ts +120 -0
- package/dist/components/tour-step/step.js +91 -0
- package/dist/components/transfer/EpTransfer.vue.d.ts +36 -0
- package/dist/components/transfer/EpTransfer.vue.js +195 -0
- package/dist/components/transfer/EpTransfer2.vue.js +4 -0
- package/dist/components/transfer/EpTransferPanel.vue.d.ts +24 -0
- package/dist/components/transfer/EpTransferPanel.vue.js +191 -0
- package/dist/components/transfer/EpTransferPanel2.vue.js +4 -0
- package/dist/components/transfer/composables/index.d.ts +5 -0
- package/dist/components/transfer/composables/use-check.d.ts +286 -0
- package/dist/components/transfer/composables/use-check.js +89 -0
- package/dist/components/transfer/composables/use-checked-change.d.ts +6 -0
- package/dist/components/transfer/composables/use-checked-change.js +12 -0
- package/dist/components/transfer/composables/use-computed-data.d.ts +5 -0
- package/dist/components/transfer/composables/use-computed-data.js +26 -0
- package/dist/components/transfer/composables/use-move.d.ts +6 -0
- package/dist/components/transfer/composables/use-move.js +27 -0
- package/dist/components/transfer/composables/use-props-alias.d.ts +8 -0
- package/dist/components/transfer/composables/use-props-alias.js +15 -0
- package/dist/components/transfer/index.d.ts +19 -2
- package/dist/components/transfer/index.js +13 -4
- package/dist/components/transfer/transfer-panel.d.ts +63 -0
- package/dist/components/transfer/transfer-panel.js +32 -0
- package/dist/components/transfer/transfer.d.ts +136 -0
- package/dist/components/transfer/transfer.js +130 -0
- package/dist/components/tree/index.d.ts +7 -2
- package/dist/components/tree/index.js +8 -4
- package/dist/components/tree/src/instance.d.ts +2 -0
- package/dist/components/tree/src/model/node.d.ts +63 -0
- package/dist/components/tree/src/model/node.js +263 -0
- package/dist/components/tree/src/model/tree-store.d.ts +51 -0
- package/dist/components/tree/src/model/tree-store.js +223 -0
- package/dist/components/tree/src/model/useDragNode.d.ts +459 -0
- package/dist/components/tree/src/model/useDragNode.js +98 -0
- package/dist/components/tree/src/model/useKeydown.d.ts +7 -0
- package/dist/components/tree/src/model/useKeydown.js +93 -0
- package/dist/components/tree/src/model/useNodeExpandEventBroadcast.d.ts +9 -0
- package/dist/components/tree/src/model/useNodeExpandEventBroadcast.js +27 -0
- package/dist/components/tree/src/model/util.d.ts +7 -0
- package/dist/components/tree/src/model/util.js +19 -0
- package/dist/components/tree/src/tokens.d.ts +3 -0
- package/dist/components/tree/src/tokens.js +6 -0
- package/dist/components/tree/src/tree-node-content.vue.d.ts +14 -0
- package/dist/components/tree/src/tree-node-content.vue.js +43 -0
- package/dist/components/tree/src/tree-node-content2.vue.js +4 -0
- package/dist/components/tree/src/tree-node.vue.d.ts +377 -0
- package/dist/components/tree/src/tree-node.vue.js +108 -0
- package/dist/components/tree/src/tree-node2.vue.js +166 -0
- package/dist/components/tree/src/tree.d.ts +103 -0
- package/dist/components/tree/src/tree.js +99 -0
- package/dist/components/tree/src/tree.type.d.ts +112 -0
- package/dist/components/tree/src/tree.vue.d.ts +1745 -0
- package/dist/components/tree/src/tree.vue.js +48 -0
- package/dist/components/tree/src/tree2.vue.js +192 -0
- package/dist/components/tree-select/index.d.ts +3 -2
- package/dist/components/tree-select/index.js +7 -4
- package/dist/components/tree-select/src/cache-options.d.ts +20 -0
- package/dist/components/tree-select/src/cache-options.js +36 -0
- package/dist/components/tree-select/src/instance.d.ts +6 -0
- package/dist/components/tree-select/src/select.d.ts +11 -0
- package/dist/components/tree-select/src/select.js +92 -0
- package/dist/components/tree-select/src/tree-select-option.d.ts +364 -0
- package/dist/components/tree-select/src/tree-select-option.js +32 -0
- package/dist/components/tree-select/src/tree-select.vue.d.ts +412 -0
- package/dist/components/tree-select/src/tree-select.vue.js +96 -0
- package/dist/components/tree-select/src/tree-select2.vue.js +4 -0
- package/dist/components/tree-select/src/tree.d.ts +12 -0
- package/dist/components/tree-select/src/tree.js +179 -0
- package/dist/components/tree-select/src/utils.d.ts +10 -0
- package/dist/components/tree-select/src/utils.js +49 -0
- package/dist/components/upload/index.d.ts +45 -2
- package/dist/components/upload/index.js +23 -4
- package/dist/components/upload/src/ajax.d.ts +9 -0
- package/dist/components/upload/src/ajax.js +58 -0
- package/dist/components/upload/src/constants.d.ts +5 -0
- package/dist/components/upload/src/constants.js +4 -0
- package/dist/components/upload/src/upload-content.d.ts +136 -0
- package/dist/components/upload/src/upload-content.js +53 -0
- package/dist/components/upload/src/upload-content.vue.d.ts +38 -0
- package/dist/components/upload/src/upload-content.vue.js +186 -0
- package/dist/components/upload/src/upload-content2.vue.js +4 -0
- package/dist/components/upload/src/upload-dragger.d.ts +22 -0
- package/dist/components/upload/src/upload-dragger.js +19 -0
- package/dist/components/upload/src/upload-dragger.vue.d.ts +19 -0
- package/dist/components/upload/src/upload-dragger.vue.js +91 -0
- package/dist/components/upload/src/upload-dragger2.vue.js +4 -0
- package/dist/components/upload/src/upload-list.d.ts +45 -0
- package/dist/components/upload/src/upload-list.js +39 -0
- package/dist/components/upload/src/upload-list.vue.d.ts +28 -0
- package/dist/components/upload/src/upload-list.vue.js +182 -0
- package/dist/components/upload/src/upload-list2.vue.js +4 -0
- package/dist/components/upload/src/upload.d.ts +361 -0
- package/dist/components/upload/src/upload.js +216 -0
- package/dist/components/upload/src/upload.vue.d.ts +64 -0
- package/dist/components/upload/src/upload.vue.js +150 -0
- package/dist/components/upload/src/upload2.vue.js +4 -0
- package/dist/components/upload/src/use-handlers.d.ts +60 -0
- package/dist/components/upload/src/use-handlers.js +111 -0
- package/dist/constants/column-alignment.js +4 -0
- package/dist/ep-craft.js +363 -238
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/use-lockscreen/index.d.ts +11 -0
- package/dist/hooks/use-lockscreen/index.js +34 -0
- package/dist/index.d.ts +141 -0
- package/dist/utils/arrays.js +4 -3
- package/dist/utils/dom/aria.js +23 -13
- package/dist/utils/dom/event.js +12 -11
- package/dist/utils/dom/scroll.js +61 -46
- package/dist/utils/objects.js +10 -9
- package/dist/utils/vue/icon.js +17 -14
- package/dist/utils/vue/install.js +21 -18
- package/dist/utils/vue/refs.js +8 -0
- package/dist/utils/vue/validator.js +5 -0
- package/dist/utils/vue/vnode.js +24 -12
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +96 -3
- package/package.json +3 -2
- package/dist/components/dropdown-item/index.js +0 -6
- package/dist/components/dropdown-menu/index.js +0 -6
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { ref as E, onMounted as O, watch as $, onBeforeUnmount as I, computed as x, unref as e, watchEffect as B } from "vue";
|
|
2
|
+
import { offset as C, flip as M, shift as P, arrow as T, autoUpdate as z, detectOverflow as D, computePosition as H } from "@floating-ui/dom";
|
|
3
|
+
import { isArray as R, isString as b, isFunction as F } from "@vue/shared";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import { isClient as L } from "@vueuse/core";
|
|
6
|
+
import { keysOf as U } from "../../utils/objects.js";
|
|
7
|
+
import "@element-plus/icons-vue";
|
|
8
|
+
const A = (o, l, i, d, f) => {
|
|
9
|
+
const r = E(null), m = () => {
|
|
10
|
+
let n;
|
|
11
|
+
return b(o.value) ? n = document.querySelector(o.value) : F(o.value) ? n = o.value() : n = o.value, n;
|
|
12
|
+
}, h = () => {
|
|
13
|
+
const n = m();
|
|
14
|
+
if (!n || !l.value) {
|
|
15
|
+
r.value = null;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
V(n) || n.scrollIntoView(f.value);
|
|
19
|
+
const { left: c, top: u, width: a, height: p } = n.getBoundingClientRect();
|
|
20
|
+
r.value = {
|
|
21
|
+
left: c,
|
|
22
|
+
top: u,
|
|
23
|
+
width: a,
|
|
24
|
+
height: p,
|
|
25
|
+
radius: 0
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
O(() => {
|
|
29
|
+
$(
|
|
30
|
+
[l, o],
|
|
31
|
+
() => {
|
|
32
|
+
h();
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
immediate: !0
|
|
36
|
+
}
|
|
37
|
+
), window.addEventListener("resize", h);
|
|
38
|
+
}), I(() => {
|
|
39
|
+
window.removeEventListener("resize", h);
|
|
40
|
+
});
|
|
41
|
+
const v = (n) => (R(i.value.offset) ? i.value.offset[n] : i.value.offset) ?? 6, s = x(() => {
|
|
42
|
+
var a;
|
|
43
|
+
if (!r.value) return r.value;
|
|
44
|
+
const n = v(0), c = v(1), u = ((a = i.value) == null ? void 0 : a.radius) || 2;
|
|
45
|
+
return {
|
|
46
|
+
left: r.value.left - n,
|
|
47
|
+
top: r.value.top - c,
|
|
48
|
+
width: r.value.width + n * 2,
|
|
49
|
+
height: r.value.height + c * 2,
|
|
50
|
+
radius: u
|
|
51
|
+
};
|
|
52
|
+
}), g = x(() => {
|
|
53
|
+
const n = m();
|
|
54
|
+
return !d.value || !n || !window.DOMRect ? n || void 0 : {
|
|
55
|
+
getBoundingClientRect() {
|
|
56
|
+
var c, u, a, p;
|
|
57
|
+
return window.DOMRect.fromRect({
|
|
58
|
+
width: ((c = s.value) == null ? void 0 : c.width) || 0,
|
|
59
|
+
height: ((u = s.value) == null ? void 0 : u.height) || 0,
|
|
60
|
+
x: ((a = s.value) == null ? void 0 : a.left) || 0,
|
|
61
|
+
y: ((p = s.value) == null ? void 0 : p.top) || 0
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
return {
|
|
67
|
+
mergedPosInfo: s,
|
|
68
|
+
triggerTarget: g
|
|
69
|
+
};
|
|
70
|
+
}, J = Symbol("epTour");
|
|
71
|
+
function V(o) {
|
|
72
|
+
const l = window.innerWidth || document.documentElement.clientWidth, i = window.innerHeight || document.documentElement.clientHeight, { top: d, right: f, bottom: r, left: m } = o.getBoundingClientRect();
|
|
73
|
+
return d >= 0 && m >= 0 && f <= l && r <= i;
|
|
74
|
+
}
|
|
75
|
+
const N = (o, l, i, d, f, r, m, h) => {
|
|
76
|
+
const v = E(), s = E(), g = E({}), n = {
|
|
77
|
+
x: v,
|
|
78
|
+
y: s,
|
|
79
|
+
placement: d,
|
|
80
|
+
strategy: f,
|
|
81
|
+
middlewareData: g
|
|
82
|
+
}, c = x(() => {
|
|
83
|
+
const t = [
|
|
84
|
+
C(e(r)),
|
|
85
|
+
M(),
|
|
86
|
+
P(),
|
|
87
|
+
q()
|
|
88
|
+
];
|
|
89
|
+
return e(h) && e(i) && t.push(
|
|
90
|
+
T({
|
|
91
|
+
element: e(i)
|
|
92
|
+
})
|
|
93
|
+
), t;
|
|
94
|
+
}), u = async () => {
|
|
95
|
+
if (!L) return;
|
|
96
|
+
const t = e(o), w = e(l);
|
|
97
|
+
if (!t || !w) return;
|
|
98
|
+
const S = await H(t, w, {
|
|
99
|
+
placement: e(d),
|
|
100
|
+
strategy: e(f),
|
|
101
|
+
middleware: e(c)
|
|
102
|
+
});
|
|
103
|
+
U(n).forEach((W) => {
|
|
104
|
+
n[W].value = S[W];
|
|
105
|
+
});
|
|
106
|
+
}, a = x(() => {
|
|
107
|
+
if (!e(o))
|
|
108
|
+
return {
|
|
109
|
+
position: "fixed",
|
|
110
|
+
top: "50%",
|
|
111
|
+
left: "50%",
|
|
112
|
+
transform: "translate3d(-50%, -50%, 0)",
|
|
113
|
+
maxWidth: "100vw",
|
|
114
|
+
zIndex: e(m)
|
|
115
|
+
};
|
|
116
|
+
const { overflow: t } = e(g);
|
|
117
|
+
return {
|
|
118
|
+
position: e(f),
|
|
119
|
+
zIndex: e(m),
|
|
120
|
+
top: e(s) != null ? `${e(s)}px` : "",
|
|
121
|
+
left: e(v) != null ? `${e(v)}px` : "",
|
|
122
|
+
maxWidth: t != null && t.maxWidth ? `${t == null ? void 0 : t.maxWidth}px` : ""
|
|
123
|
+
};
|
|
124
|
+
}), p = x(() => {
|
|
125
|
+
if (!e(h)) return {};
|
|
126
|
+
const { arrow: t } = e(g);
|
|
127
|
+
return {
|
|
128
|
+
left: (t == null ? void 0 : t.x) != null ? `${t == null ? void 0 : t.x}px` : "",
|
|
129
|
+
top: (t == null ? void 0 : t.y) != null ? `${t == null ? void 0 : t.y}px` : ""
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
let y;
|
|
133
|
+
return O(() => {
|
|
134
|
+
const t = e(o), w = e(l);
|
|
135
|
+
t && w && (y = z(t, w, u)), B(() => {
|
|
136
|
+
u();
|
|
137
|
+
});
|
|
138
|
+
}), I(() => {
|
|
139
|
+
y && y();
|
|
140
|
+
}), {
|
|
141
|
+
update: u,
|
|
142
|
+
contentStyle: a,
|
|
143
|
+
arrowStyle: p
|
|
144
|
+
};
|
|
145
|
+
}, q = () => ({
|
|
146
|
+
name: "overflow",
|
|
147
|
+
async fn(o) {
|
|
148
|
+
const l = await D(o);
|
|
149
|
+
let i = 0;
|
|
150
|
+
return l.left > 0 && (i = l.left), l.right > 0 && (i = l.right), {
|
|
151
|
+
data: {
|
|
152
|
+
maxWidth: o.rects.floating.width - i
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
export {
|
|
158
|
+
J as tourKey,
|
|
159
|
+
N as useFloating,
|
|
160
|
+
A as useTarget
|
|
161
|
+
};
|
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpTour from './EpTour.vue';
|
|
3
|
+
import { EpTourStep } from '../tour-step';
|
|
4
|
+
/**
|
|
5
|
+
* tour 自持 barrel(vendor-batch-3 产出)。
|
|
6
|
+
*
|
|
7
|
+
* 步骤识别契约:`steps.ts` 以 `TOUR_STEP_NAME` 过滤默认插槽子项,而
|
|
8
|
+
* `EpTourStep.vue` 的 `defineOptions({ name })` 取同一常量(值为
|
|
9
|
+
* `'EpTourStep'`,见 `constants.ts`)。两侧必须同步修改,不得只改一侧。
|
|
10
|
+
*
|
|
11
|
+
* `.TourStep` 是对外公开面的一部分(迁移前包装态经 `withInstall` 的额外
|
|
12
|
+
* 参数继承自上游),此处以同一形态挂载**本地已安装子项**。
|
|
13
|
+
*
|
|
14
|
+
* `useLockscreen` 由本地 hooks 提供;Tour 的浮动定位依赖 `@floating-ui/dom`。
|
|
15
|
+
*
|
|
16
|
+
* 不导出 `ElTour` / `ElTourStep` 别名;子项由 `src/components/tour-step`
|
|
17
|
+
* 独立提供。
|
|
18
|
+
*/
|
|
19
|
+
export declare const EpTour: typeof _EpTour & Plugin & {
|
|
20
|
+
TourStep: typeof EpTourStep;
|
|
21
|
+
};
|
|
4
22
|
export default EpTour;
|
|
23
|
+
export { tourContentEmits, tourContentProps } from './content';
|
|
24
|
+
export { tourEmits, tourProps } from './tour';
|
|
25
|
+
export { tourPlacements, tourStrategies } from './content';
|
|
26
|
+
export { tourStepEmits, tourStepProps } from '../tour-step/step';
|
|
27
|
+
export type { TourContentEmits, TourContentProps, TourContentPropsPublic, } from './content';
|
|
28
|
+
export type { TourEmits, TourInstance, TourProps, TourPropsPublic, } from './tour';
|
|
29
|
+
export type { TourStepEmits, TourStepProps, TourStepPropsPublic, } from '../tour-step/step';
|
|
30
|
+
export type { TourBtnProps, TourGap, TourMask } from './types';
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as t } from "../../utils/with-install.js";
|
|
2
|
+
import o from "./EpTour.vue.js";
|
|
3
|
+
import { EpTourStep as r } from "../tour-step/index.js";
|
|
4
|
+
import { tourContentEmits as n, tourContentProps as f, tourPlacements as a, tourStrategies as E } from "./content.js";
|
|
5
|
+
import { tourEmits as c, tourProps as x } from "./tour.js";
|
|
6
|
+
import { tourStepEmits as l, tourStepProps as T } from "../tour-step/step.js";
|
|
7
|
+
const s = Object.assign(
|
|
8
|
+
t(o, "ep-tour"),
|
|
9
|
+
{ TourStep: r }
|
|
10
|
+
);
|
|
4
11
|
export {
|
|
5
|
-
|
|
12
|
+
s as EpTour,
|
|
13
|
+
n as tourContentEmits,
|
|
14
|
+
f as tourContentProps,
|
|
15
|
+
c as tourEmits,
|
|
16
|
+
a as tourPlacements,
|
|
17
|
+
x as tourProps,
|
|
18
|
+
l as tourStepEmits,
|
|
19
|
+
T as tourStepProps,
|
|
20
|
+
E as tourStrategies
|
|
6
21
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { PosInfo } from './types';
|
|
3
|
+
export interface MaskProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description mask's zIndex
|
|
6
|
+
*/
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
/**
|
|
9
|
+
* @description whether to show the mask
|
|
10
|
+
*/
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @description mask's fill
|
|
14
|
+
*/
|
|
15
|
+
fill?: string;
|
|
16
|
+
/***
|
|
17
|
+
* @description mask's transparent space position
|
|
18
|
+
*/
|
|
19
|
+
pos?: PosInfo | null;
|
|
20
|
+
/**
|
|
21
|
+
* @description whether the target element can be clickable, when using mask
|
|
22
|
+
*/
|
|
23
|
+
targetAreaClickable?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Removed after 3.0.0, Use `MaskProps` instead.
|
|
27
|
+
*/
|
|
28
|
+
export declare const maskProps: {
|
|
29
|
+
zIndex: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
30
|
+
visible: BooleanConstructor;
|
|
31
|
+
fill: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
32
|
+
pos: {
|
|
33
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => PosInfo) | (() => PosInfo | null) | (((new (...args: any[]) => PosInfo) | (() => PosInfo | null)) | null)[], unknown, unknown>>;
|
|
34
|
+
readonly required: false;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
+
__epPropKey: true;
|
|
37
|
+
};
|
|
38
|
+
targetAreaClickable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Removed after 3.0.0, Use `MaskProps` instead.
|
|
42
|
+
*/
|
|
43
|
+
export type MaskPropsPublic = ExtractPublicPropTypes<typeof maskProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
current: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update-total"[], "update-total", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
current: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{
|
|
15
|
+
"onUpdate-total"?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
current: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as d } from "vue";
|
|
2
|
+
import { isArray as h } from "@vue/shared";
|
|
3
|
+
import "lodash-unified";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import "@element-plus/icons-vue";
|
|
6
|
+
import { flattedChildren as s } from "../../utils/vue/vnode.js";
|
|
7
|
+
import { TOUR_STEP_NAME as E } from "./constants.js";
|
|
8
|
+
const b = d({
|
|
9
|
+
name: "EpTourSteps",
|
|
10
|
+
props: {
|
|
11
|
+
current: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update-total"],
|
|
17
|
+
setup(l, { slots: e, emit: m }) {
|
|
18
|
+
let o = 0;
|
|
19
|
+
return () => {
|
|
20
|
+
var u, a;
|
|
21
|
+
const p = (u = e.default) == null ? void 0 : u.call(e), n = [];
|
|
22
|
+
let t = 0;
|
|
23
|
+
function c(f) {
|
|
24
|
+
h(f) && f.forEach((r) => {
|
|
25
|
+
var i;
|
|
26
|
+
((i = (r == null ? void 0 : r.type) || {}) == null ? void 0 : i.name) === E && (n.push(r), t += 1);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return p.length && c(s((a = p[0]) == null ? void 0 : a.children)), o !== t && (o = t, m("update-total", t)), n.length ? n[l.current] : null;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
b as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { TourContentProps } from './content';
|
|
2
|
+
import type { CSSProperties, ExtractPublicPropTypes } from 'vue';
|
|
3
|
+
import type { IconPropType } from '@element-plus/utils';
|
|
4
|
+
import type Tour from './EpTour.vue';
|
|
5
|
+
import type { TourGap, TourMask } from './types';
|
|
6
|
+
export interface TourProps {
|
|
7
|
+
/**
|
|
8
|
+
* @description open tour
|
|
9
|
+
*/
|
|
10
|
+
modelValue?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @description what is the current step
|
|
13
|
+
*/
|
|
14
|
+
current?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @description whether to show the arrow
|
|
17
|
+
*/
|
|
18
|
+
showArrow?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description whether to show a close button
|
|
21
|
+
*/
|
|
22
|
+
showClose?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @description custom close icon
|
|
25
|
+
*/
|
|
26
|
+
closeIcon?: IconPropType;
|
|
27
|
+
/**
|
|
28
|
+
* @description position of the guide card relative to the target element
|
|
29
|
+
*/
|
|
30
|
+
placement?: TourContentProps['placement'];
|
|
31
|
+
/**
|
|
32
|
+
* @description custom style for content
|
|
33
|
+
*/
|
|
34
|
+
contentStyle?: CSSProperties;
|
|
35
|
+
/**
|
|
36
|
+
* @description whether to enable masking, change mask style and fill color by pass custom props
|
|
37
|
+
*/
|
|
38
|
+
mask?: TourMask;
|
|
39
|
+
/**
|
|
40
|
+
* @description transparent gap between mask and target
|
|
41
|
+
*/
|
|
42
|
+
gap?: TourGap;
|
|
43
|
+
/**
|
|
44
|
+
* @description tour's zIndex
|
|
45
|
+
*/
|
|
46
|
+
zIndex?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @description support pass custom scrollIntoView options
|
|
49
|
+
*/
|
|
50
|
+
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
51
|
+
/**
|
|
52
|
+
* @description type, affects the background color and text color
|
|
53
|
+
*/
|
|
54
|
+
type?: 'default' | 'primary';
|
|
55
|
+
/**
|
|
56
|
+
* @description which element the TourContent appends to
|
|
57
|
+
*/
|
|
58
|
+
appendTo?: string | HTMLElement;
|
|
59
|
+
/**
|
|
60
|
+
* @description whether the Tour can be closed by pressing ESC
|
|
61
|
+
*/
|
|
62
|
+
closeOnPressEscape?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @description whether the target element can be clickable, when using mask
|
|
65
|
+
*/
|
|
66
|
+
targetAreaClickable?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Removed after 3.0.0, Use `TourProps` instead.
|
|
70
|
+
*/
|
|
71
|
+
export declare const tourProps: {
|
|
72
|
+
modelValue: BooleanConstructor;
|
|
73
|
+
current: {
|
|
74
|
+
readonly type: import("vue").PropType<number>;
|
|
75
|
+
readonly required: false;
|
|
76
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
77
|
+
__epPropKey: true;
|
|
78
|
+
};
|
|
79
|
+
showArrow: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
80
|
+
showClose: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
81
|
+
closeIcon: {
|
|
82
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
};
|
|
87
|
+
placement: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement) | (((new (...args: any[]) => "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("@floating-ui/dom").Placement)) | null)[], "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end", unknown, string, boolean>;
|
|
88
|
+
contentStyle: {
|
|
89
|
+
readonly type: import("vue").PropType<CSSProperties>;
|
|
90
|
+
readonly required: false;
|
|
91
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
92
|
+
__epPropKey: true;
|
|
93
|
+
};
|
|
94
|
+
mask: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
95
|
+
style?: CSSProperties;
|
|
96
|
+
color?: string;
|
|
97
|
+
}) | (() => TourMask) | (((new (...args: any[]) => boolean | {
|
|
98
|
+
style?: CSSProperties;
|
|
99
|
+
color?: string;
|
|
100
|
+
}) | (() => TourMask)) | null)[], unknown, unknown, boolean, boolean>;
|
|
101
|
+
gap: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => TourGap) | (() => TourGap) | (((new (...args: any[]) => TourGap) | (() => TourGap)) | null)[], unknown, unknown, () => {
|
|
102
|
+
offset: number;
|
|
103
|
+
radius: number;
|
|
104
|
+
}, boolean>;
|
|
105
|
+
zIndex: {
|
|
106
|
+
readonly type: import("vue").PropType<number>;
|
|
107
|
+
readonly required: false;
|
|
108
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
|
+
__epPropKey: true;
|
|
110
|
+
};
|
|
111
|
+
scrollIntoViewOptions: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | (((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions)) | null)[], unknown, unknown, () => {
|
|
112
|
+
block: string;
|
|
113
|
+
}, boolean>;
|
|
114
|
+
type: {
|
|
115
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => "default" | "primary") | (() => "default" | "primary") | (((new (...args: any[]) => "default" | "primary") | (() => "default" | "primary")) | null)[], unknown, unknown>>;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
};
|
|
120
|
+
appendTo: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown, string, boolean>;
|
|
121
|
+
closeOnPressEscape: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
122
|
+
targetAreaClickable: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated Removed after 3.0.0, Use `TourProps` instead.
|
|
126
|
+
*/
|
|
127
|
+
export type TourPropsPublic = ExtractPublicPropTypes<typeof tourProps>;
|
|
128
|
+
export type TourInstance = InstanceType<typeof Tour> & unknown;
|
|
129
|
+
export declare const tourEmits: {
|
|
130
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
131
|
+
"update:current": (current: number) => boolean;
|
|
132
|
+
close: (current: number) => boolean;
|
|
133
|
+
finish: () => boolean;
|
|
134
|
+
change: (current: number) => boolean;
|
|
135
|
+
};
|
|
136
|
+
export type TourEmits = typeof tourEmits;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { isNumber as o, isBoolean as r } from "../../utils/types.js";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@vue/shared";
|
|
5
|
+
import { UPDATE_MODEL_EVENT as p } from "../../constants/event.js";
|
|
6
|
+
import { iconPropType as l } from "../../utils/vue/icon.js";
|
|
7
|
+
import "vue";
|
|
8
|
+
import { buildProps as n, definePropType as t } from "../../utils/vue/props/runtime.js";
|
|
9
|
+
import { tourContentProps as a } from "./content.js";
|
|
10
|
+
const B = n({
|
|
11
|
+
/**
|
|
12
|
+
* @description open tour
|
|
13
|
+
*/
|
|
14
|
+
modelValue: Boolean,
|
|
15
|
+
/**
|
|
16
|
+
* @description what is the current step
|
|
17
|
+
*/
|
|
18
|
+
current: {
|
|
19
|
+
type: Number
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* @description whether to show the arrow
|
|
23
|
+
*/
|
|
24
|
+
showArrow: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* @description whether to show a close button
|
|
30
|
+
*/
|
|
31
|
+
showClose: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* @description custom close icon
|
|
37
|
+
*/
|
|
38
|
+
closeIcon: {
|
|
39
|
+
type: l
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* @description position of the guide card relative to the target element
|
|
43
|
+
*/
|
|
44
|
+
placement: a.placement,
|
|
45
|
+
/**
|
|
46
|
+
* @description custom style for content
|
|
47
|
+
*/
|
|
48
|
+
contentStyle: {
|
|
49
|
+
type: t([Object])
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @description whether to enable masking, change mask style and fill color by pass custom props
|
|
53
|
+
*/
|
|
54
|
+
mask: {
|
|
55
|
+
type: t([Boolean, Object]),
|
|
56
|
+
default: !0
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* @description transparent gap between mask and target
|
|
60
|
+
*/
|
|
61
|
+
gap: {
|
|
62
|
+
type: t(Object),
|
|
63
|
+
default: () => ({
|
|
64
|
+
offset: 6,
|
|
65
|
+
radius: 2
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* @description tour's zIndex
|
|
70
|
+
*/
|
|
71
|
+
zIndex: {
|
|
72
|
+
type: Number
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* @description support pass custom scrollIntoView options
|
|
76
|
+
*/
|
|
77
|
+
scrollIntoViewOptions: {
|
|
78
|
+
type: t([Boolean, Object]),
|
|
79
|
+
default: () => ({
|
|
80
|
+
block: "center"
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* @description type, affects the background color and text color
|
|
85
|
+
*/
|
|
86
|
+
type: {
|
|
87
|
+
type: t(String)
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* @description which element the TourContent appends to
|
|
91
|
+
*/
|
|
92
|
+
appendTo: {
|
|
93
|
+
type: t([String, Object]),
|
|
94
|
+
default: "body"
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* @description whether the Tour can be closed by pressing ESC
|
|
98
|
+
*/
|
|
99
|
+
closeOnPressEscape: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: !0
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* @description whether the target element can be clickable, when using mask
|
|
105
|
+
*/
|
|
106
|
+
targetAreaClickable: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !0
|
|
109
|
+
}
|
|
110
|
+
}), O = {
|
|
111
|
+
[p]: (e) => r(e),
|
|
112
|
+
"update:current": (e) => o(e),
|
|
113
|
+
close: (e) => o(e),
|
|
114
|
+
finish: () => !0,
|
|
115
|
+
change: (e) => o(e)
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
O as tourEmits,
|
|
119
|
+
B as tourProps
|
|
120
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ButtonProps } from '../button';
|
|
2
|
+
import type { CSSProperties, VNode } from 'vue';
|
|
3
|
+
export type TourMask = boolean | {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface TourGap {
|
|
8
|
+
offset?: number | [number, number];
|
|
9
|
+
radius?: number;
|
|
10
|
+
}
|
|
11
|
+
export type TourBtnProps = {
|
|
12
|
+
children?: VNode | string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
} & Partial<ButtonProps> & Record<string, any>;
|
|
15
|
+
export interface PosInfo {
|
|
16
|
+
left: number;
|
|
17
|
+
top: number;
|
|
18
|
+
height: number;
|
|
19
|
+
width: number;
|
|
20
|
+
radius: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TourStepProps } from './step';
|
|
2
|
+
declare var __VLS_9: {}, __VLS_11: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
header?: (props: typeof __VLS_9) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_11) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<TourStepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
close: () => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<TourStepProps> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
mask: import("../tour").TourMask;
|
|
14
|
+
placement: import("@floating-ui/dom").Placement;
|
|
15
|
+
scrollIntoViewOptions: boolean | ScrollIntoViewOptions;
|
|
16
|
+
showArrow: boolean;
|
|
17
|
+
showClose: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|