element-pe 2.2.81 → 2.2.83
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/index.full.js +18 -6
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +7 -7
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +18 -6
- package/es/components/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +26 -119
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +119 -26
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.d.ts +4 -4
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.mjs +103 -38
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert.vue.d.ts +4 -4
- package/es/components/alert/src/alert2.mjs +38 -103
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +65 -65
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +99 -379
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
- package/es/components/autocomplete/src/autocomplete2.mjs +379 -99
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +35 -76
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +76 -35
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +36 -11
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +11 -36
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.d.ts +5 -5
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.mjs +76 -57
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +5 -5
- package/es/components/button/src/button2.mjs +57 -76
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/button/src/use-button.d.ts +1 -1
- package/es/components/calendar/index.d.ts +5 -5
- package/es/components/calendar/src/calendar.vue.d.ts +5 -5
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +33 -87
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +87 -33
- package/es/components/calendar/src/date-table2.mjs.map +1 -1
- package/es/components/calendar/src/use-date-table.mjs +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +35 -17
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +17 -35
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +5 -5
- package/es/components/carousel/index.mjs +4 -4
- package/es/components/carousel/src/carousel-item.mjs +8 -69
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +69 -8
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.mjs +56 -169
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +5 -5
- package/es/components/carousel/src/carousel2.mjs +169 -56
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +128 -128
- package/es/components/cascader/src/cascader.vue.d.ts +64 -64
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-group.mjs +33 -72
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +72 -33
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -66
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +66 -43
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +35 -35
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +353 -58
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +35 -35
- package/es/components/color-picker/src/color-picker2.mjs +58 -345
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
- package/es/components/date-picker/src/panel-utils.d.ts +34 -34
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +27 -120
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +120 -27
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +64 -7
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dialog/index.d.ts +1 -1
- package/es/components/dialog/src/dialog-content.mjs +96 -30
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +30 -96
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +29 -187
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +187 -29
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +17 -14
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +7 -5
- package/es/components/dropdown/src/dropdown.mjs +4 -0
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +15 -12
- package/es/components/dropdown/src/dropdown2.mjs +2 -2
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +55 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -55
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/es/components/form/index.d.ts +12 -12
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.mjs +46 -328
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item.vue.d.ts +5 -5
- package/es/components/form/src/form-item2.mjs +328 -46
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/image/index.d.ts +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +56 -227
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +1 -1
- package/es/components/image/src/image2.mjs +227 -56
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +31 -31
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +114 -468
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +12 -12
- package/es/components/input/src/input2.mjs +468 -114
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +45 -45
- package/es/components/input-number/src/input-number.vue.d.ts +45 -45
- package/es/components/menu/index.d.ts +3 -3
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -35
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +35 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/menu/src/menu.d.ts +4 -4
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.mjs +151 -86
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message/src/message2.mjs +86 -151
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -4
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +17 -103
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +103 -17
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
- package/es/components/pagination/src/components/next.mjs +38 -19
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +19 -38
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +26 -26
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/index.d.ts +23 -23
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
- package/es/components/popover/index.d.ts +18 -18
- package/es/components/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +66 -111
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover.vue.d.ts +18 -18
- package/es/components/popover/src/popover2.mjs +111 -66
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/src/content.vue.d.ts +6 -6
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +76 -35
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +35 -76
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/result/index.d.ts +4 -4
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.mjs +63 -29
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result.vue.d.ts +4 -4
- package/es/components/result/src/result2.mjs +29 -63
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +26 -26
- package/es/components/select/src/select.vue.d.ts +26 -26
- package/es/components/select/src/useSelect.d.ts +24 -24
- package/es/components/select-v2/index.d.ts +30 -30
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +15 -15
- package/es/components/select-v2/src/useSelect.d.ts +13 -13
- package/es/components/slider/index.d.ts +75 -75
- package/es/components/slider/src/button.mjs +21 -94
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button.vue.d.ts +6 -6
- package/es/components/slider/src/button2.mjs +94 -21
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/composables/use-slide.d.ts +24 -24
- package/es/components/slider/src/slider.vue.d.ts +75 -75
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/steps/index.d.ts +16 -16
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.mjs +193 -19
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item.vue.d.ts +4 -4
- package/es/components/steps/src/item2.mjs +19 -193
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/steps/src/steps.vue.d.ts +8 -8
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +267 -99
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +99 -267
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +12 -12
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/tabs/index.mjs +3 -3
- package/es/components/tabs/src/tab-bar.mjs +75 -7
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +7 -75
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tabs/src/tab-pane.mjs +14 -76
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +76 -14
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tag/index.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +22 -35
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +35 -22
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/es/components/time-select/index.d.ts +110 -110
- package/es/components/time-select/index.mjs +1 -1
- package/es/components/time-select/src/time-select.mjs +132 -55
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +55 -55
- package/es/components/time-select/src/time-select2.mjs +55 -132
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +42 -72
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +72 -42
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/index.d.ts +6 -6
- package/es/components/tooltip/src/content.vue.d.ts +6 -6
- package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
- package/es/components/tooltip-v2/index.d.ts +4 -4
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/arrow.mjs +22 -37
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
- package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.mjs +114 -50
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +50 -114
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +3 -3
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
- package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
- package/es/components/tooltip-v2/src/trigger.mjs +91 -12
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +12 -91
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/transfer/index.d.ts +65 -65
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
- package/es/components/transfer/src/transfer.mjs +69 -162
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +65 -65
- package/es/components/transfer/src/transfer2.mjs +162 -69
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/tree-v2/index.d.ts +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/components/upload/index.d.ts +5 -5
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +5 -5
- package/es/index.mjs +31 -31
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +27 -119
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +119 -27
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.d.ts +4 -4
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.js +102 -39
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +4 -4
- package/lib/components/alert/src/alert2.js +39 -102
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +65 -65
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +99 -378
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
- package/lib/components/autocomplete/src/autocomplete2.js +378 -99
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +35 -75
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +75 -35
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +36 -11
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +11 -36
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.d.ts +5 -5
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.js +76 -60
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +5 -5
- package/lib/components/button/src/button2.js +60 -76
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/button/src/use-button.d.ts +1 -1
- package/lib/components/calendar/index.d.ts +5 -5
- package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/date-table.js +37 -87
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +87 -37
- package/lib/components/calendar/src/date-table2.js.map +1 -1
- package/lib/components/calendar/src/use-date-table.js +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +35 -17
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +17 -35
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/carousel/index.d.ts +5 -5
- package/lib/components/carousel/index.js +4 -4
- package/lib/components/carousel/src/carousel-item.js +8 -69
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +69 -8
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.d.ts +1 -1
- package/lib/components/carousel/src/carousel.js +57 -169
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +5 -5
- package/lib/components/carousel/src/carousel2.js +169 -57
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +128 -128
- package/lib/components/cascader/src/cascader.vue.d.ts +64 -64
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-group.js +34 -72
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +72 -34
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -66
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +66 -43
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +35 -35
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +351 -58
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +35 -35
- package/lib/components/color-picker/src/color-picker2.js +58 -343
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
- package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +27 -120
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +120 -27
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +64 -7
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +7 -64
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/components/dialog/src/dialog-content.js +95 -30
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +30 -95
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +30 -187
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +187 -30
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +17 -14
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +7 -5
- package/lib/components/dropdown/src/dropdown.js +4 -0
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +15 -12
- package/lib/components/dropdown/src/dropdown2.js +2 -2
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +55 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -55
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/lib/components/form/index.d.ts +12 -12
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.js +47 -332
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +5 -5
- package/lib/components/form/src/form-item2.js +332 -47
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/image/index.d.ts +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +56 -226
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +1 -1
- package/lib/components/image/src/image2.js +226 -56
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +31 -31
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +114 -467
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +12 -12
- package/lib/components/input/src/input2.js +467 -114
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +45 -45
- package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
- package/lib/components/menu/index.d.ts +3 -3
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -35
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +35 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/menu/src/menu.d.ts +4 -4
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.js +150 -88
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message/src/message2.js +88 -150
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -4
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +18 -103
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +103 -18
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
- package/lib/components/pagination/src/components/next.js +38 -19
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +19 -38
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +26 -26
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/index.d.ts +23 -23
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
- package/lib/components/popover/index.d.ts +18 -18
- package/lib/components/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +67 -111
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +18 -18
- package/lib/components/popover/src/popover2.js +111 -67
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/src/content.vue.d.ts +6 -6
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +76 -37
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +37 -76
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/result/index.d.ts +4 -4
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.js +63 -31
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result.vue.d.ts +4 -4
- package/lib/components/result/src/result2.js +31 -63
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +26 -26
- package/lib/components/select/src/select.vue.d.ts +26 -26
- package/lib/components/select/src/useSelect.d.ts +24 -24
- package/lib/components/select-v2/index.d.ts +30 -30
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +15 -15
- package/lib/components/select-v2/src/useSelect.d.ts +13 -13
- package/lib/components/slider/index.d.ts +75 -75
- package/lib/components/slider/src/button.js +22 -94
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button.vue.d.ts +6 -6
- package/lib/components/slider/src/button2.js +94 -22
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/composables/use-slide.d.ts +24 -24
- package/lib/components/slider/src/slider.vue.d.ts +75 -75
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/steps/index.d.ts +16 -16
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.js +193 -19
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item.vue.d.ts +4 -4
- package/lib/components/steps/src/item2.js +19 -193
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +8 -8
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +266 -99
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +99 -266
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +12 -12
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/tabs/index.js +3 -3
- package/lib/components/tabs/src/tab-bar.js +75 -7
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +7 -75
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tabs/src/tab-pane.js +14 -76
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +76 -14
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +22 -35
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +35 -22
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/lib/components/time-select/index.d.ts +110 -110
- package/lib/components/time-select/index.js +1 -1
- package/lib/components/time-select/src/time-select.js +137 -55
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +55 -55
- package/lib/components/time-select/src/time-select2.js +55 -137
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +42 -72
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +72 -42
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/index.d.ts +6 -6
- package/lib/components/tooltip/src/content.vue.d.ts +6 -6
- package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
- package/lib/components/tooltip-v2/index.d.ts +4 -4
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/arrow.js +23 -37
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +37 -23
- package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.js +114 -50
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +50 -114
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +3 -3
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
- package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
- package/lib/components/tooltip-v2/src/trigger.js +91 -12
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +12 -91
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/transfer/index.d.ts +65 -65
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
- package/lib/components/transfer/src/transfer.js +73 -162
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
- package/lib/components/transfer/src/transfer2.js +162 -73
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/tree-v2/index.d.ts +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/components/upload/index.d.ts +5 -5
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +5 -5
- package/lib/index.js +31 -31
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,36 +1,194 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, createElementVNode, mergeProps, withModifiers, normalizeClass, createElementBlock, renderSlot, toDisplayString, createCommentVNode, vShow } from 'vue';
|
|
2
|
+
import { Close } from '@element-plus/icons-vue';
|
|
3
|
+
import { ElOverlay } from '../../overlay/index.mjs';
|
|
4
|
+
import '../../focus-trap/index.mjs';
|
|
2
5
|
import '../../dialog/index.mjs';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
6
|
+
import '../../../utils/index.mjs';
|
|
7
|
+
import { ElIcon } from '../../icon/index.mjs';
|
|
8
|
+
import '../../../hooks/index.mjs';
|
|
9
|
+
import { drawerProps, drawerEmits } from './drawer.mjs';
|
|
10
|
+
import '../../config-provider/index.mjs';
|
|
11
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
12
|
+
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
|
13
|
+
import { useGlobalConfig } from '../../config-provider/src/hooks/use-global-config.mjs';
|
|
14
|
+
import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
|
|
15
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
16
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
17
|
+
import { addUnit } from '../../../utils/dom/style.mjs';
|
|
18
|
+
import { useDialog } from '../../dialog/src/use-dialog.mjs';
|
|
5
19
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
size: {
|
|
14
|
-
type: [String, Number],
|
|
15
|
-
default: "30%"
|
|
16
|
-
},
|
|
17
|
-
withHeader: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: true
|
|
20
|
-
},
|
|
21
|
-
modalFade: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: true
|
|
24
|
-
},
|
|
25
|
-
widget: {
|
|
26
|
-
type: String
|
|
20
|
+
const _sfc_main = defineComponent({
|
|
21
|
+
name: "ElDrawer",
|
|
22
|
+
components: {
|
|
23
|
+
ElOverlay,
|
|
24
|
+
ElFocusTrap,
|
|
25
|
+
ElIcon,
|
|
26
|
+
Close
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
inheritAttrs: false,
|
|
29
|
+
props: drawerProps,
|
|
30
|
+
emits: drawerEmits,
|
|
31
|
+
setup(props, { slots }) {
|
|
32
|
+
const forEditor = useGlobalConfig("forEditor");
|
|
33
|
+
useDeprecated({
|
|
34
|
+
scope: "el-drawer",
|
|
35
|
+
from: "the title slot",
|
|
36
|
+
replacement: "the header slot",
|
|
37
|
+
version: "3.0.0",
|
|
38
|
+
ref: "https://element-plus.org/en-US/component/drawer.html#slots"
|
|
39
|
+
}, computed(() => !!slots.title));
|
|
40
|
+
useDeprecated({
|
|
41
|
+
scope: "el-drawer",
|
|
42
|
+
from: "custom-class",
|
|
43
|
+
replacement: "class",
|
|
44
|
+
version: "2.3.0",
|
|
45
|
+
ref: "https://element-plus.org/en-US/component/drawer.html#attributes",
|
|
46
|
+
type: "Attribute"
|
|
47
|
+
}, computed(() => !!props.customClass));
|
|
48
|
+
const drawerRef = ref();
|
|
49
|
+
const focusStartRef = ref();
|
|
50
|
+
const ns = useNamespace("drawer");
|
|
51
|
+
const { t } = useLocale();
|
|
52
|
+
const isHorizontal = computed(() => props.direction === "rtl" || props.direction === "ltr");
|
|
53
|
+
const drawerSize = computed(() => addUnit(props.size));
|
|
54
|
+
return {
|
|
55
|
+
forEditor,
|
|
56
|
+
...useDialog(props, drawerRef),
|
|
57
|
+
drawerRef,
|
|
58
|
+
focusStartRef,
|
|
59
|
+
isHorizontal,
|
|
60
|
+
drawerSize,
|
|
61
|
+
ns,
|
|
62
|
+
t
|
|
63
|
+
};
|
|
31
64
|
}
|
|
32
65
|
});
|
|
33
|
-
const
|
|
66
|
+
const _hoisted_1 = ["aria-label", "aria-labelledby", "aria-describedby", "widget"];
|
|
67
|
+
const _hoisted_2 = ["widget"];
|
|
68
|
+
const _hoisted_3 = ["id", "aria-level"];
|
|
69
|
+
const _hoisted_4 = ["aria-label"];
|
|
70
|
+
const _hoisted_5 = ["id", "widget"];
|
|
71
|
+
const _hoisted_6 = ["widget"];
|
|
72
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
73
|
+
const _component_close = resolveComponent("close");
|
|
74
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
75
|
+
const _component_el_focus_trap = resolveComponent("el-focus-trap");
|
|
76
|
+
const _component_el_overlay = resolveComponent("el-overlay");
|
|
77
|
+
return openBlock(), createBlock(Teleport, {
|
|
78
|
+
to: "body",
|
|
79
|
+
disabled: !_ctx.appendToBody
|
|
80
|
+
}, [
|
|
81
|
+
createVNode(Transition, {
|
|
82
|
+
name: _ctx.ns.b("fade"),
|
|
83
|
+
onAfterEnter: _ctx.afterEnter,
|
|
84
|
+
onAfterLeave: _ctx.afterLeave,
|
|
85
|
+
onBeforeLeave: _ctx.beforeLeave,
|
|
86
|
+
duration: _ctx.forEditor ? -1 : 0,
|
|
87
|
+
persisted: ""
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => [
|
|
90
|
+
withDirectives(createVNode(_component_el_overlay, {
|
|
91
|
+
mask: _ctx.modal,
|
|
92
|
+
"overlay-class": (_ctx.modalClass || "") + (_ctx.widget ? ` ps--drawer-widget-class` : ""),
|
|
93
|
+
"z-index": _ctx.zIndex,
|
|
94
|
+
onClick: _ctx.onModalClick
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => [
|
|
97
|
+
createVNode(_component_el_focus_trap, {
|
|
98
|
+
loop: "",
|
|
99
|
+
trapped: _ctx.visible,
|
|
100
|
+
"focus-trap-el": _ctx.drawerRef,
|
|
101
|
+
"focus-start-el": _ctx.focusStartRef,
|
|
102
|
+
onReleaseRequested: _ctx.onCloseRequested
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
createElementVNode("div", mergeProps({
|
|
106
|
+
ref: "drawerRef",
|
|
107
|
+
"aria-modal": "true",
|
|
108
|
+
"aria-label": _ctx.title || void 0,
|
|
109
|
+
"aria-labelledby": !_ctx.title ? _ctx.titleId : void 0,
|
|
110
|
+
"aria-describedby": _ctx.bodyId
|
|
111
|
+
}, _ctx.$attrs, {
|
|
112
|
+
class: [_ctx.ns.b(), _ctx.direction, _ctx.visible && "open", _ctx.customClass],
|
|
113
|
+
style: _ctx.isHorizontal ? "width: " + _ctx.drawerSize : "height: " + _ctx.drawerSize,
|
|
114
|
+
role: "dialog",
|
|
115
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
116
|
+
}, ["stop"])),
|
|
117
|
+
widget: _ctx.widget
|
|
118
|
+
}), [
|
|
119
|
+
createElementVNode("span", {
|
|
120
|
+
ref: "focusStartRef",
|
|
121
|
+
class: normalizeClass(_ctx.ns.e("sr-focus")),
|
|
122
|
+
tabindex: "-1"
|
|
123
|
+
}, null, 2),
|
|
124
|
+
_ctx.withHeader ? (openBlock(), createElementBlock("header", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: normalizeClass(_ctx.ns.e("header")),
|
|
127
|
+
widget: _ctx.widget ? "drawer:title:" + _ctx.widget.split(":")[1] : void 0
|
|
128
|
+
}, [
|
|
129
|
+
!_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
|
|
130
|
+
key: 0,
|
|
131
|
+
close: _ctx.handleClose,
|
|
132
|
+
titleId: _ctx.titleId,
|
|
133
|
+
titleClass: _ctx.ns.e("title")
|
|
134
|
+
}, () => [
|
|
135
|
+
!_ctx.$slots.title ? (openBlock(), createElementBlock("span", {
|
|
136
|
+
key: 0,
|
|
137
|
+
id: _ctx.titleId,
|
|
138
|
+
role: "heading",
|
|
139
|
+
"aria-level": _ctx.headerAriaLevel,
|
|
140
|
+
class: normalizeClass(_ctx.ns.e("title"))
|
|
141
|
+
}, toDisplayString(_ctx.title), 11, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
142
|
+
]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
143
|
+
createCommentVNode(" DEPRECATED SLOT ")
|
|
144
|
+
]),
|
|
145
|
+
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
146
|
+
key: 2,
|
|
147
|
+
"aria-label": _ctx.t("el.drawer.close"),
|
|
148
|
+
class: normalizeClass(_ctx.ns.e("close-btn")),
|
|
149
|
+
type: "button",
|
|
150
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
|
|
151
|
+
}, [
|
|
152
|
+
createVNode(_component_el_icon, {
|
|
153
|
+
class: normalizeClass(_ctx.ns.e("close"))
|
|
154
|
+
}, {
|
|
155
|
+
default: withCtx(() => [
|
|
156
|
+
createVNode(_component_close)
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, ["class"])
|
|
160
|
+
], 10, _hoisted_4)) : createCommentVNode("v-if", true)
|
|
161
|
+
], 10, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
162
|
+
_ctx.rendered ? (openBlock(), createElementBlock("div", {
|
|
163
|
+
key: 1,
|
|
164
|
+
id: _ctx.bodyId,
|
|
165
|
+
class: normalizeClass(_ctx.ns.e("body")),
|
|
166
|
+
widget: _ctx.widget ? "drawer:default:" + _ctx.widget.split(":")[1] : void 0
|
|
167
|
+
}, [
|
|
168
|
+
renderSlot(_ctx.$slots, "default")
|
|
169
|
+
], 10, _hoisted_5)) : createCommentVNode("v-if", true),
|
|
170
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
171
|
+
key: 2,
|
|
172
|
+
class: normalizeClass(_ctx.ns.e("footer")),
|
|
173
|
+
widget: _ctx.widget ? "drawer:footer:" + _ctx.widget.split(":")[1] : void 0
|
|
174
|
+
}, [
|
|
175
|
+
renderSlot(_ctx.$slots, "footer")
|
|
176
|
+
], 10, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
177
|
+
], 16, _hoisted_1)
|
|
178
|
+
]),
|
|
179
|
+
_: 3
|
|
180
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
|
|
181
|
+
]),
|
|
182
|
+
_: 3
|
|
183
|
+
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
184
|
+
[vShow, _ctx.visible]
|
|
185
|
+
])
|
|
186
|
+
]),
|
|
187
|
+
_: 3
|
|
188
|
+
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave", "duration"])
|
|
189
|
+
], 8, ["disabled"]);
|
|
190
|
+
}
|
|
191
|
+
var Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\workspace\\element-pe\\packages\\components\\drawer\\src\\drawer.vue"]]);
|
|
34
192
|
|
|
35
|
-
export {
|
|
193
|
+
export { Drawer as default };
|
|
36
194
|
//# sourceMappingURL=drawer2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer2.mjs","sources":["../../../../../../packages/components/drawer/src/drawer.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { dialogEmits, dialogProps } from '@element-plus/components/dialog'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const drawerProps = buildProps({\n ...dialogProps,\n direction: {\n type: String,\n default: 'rtl',\n values: ['ltr', 'rtl', 'ttb', 'btt'],\n },\n size: {\n type: [String, Number],\n default: '30%',\n },\n withHeader: {\n type: Boolean,\n default: true,\n },\n modalFade: {\n type: Boolean,\n default: true,\n },\n widget: {\n type: String,\n },\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DrawerProps = ExtractPropTypes<typeof drawerProps>\n\nexport const drawerEmits = dialogEmits\n"],"names":[],"mappings":";;;;;AAEY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,GAAG,WAAW;AAChB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;AACxC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;;;;"}
|
|
1
|
+
{"version":3,"file":"drawer2.mjs","sources":["../../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n :name=\"ns.b('fade')\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n :duration=\"forEditor ? -1 : 0\"\n >\n <el-overlay\n v-show=\"visible\"\n :mask=\"modal\"\n :overlay-class=\"(modalClass || '') + (widget ? ` ps--drawer-widget-class` : '')\"\n :z-index=\"zIndex\"\n @click=\"onModalClick\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n :focus-trap-el=\"drawerRef\"\n :focus-start-el=\"focusStartRef\"\n @release-requested=\"onCloseRequested\"\n >\n <div\n ref=\"drawerRef\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n v-bind=\"$attrs\"\n :class=\"[ns.b(), direction, visible && 'open', customClass]\"\n :style=\"\n isHorizontal ? 'width: ' + drawerSize : 'height: ' + drawerSize\n \"\n role=\"dialog\"\n @click.stop\n :widget=\"widget\"\n >\n <span ref=\"focusStartRef\" :class=\"ns.e('sr-focus')\" tabindex=\"-1\" />\n <header v-if=\"withHeader\" :class=\"ns.e('header')\"\n :widget=\"widget ? 'drawer:title:' + widget.split(':')[1] : undefined\"\n >\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n >\n <span\n v-if=\"!$slots.title\"\n :id=\"titleId\"\n role=\"heading\"\n :aria-level=\"headerAriaLevel\"\n :class=\"ns.e('title')\"\n >\n {{ title }}\n </span>\n </slot>\n <slot v-else name=\"title\">\n <!-- DEPRECATED SLOT -->\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.drawer.close')\"\n :class=\"ns.e('close-btn')\"\n type=\"button\"\n @click=\"handleClose\"\n >\n <el-icon :class=\"ns.e('close')\"><close /></el-icon>\n </button>\n </header>\n <template v-if=\"rendered\">\n <div :id=\"bodyId\" :class=\"ns.e('body')\"\n :widget=\"widget ? 'drawer:default:' + widget.split(':')[1] : undefined\"\n >\n <slot />\n </div>\n </template>\n <div v-if=\"$slots.footer\" :class=\"ns.e('footer')\"\n :widget=\"widget ? 'drawer:footer:' + widget.split(':')[1] : undefined\"\n >\n <slot name=\"footer\" />\n </div>\n </div>\n </el-focus-trap>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue'\nimport { Close } from '@element-plus/icons-vue'\n\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport { useDialog } from '@element-plus/components/dialog'\nimport { addUnit } from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport { useDeprecated, useLocale, useNamespace } from '@element-plus/hooks'\nimport { drawerEmits, drawerProps } from './drawer'\nimport { useGlobalConfig } from '../../config-provider'\n\nexport default defineComponent({\n name: 'ElDrawer',\n components: {\n ElOverlay,\n ElFocusTrap,\n ElIcon,\n Close,\n },\n inheritAttrs: false,\n props: drawerProps,\n emits: drawerEmits,\n\n setup(props, { slots }) {\n const forEditor = useGlobalConfig('forEditor')\n\n useDeprecated(\n {\n scope: 'el-drawer',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#slots',\n },\n computed(() => !!slots.title)\n )\n useDeprecated(\n {\n scope: 'el-drawer',\n from: 'custom-class',\n replacement: 'class',\n version: '2.3.0',\n ref: 'https://element-plus.org/en-US/component/drawer.html#attributes',\n type: 'Attribute',\n },\n computed(() => !!props.customClass)\n )\n\n const drawerRef = ref<HTMLElement>()\n const focusStartRef = ref<HTMLElement>()\n const ns = useNamespace('drawer')\n const { t } = useLocale()\n\n const isHorizontal = computed(\n () => props.direction === 'rtl' || props.direction === 'ltr'\n )\n const drawerSize = computed(() => addUnit(props.size))\n\n return {\n forEditor,\n ...useDialog(props, drawerRef),\n drawerRef,\n focusStartRef,\n isHorizontal,\n drawerSize,\n ns,\n t,\n }\n },\n})\n</script>\n"],"names":["_createBlock","_Teleport","_createVNode","_Transition","_withDirectives","_createElementVNode","_mergeProps","_withModifiers","_normalizeClass","_openBlock","_createElementBlock","_renderSlot","_toDisplayString","_createCommentVNode"],"mappings":";;;;;;;;;;;;;;;;;;;AAwGA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,UAAA;AAAA,EACN,UAAY,EAAA;AAAA,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,KAAA,EAAA;AAAA,oBAAA,GAAA,EAAA,CAAA;oBAJqB,KAAK,EAAAF,cAAA,CAAE,QAAG,CAAC,CAAA,QAAA,CAAA,CAAA;AAAA,oBAChC,MAAQ,EAAA,IAAA,CAAA,MAAA,GAAM,gBAAsB,GAAA,IAAA,CAAA,MAAA,CAAO,MAAK,GAAW,CAAA,CAAA,CAAA,CAAA,GAAA,KAAA,CAAA;AAAA,mBAAA,EAAA;oBAE/DG,UAAsB,CAAA,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,mBAAA,EAAA,EAAA,EAAA,UAAA,CAAA,IAAAE,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA;;;;;;;;kBAxEpB,IAAO,CAAA,OAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;"}
|
|
@@ -14,6 +14,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
14
14
|
__epPropKey: true;
|
|
15
15
|
};
|
|
16
16
|
readonly placement: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => import("@popperjs/core").Placement & {}) | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => import("@popperjs/core").Placement & {}) | (() => import("@popperjs/core").Placement))[], unknown, unknown, "bottom", boolean>;
|
|
17
|
+
readonly fallbackPlacements: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
17
18
|
readonly popperOptions: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
18
19
|
readonly id: StringConstructor;
|
|
19
20
|
readonly size: import("element-pe/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -2441,7 +2442,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
2441
2442
|
readonly popperOptions: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
2442
2443
|
readonly strategy: import("element-pe/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
2443
2444
|
}, {
|
|
2444
|
-
emit: ((event: "
|
|
2445
|
+
emit: ((event: "close") => void) & ((event: "focus") => void) & ((event: "blur") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void);
|
|
2445
2446
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2446
2447
|
readonly id: StringConstructor;
|
|
2447
2448
|
readonly style: {
|
|
@@ -2691,10 +2692,10 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
2691
2692
|
readonly strategy: import("element-pe/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
2692
2693
|
}>> & {
|
|
2693
2694
|
onClose?: (() => any) | undefined;
|
|
2694
|
-
onBlur?: (() => any) | undefined;
|
|
2695
2695
|
onFocus?: (() => any) | undefined;
|
|
2696
|
-
|
|
2696
|
+
onBlur?: (() => any) | undefined;
|
|
2697
2697
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
2698
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
2698
2699
|
}>>;
|
|
2699
2700
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
2700
2701
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -2763,7 +2764,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
2763
2764
|
};
|
|
2764
2765
|
}, {
|
|
2765
2766
|
onKeydown: (e: KeyboardEvent) => void;
|
|
2766
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2767
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested")[], "focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2767
2768
|
loop: BooleanConstructor;
|
|
2768
2769
|
trapped: BooleanConstructor;
|
|
2769
2770
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -3038,10 +3039,10 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
3038
3039
|
readonly strategy: import("element-pe/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
3039
3040
|
}>> & {
|
|
3040
3041
|
onClose?: (() => any) | undefined;
|
|
3041
|
-
onBlur?: (() => any) | undefined;
|
|
3042
3042
|
onFocus?: (() => any) | undefined;
|
|
3043
|
-
|
|
3043
|
+
onBlur?: (() => any) | undefined;
|
|
3044
3044
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
3045
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
3045
3046
|
}, {
|
|
3046
3047
|
readonly offset: number;
|
|
3047
3048
|
readonly effect: string;
|
|
@@ -5395,7 +5396,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
5395
5396
|
readonly popperOptions: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
5396
5397
|
readonly strategy: import("element-pe/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5397
5398
|
}, {
|
|
5398
|
-
emit: ((event: "
|
|
5399
|
+
emit: ((event: "close") => void) & ((event: "focus") => void) & ((event: "blur") => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void);
|
|
5399
5400
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5400
5401
|
readonly id: StringConstructor;
|
|
5401
5402
|
readonly style: {
|
|
@@ -5645,10 +5646,10 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
5645
5646
|
readonly strategy: import("element-pe/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5646
5647
|
}>> & {
|
|
5647
5648
|
onClose?: (() => any) | undefined;
|
|
5648
|
-
onBlur?: (() => any) | undefined;
|
|
5649
5649
|
onFocus?: (() => any) | undefined;
|
|
5650
|
-
|
|
5650
|
+
onBlur?: (() => any) | undefined;
|
|
5651
5651
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
5652
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
5652
5653
|
}>>;
|
|
5653
5654
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
5654
5655
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -5717,7 +5718,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
5717
5718
|
};
|
|
5718
5719
|
}, {
|
|
5719
5720
|
onKeydown: (e: KeyboardEvent) => void;
|
|
5720
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
5721
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested")[], "focusAfterTrapped" | "focusAfterReleased" | "focusin" | "focusout" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5721
5722
|
loop: BooleanConstructor;
|
|
5722
5723
|
trapped: BooleanConstructor;
|
|
5723
5724
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -5992,10 +5993,10 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
5992
5993
|
readonly strategy: import("element-pe/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5993
5994
|
}>> & {
|
|
5994
5995
|
onClose?: (() => any) | undefined;
|
|
5995
|
-
onBlur?: (() => any) | undefined;
|
|
5996
5996
|
onFocus?: (() => any) | undefined;
|
|
5997
|
-
|
|
5997
|
+
onBlur?: (() => any) | undefined;
|
|
5998
5998
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
5999
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
5999
6000
|
}, {
|
|
6000
6001
|
readonly offset: number;
|
|
6001
6002
|
readonly effect: string;
|
|
@@ -6321,6 +6322,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
6321
6322
|
__epPropKey: true;
|
|
6322
6323
|
};
|
|
6323
6324
|
readonly placement: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => import("@popperjs/core").Placement & {}) | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => import("@popperjs/core").Placement & {}) | (() => import("@popperjs/core").Placement))[], unknown, unknown, "bottom", boolean>;
|
|
6325
|
+
readonly fallbackPlacements: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
6324
6326
|
readonly popperOptions: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
6325
6327
|
readonly id: StringConstructor;
|
|
6326
6328
|
readonly size: import("element-pe/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -6354,6 +6356,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
6354
6356
|
readonly placement: import("element-pe/es/utils").EpPropMergeType<(new (...args: any[]) => import("@popperjs/core").Placement & {}) | (() => import("@popperjs/core").Placement) | ((new (...args: any[]) => import("@popperjs/core").Placement & {}) | (() => import("@popperjs/core").Placement))[], unknown, unknown>;
|
|
6355
6357
|
readonly showArrow: import("element-pe/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6356
6358
|
readonly popperClass: string;
|
|
6359
|
+
readonly fallbackPlacements: string[];
|
|
6357
6360
|
readonly popperOptions: Partial<import("@popperjs/core").Options>;
|
|
6358
6361
|
readonly teleported: import("element-pe/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
6359
6362
|
readonly disabled: import("element-pe/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -6408,7 +6411,7 @@ export declare const ElDropdown: import("element-pe/es/utils").SFCWithInstall<im
|
|
|
6408
6411
|
divided: boolean;
|
|
6409
6412
|
textValue: string | undefined;
|
|
6410
6413
|
}>;
|
|
6411
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
6414
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "pointermove" | "pointerleave")[], "click" | "pointermove" | "pointerleave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6412
6415
|
readonly command: import("element-pe/es/utils").EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
|
6413
6416
|
readonly disabled: BooleanConstructor;
|
|
6414
6417
|
readonly divided: BooleanConstructor;
|
|
@@ -6510,7 +6513,7 @@ export declare const ElDropdownItem: import("element-pe/es/utils").SFCWithInstal
|
|
|
6510
6513
|
divided: boolean;
|
|
6511
6514
|
textValue: string | undefined;
|
|
6512
6515
|
}>;
|
|
6513
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
6516
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "pointermove" | "pointerleave")[], "click" | "pointermove" | "pointerleave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6514
6517
|
readonly command: import("element-pe/es/utils").EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
|
6515
6518
|
readonly disabled: BooleanConstructor;
|
|
6516
6519
|
readonly divided: BooleanConstructor;
|
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
63
|
handleFocus: (e: Event) => void;
|
|
64
64
|
handleKeydown: (event: KeyboardEvent) => void;
|
|
65
65
|
handleMousedown: (e: Event) => void;
|
|
66
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
66
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "pointermove" | "pointerleave" | "clickimpl")[], "click" | "pointermove" | "pointerleave" | "clickimpl", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
67
|
readonly command: import("element-pe/es/utils").EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
|
68
68
|
readonly disabled: BooleanConstructor;
|
|
69
69
|
readonly divided: BooleanConstructor;
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
divided: boolean;
|
|
40
40
|
textValue: string | undefined;
|
|
41
41
|
}>;
|
|
42
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "
|
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "pointermove" | "pointerleave")[], "click" | "pointermove" | "pointerleave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
43
|
readonly command: import("element-pe/es/utils").EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
|
44
44
|
readonly disabled: BooleanConstructor;
|
|
45
45
|
readonly divided: BooleanConstructor;
|
|
@@ -3,6 +3,7 @@ import type { ButtonProps } from 'element-pe/es/components/button';
|
|
|
3
3
|
import type { Placement } from 'element-pe/es/components/popper';
|
|
4
4
|
import type { ComponentInternalInstance, ComputedRef } from 'vue';
|
|
5
5
|
import type { Nullable } from 'element-pe/es/utils';
|
|
6
|
+
import { PropType } from 'vue';
|
|
6
7
|
export interface IElDropdownInstance {
|
|
7
8
|
instance?: ComponentInternalInstance;
|
|
8
9
|
dropdownSize?: ComputedRef<string>;
|
|
@@ -18,18 +19,19 @@ export declare const dropdownProps: {
|
|
|
18
19
|
readonly trigger: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-pe/es/utils").Arrayable<import("element-pe/es/components/tooltip").TooltipTriggerType> & {}) | (() => import("element-pe/es/utils").Arrayable<import("element-pe/es/components/tooltip").TooltipTriggerType>) | ((new (...args: any[]) => import("element-pe/es/utils").Arrayable<import("element-pe/es/components/tooltip").TooltipTriggerType> & {}) | (() => import("element-pe/es/utils").Arrayable<import("element-pe/es/components/tooltip").TooltipTriggerType>))[], unknown, unknown, "hover", boolean>;
|
|
19
20
|
readonly effect: {
|
|
20
21
|
readonly default: "light";
|
|
21
|
-
readonly type:
|
|
22
|
+
readonly type: PropType<string>;
|
|
22
23
|
readonly required: false;
|
|
23
24
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
25
|
readonly __epPropKey: true;
|
|
25
26
|
};
|
|
26
27
|
readonly type: {
|
|
27
|
-
readonly type:
|
|
28
|
+
readonly type: PropType<import("element-pe/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-pe/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import("element-pe/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>) | ((new (...args: any[]) => import("element-pe/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown> & {}) | (() => import("element-pe/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "text" | "success" | "warning" | "info" | "primary" | "danger", unknown>))[], unknown, unknown>>;
|
|
28
29
|
readonly required: false;
|
|
29
30
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
31
|
__epPropKey: true;
|
|
31
32
|
};
|
|
32
33
|
readonly placement: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => Placement & {}) | (() => Placement) | ((new (...args: any[]) => Placement & {}) | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
34
|
+
readonly fallbackPlacements: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
33
35
|
readonly popperOptions: import("element-pe/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
34
36
|
readonly id: StringConstructor;
|
|
35
37
|
readonly size: import("element-pe/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -44,7 +46,7 @@ export declare const dropdownProps: {
|
|
|
44
46
|
readonly disabled: import("element-pe/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
45
47
|
readonly role: import("element-pe/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "menu", boolean>;
|
|
46
48
|
readonly buttonProps: {
|
|
47
|
-
readonly type:
|
|
49
|
+
readonly type: PropType<ButtonProps>;
|
|
48
50
|
readonly required: false;
|
|
49
51
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
52
|
__epPropKey: true;
|
|
@@ -59,7 +61,7 @@ export declare const dropdownItemProps: {
|
|
|
59
61
|
readonly divided: BooleanConstructor;
|
|
60
62
|
readonly textValue: StringConstructor;
|
|
61
63
|
readonly icon: {
|
|
62
|
-
readonly type:
|
|
64
|
+
readonly type: PropType<import("element-pe/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
|
|
63
65
|
readonly required: false;
|
|
64
66
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
65
67
|
__epPropKey: true;
|
|
@@ -67,7 +69,7 @@ export declare const dropdownItemProps: {
|
|
|
67
69
|
};
|
|
68
70
|
export declare const dropdownMenuProps: {
|
|
69
71
|
onKeydown: {
|
|
70
|
-
readonly type:
|
|
72
|
+
readonly type: PropType<(e: KeyboardEvent) => void>;
|
|
71
73
|
readonly required: false;
|
|
72
74
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
73
75
|
__epPropKey: true;
|
|
@@ -22,6 +22,10 @@ const dropdownProps = buildProps({
|
|
|
22
22
|
type: definePropType(String),
|
|
23
23
|
default: "bottom"
|
|
24
24
|
},
|
|
25
|
+
fallbackPlacements: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: () => ["bottom", "top", "right", "left"]
|
|
28
|
+
},
|
|
25
29
|
popperOptions: {
|
|
26
30
|
type: definePropType(Object),
|
|
27
31
|
default: () => ({})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.mjs","sources":["../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["// @ts-nocheck\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type { Options } from '@popperjs/core'\nimport type { ButtonProps, ButtonType } from '@element-plus/components/button'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { ComponentInternalInstance, ComputedRef } from 'vue'\nimport type { Nullable } from '@element-plus/utils'\n\nexport interface IElDropdownInstance {\n instance?: ComponentInternalInstance\n dropdownSize?: ComputedRef<string>\n handleClick?: () => void\n commandHandler?: (...arg) => void\n show?: () => void\n hide?: () => void\n trigger?: ComputedRef<string>\n hideOnClick?: ComputedRef<boolean>\n triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>\n}\n\nexport const dropdownProps = buildProps({\n trigger: useTooltipTriggerProps.trigger,\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n type: {\n type: definePropType<ButtonType>(String),\n },\n placement: {\n type: definePropType<Placement>(String),\n default: 'bottom',\n },\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n id: String,\n size: {\n type: String,\n default: '',\n },\n splitButton: Boolean,\n hideOnClick: {\n type: Boolean,\n default: true,\n },\n loop: {\n type: Boolean,\n default: true,\n },\n showTimeout: {\n type: Number,\n default: 150,\n },\n hideTimeout: {\n type: Number,\n default: 150,\n },\n tabindex: {\n type: definePropType<number | string>([Number, String]),\n default: 0,\n },\n maxHeight: {\n type: definePropType<number | string>([Number, String]),\n default: '',\n },\n popperClass: {\n type: String,\n default: '',\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n role: {\n type: String,\n default: 'menu',\n },\n buttonProps: {\n type: definePropType<ButtonProps>(Object),\n },\n teleported: useTooltipContentProps.teleported,\n offset: {\n type: Number,\n default: 0,\n },\n showArrow: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const dropdownItemProps = buildProps({\n command: {\n type: [Object, String, Number],\n default: () => ({}),\n },\n disabled: Boolean,\n divided: Boolean,\n textValue: String,\n icon: {\n type: iconPropType,\n },\n} as const)\n\nexport const dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType<(e: KeyboardEvent) => void>(Function) },\n})\n\nexport const FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home,\n]\n\nexport const LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end]\n\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS]\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('Dropdown')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY,\n}\n"],"names":[],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U,CAAC,IAAI;AACjB,EAAE,UAAU,CAAC,QAAQ;AACrB,EAAE,UAAU,CAAC,IAAI;AACjB,EAAE;AACU,MAAC,SAAS,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE;AAChE,MAAC,eAAe,GAAG,CAAC,GAAG,UAAU,EAAE,GAAG,SAAS,EAAE;AACxD,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,UAAU;;;;"}
|
|
1
|
+
{"version":3,"file":"dropdown.mjs","sources":["../../../../../../packages/components/dropdown/src/dropdown.ts"],"sourcesContent":["// @ts-nocheck\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { createCollectionWithScope } from '@element-plus/components/collection'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type { Options } from '@popperjs/core'\nimport type { ButtonProps, ButtonType } from '@element-plus/components/button'\nimport type { Placement } from '@element-plus/components/popper'\nimport type { ComponentInternalInstance, ComputedRef } from 'vue'\nimport type { Nullable } from '@element-plus/utils'\nimport { PropType } from 'vue'\n\nexport interface IElDropdownInstance {\n instance?: ComponentInternalInstance\n dropdownSize?: ComputedRef<string>\n handleClick?: () => void\n commandHandler?: (...arg) => void\n show?: () => void\n hide?: () => void\n trigger?: ComputedRef<string>\n hideOnClick?: ComputedRef<boolean>\n triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>\n}\n\nexport const dropdownProps = buildProps({\n trigger: useTooltipTriggerProps.trigger,\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n type: {\n type: definePropType<ButtonType>(String),\n },\n placement: {\n type: definePropType<Placement>(String),\n default: 'bottom',\n },\n fallbackPlacements: {\n type: Array as PropType<string[]>,\n default: () => ['bottom', 'top', 'right', 'left']\n },\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n id: String,\n size: {\n type: String,\n default: '',\n },\n splitButton: Boolean,\n hideOnClick: {\n type: Boolean,\n default: true,\n },\n loop: {\n type: Boolean,\n default: true,\n },\n showTimeout: {\n type: Number,\n default: 150,\n },\n hideTimeout: {\n type: Number,\n default: 150,\n },\n tabindex: {\n type: definePropType<number | string>([Number, String]),\n default: 0,\n },\n maxHeight: {\n type: definePropType<number | string>([Number, String]),\n default: '',\n },\n popperClass: {\n type: String,\n default: '',\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n role: {\n type: String,\n default: 'menu',\n },\n buttonProps: {\n type: definePropType<ButtonProps>(Object),\n },\n teleported: useTooltipContentProps.teleported,\n offset: {\n type: Number,\n default: 0,\n },\n showArrow: {\n type: Boolean,\n default: true,\n },\n} as const)\n\nexport const dropdownItemProps = buildProps({\n command: {\n type: [Object, String, Number],\n default: () => ({}),\n },\n disabled: Boolean,\n divided: Boolean,\n textValue: String,\n icon: {\n type: iconPropType,\n },\n} as const)\n\nexport const dropdownMenuProps = buildProps({\n onKeydown: { type: definePropType<(e: KeyboardEvent) => void>(Function) },\n})\n\nexport const FIRST_KEYS = [\n EVENT_CODE.down,\n EVENT_CODE.pageDown,\n EVENT_CODE.home,\n]\n\nexport const LAST_KEYS = [EVENT_CODE.up, EVENT_CODE.pageUp, EVENT_CODE.end]\n\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS]\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('Dropdown')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY,\n}\n"],"names":[],"mappings":";;;;;;;;;;;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