@element-plus/nightly 0.0.20250105 → 0.0.20250106
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.full.js +30 -13
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +30 -13
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/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/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +89 -36
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +36 -89
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +1 -1
- package/es/components/anchor/src/anchor-link.mjs +5 -81
- package/es/components/anchor/src/anchor-link.mjs.map +1 -1
- package/es/components/anchor/src/anchor-link2.mjs +81 -5
- package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.mjs +29 -6
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +6 -29
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +20 -42
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +42 -20
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/checkbox/index.mjs +4 -4
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group.mjs +29 -71
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +71 -29
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.mjs +59 -119
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +119 -59
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +10 -62
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +62 -10
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.d.ts +3 -0
- package/es/components/dialog/src/dialog-content.mjs +3 -0
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +6 -0
- package/es/components/dialog/src/dialog-content2.mjs +3 -3
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.d.ts +3 -0
- package/es/components/dialog/src/dialog.mjs +3 -0
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +6 -0
- package/es/components/dialog/src/dialog2.mjs +4 -1
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +34 -16
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +16 -34
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.d.ts +3 -0
- package/es/components/drawer/src/drawer.vue.d.ts +6 -0
- package/es/components/drawer/src/drawer2.mjs +3 -3
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/form/src/form2.mjs +3 -1
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +16 -16
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/link/index.mjs +2 -2
- package/es/components/link/src/link.mjs +24 -49
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link2.mjs +49 -24
- package/es/components/link/src/link2.mjs.map +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +142 -68
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +68 -142
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +35 -18
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +18 -35
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +16 -209
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +209 -16
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/trigger.mjs +127 -31
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +31 -127
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +44 -28
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +28 -44
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +64 -10
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +10 -64
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +167 -33
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +33 -167
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +25 -69
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +69 -25
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +72 -228
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +228 -72
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +9 -3
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +99 -27
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +27 -99
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/root.mjs +79 -17
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +17 -79
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +27 -210
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +210 -27
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.mjs +16 -16
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +88 -37
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +37 -88
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/anchor/index.js +1 -1
- package/lib/components/anchor/src/anchor-link.js +5 -81
- package/lib/components/anchor/src/anchor-link.js.map +1 -1
- package/lib/components/anchor/src/anchor-link2.js +81 -5
- package/lib/components/anchor/src/anchor-link2.js.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button-group.js +29 -6
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +6 -29
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +20 -42
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +42 -20
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/checkbox/index.js +4 -4
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox-group.js +30 -71
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +71 -30
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.js +60 -119
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +119 -60
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +9 -62
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +62 -9
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.d.ts +3 -0
- package/lib/components/dialog/src/dialog-content.js +3 -0
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +6 -0
- package/lib/components/dialog/src/dialog-content2.js +3 -3
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.d.ts +3 -0
- package/lib/components/dialog/src/dialog.js +3 -0
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +6 -0
- package/lib/components/dialog/src/dialog2.js +4 -1
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +34 -16
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +16 -34
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/drawer/src/drawer.d.ts +3 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +6 -0
- package/lib/components/drawer/src/drawer2.js +3 -3
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/form/src/form2.js +3 -1
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +16 -16
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/link/index.js +2 -2
- package/lib/components/link/src/link.js +25 -49
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link2.js +49 -25
- package/lib/components/link/src/link2.js.map +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +141 -69
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +69 -141
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/next.js +35 -18
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +18 -35
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +16 -209
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +209 -16
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/trigger.js +127 -32
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +32 -127
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +44 -30
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +30 -44
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +64 -10
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +10 -64
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +167 -34
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +34 -167
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +25 -69
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +69 -25
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +72 -227
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +227 -72
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +9 -3
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +99 -28
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +28 -99
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/root.js +79 -17
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +17 -79
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +27 -210
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +210 -27
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.js +16 -16
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
package/es/index.mjs
CHANGED
@@ -4,7 +4,7 @@ export { makeInstaller } from './make-installer.mjs';
|
|
4
4
|
export { default as dayjs } from 'dayjs';
|
5
5
|
export { affixEmits, affixProps } from './components/affix/src/affix.mjs';
|
6
6
|
export { ElAffix } from './components/affix/index.mjs';
|
7
|
-
export { alertEffects, alertEmits, alertProps } from './components/alert/src/
|
7
|
+
export { alertEffects, alertEmits, alertProps } from './components/alert/src/alert2.mjs';
|
8
8
|
export { ElAlert } from './components/alert/index.mjs';
|
9
9
|
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/autocomplete2.mjs';
|
10
10
|
export { ElAutocomplete } from './components/autocomplete/index.mjs';
|
@@ -14,7 +14,7 @@ export { backtopEmits, backtopProps } from './components/backtop/src/backtop.mjs
|
|
14
14
|
export { ElBacktop } from './components/backtop/index.mjs';
|
15
15
|
export { badgeProps } from './components/badge/src/badge.mjs';
|
16
16
|
export { ElBadge } from './components/badge/index.mjs';
|
17
|
-
export { breadcrumbProps } from './components/breadcrumb/src/
|
17
|
+
export { breadcrumbProps } from './components/breadcrumb/src/breadcrumb2.mjs';
|
18
18
|
export { breadcrumbItemProps } from './components/breadcrumb/src/breadcrumb-item.mjs';
|
19
19
|
export { breadcrumbKey } from './components/breadcrumb/src/constants.mjs';
|
20
20
|
export { ElBreadcrumb, ElBreadcrumbItem } from './components/breadcrumb/index.mjs';
|
@@ -23,7 +23,7 @@ export { buttonGroupContextKey } from './components/button/src/constants.mjs';
|
|
23
23
|
export { ElButton, ElButtonGroup } from './components/button/index.mjs';
|
24
24
|
export { calendarEmits, calendarProps } from './components/calendar/src/calendar.mjs';
|
25
25
|
export { ElCalendar } from './components/calendar/index.mjs';
|
26
|
-
export { cardProps } from './components/card/src/
|
26
|
+
export { cardProps } from './components/card/src/card.mjs';
|
27
27
|
export { ElCard } from './components/card/index.mjs';
|
28
28
|
export { carouselEmits, carouselProps } from './components/carousel/src/carousel.mjs';
|
29
29
|
export { carouselItemProps } from './components/carousel/src/carousel-item.mjs';
|
@@ -36,8 +36,8 @@ export { CommonProps, DefaultProps, useCascaderConfig } from './components/casca
|
|
36
36
|
export { ElCascaderPanel } from './components/cascader-panel/index.mjs';
|
37
37
|
export { checkTagEmits, checkTagProps } from './components/check-tag/src/check-tag.mjs';
|
38
38
|
export { ElCheckTag } from './components/check-tag/index.mjs';
|
39
|
-
export { checkboxGroupEmits, checkboxGroupProps } from './components/checkbox/src/checkbox-
|
40
|
-
export { checkboxEmits, checkboxProps } from './components/checkbox/src/
|
39
|
+
export { checkboxGroupEmits, checkboxGroupProps } from './components/checkbox/src/checkbox-group.mjs';
|
40
|
+
export { checkboxEmits, checkboxProps } from './components/checkbox/src/checkbox.mjs';
|
41
41
|
export { checkboxGroupContextKey } from './components/checkbox/src/constants.mjs';
|
42
42
|
export { ElCheckbox, ElCheckboxButton, ElCheckboxGroup } from './components/checkbox/index.mjs';
|
43
43
|
export { colProps } from './components/col/src/col2.mjs';
|
@@ -67,7 +67,7 @@ export { useDialog } from './components/dialog/src/use-dialog.mjs';
|
|
67
67
|
export { dialogEmits, dialogProps } from './components/dialog/src/dialog.mjs';
|
68
68
|
export { dialogInjectionKey } from './components/dialog/src/constants.mjs';
|
69
69
|
export { ElDialog } from './components/dialog/index.mjs';
|
70
|
-
export { dividerProps } from './components/divider/src/
|
70
|
+
export { dividerProps } from './components/divider/src/divider2.mjs';
|
71
71
|
export { ElDivider } from './components/divider/index.mjs';
|
72
72
|
export { drawerEmits, drawerProps } from './components/drawer/src/drawer.mjs';
|
73
73
|
export { ElDrawer } from './components/drawer/index.mjs';
|
@@ -94,7 +94,7 @@ export { inputNumberEmits, inputNumberProps } from './components/input-number/sr
|
|
94
94
|
export { ElInputNumber } from './components/input-number/index.mjs';
|
95
95
|
export { inputTagEmits, inputTagProps } from './components/input-tag/src/input-tag.mjs';
|
96
96
|
export { ElInputTag } from './components/input-tag/index.mjs';
|
97
|
-
export { linkEmits, linkProps } from './components/link/src/
|
97
|
+
export { linkEmits, linkProps } from './components/link/src/link.mjs';
|
98
98
|
export { ElLink } from './components/link/index.mjs';
|
99
99
|
export { menuEmits, menuProps } from './components/menu/src/menu.mjs';
|
100
100
|
export { menuItemEmits, menuItemProps } from './components/menu/src/menu-item.mjs';
|
@@ -111,12 +111,12 @@ export { ElPagination } from './components/pagination/index.mjs';
|
|
111
111
|
export { popconfirmEmits, popconfirmProps } from './components/popconfirm/src/popconfirm.mjs';
|
112
112
|
export { ElPopconfirm } from './components/popconfirm/index.mjs';
|
113
113
|
export { Effect, popperProps, roleTypes, usePopperProps } from './components/popper/src/popper.mjs';
|
114
|
-
export { popperTriggerProps, usePopperTriggerProps } from './components/popper/src/
|
114
|
+
export { popperTriggerProps, usePopperTriggerProps } from './components/popper/src/trigger2.mjs';
|
115
115
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './components/popper/src/content.mjs';
|
116
116
|
export { popperArrowProps, usePopperArrowProps } from './components/popper/src/arrow.mjs';
|
117
117
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './components/popper/src/constants.mjs';
|
118
118
|
export { default as ElPopperArrow } from './components/popper/src/arrow2.mjs';
|
119
|
-
export { default as ElPopperTrigger } from './components/popper/src/
|
119
|
+
export { default as ElPopperTrigger } from './components/popper/src/trigger.mjs';
|
120
120
|
export { default as ElPopperContent } from './components/popper/src/content2.mjs';
|
121
121
|
export { ElPopper } from './components/popper/index.mjs';
|
122
122
|
export { progressProps } from './components/progress/src/progress.mjs';
|
@@ -130,7 +130,7 @@ export { rateEmits, rateProps } from './components/rate/src/rate.mjs';
|
|
130
130
|
export { ElRate } from './components/rate/index.mjs';
|
131
131
|
export { IconComponentMap, IconMap, resultProps } from './components/result/src/result.mjs';
|
132
132
|
export { ElResult } from './components/result/index.mjs';
|
133
|
-
export { RowAlign, RowJustify, rowProps } from './components/row/src/
|
133
|
+
export { RowAlign, RowJustify, rowProps } from './components/row/src/row2.mjs';
|
134
134
|
export { rowContextKey } from './components/row/src/constants.mjs';
|
135
135
|
export { ElRow } from './components/row/index.mjs';
|
136
136
|
export { BAR_MAP, GAP, renderThumbStyle } from './components/scrollbar/src/util.mjs';
|
@@ -152,12 +152,12 @@ export { spaceProps } from './components/space/src/space.mjs';
|
|
152
152
|
export { spaceItemProps } from './components/space/src/item.mjs';
|
153
153
|
export { useSpace } from './components/space/src/use-space.mjs';
|
154
154
|
export { ElSpace } from './components/space/index.mjs';
|
155
|
-
export { statisticProps } from './components/statistic/src/
|
155
|
+
export { statisticProps } from './components/statistic/src/statistic.mjs';
|
156
156
|
export { ElStatistic } from './components/statistic/index.mjs';
|
157
157
|
export { stepProps } from './components/steps/src/item.mjs';
|
158
158
|
export { stepsEmits, stepsProps } from './components/steps/src/steps.mjs';
|
159
159
|
export { ElStep, ElSteps } from './components/steps/index.mjs';
|
160
|
-
export { switchEmits, switchProps } from './components/switch/src/
|
160
|
+
export { switchEmits, switchProps } from './components/switch/src/switch.mjs';
|
161
161
|
export { ElSwitch } from './components/switch/index.mjs';
|
162
162
|
export { ElTable, ElTableColumn } from './components/table/index.mjs';
|
163
163
|
export { Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, SortOrder as TableV2SortOrder } from './components/table-v2/src/constants.mjs';
|
@@ -173,7 +173,7 @@ export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
|
173
173
|
export { tabPaneProps } from './components/tabs/src/tab-pane2.mjs';
|
174
174
|
export { tabsRootContextKey } from './components/tabs/src/constants.mjs';
|
175
175
|
export { ElTabPane, ElTabs } from './components/tabs/index.mjs';
|
176
|
-
export { tagEmits, tagProps } from './components/tag/src/
|
176
|
+
export { tagEmits, tagProps } from './components/tag/src/tag2.mjs';
|
177
177
|
export { ElTag } from './components/tag/index.mjs';
|
178
178
|
export { textProps } from './components/text/src/text.mjs';
|
179
179
|
export { ElText } from './components/text/index.mjs';
|
@@ -208,7 +208,7 @@ export { default as DynamicSizeList } from './components/virtual-list/src/compon
|
|
208
208
|
export { default as FixedSizeGrid } from './components/virtual-list/src/components/fixed-size-grid.mjs';
|
209
209
|
export { default as DynamicSizeGrid } from './components/virtual-list/src/components/dynamic-size-grid.mjs';
|
210
210
|
export { virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps } from './components/virtual-list/src/props.mjs';
|
211
|
-
export { watermarkProps } from './components/watermark/src/
|
211
|
+
export { watermarkProps } from './components/watermark/src/watermark.mjs';
|
212
212
|
export { ElWatermark } from './components/watermark/index.mjs';
|
213
213
|
export { tourEmits, tourProps } from './components/tour/src/tour.mjs';
|
214
214
|
export { tourStepEmits, tourStepProps } from './components/tour/src/step.mjs';
|
@@ -216,7 +216,7 @@ export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } fr
|
|
216
216
|
export { ElTour, ElTourStep } from './components/tour/index.mjs';
|
217
217
|
export { anchorEmits, anchorProps } from './components/anchor/src/anchor.mjs';
|
218
218
|
export { ElAnchor, ElAnchorLink } from './components/anchor/index.mjs';
|
219
|
-
export { segmentedEmits, segmentedProps } from './components/segmented/src/
|
219
|
+
export { segmentedEmits, segmentedProps } from './components/segmented/src/segmented2.mjs';
|
220
220
|
export { ElSegmented } from './components/segmented/index.mjs';
|
221
221
|
export { mentionEmits, mentionProps } from './components/mention/src/mention.mjs';
|
222
222
|
export { ElMention } from './components/mention/index.mjs';
|
@@ -227,7 +227,7 @@ export { Loading as ElLoadingService } from './components/loading/src/service.mj
|
|
227
227
|
export { messageDefaults, messageEmits, messageProps, messageTypes } from './components/message/src/message.mjs';
|
228
228
|
export { ElMessage } from './components/message/index.mjs';
|
229
229
|
export { ElMessageBox } from './components/message-box/index.mjs';
|
230
|
-
export { notificationEmits, notificationProps, notificationTypes } from './components/notification/src/
|
230
|
+
export { notificationEmits, notificationProps, notificationTypes } from './components/notification/src/notification2.mjs';
|
231
231
|
export { ElNotification } from './components/notification/index.mjs';
|
232
232
|
export { popoverEmits, popoverProps } from './components/popover/src/popover.mjs';
|
233
233
|
export { ElPopover, ElPopoverDirective } from './components/popover/index.mjs';
|
package/es/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const version = "0.0.
|
1
|
+
export declare const version = "0.0.20250106";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20250106'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var alert$1 = require('./src/
|
6
|
-
var alert = require('./src/
|
5
|
+
var alert$1 = require('./src/alert.js');
|
6
|
+
var alert = require('./src/alert2.js');
|
7
7
|
var install = require('../../utils/vue/install.js');
|
8
8
|
|
9
9
|
const ElAlert = install.withInstall(alert$1["default"]);
|
@@ -2,46 +2,97 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
+
var vue = require('vue');
|
6
|
+
var index$1 = require('../../icon/index.js');
|
7
|
+
var alert = require('./alert2.js');
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
5
9
|
var icon = require('../../../utils/vue/icon.js');
|
6
|
-
var
|
7
|
-
var objects = require('../../../utils/objects.js');
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
8
11
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
12
|
+
const __default__ = vue.defineComponent({
|
13
|
+
name: "ElAlert"
|
14
|
+
});
|
15
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
16
|
+
...__default__,
|
17
|
+
props: alert.alertProps,
|
18
|
+
emits: alert.alertEmits,
|
19
|
+
setup(__props, { emit }) {
|
20
|
+
const props = __props;
|
21
|
+
const { Close } = icon.TypeComponents;
|
22
|
+
const slots = vue.useSlots();
|
23
|
+
const ns = index.useNamespace("alert");
|
24
|
+
const visible = vue.ref(true);
|
25
|
+
const iconComponent = vue.computed(() => icon.TypeComponentsMap[props.type]);
|
26
|
+
const hasDesc = vue.computed(() => !!(props.description || slots.default));
|
27
|
+
const close = (evt) => {
|
28
|
+
visible.value = false;
|
29
|
+
emit("close", evt);
|
30
|
+
};
|
31
|
+
return (_ctx, _cache) => {
|
32
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
33
|
+
name: vue.unref(ns).b("fade"),
|
34
|
+
persisted: ""
|
35
|
+
}, {
|
36
|
+
default: vue.withCtx(() => [
|
37
|
+
vue.withDirectives(vue.createElementVNode("div", {
|
38
|
+
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.type), vue.unref(ns).is("center", _ctx.center), vue.unref(ns).is(_ctx.effect)]),
|
39
|
+
role: "alert"
|
40
|
+
}, [
|
41
|
+
_ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
42
|
+
key: 0,
|
43
|
+
class: vue.normalizeClass([vue.unref(ns).e("icon"), { [vue.unref(ns).is("big")]: vue.unref(hasDesc) }])
|
44
|
+
}, {
|
45
|
+
default: vue.withCtx(() => [
|
46
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
47
|
+
]),
|
48
|
+
_: 1
|
49
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
50
|
+
vue.createElementVNode("div", {
|
51
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
52
|
+
}, [
|
53
|
+
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
54
|
+
key: 0,
|
55
|
+
class: vue.normalizeClass([vue.unref(ns).e("title"), { "with-description": vue.unref(hasDesc) }])
|
56
|
+
}, [
|
57
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
58
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
59
|
+
])
|
60
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
61
|
+
vue.unref(hasDesc) ? (vue.openBlock(), vue.createElementBlock("p", {
|
62
|
+
key: 1,
|
63
|
+
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
64
|
+
}, [
|
65
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
66
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
67
|
+
])
|
68
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
69
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
70
|
+
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
|
71
|
+
key: 0,
|
72
|
+
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
73
|
+
onClick: close
|
74
|
+
}, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
75
|
+
key: 1,
|
76
|
+
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
77
|
+
onClick: close
|
78
|
+
}, {
|
79
|
+
default: vue.withCtx(() => [
|
80
|
+
vue.createVNode(vue.unref(Close))
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
}, 8, ["class"]))
|
84
|
+
], 64)) : vue.createCommentVNode("v-if", true)
|
85
|
+
], 2)
|
86
|
+
], 2), [
|
87
|
+
[vue.vShow, visible.value]
|
88
|
+
])
|
89
|
+
]),
|
90
|
+
_: 3
|
91
|
+
}, 8, ["name"]);
|
92
|
+
};
|
38
93
|
}
|
39
94
|
});
|
40
|
-
|
41
|
-
close: (evt) => evt instanceof MouseEvent
|
42
|
-
};
|
95
|
+
var Alert = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "alert.vue"]]);
|
43
96
|
|
44
|
-
exports
|
45
|
-
exports.alertEmits = alertEmits;
|
46
|
-
exports.alertProps = alertProps;
|
97
|
+
exports["default"] = Alert;
|
47
98
|
//# sourceMappingURL=alert.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.
|
1
|
+
{"version":3,"file":"alert.js","sources":["../../../../../../packages/components/alert/src/alert.vue"],"sourcesContent":["<template>\n <transition :name=\"ns.b('fade')\">\n <div\n v-show=\"visible\"\n :class=\"[ns.b(), ns.m(type), ns.is('center', center), ns.is(effect)]\"\n role=\"alert\"\n >\n <el-icon\n v-if=\"showIcon && iconComponent\"\n :class=\"[ns.e('icon'), { [ns.is('big')]: hasDesc }]\"\n >\n <component :is=\"iconComponent\" />\n </el-icon>\n\n <div :class=\"ns.e('content')\">\n <span\n v-if=\"title || $slots.title\"\n :class=\"[ns.e('title'), { 'with-description': hasDesc }]\"\n >\n <slot name=\"title\">{{ title }}</slot>\n </span>\n <p v-if=\"hasDesc\" :class=\"ns.e('description')\">\n <slot>\n {{ description }}\n </slot>\n </p>\n <template v-if=\"closable\">\n <div\n v-if=\"closeText\"\n :class=\"[ns.e('close-btn'), ns.is('customed')]\"\n @click=\"close\"\n >\n {{ closeText }}\n </div>\n <el-icon v-else :class=\"ns.e('close-btn')\" @click=\"close\">\n <Close />\n </el-icon>\n </template>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, ref, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { alertEmits, alertProps } from './alert'\n\nconst { Close } = TypeComponents\n\ndefineOptions({\n name: 'ElAlert',\n})\n\nconst props = defineProps(alertProps)\nconst emit = defineEmits(alertEmits)\nconst slots = useSlots()\n\nconst ns = useNamespace('alert')\n\nconst visible = ref(true)\n\nconst iconComponent = computed(() => TypeComponentsMap[props.type])\n\nconst hasDesc = computed(() => !!(props.description || slots.default))\n\nconst close = (evt: MouseEvent) => {\n visible.value = false\n emit('close', evt)\n}\n</script>\n"],"names":["TypeComponents","useSlots","useNamespace","ref","computed","TypeComponentsMap"],"mappings":";;;;;;;;;;;uCAmDc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAJA,IAAM,MAAA,EAAE,OAAU,GAAAA,mBAAA,CAAA;AAQlB,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAM,MAAA,OAAA,GAAUC,QAAI,IAAI,CAAA,CAAA;AAExB,IAAA,MAAM,gBAAgBC,YAAS,CAAA,MAAMC,sBAAkB,CAAA,KAAA,CAAM,IAAI,CAAC,CAAA,CAAA;AAElE,IAAM,MAAA,OAAA,GAAUD,aAAS,MAAM,CAAC,EAAE,KAAM,CAAA,WAAA,IAAe,MAAM,OAAQ,CAAA,CAAA,CAAA;AAErE,IAAM,MAAA,KAAA,GAAQ,CAAC,GAAoB,KAAA;AACjC,MAAA,OAAA,CAAQ,KAAQ,GAAA,KAAA,CAAA;AAChB,MAAA,IAAA,CAAK,SAAS,GAAG,CAAA,CAAA;AAAA,KACnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,97 +2,46 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var vue = require('vue');
|
6
|
-
var index$1 = require('../../icon/index.js');
|
7
|
-
var alert = require('./alert.js');
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
9
5
|
var icon = require('../../../utils/vue/icon.js');
|
10
|
-
var
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
7
|
+
var objects = require('../../../utils/objects.js');
|
11
8
|
|
12
|
-
const
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
_ctx.showIcon && vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
42
|
-
key: 0,
|
43
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon"), { [vue.unref(ns).is("big")]: vue.unref(hasDesc) }])
|
44
|
-
}, {
|
45
|
-
default: vue.withCtx(() => [
|
46
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
47
|
-
]),
|
48
|
-
_: 1
|
49
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
50
|
-
vue.createElementVNode("div", {
|
51
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
52
|
-
}, [
|
53
|
-
_ctx.title || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("span", {
|
54
|
-
key: 0,
|
55
|
-
class: vue.normalizeClass([vue.unref(ns).e("title"), { "with-description": vue.unref(hasDesc) }])
|
56
|
-
}, [
|
57
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
58
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
59
|
-
])
|
60
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
61
|
-
vue.unref(hasDesc) ? (vue.openBlock(), vue.createElementBlock("p", {
|
62
|
-
key: 1,
|
63
|
-
class: vue.normalizeClass(vue.unref(ns).e("description"))
|
64
|
-
}, [
|
65
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
66
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.description), 1)
|
67
|
-
])
|
68
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
69
|
-
_ctx.closable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
70
|
-
_ctx.closeText ? (vue.openBlock(), vue.createElementBlock("div", {
|
71
|
-
key: 0,
|
72
|
-
class: vue.normalizeClass([vue.unref(ns).e("close-btn"), vue.unref(ns).is("customed")]),
|
73
|
-
onClick: close
|
74
|
-
}, vue.toDisplayString(_ctx.closeText), 3)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
75
|
-
key: 1,
|
76
|
-
class: vue.normalizeClass(vue.unref(ns).e("close-btn")),
|
77
|
-
onClick: close
|
78
|
-
}, {
|
79
|
-
default: vue.withCtx(() => [
|
80
|
-
vue.createVNode(vue.unref(Close))
|
81
|
-
]),
|
82
|
-
_: 1
|
83
|
-
}, 8, ["class"]))
|
84
|
-
], 64)) : vue.createCommentVNode("v-if", true)
|
85
|
-
], 2)
|
86
|
-
], 2), [
|
87
|
-
[vue.vShow, visible.value]
|
88
|
-
])
|
89
|
-
]),
|
90
|
-
_: 3
|
91
|
-
}, 8, ["name"]);
|
92
|
-
};
|
9
|
+
const alertEffects = ["light", "dark"];
|
10
|
+
const alertProps = runtime.buildProps({
|
11
|
+
title: {
|
12
|
+
type: String,
|
13
|
+
default: ""
|
14
|
+
},
|
15
|
+
description: {
|
16
|
+
type: String,
|
17
|
+
default: ""
|
18
|
+
},
|
19
|
+
type: {
|
20
|
+
type: String,
|
21
|
+
values: objects.keysOf(icon.TypeComponentsMap),
|
22
|
+
default: "info"
|
23
|
+
},
|
24
|
+
closable: {
|
25
|
+
type: Boolean,
|
26
|
+
default: true
|
27
|
+
},
|
28
|
+
closeText: {
|
29
|
+
type: String,
|
30
|
+
default: ""
|
31
|
+
},
|
32
|
+
showIcon: Boolean,
|
33
|
+
center: Boolean,
|
34
|
+
effect: {
|
35
|
+
type: String,
|
36
|
+
values: alertEffects,
|
37
|
+
default: "light"
|
93
38
|
}
|
94
39
|
});
|
95
|
-
|
40
|
+
const alertEmits = {
|
41
|
+
close: (evt) => evt instanceof MouseEvent
|
42
|
+
};
|
96
43
|
|
97
|
-
exports
|
44
|
+
exports.alertEffects = alertEffects;
|
45
|
+
exports.alertEmits = alertEmits;
|
46
|
+
exports.alertProps = alertProps;
|
98
47
|
//# sourceMappingURL=alert2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.
|
1
|
+
{"version":3,"file":"alert2.js","sources":["../../../../../../packages/components/alert/src/alert.ts"],"sourcesContent":["import { TypeComponentsMap, buildProps, keysOf } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const alertEffects = ['light', 'dark'] as const\n\nexport const alertProps = buildProps({\n /**\n * @description alert title.\n */\n title: {\n type: String,\n default: '',\n },\n description: {\n type: String,\n default: '',\n },\n /**\n * @description alert type.\n */\n type: {\n type: String,\n values: keysOf(TypeComponentsMap),\n default: 'info',\n },\n /**\n * @description whether alert can be dismissed.\n */\n closable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description text for replacing x button\n */\n closeText: {\n type: String,\n default: '',\n },\n /**\n * @description whether show icon\n */\n showIcon: Boolean,\n /**\n * @description should content be placed in center.\n */\n center: Boolean,\n effect: {\n type: String,\n values: alertEffects,\n default: 'light',\n },\n} as const)\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\n\nexport const alertEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type AlertEmits = typeof alertEmits\n"],"names":["buildProps","keysOf","TypeComponentsMap"],"mappings":";;;;;;;;AACY,MAAC,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE;AAClC,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,cAAM,CAACC,sBAAiB,CAAC;AACrC,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,YAAY;AACxB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,UAAU,GAAG;AAC1B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var anchor$1 = require('./src/anchor2.js');
|
6
|
-
var anchorLink = require('./src/anchor-
|
6
|
+
var anchorLink = require('./src/anchor-link2.js');
|
7
7
|
var anchor = require('./src/anchor.js');
|
8
8
|
var install = require('../../utils/vue/install.js');
|
9
9
|
|
@@ -2,88 +2,12 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var anchorLink = require('./anchor-link2.js');
|
7
|
-
var constants = require('./constants.js');
|
8
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
9
6
|
|
10
|
-
const
|
11
|
-
|
7
|
+
const anchorLinkProps = runtime.buildProps({
|
8
|
+
title: String,
|
9
|
+
href: String
|
12
10
|
});
|
13
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
14
|
-
...__default__,
|
15
|
-
props: anchorLink.anchorLinkProps,
|
16
|
-
setup(__props) {
|
17
|
-
const props = __props;
|
18
|
-
const linkRef = vue.ref(null);
|
19
|
-
const {
|
20
|
-
ns,
|
21
|
-
direction,
|
22
|
-
currentAnchor,
|
23
|
-
addLink,
|
24
|
-
removeLink,
|
25
|
-
handleClick: contextHandleClick
|
26
|
-
} = vue.inject(constants.anchorKey);
|
27
|
-
const cls = vue.computed(() => [
|
28
|
-
ns.e("link"),
|
29
|
-
ns.is("active", currentAnchor.value === props.href)
|
30
|
-
]);
|
31
|
-
const handleClick = (e) => {
|
32
|
-
contextHandleClick(e, props.href);
|
33
|
-
};
|
34
|
-
vue.watch(() => props.href, (val, oldVal) => {
|
35
|
-
vue.nextTick(() => {
|
36
|
-
if (oldVal)
|
37
|
-
removeLink(oldVal);
|
38
|
-
if (val) {
|
39
|
-
addLink({
|
40
|
-
href: val,
|
41
|
-
el: linkRef.value
|
42
|
-
});
|
43
|
-
}
|
44
|
-
});
|
45
|
-
});
|
46
|
-
vue.onMounted(() => {
|
47
|
-
const { href } = props;
|
48
|
-
if (href) {
|
49
|
-
addLink({
|
50
|
-
href,
|
51
|
-
el: linkRef.value
|
52
|
-
});
|
53
|
-
}
|
54
|
-
});
|
55
|
-
vue.onBeforeUnmount(() => {
|
56
|
-
const { href } = props;
|
57
|
-
if (href) {
|
58
|
-
removeLink(href);
|
59
|
-
}
|
60
|
-
});
|
61
|
-
return (_ctx, _cache) => {
|
62
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
63
|
-
class: vue.normalizeClass(vue.unref(ns).e("item"))
|
64
|
-
}, [
|
65
|
-
vue.createElementVNode("a", {
|
66
|
-
ref_key: "linkRef",
|
67
|
-
ref: linkRef,
|
68
|
-
class: vue.normalizeClass(vue.unref(cls)),
|
69
|
-
href: _ctx.href,
|
70
|
-
onClick: handleClick
|
71
|
-
}, [
|
72
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
73
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
74
|
-
])
|
75
|
-
], 10, ["href"]),
|
76
|
-
_ctx.$slots["sub-link"] && vue.unref(direction) === "vertical" ? (vue.openBlock(), vue.createElementBlock("div", {
|
77
|
-
key: 0,
|
78
|
-
class: vue.normalizeClass(vue.unref(ns).e("list"))
|
79
|
-
}, [
|
80
|
-
vue.renderSlot(_ctx.$slots, "sub-link")
|
81
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
82
|
-
], 2);
|
83
|
-
};
|
84
|
-
}
|
85
|
-
});
|
86
|
-
var AnchorLink = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "anchor-link.vue"]]);
|
87
11
|
|
88
|
-
exports
|
12
|
+
exports.anchorLinkProps = anchorLinkProps;
|
89
13
|
//# sourceMappingURL=anchor-link.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"anchor-link.js","sources":["../../../../../../packages/components/anchor/src/anchor-link.
|
1
|
+
{"version":3,"file":"anchor-link.js","sources":["../../../../../../packages/components/anchor/src/anchor-link.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const anchorLinkProps = buildProps({\n /**\n * @description the text content of the anchor link\n */\n title: String,\n /**\n * @description The address of the anchor link\n */\n href: String,\n})\n\nexport type AnchorLinkProps = ExtractPropTypes<typeof anchorLinkProps>\n"],"names":["buildProps"],"mappings":";;;;;;AACY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,MAAM;AACd,CAAC;;;;"}
|