@element-plus/nightly 0.0.20220828 → 0.0.20220829
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.css +1 -1
- package/dist/index.full.js +33 -8
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +33 -8
- 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.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/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/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 +16 -144
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +16 -144
- package/es/components/avatar/index.d.ts +3 -27
- package/es/components/avatar/src/avatar.d.ts +1 -9
- package/es/components/avatar/src/avatar.vue.d.ts +3 -27
- package/es/components/breadcrumb/index.d.ts +5 -45
- package/es/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -9
- package/es/components/breadcrumb/src/breadcrumb.d.ts +1 -9
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +3 -27
- package/es/components/button/index.d.ts +7 -63
- package/es/components/button/src/button.d.ts +2 -18
- package/es/components/button/src/button.vue.d.ts +7 -63
- package/es/components/calendar/index.d.ts +7 -63
- package/es/components/calendar/src/calendar.vue.d.ts +7 -63
- package/es/components/cascader/index.d.ts +20 -180
- package/es/components/cascader/src/index.vue.d.ts +10 -90
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +13 -117
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +13 -117
- package/es/components/date-picker/src/panel-utils.d.ts +26 -234
- package/es/components/dialog/index.d.ts +15 -54
- package/es/components/dialog/src/dialog-content.d.ts +2 -9
- package/es/components/dialog/src/dialog-content.mjs +4 -0
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +7 -27
- package/es/components/dialog/src/dialog-content2.mjs +1 -0
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +2 -9
- package/es/components/dialog/src/dialog.vue.d.ts +15 -54
- package/es/components/dialog/src/dialog2.mjs +20 -7
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.d.ts +1 -0
- package/es/components/dialog/src/use-dialog.mjs +7 -0
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +6 -18
- package/es/components/drawer/src/drawer.d.ts +2 -9
- package/es/components/drawer/src/drawer.vue.d.ts +6 -18
- package/es/components/dropdown/index.d.ts +6 -54
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +2 -18
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +3 -27
- package/es/components/dropdown/src/dropdown.d.ts +1 -9
- package/es/components/input/index.d.ts +6 -54
- package/es/components/input/src/input.d.ts +2 -18
- package/es/components/input/src/input.vue.d.ts +6 -54
- package/es/components/input-number/index.d.ts +16 -144
- package/es/components/input-number/src/input-number.vue.d.ts +16 -144
- package/es/components/link/index.d.ts +3 -27
- package/es/components/link/src/link.d.ts +1 -9
- package/es/components/link/src/link.vue.d.ts +3 -27
- package/es/components/menu/index.d.ts +16 -144
- package/es/components/menu/src/sub-menu.d.ts +12 -108
- package/es/components/message/src/message.d.ts +1 -9
- package/es/components/message/src/message.vue.d.ts +5 -45
- package/es/components/notification/src/notification.d.ts +1 -9
- package/es/components/notification/src/notification.vue.d.ts +4 -36
- package/es/components/page-header/index.d.ts +3 -27
- package/es/components/page-header/src/page-header.d.ts +1 -9
- package/es/components/page-header/src/page-header.vue.d.ts +3 -27
- package/es/components/pagination/index.d.ts +6 -54
- package/es/components/pagination/src/components/jumper.vue.d.ts +6 -54
- package/es/components/pagination/src/components/next.d.ts +1 -9
- package/es/components/pagination/src/components/next.vue.d.ts +3 -27
- package/es/components/pagination/src/components/prev.d.ts +1 -9
- package/es/components/pagination/src/components/prev.vue.d.ts +3 -27
- package/es/components/pagination/src/pagination.d.ts +8 -72
- package/es/components/popconfirm/index.d.ts +11 -99
- package/es/components/popconfirm/src/popconfirm.d.ts +1 -9
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +11 -99
- package/es/components/rate/index.d.ts +9 -81
- package/es/components/rate/src/rate.d.ts +2 -18
- package/es/components/rate/src/rate.vue.d.ts +9 -81
- package/es/components/slider/index.d.ts +16 -144
- package/es/components/slider/src/slider.vue.d.ts +16 -144
- package/es/components/steps/index.d.ts +6 -54
- package/es/components/steps/src/item.d.ts +1 -9
- package/es/components/steps/src/item.vue.d.ts +3 -27
- package/es/components/switch/index.d.ts +6 -54
- package/es/components/switch/src/switch.d.ts +2 -18
- package/es/components/switch/src/switch.vue.d.ts +6 -54
- package/es/components/table-v2/style/css.d.ts +2 -0
- package/es/components/table-v2/style/css.mjs +2 -0
- package/es/components/table-v2/style/css.mjs.map +1 -1
- package/es/components/table-v2/style/index.d.ts +2 -0
- package/es/components/table-v2/style/index.mjs +2 -0
- package/es/components/table-v2/style/index.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +6 -54
- package/es/components/timeline/index.d.ts +4 -36
- package/es/components/timeline/src/timeline-item.d.ts +1 -9
- package/es/components/timeline/src/timeline-item.vue.d.ts +2 -18
- package/es/components/transfer/index.d.ts +37 -333
- package/es/components/transfer/src/transfer-panel.vue.d.ts +6 -54
- package/es/components/transfer/src/transfer.vue.d.ts +37 -333
- package/es/components/tree/index.d.ts +4 -12
- package/es/components/tree/src/tree.type.d.ts +1 -1
- package/es/components/tree/src/tree.vue.d.ts +2 -6
- package/es/components/tree-v2/index.d.ts +2 -18
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -9
- package/es/components/tree-v2/src/tree.vue.d.ts +2 -18
- package/es/components/tree-v2/src/virtual-tree.d.ts +1 -9
- package/es/utils/vue/icon.d.ts +2 -2
- package/es/utils/vue/icon.mjs.map +1 -1
- 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 +16 -144
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +16 -144
- package/lib/components/avatar/index.d.ts +3 -27
- package/lib/components/avatar/src/avatar.d.ts +1 -9
- package/lib/components/avatar/src/avatar.vue.d.ts +3 -27
- package/lib/components/breadcrumb/index.d.ts +5 -45
- package/lib/components/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -9
- package/lib/components/breadcrumb/src/breadcrumb.d.ts +1 -9
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +3 -27
- package/lib/components/button/index.d.ts +7 -63
- package/lib/components/button/src/button.d.ts +2 -18
- package/lib/components/button/src/button.vue.d.ts +7 -63
- package/lib/components/calendar/index.d.ts +7 -63
- package/lib/components/calendar/src/calendar.vue.d.ts +7 -63
- package/lib/components/cascader/index.d.ts +20 -180
- package/lib/components/cascader/src/index.vue.d.ts +10 -90
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +13 -117
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +13 -117
- package/lib/components/date-picker/src/panel-utils.d.ts +26 -234
- package/lib/components/dialog/index.d.ts +15 -54
- package/lib/components/dialog/src/dialog-content.d.ts +2 -9
- package/lib/components/dialog/src/dialog-content.js +4 -0
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +7 -27
- package/lib/components/dialog/src/dialog-content2.js +1 -0
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +2 -9
- package/lib/components/dialog/src/dialog.vue.d.ts +15 -54
- package/lib/components/dialog/src/dialog2.js +19 -6
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.d.ts +1 -0
- package/lib/components/dialog/src/use-dialog.js +7 -0
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/drawer/index.d.ts +6 -18
- package/lib/components/drawer/src/drawer.d.ts +2 -9
- package/lib/components/drawer/src/drawer.vue.d.ts +6 -18
- package/lib/components/dropdown/index.d.ts +6 -54
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +2 -18
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +3 -27
- package/lib/components/dropdown/src/dropdown.d.ts +1 -9
- package/lib/components/input/index.d.ts +6 -54
- package/lib/components/input/src/input.d.ts +2 -18
- package/lib/components/input/src/input.vue.d.ts +6 -54
- package/lib/components/input-number/index.d.ts +16 -144
- package/lib/components/input-number/src/input-number.vue.d.ts +16 -144
- package/lib/components/link/index.d.ts +3 -27
- package/lib/components/link/src/link.d.ts +1 -9
- package/lib/components/link/src/link.vue.d.ts +3 -27
- package/lib/components/menu/index.d.ts +16 -144
- package/lib/components/menu/src/sub-menu.d.ts +12 -108
- package/lib/components/message/src/message.d.ts +1 -9
- package/lib/components/message/src/message.vue.d.ts +5 -45
- package/lib/components/notification/src/notification.d.ts +1 -9
- package/lib/components/notification/src/notification.vue.d.ts +4 -36
- package/lib/components/page-header/index.d.ts +3 -27
- package/lib/components/page-header/src/page-header.d.ts +1 -9
- package/lib/components/page-header/src/page-header.vue.d.ts +3 -27
- package/lib/components/pagination/index.d.ts +6 -54
- package/lib/components/pagination/src/components/jumper.vue.d.ts +6 -54
- package/lib/components/pagination/src/components/next.d.ts +1 -9
- package/lib/components/pagination/src/components/next.vue.d.ts +3 -27
- package/lib/components/pagination/src/components/prev.d.ts +1 -9
- package/lib/components/pagination/src/components/prev.vue.d.ts +3 -27
- package/lib/components/pagination/src/pagination.d.ts +8 -72
- package/lib/components/popconfirm/index.d.ts +11 -99
- package/lib/components/popconfirm/src/popconfirm.d.ts +1 -9
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +11 -99
- package/lib/components/rate/index.d.ts +9 -81
- package/lib/components/rate/src/rate.d.ts +2 -18
- package/lib/components/rate/src/rate.vue.d.ts +9 -81
- package/lib/components/slider/index.d.ts +16 -144
- package/lib/components/slider/src/slider.vue.d.ts +16 -144
- package/lib/components/steps/index.d.ts +6 -54
- package/lib/components/steps/src/item.d.ts +1 -9
- package/lib/components/steps/src/item.vue.d.ts +3 -27
- package/lib/components/switch/index.d.ts +6 -54
- package/lib/components/switch/src/switch.d.ts +2 -18
- package/lib/components/switch/src/switch.vue.d.ts +6 -54
- package/lib/components/table-v2/style/css.d.ts +2 -0
- package/lib/components/table-v2/style/css.js +2 -0
- package/lib/components/table-v2/style/css.js.map +1 -1
- package/lib/components/table-v2/style/index.d.ts +2 -0
- package/lib/components/table-v2/style/index.js +2 -0
- package/lib/components/table-v2/style/index.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +6 -54
- package/lib/components/timeline/index.d.ts +4 -36
- package/lib/components/timeline/src/timeline-item.d.ts +1 -9
- package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -18
- package/lib/components/transfer/index.d.ts +37 -333
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +6 -54
- package/lib/components/transfer/src/transfer.vue.d.ts +37 -333
- package/lib/components/tree/index.d.ts +4 -12
- package/lib/components/tree/src/tree.type.d.ts +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +2 -6
- package/lib/components/tree-v2/index.d.ts +2 -18
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -9
- package/lib/components/tree-v2/src/tree.vue.d.ts +2 -18
- package/lib/components/tree-v2/src/virtual-tree.d.ts +1 -9
- package/lib/utils/vue/icon.d.ts +2 -2
- package/lib/utils/vue/icon.js.map +1 -1
- 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/theme-chalk/el-dialog.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/dialog.scss +4 -0
- package/web-types.json +1 -1
|
@@ -35,16 +35,9 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
35
35
|
};
|
|
36
36
|
readonly trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
37
37
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
38
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
38
39
|
readonly closeIcon: {
|
|
39
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
}>)))[], unknown, unknown>>;
|
|
40
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
48
41
|
readonly required: false;
|
|
49
42
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
43
|
__epPropKey: true;
|
|
@@ -92,16 +85,9 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
92
85
|
};
|
|
93
86
|
readonly trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
94
87
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
88
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
95
89
|
readonly closeIcon: {
|
|
96
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
99
|
-
[key: string]: any;
|
|
100
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
103
|
-
[key: string]: any;
|
|
104
|
-
}>)))[], unknown, unknown>>;
|
|
90
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
105
91
|
readonly required: false;
|
|
106
92
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
93
|
__epPropKey: true;
|
|
@@ -148,6 +134,7 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
148
134
|
titleId: import("vue").Ref<string>;
|
|
149
135
|
bodyId: import("vue").Ref<string>;
|
|
150
136
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
137
|
+
overlayDialogStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
151
138
|
rendered: import("vue").Ref<boolean>;
|
|
152
139
|
zIndex: import("vue").Ref<number>;
|
|
153
140
|
afterEnter: () => void;
|
|
@@ -236,16 +223,9 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
236
223
|
}>;
|
|
237
224
|
ElDialogContent: import("vue").DefineComponent<{
|
|
238
225
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
226
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
239
227
|
readonly closeIcon: {
|
|
240
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
241
|
-
[key: string]: any;
|
|
242
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
243
|
-
[key: string]: any;
|
|
244
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
245
|
-
[key: string]: any;
|
|
246
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
247
|
-
[key: string]: any;
|
|
248
|
-
}>)))[], unknown, unknown>>;
|
|
228
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
249
229
|
readonly required: false;
|
|
250
230
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
251
231
|
__epPropKey: true;
|
|
@@ -260,16 +240,9 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
260
240
|
Close: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
261
241
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
262
242
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
243
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
263
244
|
readonly closeIcon: {
|
|
264
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
265
|
-
[key: string]: any;
|
|
266
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
267
|
-
[key: string]: any;
|
|
268
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
269
|
-
[key: string]: any;
|
|
270
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
271
|
-
[key: string]: any;
|
|
272
|
-
}>)))[], unknown, unknown>>;
|
|
245
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
273
246
|
readonly required: false;
|
|
274
247
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
275
248
|
__epPropKey: true;
|
|
@@ -374,16 +347,9 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
374
347
|
close: () => boolean;
|
|
375
348
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
376
349
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
350
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
377
351
|
readonly closeIcon: {
|
|
378
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
379
|
-
[key: string]: any;
|
|
380
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
381
|
-
[key: string]: any;
|
|
382
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
383
|
-
[key: string]: any;
|
|
384
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
385
|
-
[key: string]: any;
|
|
386
|
-
}>)))[], unknown, unknown>>;
|
|
352
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
387
353
|
readonly required: false;
|
|
388
354
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
389
355
|
__epPropKey: true;
|
|
@@ -398,6 +364,7 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
398
364
|
}, {
|
|
399
365
|
readonly title: string;
|
|
400
366
|
readonly center: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
367
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
401
368
|
readonly customClass: string;
|
|
402
369
|
readonly draggable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
403
370
|
readonly fullscreen: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -448,16 +415,9 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
448
415
|
};
|
|
449
416
|
readonly trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
450
417
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
418
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
451
419
|
readonly closeIcon: {
|
|
452
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
453
|
-
[key: string]: any;
|
|
454
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
455
|
-
[key: string]: any;
|
|
456
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
457
|
-
[key: string]: any;
|
|
458
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
459
|
-
[key: string]: any;
|
|
460
|
-
}>)))[], unknown, unknown>>;
|
|
420
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
461
421
|
readonly required: false;
|
|
462
422
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
463
423
|
__epPropKey: true;
|
|
@@ -480,6 +440,7 @@ export declare const ElDialog: import("element-plus/es/utils").SFCWithInstall<im
|
|
|
480
440
|
readonly title: string;
|
|
481
441
|
readonly center: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
482
442
|
readonly openDelay: number;
|
|
443
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
483
444
|
readonly customClass: string;
|
|
484
445
|
readonly draggable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
485
446
|
readonly fullscreen: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
export declare const dialogContentProps: {
|
|
2
2
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3
4
|
readonly closeIcon: {
|
|
4
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}>)))[], unknown, unknown>>;
|
|
5
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
13
6
|
readonly required: false;
|
|
14
7
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
8
|
__epPropKey: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n center: {\n type: Boolean,\n default: false,\n },\n closeIcon: {\n type: iconPropType,\n },\n customClass: {\n type: String,\n default: '',\n },\n draggable: {\n type: Boolean,\n default: false,\n },\n fullscreen: {\n type: Boolean,\n default: false,\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
|
|
1
|
+
{"version":3,"file":"dialog-content.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nexport const dialogContentProps = buildProps({\n center: {\n type: Boolean,\n default: false,\n },\n alignCenter: {\n type: Boolean,\n default: false,\n },\n closeIcon: {\n type: iconPropType,\n },\n customClass: {\n type: String,\n default: '',\n },\n draggable: {\n type: Boolean,\n default: false,\n },\n fullscreen: {\n type: Boolean,\n default: false,\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n} as const)\n\nexport const dialogContentEmits = {\n close: () => true,\n}\n"],"names":[],"mappings":";;;;AACY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,YAAY;AACtB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,KAAK,EAAE,MAAM,IAAI;AACnB;;;;"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3
4
|
readonly closeIcon: {
|
|
4
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}>)))[], unknown, unknown>>;
|
|
5
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
13
6
|
readonly required: false;
|
|
14
7
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
8
|
__epPropKey: true;
|
|
@@ -24,16 +17,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
17
|
Close: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
25
18
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
26
19
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
20
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
27
21
|
readonly closeIcon: {
|
|
28
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
}>)))[], unknown, unknown>>;
|
|
22
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
37
23
|
readonly required: false;
|
|
38
24
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
25
|
__epPropKey: true;
|
|
@@ -138,16 +124,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
124
|
close: () => boolean;
|
|
139
125
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
126
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
127
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
141
128
|
readonly closeIcon: {
|
|
142
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
143
|
-
[key: string]: any;
|
|
144
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
145
|
-
[key: string]: any;
|
|
146
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
147
|
-
[key: string]: any;
|
|
148
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
149
|
-
[key: string]: any;
|
|
150
|
-
}>)))[], unknown, unknown>>;
|
|
129
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
151
130
|
readonly required: false;
|
|
152
131
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
132
|
__epPropKey: true;
|
|
@@ -162,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
141
|
}, {
|
|
163
142
|
readonly title: string;
|
|
164
143
|
readonly center: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
144
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
165
145
|
readonly customClass: string;
|
|
166
146
|
readonly draggable: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
167
147
|
readonly fullscreen: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -36,6 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
unref(ns).b(),
|
|
37
37
|
unref(ns).is("fullscreen", _ctx.fullscreen),
|
|
38
38
|
unref(ns).is("draggable", unref(draggable)),
|
|
39
|
+
unref(ns).is("align-center", _ctx.alignCenter),
|
|
39
40
|
{ [unref(ns).m("center")]: _ctx.center },
|
|
40
41
|
_ctx.customClass
|
|
41
42
|
]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div\n :ref=\"composedDialogRef\"\n :class=\"[\n ns.b(),\n ns.is('fullscreen', fullscreen),\n ns.is('draggable', draggable),\n { [ns.m('center')]: center },\n customClass,\n ]\"\n :style=\"style\"\n tabindex=\"-1\"\n @click.stop\n >\n <header ref=\"headerRef\" :class=\"ns.e('header')\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"ns.e('body')\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from '@element-plus/tokens'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => props.draggable)\nuseDraggable(dialogRef, headerRef, draggable)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"dialog-content2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog-content.vue"],"sourcesContent":["<template>\n <div\n :ref=\"composedDialogRef\"\n :class=\"[\n ns.b(),\n ns.is('fullscreen', fullscreen),\n ns.is('draggable', draggable),\n ns.is('align-center', alignCenter),\n { [ns.m('center')]: center },\n customClass,\n ]\"\n :style=\"style\"\n tabindex=\"-1\"\n @click.stop\n >\n <header ref=\"headerRef\" :class=\"ns.e('header')\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n <button\n v-if=\"showClose\"\n :aria-label=\"t('el.dialog.close')\"\n :class=\"ns.e('headerbtn')\"\n type=\"button\"\n @click=\"$emit('close')\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"closeIcon || Close\" />\n </el-icon>\n </button>\n </header>\n <div :id=\"bodyId\" :class=\"ns.e('body')\">\n <slot />\n </div>\n <footer v-if=\"$slots.footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\" />\n </footer>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { FOCUS_TRAP_INJECTION_KEY } from '@element-plus/components/focus-trap'\nimport { useDraggable, useLocale } from '@element-plus/hooks'\nimport { CloseComponents, composeRefs } from '@element-plus/utils'\nimport { dialogInjectionKey } from '@element-plus/tokens'\nimport { dialogContentEmits, dialogContentProps } from './dialog-content'\n\nconst { t } = useLocale()\nconst { Close } = CloseComponents\n\ndefineOptions({ name: 'ElDialogContent' })\nconst props = defineProps(dialogContentProps)\ndefineEmits(dialogContentEmits)\n\nconst { dialogRef, headerRef, bodyId, ns, style } = inject(dialogInjectionKey)!\nconst { focusTrapRef } = inject(FOCUS_TRAP_INJECTION_KEY)!\n\nconst composedDialogRef = composeRefs(focusTrapRef, dialogRef)\n\nconst draggable = computed(() => props.draggable)\nuseDraggable(dialogRef, headerRef, draggable)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmDA,IAAA,MAAA,EAAA,MAAA,SAAA,EAAA,CAAA;AACA,IAAA,MAAA,EAAA,KAAA,EAAA,GAAA,eAAA,CAAA;AAMA,IAAA,MAAA,EAAA,SAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,KAAA,EAAA,GAAA,OAAA,kBAAA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,YAAA,EAAA,GAAA,MAAA,CAAA,wBAAA,CAAA,CAAA;AAEA,IAAA,MAAA,iBAAA,GAAA,WAAA,CAAA,YAAA,EAAA,SAAA,CAAA,CAAA;AAEA,IAAA,MAAA,SAAA,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,SAAA,CAAA,CAAA;AACA,IAAA,YAAA,CAAA,SAAA,EAAA,WAAA,SAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -38,16 +38,9 @@ export declare const dialogProps: {
|
|
|
38
38
|
};
|
|
39
39
|
readonly trapFocus: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
40
40
|
readonly center: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
41
|
+
readonly alignCenter: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
41
42
|
readonly closeIcon: {
|
|
42
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
}>)))[], unknown, unknown>>;
|
|
43
|
+
readonly type: import("vue").PropType<import("element-plus/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>>;
|
|
51
44
|
readonly required: false;
|
|
52
45
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
46
|
__epPropKey: true;
|
|
@@ -35,16 +35,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
};
|
|
36
36
|
readonly trapFocus: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
37
37
|
readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
38
|
+
readonly alignCenter: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
38
39
|
readonly closeIcon: {
|
|
39
|
-
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
44
|
-
[key: string]: any;
|
|
45
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
}>)))[], unknown, unknown>>;
|
|
40
|
+
readonly type: import("vue").PropType<import("../../../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>>;
|
|
48
41
|
readonly required: false;
|
|
49
42
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
43
|
__epPropKey: true;
|
|
@@ -92,16 +85,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
85
|
};
|
|
93
86
|
readonly trapFocus: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
94
87
|
readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
88
|
+
readonly alignCenter: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
95
89
|
readonly closeIcon: {
|
|
96
|
-
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
97
|
-
[key: string]: any;
|
|
98
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
99
|
-
[key: string]: any;
|
|
100
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
103
|
-
[key: string]: any;
|
|
104
|
-
}>)))[], unknown, unknown>>;
|
|
90
|
+
readonly type: import("vue").PropType<import("../../../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>>;
|
|
105
91
|
readonly required: false;
|
|
106
92
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
93
|
__epPropKey: true;
|
|
@@ -148,6 +134,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
134
|
titleId: import("vue").Ref<string>;
|
|
149
135
|
bodyId: import("vue").Ref<string>;
|
|
150
136
|
style: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
137
|
+
overlayDialogStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
151
138
|
rendered: import("vue").Ref<boolean>;
|
|
152
139
|
zIndex: import("vue").Ref<number>;
|
|
153
140
|
afterEnter: () => void;
|
|
@@ -236,16 +223,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
223
|
}>;
|
|
237
224
|
ElDialogContent: import("vue").DefineComponent<{
|
|
238
225
|
readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
226
|
+
readonly alignCenter: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
239
227
|
readonly closeIcon: {
|
|
240
|
-
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
241
|
-
[key: string]: any;
|
|
242
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
243
|
-
[key: string]: any;
|
|
244
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
245
|
-
[key: string]: any;
|
|
246
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
247
|
-
[key: string]: any;
|
|
248
|
-
}>)))[], unknown, unknown>>;
|
|
228
|
+
readonly type: import("vue").PropType<import("../../../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>>;
|
|
249
229
|
readonly required: false;
|
|
250
230
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
251
231
|
__epPropKey: true;
|
|
@@ -260,16 +240,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
260
240
|
Close: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
261
241
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
262
242
|
readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
243
|
+
readonly alignCenter: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
263
244
|
readonly closeIcon: {
|
|
264
|
-
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
265
|
-
[key: string]: any;
|
|
266
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
267
|
-
[key: string]: any;
|
|
268
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
269
|
-
[key: string]: any;
|
|
270
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
271
|
-
[key: string]: any;
|
|
272
|
-
}>)))[], unknown, unknown>>;
|
|
245
|
+
readonly type: import("vue").PropType<import("../../../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>>;
|
|
273
246
|
readonly required: false;
|
|
274
247
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
275
248
|
__epPropKey: true;
|
|
@@ -374,16 +347,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
374
347
|
close: () => boolean;
|
|
375
348
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
376
349
|
readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
350
|
+
readonly alignCenter: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
377
351
|
readonly closeIcon: {
|
|
378
|
-
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
379
|
-
[key: string]: any;
|
|
380
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
381
|
-
[key: string]: any;
|
|
382
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
383
|
-
[key: string]: any;
|
|
384
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
385
|
-
[key: string]: any;
|
|
386
|
-
}>)))[], unknown, unknown>>;
|
|
352
|
+
readonly type: import("vue").PropType<import("../../../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>>;
|
|
387
353
|
readonly required: false;
|
|
388
354
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
389
355
|
__epPropKey: true;
|
|
@@ -398,6 +364,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
398
364
|
}, {
|
|
399
365
|
readonly title: string;
|
|
400
366
|
readonly center: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
367
|
+
readonly alignCenter: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
401
368
|
readonly customClass: string;
|
|
402
369
|
readonly draggable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
403
370
|
readonly fullscreen: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -448,16 +415,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
448
415
|
};
|
|
449
416
|
readonly trapFocus: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
450
417
|
readonly center: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
418
|
+
readonly alignCenter: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
451
419
|
readonly closeIcon: {
|
|
452
|
-
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").
|
|
453
|
-
[key: string]: any;
|
|
454
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
455
|
-
[key: string]: any;
|
|
456
|
-
}>)) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
457
|
-
[key: string]: any;
|
|
458
|
-
}>)) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
459
|
-
[key: string]: any;
|
|
460
|
-
}>)))[], unknown, unknown>>;
|
|
420
|
+
readonly type: import("vue").PropType<import("../../../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>>;
|
|
461
421
|
readonly required: false;
|
|
462
422
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
463
423
|
__epPropKey: true;
|
|
@@ -480,6 +440,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
480
440
|
readonly title: string;
|
|
481
441
|
readonly center: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
482
442
|
readonly openDelay: number;
|
|
443
|
+
readonly alignCenter: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
483
444
|
readonly customClass: string;
|
|
484
445
|
readonly draggable: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
485
446
|
readonly fullscreen: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, provide, openBlock, createBlock, Teleport, createVNode, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, createSlots, renderSlot, createCommentVNode, vShow } from 'vue';
|
|
1
|
+
import { defineComponent, useSlots, computed, ref, provide, openBlock, createBlock, Teleport, createVNode, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, mergeProps, createSlots, renderSlot, createCommentVNode, vShow } from 'vue';
|
|
2
2
|
import { ElOverlay } from '../../overlay/index.mjs';
|
|
3
3
|
import '../../../hooks/index.mjs';
|
|
4
4
|
import '../../../tokens/index.mjs';
|
|
@@ -15,7 +15,8 @@ import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
|
|
15
15
|
|
|
16
16
|
const _hoisted_1 = ["aria-label", "aria-labelledby", "aria-describedby"];
|
|
17
17
|
const __default__ = {
|
|
18
|
-
name: "ElDialog"
|
|
18
|
+
name: "ElDialog",
|
|
19
|
+
inheritAttrs: false
|
|
19
20
|
};
|
|
20
21
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
22
|
...__default__,
|
|
@@ -31,6 +32,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
version: "3.0.0",
|
|
32
33
|
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
33
34
|
}, computed(() => !!slots.title));
|
|
35
|
+
useDeprecated({
|
|
36
|
+
scope: "el-dialog",
|
|
37
|
+
from: "custom-class",
|
|
38
|
+
replacement: "class",
|
|
39
|
+
version: "2.3.0",
|
|
40
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#attributes",
|
|
41
|
+
type: "Attribute"
|
|
42
|
+
}, computed(() => !!props.customClass));
|
|
34
43
|
const ns = useNamespace("dialog");
|
|
35
44
|
const dialogRef = ref();
|
|
36
45
|
const headerRef = ref();
|
|
@@ -40,6 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
49
|
titleId,
|
|
41
50
|
bodyId,
|
|
42
51
|
style,
|
|
52
|
+
overlayDialogStyle,
|
|
43
53
|
rendered,
|
|
44
54
|
zIndex,
|
|
45
55
|
afterEnter,
|
|
@@ -92,6 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
102
|
"aria-labelledby": !_ctx.title ? unref(titleId) : void 0,
|
|
93
103
|
"aria-describedby": unref(bodyId),
|
|
94
104
|
class: normalizeClass(`${unref(ns).namespace.value}-overlay-dialog`),
|
|
105
|
+
style: normalizeStyle(unref(overlayDialogStyle)),
|
|
95
106
|
onClick: _cache[0] || (_cache[0] = (...args) => unref(overlayEvent).onClick && unref(overlayEvent).onClick(...args)),
|
|
96
107
|
onMousedown: _cache[1] || (_cache[1] = (...args) => unref(overlayEvent).onMousedown && unref(overlayEvent).onMousedown(...args)),
|
|
97
108
|
onMouseup: _cache[2] || (_cache[2] = (...args) => unref(overlayEvent).onMouseup && unref(overlayEvent).onMouseup(...args))
|
|
@@ -105,19 +116,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
116
|
onReleaseRequested: unref(onCloseRequested)
|
|
106
117
|
}, {
|
|
107
118
|
default: withCtx(() => [
|
|
108
|
-
unref(rendered) ? (openBlock(), createBlock(ElDialogContent, {
|
|
119
|
+
unref(rendered) ? (openBlock(), createBlock(ElDialogContent, mergeProps({
|
|
109
120
|
key: 0,
|
|
110
121
|
ref_key: "dialogContentRef",
|
|
111
|
-
ref: dialogContentRef
|
|
122
|
+
ref: dialogContentRef
|
|
123
|
+
}, _ctx.$attrs, {
|
|
112
124
|
"custom-class": _ctx.customClass,
|
|
113
125
|
center: _ctx.center,
|
|
126
|
+
"align-center": _ctx.alignCenter,
|
|
114
127
|
"close-icon": _ctx.closeIcon,
|
|
115
128
|
draggable: unref(draggable),
|
|
116
129
|
fullscreen: _ctx.fullscreen,
|
|
117
130
|
"show-close": _ctx.showClose,
|
|
118
131
|
title: _ctx.title,
|
|
119
132
|
onClose: unref(handleClose)
|
|
120
|
-
}, createSlots({
|
|
133
|
+
}), createSlots({
|
|
121
134
|
header: withCtx(() => [
|
|
122
135
|
!_ctx.$slots.title ? renderSlot(_ctx.$slots, "header", {
|
|
123
136
|
key: 0,
|
|
@@ -137,11 +150,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
150
|
renderSlot(_ctx.$slots, "footer")
|
|
138
151
|
])
|
|
139
152
|
} : void 0
|
|
140
|
-
]),
|
|
153
|
+
]), 1040, ["custom-class", "center", "align-center", "close-icon", "draggable", "fullscreen", "show-close", "title", "onClose"])) : createCommentVNode("v-if", true)
|
|
141
154
|
]),
|
|
142
155
|
_: 3
|
|
143
156
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onReleaseRequested"])
|
|
144
|
-
],
|
|
157
|
+
], 46, _hoisted_1)
|
|
145
158
|
]),
|
|
146
159
|
_: 3
|
|
147
160
|
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n name=\"dialog-fade\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n >\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n :class=\"`${ns.namespace.value}-overlay-dialog`\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n focus-start-el=\"container\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @release-requested=\"onCloseRequested\"\n >\n <el-dialog-content\n v-if=\"rendered\"\n ref=\"dialogContentRef\"\n :custom-class=\"customClass\"\n :center=\"center\"\n :close-icon=\"closeIcon\"\n :draggable=\"draggable\"\n :fullscreen=\"fullscreen\"\n :show-close=\"showClose\"\n :title=\"title\"\n @close=\"handleClose\"\n >\n <template #header>\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 <slot v-else name=\"title\" />\n </template>\n <slot />\n <template v-if=\"$slots.footer\" #footer>\n <slot name=\"footer\" />\n </template>\n </el-dialog-content>\n </el-focus-trap>\n </div>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, useSlots } from 'vue'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { useDeprecated, useNamespace, useSameTarget } from '@element-plus/hooks'\nimport { dialogInjectionKey } from '@element-plus/tokens'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElDialogContent from './dialog-content.vue'\nimport { dialogEmits, dialogProps } from './dialog'\nimport { useDialog } from './use-dialog'\n\ndefineOptions({\n name: 'ElDialog',\n})\n\nconst props = defineProps(dialogProps)\ndefineEmits(dialogEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nconst ns = useNamespace('dialog')\nconst dialogRef = ref<HTMLElement>()\nconst headerRef = ref<HTMLElement>()\nconst dialogContentRef = ref()\n\nconst {\n visible,\n titleId,\n bodyId,\n style,\n rendered,\n zIndex,\n afterEnter,\n afterLeave,\n beforeLeave,\n handleClose,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onCloseRequested,\n} = useDialog(props, dialogRef)\n\nprovide(dialogInjectionKey, {\n dialogRef,\n headerRef,\n bodyId,\n ns,\n rendered,\n style,\n})\n\nconst overlayEvent = useSameTarget(onModalClick)\n\nconst draggable = computed(() => props.draggable && !props.fullscreen)\n\ndefineExpose({\n /** @description whether the dialog is visible */\n visible,\n dialogContentRef,\n})\n</script>\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog2.mjs","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n name=\"dialog-fade\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n >\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n :class=\"`${ns.namespace.value}-overlay-dialog`\"\n :style=\"overlayDialogStyle\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n focus-start-el=\"container\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @release-requested=\"onCloseRequested\"\n >\n <el-dialog-content\n v-if=\"rendered\"\n ref=\"dialogContentRef\"\n v-bind=\"$attrs\"\n :custom-class=\"customClass\"\n :center=\"center\"\n :align-center=\"alignCenter\"\n :close-icon=\"closeIcon\"\n :draggable=\"draggable\"\n :fullscreen=\"fullscreen\"\n :show-close=\"showClose\"\n :title=\"title\"\n @close=\"handleClose\"\n >\n <template #header>\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 <slot v-else name=\"title\" />\n </template>\n <slot />\n <template v-if=\"$slots.footer\" #footer>\n <slot name=\"footer\" />\n </template>\n </el-dialog-content>\n </el-focus-trap>\n </div>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, useSlots } from 'vue'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { useDeprecated, useNamespace, useSameTarget } from '@element-plus/hooks'\nimport { dialogInjectionKey } from '@element-plus/tokens'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElDialogContent from './dialog-content.vue'\nimport { dialogEmits, dialogProps } from './dialog'\nimport { useDialog } from './use-dialog'\n\ndefineOptions({\n name: 'ElDialog',\n inheritAttrs: false,\n})\n\nconst props = defineProps(dialogProps)\ndefineEmits(dialogEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'custom-class',\n replacement: 'class',\n version: '2.3.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#attributes',\n type: 'Attribute',\n },\n computed(() => !!props.customClass)\n)\n\nconst ns = useNamespace('dialog')\nconst dialogRef = ref<HTMLElement>()\nconst headerRef = ref<HTMLElement>()\nconst dialogContentRef = ref()\n\nconst {\n visible,\n titleId,\n bodyId,\n style,\n overlayDialogStyle,\n rendered,\n zIndex,\n afterEnter,\n afterLeave,\n beforeLeave,\n handleClose,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onCloseRequested,\n} = useDialog(props, dialogRef)\n\nprovide(dialogInjectionKey, {\n dialogRef,\n headerRef,\n bodyId,\n ns,\n rendered,\n style,\n})\n\nconst overlayEvent = useSameTarget(onModalClick)\n\nconst draggable = computed(() => props.draggable && !props.fullscreen)\n\ndefineExpose({\n /** @description whether the dialog is visible */\n visible,\n dialogContentRef,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwFA,IAAA,MAAA,QAAA,QAAA,EAAA,CAAA;AAEA,IACA,aAAA,CAAA;AAAA,MACA,KAAA,EAAA,WAAA;AAAA,MACA,IAAA,EAAA,gBAAA;AAAA,MACA,WAAA,EAAA,iBAAA;AAAA,MACA,OAAA,EAAA,OAAA;AAAA,MACA,GAAA,EAAA,4DAAA;AAAA,OAEA,QAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CACA,CAAA,CAAA;AAEA,IACA,aAAA,CAAA;AAAA,MACA,KAAA,EAAA,WAAA;AAAA,MACA,IAAA,EAAA,cAAA;AAAA,MACA,WAAA,EAAA,OAAA;AAAA,MACA,OAAA,EAAA,OAAA;AAAA,MACA,GAAA,EAAA,iEAAA;AAAA,MACA,IAAA,EAAA,WAAA;AAAA,OAEA,QAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,WAAA,CACA,CAAA,CAAA;AAEA,IAAA,MAAA,EAAA,GAAA,aAAA,QAAA,CAAA,CAAA;AACA,IAAA,MAAA,YAAA,GAAA,EAAA,CAAA;AACA,IAAA,MAAA,YAAA,GAAA,EAAA,CAAA;AACA,IAAA,MAAA,mBAAA,GAAA,EAAA,CAAA;AAEA,IAAA,MAAA;AAAA,MACA,OAAA;AAAA,MACA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,KAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,eAAA;AAAA,MACA,gBAAA;AAAA,MACA,gBAAA;AAAA,KACA,GAAA,SAAA,CAAA,OAAA,SAAA,CAAA,CAAA;AAEA,IAAA,OAAA,CAAA,kBAAA,EAAA;AAAA,MACA,SAAA;AAAA,MACA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,EAAA;AAAA,MACA,QAAA;AAAA,MACA,KAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,GAAA,cAAA,YAAA,CAAA,CAAA;AAEA,IAAA,MAAA,YAAA,QAAA,CAAA,MAAA,MAAA,SAAA,IAAA,CAAA,MAAA,UAAA,CAAA,CAAA;AAEA,IAAA,MAAA,CAAA;AAAA,MAEA,OAAA;AAAA,MACA,gBAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|