@element-plus/nightly 0.0.20251223 → 0.0.20251224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +20 -7
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +20 -7
- 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/cascader/index.mjs +2 -2
- package/es/components/cascader/src/cascader.mjs +822 -103
- package/es/components/cascader/src/cascader.mjs.map +1 -1
- package/es/components/cascader/src/cascader2.mjs +103 -822
- package/es/components/cascader/src/cascader2.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.mjs +3 -2
- package/es/components/cascader-panel/src/menu.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +65 -42
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +42 -65
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +17 -118
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +118 -17
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.d.ts +2 -0
- package/es/components/color-picker/src/color-picker.mjs +6 -1
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +5 -0
- package/es/components/color-picker/src/color-picker2.mjs +5 -3
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +94 -6
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +6 -94
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +7 -39
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +39 -7
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +21 -21
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +107 -190
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +190 -107
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +72 -174
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +174 -72
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/arrow.mjs +7 -38
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +38 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +29 -96
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +96 -29
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +244 -56
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +56 -244
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +44 -209
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +209 -44
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/index.mjs +3 -3
- package/es/components/select/src/option.mjs +97 -13
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/option2.mjs +13 -97
- package/es/components/select/src/option2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +152 -727
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +727 -152
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select/src/useOption.mjs +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +17 -27
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +27 -17
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +17 -67
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +67 -17
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/src/button.mjs +18 -104
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +104 -18
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +74 -311
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +311 -74
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +3 -3
- package/es/components/tabs/src/tab-bar.mjs +102 -10
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +10 -102
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tabs/src/tab-pane.mjs +88 -15
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +15 -88
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +111 -32
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +32 -111
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs +2 -2
- package/es/components/tooltip/src/trigger.mjs +15 -104
- package/es/components/tooltip/src/trigger.mjs.map +1 -1
- package/es/components/tooltip/src/trigger2.mjs +104 -15
- package/es/components/tooltip/src/trigger2.mjs.map +1 -1
- package/es/components/tree-select/src/tree-select.mjs +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +138 -101
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +101 -138
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +247 -26
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +26 -247
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +5 -0
- package/es/hooks/use-lockscreen/index.mjs.map +1 -1
- package/es/index.mjs +21 -21
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/cascader/index.js +2 -2
- package/lib/components/cascader/src/cascader.js +821 -103
- package/lib/components/cascader/src/cascader.js.map +1 -1
- package/lib/components/cascader/src/cascader2.js +103 -821
- package/lib/components/cascader/src/cascader2.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.js +3 -2
- package/lib/components/cascader-panel/src/menu.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +65 -42
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +42 -65
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +17 -118
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +118 -17
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.d.ts +2 -0
- package/lib/components/color-picker/src/color-picker.js +6 -1
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +5 -0
- package/lib/components/color-picker/src/color-picker2.js +4 -2
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +94 -6
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +6 -94
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +7 -39
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +39 -7
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +21 -21
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.js +111 -189
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +189 -111
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +73 -173
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +173 -73
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/arrow.js +8 -38
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +38 -8
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +31 -96
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +96 -31
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +244 -57
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +57 -244
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +45 -208
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +208 -45
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/index.js +3 -3
- package/lib/components/select/src/option.js +97 -14
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/option2.js +14 -97
- package/lib/components/select/src/option2.js.map +1 -1
- package/lib/components/select/src/select.js +152 -726
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +726 -152
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select/src/useOption.js +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +17 -27
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +27 -17
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +17 -67
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +67 -17
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/src/button.js +19 -104
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +104 -19
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +74 -310
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +310 -74
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.js +3 -3
- package/lib/components/tabs/src/tab-bar.js +102 -10
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +10 -102
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tabs/src/tab-pane.js +88 -15
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +15 -88
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +111 -32
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +32 -111
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js +2 -2
- package/lib/components/tooltip/src/trigger.js +15 -104
- package/lib/components/tooltip/src/trigger.js.map +1 -1
- package/lib/components/tooltip/src/trigger2.js +104 -15
- package/lib/components/tooltip/src/trigger2.js.map +1 -1
- package/lib/components/tree-select/src/tree-select.js +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +138 -104
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +104 -138
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +247 -26
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +26 -247
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +5 -0
- package/lib/hooks/use-lockscreen/index.js.map +1 -1
- package/lib/index.js +21 -21
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification2.mjs","sources":["../../../../../../packages/components/notification/src/notification.
|
|
1
|
+
{"version":3,"file":"notification2.mjs","sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"clearTimer\"\n @mouseleave=\"startTimer\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else v-html=\"message\" />\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <component :is=\"closeIcon\" />\n </el-icon>\n </div>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref } from 'vue'\nimport { useEventListener, useTimeoutFn } from '@vueuse/core'\nimport { TypeComponentsMap, getEventCode } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useGlobalComponentSettings } from '@element-plus/components/config-provider'\nimport { notificationEmits, notificationProps } from './notification'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElNotification',\n})\n\nconst props = defineProps(notificationProps)\ndefineEmits(notificationEmits)\n\nconst { ns, zIndex } = useGlobalComponentSettings('notification')\nconst { nextZIndex, currentZIndex } = zIndex\n\nconst visible = ref(false)\nlet timer: (() => void) | undefined = undefined\n\nconst typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n})\n\nconst iconComponent = computed(() => {\n if (!props.type) return props.icon\n return TypeComponentsMap[props.type] || props.icon\n})\n\nconst horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n)\n\nconst verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n)\n\nconst positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: props.zIndex ?? currentZIndex.value,\n }\n})\n\nfunction startTimer() {\n if (props.duration > 0) {\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, props.duration))\n }\n}\n\nfunction clearTimer() {\n timer?.()\n}\n\nfunction close() {\n visible.value = false\n}\n\nfunction onKeydown(event: KeyboardEvent) {\n const code = getEventCode(event)\n\n switch (code) {\n case EVENT_CODE.delete:\n case EVENT_CODE.backspace:\n clearTimer() // press delete/backspace clear timer\n break\n case EVENT_CODE.esc:\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n break\n default: // resume timer\n startTimer()\n break\n }\n}\n\n// lifecycle\nonMounted(() => {\n startTimer()\n nextZIndex()\n visible.value = true\n})\n\nuseEventListener(document, 'keydown', onKeydown)\n\ndefineExpose({\n visible,\n /** @description close notification */\n close,\n})\n</script>\n"],"names":["_createBlock","_Transition","_unref","onClose","$emit","_withDirectives","_createElementVNode","id","_normalizeClass","customClass","_normalizeStyle","_openBlock","_resolveDynamicComponent","_toDisplayString","title","_renderSlot","dangerouslyUseHTMLString","_createElementBlock","message","_Fragment","_createCommentVNode","showClose","_withModifiers","closeIcon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,EAAE,EAAA,EAAI,MAAO,EAAA,GAAI,2BAA2B,cAAc,CAAA,CAAA;AAC1D,IAAA,MAAA,EAAE,UAAY,EAAA,aAAA,EAAkB,GAAA,MAAA,CAAA;AAEhC,IAAA,MAAA,OAAA,GAAU,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FG,KAAAA,SAAAA,IAAAA,SAAAA,IAAfrB,WAEU,CAAAE,KAAA,CAAA,MAAA,CAAA,EAAA;AAAA,kBAAA,GAAA,EAAA,CAAA;AAAA,kBAFiB,OAAKM,cAAE,CAAAN,KAAA,IAAG,CAAA,CAAA,CAAC,UAAA,CAAA,CAAA;AAAA,kBAAe,OAAK,EAAAoB,aAAA,CAAO,KAAK,EAAA,CAAA,MAAA,CAAA,CAAA;AAAA,iBAAA,EAAA;AAAA,mCACpE,MAA6B;AAAA,qBAA7BX,WAAA,EAAAX,WAAA,CAA6BY,uBAAbW,CAAAA,IAAAA,CAAS,SAAA,CAAA,CAAA;AAAA,mBAAA,CAAA;AAAA;;;;;;kBA1BrB,EAAA,OAAA,CAAO,KAAA,CAAA;AAAA,WAAA,CAAA;AAAA;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, createVNode, render } from 'vue';
|
|
2
|
-
import NotificationConstructor from './
|
|
3
|
-
import { notificationTypes } from './
|
|
2
|
+
import NotificationConstructor from './notification2.mjs';
|
|
3
|
+
import { notificationTypes } from './notification.mjs';
|
|
4
4
|
import { isClient } from '@vueuse/core';
|
|
5
5
|
import { isString, isFunction } from '@vue/shared';
|
|
6
6
|
import { isElement, isUndefined } from '../../../utils/types.mjs';
|
|
@@ -3,7 +3,7 @@ import { buttonTypes } from '../../button/src/button.mjs';
|
|
|
3
3
|
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
4
4
|
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
5
5
|
import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
|
6
|
-
import { useTooltipTriggerProps } from '../../tooltip/src/
|
|
6
|
+
import { useTooltipTriggerProps } from '../../tooltip/src/trigger.mjs';
|
|
7
7
|
|
|
8
8
|
const popconfirmProps = buildProps({
|
|
9
9
|
title: String,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dropdownProps } from '../../dropdown/src/dropdown.mjs';
|
|
2
2
|
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
3
|
-
import { useTooltipTriggerProps } from '../../tooltip/src/
|
|
3
|
+
import { useTooltipTriggerProps } from '../../tooltip/src/trigger.mjs';
|
|
4
4
|
import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
|
5
5
|
import { isBoolean } from '../../../utils/types.mjs';
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Popper from './src/popper2.mjs';
|
|
2
|
-
export { default as ElPopperArrow } from './src/
|
|
2
|
+
export { default as ElPopperArrow } from './src/arrow2.mjs';
|
|
3
3
|
export { default as ElPopperTrigger } from './src/trigger2.mjs';
|
|
4
4
|
export { default as ElPopperContent } from './src/content2.mjs';
|
|
5
5
|
export { Effect, popperProps, roleTypes, usePopperProps } from './src/popper.mjs';
|
|
6
6
|
export { popperTriggerProps, usePopperTriggerProps } from './src/trigger.mjs';
|
|
7
7
|
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps } from './src/content.mjs';
|
|
8
|
-
export { popperArrowProps, usePopperArrowProps } from './src/
|
|
8
|
+
export { popperArrowProps, usePopperArrowProps } from './src/arrow.mjs';
|
|
9
9
|
export { POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY } from './src/constants.mjs';
|
|
10
10
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
11
11
|
|
|
@@ -1,43 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { POPPER_CONTENT_INJECTION_KEY } from './constants.mjs';
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
5
2
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
__name: "arrow",
|
|
12
|
-
setup(__props, { expose: __expose }) {
|
|
13
|
-
const ns = useNamespace("popper");
|
|
14
|
-
const { arrowRef, arrowStyle } = inject(
|
|
15
|
-
POPPER_CONTENT_INJECTION_KEY,
|
|
16
|
-
void 0
|
|
17
|
-
);
|
|
18
|
-
onBeforeUnmount(() => {
|
|
19
|
-
arrowRef.value = void 0;
|
|
20
|
-
});
|
|
21
|
-
__expose({
|
|
22
|
-
arrowRef
|
|
23
|
-
});
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createElementBlock(
|
|
26
|
-
"span",
|
|
27
|
-
{
|
|
28
|
-
ref_key: "arrowRef",
|
|
29
|
-
ref: arrowRef,
|
|
30
|
-
class: normalizeClass(unref(ns).e("arrow")),
|
|
31
|
-
style: normalizeStyle(unref(arrowStyle)),
|
|
32
|
-
"data-popper-arrow": ""
|
|
33
|
-
},
|
|
34
|
-
null,
|
|
35
|
-
6
|
|
36
|
-
);
|
|
37
|
-
};
|
|
3
|
+
const popperArrowProps = buildProps({
|
|
4
|
+
arrowOffset: {
|
|
5
|
+
type: Number,
|
|
6
|
+
default: 5
|
|
38
7
|
}
|
|
39
8
|
});
|
|
40
|
-
|
|
9
|
+
const usePopperArrowProps = popperArrowProps;
|
|
41
10
|
|
|
42
|
-
export {
|
|
11
|
+
export { popperArrowProps, usePopperArrowProps };
|
|
43
12
|
//# sourceMappingURL=arrow.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow.mjs","sources":["../../../../../../packages/components/popper/src/arrow.
|
|
1
|
+
{"version":3,"file":"arrow.mjs","sources":["../../../../../../packages/components/popper/src/arrow.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Arrow from './arrow.vue'\n\nexport const popperArrowProps = buildProps({\n arrowOffset: {\n type: Number,\n default: 5,\n },\n} as const)\nexport type PopperArrowProps = ExtractPropTypes<typeof popperArrowProps>\nexport type PopperArrowPropsPublic = ExtractPublicPropTypes<\n typeof popperArrowProps\n>\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":[],"mappings":";;AAKO,MAAM,mBAAmB,UAAW,CAAA;AAAA,EACzC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AACF,CAAU,EAAA;AASH,MAAM,mBAAsB,GAAA;;;;"}
|
|
@@ -1,12 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, inject, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle } from 'vue';
|
|
2
|
+
import { POPPER_CONTENT_INJECTION_KEY } from './constants.mjs';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
2
5
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
const _sfc_main = defineComponent({
|
|
7
|
+
...{
|
|
8
|
+
name: "ElPopperArrow",
|
|
9
|
+
inheritAttrs: false
|
|
10
|
+
},
|
|
11
|
+
__name: "arrow",
|
|
12
|
+
setup(__props, { expose: __expose }) {
|
|
13
|
+
const ns = useNamespace("popper");
|
|
14
|
+
const { arrowRef, arrowStyle } = inject(
|
|
15
|
+
POPPER_CONTENT_INJECTION_KEY,
|
|
16
|
+
void 0
|
|
17
|
+
);
|
|
18
|
+
onBeforeUnmount(() => {
|
|
19
|
+
arrowRef.value = void 0;
|
|
20
|
+
});
|
|
21
|
+
__expose({
|
|
22
|
+
arrowRef
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock(
|
|
26
|
+
"span",
|
|
27
|
+
{
|
|
28
|
+
ref_key: "arrowRef",
|
|
29
|
+
ref: arrowRef,
|
|
30
|
+
class: normalizeClass(unref(ns).e("arrow")),
|
|
31
|
+
style: normalizeStyle(unref(arrowStyle)),
|
|
32
|
+
"data-popper-arrow": ""
|
|
33
|
+
},
|
|
34
|
+
null,
|
|
35
|
+
6
|
|
36
|
+
);
|
|
37
|
+
};
|
|
7
38
|
}
|
|
8
39
|
});
|
|
9
|
-
|
|
40
|
+
var ElPopperArrow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
|
|
10
41
|
|
|
11
|
-
export {
|
|
42
|
+
export { ElPopperArrow as default };
|
|
12
43
|
//# sourceMappingURL=arrow2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow2.mjs","sources":["../../../../../../packages/components/popper/src/arrow.
|
|
1
|
+
{"version":3,"file":"arrow2.mjs","sources":["../../../../../../packages/components/popper/src/arrow.vue"],"sourcesContent":["<template>\n <span\n ref=\"arrowRef\"\n :class=\"ns.e('arrow')\"\n :style=\"arrowStyle\"\n data-popper-arrow\n />\n</template>\n\n<script lang=\"ts\" setup>\nimport { inject, onBeforeUnmount } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { POPPER_CONTENT_INJECTION_KEY } from './constants'\n\ndefineOptions({\n name: 'ElPopperArrow',\n inheritAttrs: false,\n})\n\nconst ns = useNamespace('popper')\nconst { arrowRef, arrowStyle } = inject(\n POPPER_CONTENT_INJECTION_KEY,\n undefined\n)!\n\nonBeforeUnmount(() => {\n arrowRef.value = undefined\n})\n\ndefineExpose({\n /**\n * @description Arrow element\n */\n arrowRef,\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_normalizeStyle"],"mappings":";;;;;;;;;;;;AAmBM,IAAA,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAC1B,IAAA,MAAA,EAAE,QAAU,EAAA,UAAA,EAAe,GAAA,MAAA;AAAA,MAC/B,4BAAA;AAAA,MACA,KAAA,CAAA;AAAA,KACF,CAAA;AAEA,IAAA,eAAA,CAAgB,MAAM;AACpB,MAAA,QAAA,CAAS,KAAQ,GAAA,KAAA,CAAA,CAAA;AAAA,KAClB,CAAA,CAAA;AAEY,IAAA,QAAA,CAAA;AAAA,MAIX,QAAA;AAAA,KACD,CAAA,CAAA;;AAjCC,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAKE,MAAA;AAAA,QAAA;AAAA,UAJI,OAAA,EAAA,UAAA;AAAA,UAAJ,GAAI,EAAA,QAAA;AAAA,UACH,OAAKC,cAAE,CAAAC,KAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,OAAA,CAAA,CAAA;AAAA,UACX,KAAK,EAAAC,cAAA,CAAED,KAAU,CAAA,UAAA,CAAA,CAAA;AAAA,UAClB,mBAAA,EAAA,EAAA;AAAA,SAAA;AAAA;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { placements } from '@popperjs/core';
|
|
2
|
-
import { popperArrowProps } from './
|
|
2
|
+
import { popperArrowProps } from './arrow.mjs';
|
|
3
3
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
4
4
|
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Result from './src/
|
|
2
|
-
export { IconComponentMap, IconMap, resultProps } from './src/
|
|
1
|
+
import Result from './src/result2.mjs';
|
|
2
|
+
export { IconComponentMap, IconMap, resultProps } from './src/result.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElResult = withInstall(Result);
|
|
@@ -1,102 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { InfoFilled, CircleCheckFilled, WarningFilled, CircleCloseFilled } from '@element-plus/icons-vue';
|
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
5
3
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const IconMap = {
|
|
5
|
+
primary: "icon-primary",
|
|
6
|
+
success: "icon-success",
|
|
7
|
+
warning: "icon-warning",
|
|
8
|
+
error: "icon-error",
|
|
9
|
+
info: "icon-info"
|
|
10
|
+
};
|
|
11
|
+
const IconComponentMap = {
|
|
12
|
+
[IconMap.primary]: InfoFilled,
|
|
13
|
+
[IconMap.success]: CircleCheckFilled,
|
|
14
|
+
[IconMap.warning]: WarningFilled,
|
|
15
|
+
[IconMap.error]: CircleCloseFilled,
|
|
16
|
+
[IconMap.info]: InfoFilled
|
|
17
|
+
};
|
|
18
|
+
const resultProps = buildProps({
|
|
19
|
+
title: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
9
22
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
|
|
19
|
-
return {
|
|
20
|
-
class: iconClass,
|
|
21
|
-
component: iconComponent
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return openBlock(), createElementBlock(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
class: normalizeClass(unref(ns).b())
|
|
29
|
-
},
|
|
30
|
-
[
|
|
31
|
-
createElementVNode(
|
|
32
|
-
"div",
|
|
33
|
-
{
|
|
34
|
-
class: normalizeClass(unref(ns).e("icon"))
|
|
35
|
-
},
|
|
36
|
-
[
|
|
37
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
38
|
-
resultIcon.value.component ? (openBlock(), createBlock(resolveDynamicComponent(resultIcon.value.component), {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: normalizeClass(resultIcon.value.class)
|
|
41
|
-
}, null, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
42
|
-
])
|
|
43
|
-
],
|
|
44
|
-
2
|
|
45
|
-
),
|
|
46
|
-
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock(
|
|
47
|
-
"div",
|
|
48
|
-
{
|
|
49
|
-
key: 0,
|
|
50
|
-
class: normalizeClass(unref(ns).e("title"))
|
|
51
|
-
},
|
|
52
|
-
[
|
|
53
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
54
|
-
createElementVNode(
|
|
55
|
-
"p",
|
|
56
|
-
null,
|
|
57
|
-
toDisplayString(_ctx.title),
|
|
58
|
-
1
|
|
59
|
-
)
|
|
60
|
-
])
|
|
61
|
-
],
|
|
62
|
-
2
|
|
63
|
-
)) : createCommentVNode("v-if", true),
|
|
64
|
-
_ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock(
|
|
65
|
-
"div",
|
|
66
|
-
{
|
|
67
|
-
key: 1,
|
|
68
|
-
class: normalizeClass(unref(ns).e("subtitle"))
|
|
69
|
-
},
|
|
70
|
-
[
|
|
71
|
-
renderSlot(_ctx.$slots, "sub-title", {}, () => [
|
|
72
|
-
createElementVNode(
|
|
73
|
-
"p",
|
|
74
|
-
null,
|
|
75
|
-
toDisplayString(_ctx.subTitle),
|
|
76
|
-
1
|
|
77
|
-
)
|
|
78
|
-
])
|
|
79
|
-
],
|
|
80
|
-
2
|
|
81
|
-
)) : createCommentVNode("v-if", true),
|
|
82
|
-
_ctx.$slots.extra ? (openBlock(), createElementBlock(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
key: 2,
|
|
86
|
-
class: normalizeClass(unref(ns).e("extra"))
|
|
87
|
-
},
|
|
88
|
-
[
|
|
89
|
-
renderSlot(_ctx.$slots, "extra")
|
|
90
|
-
],
|
|
91
|
-
2
|
|
92
|
-
)) : createCommentVNode("v-if", true)
|
|
93
|
-
],
|
|
94
|
-
2
|
|
95
|
-
);
|
|
96
|
-
};
|
|
23
|
+
subTitle: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
icon: {
|
|
28
|
+
type: String,
|
|
29
|
+
values: ["primary", "success", "warning", "info", "error"],
|
|
30
|
+
default: "info"
|
|
97
31
|
}
|
|
98
32
|
});
|
|
99
|
-
var Result = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);
|
|
100
33
|
|
|
101
|
-
export {
|
|
34
|
+
export { IconComponentMap, IconMap, resultProps };
|
|
102
35
|
//# sourceMappingURL=result.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.
|
|
1
|
+
{"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\n\nimport type { Component, ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n primary: 'icon-primary',\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n (typeof IconMap)[keyof typeof IconMap],\n Component\n> = {\n [IconMap.primary]: InfoFilled,\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\nexport type ResultPropsPublic = ExtractPublicPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result> & unknown\n"],"names":[],"mappings":";;;AAWO,MAAM,OAAU,GAAA;AAAA,EACrB,OAAS,EAAA,cAAA;AAAA,EACT,OAAS,EAAA,cAAA;AAAA,EACT,OAAS,EAAA,cAAA;AAAA,EACT,KAAO,EAAA,YAAA;AAAA,EACP,IAAM,EAAA,WAAA;AACR,EAAA;AAEO,MAAM,gBAGT,GAAA;AAAA,EACF,CAAC,QAAQ,OAAU,GAAA,UAAA;AAAA,EACnB,CAAC,QAAQ,OAAU,GAAA,iBAAA;AAAA,EACnB,CAAC,QAAQ,OAAU,GAAA,aAAA;AAAA,EACnB,CAAC,QAAQ,KAAQ,GAAA,iBAAA;AAAA,EACjB,CAAC,QAAQ,IAAO,GAAA,UAAA;AAClB,EAAA;AAEO,MAAM,cAAc,UAAW,CAAA;AAAA,EAIpC,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAQ,CAAC,SAAA,EAAW,SAAW,EAAA,SAAA,EAAW,QAAQ,OAAO,CAAA;AAAA,IACzD,OAAS,EAAA,MAAA;AAAA,GACX;AACF,CAAU;;;;"}
|
|
@@ -1,35 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { resultProps, IconMap, IconComponentMap } from './result.mjs';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
3
5
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
warning: "icon-warning",
|
|
8
|
-
error: "icon-error",
|
|
9
|
-
info: "icon-info"
|
|
10
|
-
};
|
|
11
|
-
const IconComponentMap = {
|
|
12
|
-
[IconMap.primary]: InfoFilled,
|
|
13
|
-
[IconMap.success]: CircleCheckFilled,
|
|
14
|
-
[IconMap.warning]: WarningFilled,
|
|
15
|
-
[IconMap.error]: CircleCloseFilled,
|
|
16
|
-
[IconMap.info]: InfoFilled
|
|
17
|
-
};
|
|
18
|
-
const resultProps = buildProps({
|
|
19
|
-
title: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
6
|
+
const _sfc_main = defineComponent({
|
|
7
|
+
...{
|
|
8
|
+
name: "ElResult"
|
|
22
9
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
10
|
+
__name: "result",
|
|
11
|
+
props: resultProps,
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const ns = useNamespace("result");
|
|
15
|
+
const resultIcon = computed(() => {
|
|
16
|
+
const icon = props.icon;
|
|
17
|
+
const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
|
|
18
|
+
const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
|
|
19
|
+
return {
|
|
20
|
+
class: iconClass,
|
|
21
|
+
component: iconComponent
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
class: normalizeClass(unref(ns).b())
|
|
29
|
+
},
|
|
30
|
+
[
|
|
31
|
+
createElementVNode(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
class: normalizeClass(unref(ns).e("icon"))
|
|
35
|
+
},
|
|
36
|
+
[
|
|
37
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
38
|
+
resultIcon.value.component ? (openBlock(), createBlock(resolveDynamicComponent(resultIcon.value.component), {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: normalizeClass(resultIcon.value.class)
|
|
41
|
+
}, null, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
42
|
+
])
|
|
43
|
+
],
|
|
44
|
+
2
|
|
45
|
+
),
|
|
46
|
+
_ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
key: 0,
|
|
50
|
+
class: normalizeClass(unref(ns).e("title"))
|
|
51
|
+
},
|
|
52
|
+
[
|
|
53
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
54
|
+
createElementVNode(
|
|
55
|
+
"p",
|
|
56
|
+
null,
|
|
57
|
+
toDisplayString(_ctx.title),
|
|
58
|
+
1
|
|
59
|
+
)
|
|
60
|
+
])
|
|
61
|
+
],
|
|
62
|
+
2
|
|
63
|
+
)) : createCommentVNode("v-if", true),
|
|
64
|
+
_ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
key: 1,
|
|
68
|
+
class: normalizeClass(unref(ns).e("subtitle"))
|
|
69
|
+
},
|
|
70
|
+
[
|
|
71
|
+
renderSlot(_ctx.$slots, "sub-title", {}, () => [
|
|
72
|
+
createElementVNode(
|
|
73
|
+
"p",
|
|
74
|
+
null,
|
|
75
|
+
toDisplayString(_ctx.subTitle),
|
|
76
|
+
1
|
|
77
|
+
)
|
|
78
|
+
])
|
|
79
|
+
],
|
|
80
|
+
2
|
|
81
|
+
)) : createCommentVNode("v-if", true),
|
|
82
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
key: 2,
|
|
86
|
+
class: normalizeClass(unref(ns).e("extra"))
|
|
87
|
+
},
|
|
88
|
+
[
|
|
89
|
+
renderSlot(_ctx.$slots, "extra")
|
|
90
|
+
],
|
|
91
|
+
2
|
|
92
|
+
)) : createCommentVNode("v-if", true)
|
|
93
|
+
],
|
|
94
|
+
2
|
|
95
|
+
);
|
|
96
|
+
};
|
|
31
97
|
}
|
|
32
98
|
});
|
|
99
|
+
var Result = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);
|
|
33
100
|
|
|
34
|
-
export {
|
|
101
|
+
export { Result as default };
|
|
35
102
|
//# sourceMappingURL=result2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result2.mjs","sources":["../../../../../../packages/components/result/src/result.
|
|
1
|
+
{"version":3,"file":"result2.mjs","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots['sub-title']\" :class=\"ns.e('subtitle')\">\n <slot name=\"sub-title\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { IconComponentMap, IconMap, resultProps } from './result'\n\ndefineOptions({\n name: 'ElResult',\n})\n\nconst props = defineProps(resultProps)\n\nconst ns = useNamespace('result')\n\nconst resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n})\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_renderSlot","_createBlock","_resolveDynamicComponent","_createCommentVNode","title","$slots","_toDisplayString","subTitle"],"mappings":";;;;;;;;;;;;AAoCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAER,IAAA,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAE1B,IAAA,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,MAAM,SAAY,GAAA,IAAA,IAAQ,OAAQ,CAAA,IAAA,CAAA,GAAQ,QAAQ,IAAQ,CAAA,GAAA,WAAA,CAAA;AAC1D,MAAM,MAAA,aAAA,GACJ,gBAAiB,CAAA,SAAA,CAAA,IAAc,gBAAiB,CAAA,WAAA,CAAA,CAAA;AAE3C,MAAA,OAAA;AAAA,QACL,KAAO,EAAA,SAAA;AAAA,QACP,SAAW,EAAA,aAAA;AAAA,OACb,CAAA;AAAA,KACD,CAAA,CAAA;;AAjDC,MAAA,OAAAA,WAAA,EAAAC,kBAAA;AAAA,QAuBM,KAAA;AAAA,QAAA;AAAA,UAvBA,OAAKC,cAAE,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAG,GAAC,CAAA;AAAA,SAAA;AAAA;UACfC,kBAAA;AAAA,YAQM,KAAA;AAAA,Y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AA,IAAA;AAAA,kBAAAO,eAAA,CAAfC,KAAQ,QAAA,CAAA;AAAA,kBAAA,CAAA;AAAA,iBAAA;AAAA,eAAA,CAAA;AAAA;;;UAGPF,IAAAA,CAAAA,MAAAA,CAAO,KAAlB,IAAAV,SAAA,EAAA,EAAAC,kBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAFoB,OAAKC,cAAE,CAAAC,KAAA,IAAG,CAAA,CAAA,CAAC,OAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cACnCE,UAAA,CAAqB,IAAA,CAAA,MAAA,EAAA,OAAA,CAAA;AAAA,aAAA;AAAA;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Scrollbar from './src/
|
|
1
|
+
import Scrollbar from './src/scrollbar.mjs';
|
|
2
2
|
export { BAR_MAP, GAP, renderThumbStyle } from './src/util.mjs';
|
|
3
|
-
export { scrollbarEmits, scrollbarProps } from './src/
|
|
3
|
+
export { scrollbarEmits, scrollbarProps } from './src/scrollbar2.mjs';
|
|
4
4
|
export { thumbProps } from './src/thumb.mjs';
|
|
5
5
|
export { scrollbarContextKey } from './src/constants.mjs';
|
|
6
6
|
import { withInstall } from '../../utils/vue/install.mjs';
|