@element-plus/nightly 0.0.20260131 → 0.0.20260202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +16 -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 +16 -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-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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.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/alert/src/alert.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/es/components/avatar/src/avatar.d.ts +4 -3
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb.d.ts +4 -3
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/button/src/button.d.ts +3 -2
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button.vue.d.ts +1 -1
- package/es/components/calendar/src/calendar.mjs.map +1 -1
- package/es/components/calendar/src/date-table.mjs.map +1 -1
- package/es/components/calendar/src/select-controller.mjs.map +1 -1
- package/es/components/card/src/card.d.ts +3 -0
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.mjs +1 -1
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/cascader/src/cascader.d.ts +4 -3
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.d.ts +4 -3
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/es/components/color-picker-panel/src/props/sv-panel.mjs.map +1 -1
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.d.ts +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.d.ts +3 -3
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/divider/src/divider.d.ts +6 -0
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +2 -0
- package/es/components/drawer/src/drawer.vue2.mjs +2 -0
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/input/src/input.d.ts +8 -7
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue.d.ts +23 -23
- package/es/components/input/src/input.vue2.mjs +1 -3
- package/es/components/input/src/input.vue2.mjs.map +1 -1
- package/es/components/input-number/src/input-number.d.ts +3 -0
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +4 -3
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.vue.d.ts +1 -1
- package/es/components/link/src/link.d.ts +4 -3
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs.map +1 -1
- package/es/components/mention/src/mention.vue.d.ts +1 -1
- package/es/components/message/src/message.d.ts +4 -4
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message.vue.d.ts +1 -1
- package/es/components/notification/src/notification.d.ts +6 -5
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +1 -1
- package/es/components/page-header/src/page-header.d.ts +10 -3
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- package/es/components/page-header/src/page-header.vue2.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.d.ts +4 -3
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +10 -10
- package/es/components/radio/src/radio-button.vue2.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +18 -18
- package/es/components/radio/src/radio-group.vue2.mjs.map +1 -1
- package/es/components/radio/src/radio.vue.d.ts +12 -12
- package/es/components/radio/src/radio.vue2.mjs.map +1 -1
- package/es/components/rate/src/rate.d.ts +4 -3
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate.vue.d.ts +3 -4
- package/es/components/result/src/result.d.ts +6 -0
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.d.ts +3 -0
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.d.ts +3 -0
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/thumb.d.ts +3 -0
- package/es/components/scrollbar/src/thumb.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/steps/src/item.d.ts +7 -3
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/switch/src/switch.d.ts +10 -9
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/time-select/src/time-select.d.ts +6 -2
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +2 -2
- package/es/components/time-select/src/time-select.vue2.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item.d.ts +4 -3
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.d.ts +3 -0
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tour/src/step.d.ts +4 -3
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/tour.d.ts +4 -3
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tree-v2/src/types.d.ts +1 -1
- package/es/hooks/use-aria/index.d.ts +3 -0
- package/es/hooks/use-aria/index.mjs.map +1 -1
- package/es/utils/dom/aria.d.ts +1 -0
- package/es/utils/dom/aria.mjs +5 -1
- package/es/utils/dom/aria.mjs.map +1 -1
- package/es/utils/dom/index.mjs +1 -1
- package/es/utils/dom/scroll.mjs +6 -1
- package/es/utils/dom/scroll.mjs.map +1 -1
- package/es/utils/dom/style.mjs +2 -1
- package/es/utils/dom/style.mjs.map +1 -1
- package/es/utils/index.mjs +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/alert/src/alert.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/lib/components/avatar/src/avatar.d.ts +4 -3
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb.d.ts +4 -3
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/button/src/button.d.ts +3 -2
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button.vue.d.ts +1 -1
- package/lib/components/calendar/src/calendar.js.map +1 -1
- package/lib/components/calendar/src/date-table.js.map +1 -1
- package/lib/components/calendar/src/select-controller.js.map +1 -1
- package/lib/components/card/src/card.d.ts +3 -0
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.js +1 -1
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/cascader/src/cascader.d.ts +4 -3
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.d.ts +4 -3
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/lib/components/color-picker-panel/src/props/sv-panel.js.map +1 -1
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.d.ts +1 -1
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.d.ts +3 -3
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/divider/src/divider.d.ts +6 -0
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -0
- package/lib/components/drawer/src/drawer.vue2.js +2 -0
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/input/src/input.d.ts +8 -7
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue.d.ts +23 -23
- package/lib/components/input/src/input.vue2.js +1 -3
- package/lib/components/input/src/input.vue2.js.map +1 -1
- package/lib/components/input-number/src/input-number.d.ts +3 -0
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +4 -3
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.vue.d.ts +1 -1
- package/lib/components/link/src/link.d.ts +4 -3
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/mention/src/mention.js.map +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +4 -4
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message.vue.d.ts +1 -1
- package/lib/components/notification/src/notification.d.ts +6 -5
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +1 -1
- package/lib/components/page-header/src/page-header.d.ts +10 -3
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- package/lib/components/page-header/src/page-header.vue2.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.d.ts +4 -3
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +10 -10
- package/lib/components/radio/src/radio-button.vue2.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +18 -18
- package/lib/components/radio/src/radio-group.vue2.js.map +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +12 -12
- package/lib/components/radio/src/radio.vue2.js.map +1 -1
- package/lib/components/rate/src/rate.d.ts +4 -3
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +3 -4
- package/lib/components/result/src/result.d.ts +6 -0
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/scrollbar/src/bar.d.ts +3 -0
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.d.ts +3 -0
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/thumb.d.ts +3 -0
- package/lib/components/scrollbar/src/thumb.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/steps/src/item.d.ts +7 -3
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.d.ts +10 -9
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/time-select/src/time-select.d.ts +6 -2
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
- package/lib/components/time-select/src/time-select.vue2.js.map +1 -1
- package/lib/components/timeline/src/timeline-item.d.ts +4 -3
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.d.ts +3 -0
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tour/src/step.d.ts +4 -3
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/tour.d.ts +4 -3
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tree-v2/src/types.d.ts +1 -1
- package/lib/hooks/use-aria/index.d.ts +3 -0
- package/lib/hooks/use-aria/index.js.map +1 -1
- package/lib/utils/dom/aria.d.ts +1 -0
- package/lib/utils/dom/aria.js +5 -0
- package/lib/utils/dom/aria.js.map +1 -1
- package/lib/utils/dom/index.js +1 -0
- package/lib/utils/dom/index.js.map +1 -1
- package/lib/utils/dom/scroll.js +6 -1
- package/lib/utils/dom/scroll.js.map +1 -1
- package/lib/utils/dom/style.js +2 -1
- package/lib/utils/dom/style.js.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.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/web-types.json +1 -1
|
@@ -73,7 +73,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
|
|
|
73
73
|
effect: import("element-plus").PopperEffect;
|
|
74
74
|
trigger: "Enter" | "Space";
|
|
75
75
|
autocomplete: string;
|
|
76
|
-
clearIcon:
|
|
76
|
+
clearIcon: import("@element-plus/nightly/es/utils").IconPropType;
|
|
77
77
|
validateEvent: boolean;
|
|
78
78
|
maxCollapseTags: number;
|
|
79
79
|
tagType: "primary" | "success" | "warning" | "info" | "danger";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { IconPropType } from '@element-plus/nightly/es/utils';
|
|
2
3
|
import type Link from './link.vue';
|
|
3
4
|
export interface LinkProps {
|
|
4
5
|
/**
|
|
@@ -24,7 +25,7 @@ export interface LinkProps {
|
|
|
24
25
|
/**
|
|
25
26
|
* @description icon component
|
|
26
27
|
*/
|
|
27
|
-
icon?:
|
|
28
|
+
icon?: IconPropType;
|
|
28
29
|
}
|
|
29
30
|
/**
|
|
30
31
|
* @deprecated Removed after 3.0.0, Use `LinkProps` instead.
|
|
@@ -36,7 +37,7 @@ export declare const linkProps: {
|
|
|
36
37
|
readonly href: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
37
38
|
readonly target: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "_self", boolean>;
|
|
38
39
|
readonly icon: {
|
|
39
|
-
readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
|
40
|
+
readonly type: PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
40
41
|
readonly required: false;
|
|
41
42
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
43
|
__epPropKey: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type {
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes, PropType } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Link from './link.vue'\n\nexport interface LinkProps {\n /**\n * @description type\n */\n type?: 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'default'\n /**\n * @description when underlines should appear\n */\n underline?: boolean | 'always' | 'never' | 'hover'\n\n /**\n * @description whether the component is disabled\n */\n disabled?: boolean\n /**\n * @description same as native hyperlink's `href`\n */\n href?: string\n /**\n * @description same as native hyperlink's `target`\n */\n target?:\n | '_blank'\n | '_parent'\n | '_self'\n | '_top'\n | (string & NonNullable<unknown>)\n\n /**\n * @description icon component\n */\n icon?: IconPropType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: undefined,\n },\n /**\n * @description when underlines should appear\n */\n underline: {\n type: [Boolean, String],\n values: [true, false, 'always', 'never', 'hover'],\n default: undefined,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `LinkProps` instead.\n */\nexport type LinkPropsPublic = ExtractPublicPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link> & unknown\nexport interface LinkConfigContext {\n type?: LinkProps['type']\n underline?: LinkProps['underline']\n}\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;AA2CO,MAAM,YAAYA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIlC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,WAAW,SAAA,EAAW,MAAA,EAAQ,UAAU,SAAS,CAAA;AAAA,IACrE,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,CAAC,OAAA,EAAS,MAAM,CAAA;AAAA,IACtB,QAAQ,CAAC,IAAA,EAAM,KAAA,EAAO,QAAA,EAAU,SAAS,OAAO,CAAA;AAAA,IAChD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,IAAA,EAAM,EAAE,IAAA,EAAM,MAAA,EAAQ,SAAS,EAAA,EAAG;AAAA;AAAA;AAAA;AAAA,EAIlC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA;AAEV,CAAU;AAOH,MAAM,SAAA,GAAY;AAAA,EACvB,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe;AAC7C;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mention.js","sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isObject,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\nimport type { InputProps } from '@element-plus/components/input'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface MentionProps extends InputProps {\n /**\n * @description mention options list\n */\n options?: MentionOption[]\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix?: string | string[]\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split?: string\n /**\n * @description customize filter option logic.\n */\n filterOption?: false | typeof filterOption\n /**\n * @description set popup placement\n */\n placement?: 'bottom' | 'top'\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow?: boolean\n /**\n * @description offset of the dropdown panel\n */\n offset?: number\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole?: boolean\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole?: (pattern: string, prefix: string) => boolean\n /**\n * @description input value\n */\n modelValue?: string\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading?: boolean\n /**\n * @description custom class name for dropdown panel\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for dropdown panel\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n /**\n * @description configuration options\n */\n props?: MentionOptionProps\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for dropdown panel\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description configuration options\n */\n props: {\n type: definePropType<MentionOptionProps>(Object),\n default: () => mentionDefaultProps,\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n 'whole-remove': (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n input: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isObject(option) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention> & unknown\n\nexport type { MentionOption } from './types'\n\nexport type MentionOptionProps = {\n value?: string\n label?: string\n disabled?: string\n [key: string]: string | undefined\n}\n\nexport const mentionDefaultProps: Required<MentionOptionProps> = {\n value: 'value',\n label: 'label',\n disabled: 'disabled',\n}\n"],"names":["buildProps","inputProps","definePropType","isString","filterOption","isFunction","useTooltipContentProps","UPDATE_MODEL_EVENT","isObject"],"mappings":";;;;;;;;;AAqFO,MAAM,eAAeA,kBAAA,CAAW;AAAA,EACrC,GAAGC,gBAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAA,EAAS;AAAA,IACP,IAAA,EAAMC,uBAAgC,KAAK,CAAA;AAAA,IAC3C,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMA,sBAAA,CAAkC,CAAC,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACvD,OAAA,EAAS,GAAA;AAAA,IACT,SAAA,EAAW,CAAC,GAAA,KAA2B;AACrC,MAAA,IAAIC,eAAA,CAAS,GAAG,CAAA,EAAG,OAAO,IAAI,MAAA,KAAW,CAAA;AACzC,M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AaA,8BAAA,CAAuB,WAAA;AAAA;AAAA;AAAA;AAAA,EAIpC,aAAA,EAAe;AAAA,IACb,IAAA,EAAMJ,uBAAiC,MAAM,CAAA;AAAA,IAC7C,OAAA,EAAS,OAAO,EAAC;AAAA,GACnB;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAMA,uBAAmC,MAAM,CAAA;AAAA,IAC/C,SAAS,MAAM;AAAA;AAEnB,CAAC;AAEM,MAAM,YAAA,GAAe;AAAA,EAC1B,CAACK,wBAAkB,GAAG,CAAC,KAAA,KAAkBJ,gBAAS,KAAK,CAAA;AAAA,EACvD,cAAA,EAAgB,CAAC,OAAA,EAAiB,MAAA,KAChCA,gBAAS,OAAO,CAAA,IAAKA,gBAAS,MAAM,CAAA;AAAA,EACtC,KAAA,EAAO,CAAC,KAAA,KAAkBA,eAAA,CAAS,KAAK,CAAA;AAAA,EACxC,MAAA,EAAQ,CAAC,OAAA,EAAiB,MAAA,KACxBA,gBAAS,OAAO,CAAA,IAAKA,gBAAS,MAAM,CAAA;AAAA,EACtC,MAAA,EAAQ,CAAC,MAAA,EAAuB,MAAA,KAC9BK,gBAAS,MAAM,CAAA,IAAKL,gBAAS,MAAM,CAAA;AAAA,EACrC,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC3C,IAAA,EAAM,CAAC,GAAA,KAAoB,GAAA,YAAe;AAC5C;
|
|
1
|
+
{"version":3,"file":"mention.js","sources":["../../../../../../packages/components/mention/src/mention.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isFunction,\n isObject,\n isString,\n} from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { inputProps } from '@element-plus/components/input'\nimport { filterOption } from './helper'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Mention from './mention.vue'\nimport type { MentionOption } from './types'\nimport type { Options } from '@element-plus/components/popper'\nimport type { InputProps } from '@element-plus/components/input'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface MentionProps extends InputProps {\n /**\n * @description mention options list\n */\n options?: MentionOption[]\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix?: string | string[]\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split?: string\n /**\n * @description customize filter option logic.\n */\n filterOption?: false | typeof filterOption\n /**\n * @description set popup placement\n */\n placement?: 'bottom' | 'top'\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow?: boolean\n /**\n * @description offset of the dropdown panel\n */\n offset?: number\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole?: boolean\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole?: (pattern: string, prefix: string) => boolean\n /**\n * @description input value\n */\n modelValue?: string\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading?: boolean\n /**\n * @description custom class name for dropdown panel\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for dropdown panel\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n /**\n * @description configuration options\n */\n props?: MentionOptionProps\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport const mentionProps = buildProps({\n ...inputProps,\n /**\n * @description mention options list\n */\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n /**\n * @description prefix character to trigger mentions. The string length must be exactly 1.\n */\n prefix: {\n type: definePropType<string | string[]>([String, Array]),\n default: '@',\n validator: (val: string | string[]) => {\n if (isString(val)) return val.length === 1\n return val.every((v) => isString(v) && v.length === 1)\n },\n },\n /**\n * @description character to split mentions. The string length must be exactly 1.\n */\n split: {\n type: String,\n default: ' ',\n validator: (val: string) => val.length === 1,\n },\n /**\n * @description customize filter option logic.\n */\n filterOption: {\n type: definePropType<false | typeof filterOption>([Boolean, Function]),\n default: () => filterOption,\n validator: (val) => {\n if (val === false) return true\n return isFunction(val)\n },\n },\n /**\n * @description set popup placement\n */\n placement: {\n type: definePropType<'bottom' | 'top'>(String),\n default: 'bottom',\n },\n /**\n * @description whether the dropdown panel has an arrow\n */\n showArrow: Boolean,\n /**\n * @description offset of the dropdown panel\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description when backspace is pressed to delete, whether the mention content is deleted as a whole\n */\n whole: Boolean,\n /**\n * @description when backspace is pressed to delete, check if the mention is a whole\n */\n checkIsWhole: {\n type: definePropType<(pattern: string, prefix: string) => boolean>(\n Function\n ),\n },\n /**\n * @description input value\n */\n modelValue: String,\n /**\n * @description whether the dropdown panel of mentions is in a loading state.\n */\n loading: Boolean,\n /**\n * @description custom class name for dropdown panel\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for dropdown panel\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description configuration options\n */\n props: {\n type: definePropType<MentionOptionProps>(Object),\n default: () => mentionDefaultProps,\n },\n})\n\nexport const mentionEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n 'whole-remove': (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n input: (value: string) => isString(value),\n search: (pattern: string, prefix: string) =>\n isString(pattern) && isString(prefix),\n select: (option: MentionOption, prefix: string) =>\n isObject(option) && isString(prefix),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n}\n\nexport type MentionEmits = typeof mentionEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionProps` instead.\n */\nexport type MentionPropsPublic = ExtractPublicPropTypes<typeof mentionProps>\nexport type MentionInstance = InstanceType<typeof Mention> & unknown\n\nexport type { MentionOption } from './types'\n\nexport type MentionOptionProps = {\n value?: string\n label?: string\n disabled?: string\n [key: string]: string | undefined\n}\n\nexport const mentionDefaultProps: Required<MentionOptionProps> = {\n value: 'value',\n label: 'label',\n disabled: 'disabled',\n}\n"],"names":["buildProps","inputProps","definePropType","isString","filterOption","isFunction","useTooltipContentProps","UPDATE_MODEL_EVENT","isObject"],"mappings":";;;;;;;;;AAqFO,MAAM,eAAeA,kBAAA,CAAW;AAAA,EACrC,GAAGC,gBAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAA,EAAS;AAAA,IACP,IAAA,EAAMC,uBAAgC,KAAK,CAAA;AAAA,IAC3C,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMA,sBAAA,CAAkC,CAAC,MAAA,EAAQ,KAAK,CAAC,CAAA;AAAA,IACvD,OAAA,EAAS,GAAA;AAAA,IACT,SAAA,EAAW,CAAC,GAAA,KAA2B;AACrC,MAAA,IAAIC,eAAA,CAAS,GAAG,CAAA,EAAG,OAAO,IAAI,MAAA,KAAW,CAAA;AACzC,MAAA,OAAO,GAAA,CAAI,MAAM,CAAC,CAAA,KAAMA,gBAAS,CAAC,CAAA,IAAK,CAAA,CAAE,MAAA,KAAW,CAAC,CAAA;AAAA,IACvD;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS,GAAA;AAAA,IACT,SAAA,EAAW,CAAC,GAAA,KAAgB,GAAA,CAAI,MAAA,KAAW;AAAA,GAC7C;AAAA;AAAA;AAAA;AAAA,EAIA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAMD,sBAAA,CAA4C,CAAC,OAAA,EAAS,QAAQ,CAAC,CAAA;AAAA,IACrE,SAAS,MAAME,mBAAA;AAAA,IACf,SAAA,EAAW,CA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AM,CAAA;AAAA,EACtC,KAAA,EAAO,CAAC,KAAA,KAAkBA,eAAA,CAAS,KAAK,CAAA;AAAA,EACxC,MAAA,EAAQ,CAAC,OAAA,EAAiB,MAAA,KACxBA,gBAAS,OAAO,CAAA,IAAKA,gBAAS,MAAM,CAAA;AAAA,EACtC,MAAA,EAAQ,CAAC,MAAA,EAAuB,MAAA,KAC9BK,gBAAS,MAAM,CAAA,IAAKL,gBAAS,MAAM,CAAA;AAAA,EACrC,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC3C,IAAA,EAAM,CAAC,GAAA,KAAoB,GAAA,YAAe;AAC5C;AAmBO,MAAM,mBAAA,GAAoD;AAAA,EAC/D,KAAA,EAAO,OAAA;AAAA,EACP,KAAA,EAAO,OAAA;AAAA,EACP,QAAA,EAAU;AACZ;;;;;;"}
|
|
@@ -83,7 +83,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
|
|
|
83
83
|
prefix: string | string[];
|
|
84
84
|
modelModifiers: import("@element-plus/nightly/es/components/input").InputModelModifiers;
|
|
85
85
|
autocomplete: string;
|
|
86
|
-
clearIcon:
|
|
86
|
+
clearIcon: import("@element-plus/nightly/es/utils").IconPropType;
|
|
87
87
|
wordLimitPosition: "inside" | "outside";
|
|
88
88
|
validateEvent: boolean;
|
|
89
89
|
inputStyle: string | false | CSSProperties | import("vue").StyleValue[] | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AppContext,
|
|
2
|
-
import type { Mutable } from '@element-plus/nightly/es/utils';
|
|
1
|
+
import type { AppContext, ExtractPublicPropTypes, VNode } from 'vue';
|
|
2
|
+
import type { IconPropType, Mutable } from '@element-plus/nightly/es/utils';
|
|
3
3
|
import type MessageConstructor from './message.vue';
|
|
4
4
|
export interface MessageProps {
|
|
5
5
|
/**
|
|
@@ -17,7 +17,7 @@ export interface MessageProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* @description custom icon component, overrides `type`
|
|
19
19
|
*/
|
|
20
|
-
icon?:
|
|
20
|
+
icon?: IconPropType;
|
|
21
21
|
/**
|
|
22
22
|
* @description message dom id
|
|
23
23
|
*/
|
|
@@ -104,7 +104,7 @@ export declare const messageProps: {
|
|
|
104
104
|
readonly customClass: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
105
105
|
readonly dangerouslyUseHTMLString: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
106
106
|
readonly duration: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 3000, boolean>;
|
|
107
|
-
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, undefined, boolean>;
|
|
107
|
+
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, undefined, boolean>;
|
|
108
108
|
readonly id: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
109
109
|
readonly message: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
110
110
|
[key: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sources":["../../../../../../packages/components/message/src/message.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isClient,\n mutable,\n} from '@element-plus/utils'\n\nimport type { AppContext,
|
|
1
|
+
{"version":3,"file":"message.js","sources":["../../../../../../packages/components/message/src/message.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isClient,\n mutable,\n} from '@element-plus/utils'\n\nimport type { AppContext, ExtractPublicPropTypes, VNode } from 'vue'\nimport type { IconPropType, Mutable } from '@element-plus/utils'\nimport type MessageConstructor from './message.vue'\n\nexport interface MessageProps {\n /**\n * @description custom class name for Message\n */\n customClass?: string\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString?: boolean\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration?: number\n /**\n * @description custom icon component, overrides `type`\n */\n icon?: IconPropType\n /**\n * @description message dom id\n */\n id?: string\n /**\n * @description message text\n */\n message?: string | VNode | (() => VNode)\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose?: () => void\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description message type\n */\n type?: MessageType\n /**\n * @description whether message is plain\n */\n plain?: boolean\n /**\n * @description set the distance to the top of viewport\n */\n offset?: number\n /**\n * @description message placement position\n */\n placement?: MessagePlacement\n /**\n * @description message element zIndex value\n */\n zIndex?: number\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping?: boolean\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum?: number\n}\n\nexport const messageTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const messagePlacement = [\n 'top',\n 'top-left',\n 'top-right',\n 'bottom',\n 'bottom-left',\n 'bottom-right',\n] as const\n\nexport const MESSAGE_DEFAULT_PLACEMENT = 'top'\n\nexport type MessageType = (typeof messageTypes)[number]\nexport type MessagePlacement = (typeof messagePlacement)[number]\n/** @deprecated please use `MessageType` instead */\nexport type messageType = MessageType // will be removed in 3.0.0.\n\nexport interface MessageConfigContext {\n max?: number\n grouping?: boolean\n duration?: number\n offset?: number\n showClose?: boolean\n plain?: boolean\n placement?: string\n}\n\nexport const messageDefaults = mutable({\n customClass: '',\n dangerouslyUseHTMLString: false,\n duration: 3000,\n icon: undefined,\n id: '',\n message: '',\n onClose: undefined,\n showClose: false,\n type: 'info',\n plain: false,\n offset: 16,\n placement: undefined,\n zIndex: 0,\n grouping: false,\n repeatNum: 1,\n appendTo: isClient ? document.body : (undefined as never),\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `MessageProps` instead.\n */\nexport const messageProps = buildProps({\n /**\n * @description custom class name for Message\n */\n customClass: {\n type: String,\n default: messageDefaults.customClass,\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: messageDefaults.dangerouslyUseHTMLString,\n },\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration: {\n type: Number,\n default: messageDefaults.duration,\n },\n /**\n * @description custom icon component, overrides `type`\n */\n icon: {\n type: iconPropType,\n default: messageDefaults.icon,\n },\n /**\n * @description message dom id\n */\n id: {\n type: String,\n default: messageDefaults.id,\n },\n /**\n * @description message text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: messageDefaults.message,\n },\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose: {\n type: definePropType<() => void>(Function),\n default: messageDefaults.onClose,\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: messageDefaults.showClose,\n },\n /**\n * @description message type\n */\n type: {\n type: String,\n values: messageTypes,\n default: messageDefaults.type,\n },\n /**\n * @description whether message is plain\n */\n plain: {\n type: Boolean,\n default: messageDefaults.plain,\n },\n /**\n * @description set the distance to the top of viewport\n */\n offset: {\n type: Number,\n default: messageDefaults.offset,\n },\n /**\n * @description message placement position\n */\n placement: {\n type: String,\n values: messagePlacement,\n default: messageDefaults.placement,\n },\n /**\n * @description message element zIndex value\n */\n zIndex: {\n type: Number,\n default: messageDefaults.zIndex,\n },\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping: {\n type: Boolean,\n default: messageDefaults.grouping,\n },\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum: {\n type: Number,\n default: messageDefaults.repeatNum,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `MessageProps` instead.\n */\nexport type MessagePropsPublic = ExtractPublicPropTypes<typeof messageProps>\n\nexport const messageEmits = {\n destroy: () => true,\n}\nexport type MessageEmits = typeof messageEmits\n\nexport type MessageInstance = InstanceType<typeof MessageConstructor> & unknown\n\nexport type MessageOptions = Partial<\n Mutable<\n Omit<MessageProps, 'id'> & {\n appendTo?: HTMLElement | string\n }\n >\n>\nexport type MessageParams = MessageOptions | MessageOptions['message']\nexport type MessageParamsNormalized = Omit<MessageProps, 'id'> & {\n /**\n * @description set the root element for the message, default to `document.body`\n */\n appendTo: HTMLElement\n}\nexport type MessageOptionsWithType = Omit<MessageOptions, 'type'>\nexport type MessageParamsWithType =\n | MessageOptionsWithType\n | MessageOptions['message']\n\nexport interface MessageHandler {\n /**\n * @description close the Message\n */\n close: () => void\n}\n\nexport type MessageFn = {\n (options?: MessageParams, appContext?: null | AppContext): MessageHandler\n closeAll(type?: MessageType): void\n closeAllByPlacement(position: MessagePlacement): void\n}\nexport type MessageTypedFn = (\n options?: MessageParamsWithType,\n appContext?: null | AppContext\n) => MessageHandler\n\nexport type Message = MessageFn & {\n primary: MessageTypedFn\n success: MessageTypedFn\n warning: MessageTypedFn\n info: MessageTypedFn\n error: MessageTypedFn\n}\n"],"names":["mutable","isClient","buildProps","iconPropType","definePropType"],"mappings":";;;;;;;AA2EO,MAAM,YAAA,GAAe;AAAA,EAC1B,SAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA;AACF;AAEO,MAAM,gBAAA,GAAmB;AAAA,EAC9B,KAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,aAAA;AAAA,EACA;AACF;AAEO,MAAM,yBAAA,GAA4B;AAiBlC,MAAM,kBAAkBA,kBAAA,CAAQ;AAAA,EACrC,WAAA,EAAa,EAAA;AAAA,EACb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-49,7 +49,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
|
|
|
49
49
|
}, {
|
|
50
50
|
zIndex: number;
|
|
51
51
|
offset: number;
|
|
52
|
-
icon:
|
|
52
|
+
icon: import("@element-plus/nightly/es/utils").IconPropType;
|
|
53
53
|
id: string;
|
|
54
54
|
type: import("./message").MessageType;
|
|
55
55
|
message: string | import("vue").VNode | (() => import("vue").VNode);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { AppContext,
|
|
1
|
+
import type { AppContext, ExtractPublicPropTypes, VNode } from 'vue';
|
|
2
|
+
import type { IconPropType } from '@element-plus/nightly/es/utils';
|
|
2
3
|
import type Notification from './notification.vue';
|
|
3
4
|
export declare const notificationTypes: readonly ["primary", "success", "info", "warning", "error"];
|
|
4
5
|
export type NotificationType = (typeof notificationTypes)[number] | '';
|
|
@@ -19,7 +20,7 @@ export interface NotificationProps {
|
|
|
19
20
|
/**
|
|
20
21
|
* @description custom icon component. It will be overridden by `type`
|
|
21
22
|
*/
|
|
22
|
-
icon?:
|
|
23
|
+
icon?: IconPropType;
|
|
23
24
|
/**
|
|
24
25
|
* @description notification dom id
|
|
25
26
|
*/
|
|
@@ -63,7 +64,7 @@ export interface NotificationProps {
|
|
|
63
64
|
/**
|
|
64
65
|
* @description custom close icon, default is Close
|
|
65
66
|
*/
|
|
66
|
-
closeIcon?:
|
|
67
|
+
closeIcon?: IconPropType;
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
69
70
|
* @deprecated Removed after 3.0.0, Use `NotificationProps` instead.
|
|
@@ -73,7 +74,7 @@ export declare const notificationProps: {
|
|
|
73
74
|
readonly dangerouslyUseHTMLString: BooleanConstructor;
|
|
74
75
|
readonly duration: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 4500, boolean>;
|
|
75
76
|
readonly icon: {
|
|
76
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
|
77
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
77
78
|
readonly required: false;
|
|
78
79
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
80
|
__epPropKey: true;
|
|
@@ -110,7 +111,7 @@ export declare const notificationProps: {
|
|
|
110
111
|
readonly type: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "error" | "primary" | "success" | "warning" | "info", unknown, "", boolean>;
|
|
111
112
|
readonly zIndex: NumberConstructor;
|
|
112
113
|
readonly closeIcon: {
|
|
113
|
-
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
|
114
|
+
readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
114
115
|
readonly required: false;
|
|
115
116
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
117
|
__epPropKey: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { Close } from '@element-plus/icons-vue'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type { AppContext,
|
|
1
|
+
{"version":3,"file":"notification.js","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { Close } from '@element-plus/icons-vue'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\n\nimport type { AppContext, ExtractPublicPropTypes, VNode } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'primary',\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport type NotificationType = (typeof notificationTypes)[number] | ''\n\nexport type NotificationPosition =\n | 'top-right'\n | 'top-left'\n | 'bottom-right'\n | 'bottom-left'\n\nexport interface NotificationProps {\n /**\n * @description custom class name for Notification\n */\n customClass?: string\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString?: boolean\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration?: number\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon?: IconPropType\n /**\n * @description notification dom id\n */\n id?: string\n /**\n * @description description text\n */\n message?: string | VNode | (() => VNode)\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset?: number\n /**\n * @description callback function when notification clicked\n */\n onClick?: () => void\n /**\n * @description callback function when closed\n */\n onClose: () => void\n /**\n * @description custom position\n */\n position?: NotificationPosition\n /**\n * @description whether to show a close button\n */\n showClose?: boolean\n /**\n * @description title\n */\n title?: string\n /**\n * @description notification type\n */\n type?: NotificationType\n /**\n * @description initial zIndex\n */\n zIndex?: number\n /**\n * @description custom close icon, default is Close\n */\n closeIcon?: IconPropType\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport const notificationProps = buildProps({\n /**\n * @description custom class name for Notification\n */\n customClass: {\n type: String,\n default: '',\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: Boolean,\n /**\n * @description duration before close. It will not automatically close if set 0\n */\n duration: {\n type: Number,\n default: 4500,\n },\n /**\n * @description custom icon component. It will be overridden by `type`\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description notification dom id\n */\n id: {\n type: String,\n default: '',\n },\n /**\n * @description description text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: '',\n },\n /**\n * @description offset from the top edge of the screen. Every Notification instance of the same moment should have the same offset\n */\n offset: {\n type: Number,\n default: 0,\n },\n /**\n * @description callback function when notification clicked\n */\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n /**\n * @description callback function when closed\n */\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n /**\n * @description custom position\n */\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: true,\n },\n /**\n * @description title\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description notification type\n */\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n /**\n * @description initial zIndex\n */\n zIndex: Number,\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n default: Close,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `NotificationProps` instead.\n */\nexport type NotificationPropsPublic = ExtractPublicPropTypes<\n typeof notificationProps\n>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification> & unknown\n\nexport type NotificationOptions = Omit<NotificationProps, 'id' | 'onClose'> & {\n /**\n * @description set the root element for the notification, default to `document.body`\n */\n appendTo?: HTMLElement | string\n /**\n * @description callback function when closed\n */\n onClose?(vm: VNode): void\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport interface NotifyFn {\n (\n options?: NotificationParams,\n appContext?: null | AppContext\n ): NotificationHandle\n closeAll(): void\n updateOffsets(position?: NotificationOptions['position']): void\n _context: AppContext | null\n}\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped,\n appContext?: null | AppContext\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n primary: NotifyTypedFn\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":["buildProps","iconPropType","definePropType","Close"],"mappings":";;;;;;AAOO,MAAM,iBAAA,GAAoB;AAAA,EAC/B,SAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA;AACF;AA4EO,MAAM,oBAAoBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI1C,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,wBAAA,EAA0B,OAAA;AAAA;AAAA;AAAA;AAAA,EAI1B,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI;AAAA,IACF,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,MAAMC,sBAAA,CAA+C;AAAA,MACnD,MAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMA,uBAA2B,QAAQ,CAAA;AAAA,IACzC,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAMA,uBAA2B,QAAQ,CAAA;AAAA,IACzC,QAAA,EAAU;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,WAAA,EAAa,UAAA,EAAY,gBAAgB,aAAa,CAAA;AAAA,IAC/D,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,CAAC,GAAG,iBAAA,EAAmB,EAAE,CAAA;AAAA,IACjC,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ,MAAA;AAAA;AAAA;AAAA;AAAA,EAIR,SAAA,EAAW;AAAA,IACT,IAAA,EAAMD,iBAAA;AAAA,IACN,OAAA,EAASE;AAAA;AAEb,CAAU;AASH,MAAM,iBAAA,GAAoB;AAAA,EAC/B,SAAS,MAAM;AACjB;;;;;;"}
|
|
@@ -44,7 +44,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
|
|
|
44
44
|
type: import("./notification").NotificationType;
|
|
45
45
|
message: string | import("vue").VNode | (() => import("vue").VNode);
|
|
46
46
|
onClick: () => void;
|
|
47
|
-
closeIcon:
|
|
47
|
+
closeIcon: import("@element-plus/nightly/es/utils").IconPropType;
|
|
48
48
|
showClose: boolean;
|
|
49
49
|
duration: number;
|
|
50
50
|
customClass: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type { IconPropType } from '@element-plus/nightly/es/utils';
|
|
2
3
|
import type PageHeader from './page-header.vue';
|
|
3
4
|
export interface PageHeaderProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description icon component of page header
|
|
6
7
|
*/
|
|
7
|
-
icon?:
|
|
8
|
+
icon?: IconPropType;
|
|
8
9
|
/**
|
|
9
10
|
* @description main title of page header
|
|
10
11
|
*/
|
|
@@ -14,11 +15,17 @@ export interface PageHeaderProps {
|
|
|
14
15
|
*/
|
|
15
16
|
content?: string;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.
|
|
20
|
+
*/
|
|
17
21
|
export declare const pageHeaderProps: {
|
|
18
|
-
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
|
|
22
|
+
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
19
23
|
readonly title: StringConstructor;
|
|
20
24
|
readonly content: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
21
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.
|
|
28
|
+
*/
|
|
22
29
|
export type PageHeaderPropsPublic = ExtractPublicPropTypes<typeof pageHeaderProps>;
|
|
23
30
|
export declare const pageHeaderEmits: {
|
|
24
31
|
back: () => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\n\nimport type {
|
|
1
|
+
{"version":3,"file":"page-header.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { IconPropType } from '@element-plus/utils'\nimport type PageHeader from './page-header.vue'\n\nexport interface PageHeaderProps {\n /**\n * @description icon component of page header\n */\n icon?: IconPropType\n /**\n * @description main title of page header\n */\n title?: string\n /**\n * @description content of page header\n */\n content?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.\n */\nexport const pageHeaderProps = buildProps({\n /**\n * @description icon component of page header\n */\n icon: {\n type: iconPropType,\n default: () => Back,\n },\n /**\n * @description main title of page header\n */\n title: String,\n /**\n * @description content of page header\n */\n content: {\n type: String,\n default: '',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PageHeaderProps` instead.\n */\nexport type PageHeaderPropsPublic = ExtractPublicPropTypes<\n typeof pageHeaderProps\n>\n\nexport const pageHeaderEmits = {\n back: () => true,\n}\nexport type PageHeaderEmits = typeof pageHeaderEmits\n\nexport type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown\n"],"names":["buildProps","iconPropType","Back"],"mappings":";;;;;;AAyBO,MAAM,kBAAkBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,iBAAA;AAAA,IACN,SAAS,MAAMC;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AASH,MAAM,eAAA,GAAkB;AAAA,EAC7B,MAAM,MAAM;AACd;;;;;"}
|
|
@@ -25,7 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
|
|
|
25
25
|
onBack?: (() => any) | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
content: string;
|
|
28
|
-
icon:
|
|
28
|
+
icon: import("@element-plus/nightly/es/utils").IconPropType;
|
|
29
29
|
}, {}>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.vue2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { Back
|
|
1
|
+
{"version":3,"file":"page-header.vue2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { Back } from '@element-plus/icons-vue'\nimport { pageHeaderEmits } from './page-header'\n\nimport type { PageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\nwithDefaults(defineProps<PageHeaderProps>(), {\n icon: () => Back,\n content: '',\n})\nconst emit = defineEmits(pageHeaderEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useLocale","useNamespace","_createElementBlock","_normalizeClass","_unref","$slots","_renderSlot","_createElementVNode","_createBlock","ElIcon","_openBlock","_resolveDynamicComponent","_createTextVNode","_toDisplayString","_createVNode","ElDivider"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuEA,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,EAAE,CAAA,EAAE,GAAIA,eAAA,EAAU;AACxB,IAAA,MAAM,EAAA,GAAKC,qBAAa,aAAa,CAAA;AAErC,IAAA,SAAS,WAAA,GAAc;AACrB,MAAA,IAAA,CAAK,MAAM,CAAA;AAAA,IACb;;8BA7EEC,sBAAA;AAAA,QAkDM,KAAA;AAAA,QAAA;AAAA,UAjDH,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,EAAC;AAAA,YAAUA,SAAA,CAAA,EAAA,CAAA,CAAG,EAAA,CAAE,cAAA,CAAA,CAAiBC,IAAAA,CAAAA,MAAAA,CAAO,OAAO,CAAA;AAAA;cAAoB,CAAAD,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,gBAAA,CAAA,GAAA,CAAA,CAAuBC,IAAAA,CAAAA,MAAAA,CAAO,UAAA;AAAA,cAAqB,CAAAD,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,WAAA,CAAA,GAAA,CAAA,CAAkBC,IAAAA,CAAAA,MAAAA,CAAO;AAAA;;;;UAS/JA,IAAAA,CAAAA,MAAAA,CAAO,UAAA,qBAAlBH,sBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA;cAFyB,OAAKC,kBAAA,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2
2
|
import type { ButtonType } from '@element-plus/nightly/es/components/button';
|
|
3
3
|
import type { ElTooltipContentProps, ElTooltipTriggerProps } from '@element-plus/nightly/es/components/tooltip';
|
|
4
|
+
import type { IconPropType } from '@element-plus/nightly/es/utils';
|
|
4
5
|
import type Popconfirm from './popconfirm.vue';
|
|
5
6
|
export interface PopconfirmProps {
|
|
6
7
|
/**
|
|
@@ -26,7 +27,7 @@ export interface PopconfirmProps {
|
|
|
26
27
|
/**
|
|
27
28
|
* @description Icon Component
|
|
28
29
|
*/
|
|
29
|
-
icon?:
|
|
30
|
+
icon?: IconPropType;
|
|
30
31
|
/**
|
|
31
32
|
* @description Icon color
|
|
32
33
|
*/
|
|
@@ -73,7 +74,7 @@ export declare const popconfirmProps: {
|
|
|
73
74
|
readonly cancelButtonText: StringConstructor;
|
|
74
75
|
readonly confirmButtonType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
|
|
75
76
|
readonly cancelButtonType: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, "text", boolean>;
|
|
76
|
-
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
|
|
77
|
+
readonly icon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
77
78
|
readonly iconColor: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#f90", boolean>;
|
|
78
79
|
readonly hideIcon: BooleanConstructor;
|
|
79
80
|
readonly hideAfter: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popconfirm.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type {
|
|
1
|
+
{"version":3,"file":"popconfirm.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport {\n useTooltipContentProps,\n useTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ButtonType } from '@element-plus/components/button'\nimport type {\n ElTooltipContentProps,\n ElTooltipTriggerProps,\n} from '@element-plus/components/tooltip'\nimport type { IconPropType } from '@element-plus/utils'\nimport type Popconfirm from './popconfirm.vue'\n\nexport interface PopconfirmProps {\n /**\n * @description Title\n */\n title?: string\n /**\n * @description Confirm button text\n */\n confirmButtonText?: string\n /**\n * @description Cancel button text\n */\n cancelButtonText?: string\n /**\n * @description Confirm button type\n */\n confirmButtonType?: ButtonType\n /**\n * @description Cancel button type\n */\n cancelButtonType?: ButtonType\n /**\n * @description Icon Component\n */\n icon?: IconPropType\n /**\n * @description Icon color\n */\n iconColor?: string\n /**\n * @description is hide Icon\n */\n hideIcon?: boolean\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter?: number\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect?: ElTooltipContentProps['effect']\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent?: ElTooltipContentProps['persistent']\n /**\n * @description popconfirm width, min width 150px\n */\n width?: string | number\n /**\n * @description Indicates whether virtual triggering is enabled\n */\n virtualTriggering?: ElTooltipTriggerProps['virtualTriggering']\n /**\n * @description Indicates the reference element to which the popper is attached\n */\n virtualRef?: ElTooltipTriggerProps['virtualRef']\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: Boolean,\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n ...useTooltipContentProps.effect,\n default: 'light',\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n virtualTriggering: useTooltipTriggerProps.virtualTriggering,\n virtualRef: useTooltipTriggerProps.virtualRef,\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopconfirmProps` instead.\n */\nexport type PopconfirmPropsPublic = ExtractPublicPropTypes<\n typeof popconfirmProps\n>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm> & unknown\n"],"names":["buildProps","buttonTypes","iconPropType","QuestionFilled","useTooltipContentProps","useTooltipTriggerProps"],"mappings":";;;;;;;;;AAmFO,MAAM,kBAAkBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,KAAA,EAAO,MAAA;AAAA;AAAA;AAAA;AAAA,EAIP,iBAAA,EAAmB,MAAA;AAAA;AAAA;AAAA;AAAA,EAInB,gBAAA,EAAkB,MAAA;AAAA;AAAA;AAAA;AAAA,EAIlB,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,kBAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,gBAAA,EAAkB;AAAA,IAChB,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQA,kBAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAMC,iBAAA;AAAA,IACN,SAAS,MAAMC;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,GAAGC,8BAAA,CAAuB,MAAA;AAAA,IAC1B,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAYA,8BAAA,CAAuB,UAAA;AAAA;AAAA;AAAA;AAAA,EAInC,YAAYA,8BAAA,CAAuB,UAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAA,EAAS;AAAA,GACX;AAAA,EACA,mBAAmBC,8BAAA,CAAuB,iBAAA;AAAA,EAC1C,YAAYA,8BAAA,CAAuB;AACrC,CAAU;AAEH,MAAM,eAAA,GAAkB;AAAA;AAAA;AAAA;AAAA,EAI7B,OAAA,EAAS,CAAC,CAAA,KAAkB,CAAA,YAAa,UAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,MAAA,EAAQ,CAAC,CAAA,KAAkB,CAAA,YAAa;AAC1C;;;;;"}
|
|
@@ -37,7 +37,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<
|
|
|
37
37
|
onConfirm?: ((e: MouseEvent) => any) | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
width: string | number;
|
|
40
|
-
icon:
|
|
40
|
+
icon: import("@element-plus/nightly/es/utils").IconPropType;
|
|
41
41
|
effect: import("element-plus").PopperEffect;
|
|
42
42
|
hideAfter: number;
|
|
43
43
|
teleported: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow.js","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport interface PopperArrowProps {\n /**\n * @description arrow offset\n */\n arrowOffset?: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport type PopperArrowPropsPublic = ExtractPublicPropTypes<\n typeof popperArrowProps\n>\n\nexport const popperArrowPropsDefaults = {\n arrowOffset: 5,\n} as const\n\nexport type PopperArrowInstance = InstanceType<typeof Arrow> & unknown\n\n/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */\nexport const usePopperArrowProps = popperArrowProps\n\n/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperArrowProps = PopperArrowProps\n\n/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowInstance = PopperArrowInstance\n"],"names":["buildProps"],"mappings":";;;;AAeO,MAAM,mBAAmBA,kBAAA,CAAW;AAAA,EACzC,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;
|
|
1
|
+
{"version":3,"file":"arrow.js","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport interface PopperArrowProps {\n /**\n * @description arrow offset\n */\n arrowOffset?: number\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperArrowProps` instead.\n */\nexport type PopperArrowPropsPublic = ExtractPublicPropTypes<\n typeof popperArrowProps\n>\n\nexport const popperArrowPropsDefaults = {\n arrowOffset: 5,\n} as const\n\nexport type PopperArrowInstance = InstanceType<typeof Arrow> & unknown\n\n/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */\nexport const usePopperArrowProps = popperArrowProps\n\n/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperArrowProps = PopperArrowProps\n\n/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowInstance = PopperArrowInstance\n"],"names":["buildProps"],"mappings":";;;;AAeO,MAAM,mBAAmBA,kBAAA,CAAW;AAAA,EACzC,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AASH,MAAM,wBAAA,GAA2B;AAAA,EACtC,WAAA,EAAa;AACf;AAKO,MAAM,mBAAA,GAAsB;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sources":["../../../../../../packages/components/popper/src/content.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\nimport { popperArrowProps, popperArrowPropsDefaults } from './arrow'\n\nimport type { PopperEffect } from './popper'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\nimport type { PopperArrowProps } from './arrow'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nconst POSITIONING_STRATEGIES = ['fixed', 'absolute'] as const\n\nexport interface CreatePopperInstanceParams {\n referenceEl: Measurable\n popperContentEl: HTMLElement\n arrowEl: HTMLElement | undefined\n}\n\nexport interface PopperCoreConfigProps {\n boundariesPadding?: number\n fallbackPlacements?: Placement[]\n gpuAcceleration?: boolean\n /**\n * @description offset of the Tooltip\n */\n offset?: number\n /**\n * @description position of Tooltip\n */\n placement?: Placement\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n strategy?: (typeof POSITIONING_STRATEGIES)[number]\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\n */\nexport const popperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0,\n },\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: undefined,\n },\n gpuAcceleration: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the Tooltip\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: 'absolute',\n },\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\n */\nexport type PopperCoreConfigPropsPublic = ExtractPublicPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport interface PopperContentProps\n extends PopperCoreConfigProps, PopperArrowProps {\n id?: string\n style?: StyleValue\n className?: ClassType\n effect?: PopperEffect\n visible?: boolean\n enterable?: boolean\n pure?: boolean\n focusOnShow?: boolean\n trapping?: boolean\n popperClass?: ClassType\n popperStyle?: StyleValue\n referenceEl?: HTMLElement\n triggerTargetEl?: HTMLElement\n stopPopperMouseEvent?: boolean\n virtualTriggering?: boolean\n zIndex?: number\n ariaLabel?: string\n loop?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n ...popperArrowProps,\n id: String,\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n className: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: Boolean,\n trapping: Boolean,\n popperClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n referenceEl: {\n type: definePropType<HTMLElement>(Object),\n },\n triggerTargetEl: {\n type: definePropType<HTMLElement>(Object),\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true,\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...useAriaProps(['ariaLabel']),\n loop: Boolean,\n} as const)\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport type PopperContentPropsPublic = ExtractPublicPropTypes<\n typeof popperContentProps\n>\n\nexport const popperCoreConfigPropsDefaults = {\n boundariesPadding: 0,\n gpuAcceleration: true,\n offset: 12,\n placement: 'bottom',\n popperOptions: () => ({}),\n strategy: 'absolute',\n} as const\n\nexport const popperContentPropsDefaults = {\n ...popperCoreConfigPropsDefaults,\n ...popperArrowPropsDefaults,\n effect: 'dark',\n enterable: true,\n stopPopperMouseEvent: true,\n visible: false,\n pure: false,\n focusOnShow: false,\n trapping: false,\n virtualTriggering: false,\n loop: false,\n style: undefined,\n popperStyle: undefined,\n} as const\n\nexport const popperContentEmits = {\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n focus: () => true,\n blur: () => true,\n close: () => true,\n}\nexport type PopperContentEmits = typeof popperContentEmits\n\nexport type PopperContentInstance = InstanceType<typeof Content> & unknown\n\n/** @deprecated use `popperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport const usePopperCoreConfigProps = popperCoreConfigProps\n\n/** @deprecated use `popperContentProps` instead, and it will be deprecated in the next major version */\nexport const usePopperContentProps = popperContentProps\n\n/** @deprecated use `popperContentEmits` instead, and it will be deprecated in the next major version */\nexport const usePopperContentEmits = popperContentEmits\n\n/** @deprecated use `PopperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperCoreConfigProps = PopperCoreConfigProps\n\n/** @deprecated use `PopperContentProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperContentProps = PopperContentProps\n\n/** @deprecated use `PopperContentInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowContent = PopperContentInstance\n"],"names":["buildProps","definePropType","placements","popperArrowProps","useAriaProps","popperArrowPropsDefaults"],"mappings":";;;;;;;AAeA,MAAM,sBAAA,GAAyB,CAAC,OAAA,EAAS,UAAU,CAAA;AA8B5C,MAAM,wBAAwBA,kBAAA,CAAW;AAAA,EAC9C,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,IAAA,EAAMC,uBAA4B,KAAK,CAAA;AAAA,IACvC,OAAA,EAAS;AAAA,GACX;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,eAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAMD,uBAAiC,MAAM,CAAA;AAAA,IAC7C,OAAA,EAAS,OAAO,EAAC;AAAA,GACnB;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,sBAAA;AAAA,IACR,OAAA,EAAS;AAAA;AAEb,CAAU;
|
|
1
|
+
{"version":3,"file":"content.js","sources":["../../../../../../packages/components/popper/src/content.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\nimport { popperArrowProps, popperArrowPropsDefaults } from './arrow'\n\nimport type { PopperEffect } from './popper'\nimport type { ExtractPublicPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\nimport type { PopperArrowProps } from './arrow'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nconst POSITIONING_STRATEGIES = ['fixed', 'absolute'] as const\n\nexport interface CreatePopperInstanceParams {\n referenceEl: Measurable\n popperContentEl: HTMLElement\n arrowEl: HTMLElement | undefined\n}\n\nexport interface PopperCoreConfigProps {\n boundariesPadding?: number\n fallbackPlacements?: Placement[]\n gpuAcceleration?: boolean\n /**\n * @description offset of the Tooltip\n */\n offset?: number\n /**\n * @description position of Tooltip\n */\n placement?: Placement\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions?: Partial<Options>\n strategy?: (typeof POSITIONING_STRATEGIES)[number]\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\n */\nexport const popperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0,\n },\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: undefined,\n },\n gpuAcceleration: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the Tooltip\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: 'absolute',\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperCoreConfigProps` instead.\n */\nexport type PopperCoreConfigPropsPublic = ExtractPublicPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport interface PopperContentProps\n extends PopperCoreConfigProps, PopperArrowProps {\n id?: string\n style?: StyleValue\n className?: ClassType\n effect?: PopperEffect\n visible?: boolean\n enterable?: boolean\n pure?: boolean\n focusOnShow?: boolean\n trapping?: boolean\n popperClass?: ClassType\n popperStyle?: StyleValue\n referenceEl?: HTMLElement\n triggerTargetEl?: HTMLElement\n stopPopperMouseEvent?: boolean\n virtualTriggering?: boolean\n zIndex?: number\n ariaLabel?: string\n loop?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n ...popperArrowProps,\n id: String,\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n className: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: Boolean,\n trapping: Boolean,\n popperClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n referenceEl: {\n type: definePropType<HTMLElement>(Object),\n },\n triggerTargetEl: {\n type: definePropType<HTMLElement>(Object),\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true,\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...useAriaProps(['ariaLabel']),\n loop: Boolean,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `PopperContentProps` instead.\n */\nexport type PopperContentPropsPublic = ExtractPublicPropTypes<\n typeof popperContentProps\n>\n\nexport const popperCoreConfigPropsDefaults = {\n boundariesPadding: 0,\n gpuAcceleration: true,\n offset: 12,\n placement: 'bottom',\n popperOptions: () => ({}),\n strategy: 'absolute',\n} as const\n\nexport const popperContentPropsDefaults = {\n ...popperCoreConfigPropsDefaults,\n ...popperArrowPropsDefaults,\n effect: 'dark',\n enterable: true,\n stopPopperMouseEvent: true,\n visible: false,\n pure: false,\n focusOnShow: false,\n trapping: false,\n virtualTriggering: false,\n loop: false,\n style: undefined,\n popperStyle: undefined,\n} as const\n\nexport const popperContentEmits = {\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n focus: () => true,\n blur: () => true,\n close: () => true,\n}\nexport type PopperContentEmits = typeof popperContentEmits\n\nexport type PopperContentInstance = InstanceType<typeof Content> & unknown\n\n/** @deprecated use `popperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport const usePopperCoreConfigProps = popperCoreConfigProps\n\n/** @deprecated use `popperContentProps` instead, and it will be deprecated in the next major version */\nexport const usePopperContentProps = popperContentProps\n\n/** @deprecated use `popperContentEmits` instead, and it will be deprecated in the next major version */\nexport const usePopperContentEmits = popperContentEmits\n\n/** @deprecated use `PopperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperCoreConfigProps = PopperCoreConfigProps\n\n/** @deprecated use `PopperContentProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperContentProps = PopperContentProps\n\n/** @deprecated use `PopperContentInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowContent = PopperContentInstance\n"],"names":["buildProps","definePropType","placements","popperArrowProps","useAriaProps","popperArrowPropsDefaults"],"mappings":";;;;;;;AAeA,MAAM,sBAAA,GAAyB,CAAC,OAAA,EAAS,UAAU,CAAA;AA8B5C,MAAM,wBAAwBA,kBAAA,CAAW;AAAA,EAC9C,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,IAAA,EAAMC,uBAA4B,KAAK,CAAA;AAAA,IACvC,OAAA,EAAS;AAAA,GACX;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQC,eAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA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|
@@ -4,17 +4,17 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioButtonProps>, {
|
|
7
|
-
modelValue: undefined;
|
|
8
|
-
disabled: undefined;
|
|
9
|
-
label: undefined;
|
|
10
|
-
value: undefined;
|
|
11
|
-
name: undefined;
|
|
7
|
+
readonly modelValue: undefined;
|
|
8
|
+
readonly disabled: undefined;
|
|
9
|
+
readonly label: undefined;
|
|
10
|
+
readonly value: undefined;
|
|
11
|
+
readonly name: undefined;
|
|
12
12
|
}>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<RadioButtonProps>, {
|
|
13
|
-
modelValue: undefined;
|
|
14
|
-
disabled: undefined;
|
|
15
|
-
label: undefined;
|
|
16
|
-
value: undefined;
|
|
17
|
-
name: undefined;
|
|
13
|
+
readonly modelValue: undefined;
|
|
14
|
+
readonly disabled: undefined;
|
|
15
|
+
readonly label: undefined;
|
|
16
|
+
readonly value: undefined;
|
|
17
|
+
readonly name: undefined;
|
|
18
18
|
}>>>, {
|
|
19
19
|
label: string | number | boolean;
|
|
20
20
|
disabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.vue2.js","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonPropsDefaults } from './radio-button'\n\nimport type { RadioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = withDefaults(defineProps<RadioButtonProps>()
|
|
1
|
+
{"version":3,"file":"radio-button.vue2.js","sources":["../../../../../../packages/components/radio/src/radio-button.vue"],"sourcesContent":["<template>\n <label\n :class=\"[\n ns.b('button'),\n ns.is('active', modelValue === actualValue),\n ns.is('disabled', disabled),\n ns.is('focus', focus),\n ns.bm('button', size),\n ]\"\n >\n <input\n ref=\"radioRef\"\n v-model=\"modelValue\"\n :class=\"ns.be('button', 'original-radio')\"\n :value=\"actualValue\"\n type=\"radio\"\n :name=\"name || radioGroup?.name\"\n :disabled=\"disabled\"\n @focus=\"focus = true\"\n @blur=\"focus = false\"\n @click.stop\n />\n <span\n :class=\"ns.be('button', 'inner')\"\n :style=\"modelValue === actualValue ? activeStyle : {}\"\n @keydown.stop\n >\n <slot>\n {{ label }}\n </slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useRadio } from './use-radio'\nimport { radioButtonPropsDefaults } from './radio-button'\n\nimport type { RadioButtonProps } from './radio-button'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElRadioButton',\n})\n\nconst props = withDefaults(\n defineProps<RadioButtonProps>(),\n radioButtonPropsDefaults\n)\n\nconst ns = useNamespace('radio')\nconst { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } =\n useRadio(props)\n\nconst activeStyle = computed<CSSProperties>(() => {\n return {\n backgroundColor: radioGroup?.fill || '',\n borderColor: radioGroup?.fill || '',\n boxShadow: radioGroup?.fill ? `-1px 0 0 0 ${radioGroup.fill}` : '',\n color: radioGroup?.textColor || '',\n }\n})\n</script>\n"],"names":["useNamespace","useRadio","computed","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_normalizeStyle","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;AA+CA,IAAA,MAAM,KAAA,GAAQ,OAAA;AAKd,IAAA,MAAM,EAAA,GAAKA,mBAAa,OAAO,CAAA;AAC/B,IAAA,MAAM,EAAE,QAAA,EAAU,KAAA,EAAO,IAAA,EAAM,QAAA,EAAU,YAAY,UAAA,EAAY,WAAA,EAAY,GAC3EC,iBAAA,CAAS,KAAK,CAAA;AAEhB,IAAA,MAAM,WAAA,GAAcC,aAAwB,MAAM;AAChD,MAAA,OAAO;AAAA,QACL,eAAA,EAAA,CAAiB,yCAAY,IAAA,KAAQ,EAAA;AAAA,QACrC,WAAA,EAAA,CAAa,yCAAY,IAAA,KAAQ,EAAA;AAAA,QACjC,YAAW,UAAA,IAAA,IAAA,GAAA,MAAA,GAAA,UAAA,CAAY,IAAA,IAAO,CAAA,WAAA,EAAc,UAAA,CAAW,IAAI,CAAA,CAAA,GAAK,EAAA;AAAA,QAChE,KAAA,EAAA,CAAO,yCAAY,SAAA,KAAa;AAAA,OAClC;AAAA,IACF,CAAC,CAAA;;;8BA9DCC,sBAAA;AAAA,QA8BQ,OAAA;AAAA,QAAA;AAAA,UA7BL,OAAKC,kBAAA,CAAA;AAAA,YAAUC,SAAA,CAAA,EAAA,CAAA,CAAG,CAAA,CAAC,QAAA,CAAA;AAAA,YAAkBA,SAAA,CAAA,EAAA,CAAA,CAAG,EAAA,CAAE,QAAA,EAAWA,UAAA,UAAA,CAAA,KAAeA,SAAA,CAAA,WAAA,CAAW,CAAA;AAAA,YAASA,UAAA,EAAA,CAAA,CAAG,GAAE,U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