@element-plus/nightly 0.0.20250104 → 0.0.20250105
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.full.js +4 -4
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +4 -4
- 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/anchor/index.mjs +1 -1
- package/es/components/anchor/src/anchor-link.mjs +81 -5
- package/es/components/anchor/src/anchor-link.mjs.map +1 -1
- package/es/components/anchor/src/anchor-link2.mjs +5 -81
- package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +364 -79
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +79 -364
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.mjs +6 -29
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +29 -6
- 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 +42 -20
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +20 -42
- 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 +71 -29
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group2.mjs +29 -71
- package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.mjs +119 -59
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +59 -119
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +64 -43
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +43 -64
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/collection/index.mjs +1 -1
- package/es/components/collection/src/collection.mjs +62 -10
- package/es/components/collection/src/collection.mjs.map +1 -1
- package/es/components/collection/src/collection2.mjs +10 -62
- package/es/components/collection/src/collection2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +22 -79
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +79 -22
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +26 -87
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +87 -26
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +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/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +11 -52
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +52 -11
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/index.mjs +16 -16
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +431 -102
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +102 -431
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +65 -215
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +215 -65
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/pagination/src/components/pager.mjs +209 -16
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +16 -209
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/slider/src/button.mjs +19 -89
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +89 -19
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +69 -25
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +25 -69
- 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 +228 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -228
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +71 -13
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +13 -71
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +27 -99
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +99 -27
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +21 -36
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +36 -21
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip.mjs +19 -77
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +77 -19
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/index.mjs +1 -1
- package/es/components/tour/src/content.mjs +43 -67
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +67 -43
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tour/src/tour2.mjs +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +210 -27
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +27 -210
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/hooks/use-lockscreen/index.mjs +3 -3
- package/es/hooks/use-lockscreen/index.mjs.map +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/anchor/index.js +1 -1
- package/lib/components/anchor/src/anchor-link.js +81 -5
- package/lib/components/anchor/src/anchor-link.js.map +1 -1
- package/lib/components/anchor/src/anchor-link2.js +5 -81
- package/lib/components/anchor/src/anchor-link2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +363 -79
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +79 -363
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button-group.js +6 -29
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +29 -6
- 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 +42 -20
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +20 -42
- 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 +71 -30
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group2.js +30 -71
- package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.js +119 -60
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +60 -119
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +64 -43
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +43 -64
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/collection/index.js +1 -1
- package/lib/components/collection/src/collection.js +62 -9
- package/lib/components/collection/src/collection.js.map +1 -1
- package/lib/components/collection/src/collection2.js +9 -62
- package/lib/components/collection/src/collection2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +23 -79
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +79 -23
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +26 -86
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +86 -26
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +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/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +11 -52
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +52 -11
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/index.js +16 -16
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +430 -102
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +102 -430
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +65 -214
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +214 -65
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/pagination/src/components/pager.js +209 -16
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +16 -209
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/slider/src/button.js +20 -89
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +89 -20
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +69 -25
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +25 -69
- 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 +227 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -227
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +71 -13
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +13 -71
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +28 -99
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +99 -28
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +21 -36
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +36 -21
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip.js +19 -77
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +77 -19
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/tour/index.js +1 -1
- package/lib/components/tour/src/content.js +46 -67
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +67 -46
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/step.js +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tour/src/tour2.js +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +210 -27
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +27 -210
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/hooks/use-lockscreen/index.js +2 -2
- package/lib/hooks/use-lockscreen/index.js.map +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/web-types.json +1 -1
@@ -1,215 +1,32 @@
|
|
1
|
-
import {
|
2
|
-
import { useMutationObserver } from '@vueuse/core';
|
3
|
-
import { watermarkProps } from './watermark.mjs';
|
4
|
-
import { reRendering, getStyleStr, getPixelRatio } from './utils.mjs';
|
5
|
-
import useClips, { FontGap } from './useClips.mjs';
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
7
|
-
import { isArray } from '@vue/shared';
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
8
2
|
|
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
|
-
return (_b = (_a = props.font) == null ? void 0 : _a.fontStyle) != null ? _b : "normal";
|
35
|
-
});
|
36
|
-
const fontFamily = computed(() => {
|
37
|
-
var _a, _b;
|
38
|
-
return (_b = (_a = props.font) == null ? void 0 : _a.fontFamily) != null ? _b : "sans-serif";
|
39
|
-
});
|
40
|
-
const textAlign = computed(() => {
|
41
|
-
var _a, _b;
|
42
|
-
return (_b = (_a = props.font) == null ? void 0 : _a.textAlign) != null ? _b : "center";
|
43
|
-
});
|
44
|
-
const textBaseline = computed(() => {
|
45
|
-
var _a, _b;
|
46
|
-
return (_b = (_a = props.font) == null ? void 0 : _a.textBaseline) != null ? _b : "hanging";
|
47
|
-
});
|
48
|
-
const gapX = computed(() => props.gap[0]);
|
49
|
-
const gapY = computed(() => props.gap[1]);
|
50
|
-
const gapXCenter = computed(() => gapX.value / 2);
|
51
|
-
const gapYCenter = computed(() => gapY.value / 2);
|
52
|
-
const offsetLeft = computed(() => {
|
53
|
-
var _a, _b;
|
54
|
-
return (_b = (_a = props.offset) == null ? void 0 : _a[0]) != null ? _b : gapXCenter.value;
|
55
|
-
});
|
56
|
-
const offsetTop = computed(() => {
|
57
|
-
var _a, _b;
|
58
|
-
return (_b = (_a = props.offset) == null ? void 0 : _a[1]) != null ? _b : gapYCenter.value;
|
59
|
-
});
|
60
|
-
const getMarkStyle = () => {
|
61
|
-
const markStyle = {
|
62
|
-
zIndex: props.zIndex,
|
63
|
-
position: "absolute",
|
64
|
-
left: 0,
|
65
|
-
top: 0,
|
66
|
-
width: "100%",
|
67
|
-
height: "100%",
|
68
|
-
pointerEvents: "none",
|
69
|
-
backgroundRepeat: "repeat"
|
70
|
-
};
|
71
|
-
let positionLeft = offsetLeft.value - gapXCenter.value;
|
72
|
-
let positionTop = offsetTop.value - gapYCenter.value;
|
73
|
-
if (positionLeft > 0) {
|
74
|
-
markStyle.left = `${positionLeft}px`;
|
75
|
-
markStyle.width = `calc(100% - ${positionLeft}px)`;
|
76
|
-
positionLeft = 0;
|
77
|
-
}
|
78
|
-
if (positionTop > 0) {
|
79
|
-
markStyle.top = `${positionTop}px`;
|
80
|
-
markStyle.height = `calc(100% - ${positionTop}px)`;
|
81
|
-
positionTop = 0;
|
82
|
-
}
|
83
|
-
markStyle.backgroundPosition = `${positionLeft}px ${positionTop}px`;
|
84
|
-
return markStyle;
|
85
|
-
};
|
86
|
-
const containerRef = shallowRef(null);
|
87
|
-
const watermarkRef = shallowRef();
|
88
|
-
const stopObservation = ref(false);
|
89
|
-
const destroyWatermark = () => {
|
90
|
-
if (watermarkRef.value) {
|
91
|
-
watermarkRef.value.remove();
|
92
|
-
watermarkRef.value = void 0;
|
93
|
-
}
|
94
|
-
};
|
95
|
-
const appendWatermark = (base64Url, markWidth) => {
|
96
|
-
var _a;
|
97
|
-
if (containerRef.value && watermarkRef.value) {
|
98
|
-
stopObservation.value = true;
|
99
|
-
watermarkRef.value.setAttribute("style", getStyleStr({
|
100
|
-
...getMarkStyle(),
|
101
|
-
backgroundImage: `url('${base64Url}')`,
|
102
|
-
backgroundSize: `${Math.floor(markWidth)}px`
|
103
|
-
}));
|
104
|
-
(_a = containerRef.value) == null ? void 0 : _a.append(watermarkRef.value);
|
105
|
-
setTimeout(() => {
|
106
|
-
stopObservation.value = false;
|
107
|
-
});
|
108
|
-
}
|
109
|
-
};
|
110
|
-
const getMarkSize = (ctx) => {
|
111
|
-
let defaultWidth = 120;
|
112
|
-
let defaultHeight = 64;
|
113
|
-
const image = props.image;
|
114
|
-
const content = props.content;
|
115
|
-
const width = props.width;
|
116
|
-
const height = props.height;
|
117
|
-
if (!image && ctx.measureText) {
|
118
|
-
ctx.font = `${Number(fontSize.value)}px ${fontFamily.value}`;
|
119
|
-
const contents = isArray(content) ? content : [content];
|
120
|
-
const sizes = contents.map((item) => {
|
121
|
-
const metrics = ctx.measureText(item);
|
122
|
-
return [
|
123
|
-
metrics.width,
|
124
|
-
metrics.fontBoundingBoxAscent !== void 0 ? metrics.fontBoundingBoxAscent + metrics.fontBoundingBoxDescent : metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent
|
125
|
-
];
|
126
|
-
});
|
127
|
-
defaultWidth = Math.ceil(Math.max(...sizes.map((size) => size[0])));
|
128
|
-
defaultHeight = Math.ceil(Math.max(...sizes.map((size) => size[1]))) * contents.length + (contents.length - 1) * FontGap;
|
129
|
-
}
|
130
|
-
return [width != null ? width : defaultWidth, height != null ? height : defaultHeight];
|
131
|
-
};
|
132
|
-
const getClips = useClips();
|
133
|
-
const renderWatermark = () => {
|
134
|
-
const canvas = document.createElement("canvas");
|
135
|
-
const ctx = canvas.getContext("2d");
|
136
|
-
const image = props.image;
|
137
|
-
const content = props.content;
|
138
|
-
const rotate = props.rotate;
|
139
|
-
if (ctx) {
|
140
|
-
if (!watermarkRef.value) {
|
141
|
-
watermarkRef.value = document.createElement("div");
|
142
|
-
}
|
143
|
-
const ratio = getPixelRatio();
|
144
|
-
const [markWidth, markHeight] = getMarkSize(ctx);
|
145
|
-
const drawCanvas = (drawContent) => {
|
146
|
-
const [textClips, clipWidth] = getClips(drawContent || "", rotate, ratio, markWidth, markHeight, {
|
147
|
-
color: color.value,
|
148
|
-
fontSize: fontSize.value,
|
149
|
-
fontStyle: fontStyle.value,
|
150
|
-
fontWeight: fontWeight.value,
|
151
|
-
fontFamily: fontFamily.value,
|
152
|
-
textAlign: textAlign.value,
|
153
|
-
textBaseline: textBaseline.value
|
154
|
-
}, gapX.value, gapY.value);
|
155
|
-
appendWatermark(textClips, clipWidth);
|
156
|
-
};
|
157
|
-
if (image) {
|
158
|
-
const img = new Image();
|
159
|
-
img.onload = () => {
|
160
|
-
drawCanvas(img);
|
161
|
-
};
|
162
|
-
img.onerror = () => {
|
163
|
-
drawCanvas(content);
|
164
|
-
};
|
165
|
-
img.crossOrigin = "anonymous";
|
166
|
-
img.referrerPolicy = "no-referrer";
|
167
|
-
img.src = image;
|
168
|
-
} else {
|
169
|
-
drawCanvas(content);
|
170
|
-
}
|
171
|
-
}
|
172
|
-
};
|
173
|
-
onMounted(() => {
|
174
|
-
renderWatermark();
|
175
|
-
});
|
176
|
-
watch(() => props, () => {
|
177
|
-
renderWatermark();
|
178
|
-
}, {
|
179
|
-
deep: true,
|
180
|
-
flush: "post"
|
181
|
-
});
|
182
|
-
onBeforeUnmount(() => {
|
183
|
-
destroyWatermark();
|
184
|
-
});
|
185
|
-
const onMutate = (mutations) => {
|
186
|
-
if (stopObservation.value) {
|
187
|
-
return;
|
188
|
-
}
|
189
|
-
mutations.forEach((mutation) => {
|
190
|
-
if (reRendering(mutation, watermarkRef.value)) {
|
191
|
-
destroyWatermark();
|
192
|
-
renderWatermark();
|
193
|
-
}
|
194
|
-
});
|
195
|
-
};
|
196
|
-
useMutationObserver(containerRef, onMutate, {
|
197
|
-
attributes: true,
|
198
|
-
subtree: true,
|
199
|
-
childList: true
|
200
|
-
});
|
201
|
-
return (_ctx, _cache) => {
|
202
|
-
return openBlock(), createElementBlock("div", {
|
203
|
-
ref_key: "containerRef",
|
204
|
-
ref: containerRef,
|
205
|
-
style: normalizeStyle([style])
|
206
|
-
}, [
|
207
|
-
renderSlot(_ctx.$slots, "default")
|
208
|
-
], 4);
|
209
|
-
};
|
3
|
+
const watermarkProps = buildProps({
|
4
|
+
zIndex: {
|
5
|
+
type: Number,
|
6
|
+
default: 9
|
7
|
+
},
|
8
|
+
rotate: {
|
9
|
+
type: Number,
|
10
|
+
default: -22
|
11
|
+
},
|
12
|
+
width: Number,
|
13
|
+
height: Number,
|
14
|
+
image: String,
|
15
|
+
content: {
|
16
|
+
type: definePropType([String, Array]),
|
17
|
+
default: "Element Plus"
|
18
|
+
},
|
19
|
+
font: {
|
20
|
+
type: definePropType(Object)
|
21
|
+
},
|
22
|
+
gap: {
|
23
|
+
type: definePropType(Array),
|
24
|
+
default: () => [100, 100]
|
25
|
+
},
|
26
|
+
offset: {
|
27
|
+
type: definePropType(Array)
|
210
28
|
}
|
211
29
|
});
|
212
|
-
var Watermark = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "watermark.vue"]]);
|
213
30
|
|
214
|
-
export {
|
31
|
+
export { watermarkProps };
|
215
32
|
//# sourceMappingURL=watermark2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"watermark2.mjs","sources":["../../../../../../packages/components/watermark/src/watermark.vue"],"sourcesContent":["<template>\n <div ref=\"containerRef\" :style=\"[style]\">\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n onBeforeUnmount,\n onMounted,\n ref,\n shallowRef,\n watch,\n} from 'vue'\nimport { useMutationObserver } from '@vueuse/core'\nimport { isArray } from '@element-plus/utils'\nimport { watermarkProps } from './watermark'\nimport { getPixelRatio, getStyleStr, reRendering } from './utils'\nimport useClips, { FontGap } from './useClips'\nimport type { WatermarkProps } from './watermark'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElWatermark',\n})\n\nconst style: CSSProperties = {\n position: 'relative',\n}\n\nconst props = defineProps(watermarkProps)\nconst color = computed(() => props.font?.color ?? 'rgba(0,0,0,.15)')\nconst fontSize = computed(() => props.font?.fontSize ?? 16)\nconst fontWeight = computed(() => props.font?.fontWeight ?? 'normal')\nconst fontStyle = computed(() => props.font?.fontStyle ?? 'normal')\nconst fontFamily = computed(() => props.font?.fontFamily ?? 'sans-serif')\nconst textAlign = computed(() => props.font?.textAlign ?? 'center')\nconst textBaseline = computed(() => props.font?.textBaseline ?? 'hanging')\n\nconst gapX = computed(() => props.gap[0])\nconst gapY = computed(() => props.gap[1])\nconst gapXCenter = computed(() => gapX.value / 2)\nconst gapYCenter = computed(() => gapY.value / 2)\nconst offsetLeft = computed(() => props.offset?.[0] ?? gapXCenter.value)\nconst offsetTop = computed(() => props.offset?.[1] ?? gapYCenter.value)\n\nconst getMarkStyle = () => {\n const markStyle: CSSProperties = {\n zIndex: props.zIndex,\n position: 'absolute',\n left: 0,\n top: 0,\n width: '100%',\n height: '100%',\n pointerEvents: 'none',\n backgroundRepeat: 'repeat',\n }\n\n /** Calculate the style of the offset */\n let positionLeft = offsetLeft.value - gapXCenter.value\n let positionTop = offsetTop.value - gapYCenter.value\n if (positionLeft > 0) {\n markStyle.left = `${positionLeft}px`\n markStyle.width = `calc(100% - ${positionLeft}px)`\n positionLeft = 0\n }\n if (positionTop > 0) {\n markStyle.top = `${positionTop}px`\n markStyle.height = `calc(100% - ${positionTop}px)`\n positionTop = 0\n }\n markStyle.backgroundPosition = `${positionLeft}px ${positionTop}px`\n\n return markStyle\n}\n\nconst containerRef = shallowRef<HTMLDivElement | null>(null)\nconst watermarkRef = shallowRef<HTMLDivElement>()\nconst stopObservation = ref(false)\n\nconst destroyWatermark = () => {\n if (watermarkRef.value) {\n watermarkRef.value.remove()\n watermarkRef.value = undefined\n }\n}\nconst appendWatermark = (base64Url: string, markWidth: number) => {\n if (containerRef.value && watermarkRef.value) {\n stopObservation.value = true\n watermarkRef.value.setAttribute(\n 'style',\n getStyleStr({\n ...getMarkStyle(),\n backgroundImage: `url('${base64Url}')`,\n backgroundSize: `${Math.floor(markWidth)}px`,\n })\n )\n containerRef.value?.append(watermarkRef.value)\n // Delayed execution\n setTimeout(() => {\n stopObservation.value = false\n })\n }\n}\n\n/**\n * Get the width and height of the watermark. The default values are as follows\n * Image: [120, 64]; Content: It's calculated by content;\n */\nconst getMarkSize = (ctx: CanvasRenderingContext2D) => {\n let defaultWidth = 120\n let defaultHeight = 64\n const image = props.image\n const content = props.content\n const width = props.width\n const height = props.height\n if (!image && ctx.measureText) {\n ctx.font = `${Number(fontSize.value)}px ${fontFamily.value}`\n const contents = isArray(content) ? content : [content]\n const sizes = contents.map((item) => {\n const metrics = ctx.measureText(item!)\n\n return [\n metrics.width,\n // Using `actualBoundingBoxAscent` to be compatible with lower version browsers (eg: Firefox < 116)\n metrics.fontBoundingBoxAscent !== undefined\n ? metrics.fontBoundingBoxAscent + metrics.fontBoundingBoxDescent\n : metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent,\n ]\n })\n defaultWidth = Math.ceil(Math.max(...sizes.map((size) => size[0])))\n defaultHeight =\n Math.ceil(Math.max(...sizes.map((size) => size[1]))) * contents.length +\n (contents.length - 1) * FontGap\n }\n return [width ?? defaultWidth, height ?? defaultHeight] as const\n}\n\nconst getClips = useClips()\n\nconst renderWatermark = () => {\n const canvas = document.createElement('canvas')\n const ctx = canvas.getContext('2d')\n const image = props.image\n const content = props.content\n const rotate = props.rotate\n\n if (ctx) {\n if (!watermarkRef.value) {\n watermarkRef.value = document.createElement('div')\n }\n\n const ratio = getPixelRatio()\n const [markWidth, markHeight] = getMarkSize(ctx)\n\n const drawCanvas = (\n drawContent?: NonNullable<WatermarkProps['content']> | HTMLImageElement\n ) => {\n const [textClips, clipWidth] = getClips(\n drawContent || '',\n rotate,\n ratio,\n markWidth,\n markHeight,\n {\n color: color.value,\n fontSize: fontSize.value,\n fontStyle: fontStyle.value,\n fontWeight: fontWeight.value,\n fontFamily: fontFamily.value,\n textAlign: textAlign.value,\n textBaseline: textBaseline.value,\n },\n gapX.value,\n gapY.value\n )\n\n appendWatermark(textClips, clipWidth)\n }\n\n if (image) {\n const img = new Image()\n img.onload = () => {\n drawCanvas(img)\n }\n img.onerror = () => {\n drawCanvas(content)\n }\n img.crossOrigin = 'anonymous'\n img.referrerPolicy = 'no-referrer'\n img.src = image\n } else {\n drawCanvas(content)\n }\n }\n}\n\nonMounted(() => {\n renderWatermark()\n})\n\nwatch(\n () => props,\n () => {\n renderWatermark()\n },\n {\n deep: true,\n flush: 'post',\n }\n)\n\nonBeforeUnmount(() => {\n destroyWatermark()\n})\n\nconst onMutate = (mutations: MutationRecord[]) => {\n if (stopObservation.value) {\n return\n }\n mutations.forEach((mutation) => {\n if (reRendering(mutation, watermarkRef.value)) {\n destroyWatermark()\n renderWatermark()\n }\n })\n}\n\nuseMutationObserver(containerRef, onMutate, {\n attributes: true,\n subtree: true,\n childList: true,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;mCAuBc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAA,MAAM,KAAuB,GAAA;AAAA,MAC3B,QAAU,EAAA,UAAA;AAAA,KACZ,CAAA;AAGA,IAAA,MAAM,QAAQ,QAAS,CAAA,MAAM;AAC7B,MAAA,IAAM;AACN,MAAA,mBAA4B,KAAA,CAAA,IAAA,KAAY,IAAA,GAAA,iBAAoB,KAAQ,IAAA,GAAA,EAAA,GAAA,iBAAA,CAAA;AACpE,KAAA,CAAA,CAAA;AACA,IAAA,MAAM,mBAAsB,CAAA,MAAA;AAC5B,MAAA,IAAM;AACN,MAAA,mBAAqB,KAAS,CAAA,IAAA,KAAM,IAAM,GAAA,KAAM,oBAAyB,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA;AAEzE,KAAA,CAAA,CAAA;AACA,IAAA,MAAM,UAAgB,GAAA,QAAA,CAAM,MAAM;AAClC,MAAA,IAAM,EAAa,EAAA,EAAA,CAAA;AACnB,MAAA,OAAmB,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,IAAe,KAAA,YAAc,CAAA,GAAA,EAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,QAAA,CAAA;AAChD,KAAM,CAAA,CAA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AA,GAAA,GAAA,KAAA,CAAA;AAAA,SACC,MAAA;AAAA,UACT,UAAA,CAAA,OAAA,CAAA,CAAA;AAAA,SACF;AAEA,OAAA;AACE,KAAiB,CAAA;AAAA,IACnB,SAAC,CAAA,MAAA;AAED,MAAM,eAAW,EAAiC,CAAA;AAChD,KAAA,CAAA,CAAA;AACE,IAAA,KAAA,CAAA,MAAA,KAAA,EAAA,MAAA;AAAA,MACF,eAAA,EAAA,CAAA;AACA,KAAU,EAAA;AACR,MAAA,IAAA,EAAI,IAAY;AACd,MAAiB,KAAA,EAAA,MAAA;AACjB,KAAgB,CAAA,CAAA;AAAA,IAClB,eAAA,CAAA,MAAA;AAAA,MACF,gBAAC,EAAA,CAAA;AAAA,KACH,CAAA,CAAA;AAEA,IAAA,MAAA,QAAA,GAAA,CAAA;AAA4C,MAC1C,IAAY,eAAA,CAAA,KAAA,EAAA;AAAA,QACH,OAAA;AAAA,OACE;AAAA,MACZ,SAAA,CAAA,OAAA,CAAA,CAAA,QAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
1
|
+
{"version":3,"file":"watermark2.mjs","sources":["../../../../../../packages/components/watermark/src/watermark.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Watermark from './watermark.vue'\n\nexport interface WatermarkFontType {\n color?: string\n fontSize?: number | string\n fontWeight?: 'normal' | 'light' | 'weight' | number\n fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'\n fontFamily?: string\n textAlign?: 'start' | 'end' | 'left' | 'right' | 'center'\n textBaseline?:\n | 'top'\n | 'hanging'\n | 'middle'\n | 'alphabetic'\n | 'ideographic'\n | 'bottom'\n}\n\nexport const watermarkProps = buildProps({\n /**\n * @description The z-index of the appended watermark element\n */\n zIndex: {\n type: Number,\n default: 9,\n },\n /**\n * @description The rotation angle of the watermark\n */\n rotate: {\n type: Number,\n default: -22,\n },\n /**\n * @description The width of the watermark\n */\n width: Number,\n /**\n * @description The height of the watermark\n */\n height: Number,\n /**\n * @description Image source, it is recommended to export 2x or 3x image, high priority (support base64 format)\n */\n image: String,\n /**\n * @description Watermark text content\n */\n content: {\n type: definePropType<string | string[]>([String, Array]),\n default: 'Element Plus',\n },\n /**\n * @description Text style\n */\n font: {\n type: definePropType<WatermarkFontType>(Object),\n },\n /**\n * @description The spacing between watermarks\n */\n gap: {\n type: definePropType<[number, number]>(Array),\n default: () => [100, 100],\n },\n /**\n * @description The offset of the watermark from the upper left corner of the container. The default is gap/2\n */\n offset: {\n type: definePropType<[number, number]>(Array),\n },\n} as const)\n\nexport type WatermarkProps = ExtractPropTypes<typeof watermarkProps>\nexport type WatermarkInstance = InstanceType<typeof Watermark>\n"],"names":[],"mappings":";;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC,EAAE;AAChB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AACzC,IAAI,OAAO,EAAE,cAAc;AAC3B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC;AAC7B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,CAAC;;;;"}
|
@@ -2,7 +2,7 @@ import { isRef, computed, watch, onScopeDispose } from 'vue';
|
|
2
2
|
import { useNamespace } from '../use-namespace/index.mjs';
|
3
3
|
import { throwError } from '../../utils/error.mjs';
|
4
4
|
import { isClient } from '@vueuse/core';
|
5
|
-
import { hasClass,
|
5
|
+
import { hasClass, addClass, getStyle, removeClass } from '../../utils/dom/style.mjs';
|
6
6
|
import { getScrollBarWidth } from '../../utils/dom/scroll.mjs';
|
7
7
|
|
8
8
|
const useLockscreen = (trigger, options = {}) => {
|
@@ -21,9 +21,9 @@ const useLockscreen = (trigger, options = {}) => {
|
|
21
21
|
setTimeout(() => {
|
22
22
|
if (typeof document === "undefined")
|
23
23
|
return;
|
24
|
-
removeClass(document == null ? void 0 : document.body, hiddenCls.value);
|
25
24
|
if (withoutHiddenClass && document) {
|
26
25
|
document.body.style.width = bodyWidth;
|
26
|
+
removeClass(document.body, hiddenCls.value);
|
27
27
|
}
|
28
28
|
}, 200);
|
29
29
|
};
|
@@ -35,6 +35,7 @@ const useLockscreen = (trigger, options = {}) => {
|
|
35
35
|
withoutHiddenClass = !hasClass(document.body, hiddenCls.value);
|
36
36
|
if (withoutHiddenClass) {
|
37
37
|
bodyWidth = document.body.style.width;
|
38
|
+
addClass(document.body, hiddenCls.value);
|
38
39
|
}
|
39
40
|
scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
40
41
|
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
@@ -42,7 +43,6 @@ const useLockscreen = (trigger, options = {}) => {
|
|
42
43
|
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
43
44
|
document.body.style.width = `calc(100% - ${scrollBarWidth}px)`;
|
44
45
|
}
|
45
|
-
addClass(document.body, hiddenCls.value);
|
46
46
|
});
|
47
47
|
onScopeDispose(() => cleanup());
|
48
48
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { computed, isRef, onScopeDispose, watch } from 'vue'\nimport {\n addClass,\n getScrollBarWidth,\n getStyle,\n hasClass,\n isClient,\n removeClass,\n throwError,\n} from '@element-plus/utils'\nimport { useNamespace } from '../use-namespace'\n\nimport type { Ref } from 'vue'\nimport type { UseNamespaceReturn } from '../use-namespace'\n\nexport type UseLockScreenOptions = {\n ns?: UseNamespaceReturn\n // shouldLock?: MaybeRef<boolean>\n}\n\n/**\n * Hook that monitoring the ref value to lock or unlock the screen.\n * When the trigger became true, it assumes modal is now opened and vice versa.\n * @param trigger {Ref<boolean>}\n */\nexport const useLockscreen = (\n trigger: Ref<boolean>,\n options: UseLockScreenOptions = {}\n) => {\n if (!isRef(trigger)) {\n throwError(\n '[useLockscreen]',\n 'You need to pass a ref param to this function'\n )\n }\n\n const ns = options.ns || useNamespace('popup')\n\n const hiddenCls = computed(() => ns.bm('parent', 'hidden'))\n\n if (!isClient || hasClass(document.body, hiddenCls.value)) {\n return\n }\n\n let scrollBarWidth = 0\n let withoutHiddenClass = false\n let bodyWidth = '0'\n\n const cleanup = () => {\n setTimeout(() => {\n // When the test case is running, the context environment simulated by jsdom may have been destroyed,\n // and the document does not exist at this time.\n if (typeof document === 'undefined') return\n
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-lockscreen/index.ts"],"sourcesContent":["import { computed, isRef, onScopeDispose, watch } from 'vue'\nimport {\n addClass,\n getScrollBarWidth,\n getStyle,\n hasClass,\n isClient,\n removeClass,\n throwError,\n} from '@element-plus/utils'\nimport { useNamespace } from '../use-namespace'\n\nimport type { Ref } from 'vue'\nimport type { UseNamespaceReturn } from '../use-namespace'\n\nexport type UseLockScreenOptions = {\n ns?: UseNamespaceReturn\n // shouldLock?: MaybeRef<boolean>\n}\n\n/**\n * Hook that monitoring the ref value to lock or unlock the screen.\n * When the trigger became true, it assumes modal is now opened and vice versa.\n * @param trigger {Ref<boolean>}\n */\nexport const useLockscreen = (\n trigger: Ref<boolean>,\n options: UseLockScreenOptions = {}\n) => {\n if (!isRef(trigger)) {\n throwError(\n '[useLockscreen]',\n 'You need to pass a ref param to this function'\n )\n }\n\n const ns = options.ns || useNamespace('popup')\n\n const hiddenCls = computed(() => ns.bm('parent', 'hidden'))\n\n if (!isClient || hasClass(document.body, hiddenCls.value)) {\n return\n }\n\n let scrollBarWidth = 0\n let withoutHiddenClass = false\n let bodyWidth = '0'\n\n const cleanup = () => {\n setTimeout(() => {\n // When the test case is running, the context environment simulated by jsdom may have been destroyed,\n // and the document does not exist at this time.\n if (typeof document === 'undefined') return\n if (withoutHiddenClass && document) {\n document.body.style.width = bodyWidth\n removeClass(document.body, hiddenCls.value)\n }\n }, 200)\n }\n watch(trigger, (val) => {\n if (!val) {\n cleanup()\n return\n }\n\n withoutHiddenClass = !hasClass(document.body, hiddenCls.value)\n if (withoutHiddenClass) {\n bodyWidth = document.body.style.width\n addClass(document.body, hiddenCls.value)\n }\n scrollBarWidth = getScrollBarWidth(ns.namespace.value)\n const bodyHasOverflow =\n document.documentElement.clientHeight < document.body.scrollHeight\n const bodyOverflowY = getStyle(document.body, 'overflowY')\n if (\n scrollBarWidth > 0 &&\n (bodyHasOverflow || bodyOverflowY === 'scroll') &&\n withoutHiddenClass\n ) {\n document.body.style.width = `calc(100% - ${scrollBarWidth}px)`\n }\n })\n onScopeDispose(() => cleanup())\n}\n"],"names":[],"mappings":";;;;;;;AAWY,MAAC,aAAa,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,EAAE,KAAK;AACxD,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;AACvB,IAAI,UAAU,CAAC,iBAAiB,EAAE,+CAA+C,CAAC,CAAC;AACnF,GAAG;AACH,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;AACjD,EAAE,MAAM,SAAS,GAAG,QAAQ,CAAC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AAS,CAAC,KAAK,CAAC,CAAC;AAC3D,IAAI,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;AAC/F,IAAI,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC/D,IAAI,IAAI,cAAc,GAAG,CAAC,KAAK,eAAe,IAAI,aAAa,KAAK,QAAQ,CAAC,IAAI,kBAAkB,EAAE;AACrG,MAAM,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;AACrE,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,cAAc,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC;AAClC;;;;"}
|
package/es/index.mjs
CHANGED
@@ -6,7 +6,7 @@ export { affixEmits, affixProps } from './components/affix/src/affix.mjs';
|
|
6
6
|
export { ElAffix } from './components/affix/index.mjs';
|
7
7
|
export { alertEffects, alertEmits, alertProps } from './components/alert/src/alert.mjs';
|
8
8
|
export { ElAlert } from './components/alert/index.mjs';
|
9
|
-
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/
|
9
|
+
export { autocompleteEmits, autocompleteProps } from './components/autocomplete/src/autocomplete2.mjs';
|
10
10
|
export { ElAutocomplete } from './components/autocomplete/index.mjs';
|
11
11
|
export { avatarEmits, avatarProps } from './components/avatar/src/avatar.mjs';
|
12
12
|
export { ElAvatar } from './components/avatar/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/card2.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,11 +36,11 @@ 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-group2.mjs';
|
40
|
+
export { checkboxEmits, checkboxProps } from './components/checkbox/src/checkbox2.mjs';
|
41
41
|
export { checkboxGroupContextKey } from './components/checkbox/src/constants.mjs';
|
42
42
|
export { ElCheckbox, ElCheckboxButton, ElCheckboxGroup } from './components/checkbox/index.mjs';
|
43
|
-
export { colProps } from './components/col/src/
|
43
|
+
export { colProps } from './components/col/src/col2.mjs';
|
44
44
|
export { ElCol } from './components/col/index.mjs';
|
45
45
|
export { collapseEmits, collapseProps, emitChangeFn } from './components/collapse/src/collapse.mjs';
|
46
46
|
export { collapseItemProps } from './components/collapse/src/collapse-item.mjs';
|
@@ -55,7 +55,7 @@ export { configProviderContextKey } from './components/config-provider/src/const
|
|
55
55
|
export { provideGlobalConfig, useGlobalComponentSettings, useGlobalConfig } from './components/config-provider/src/hooks/use-global-config.mjs';
|
56
56
|
export { ElConfigProvider } from './components/config-provider/index.mjs';
|
57
57
|
export { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from './components/container/index.mjs';
|
58
|
-
export { countdownEmits, countdownProps } from './components/countdown/src/
|
58
|
+
export { countdownEmits, countdownProps } from './components/countdown/src/countdown.mjs';
|
59
59
|
export { ElCountdown } from './components/countdown/index.mjs';
|
60
60
|
export { ROOT_PICKER_INJECTION_KEY } from './components/date-picker/src/constants.mjs';
|
61
61
|
export { datePickerProps } from './components/date-picker/src/props/date-picker.mjs';
|
@@ -74,7 +74,7 @@ export { ElDrawer } from './components/drawer/index.mjs';
|
|
74
74
|
export { DROPDOWN_COLLECTION_INJECTION_KEY, DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, ElCollection, ElCollectionItem, FIRST_KEYS, FIRST_LAST_KEYS, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps } from './components/dropdown/src/dropdown.mjs';
|
75
75
|
export { DROPDOWN_INJECTION_KEY } from './components/dropdown/src/tokens.mjs';
|
76
76
|
export { ElDropdown, ElDropdownItem, ElDropdownMenu } from './components/dropdown/index.mjs';
|
77
|
-
export { emptyProps } from './components/empty/src/
|
77
|
+
export { emptyProps } from './components/empty/src/empty.mjs';
|
78
78
|
export { ElEmpty } from './components/empty/index.mjs';
|
79
79
|
export { formEmits, formMetaProps, formProps } from './components/form/src/form.mjs';
|
80
80
|
export { formItemProps, formItemValidateStates } from './components/form/src/form-item.mjs';
|
@@ -88,11 +88,11 @@ export { imageEmits, imageProps } from './components/image/src/image.mjs';
|
|
88
88
|
export { ElImage } from './components/image/index.mjs';
|
89
89
|
export { imageViewerEmits, imageViewerProps } from './components/image-viewer/src/image-viewer2.mjs';
|
90
90
|
export { ElImageViewer } from './components/image-viewer/index.mjs';
|
91
|
-
export { inputEmits, inputProps } from './components/input/src/
|
91
|
+
export { inputEmits, inputProps } from './components/input/src/input2.mjs';
|
92
92
|
export { ElInput } from './components/input/index.mjs';
|
93
93
|
export { inputNumberEmits, inputNumberProps } from './components/input-number/src/input-number.mjs';
|
94
94
|
export { ElInputNumber } from './components/input-number/index.mjs';
|
95
|
-
export { inputTagEmits, inputTagProps } from './components/input-tag/src/input-
|
95
|
+
export { inputTagEmits, inputTagProps } from './components/input-tag/src/input-tag.mjs';
|
96
96
|
export { ElInputTag } from './components/input-tag/index.mjs';
|
97
97
|
export { linkEmits, linkProps } from './components/link/src/link2.mjs';
|
98
98
|
export { ElLink } from './components/link/index.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/statistic2.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/switch2.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';
|
@@ -170,12 +170,12 @@ export { ElAutoResizer, ElTableV2 } from './components/table-v2/index.mjs';
|
|
170
170
|
export { tabsEmits, tabsProps } from './components/tabs/src/tabs.mjs';
|
171
171
|
export { tabBarProps } from './components/tabs/src/tab-bar.mjs';
|
172
172
|
export { tabNavEmits, tabNavProps } from './components/tabs/src/tab-nav.mjs';
|
173
|
-
export { tabPaneProps } from './components/tabs/src/tab-
|
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/tag.mjs';
|
177
177
|
export { ElTag } from './components/tag/index.mjs';
|
178
|
-
export { textProps } from './components/text/src/
|
178
|
+
export { textProps } from './components/text/src/text.mjs';
|
179
179
|
export { ElText } from './components/text/index.mjs';
|
180
180
|
export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractTimeFormat, formatter, makeList, parseDate, rangeArr, valueEquals } from './components/time-picker/src/utils.mjs';
|
181
181
|
export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, timeUnits } from './components/time-picker/src/constants.mjs';
|
@@ -208,11 +208,11 @@ 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/watermark2.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';
|
215
|
-
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/
|
215
|
+
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies } from './components/tour/src/content.mjs';
|
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';
|
package/es/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const version = "0.0.
|
1
|
+
export declare const version = "0.0.20250105";
|
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.20250105'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
@@ -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-link.js');
|
7
7
|
var anchor = require('./src/anchor.js');
|
8
8
|
var install = require('../../utils/vue/install.js');
|
9
9
|
|
@@ -2,12 +2,88 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var anchorLink = require('./anchor-link2.js');
|
7
|
+
var constants = require('./constants.js');
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
6
9
|
|
7
|
-
const
|
8
|
-
|
9
|
-
href: String
|
10
|
+
const __default__ = vue.defineComponent({
|
11
|
+
name: "ElAnchorLink"
|
10
12
|
});
|
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"]]);
|
11
87
|
|
12
|
-
exports
|
88
|
+
exports["default"] = AnchorLink;
|
13
89
|
//# 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.vue"],"sourcesContent":["<template>\n <div :class=\"ns.e('item')\">\n <a ref=\"linkRef\" :class=\"cls\" :href=\"href\" @click=\"handleClick\">\n <slot>{{ title }}</slot>\n </a>\n <div\n v-if=\"$slots['sub-link'] && direction === 'vertical'\"\n :class=\"ns.e('list')\"\n >\n <slot name=\"sub-link\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n inject,\n nextTick,\n onBeforeUnmount,\n onMounted,\n ref,\n watch,\n} from 'vue'\nimport { anchorLinkProps } from './anchor-link'\nimport { anchorKey } from './constants'\n\ndefineOptions({\n name: 'ElAnchorLink',\n})\n\nconst props = defineProps(anchorLinkProps)\n\nconst linkRef = ref<HTMLElement | null>(null)\n\nconst {\n ns,\n direction,\n currentAnchor,\n addLink,\n removeLink,\n handleClick: contextHandleClick,\n} = inject(anchorKey)!\n\nconst cls = computed(() => [\n ns.e('link'),\n ns.is('active', currentAnchor.value === props.href),\n])\n\nconst handleClick = (e: MouseEvent) => {\n contextHandleClick(e, props.href)\n}\n\nwatch(\n () => props.href,\n (val, oldVal) => {\n nextTick(() => {\n if (oldVal) removeLink(oldVal)\n if (val) {\n addLink({\n href: val,\n el: linkRef.value!,\n })\n }\n })\n }\n)\n\nonMounted(() => {\n const { href } = props\n if (href) {\n addLink({\n href,\n el: linkRef.value!,\n })\n }\n})\n\nonBeforeUnmount(() => {\n const { href } = props\n if (href) {\n removeLink(href)\n }\n})\n</script>\n"],"names":["ref","inject","anchorKey","computed","watch","next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