@element-plus/nightly 0.0.20250106 → 0.0.20250108
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/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/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +10 -37
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +37 -10
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.mjs +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/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +38 -14
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +14 -38
- package/es/components/check-tag/src/check-tag2.mjs.map +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/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +28 -16
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +16 -28
- package/es/components/collapse/src/collapse2.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/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 +25 -25
- 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/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +68 -142
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +142 -68
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +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/components/total.mjs +26 -6
- package/es/components/pagination/src/components/total.mjs.map +1 -1
- package/es/components/pagination/src/components/total2.mjs +6 -26
- package/es/components/pagination/src/components/total2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/trigger.mjs +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/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-group.mjs +65 -34
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +34 -65
- package/es/components/radio/src/radio-group2.mjs.map +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/index.mjs +2 -2
- 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/scrollbar.mjs +170 -55
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +55 -170
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +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 +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- 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/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/tabs/index.mjs +3 -3
- package/es/components/tabs/src/tab-bar.mjs +95 -7
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +7 -95
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tabs/src/tab-pane.mjs +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 +2 -2
- 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 +2 -2
- package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
- package/es/components/tooltip-v2/src/trigger.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +12 -89
- package/es/components/tooltip-v2/src/trigger2.mjs.map +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/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 +25 -25
- 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/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/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +10 -37
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +37 -10
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button-group.js +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/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +38 -15
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +15 -38
- package/lib/components/check-tag/src/check-tag2.js.map +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/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +28 -18
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +18 -28
- package/lib/components/collapse/src/collapse2.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/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 +25 -25
- 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/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +69 -141
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +141 -69
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/next.js +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/components/total.js +26 -6
- package/lib/components/pagination/src/components/total.js.map +1 -1
- package/lib/components/pagination/src/components/total2.js +6 -26
- package/lib/components/pagination/src/components/total2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/trigger.js +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/radio/index.js +2 -2
- package/lib/components/radio/src/radio-group.js +65 -35
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +35 -65
- package/lib/components/radio/src/radio-group2.js.map +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/index.js +2 -2
- 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/scrollbar.js +170 -56
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +56 -170
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +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 +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +22 -17
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +17 -22
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- 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/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/tabs/index.js +3 -3
- package/lib/components/tabs/src/tab-bar.js +95 -7
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +7 -95
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tabs/src/tab-pane.js +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 +2 -2
- 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 +2 -2
- package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
- package/lib/components/tooltip-v2/src/trigger.js +89 -12
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +12 -89
- package/lib/components/tooltip-v2/src/trigger2.js.map +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/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 +25 -25
- 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
@@ -1,39 +1,21 @@
|
|
1
|
-
import {
|
2
|
-
import { dividerProps } from './divider2.mjs';
|
3
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
4
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
5
2
|
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
return (_ctx, _cache) => {
|
21
|
-
return openBlock(), createElementBlock("div", {
|
22
|
-
class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
|
23
|
-
style: normalizeStyle(unref(dividerStyle)),
|
24
|
-
role: "separator"
|
25
|
-
}, [
|
26
|
-
_ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
|
27
|
-
key: 0,
|
28
|
-
class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
|
29
|
-
}, [
|
30
|
-
renderSlot(_ctx.$slots, "default")
|
31
|
-
], 2)) : createCommentVNode("v-if", true)
|
32
|
-
], 6);
|
33
|
-
};
|
3
|
+
const dividerProps = buildProps({
|
4
|
+
direction: {
|
5
|
+
type: String,
|
6
|
+
values: ["horizontal", "vertical"],
|
7
|
+
default: "horizontal"
|
8
|
+
},
|
9
|
+
contentPosition: {
|
10
|
+
type: String,
|
11
|
+
values: ["left", "center", "right"],
|
12
|
+
default: "center"
|
13
|
+
},
|
14
|
+
borderStyle: {
|
15
|
+
type: definePropType(String),
|
16
|
+
default: "solid"
|
34
17
|
}
|
35
18
|
});
|
36
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "divider.vue"]]);
|
37
19
|
|
38
|
-
export {
|
20
|
+
export { dividerProps };
|
39
21
|
//# sourceMappingURL=divider.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"divider.mjs","sources":["../../../../../../packages/components/divider/src/divider.
|
1
|
+
{"version":3,"file":"divider.mjs","sources":["../../../../../../packages/components/divider/src/divider.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Divider from './divider.vue'\n\nexport type BorderStyle = CSSStyleDeclaration['borderStyle']\n\nexport const dividerProps = buildProps({\n /**\n * @description Set divider's direction\n */\n direction: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'horizontal',\n },\n /**\n * @description Set the style of divider\n */\n contentPosition: {\n type: String,\n values: ['left', 'center', 'right'],\n default: 'center',\n },\n /**\n * @description the position of the customized content on the divider line\n */\n borderStyle: {\n type: definePropType<BorderStyle>(String),\n default: 'solid',\n },\n} as const)\nexport type DividerProps = ExtractPropTypes<typeof dividerProps>\n\nexport type DividerInstance = InstanceType<typeof Divider>\n"],"names":[],"mappings":";;AACY,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,YAAY;AACzB,GAAG;AACH,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;AACvC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC;;;;"}
|
@@ -1,21 +1,39 @@
|
|
1
|
-
import {
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot, createCommentVNode } from 'vue';
|
2
|
+
import { dividerProps } from './divider.mjs';
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
4
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
2
5
|
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
6
|
+
const __default__ = defineComponent({
|
7
|
+
name: "ElDivider"
|
8
|
+
});
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
+
...__default__,
|
11
|
+
props: dividerProps,
|
12
|
+
setup(__props) {
|
13
|
+
const props = __props;
|
14
|
+
const ns = useNamespace("divider");
|
15
|
+
const dividerStyle = computed(() => {
|
16
|
+
return ns.cssVar({
|
17
|
+
"border-style": props.borderStyle
|
18
|
+
});
|
19
|
+
});
|
20
|
+
return (_ctx, _cache) => {
|
21
|
+
return openBlock(), createElementBlock("div", {
|
22
|
+
class: normalizeClass([unref(ns).b(), unref(ns).m(_ctx.direction)]),
|
23
|
+
style: normalizeStyle(unref(dividerStyle)),
|
24
|
+
role: "separator"
|
25
|
+
}, [
|
26
|
+
_ctx.$slots.default && _ctx.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
|
27
|
+
key: 0,
|
28
|
+
class: normalizeClass([unref(ns).e("text"), unref(ns).is(_ctx.contentPosition)])
|
29
|
+
}, [
|
30
|
+
renderSlot(_ctx.$slots, "default")
|
31
|
+
], 2)) : createCommentVNode("v-if", true)
|
32
|
+
], 6);
|
33
|
+
};
|
17
34
|
}
|
18
35
|
});
|
36
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "divider.vue"]]);
|
19
37
|
|
20
|
-
export {
|
38
|
+
export { Divider as default };
|
21
39
|
//# sourceMappingURL=divider2.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"divider2.mjs","sources":["../../../../../../packages/components/divider/src/divider.
|
1
|
+
{"version":3,"file":"divider2.mjs","sources":["../../../../../../packages/components/divider/src/divider.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.m(direction)]\"\n :style=\"dividerStyle\"\n role=\"separator\"\n >\n <div\n v-if=\"$slots.default && direction !== 'vertical'\"\n :class=\"[ns.e('text'), ns.is(contentPosition)]\"\n >\n <slot />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { dividerProps } from './divider'\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElDivider',\n})\nconst props = defineProps(dividerProps)\nconst ns = useNamespace('divider')\nconst dividerStyle = computed(() => {\n return ns.cssVar({\n 'border-style': props.borderStyle,\n }) as CSSProperties\n})\n</script>\n"],"names":[],"mappings":";;;;;mCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAEA,IAAM,MAAA,EAAA,GAAK,aAAa,SAAS,CAAA,CAAA;AACjC,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,OAAO,GAAG,MAAO,CAAA;AAAA,QACf,gBAAgB,KAAM,CAAA,WAAA;AAAA,OACvB,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import ImageViewer from './src/image-
|
2
|
-
export { imageViewerEmits, imageViewerProps } from './src/image-
|
1
|
+
import ImageViewer from './src/image-viewer2.mjs';
|
2
|
+
export { imageViewerEmits, imageViewerProps } from './src/image-viewer.mjs';
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
4
4
|
|
5
5
|
const ElImageViewer = withInstall(ImageViewer);
|
@@ -1,417 +1,50 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import ElFocusTrap from '../../focus-trap/src/focus-trap.mjs';
|
5
|
-
import { ElTeleport } from '../../teleport/index.mjs';
|
6
|
-
import { ElIcon } from '../../icon/index.mjs';
|
7
|
-
import { FullScreen, ScaleToOriginal, Close, ArrowLeft, ArrowRight, ZoomOut, ZoomIn, RefreshLeft, RefreshRight } from '@element-plus/icons-vue';
|
8
|
-
import { imageViewerProps, imageViewerEmits } from './image-viewer2.mjs';
|
9
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
10
|
-
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
11
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
12
|
-
import { useZIndex } from '../../../hooks/use-z-index/index.mjs';
|
13
|
-
import { EVENT_CODE } from '../../../constants/aria.mjs';
|
14
|
-
import { keysOf } from '../../../utils/objects.mjs';
|
1
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
2
|
+
import { mutable } from '../../../utils/typescript.mjs';
|
3
|
+
import { isNumber } from '../../../utils/types.mjs';
|
15
4
|
|
16
|
-
const
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
const zIndex = ref((_a = props.zIndex) != null ? _a : nextZIndex());
|
53
|
-
const isSingle = computed(() => {
|
54
|
-
const { urlList } = props;
|
55
|
-
return urlList.length <= 1;
|
56
|
-
});
|
57
|
-
const isFirst = computed(() => {
|
58
|
-
return activeIndex.value === 0;
|
59
|
-
});
|
60
|
-
const isLast = computed(() => {
|
61
|
-
return activeIndex.value === props.urlList.length - 1;
|
62
|
-
});
|
63
|
-
const currentImg = computed(() => {
|
64
|
-
return props.urlList[activeIndex.value];
|
65
|
-
});
|
66
|
-
const arrowPrevKls = computed(() => [
|
67
|
-
ns.e("btn"),
|
68
|
-
ns.e("prev"),
|
69
|
-
ns.is("disabled", !props.infinite && isFirst.value)
|
70
|
-
]);
|
71
|
-
const arrowNextKls = computed(() => [
|
72
|
-
ns.e("btn"),
|
73
|
-
ns.e("next"),
|
74
|
-
ns.is("disabled", !props.infinite && isLast.value)
|
75
|
-
]);
|
76
|
-
const imgStyle = computed(() => {
|
77
|
-
const { scale, deg, offsetX, offsetY, enableTransition } = transform.value;
|
78
|
-
let translateX = offsetX / scale;
|
79
|
-
let translateY = offsetY / scale;
|
80
|
-
const radian = deg * Math.PI / 180;
|
81
|
-
const cosRadian = Math.cos(radian);
|
82
|
-
const sinRadian = Math.sin(radian);
|
83
|
-
translateX = translateX * cosRadian + translateY * sinRadian;
|
84
|
-
translateY = translateY * cosRadian - offsetX / scale * sinRadian;
|
85
|
-
const style = {
|
86
|
-
transform: `scale(${scale}) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,
|
87
|
-
transition: enableTransition ? "transform .3s" : ""
|
88
|
-
};
|
89
|
-
if (mode.value.name === modes.CONTAIN.name) {
|
90
|
-
style.maxWidth = style.maxHeight = "100%";
|
91
|
-
}
|
92
|
-
return style;
|
93
|
-
});
|
94
|
-
function hide() {
|
95
|
-
unregisterEventListener();
|
96
|
-
emit("close");
|
97
|
-
}
|
98
|
-
function registerEventListener() {
|
99
|
-
const keydownHandler = throttle((e) => {
|
100
|
-
switch (e.code) {
|
101
|
-
case EVENT_CODE.esc:
|
102
|
-
props.closeOnPressEscape && hide();
|
103
|
-
break;
|
104
|
-
case EVENT_CODE.space:
|
105
|
-
toggleMode();
|
106
|
-
break;
|
107
|
-
case EVENT_CODE.left:
|
108
|
-
prev();
|
109
|
-
break;
|
110
|
-
case EVENT_CODE.up:
|
111
|
-
handleActions("zoomIn");
|
112
|
-
break;
|
113
|
-
case EVENT_CODE.right:
|
114
|
-
next();
|
115
|
-
break;
|
116
|
-
case EVENT_CODE.down:
|
117
|
-
handleActions("zoomOut");
|
118
|
-
break;
|
119
|
-
}
|
120
|
-
});
|
121
|
-
const mousewheelHandler = throttle((e) => {
|
122
|
-
const delta = e.deltaY || e.deltaX;
|
123
|
-
handleActions(delta < 0 ? "zoomIn" : "zoomOut", {
|
124
|
-
zoomRate: props.zoomRate,
|
125
|
-
enableTransition: false
|
126
|
-
});
|
127
|
-
});
|
128
|
-
scopeEventListener.run(() => {
|
129
|
-
useEventListener(document, "keydown", keydownHandler);
|
130
|
-
useEventListener(document, "wheel", mousewheelHandler);
|
131
|
-
});
|
132
|
-
}
|
133
|
-
function unregisterEventListener() {
|
134
|
-
scopeEventListener.stop();
|
135
|
-
}
|
136
|
-
function handleImgLoad() {
|
137
|
-
loading.value = false;
|
138
|
-
}
|
139
|
-
function handleImgError(e) {
|
140
|
-
loading.value = false;
|
141
|
-
e.target.alt = t("el.image.error");
|
142
|
-
}
|
143
|
-
function handleMouseDown(e) {
|
144
|
-
if (loading.value || e.button !== 0 || !wrapper.value)
|
145
|
-
return;
|
146
|
-
transform.value.enableTransition = false;
|
147
|
-
const { offsetX, offsetY } = transform.value;
|
148
|
-
const startX = e.pageX;
|
149
|
-
const startY = e.pageY;
|
150
|
-
const dragHandler = throttle((ev) => {
|
151
|
-
transform.value = {
|
152
|
-
...transform.value,
|
153
|
-
offsetX: offsetX + ev.pageX - startX,
|
154
|
-
offsetY: offsetY + ev.pageY - startY
|
155
|
-
};
|
156
|
-
});
|
157
|
-
const removeMousemove = useEventListener(document, "mousemove", dragHandler);
|
158
|
-
useEventListener(document, "mouseup", () => {
|
159
|
-
removeMousemove();
|
160
|
-
});
|
161
|
-
e.preventDefault();
|
162
|
-
}
|
163
|
-
function reset() {
|
164
|
-
transform.value = {
|
165
|
-
scale: 1,
|
166
|
-
deg: 0,
|
167
|
-
offsetX: 0,
|
168
|
-
offsetY: 0,
|
169
|
-
enableTransition: false
|
170
|
-
};
|
171
|
-
}
|
172
|
-
function toggleMode() {
|
173
|
-
if (loading.value)
|
174
|
-
return;
|
175
|
-
const modeNames = keysOf(modes);
|
176
|
-
const modeValues = Object.values(modes);
|
177
|
-
const currentMode = mode.value.name;
|
178
|
-
const index = modeValues.findIndex((i) => i.name === currentMode);
|
179
|
-
const nextIndex = (index + 1) % modeNames.length;
|
180
|
-
mode.value = modes[modeNames[nextIndex]];
|
181
|
-
reset();
|
182
|
-
}
|
183
|
-
function setActiveItem(index) {
|
184
|
-
const len = props.urlList.length;
|
185
|
-
activeIndex.value = (index + len) % len;
|
186
|
-
}
|
187
|
-
function prev() {
|
188
|
-
if (isFirst.value && !props.infinite)
|
189
|
-
return;
|
190
|
-
setActiveItem(activeIndex.value - 1);
|
191
|
-
}
|
192
|
-
function next() {
|
193
|
-
if (isLast.value && !props.infinite)
|
194
|
-
return;
|
195
|
-
setActiveItem(activeIndex.value + 1);
|
196
|
-
}
|
197
|
-
function handleActions(action, options = {}) {
|
198
|
-
if (loading.value)
|
199
|
-
return;
|
200
|
-
const { minScale, maxScale } = props;
|
201
|
-
const { zoomRate, rotateDeg, enableTransition } = {
|
202
|
-
zoomRate: props.zoomRate,
|
203
|
-
rotateDeg: 90,
|
204
|
-
enableTransition: true,
|
205
|
-
...options
|
206
|
-
};
|
207
|
-
switch (action) {
|
208
|
-
case "zoomOut":
|
209
|
-
if (transform.value.scale > minScale) {
|
210
|
-
transform.value.scale = Number.parseFloat((transform.value.scale / zoomRate).toFixed(3));
|
211
|
-
}
|
212
|
-
break;
|
213
|
-
case "zoomIn":
|
214
|
-
if (transform.value.scale < maxScale) {
|
215
|
-
transform.value.scale = Number.parseFloat((transform.value.scale * zoomRate).toFixed(3));
|
216
|
-
}
|
217
|
-
break;
|
218
|
-
case "clockwise":
|
219
|
-
transform.value.deg += rotateDeg;
|
220
|
-
emit("rotate", transform.value.deg);
|
221
|
-
break;
|
222
|
-
case "anticlockwise":
|
223
|
-
transform.value.deg -= rotateDeg;
|
224
|
-
emit("rotate", transform.value.deg);
|
225
|
-
break;
|
226
|
-
}
|
227
|
-
transform.value.enableTransition = enableTransition;
|
228
|
-
}
|
229
|
-
function onFocusoutPrevented(event) {
|
230
|
-
var _a2;
|
231
|
-
if (((_a2 = event.detail) == null ? void 0 : _a2.focusReason) === "pointer") {
|
232
|
-
event.preventDefault();
|
233
|
-
}
|
234
|
-
}
|
235
|
-
function onCloseRequested() {
|
236
|
-
if (props.closeOnPressEscape) {
|
237
|
-
hide();
|
238
|
-
}
|
239
|
-
}
|
240
|
-
watch(currentImg, () => {
|
241
|
-
nextTick(() => {
|
242
|
-
const $img = imgRefs.value[0];
|
243
|
-
if (!($img == null ? void 0 : $img.complete)) {
|
244
|
-
loading.value = true;
|
245
|
-
}
|
246
|
-
});
|
247
|
-
});
|
248
|
-
watch(activeIndex, (val) => {
|
249
|
-
reset();
|
250
|
-
emit("switch", val);
|
251
|
-
});
|
252
|
-
onMounted(() => {
|
253
|
-
registerEventListener();
|
254
|
-
});
|
255
|
-
expose({
|
256
|
-
setActiveItem
|
257
|
-
});
|
258
|
-
return (_ctx, _cache) => {
|
259
|
-
return openBlock(), createBlock(unref(ElTeleport), {
|
260
|
-
to: "body",
|
261
|
-
disabled: !_ctx.teleported
|
262
|
-
}, {
|
263
|
-
default: withCtx(() => [
|
264
|
-
createVNode(Transition, {
|
265
|
-
name: "viewer-fade",
|
266
|
-
appear: ""
|
267
|
-
}, {
|
268
|
-
default: withCtx(() => [
|
269
|
-
createElementVNode("div", {
|
270
|
-
ref_key: "wrapper",
|
271
|
-
ref: wrapper,
|
272
|
-
tabindex: -1,
|
273
|
-
class: normalizeClass(unref(ns).e("wrapper")),
|
274
|
-
style: normalizeStyle({ zIndex: zIndex.value })
|
275
|
-
}, [
|
276
|
-
createVNode(unref(ElFocusTrap), {
|
277
|
-
loop: "",
|
278
|
-
trapped: "",
|
279
|
-
"focus-trap-el": wrapper.value,
|
280
|
-
"focus-start-el": "container",
|
281
|
-
onFocusoutPrevented,
|
282
|
-
onReleaseRequested: onCloseRequested
|
283
|
-
}, {
|
284
|
-
default: withCtx(() => [
|
285
|
-
createElementVNode("div", {
|
286
|
-
class: normalizeClass(unref(ns).e("mask")),
|
287
|
-
onClick: withModifiers(($event) => _ctx.hideOnClickModal && hide(), ["self"])
|
288
|
-
}, null, 10, ["onClick"]),
|
289
|
-
createCommentVNode(" CLOSE "),
|
290
|
-
createElementVNode("span", {
|
291
|
-
class: normalizeClass([unref(ns).e("btn"), unref(ns).e("close")]),
|
292
|
-
onClick: hide
|
293
|
-
}, [
|
294
|
-
createVNode(unref(ElIcon), null, {
|
295
|
-
default: withCtx(() => [
|
296
|
-
createVNode(unref(Close))
|
297
|
-
]),
|
298
|
-
_: 1
|
299
|
-
})
|
300
|
-
], 2),
|
301
|
-
createCommentVNode(" ARROW "),
|
302
|
-
!unref(isSingle) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
303
|
-
createElementVNode("span", {
|
304
|
-
class: normalizeClass(unref(arrowPrevKls)),
|
305
|
-
onClick: prev
|
306
|
-
}, [
|
307
|
-
createVNode(unref(ElIcon), null, {
|
308
|
-
default: withCtx(() => [
|
309
|
-
createVNode(unref(ArrowLeft))
|
310
|
-
]),
|
311
|
-
_: 1
|
312
|
-
})
|
313
|
-
], 2),
|
314
|
-
createElementVNode("span", {
|
315
|
-
class: normalizeClass(unref(arrowNextKls)),
|
316
|
-
onClick: next
|
317
|
-
}, [
|
318
|
-
createVNode(unref(ElIcon), null, {
|
319
|
-
default: withCtx(() => [
|
320
|
-
createVNode(unref(ArrowRight))
|
321
|
-
]),
|
322
|
-
_: 1
|
323
|
-
})
|
324
|
-
], 2)
|
325
|
-
], 64)) : createCommentVNode("v-if", true),
|
326
|
-
createCommentVNode(" ACTIONS "),
|
327
|
-
createElementVNode("div", {
|
328
|
-
class: normalizeClass([unref(ns).e("btn"), unref(ns).e("actions")])
|
329
|
-
}, [
|
330
|
-
createElementVNode("div", {
|
331
|
-
class: normalizeClass(unref(ns).e("actions__inner"))
|
332
|
-
}, [
|
333
|
-
createVNode(unref(ElIcon), {
|
334
|
-
onClick: ($event) => handleActions("zoomOut")
|
335
|
-
}, {
|
336
|
-
default: withCtx(() => [
|
337
|
-
createVNode(unref(ZoomOut))
|
338
|
-
]),
|
339
|
-
_: 1
|
340
|
-
}, 8, ["onClick"]),
|
341
|
-
createVNode(unref(ElIcon), {
|
342
|
-
onClick: ($event) => handleActions("zoomIn")
|
343
|
-
}, {
|
344
|
-
default: withCtx(() => [
|
345
|
-
createVNode(unref(ZoomIn))
|
346
|
-
]),
|
347
|
-
_: 1
|
348
|
-
}, 8, ["onClick"]),
|
349
|
-
createElementVNode("i", {
|
350
|
-
class: normalizeClass(unref(ns).e("actions__divider"))
|
351
|
-
}, null, 2),
|
352
|
-
createVNode(unref(ElIcon), { onClick: toggleMode }, {
|
353
|
-
default: withCtx(() => [
|
354
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(mode).icon)))
|
355
|
-
]),
|
356
|
-
_: 1
|
357
|
-
}),
|
358
|
-
createElementVNode("i", {
|
359
|
-
class: normalizeClass(unref(ns).e("actions__divider"))
|
360
|
-
}, null, 2),
|
361
|
-
createVNode(unref(ElIcon), {
|
362
|
-
onClick: ($event) => handleActions("anticlockwise")
|
363
|
-
}, {
|
364
|
-
default: withCtx(() => [
|
365
|
-
createVNode(unref(RefreshLeft))
|
366
|
-
]),
|
367
|
-
_: 1
|
368
|
-
}, 8, ["onClick"]),
|
369
|
-
createVNode(unref(ElIcon), {
|
370
|
-
onClick: ($event) => handleActions("clockwise")
|
371
|
-
}, {
|
372
|
-
default: withCtx(() => [
|
373
|
-
createVNode(unref(RefreshRight))
|
374
|
-
]),
|
375
|
-
_: 1
|
376
|
-
}, 8, ["onClick"])
|
377
|
-
], 2)
|
378
|
-
], 2),
|
379
|
-
createCommentVNode(" CANVAS "),
|
380
|
-
createElementVNode("div", {
|
381
|
-
class: normalizeClass(unref(ns).e("canvas"))
|
382
|
-
}, [
|
383
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.urlList, (url, i) => {
|
384
|
-
return withDirectives((openBlock(), createElementBlock("img", {
|
385
|
-
ref_for: true,
|
386
|
-
ref: (el) => imgRefs.value[i] = el,
|
387
|
-
key: url,
|
388
|
-
src: url,
|
389
|
-
style: normalizeStyle(unref(imgStyle)),
|
390
|
-
class: normalizeClass(unref(ns).e("img")),
|
391
|
-
crossorigin: _ctx.crossorigin,
|
392
|
-
onLoad: handleImgLoad,
|
393
|
-
onError: handleImgError,
|
394
|
-
onMousedown: handleMouseDown
|
395
|
-
}, null, 46, ["src", "crossorigin"])), [
|
396
|
-
[vShow, i === activeIndex.value]
|
397
|
-
]);
|
398
|
-
}), 128))
|
399
|
-
], 2),
|
400
|
-
renderSlot(_ctx.$slots, "default")
|
401
|
-
]),
|
402
|
-
_: 3
|
403
|
-
}, 8, ["focus-trap-el"])
|
404
|
-
], 6)
|
405
|
-
]),
|
406
|
-
_: 3
|
407
|
-
})
|
408
|
-
]),
|
409
|
-
_: 3
|
410
|
-
}, 8, ["disabled"]);
|
411
|
-
};
|
5
|
+
const imageViewerProps = buildProps({
|
6
|
+
urlList: {
|
7
|
+
type: definePropType(Array),
|
8
|
+
default: () => mutable([])
|
9
|
+
},
|
10
|
+
zIndex: {
|
11
|
+
type: Number
|
12
|
+
},
|
13
|
+
initialIndex: {
|
14
|
+
type: Number,
|
15
|
+
default: 0
|
16
|
+
},
|
17
|
+
infinite: {
|
18
|
+
type: Boolean,
|
19
|
+
default: true
|
20
|
+
},
|
21
|
+
hideOnClickModal: Boolean,
|
22
|
+
teleported: Boolean,
|
23
|
+
closeOnPressEscape: {
|
24
|
+
type: Boolean,
|
25
|
+
default: true
|
26
|
+
},
|
27
|
+
zoomRate: {
|
28
|
+
type: Number,
|
29
|
+
default: 1.2
|
30
|
+
},
|
31
|
+
minScale: {
|
32
|
+
type: Number,
|
33
|
+
default: 0.2
|
34
|
+
},
|
35
|
+
maxScale: {
|
36
|
+
type: Number,
|
37
|
+
default: 7
|
38
|
+
},
|
39
|
+
crossorigin: {
|
40
|
+
type: definePropType(String)
|
412
41
|
}
|
413
42
|
});
|
414
|
-
|
43
|
+
const imageViewerEmits = {
|
44
|
+
close: () => true,
|
45
|
+
switch: (index) => isNumber(index),
|
46
|
+
rotate: (deg) => isNumber(deg)
|
47
|
+
};
|
415
48
|
|
416
|
-
export {
|
49
|
+
export { imageViewerEmits, imageViewerProps };
|
417
50
|
//# sourceMappingURL=image-viewer.mjs.map
|