@element-plus/nightly 0.0.20250106 → 0.0.20250107
Sign up to get free protection for your applications and to get access to all the features.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +28 -2
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +28 -2
- 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 +191 -0
- package/dist/locale/hi.min.js +2 -0
- package/dist/locale/hi.min.js.map +1 -0
- package/dist/locale/hi.min.mjs +2 -0
- package/dist/locale/hi.min.mjs.map +1 -0
- package/dist/locale/hi.mjs +183 -0
- 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/affix/index.mjs +2 -2
- package/es/components/affix/src/affix.mjs +118 -25
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix2.mjs +25 -118
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +36 -89
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +89 -36
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +1 -1
- package/es/components/anchor/src/anchor-link.mjs +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 +79 -364
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +364 -79
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +53 -21
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +21 -53
- package/es/components/backtop/src/backtop2.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/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel.mjs +204 -61
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +61 -204
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- 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/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -64
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +64 -43
- 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/divider/index.mjs +2 -2
- package/es/components/divider/src/divider.mjs +16 -34
- package/es/components/divider/src/divider.mjs.map +1 -1
- package/es/components/divider/src/divider2.mjs +34 -16
- package/es/components/divider/src/divider2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +319 -47
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +47 -319
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +153 -53
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +53 -153
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +45 -412
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +412 -45
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +20 -20
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +102 -431
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +431 -102
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +166 -15
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +15 -166
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +18 -35
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +35 -18
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/trigger.mjs +31 -127
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +127 -31
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +28 -44
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +44 -28
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/scrollbar/src/bar.mjs +10 -64
- package/es/components/scrollbar/src/bar.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +64 -10
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +33 -167
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +167 -33
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton.mjs +48 -21
- package/es/components/skeleton/src/skeleton.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +21 -48
- package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/slider.mjs +238 -88
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +88 -238
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +13 -71
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +71 -13
- 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/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +8 -18
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +18 -8
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +27 -1
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/root.mjs +17 -79
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +79 -17
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +77 -19
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +19 -77
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/transfer/src/composables/use-check.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +130 -19
- package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
- package/es/components/transfer/src/transfer-panel2.mjs +19 -130
- package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +1 -1
- package/es/directives/click-outside/index.mjs +1 -1
- package/es/hooks/use-focus-controller/index.mjs +1 -1
- package/es/hooks/use-lockscreen/index.mjs +1 -1
- package/es/index.mjs +20 -20
- package/es/locale/lang/hi.d.ts +180 -0
- package/es/locale/lang/hi.mjs +182 -0
- package/es/locale/lang/hi.mjs.map +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/index.js +2 -2
- package/lib/components/affix/src/affix.js +118 -26
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix2.js +26 -118
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +37 -88
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +88 -37
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/anchor/index.js +1 -1
- package/lib/components/anchor/src/anchor-link.js +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 +79 -363
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +363 -79
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +53 -22
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +22 -53
- package/lib/components/backtop/src/backtop2.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/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel.js +204 -62
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +62 -204
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/checkbox/index.js +2 -2
- 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/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -64
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +64 -43
- 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/divider/index.js +2 -2
- package/lib/components/divider/src/divider.js +16 -34
- package/lib/components/divider/src/divider.js.map +1 -1
- package/lib/components/divider/src/divider2.js +34 -16
- package/lib/components/divider/src/divider2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +323 -48
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +48 -323
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +152 -54
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +54 -152
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +46 -412
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +412 -46
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +20 -20
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +102 -430
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +430 -102
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/mention/src/mention-dropdown.js +166 -16
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +16 -166
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +2 -2
- package/lib/components/pagination/src/components/next.js +18 -35
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +35 -18
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/trigger.js +32 -127
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +127 -32
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.js +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +30 -44
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +44 -30
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/scrollbar/src/bar.js +10 -64
- package/lib/components/scrollbar/src/bar.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +64 -10
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +34 -167
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +167 -34
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton.js +48 -21
- package/lib/components/skeleton/src/skeleton.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +21 -48
- package/lib/components/skeleton/src/skeleton2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/slider.js +238 -89
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +89 -238
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +13 -71
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +71 -13
- 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/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +8 -18
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +18 -8
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/src/text2.js +26 -0
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/root.js +17 -79
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +79 -17
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +77 -19
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +19 -77
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/transfer/src/composables/use-check.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +130 -21
- package/lib/components/transfer/src/transfer-panel.js.map +1 -1
- package/lib/components/transfer/src/transfer-panel2.js +21 -130
- package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +1 -1
- package/lib/directives/click-outside/index.js +1 -1
- package/lib/hooks/use-focus-controller/index.js +1 -1
- package/lib/hooks/use-lockscreen/index.js +1 -1
- package/lib/index.js +20 -20
- package/lib/locale/lang/hi.d.ts +180 -0
- package/lib/locale/lang/hi.js +186 -0
- package/lib/locale/lang/hi.js.map +1 -0
- 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/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/select.scss +1 -0
- package/web-types.json +1 -1
@@ -2,106 +2,35 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
7
|
-
var iconsVue = require('@element-plus/icons-vue');
|
8
|
-
var tag = require('./tag2.js');
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
6
|
+
var size = require('../../../constants/size.js');
|
12
7
|
|
13
|
-
const
|
14
|
-
|
8
|
+
const tagProps = runtime.buildProps({
|
9
|
+
type: {
|
10
|
+
type: String,
|
11
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
12
|
+
default: "primary"
|
13
|
+
},
|
14
|
+
closable: Boolean,
|
15
|
+
disableTransitions: Boolean,
|
16
|
+
hit: Boolean,
|
17
|
+
color: String,
|
18
|
+
size: {
|
19
|
+
type: String,
|
20
|
+
values: size.componentSizes
|
21
|
+
},
|
22
|
+
effect: {
|
23
|
+
type: String,
|
24
|
+
values: ["dark", "light", "plain"],
|
25
|
+
default: "light"
|
26
|
+
},
|
27
|
+
round: Boolean
|
15
28
|
});
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
setup(__props, { emit }) {
|
21
|
-
const props = __props;
|
22
|
-
const tagSize = useFormCommonProps.useFormSize();
|
23
|
-
const ns = index.useNamespace("tag");
|
24
|
-
const containerKls = vue.computed(() => {
|
25
|
-
const { type, hit, effect, closable, round } = props;
|
26
|
-
return [
|
27
|
-
ns.b(),
|
28
|
-
ns.is("closable", closable),
|
29
|
-
ns.m(type || "primary"),
|
30
|
-
ns.m(tagSize.value),
|
31
|
-
ns.m(effect),
|
32
|
-
ns.is("hit", hit),
|
33
|
-
ns.is("round", round)
|
34
|
-
];
|
35
|
-
});
|
36
|
-
const handleClose = (event) => {
|
37
|
-
emit("close", event);
|
38
|
-
};
|
39
|
-
const handleClick = (event) => {
|
40
|
-
emit("click", event);
|
41
|
-
};
|
42
|
-
const handleVNodeMounted = (vnode) => {
|
43
|
-
var _a, _b, _c;
|
44
|
-
if ((_c = (_b = (_a = vnode == null ? void 0 : vnode.component) == null ? void 0 : _a.subTree) == null ? void 0 : _b.component) == null ? void 0 : _c.bum) {
|
45
|
-
vnode.component.subTree.component.bum = null;
|
46
|
-
}
|
47
|
-
};
|
48
|
-
return (_ctx, _cache) => {
|
49
|
-
return _ctx.disableTransitions ? (vue.openBlock(), vue.createElementBlock("span", {
|
50
|
-
key: 0,
|
51
|
-
class: vue.normalizeClass(vue.unref(containerKls)),
|
52
|
-
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
53
|
-
onClick: handleClick
|
54
|
-
}, [
|
55
|
-
vue.createElementVNode("span", {
|
56
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
57
|
-
}, [
|
58
|
-
vue.renderSlot(_ctx.$slots, "default")
|
59
|
-
], 2),
|
60
|
-
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
61
|
-
key: 0,
|
62
|
-
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
63
|
-
onClick: vue.withModifiers(handleClose, ["stop"])
|
64
|
-
}, {
|
65
|
-
default: vue.withCtx(() => [
|
66
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
67
|
-
]),
|
68
|
-
_: 1
|
69
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
70
|
-
], 6)) : (vue.openBlock(), vue.createBlock(vue.Transition, {
|
71
|
-
key: 1,
|
72
|
-
name: `${vue.unref(ns).namespace.value}-zoom-in-center`,
|
73
|
-
appear: "",
|
74
|
-
onVnodeMounted: handleVNodeMounted
|
75
|
-
}, {
|
76
|
-
default: vue.withCtx(() => [
|
77
|
-
vue.createElementVNode("span", {
|
78
|
-
class: vue.normalizeClass(vue.unref(containerKls)),
|
79
|
-
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
80
|
-
onClick: handleClick
|
81
|
-
}, [
|
82
|
-
vue.createElementVNode("span", {
|
83
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
84
|
-
}, [
|
85
|
-
vue.renderSlot(_ctx.$slots, "default")
|
86
|
-
], 2),
|
87
|
-
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
88
|
-
key: 0,
|
89
|
-
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
90
|
-
onClick: vue.withModifiers(handleClose, ["stop"])
|
91
|
-
}, {
|
92
|
-
default: vue.withCtx(() => [
|
93
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
94
|
-
]),
|
95
|
-
_: 1
|
96
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
97
|
-
], 6)
|
98
|
-
]),
|
99
|
-
_: 3
|
100
|
-
}, 8, ["name"]));
|
101
|
-
};
|
102
|
-
}
|
103
|
-
});
|
104
|
-
var Tag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tag.vue"]]);
|
29
|
+
const tagEmits = {
|
30
|
+
close: (evt) => evt instanceof MouseEvent,
|
31
|
+
click: (evt) => evt instanceof MouseEvent
|
32
|
+
};
|
105
33
|
|
106
|
-
exports
|
34
|
+
exports.tagEmits = tagEmits;
|
35
|
+
exports.tagProps = tagProps;
|
107
36
|
//# sourceMappingURL=tag.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tag.js","sources":["../../../../../../packages/components/tag/src/tag.
|
1
|
+
{"version":3,"file":"tag.js","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['primary', 'success', 'info', 'warning', 'danger'],\n default: 'primary',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: String,\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;AAEY,MAAC,QAAQ,GAAGA,kBAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC;AAC/D,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,mBAAc;AAC1B,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
|
@@ -2,35 +2,106 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var index$1 = require('../../icon/index.js');
|
7
|
+
var iconsVue = require('@element-plus/icons-vue');
|
8
|
+
var tag = require('./tag.js');
|
9
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
+
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
7
12
|
|
8
|
-
const
|
9
|
-
|
10
|
-
type: String,
|
11
|
-
values: ["primary", "success", "info", "warning", "danger"],
|
12
|
-
default: "primary"
|
13
|
-
},
|
14
|
-
closable: Boolean,
|
15
|
-
disableTransitions: Boolean,
|
16
|
-
hit: Boolean,
|
17
|
-
color: String,
|
18
|
-
size: {
|
19
|
-
type: String,
|
20
|
-
values: size.componentSizes
|
21
|
-
},
|
22
|
-
effect: {
|
23
|
-
type: String,
|
24
|
-
values: ["dark", "light", "plain"],
|
25
|
-
default: "light"
|
26
|
-
},
|
27
|
-
round: Boolean
|
13
|
+
const __default__ = vue.defineComponent({
|
14
|
+
name: "ElTag"
|
28
15
|
});
|
29
|
-
const
|
30
|
-
|
31
|
-
|
32
|
-
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
17
|
+
...__default__,
|
18
|
+
props: tag.tagProps,
|
19
|
+
emits: tag.tagEmits,
|
20
|
+
setup(__props, { emit }) {
|
21
|
+
const props = __props;
|
22
|
+
const tagSize = useFormCommonProps.useFormSize();
|
23
|
+
const ns = index.useNamespace("tag");
|
24
|
+
const containerKls = vue.computed(() => {
|
25
|
+
const { type, hit, effect, closable, round } = props;
|
26
|
+
return [
|
27
|
+
ns.b(),
|
28
|
+
ns.is("closable", closable),
|
29
|
+
ns.m(type || "primary"),
|
30
|
+
ns.m(tagSize.value),
|
31
|
+
ns.m(effect),
|
32
|
+
ns.is("hit", hit),
|
33
|
+
ns.is("round", round)
|
34
|
+
];
|
35
|
+
});
|
36
|
+
const handleClose = (event) => {
|
37
|
+
emit("close", event);
|
38
|
+
};
|
39
|
+
const handleClick = (event) => {
|
40
|
+
emit("click", event);
|
41
|
+
};
|
42
|
+
const handleVNodeMounted = (vnode) => {
|
43
|
+
var _a, _b, _c;
|
44
|
+
if ((_c = (_b = (_a = vnode == null ? void 0 : vnode.component) == null ? void 0 : _a.subTree) == null ? void 0 : _b.component) == null ? void 0 : _c.bum) {
|
45
|
+
vnode.component.subTree.component.bum = null;
|
46
|
+
}
|
47
|
+
};
|
48
|
+
return (_ctx, _cache) => {
|
49
|
+
return _ctx.disableTransitions ? (vue.openBlock(), vue.createElementBlock("span", {
|
50
|
+
key: 0,
|
51
|
+
class: vue.normalizeClass(vue.unref(containerKls)),
|
52
|
+
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
53
|
+
onClick: handleClick
|
54
|
+
}, [
|
55
|
+
vue.createElementVNode("span", {
|
56
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
57
|
+
}, [
|
58
|
+
vue.renderSlot(_ctx.$slots, "default")
|
59
|
+
], 2),
|
60
|
+
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
61
|
+
key: 0,
|
62
|
+
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
63
|
+
onClick: vue.withModifiers(handleClose, ["stop"])
|
64
|
+
}, {
|
65
|
+
default: vue.withCtx(() => [
|
66
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
67
|
+
]),
|
68
|
+
_: 1
|
69
|
+
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
70
|
+
], 6)) : (vue.openBlock(), vue.createBlock(vue.Transition, {
|
71
|
+
key: 1,
|
72
|
+
name: `${vue.unref(ns).namespace.value}-zoom-in-center`,
|
73
|
+
appear: "",
|
74
|
+
onVnodeMounted: handleVNodeMounted
|
75
|
+
}, {
|
76
|
+
default: vue.withCtx(() => [
|
77
|
+
vue.createElementVNode("span", {
|
78
|
+
class: vue.normalizeClass(vue.unref(containerKls)),
|
79
|
+
style: vue.normalizeStyle({ backgroundColor: _ctx.color }),
|
80
|
+
onClick: handleClick
|
81
|
+
}, [
|
82
|
+
vue.createElementVNode("span", {
|
83
|
+
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
84
|
+
}, [
|
85
|
+
vue.renderSlot(_ctx.$slots, "default")
|
86
|
+
], 2),
|
87
|
+
_ctx.closable ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
88
|
+
key: 0,
|
89
|
+
class: vue.normalizeClass(vue.unref(ns).e("close")),
|
90
|
+
onClick: vue.withModifiers(handleClose, ["stop"])
|
91
|
+
}, {
|
92
|
+
default: vue.withCtx(() => [
|
93
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
97
|
+
], 6)
|
98
|
+
]),
|
99
|
+
_: 3
|
100
|
+
}, 8, ["name"]));
|
101
|
+
};
|
102
|
+
}
|
103
|
+
});
|
104
|
+
var Tag = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tag.vue"]]);
|
33
105
|
|
34
|
-
exports
|
35
|
-
exports.tagProps = tagProps;
|
106
|
+
exports["default"] = Tag;
|
36
107
|
//# sourceMappingURL=tag2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.
|
1
|
+
{"version":3,"file":"tag2.js","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition\n v-else\n :name=\"`${ns.namespace.value}-zoom-in-center`\"\n appear\n @vue:mounted=\"handleVNodeMounted\"\n >\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\nimport type { VNode } from 'vue'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type || 'primary'),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n\nconst handleVNodeMounted = (vnode: VNode) => {\n // @ts-ignore\n if (vnode?.component?.subTree?.component?.bum) {\n // @ts-ignore\n vnode.component.subTree.component.bum = null\n }\n}\n</script>\n"],"names":["useFormSize","useNamespace","computed"],"mappings":";;;;;;;;;;;;uCA6Cc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAUA,8BAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAKC,mBAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAM,EAAA,GAAA,EAAK,MAAQ,EAAA,QAAA,EAAU,OAAU,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,CAAE,CAAA,IAAA,IAAQ,SAAS,CAAA;AAAA,QACtB,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,kBAAA,GAAqB,CAAC,KAAiB,KAAA;AAE3C,MAAA,IAAI,EAAO,EAAA,EAAA,EAAA,EAAA,CAAA;AAET,MAAM,IAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAkB,GAAA,KAAA,IAAA,IAAA,GAAgB,KAAA,CAAA,GAAA,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,SAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,GAAA,EAAA;AAAA,QAC1C,KAAA,CAAA,SAAA,CAAA,OAAA,CAAA,SAAA,CAAA,GAAA,GAAA,IAAA,CAAA;AAAA,OACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var teleport$1 = require('./src/
|
6
|
-
var teleport = require('./src/
|
5
|
+
var teleport$1 = require('./src/teleport2.js');
|
6
|
+
var teleport = require('./src/teleport.js');
|
7
7
|
var install = require('../../utils/vue/install.js');
|
8
8
|
|
9
9
|
const ElTeleport = install.withInstall(teleport$1["default"]);
|
@@ -2,25 +2,15 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var teleport = require('./teleport2.js');
|
7
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
8
6
|
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
key: 1,
|
16
|
-
to: _ctx.to
|
17
|
-
}, [
|
18
|
-
vue.renderSlot(_ctx.$slots, "default")
|
19
|
-
], 8, ["to"]));
|
20
|
-
};
|
21
|
-
}
|
7
|
+
const teleportProps = runtime.buildProps({
|
8
|
+
to: {
|
9
|
+
type: runtime.definePropType([String, Object]),
|
10
|
+
required: true
|
11
|
+
},
|
12
|
+
disabled: Boolean
|
22
13
|
});
|
23
|
-
var Teleport = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "teleport.vue"]]);
|
24
14
|
|
25
|
-
exports
|
15
|
+
exports.teleportProps = teleportProps;
|
26
16
|
//# sourceMappingURL=teleport.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"teleport.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"teleport.js","sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n to: {\n type: definePropType<string | HTMLElement>([String, Object]),\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC;;;;"}
|
@@ -2,15 +2,25 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var teleport = require('./teleport.js');
|
7
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
6
8
|
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
10
|
+
__name: "teleport",
|
11
|
+
props: teleport.teleportProps,
|
12
|
+
setup(__props) {
|
13
|
+
return (_ctx, _cache) => {
|
14
|
+
return _ctx.disabled ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
15
|
+
key: 1,
|
16
|
+
to: _ctx.to
|
17
|
+
}, [
|
18
|
+
vue.renderSlot(_ctx.$slots, "default")
|
19
|
+
], 8, ["to"]));
|
20
|
+
};
|
21
|
+
}
|
13
22
|
});
|
23
|
+
var Teleport = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "teleport.vue"]]);
|
14
24
|
|
15
|
-
exports
|
25
|
+
exports["default"] = Teleport;
|
16
26
|
//# sourceMappingURL=teleport2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"teleport2.js","sources":[
|
1
|
+
{"version":3,"file":"teleport2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
17
|
props: text.textProps,
|
18
18
|
setup(__props) {
|
19
19
|
const props = __props;
|
20
|
+
const textRef = vue.ref();
|
20
21
|
const textSize = useFormCommonProps.useFormSize();
|
21
22
|
const ns = index.useNamespace("text");
|
22
23
|
const textKls = vue.computed(() => [
|
@@ -26,8 +27,33 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
26
27
|
ns.is("truncated", props.truncated),
|
27
28
|
ns.is("line-clamp", !types.isUndefined(props.lineClamp))
|
28
29
|
]);
|
30
|
+
vue.watchEffect(() => {
|
31
|
+
var _a, _b, _c, _d, _e;
|
32
|
+
if (props.truncated || !types.isUndefined(props.lineClamp)) {
|
33
|
+
let shouldAddTitle = false;
|
34
|
+
const text = ((_a = textRef.value) == null ? void 0 : _a.textContent) || "";
|
35
|
+
if (props.truncated) {
|
36
|
+
const width = (_b = textRef.value) == null ? void 0 : _b.offsetWidth;
|
37
|
+
const scrollWidth = (_c = textRef.value) == null ? void 0 : _c.scrollWidth;
|
38
|
+
if (width && scrollWidth && scrollWidth > width) {
|
39
|
+
shouldAddTitle = true;
|
40
|
+
}
|
41
|
+
} else if (!types.isUndefined(props.lineClamp)) {
|
42
|
+
const height = (_d = textRef.value) == null ? void 0 : _d.offsetHeight;
|
43
|
+
const scrollHeight = (_e = textRef.value) == null ? void 0 : _e.scrollHeight;
|
44
|
+
if (height && scrollHeight && scrollHeight > height) {
|
45
|
+
shouldAddTitle = true;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
if (shouldAddTitle) {
|
49
|
+
textRef.value.setAttribute("title", text);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}, { flush: "post" });
|
29
53
|
return (_ctx, _cache) => {
|
30
54
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
55
|
+
ref_key: "textRef",
|
56
|
+
ref: textRef,
|
31
57
|
class: vue.normalizeClass(vue.unref(textKls)),
|
32
58
|
style: vue.normalizeStyle({ "-webkit-line-clamp": _ctx.lineClamp })
|
33
59
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text2.js","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :class=\"textKls\"\n :style=\"{ '-webkit-line-clamp': lineClamp }\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isUndefined } from '@element-plus/utils'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\n\nconst textSize = useFormSize()\nconst ns = useNamespace('text')\n\nconst textKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.m(textSize.value),\n ns.is('truncated', props.truncated),\n ns.is('line-clamp', !isUndefined(props.lineClamp)),\n])\n</script>\n"],"names":["useFormSize","useNamespace","computed","isUndefined"],"mappings":";;;;;;;;;;;
|
1
|
+
{"version":3,"file":"text2.js","sources":["../../../../../../packages/components/text/src/text.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"textRef\"\n :class=\"textKls\"\n :style=\"{ '-webkit-line-clamp': lineClamp }\"\n >\n <slot />\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watchEffect } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isUndefined } from '@element-plus/utils'\nimport { textProps } from './text'\n\ndefineOptions({\n name: 'ElText',\n})\n\nconst props = defineProps(textProps)\nconst textRef = ref<HTMLElement>()\n\nconst textSize = useFormSize()\nconst ns = useNamespace('text')\n\nconst textKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.m(textSize.value),\n ns.is('truncated', props.truncated),\n ns.is('line-clamp', !isUndefined(props.lineClamp)),\n])\n\nwatchEffect(\n () => {\n if (props.truncated || !isUndefined(props.lineClamp)) {\n let shouldAddTitle = false\n const text = textRef.value?.textContent || ''\n if (props.truncated) {\n const width = textRef.value?.offsetWidth\n const scrollWidth = textRef.value?.scrollWidth\n if (width && scrollWidth && scrollWidth > width) {\n shouldAddTitle = true\n }\n } else if (!isUndefined(props.lineClamp)) {\n const height = textRef.value?.offsetHeight\n const scrollHeight = textRef.value?.scrollHeight\n if (height && scrollHeight && scrollHeight > height) {\n shouldAddTitle = true\n }\n }\n if (shouldAddTitle) {\n textRef.value!.setAttribute('title', text)\n }\n }\n },\n { flush: 'post' }\n)\n</script>\n"],"names":["ref","useFormSize","useNamespace","computed","isUndefined","watchEffect","_openBlock","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;uCAkBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAA,MAAM,UAAUA,OAAiB,EAAA,CAAA;AAEjC,IAAA,MAAM,WAAWC,8BAAY,EAAA,CAAA;AAC7B,IAAM,MAAA,EAAA,GAAKC,mBAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAAA,MAC7B,GAAG,CAAE,EAAA;AAAA,MACL,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACf,EAAA,CAAG,CAAE,CAAA,QAAA,CAAS,KAAK,CAAA;AAAA,MACnB,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,KAAA,CAAM,SAAS,CAAA;AAAA,MAClC,GAAG,EAAG,CAAA,YAAA,EAAc,CAACC,iBAAY,CAAA,KAAA,CAAM,SAAS,CAAC,CAAA;AAAA,KAClD,CAAA,CAAA;AAED,IAAAC,eAAA,CAAA,MAAA;AAAA,MACE,IAAM,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AACJ,MAAA,IAAA,eAAuB,IAAA,CAAAD,iBAAa,CAAA,KAAA,CAAA,YAAkB;AACpD,QAAA,IAAA,cAAqB,GAAA,KAAA,CAAA;AACrB,QAAM,MAAA,IAAA,GAAA,CAAA,CAAO,EAAQ,GAAA,OAAA,CAAA,KAAsB,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAA,KAAA,EAAA,CAAA;AAC3C,QAAA,IAAA,eAAqB,EAAA;AACnB,UAAM,MAAA,KAAA,GAAA,CAAA,YAAuB,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAA,CAAA;AAC7B,UAAM,MAAA,WAAA,GAAA,CAAA,YAA6B,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,WAAA,CAAA;AACnC,UAAI,IAAA,KAAA,IAAA,WAAwB,IAAA,WAAA,GAAA,KAAqB,EAAA;AAC/C,YAAiB,cAAA,GAAA,IAAA,CAAA;AAAA,WACnB;AAAA,SAAA,MACS,IAAA,CAAAA,iBAAa,CAAA,KAAA,CAAA,YAAkB;AACxC,UAAM,MAAA,MAAA,GAAA,CAAA,YAAwB,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,YAAA,CAAA;AAC9B,UAAM,MAAA,YAAA,GAAA,CAAA,YAA8B,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,YAAA,CAAA;AACpC,UAAI,IAAA,MAAA,IAAA,YAA0B,IAAA,YAAA,GAAA,MAAuB,EAAA;AACnD,YAAiB,cAAA,GAAA,IAAA,CAAA;AAAA,WACnB;AAAA,SACF;AACA,QAAA,IAAA,cAAoB,EAAA;AAClB,UAAQ,OAAA,CAAA,KAAA,CAAA,YAAoB,CAAA,OAAA,EAAA,IAAa,CAAA,CAAA;AAAA,SAC3C;AAAA,OACF;AAAA,KACF,EAAA,EAAA,KAAA,EAAA,MAAA,EAAA,CAAA,CAAA;AAAA,IACA,YAAgB,EAAA,MAAA,KAAA;AAAA,MAClB,OAAAE,aAAA,EAAA,EAAAC,eAAA,CAAAC,2BAAA,CAAA,IAAA,CAAA,GAAA,CAAA,EAAA;;;;;;;;;;;;;;;;;;"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var trigger = require('../../popper/src/
|
5
|
+
var trigger = require('../../popper/src/trigger.js');
|
6
6
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
7
7
|
var aria = require('../../../constants/aria.js');
|
8
8
|
|
@@ -8,7 +8,7 @@ var constants = require('./constants.js');
|
|
8
8
|
var trigger = require('./trigger.js');
|
9
9
|
var utils = require('./utils.js');
|
10
10
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
11
|
-
var trigger$1 = require('../../popper/src/
|
11
|
+
var trigger$1 = require('../../popper/src/trigger2.js');
|
12
12
|
var event = require('../../../utils/dom/event.js');
|
13
13
|
var index = require('../../../hooks/use-namespace/index.js');
|
14
14
|
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var tooltip$1 = require('./src/
|
5
|
+
var tooltip$1 = require('./src/tooltip.js');
|
6
6
|
var arrow = require('./src/arrow.js');
|
7
7
|
var content = require('./src/content.js');
|
8
|
-
var root = require('./src/
|
9
|
-
var tooltip = require('./src/
|
8
|
+
var root = require('./src/root.js');
|
9
|
+
var tooltip = require('./src/tooltip2.js');
|
10
10
|
var trigger = require('./src/trigger.js');
|
11
11
|
var constants = require('./src/constants.js');
|
12
12
|
var install = require('../../utils/vue/install.js');
|
@@ -2,87 +2,25 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
6
|
-
var core = require('@vueuse/core');
|
7
|
-
var constants = require('./constants.js');
|
8
|
-
var root = require('./root2.js');
|
9
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
10
|
-
var types = require('../../../utils/types.js');
|
11
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
12
|
-
var index$1 = require('../../../hooks/use-id/index.js');
|
5
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
13
6
|
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
(_a = props["onUpdate:open"]) == null ? void 0 : _a.call(props, open2);
|
30
|
-
}
|
31
|
-
});
|
32
|
-
const isOpenDelayed = vue.computed(() => types.isNumber(props.delayDuration) && props.delayDuration > 0);
|
33
|
-
const { start: onDelayedOpen, stop: clearTimer } = core.useTimeoutFn(() => {
|
34
|
-
open.value = true;
|
35
|
-
}, vue.computed(() => props.delayDuration), {
|
36
|
-
immediate: false
|
37
|
-
});
|
38
|
-
const ns = index.useNamespace("tooltip-v2");
|
39
|
-
const contentId = index$1.useId();
|
40
|
-
const onNormalOpen = () => {
|
41
|
-
clearTimer();
|
42
|
-
open.value = true;
|
43
|
-
};
|
44
|
-
const onDelayOpen = () => {
|
45
|
-
vue.unref(isOpenDelayed) ? onDelayedOpen() : onNormalOpen();
|
46
|
-
};
|
47
|
-
const onOpen = onNormalOpen;
|
48
|
-
const onClose = () => {
|
49
|
-
clearTimer();
|
50
|
-
open.value = false;
|
51
|
-
};
|
52
|
-
const onChange = (open2) => {
|
53
|
-
var _a;
|
54
|
-
if (open2) {
|
55
|
-
document.dispatchEvent(new CustomEvent(constants.TOOLTIP_V2_OPEN));
|
56
|
-
onOpen();
|
57
|
-
}
|
58
|
-
(_a = props.onOpenChange) == null ? void 0 : _a.call(props, open2);
|
59
|
-
};
|
60
|
-
vue.watch(open, onChange);
|
61
|
-
vue.onMounted(() => {
|
62
|
-
document.addEventListener(constants.TOOLTIP_V2_OPEN, onClose);
|
63
|
-
});
|
64
|
-
vue.onBeforeUnmount(() => {
|
65
|
-
clearTimer();
|
66
|
-
document.removeEventListener(constants.TOOLTIP_V2_OPEN, onClose);
|
67
|
-
});
|
68
|
-
vue.provide(constants.tooltipV2RootKey, {
|
69
|
-
contentId,
|
70
|
-
triggerRef,
|
71
|
-
ns,
|
72
|
-
onClose,
|
73
|
-
onDelayOpen,
|
74
|
-
onOpen
|
75
|
-
});
|
76
|
-
expose({
|
77
|
-
onOpen,
|
78
|
-
onClose
|
79
|
-
});
|
80
|
-
return (_ctx, _cache) => {
|
81
|
-
return vue.renderSlot(_ctx.$slots, "default", { open: vue.unref(open) });
|
82
|
-
};
|
7
|
+
const tooltipV2RootProps = runtime.buildProps({
|
8
|
+
delayDuration: {
|
9
|
+
type: Number,
|
10
|
+
default: 300
|
11
|
+
},
|
12
|
+
defaultOpen: Boolean,
|
13
|
+
open: {
|
14
|
+
type: Boolean,
|
15
|
+
default: void 0
|
16
|
+
},
|
17
|
+
onOpenChange: {
|
18
|
+
type: runtime.definePropType(Function)
|
19
|
+
},
|
20
|
+
"onUpdate:open": {
|
21
|
+
type: runtime.definePropType(Function)
|
83
22
|
}
|
84
23
|
});
|
85
|
-
var TooltipV2Root = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "root.vue"]]);
|
86
24
|
|
87
|
-
exports
|
25
|
+
exports.tooltipV2RootProps = tooltipV2RootProps;
|
88
26
|
//# sourceMappingURL=root.js.map
|