@element-plus/nightly 0.0.20240724 → 0.0.20240725
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/attributes.json +1 -1
- package/dist/index.full.js +37 -105
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +37 -105
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +80 -80
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +80 -80
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +21 -54
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +54 -21
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +38 -89
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +89 -38
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/breadcrumb/index.d.ts +8 -8
- package/es/components/breadcrumb/src/breadcrumb-item.d.ts +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.mjs +1 -4
- package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -4
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +57 -77
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +77 -57
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/calendar/src/calendar2.mjs +1 -1
- package/es/components/calendar/src/date-table.mjs +87 -33
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/date-table2.mjs +33 -87
- 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/carousel/index.d.ts +4 -0
- package/es/components/carousel/src/carousel.d.ts +1 -0
- package/es/components/carousel/src/carousel.mjs +4 -0
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +4 -0
- package/es/components/carousel/src/constants.d.ts +1 -0
- package/es/components/carousel/src/constants.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel-item.mjs +5 -6
- package/es/components/carousel/src/use-carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.mjs +1 -0
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +160 -160
- package/es/components/cascader/src/cascader.vue.d.ts +80 -80
- package/es/components/cascader/src/cascader2.mjs +1 -1
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/check-tag/index.d.ts +4 -4
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.mjs +1 -4
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag.vue.d.ts +4 -4
- package/es/components/color-picker/index.d.ts +44 -44
- package/es/components/color-picker/src/color-picker.vue.d.ts +44 -44
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +23 -77
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +77 -23
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +20 -20
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +20 -20
- package/es/components/date-picker/src/date-picker.d.ts +1 -1
- package/es/components/date-picker/src/panel-utils.d.ts +40 -40
- package/es/components/descriptions/index.d.ts +4 -4
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.mjs +1 -4
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +4 -4
- package/es/components/dialog/index.d.ts +7 -7
- package/es/components/dialog/src/dialog.d.ts +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -4
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +7 -7
- package/es/components/drawer/index.d.ts +7 -7
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.d.ts +1 -1
- package/es/components/drawer/src/drawer.mjs +27 -181
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +7 -7
- package/es/components/drawer/src/drawer2.mjs +181 -27
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +16 -16
- package/es/components/dropdown/src/dropdown.vue.d.ts +16 -16
- package/es/components/index.mjs +6 -6
- package/es/components/input/index.d.ts +20 -20
- package/es/components/input/src/input.d.ts +5 -5
- package/es/components/input/src/input.mjs +5 -20
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +20 -20
- package/es/components/input-number/index.d.ts +57 -57
- package/es/components/input-number/src/input-number.vue.d.ts +57 -57
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.mjs +1 -4
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -4
- package/es/components/overlay/index.d.ts +3 -3
- package/es/components/overlay/src/overlay.d.ts +4 -4
- package/es/components/overlay/src/overlay.mjs +1 -4
- package/es/components/overlay/src/overlay.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +20 -20
- package/es/components/pagination/src/components/sizes.vue.d.ts +32 -32
- package/es/components/popconfirm/index.d.ts +24 -24
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +24 -24
- package/es/components/popover/index.d.ts +24 -24
- package/es/components/popover/src/popover.vue.d.ts +24 -24
- package/es/components/progress/index.d.ts +8 -8
- package/es/components/progress/src/progress.d.ts +2 -2
- package/es/components/progress/src/progress.mjs +2 -8
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress.vue.d.ts +8 -8
- package/es/components/rate/index.d.ts +4 -4
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.mjs +1 -4
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +4 -4
- package/es/components/select/index.d.ts +32 -32
- package/es/components/select/src/select.vue.d.ts +32 -32
- package/es/components/select/src/useSelect.d.ts +32 -32
- package/es/components/select-v2/index.d.ts +64 -64
- package/es/components/select-v2/src/select.vue.d.ts +32 -32
- package/es/components/select-v2/src/useSelect.d.ts +32 -32
- package/es/components/slider/index.d.ts +97 -97
- package/es/components/slider/src/button.vue.d.ts +8 -8
- package/es/components/slider/src/composables/use-slide.d.ts +32 -32
- package/es/components/slider/src/slider.vue.d.ts +97 -97
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +19 -191
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +191 -19
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/switch/index.d.ts +12 -12
- package/es/components/switch/src/switch.d.ts +3 -3
- package/es/components/switch/src/switch.mjs +3 -12
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +12 -12
- package/es/components/table/src/filter-panel.vue.d.ts +16 -16
- package/es/components/teleport/index.d.ts +4 -4
- package/es/components/teleport/src/teleport.d.ts +1 -1
- package/es/components/teleport/src/teleport.mjs +1 -4
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +4 -4
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/src/common/picker.vue.d.ts +45 -45
- package/es/components/time-picker/src/time-picker.d.ts +1 -1
- package/es/components/time-select/index.d.ts +64 -64
- package/es/components/time-select/src/time-select.vue.d.ts +64 -64
- package/es/components/timeline/index.d.ts +24 -24
- package/es/components/timeline/src/timeline-item.d.ts +3 -3
- package/es/components/timeline/src/timeline-item.mjs +3 -12
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +12 -12
- package/es/components/tooltip/index.d.ts +8 -8
- package/es/components/tooltip/src/content.d.ts +1 -1
- package/es/components/tooltip/src/content.mjs +1 -4
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +4 -4
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/es/components/tooltip-v2/index.d.ts +13 -13
- package/es/components/tooltip-v2/src/content.d.ts +1 -1
- package/es/components/tooltip-v2/src/content.mjs +1 -4
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content.vue.d.ts +4 -4
- package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +13 -13
- package/es/components/transfer/index.d.ts +100 -100
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +19 -128
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel.vue.d.ts +20 -20
- package/es/components/transfer/src/transfer-panel2.mjs +128 -19
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +100 -100
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/components/upload/index.d.ts +38 -38
- package/es/components/upload/src/upload-content.d.ts +2 -2
- package/es/components/upload/src/upload-content.vue.d.ts +8 -8
- package/es/components/upload/src/upload-list.vue.d.ts +8 -8
- package/es/components/upload/src/upload.d.ts +8 -16
- package/es/components/upload/src/upload.mjs +2 -8
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload.vue.d.ts +38 -38
- package/es/index.mjs +6 -6
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +80 -80
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +80 -80
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +22 -54
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +54 -22
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +38 -89
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +89 -38
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/breadcrumb/index.d.ts +8 -8
- package/lib/components/breadcrumb/src/breadcrumb-item.d.ts +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.js +1 -4
- package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +4 -4
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +60 -77
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +77 -60
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/calendar/src/calendar2.js +1 -1
- package/lib/components/calendar/src/date-table.js +87 -37
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/date-table2.js +37 -87
- 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/carousel/index.d.ts +4 -0
- package/lib/components/carousel/src/carousel.d.ts +1 -0
- package/lib/components/carousel/src/carousel.js +4 -0
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +4 -0
- package/lib/components/carousel/src/constants.d.ts +1 -0
- package/lib/components/carousel/src/constants.js.map +1 -1
- package/lib/components/carousel/src/use-carousel-item.js +5 -6
- package/lib/components/carousel/src/use-carousel-item.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.js +1 -0
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/cascader/index.d.ts +160 -160
- package/lib/components/cascader/src/cascader.vue.d.ts +80 -80
- package/lib/components/cascader/src/cascader2.js +1 -1
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/check-tag/index.d.ts +4 -4
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.js +1 -4
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag.vue.d.ts +4 -4
- package/lib/components/color-picker/index.d.ts +44 -44
- package/lib/components/color-picker/src/color-picker.vue.d.ts +44 -44
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +24 -77
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +77 -24
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +20 -20
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +20 -20
- package/lib/components/date-picker/src/date-picker.d.ts +1 -1
- package/lib/components/date-picker/src/panel-utils.d.ts +40 -40
- package/lib/components/descriptions/index.d.ts +4 -4
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.js +1 -4
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +4 -4
- package/lib/components/dialog/index.d.ts +7 -7
- package/lib/components/dialog/src/dialog.d.ts +1 -1
- package/lib/components/dialog/src/dialog.js +1 -4
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
- package/lib/components/drawer/index.d.ts +7 -7
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.d.ts +1 -1
- package/lib/components/drawer/src/drawer.js +28 -181
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +7 -7
- package/lib/components/drawer/src/drawer2.js +181 -28
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +16 -16
- package/lib/components/dropdown/src/dropdown.vue.d.ts +16 -16
- package/lib/components/index.js +6 -6
- package/lib/components/input/index.d.ts +20 -20
- package/lib/components/input/src/input.d.ts +5 -5
- package/lib/components/input/src/input.js +5 -20
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +20 -20
- package/lib/components/input-number/index.d.ts +57 -57
- package/lib/components/input-number/src/input-number.vue.d.ts +57 -57
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.js +1 -4
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -4
- package/lib/components/overlay/index.d.ts +3 -3
- package/lib/components/overlay/src/overlay.d.ts +4 -4
- package/lib/components/overlay/src/overlay.js +1 -4
- package/lib/components/overlay/src/overlay.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +20 -20
- package/lib/components/pagination/src/components/sizes.vue.d.ts +32 -32
- package/lib/components/popconfirm/index.d.ts +24 -24
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +24 -24
- package/lib/components/popover/index.d.ts +24 -24
- package/lib/components/popover/src/popover.vue.d.ts +24 -24
- package/lib/components/progress/index.d.ts +8 -8
- package/lib/components/progress/src/progress.d.ts +2 -2
- package/lib/components/progress/src/progress.js +2 -8
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +8 -8
- package/lib/components/rate/index.d.ts +4 -4
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.js +1 -4
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +4 -4
- package/lib/components/select/index.d.ts +32 -32
- package/lib/components/select/src/select.vue.d.ts +32 -32
- package/lib/components/select/src/useSelect.d.ts +32 -32
- package/lib/components/select-v2/index.d.ts +64 -64
- package/lib/components/select-v2/src/select.vue.d.ts +32 -32
- package/lib/components/select-v2/src/useSelect.d.ts +32 -32
- package/lib/components/slider/index.d.ts +97 -97
- package/lib/components/slider/src/button.vue.d.ts +8 -8
- package/lib/components/slider/src/composables/use-slide.d.ts +32 -32
- package/lib/components/slider/src/slider.vue.d.ts +97 -97
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +19 -191
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +191 -19
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/switch/index.d.ts +12 -12
- package/lib/components/switch/src/switch.d.ts +3 -3
- package/lib/components/switch/src/switch.js +3 -12
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +12 -12
- package/lib/components/table/src/filter-panel.vue.d.ts +16 -16
- package/lib/components/teleport/index.d.ts +4 -4
- package/lib/components/teleport/src/teleport.d.ts +1 -1
- package/lib/components/teleport/src/teleport.js +1 -4
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +4 -4
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/src/common/picker.vue.d.ts +45 -45
- package/lib/components/time-picker/src/time-picker.d.ts +1 -1
- package/lib/components/time-select/index.d.ts +64 -64
- package/lib/components/time-select/src/time-select.vue.d.ts +64 -64
- package/lib/components/timeline/index.d.ts +24 -24
- package/lib/components/timeline/src/timeline-item.d.ts +3 -3
- package/lib/components/timeline/src/timeline-item.js +3 -12
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +12 -12
- package/lib/components/tooltip/index.d.ts +8 -8
- package/lib/components/tooltip/src/content.d.ts +1 -1
- package/lib/components/tooltip/src/content.js +1 -4
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/lib/components/tooltip-v2/index.d.ts +13 -13
- package/lib/components/tooltip-v2/src/content.d.ts +1 -1
- package/lib/components/tooltip-v2/src/content.js +1 -4
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +13 -13
- package/lib/components/transfer/index.d.ts +100 -100
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +21 -128
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +20 -20
- package/lib/components/transfer/src/transfer-panel2.js +128 -21
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +100 -100
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/components/upload/index.d.ts +38 -38
- package/lib/components/upload/src/upload-content.d.ts +2 -2
- package/lib/components/upload/src/upload-content.vue.d.ts +8 -8
- package/lib/components/upload/src/upload-list.vue.d.ts +8 -8
- package/lib/components/upload/src/upload.d.ts +8 -16
- package/lib/components/upload/src/upload.js +2 -8
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +38 -38
- package/lib/index.js +6 -6
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -34,7 +34,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
34
34
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
35
|
__epPropKey: true;
|
|
36
36
|
};
|
|
37
|
-
readonly trapFocus:
|
|
37
|
+
readonly trapFocus: BooleanConstructor;
|
|
38
38
|
readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
39
39
|
readonly center: BooleanConstructor;
|
|
40
40
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -87,7 +87,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
87
87
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
88
|
__epPropKey: true;
|
|
89
89
|
};
|
|
90
|
-
readonly trapFocus:
|
|
90
|
+
readonly trapFocus: BooleanConstructor;
|
|
91
91
|
readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
92
92
|
readonly center: BooleanConstructor;
|
|
93
93
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -160,7 +160,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
160
160
|
draggable: import("vue").ComputedRef<boolean>;
|
|
161
161
|
ElOverlay: import("vue").DefineComponent<{
|
|
162
162
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
163
|
-
readonly customMaskEvent:
|
|
163
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
164
164
|
readonly overlayClass: {
|
|
165
165
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
166
166
|
readonly required: false;
|
|
@@ -179,7 +179,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
179
179
|
click: (evt: MouseEvent) => boolean;
|
|
180
180
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
181
181
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
182
|
-
readonly customMaskEvent:
|
|
182
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
183
183
|
readonly overlayClass: {
|
|
184
184
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
185
185
|
readonly required: false;
|
|
@@ -196,7 +196,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
196
196
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
197
197
|
}, {
|
|
198
198
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
199
|
-
readonly customMaskEvent:
|
|
199
|
+
readonly customMaskEvent: boolean;
|
|
200
200
|
}>;
|
|
201
201
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
202
202
|
loop: BooleanConstructor;
|
|
@@ -429,7 +429,7 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
429
429
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
430
430
|
__epPropKey: true;
|
|
431
431
|
};
|
|
432
|
-
readonly trapFocus:
|
|
432
|
+
readonly trapFocus: BooleanConstructor;
|
|
433
433
|
readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
434
434
|
readonly center: BooleanConstructor;
|
|
435
435
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -470,10 +470,10 @@ export declare const ElDialog: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
470
470
|
readonly modal: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
471
471
|
readonly openDelay: number;
|
|
472
472
|
readonly closeDelay: number;
|
|
473
|
-
readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
474
473
|
readonly headerAriaLevel: string;
|
|
475
474
|
readonly appendToBody: boolean;
|
|
476
475
|
readonly destroyOnClose: boolean;
|
|
476
|
+
readonly trapFocus: boolean;
|
|
477
477
|
}>> & Record<string, any>;
|
|
478
478
|
export default ElDialog;
|
|
479
479
|
export * from './src/use-dialog';
|
|
@@ -37,7 +37,7 @@ export declare const dialogProps: {
|
|
|
37
37
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
38
|
__epPropKey: true;
|
|
39
39
|
};
|
|
40
|
-
readonly trapFocus:
|
|
40
|
+
readonly trapFocus: BooleanConstructor;
|
|
41
41
|
readonly headerAriaLevel: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
42
42
|
readonly center: BooleanConstructor;
|
|
43
43
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { dialogContentProps } from './dialog-content'\n\nimport type { ExtractPropTypes } from 'vue'\n\ntype DoneFn = (cancel?: boolean) => void\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: definePropType<string>(String),\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus:
|
|
1
|
+
{"version":3,"file":"dialog.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.ts"],"sourcesContent":["import { buildProps, definePropType, isBoolean } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { dialogContentProps } from './dialog-content'\n\nimport type { ExtractPropTypes } from 'vue'\n\ntype DoneFn = (cancel?: boolean) => void\nexport type DialogBeforeCloseFn = (done: DoneFn) => void\n\nexport const dialogProps = buildProps({\n ...dialogContentProps,\n /**\n * @description whether to append Dialog itself to body. A nested Dialog should have this attribute set to `true`\n */\n appendToBody: Boolean,\n /**\n * @description which element the Dialog appends to\n */\n appendTo: {\n type: definePropType<string>(String),\n default: 'body',\n },\n /**\n * @description callback before Dialog closes, and it will prevent Dialog from closing, use done to close the dialog\n */\n beforeClose: {\n type: definePropType<DialogBeforeCloseFn>(Function),\n },\n /**\n * @description destroy elements in Dialog when closed\n */\n destroyOnClose: Boolean,\n /**\n * @description whether the Dialog can be closed by clicking the mask\n */\n closeOnClickModal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the Dialog can be closed by pressing ESC\n */\n closeOnPressEscape: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether scroll of body is disabled while Dialog is displayed\n */\n lockScroll: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether a mask is displayed\n */\n modal: {\n type: Boolean,\n default: true,\n },\n /**\n * @description the Time(milliseconds) before open\n */\n openDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description the Time(milliseconds) before close\n */\n closeDelay: {\n type: Number,\n default: 0,\n },\n /**\n * @description value for `margin-top` of Dialog CSS, default is 15vh\n */\n top: {\n type: String,\n },\n /**\n * @description visibility of Dialog\n */\n modelValue: Boolean,\n /**\n * @description custom class names for mask\n */\n modalClass: String,\n /**\n * @description width of Dialog, default is 50%\n */\n width: {\n type: [String, Number],\n },\n /**\n * @description same as z-index in native CSS, z-order of dialog\n */\n zIndex: {\n type: Number,\n },\n trapFocus: Boolean,\n /**\n * @description header's aria-level attribute\n */\n headerAriaLevel: {\n type: String,\n default: '2',\n },\n} as const)\n\nexport type DialogProps = ExtractPropTypes<typeof dialogProps>\n\nexport const dialogEmits = {\n open: () => true,\n opened: () => true,\n close: () => true,\n closed: () => true,\n [UPDATE_MODEL_EVENT]: (value: boolean) => isBoolean(value),\n openAutoFocus: () => true,\n closeAutoFocus: () => true,\n}\nexport type DialogEmits = typeof dialogEmits\n"],"names":[],"mappings":";;;;;;;AAGY,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,GAAG,kBAAkB;AACvB,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC;AAClC,GAAG;AACH,EAAE,cAAc,EAAE,OAAO;AACzB,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB,EAAE,MAAM,EAAE,MAAM,IAAI;AACpB,EAAE,CAAC,kBAAkB,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC;AACnD,EAAE,aAAa,EAAE,MAAM,IAAI;AAC3B,EAAE,cAAc,EAAE,MAAM,IAAI;AAC5B;;;;"}
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
35
|
__epPropKey: true;
|
|
36
36
|
};
|
|
37
|
-
readonly trapFocus:
|
|
37
|
+
readonly trapFocus: BooleanConstructor;
|
|
38
38
|
readonly headerAriaLevel: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
39
39
|
readonly center: BooleanConstructor;
|
|
40
40
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -87,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
87
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
88
|
__epPropKey: true;
|
|
89
89
|
};
|
|
90
|
-
readonly trapFocus:
|
|
90
|
+
readonly trapFocus: BooleanConstructor;
|
|
91
91
|
readonly headerAriaLevel: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
92
92
|
readonly center: BooleanConstructor;
|
|
93
93
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
160
|
draggable: import("vue").ComputedRef<boolean>;
|
|
161
161
|
ElOverlay: import("vue").DefineComponent<{
|
|
162
162
|
readonly mask: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
163
|
-
readonly customMaskEvent:
|
|
163
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
164
164
|
readonly overlayClass: {
|
|
165
165
|
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
166
166
|
readonly required: false;
|
|
@@ -179,7 +179,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
179
|
click: (evt: MouseEvent) => boolean;
|
|
180
180
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
181
181
|
readonly mask: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
182
|
-
readonly customMaskEvent:
|
|
182
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
183
183
|
readonly overlayClass: {
|
|
184
184
|
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
185
185
|
readonly required: false;
|
|
@@ -196,7 +196,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
196
196
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
197
197
|
}, {
|
|
198
198
|
readonly mask: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
199
|
-
readonly customMaskEvent:
|
|
199
|
+
readonly customMaskEvent: boolean;
|
|
200
200
|
}>;
|
|
201
201
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
202
202
|
loop: BooleanConstructor;
|
|
@@ -429,7 +429,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
429
429
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
430
430
|
__epPropKey: true;
|
|
431
431
|
};
|
|
432
|
-
readonly trapFocus:
|
|
432
|
+
readonly trapFocus: BooleanConstructor;
|
|
433
433
|
readonly headerAriaLevel: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
434
434
|
readonly center: BooleanConstructor;
|
|
435
435
|
readonly alignCenter: BooleanConstructor;
|
|
@@ -470,9 +470,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
470
470
|
readonly modal: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
471
471
|
readonly openDelay: number;
|
|
472
472
|
readonly closeDelay: number;
|
|
473
|
-
readonly trapFocus: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
474
473
|
readonly headerAriaLevel: string;
|
|
475
474
|
readonly appendToBody: boolean;
|
|
476
475
|
readonly destroyOnClose: boolean;
|
|
476
|
+
readonly trapFocus: boolean;
|
|
477
477
|
}>;
|
|
478
478
|
export default _default;
|
|
@@ -39,7 +39,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
39
39
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
40
|
__epPropKey: true;
|
|
41
41
|
};
|
|
42
|
-
readonly trapFocus:
|
|
42
|
+
readonly trapFocus: BooleanConstructor;
|
|
43
43
|
readonly center: BooleanConstructor;
|
|
44
44
|
readonly alignCenter: BooleanConstructor;
|
|
45
45
|
readonly closeIcon: {
|
|
@@ -96,7 +96,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
96
96
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
97
|
__epPropKey: true;
|
|
98
98
|
};
|
|
99
|
-
readonly trapFocus:
|
|
99
|
+
readonly trapFocus: BooleanConstructor;
|
|
100
100
|
readonly center: BooleanConstructor;
|
|
101
101
|
readonly alignCenter: BooleanConstructor;
|
|
102
102
|
readonly closeIcon: {
|
|
@@ -163,7 +163,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
163
163
|
Close: any;
|
|
164
164
|
ElOverlay: import("vue").DefineComponent<{
|
|
165
165
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
166
|
-
readonly customMaskEvent:
|
|
166
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
167
167
|
readonly overlayClass: {
|
|
168
168
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
169
169
|
readonly required: false;
|
|
@@ -182,7 +182,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
182
182
|
click: (evt: MouseEvent) => boolean;
|
|
183
183
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
184
184
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
185
|
-
readonly customMaskEvent:
|
|
185
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
186
186
|
readonly overlayClass: {
|
|
187
187
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
188
188
|
readonly required: false;
|
|
@@ -199,7 +199,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
199
199
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
200
200
|
}, {
|
|
201
201
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
|
-
readonly customMaskEvent:
|
|
202
|
+
readonly customMaskEvent: boolean;
|
|
203
203
|
}>;
|
|
204
204
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
205
205
|
loop: BooleanConstructor;
|
|
@@ -343,7 +343,7 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
343
343
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
344
344
|
__epPropKey: true;
|
|
345
345
|
};
|
|
346
|
-
readonly trapFocus:
|
|
346
|
+
readonly trapFocus: BooleanConstructor;
|
|
347
347
|
readonly center: BooleanConstructor;
|
|
348
348
|
readonly alignCenter: BooleanConstructor;
|
|
349
349
|
readonly closeIcon: {
|
|
@@ -385,10 +385,10 @@ export declare const ElDrawer: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
385
385
|
readonly modal: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
386
386
|
readonly openDelay: number;
|
|
387
387
|
readonly closeDelay: number;
|
|
388
|
-
readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
389
388
|
readonly headerAriaLevel: string;
|
|
390
389
|
readonly appendToBody: boolean;
|
|
391
390
|
readonly destroyOnClose: boolean;
|
|
391
|
+
readonly trapFocus: boolean;
|
|
392
392
|
readonly withHeader: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
393
393
|
readonly modalFade: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
394
394
|
}>> & Record<string, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Drawer from './src/
|
|
3
|
-
export { drawerEmits, drawerProps } from './src/
|
|
2
|
+
import Drawer from './src/drawer2.mjs';
|
|
3
|
+
export { drawerEmits, drawerProps } from './src/drawer.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
5
5
|
|
|
6
6
|
const ElDrawer = withInstall(Drawer);
|
|
@@ -40,7 +40,7 @@ export declare const drawerProps: {
|
|
|
40
40
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
41
|
__epPropKey: true;
|
|
42
42
|
};
|
|
43
|
-
readonly trapFocus:
|
|
43
|
+
readonly trapFocus: BooleanConstructor;
|
|
44
44
|
readonly center: BooleanConstructor;
|
|
45
45
|
readonly alignCenter: BooleanConstructor;
|
|
46
46
|
readonly closeIcon: {
|
|
@@ -1,187 +1,33 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, openBlock, createBlock, Teleport, createVNode, Transition, unref, 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';
|
|
5
|
-
import '../../dialog/index.mjs';
|
|
6
1
|
import '../../../utils/index.mjs';
|
|
7
|
-
import
|
|
8
|
-
import '../../../
|
|
9
|
-
import {
|
|
10
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
11
|
-
import { useDeprecated } from '../../../hooks/use-deprecated/index.mjs';
|
|
12
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
13
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
14
|
-
import { useDialog } from '../../dialog/src/use-dialog.mjs';
|
|
15
|
-
import { addUnit } from '../../../utils/dom/style.mjs';
|
|
16
|
-
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
|
2
|
+
import '../../dialog/index.mjs';
|
|
3
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
4
|
+
import { dialogProps, dialogEmits } from '../../dialog/src/dialog.mjs';
|
|
17
5
|
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const drawerRef = ref();
|
|
41
|
-
const focusStartRef = ref();
|
|
42
|
-
const ns = useNamespace("drawer");
|
|
43
|
-
const { t } = useLocale();
|
|
44
|
-
const {
|
|
45
|
-
afterEnter,
|
|
46
|
-
afterLeave,
|
|
47
|
-
beforeLeave,
|
|
48
|
-
visible,
|
|
49
|
-
rendered,
|
|
50
|
-
titleId,
|
|
51
|
-
bodyId,
|
|
52
|
-
zIndex,
|
|
53
|
-
onModalClick,
|
|
54
|
-
onOpenAutoFocus,
|
|
55
|
-
onCloseAutoFocus,
|
|
56
|
-
onFocusoutPrevented,
|
|
57
|
-
onCloseRequested,
|
|
58
|
-
handleClose
|
|
59
|
-
} = useDialog(props, drawerRef);
|
|
60
|
-
const isHorizontal = computed(() => props.direction === "rtl" || props.direction === "ltr");
|
|
61
|
-
const drawerSize = computed(() => addUnit(props.size));
|
|
62
|
-
expose({
|
|
63
|
-
handleClose,
|
|
64
|
-
afterEnter,
|
|
65
|
-
afterLeave
|
|
66
|
-
});
|
|
67
|
-
return (_ctx, _cache) => {
|
|
68
|
-
return openBlock(), createBlock(Teleport, {
|
|
69
|
-
to: "body",
|
|
70
|
-
disabled: !_ctx.appendToBody
|
|
71
|
-
}, [
|
|
72
|
-
createVNode(Transition, {
|
|
73
|
-
name: unref(ns).b("fade"),
|
|
74
|
-
onAfterEnter: unref(afterEnter),
|
|
75
|
-
onAfterLeave: unref(afterLeave),
|
|
76
|
-
onBeforeLeave: unref(beforeLeave),
|
|
77
|
-
persisted: ""
|
|
78
|
-
}, {
|
|
79
|
-
default: withCtx(() => [
|
|
80
|
-
withDirectives(createVNode(unref(ElOverlay), {
|
|
81
|
-
mask: _ctx.modal,
|
|
82
|
-
"overlay-class": _ctx.modalClass,
|
|
83
|
-
"z-index": unref(zIndex),
|
|
84
|
-
onClick: unref(onModalClick)
|
|
85
|
-
}, {
|
|
86
|
-
default: withCtx(() => [
|
|
87
|
-
createVNode(unref(ElFocusTrap), {
|
|
88
|
-
loop: "",
|
|
89
|
-
trapped: unref(visible),
|
|
90
|
-
"focus-trap-el": drawerRef.value,
|
|
91
|
-
"focus-start-el": focusStartRef.value,
|
|
92
|
-
onFocusAfterTrapped: unref(onOpenAutoFocus),
|
|
93
|
-
onFocusAfterReleased: unref(onCloseAutoFocus),
|
|
94
|
-
onFocusoutPrevented: unref(onFocusoutPrevented),
|
|
95
|
-
onReleaseRequested: unref(onCloseRequested)
|
|
96
|
-
}, {
|
|
97
|
-
default: withCtx(() => [
|
|
98
|
-
createElementVNode("div", mergeProps({
|
|
99
|
-
ref_key: "drawerRef",
|
|
100
|
-
ref: drawerRef,
|
|
101
|
-
"aria-modal": "true",
|
|
102
|
-
"aria-label": _ctx.title || void 0,
|
|
103
|
-
"aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
|
|
104
|
-
"aria-describedby": unref(bodyId)
|
|
105
|
-
}, _ctx.$attrs, {
|
|
106
|
-
class: [unref(ns).b(), _ctx.direction, unref(visible) && "open"],
|
|
107
|
-
style: unref(isHorizontal) ? "width: " + unref(drawerSize) : "height: " + unref(drawerSize),
|
|
108
|
-
role: "dialog",
|
|
109
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
110
|
-
}, ["stop"]))
|
|
111
|
-
}), [
|
|
112
|
-
createElementVNode("span", {
|
|
113
|
-
ref_key: "focusStartRef",
|
|
114
|
-
ref: focusStartRef,
|
|
115
|
-
class: normalizeClass(unref(ns).e("sr-focus")),
|
|
116
|
-
tabindex: "-1"
|
|
117
|
-
}, null, 2),
|
|
118
|
-
_ctx.withHeader ? (openBlock(), createElementBlock("header", {
|
|
119
|
-
key: 0,
|
|
120
|
-
class: normalizeClass(unref(ns).e("header"))
|
|
121
|
-
}, [
|
|
122
|
-
!_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
|
|
123
|
-
key: 0,
|
|
124
|
-
close: unref(handleClose),
|
|
125
|
-
titleId: unref(titleId),
|
|
126
|
-
titleClass: unref(ns).e("title")
|
|
127
|
-
}, () => [
|
|
128
|
-
!_ctx.$slots.title ? (openBlock(), createElementBlock("span", {
|
|
129
|
-
key: 0,
|
|
130
|
-
id: unref(titleId),
|
|
131
|
-
role: "heading",
|
|
132
|
-
"aria-level": _ctx.headerAriaLevel,
|
|
133
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
134
|
-
}, toDisplayString(_ctx.title), 11, _hoisted_2)) : createCommentVNode("v-if", true)
|
|
135
|
-
]) : renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
|
|
136
|
-
createCommentVNode(" DEPRECATED SLOT ")
|
|
137
|
-
]),
|
|
138
|
-
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
139
|
-
key: 2,
|
|
140
|
-
"aria-label": unref(t)("el.drawer.close"),
|
|
141
|
-
class: normalizeClass(unref(ns).e("close-btn")),
|
|
142
|
-
type: "button",
|
|
143
|
-
onClick: _cache[0] || (_cache[0] = (...args) => unref(handleClose) && unref(handleClose)(...args))
|
|
144
|
-
}, [
|
|
145
|
-
createVNode(unref(ElIcon), {
|
|
146
|
-
class: normalizeClass(unref(ns).e("close"))
|
|
147
|
-
}, {
|
|
148
|
-
default: withCtx(() => [
|
|
149
|
-
createVNode(unref(Close))
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["class"])
|
|
153
|
-
], 10, _hoisted_3)) : createCommentVNode("v-if", true)
|
|
154
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
155
|
-
unref(rendered) ? (openBlock(), createElementBlock("div", {
|
|
156
|
-
key: 1,
|
|
157
|
-
id: unref(bodyId),
|
|
158
|
-
class: normalizeClass(unref(ns).e("body"))
|
|
159
|
-
}, [
|
|
160
|
-
renderSlot(_ctx.$slots, "default")
|
|
161
|
-
], 10, _hoisted_4)) : createCommentVNode("v-if", true),
|
|
162
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
163
|
-
key: 2,
|
|
164
|
-
class: normalizeClass(unref(ns).e("footer"))
|
|
165
|
-
}, [
|
|
166
|
-
renderSlot(_ctx.$slots, "footer")
|
|
167
|
-
], 2)) : createCommentVNode("v-if", true)
|
|
168
|
-
], 16, _hoisted_1)
|
|
169
|
-
]),
|
|
170
|
-
_: 3
|
|
171
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
172
|
-
]),
|
|
173
|
-
_: 3
|
|
174
|
-
}, 8, ["mask", "overlay-class", "z-index", "onClick"]), [
|
|
175
|
-
[vShow, unref(visible)]
|
|
176
|
-
])
|
|
177
|
-
]),
|
|
178
|
-
_: 3
|
|
179
|
-
}, 8, ["name", "onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
180
|
-
], 8, ["disabled"]);
|
|
181
|
-
};
|
|
6
|
+
const drawerProps = buildProps({
|
|
7
|
+
...dialogProps,
|
|
8
|
+
direction: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "rtl",
|
|
11
|
+
values: ["ltr", "rtl", "ttb", "btt"]
|
|
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
|
+
headerAriaLevel: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "2"
|
|
182
28
|
}
|
|
183
29
|
});
|
|
184
|
-
|
|
30
|
+
const drawerEmits = dialogEmits;
|
|
185
31
|
|
|
186
|
-
export {
|
|
32
|
+
export { drawerEmits, drawerProps };
|
|
187
33
|
//# sourceMappingURL=drawer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.mjs","sources":["../../../../../../packages/components/drawer/src/drawer.
|
|
1
|
+
{"version":3,"file":"drawer.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 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,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;;;;"}
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
40
|
__epPropKey: true;
|
|
41
41
|
};
|
|
42
|
-
readonly trapFocus:
|
|
42
|
+
readonly trapFocus: BooleanConstructor;
|
|
43
43
|
readonly center: BooleanConstructor;
|
|
44
44
|
readonly alignCenter: BooleanConstructor;
|
|
45
45
|
readonly closeIcon: {
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
96
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
97
|
__epPropKey: true;
|
|
98
98
|
};
|
|
99
|
-
readonly trapFocus:
|
|
99
|
+
readonly trapFocus: BooleanConstructor;
|
|
100
100
|
readonly center: BooleanConstructor;
|
|
101
101
|
readonly alignCenter: BooleanConstructor;
|
|
102
102
|
readonly closeIcon: {
|
|
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
163
|
Close: any;
|
|
164
164
|
ElOverlay: import("vue").DefineComponent<{
|
|
165
165
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
166
|
-
readonly customMaskEvent:
|
|
166
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
167
167
|
readonly overlayClass: {
|
|
168
168
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
169
169
|
readonly required: false;
|
|
@@ -182,7 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
182
182
|
click: (evt: MouseEvent) => boolean;
|
|
183
183
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
184
184
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
185
|
-
readonly customMaskEvent:
|
|
185
|
+
readonly customMaskEvent: BooleanConstructor;
|
|
186
186
|
readonly overlayClass: {
|
|
187
187
|
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>) | ((new (...args: any[]) => (string | string[] | Record<string, boolean>) & {}) | (() => string | string[] | Record<string, boolean>))[], unknown, unknown>>;
|
|
188
188
|
readonly required: false;
|
|
@@ -199,7 +199,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
199
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
200
200
|
}, {
|
|
201
201
|
readonly mask: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
202
|
-
readonly customMaskEvent:
|
|
202
|
+
readonly customMaskEvent: boolean;
|
|
203
203
|
}>;
|
|
204
204
|
ElFocusTrap: import("vue").DefineComponent<{
|
|
205
205
|
loop: BooleanConstructor;
|
|
@@ -343,7 +343,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
343
343
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
344
344
|
__epPropKey: true;
|
|
345
345
|
};
|
|
346
|
-
readonly trapFocus:
|
|
346
|
+
readonly trapFocus: BooleanConstructor;
|
|
347
347
|
readonly center: BooleanConstructor;
|
|
348
348
|
readonly alignCenter: BooleanConstructor;
|
|
349
349
|
readonly closeIcon: {
|
|
@@ -385,10 +385,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
385
385
|
readonly modal: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
386
386
|
readonly openDelay: number;
|
|
387
387
|
readonly closeDelay: number;
|
|
388
|
-
readonly trapFocus: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
389
388
|
readonly headerAriaLevel: string;
|
|
390
389
|
readonly appendToBody: boolean;
|
|
391
390
|
readonly destroyOnClose: boolean;
|
|
391
|
+
readonly trapFocus: boolean;
|
|
392
392
|
readonly withHeader: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
393
393
|
readonly modalFade: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
394
394
|
}>;
|