ep-craft 0.1.34 → 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/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/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/dropdown/src/dropdown-item-impl2.vue.js +1 -1
- package/dist/components/dropdown/src/dropdown-item2.vue.js +1 -1
- package/dist/components/dropdown/src/dropdown-menu2.vue.js +1 -1
- package/dist/components/dropdown/src/dropdown2.vue.js +1 -1
- 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/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.js +1 -1
- package/dist/components/roving-focus-group/src/roving-focus-item.vue.js +76 -18
- package/dist/components/roving-focus-group/src/roving-focus-item2.vue.js +18 -76
- 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/src/upload-content.vue.d.ts +2 -2
- package/dist/components/upload/src/upload.vue.d.ts +2 -2
- package/dist/constants/column-alignment.js +4 -0
- package/dist/ep-craft.js +367 -279
- 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 +98 -0
- package/dist/utils/arrays.js +4 -3
- package/dist/utils/dom/aria.js +23 -13
- package/dist/utils/dom/scroll.js +61 -46
- package/dist/utils/vue/icon.js +17 -14
- 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 +69 -5
- package/package.json +3 -2
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as m, inject as y, unref as r, openBlock as e, createElementBlock as n, Fragment as l, createElementVNode as s, renderList as i, createBlock as a, createVNode as d } from "vue";
|
|
2
|
+
import c from "./descriptions-cell.js";
|
|
3
|
+
import { descriptionsKey as k } from "./token.js";
|
|
4
|
+
const f = { key: 1 }, _ = /* @__PURE__ */ m({
|
|
5
|
+
name: "EpDescriptionsRow",
|
|
6
|
+
__name: "EpDescriptionsRow",
|
|
7
|
+
props: {
|
|
8
|
+
row: { default: () => [] }
|
|
9
|
+
},
|
|
10
|
+
setup(u) {
|
|
11
|
+
const p = y(k, {});
|
|
12
|
+
return (g, w) => r(p).direction === "vertical" ? (e(), n(l, { key: 0 }, [
|
|
13
|
+
s("tr", null, [
|
|
14
|
+
(e(!0), n(l, null, i(u.row, (t, o) => (e(), a(r(c), {
|
|
15
|
+
key: `tr1-${o}`,
|
|
16
|
+
cell: t,
|
|
17
|
+
tag: "th",
|
|
18
|
+
type: "label"
|
|
19
|
+
}, null, 8, ["cell"]))), 128))
|
|
20
|
+
]),
|
|
21
|
+
s("tr", null, [
|
|
22
|
+
(e(!0), n(l, null, i(u.row, (t, o) => (e(), a(r(c), {
|
|
23
|
+
key: `tr2-${o}`,
|
|
24
|
+
cell: t,
|
|
25
|
+
tag: "td",
|
|
26
|
+
type: "content"
|
|
27
|
+
}, null, 8, ["cell"]))), 128))
|
|
28
|
+
])
|
|
29
|
+
], 64)) : (e(), n("tr", f, [
|
|
30
|
+
(e(!0), n(l, null, i(u.row, (t, o) => (e(), n(l, {
|
|
31
|
+
key: `tr3-${o}`
|
|
32
|
+
}, [
|
|
33
|
+
r(p).border ? (e(), n(l, { key: 0 }, [
|
|
34
|
+
d(r(c), {
|
|
35
|
+
cell: t,
|
|
36
|
+
tag: "td",
|
|
37
|
+
type: "label"
|
|
38
|
+
}, null, 8, ["cell"]),
|
|
39
|
+
d(r(c), {
|
|
40
|
+
cell: t,
|
|
41
|
+
tag: "td",
|
|
42
|
+
type: "content"
|
|
43
|
+
}, null, 8, ["cell"])
|
|
44
|
+
], 64)) : (e(), a(r(c), {
|
|
45
|
+
key: 1,
|
|
46
|
+
cell: t,
|
|
47
|
+
tag: "td",
|
|
48
|
+
type: "both"
|
|
49
|
+
}, null, 8, ["cell"]))
|
|
50
|
+
], 64))), 128))
|
|
51
|
+
]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
_ as default
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COMPONENT_NAME = "EpDescriptionsItem";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { ComponentSize } from '@element-plus/constants';
|
|
3
|
+
import type Description from './EpDescriptions.vue';
|
|
4
|
+
export interface DescriptionProps {
|
|
5
|
+
/**
|
|
6
|
+
* @description with or without border
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
border?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @description numbers of `Descriptions Item` in one line
|
|
12
|
+
* @default 3
|
|
13
|
+
*/
|
|
14
|
+
column?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @description direction of list
|
|
17
|
+
* @default 'horizontal'
|
|
18
|
+
*/
|
|
19
|
+
direction?: 'horizontal' | 'vertical';
|
|
20
|
+
/**
|
|
21
|
+
* @description size of list
|
|
22
|
+
* @default ''
|
|
23
|
+
*/
|
|
24
|
+
size?: ComponentSize;
|
|
25
|
+
/**
|
|
26
|
+
* @description title text, display on the top left
|
|
27
|
+
* @default ''
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @description extra text, display on the top right
|
|
32
|
+
* @default ''
|
|
33
|
+
*/
|
|
34
|
+
extra?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @description width of every label column
|
|
37
|
+
*/
|
|
38
|
+
labelWidth?: string | number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Removed after 3.0.0, Use `DescriptionProps` instead.
|
|
42
|
+
*/
|
|
43
|
+
export declare const descriptionProps: {
|
|
44
|
+
readonly border: BooleanConstructor;
|
|
45
|
+
readonly column: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3, boolean>;
|
|
46
|
+
readonly direction: import("@element-plus/utils").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
47
|
+
readonly size: {
|
|
48
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
49
|
+
readonly required: false;
|
|
50
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
51
|
+
__epPropKey: true;
|
|
52
|
+
};
|
|
53
|
+
readonly title: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
54
|
+
readonly extra: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
55
|
+
readonly labelWidth: {
|
|
56
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
57
|
+
readonly required: false;
|
|
58
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
59
|
+
__epPropKey: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Removed after 3.0.0, Use `DescriptionProps` instead.
|
|
64
|
+
*/
|
|
65
|
+
export type DescriptionPropsPublic = ExtractPublicPropTypes<typeof descriptionProps>;
|
|
66
|
+
export type DescriptionInstance = InstanceType<typeof Description> & unknown;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
import { buildProps as t } from "../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
import { useSizeProp as r } from "../../hooks/use-size/index.js";
|
|
8
|
+
import "@popperjs/core";
|
|
9
|
+
import "../../hooks/use-z-index/index.js";
|
|
10
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
11
|
+
import "../../hooks/use-aria/index.js";
|
|
12
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
13
|
+
import "../../hooks/use-empty-values/index.js";
|
|
14
|
+
const c = t({
|
|
15
|
+
/**
|
|
16
|
+
* @description with or without border
|
|
17
|
+
*/
|
|
18
|
+
border: Boolean,
|
|
19
|
+
/**
|
|
20
|
+
* @description numbers of `Descriptions Item` in one line
|
|
21
|
+
*/
|
|
22
|
+
column: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 3
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @description direction of list
|
|
28
|
+
*/
|
|
29
|
+
direction: {
|
|
30
|
+
type: String,
|
|
31
|
+
values: ["horizontal", "vertical"],
|
|
32
|
+
default: "horizontal"
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* @description size of list
|
|
36
|
+
*/
|
|
37
|
+
size: r,
|
|
38
|
+
/**
|
|
39
|
+
* @description title text, display on the top left
|
|
40
|
+
*/
|
|
41
|
+
title: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* @description extra text, display on the top right
|
|
47
|
+
*/
|
|
48
|
+
extra: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: ""
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @description width of every label column
|
|
54
|
+
*/
|
|
55
|
+
labelWidth: {
|
|
56
|
+
type: [String, Number]
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
c as descriptionProps
|
|
61
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { IDescriptionsInject } from './descriptions.type';
|
|
3
|
+
import type { DescriptionItemVNode } from '../descriptions-item/description-item';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
cell: {
|
|
6
|
+
type: PropType<DescriptionItemVNode>;
|
|
7
|
+
};
|
|
8
|
+
tag: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
type: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
}>, {
|
|
16
|
+
descriptions: IDescriptionsInject;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
cell: {
|
|
19
|
+
type: PropType<DescriptionItemVNode>;
|
|
20
|
+
};
|
|
21
|
+
tag: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
type: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
tag: string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineComponent as A, withDirectives as m, h as o, inject as D } from "vue";
|
|
2
|
+
import { isNil as j } from "lodash-unified";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "@vueuse/core";
|
|
5
|
+
import { addUnit as h } from "../../utils/dom/style.js";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { getNormalizedProps as E } from "../../utils/vue/vnode.js";
|
|
8
|
+
import { useNamespace as $ } from "../../hooks/use-namespace/index.js";
|
|
9
|
+
import "../../hooks/use-size/index.js";
|
|
10
|
+
import "@popperjs/core";
|
|
11
|
+
import "../../hooks/use-z-index/index.js";
|
|
12
|
+
import "../../hooks/use-delayed-toggle/index.js";
|
|
13
|
+
import "../../hooks/use-aria/index.js";
|
|
14
|
+
import "../../hooks/use-model-toggle/index.js";
|
|
15
|
+
import "../../hooks/use-empty-values/index.js";
|
|
16
|
+
import { descriptionsKey as k } from "./token.js";
|
|
17
|
+
const Q = A({
|
|
18
|
+
name: "EpDescriptionsCell",
|
|
19
|
+
props: {
|
|
20
|
+
cell: {
|
|
21
|
+
type: Object
|
|
22
|
+
},
|
|
23
|
+
tag: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "td"
|
|
26
|
+
},
|
|
27
|
+
type: {
|
|
28
|
+
type: String
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup() {
|
|
32
|
+
return {
|
|
33
|
+
descriptions: D(k, {})
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
render() {
|
|
37
|
+
var y;
|
|
38
|
+
const t = E(
|
|
39
|
+
this.cell
|
|
40
|
+
), c = (((y = this.cell) == null ? void 0 : y.dirs) || []).map((s) => {
|
|
41
|
+
const { dir: e, arg: l, modifiers: S, value: W } = s;
|
|
42
|
+
return [e, W, l, S];
|
|
43
|
+
}), { border: b, direction: v } = this.descriptions, n = v === "vertical", f = () => {
|
|
44
|
+
var s, e, l;
|
|
45
|
+
return ((l = (e = (s = this.cell) == null ? void 0 : s.children) == null ? void 0 : e.label) == null ? void 0 : l.call(e)) || t.label;
|
|
46
|
+
}, g = () => {
|
|
47
|
+
var s, e, l;
|
|
48
|
+
return (l = (e = (s = this.cell) == null ? void 0 : s.children) == null ? void 0 : e.default) == null ? void 0 : l.call(e);
|
|
49
|
+
}, r = t.span, a = t.rowspan, p = t.align ? `is-${t.align}` : "", N = t.labelAlign ? `is-${t.labelAlign}` : p, u = t.className, w = t.labelClassName, C = this.type === "label" ? t.labelWidth ?? this.descriptions.labelWidth ?? t.width : t.width, d = {
|
|
50
|
+
width: h(C),
|
|
51
|
+
minWidth: h(t.minWidth)
|
|
52
|
+
}, i = $("descriptions");
|
|
53
|
+
switch (this.type) {
|
|
54
|
+
case "label":
|
|
55
|
+
return m(
|
|
56
|
+
o(
|
|
57
|
+
this.tag,
|
|
58
|
+
{
|
|
59
|
+
style: d,
|
|
60
|
+
class: [
|
|
61
|
+
i.e("cell"),
|
|
62
|
+
i.e("label"),
|
|
63
|
+
i.is("bordered-label", b),
|
|
64
|
+
i.is("vertical-label", n),
|
|
65
|
+
N,
|
|
66
|
+
w
|
|
67
|
+
],
|
|
68
|
+
colSpan: n ? r : 1,
|
|
69
|
+
rowspan: n ? 1 : a
|
|
70
|
+
},
|
|
71
|
+
f()
|
|
72
|
+
),
|
|
73
|
+
c
|
|
74
|
+
);
|
|
75
|
+
case "content":
|
|
76
|
+
return m(
|
|
77
|
+
o(
|
|
78
|
+
this.tag,
|
|
79
|
+
{
|
|
80
|
+
style: d,
|
|
81
|
+
class: [
|
|
82
|
+
i.e("cell"),
|
|
83
|
+
i.e("content"),
|
|
84
|
+
i.is("bordered-content", b),
|
|
85
|
+
i.is("vertical-content", n),
|
|
86
|
+
p,
|
|
87
|
+
u
|
|
88
|
+
],
|
|
89
|
+
colSpan: n ? r : r * 2 - 1,
|
|
90
|
+
rowspan: n ? a * 2 - 1 : a
|
|
91
|
+
},
|
|
92
|
+
g()
|
|
93
|
+
),
|
|
94
|
+
c
|
|
95
|
+
);
|
|
96
|
+
default: {
|
|
97
|
+
const s = f(), e = {}, l = h(t.labelWidth ?? this.descriptions.labelWidth);
|
|
98
|
+
return l && (e.width = l, e.display = "inline-block"), m(
|
|
99
|
+
o(
|
|
100
|
+
"td",
|
|
101
|
+
{
|
|
102
|
+
style: d,
|
|
103
|
+
class: [i.e("cell"), p],
|
|
104
|
+
colSpan: r,
|
|
105
|
+
rowspan: a
|
|
106
|
+
},
|
|
107
|
+
[
|
|
108
|
+
j(s) ? void 0 : o(
|
|
109
|
+
"span",
|
|
110
|
+
{
|
|
111
|
+
style: e,
|
|
112
|
+
class: [i.e("label"), w]
|
|
113
|
+
},
|
|
114
|
+
s
|
|
115
|
+
),
|
|
116
|
+
o(
|
|
117
|
+
"span",
|
|
118
|
+
{
|
|
119
|
+
class: [i.e("content"), u]
|
|
120
|
+
},
|
|
121
|
+
g()
|
|
122
|
+
)
|
|
123
|
+
]
|
|
124
|
+
),
|
|
125
|
+
c
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
export {
|
|
132
|
+
Q as default
|
|
133
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DescriptionItemVNode } from '../descriptions-item/description-item';
|
|
2
|
+
export interface DescriptionsRowProps {
|
|
3
|
+
row?: DescriptionItemVNode[];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Removed after 3.0.0, Use `DescriptionsRowProps` instead.
|
|
7
|
+
*/
|
|
8
|
+
export declare const descriptionsRowProps: {
|
|
9
|
+
readonly row: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => DescriptionItemVNode[]) | (() => DescriptionItemVNode[]) | (((new (...args: any[]) => DescriptionItemVNode[]) | (() => DescriptionItemVNode[])) | null)[], unknown, unknown, () => never[], boolean>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ColumnAlignment, ComponentSize } from '@element-plus/constants';
|
|
2
|
+
/**
|
|
3
|
+
* Descriptions 父级 provide 的注入契约(源文件为纯类型模块,sourcemap 无内容,
|
|
4
|
+
* 按上游同名 `.d.ts` 还原)。
|
|
5
|
+
*/
|
|
6
|
+
export interface IDescriptionsInject {
|
|
7
|
+
border: boolean;
|
|
8
|
+
column: number;
|
|
9
|
+
direction: 'horizontal' | 'vertical';
|
|
10
|
+
size: ComponentSize;
|
|
11
|
+
title: string;
|
|
12
|
+
extra: string;
|
|
13
|
+
labelWidth: string | number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* DescriptionsItem 渲染时读取的规范化 props 契约。
|
|
17
|
+
*/
|
|
18
|
+
export interface IDescriptionsItemInject {
|
|
19
|
+
label: string;
|
|
20
|
+
span: number;
|
|
21
|
+
rowspan: number;
|
|
22
|
+
width: string | number;
|
|
23
|
+
minWidth: string | number;
|
|
24
|
+
labelWidth: string | number;
|
|
25
|
+
align: ColumnAlignment;
|
|
26
|
+
labelAlign?: ColumnAlignment;
|
|
27
|
+
className: string;
|
|
28
|
+
labelClassName: string;
|
|
29
|
+
}
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpDescriptions from './EpDescriptions.vue';
|
|
3
|
+
import { EpDescriptionsItem } from '../descriptions-item';
|
|
4
|
+
/**
|
|
5
|
+
* descriptions 自持 barrel(vendor-batch-2 产出)。
|
|
6
|
+
*
|
|
7
|
+
* 子项识别契约:`EpDescriptions.vue` 以 `flattedChildren(...).filter(...)` 按
|
|
8
|
+
* `COMPONENT_NAME` 过滤子项,而 `description-item.ts` 的组件名直接取同一常量
|
|
9
|
+
* (值为 `'EpDescriptionsItem'`,见 `constants.ts`)。两者必须同步修改。
|
|
10
|
+
*
|
|
11
|
+
* `.DescriptionsItem` 是对外公开面的一部分(迁移前包装态经 `Object.assign`
|
|
12
|
+
* 继承自上游),此处以同一形态挂载**本地已安装子项**。
|
|
13
|
+
*
|
|
14
|
+
* 不导出 `ElDescriptions` / `ElDescriptionsItem` 别名;子项由
|
|
15
|
+
* `src/components/descriptions-item` 独立提供。
|
|
16
|
+
*/
|
|
17
|
+
export declare const EpDescriptions: typeof _EpDescriptions & Plugin & {
|
|
18
|
+
DescriptionsItem: typeof EpDescriptionsItem;
|
|
19
|
+
};
|
|
4
20
|
export default EpDescriptions;
|
|
21
|
+
export { descriptionProps } from './description';
|
|
22
|
+
export { descriptionItemProps } from '../descriptions-item';
|
|
23
|
+
export type { DescriptionInstance, DescriptionProps, DescriptionPropsPublic, } from './description';
|
|
24
|
+
export type { DescriptionItemProps, DescriptionItemPropsPublic, DescriptionItemVNode, } from '../descriptions-item';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ElDescriptions as s } from "element-plus";
|
|
2
1
|
import { withInstall as i } from "../../utils/with-install.js";
|
|
3
|
-
|
|
2
|
+
import o from "./EpDescriptions.vue.js";
|
|
3
|
+
import { EpDescriptionsItem as t } from "../descriptions-item/index.js";
|
|
4
|
+
import { descriptionProps as c } from "./description.js";
|
|
5
|
+
const e = Object.assign(
|
|
6
|
+
i(o, "ep-descriptions"),
|
|
7
|
+
{ DescriptionsItem: t }
|
|
8
|
+
);
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
e as EpDescriptions,
|
|
11
|
+
c as descriptionProps
|
|
6
12
|
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { ExtractPropTypes, ExtractPublicPropTypes, Slot, VNode } from 'vue';
|
|
2
|
+
export declare const descriptionItemProps: {
|
|
3
|
+
label: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
4
|
+
span: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
5
|
+
rowspan: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
6
|
+
width: import("@element-plus/utils").EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
7
|
+
minWidth: import("@element-plus/utils").EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
8
|
+
labelWidth: {
|
|
9
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>>;
|
|
10
|
+
readonly required: false;
|
|
11
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
+
__epPropKey: true;
|
|
13
|
+
};
|
|
14
|
+
align: import("@element-plus/utils").EpPropFinalized<StringConstructor, "left" | "right" | "center", unknown, string, boolean>;
|
|
15
|
+
labelAlign: {
|
|
16
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "left" | "right" | "center", unknown>>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
+
__epPropKey: true;
|
|
20
|
+
};
|
|
21
|
+
className: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
22
|
+
labelClassName: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
23
|
+
};
|
|
24
|
+
declare const DescriptionItem: import("vue").DefineComponent<ExtractPropTypes<{
|
|
25
|
+
label: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
26
|
+
span: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
27
|
+
rowspan: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
28
|
+
width: import("@element-plus/utils").EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
29
|
+
minWidth: import("@element-plus/utils").EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
30
|
+
labelWidth: {
|
|
31
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>>;
|
|
32
|
+
readonly required: false;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
|
+
__epPropKey: true;
|
|
35
|
+
};
|
|
36
|
+
align: import("@element-plus/utils").EpPropFinalized<StringConstructor, "left" | "right" | "center", unknown, string, boolean>;
|
|
37
|
+
labelAlign: {
|
|
38
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "left" | "right" | "center", unknown>>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
className: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
44
|
+
labelClassName: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
45
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
46
|
+
label: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
47
|
+
span: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
48
|
+
rowspan: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
49
|
+
width: import("@element-plus/utils").EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
50
|
+
minWidth: import("@element-plus/utils").EpPropFinalized<(NumberConstructor | StringConstructor)[], unknown, unknown, string, boolean>;
|
|
51
|
+
labelWidth: {
|
|
52
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
57
|
+
align: import("@element-plus/utils").EpPropFinalized<StringConstructor, "left" | "right" | "center", unknown, string, boolean>;
|
|
58
|
+
labelAlign: {
|
|
59
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "left" | "right" | "center", unknown>>;
|
|
60
|
+
readonly required: false;
|
|
61
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
|
+
__epPropKey: true;
|
|
63
|
+
};
|
|
64
|
+
className: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
65
|
+
labelClassName: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
66
|
+
}>> & Readonly<{}>, {
|
|
67
|
+
minWidth: import("@element-plus/utils").EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
68
|
+
width: import("@element-plus/utils").EpPropMergeType<(NumberConstructor | StringConstructor)[], unknown, unknown>;
|
|
69
|
+
label: string;
|
|
70
|
+
span: number;
|
|
71
|
+
className: string;
|
|
72
|
+
align: import("@element-plus/utils").EpPropMergeType<StringConstructor, "left" | "right" | "center", unknown>;
|
|
73
|
+
rowspan: number;
|
|
74
|
+
labelClassName: string;
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
|
+
export default DescriptionItem;
|
|
77
|
+
export type DescriptionItemProps = ExtractPropTypes<typeof descriptionItemProps>;
|
|
78
|
+
export type DescriptionItemPropsPublic = ExtractPublicPropTypes<typeof descriptionItemProps>;
|
|
79
|
+
export type DescriptionItemVNode = VNode & {
|
|
80
|
+
children: {
|
|
81
|
+
[name: string]: Slot;
|
|
82
|
+
} | null;
|
|
83
|
+
props: Partial<DescriptionItemProps> | null;
|
|
84
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { columnAlignment as t } from "../../constants/column-alignment.js";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { buildProps as r } from "../../utils/vue/props/runtime.js";
|
|
8
|
+
import { COMPONENT_NAME as i } from "../descriptions/constants.js";
|
|
9
|
+
const p = r({
|
|
10
|
+
/**
|
|
11
|
+
* @description label text
|
|
12
|
+
*/
|
|
13
|
+
label: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* @description colspan of column
|
|
19
|
+
*/
|
|
20
|
+
span: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 1
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @description the number of rows a cell should span
|
|
26
|
+
*/
|
|
27
|
+
rowspan: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 1
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* @description column width, the width of the same column in different rows is set by the max value (If no `border`, width contains label and content)
|
|
33
|
+
*/
|
|
34
|
+
width: {
|
|
35
|
+
type: [String, Number],
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* @description column minimum width, columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion (If no`border`, width contains label and content)
|
|
40
|
+
*/
|
|
41
|
+
minWidth: {
|
|
42
|
+
type: [String, Number],
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* @description column label width, if not set, it will be the same as the width of the column. Higher priority than the `label-width` of `Descriptions`
|
|
47
|
+
*/
|
|
48
|
+
labelWidth: {
|
|
49
|
+
type: [String, Number]
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @description column content alignment (If no `border`, effective for both label and content)
|
|
53
|
+
*/
|
|
54
|
+
align: {
|
|
55
|
+
type: String,
|
|
56
|
+
values: t,
|
|
57
|
+
default: "left"
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* @description column label alignment, if omitted, the value of the above `align` attribute will be applied (If no `border`, please use `align` attribute)
|
|
61
|
+
*/
|
|
62
|
+
labelAlign: {
|
|
63
|
+
type: String,
|
|
64
|
+
values: t
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* @description column content custom class name
|
|
68
|
+
*/
|
|
69
|
+
className: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: ""
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* @description column label custom class name
|
|
75
|
+
*/
|
|
76
|
+
labelClassName: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: ""
|
|
79
|
+
}
|
|
80
|
+
}), f = e({
|
|
81
|
+
name: i,
|
|
82
|
+
props: p
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
f as default,
|
|
86
|
+
p as descriptionItemProps
|
|
87
|
+
};
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import _EpDescriptionsItem from './description-item';
|
|
3
|
+
/**
|
|
4
|
+
* descriptions-item 自持 barrel(vendor-batch-2 产出)。
|
|
5
|
+
*
|
|
6
|
+
* 子项本体为无模板的 `defineComponent`,组件名直接取
|
|
7
|
+
* `descriptions/constants.ts` 的 `COMPONENT_NAME`(值为 `'EpDescriptionsItem'`)。
|
|
8
|
+
* 父组件 `EpDescriptions.vue` 按同一常量过滤子项 vnode,两侧不各自维护字面量,
|
|
9
|
+
* 故改名不会让识别再次失效。
|
|
10
|
+
*
|
|
11
|
+
* 不导出 `ElDescriptionsItem` 别名。
|
|
12
|
+
*/
|
|
13
|
+
export declare const EpDescriptionsItem: typeof _EpDescriptionsItem & Plugin;
|
|
4
14
|
export default EpDescriptionsItem;
|
|
15
|
+
export { descriptionItemProps } from './description-item';
|
|
16
|
+
export type { DescriptionItemProps, DescriptionItemPropsPublic, DescriptionItemVNode, } from './description-item';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { withInstall as t } from "../../utils/with-install.js";
|
|
2
|
+
import o from "./description-item.js";
|
|
3
|
+
import { descriptionItemProps as s } from "./description-item.js";
|
|
4
|
+
const e = t(o, "ep-descriptions-item");
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
e as EpDescriptionsItem,
|
|
7
|
+
s as descriptionItemProps
|
|
6
8
|
};
|