@element-plus/nightly 0.0.20250228 → 0.0.20250302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -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 +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +89 -36
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +36 -89
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +2 -2
- package/es/components/anchor/src/anchor.mjs +192 -42
- package/es/components/anchor/src/anchor.mjs.map +1 -1
- package/es/components/anchor/src/anchor2.mjs +42 -192
- package/es/components/anchor/src/anchor2.mjs.map +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +65 -31
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +31 -65
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +77 -56
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +56 -77
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +20 -42
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +42 -20
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +69 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +7 -69
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +222 -68
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +68 -222
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +446 -49
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +49 -446
- 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/index.mjs +2 -2
- package/es/components/input-tag/src/input-tag.mjs +215 -65
- package/es/components/input-tag/src/input-tag.mjs.map +1 -1
- package/es/components/input-tag/src/input-tag2.mjs +65 -215
- package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +97 -15
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +15 -97
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +142 -68
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +68 -142
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/jumper.mjs +58 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -58
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.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/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +28 -62
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +62 -28
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +55 -170
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +170 -55
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +4 -4
- package/es/components/skeleton/src/skeleton-item.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +22 -17
- 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/slider/src/button.mjs +91 -19
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +19 -91
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +72 -33
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +33 -72
- package/es/components/timeline/src/timeline-item2.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/arrow.mjs +37 -21
- package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
- package/es/components/tooltip-v2/src/arrow2.mjs +21 -37
- package/es/components/tooltip-v2/src/arrow2.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 +12 -89
- package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
- package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
- package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +97 -125
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +125 -97
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.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/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +88 -37
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +37 -88
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/anchor/index.js +2 -2
- package/lib/components/anchor/src/anchor.js +191 -42
- package/lib/components/anchor/src/anchor.js.map +1 -1
- package/lib/components/anchor/src/anchor2.js +42 -191
- package/lib/components/anchor/src/anchor2.js.map +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +65 -32
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +32 -65
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +77 -59
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +59 -77
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +20 -42
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +42 -20
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +69 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +7 -69
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +221 -68
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +68 -221
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +446 -50
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +50 -446
- 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/index.js +2 -2
- package/lib/components/input-tag/src/input-tag.js +214 -65
- package/lib/components/input-tag/src/input-tag.js.map +1 -1
- package/lib/components/input-tag/src/input-tag2.js +65 -214
- package/lib/components/input-tag/src/input-tag2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +97 -16
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +16 -97
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +141 -69
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +69 -141
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/jumper.js +58 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -58
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.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/result/index.js +2 -2
- package/lib/components/result/src/result.js +30 -62
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +62 -30
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +56 -170
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +170 -56
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/skeleton/index.js +4 -4
- package/lib/components/skeleton/src/skeleton-item.js +17 -22
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +22 -17
- 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/slider/src/button.js +91 -20
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +20 -91
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +72 -33
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +33 -72
- package/lib/components/timeline/src/timeline-item2.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/arrow.js +37 -22
- package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
- package/lib/components/tooltip-v2/src/arrow2.js +22 -37
- package/lib/components/tooltip-v2/src/arrow2.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 +12 -89
- package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
- package/lib/components/tooltip-v2/src/trigger2.js +89 -12
- package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +100 -125
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +125 -100
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.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/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.mjs","sources":["../../../../../../packages/components/card/src/card.
|
|
1
|
+
{"version":3,"file":"card.mjs","sources":["../../../../../../packages/components/card/src/card.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\n\nexport const cardProps = buildProps({\n /**\n * @description title of the card. Also accepts a DOM passed by `slot#header`\n */\n header: {\n type: String,\n default: '',\n },\n footer: {\n type: String,\n default: '',\n },\n /**\n * @description CSS style of card body\n */\n bodyStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description custom class name of card body\n */\n bodyClass: String,\n /**\n * @description when to show card shadows\n */\n shadow: {\n type: String,\n values: ['always', 'hover', 'never'],\n default: 'always',\n },\n} as const)\nexport type CardProps = ExtractPropTypes<typeof cardProps>\n"],"names":[],"mappings":";;AACY,MAAC,SAAS,GAAG,UAAU,CAAC;AACpC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC;AACxC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,25 +1,47 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
|
|
2
|
+
import { cardProps } from './card.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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
const __default__ = defineComponent({
|
|
7
|
+
name: "ElCard"
|
|
8
|
+
});
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
...__default__,
|
|
11
|
+
props: cardProps,
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const ns = useNamespace("card");
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createElementBlock("div", {
|
|
16
|
+
class: normalizeClass([unref(ns).b(), unref(ns).is(`${_ctx.shadow}-shadow`)])
|
|
17
|
+
}, [
|
|
18
|
+
_ctx.$slots.header || _ctx.header ? (openBlock(), createElementBlock("div", {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: normalizeClass(unref(ns).e("header"))
|
|
21
|
+
}, [
|
|
22
|
+
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
23
|
+
createTextVNode(toDisplayString(_ctx.header), 1)
|
|
24
|
+
])
|
|
25
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
26
|
+
createElementVNode("div", {
|
|
27
|
+
class: normalizeClass([unref(ns).e("body"), _ctx.bodyClass]),
|
|
28
|
+
style: normalizeStyle(_ctx.bodyStyle)
|
|
29
|
+
}, [
|
|
30
|
+
renderSlot(_ctx.$slots, "default")
|
|
31
|
+
], 6),
|
|
32
|
+
_ctx.$slots.footer || _ctx.footer ? (openBlock(), createElementBlock("div", {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: normalizeClass(unref(ns).e("footer"))
|
|
35
|
+
}, [
|
|
36
|
+
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
37
|
+
createTextVNode(toDisplayString(_ctx.footer), 1)
|
|
38
|
+
])
|
|
39
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
40
|
+
], 2);
|
|
41
|
+
};
|
|
21
42
|
}
|
|
22
43
|
});
|
|
44
|
+
var Card = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "card.vue"]]);
|
|
23
45
|
|
|
24
|
-
export {
|
|
46
|
+
export { Card as default };
|
|
25
47
|
//# sourceMappingURL=card2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card2.mjs","sources":["../../../../../../packages/components/card/src/card.
|
|
1
|
+
{"version":3,"file":"card2.mjs","sources":["../../../../../../packages/components/card/src/card.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.b(), ns.is(`${shadow}-shadow`)]\">\n <div v-if=\"$slots.header || header\" :class=\"ns.e('header')\">\n <slot name=\"header\">{{ header }}</slot>\n </div>\n <div :class=\"[ns.e('body'), bodyClass]\" :style=\"bodyStyle\">\n <slot />\n </div>\n <div v-if=\"$slots.footer || footer\" :class=\"ns.e('footer')\">\n <slot name=\"footer\">{{ footer }}</slot>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { cardProps } from './card'\n\ndefineOptions({\n name: 'ElCard',\n})\n\ndefineProps(cardProps)\n\nconst ns = useNamespace('card')\n</script>\n"],"names":[],"mappings":";;;;;mCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Carousel from './src/carousel2.mjs';
|
|
2
|
-
import CarouselItem from './src/carousel-
|
|
2
|
+
import CarouselItem from './src/carousel-item.mjs';
|
|
3
3
|
export { carouselEmits, carouselProps } from './src/carousel.mjs';
|
|
4
|
-
export { carouselItemProps } from './src/carousel-
|
|
4
|
+
export { carouselItemProps } from './src/carousel-item2.mjs';
|
|
5
5
|
export { CAROUSEL_ITEM_NAME, carouselContextKey } from './src/constants.mjs';
|
|
6
6
|
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
|
7
7
|
|
|
@@ -1,12 +1,74 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, unref, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, vShow, createCommentVNode, renderSlot } from 'vue';
|
|
2
|
+
import { carouselItemProps } from './carousel-item2.mjs';
|
|
3
|
+
import { useCarouselItem } from './use-carousel-item.mjs';
|
|
4
|
+
import { CAROUSEL_ITEM_NAME } from './constants.mjs';
|
|
5
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
2
7
|
|
|
3
|
-
const
|
|
4
|
-
name:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
const __default__ = defineComponent({
|
|
9
|
+
name: CAROUSEL_ITEM_NAME
|
|
10
|
+
});
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
...__default__,
|
|
13
|
+
props: carouselItemProps,
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const ns = useNamespace("carousel");
|
|
17
|
+
const {
|
|
18
|
+
carouselItemRef,
|
|
19
|
+
active,
|
|
20
|
+
animating,
|
|
21
|
+
hover,
|
|
22
|
+
inStage,
|
|
23
|
+
isVertical,
|
|
24
|
+
translate,
|
|
25
|
+
isCardType,
|
|
26
|
+
scale,
|
|
27
|
+
ready,
|
|
28
|
+
handleItemClick
|
|
29
|
+
} = useCarouselItem(props);
|
|
30
|
+
const itemKls = computed(() => [
|
|
31
|
+
ns.e("item"),
|
|
32
|
+
ns.is("active", active.value),
|
|
33
|
+
ns.is("in-stage", inStage.value),
|
|
34
|
+
ns.is("hover", hover.value),
|
|
35
|
+
ns.is("animating", animating.value),
|
|
36
|
+
{
|
|
37
|
+
[ns.em("item", "card")]: isCardType.value,
|
|
38
|
+
[ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
41
|
+
const itemStyle = computed(() => {
|
|
42
|
+
const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
|
|
43
|
+
const _translate = `${translateType}(${unref(translate)}px)`;
|
|
44
|
+
const _scale = `scale(${unref(scale)})`;
|
|
45
|
+
const transform = [_translate, _scale].join(" ");
|
|
46
|
+
return {
|
|
47
|
+
transform
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
52
|
+
ref_key: "carouselItemRef",
|
|
53
|
+
ref: carouselItemRef,
|
|
54
|
+
class: normalizeClass(unref(itemKls)),
|
|
55
|
+
style: normalizeStyle(unref(itemStyle)),
|
|
56
|
+
onClick: unref(handleItemClick)
|
|
57
|
+
}, [
|
|
58
|
+
unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: normalizeClass(unref(ns).e("mask"))
|
|
61
|
+
}, null, 2)), [
|
|
62
|
+
[vShow, !unref(active)]
|
|
63
|
+
]) : createCommentVNode("v-if", true),
|
|
64
|
+
renderSlot(_ctx.$slots, "default")
|
|
65
|
+
], 14, ["onClick"])), [
|
|
66
|
+
[vShow, unref(ready)]
|
|
67
|
+
]);
|
|
68
|
+
};
|
|
8
69
|
}
|
|
9
70
|
});
|
|
71
|
+
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel-item.vue"]]);
|
|
10
72
|
|
|
11
|
-
export {
|
|
73
|
+
export { CarouselItem as default };
|
|
12
74
|
//# sourceMappingURL=carousel-item.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.
|
|
1
|
+
{"version":3,"file":"carousel-item.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.vue"],"sourcesContent":["<template>\n <div\n v-show=\"ready\"\n ref=\"carouselItemRef\"\n :class=\"itemKls\"\n :style=\"itemStyle\"\n @click=\"handleItemClick\"\n >\n <div v-if=\"isCardType\" v-show=\"!active\" :class=\"ns.e('mask')\" />\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, unref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { carouselItemProps } from './carousel-item'\nimport { useCarouselItem } from './use-carousel-item'\nimport { CAROUSEL_ITEM_NAME } from './constants'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: CAROUSEL_ITEM_NAME,\n})\n\nconst props = defineProps(carouselItemProps)\nconst ns = useNamespace('carousel')\n\n// inject\nconst {\n carouselItemRef,\n active,\n animating,\n hover,\n inStage,\n isVertical,\n translate,\n isCardType,\n scale,\n ready,\n handleItemClick,\n} = useCarouselItem(props)\n\nconst itemKls = computed(() => [\n ns.e('item'),\n ns.is('active', active.value),\n ns.is('in-stage', inStage.value),\n ns.is('hover', hover.value),\n ns.is('animating', animating.value),\n {\n [ns.em('item', 'card')]: isCardType.value,\n [ns.em('item', 'card-vertical')]: isCardType.value && isVertical.value,\n },\n])\n\nconst itemStyle = computed<CSSProperties>(() => {\n const translateType = `translate${unref(isVertical) ? 'Y' : 'X'}`\n const _translate = `${translateType}(${unref(translate)}px)`\n const _scale = `scale(${unref(scale)})`\n const transform = [_translate, _scale].join(' ')\n\n return {\n transform,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,UAAU,CAAA,CAAA;AAGlC,IAAM,MAAA;AAAA,MACJ,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,MACA,KAAA;AAAA,MACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,KAAA;AAAA,MACA,KAAA;AAAA,MACA,eAAA;AAAA,KACF,GAAI,gBAAgB,KAAK,CAAA,CAAA;AAEzB,IAAM,MAAA,OAAA,GAAU,SAAS,MAAM;AAAA,MAC7B,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,MACX,EAAG,CAAA,EAAA,CAAG,QAAU,EAAA,MAAA,CAAO,KAAK,CAAA;AAAA,MAC5B,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,MAC/B,EAAG,CAAA,EAAA,CAAG,OAAS,EAAA,KAAA,CAAM,KAAK,CAAA;AAAA,MAC1B,EAAG,CAAA,EAAA,CAAG,WAAa,EAAA,SAAA,CAAU,KAAK,CAAA;AAAA,MAClC;AAAA,QACE,CAAC,EAAG,CAAA,EAAA,CAAG,QAAQ,MAAM,CAAC,GAAG,UAAW,CAAA,KAAA;AAAA,QACpC,CAAC,GAAG,EAAG,CAAA,MAAA,EAAQ,eAAe,CAAC,GAAG,UAAW,CAAA,KAAA,IAAS,UAAW,CAAA,KAAA;AAAA,OACnE;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAY,SAAwB,MAAM;AAC9C,MAAA,MAAM,gBAAgB,CAAY,SAAA,EAAA,KAAA,CAAM,UAAU,CAAA,GAAI,MAAM,GAAG,CAAA,CAAA,CAAA;AAC/D,MAAA,MAAM,aAAa,CAAG,EAAA,aAAa,CAAI,CAAA,EAAA,KAAA,CAAM,SAAS,CAAC,CAAA,GAAA,CAAA,CAAA;AACvD,MAAA,MAAM,MAAS,GAAA,CAAA,MAAA,EAAS,KAAM,CAAA,KAAK,CAAC,CAAA,CAAA,CAAA,CAAA;AACpC,MAAA,MAAM,YAAY,CAAC,UAAA,EAAY,MAAM,CAAA,CAAE,KAAK,GAAG,CAAA,CAAA;AAE/C,MAAO,OAAA;AAAA,QACL,SAAA;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,74 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { carouselItemProps } from './carousel-item.mjs';
|
|
3
|
-
import { useCarouselItem } from './use-carousel-item.mjs';
|
|
4
|
-
import { CAROUSEL_ITEM_NAME } from './constants.mjs';
|
|
5
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
7
2
|
|
|
8
|
-
const
|
|
9
|
-
name:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
props: carouselItemProps,
|
|
14
|
-
setup(__props) {
|
|
15
|
-
const props = __props;
|
|
16
|
-
const ns = useNamespace("carousel");
|
|
17
|
-
const {
|
|
18
|
-
carouselItemRef,
|
|
19
|
-
active,
|
|
20
|
-
animating,
|
|
21
|
-
hover,
|
|
22
|
-
inStage,
|
|
23
|
-
isVertical,
|
|
24
|
-
translate,
|
|
25
|
-
isCardType,
|
|
26
|
-
scale,
|
|
27
|
-
ready,
|
|
28
|
-
handleItemClick
|
|
29
|
-
} = useCarouselItem(props);
|
|
30
|
-
const itemKls = computed(() => [
|
|
31
|
-
ns.e("item"),
|
|
32
|
-
ns.is("active", active.value),
|
|
33
|
-
ns.is("in-stage", inStage.value),
|
|
34
|
-
ns.is("hover", hover.value),
|
|
35
|
-
ns.is("animating", animating.value),
|
|
36
|
-
{
|
|
37
|
-
[ns.em("item", "card")]: isCardType.value,
|
|
38
|
-
[ns.em("item", "card-vertical")]: isCardType.value && isVertical.value
|
|
39
|
-
}
|
|
40
|
-
]);
|
|
41
|
-
const itemStyle = computed(() => {
|
|
42
|
-
const translateType = `translate${unref(isVertical) ? "Y" : "X"}`;
|
|
43
|
-
const _translate = `${translateType}(${unref(translate)}px)`;
|
|
44
|
-
const _scale = `scale(${unref(scale)})`;
|
|
45
|
-
const transform = [_translate, _scale].join(" ");
|
|
46
|
-
return {
|
|
47
|
-
transform
|
|
48
|
-
};
|
|
49
|
-
});
|
|
50
|
-
return (_ctx, _cache) => {
|
|
51
|
-
return withDirectives((openBlock(), createElementBlock("div", {
|
|
52
|
-
ref_key: "carouselItemRef",
|
|
53
|
-
ref: carouselItemRef,
|
|
54
|
-
class: normalizeClass(unref(itemKls)),
|
|
55
|
-
style: normalizeStyle(unref(itemStyle)),
|
|
56
|
-
onClick: unref(handleItemClick)
|
|
57
|
-
}, [
|
|
58
|
-
unref(isCardType) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: normalizeClass(unref(ns).e("mask"))
|
|
61
|
-
}, null, 2)), [
|
|
62
|
-
[vShow, !unref(active)]
|
|
63
|
-
]) : createCommentVNode("v-if", true),
|
|
64
|
-
renderSlot(_ctx.$slots, "default")
|
|
65
|
-
], 14, ["onClick"])), [
|
|
66
|
-
[vShow, unref(ready)]
|
|
67
|
-
]);
|
|
68
|
-
};
|
|
3
|
+
const carouselItemProps = buildProps({
|
|
4
|
+
name: { type: String, default: "" },
|
|
5
|
+
label: {
|
|
6
|
+
type: [String, Number],
|
|
7
|
+
default: ""
|
|
69
8
|
}
|
|
70
9
|
});
|
|
71
|
-
var CarouselItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "carousel-item.vue"]]);
|
|
72
10
|
|
|
73
|
-
export {
|
|
11
|
+
export { carouselItemProps };
|
|
74
12
|
//# sourceMappingURL=carousel-item2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-item2.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.
|
|
1
|
+
{"version":3,"file":"carousel-item2.mjs","sources":["../../../../../../packages/components/carousel/src/carousel-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const carouselItemProps = buildProps({\n /**\n * @description name of the item, can be used in `setActiveItem`\n */\n name: { type: String, default: '' },\n /**\n * @description text content for the corresponding indicator\n */\n label: {\n type: [String, Number],\n default: '',\n },\n} as const)\n\nexport type CarouselItemProps = ExtractPropTypes<typeof carouselItemProps>\n"],"names":[],"mappings":";;AACY,MAAC,iBAAiB,GAAG,UAAU,CAAC;AAC5C,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Image from './src/
|
|
2
|
-
export { imageEmits, imageProps } from './src/
|
|
1
|
+
import Image from './src/image.mjs';
|
|
2
|
+
export { imageEmits, imageProps } from './src/image2.mjs';
|
|
3
3
|
import { withInstall } from '../../utils/vue/install.mjs';
|
|
4
4
|
|
|
5
5
|
const ElImage = withInstall(Image);
|
|
@@ -1,73 +1,227 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent, useAttrs, computed, ref, watch, onMounted, openBlock, createElementBlock, mergeProps, unref, renderSlot, createElementVNode, normalizeClass, toDisplayString, Fragment, createCommentVNode, createBlock, withCtx, normalizeProps, guardReactiveProps, nextTick } from 'vue';
|
|
2
|
+
import { isClient, useThrottleFn, useEventListener } from '@vueuse/core';
|
|
3
|
+
import { fromPairs } from 'lodash-unified';
|
|
4
|
+
import { ElImageViewer } from '../../image-viewer/index.mjs';
|
|
5
|
+
import { imageProps, imageEmits } from './image2.mjs';
|
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
+
import { isInContainer } from '../../../utils/dom/position.mjs';
|
|
8
|
+
import { useLocale } from '../../../hooks/use-locale/index.mjs';
|
|
9
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
10
|
+
import { useAttrs as useAttrs$1 } from '../../../hooks/use-attrs/index.mjs';
|
|
11
|
+
import { isArray, isString } from '@vue/shared';
|
|
12
|
+
import { isElement } from '../../../utils/types.mjs';
|
|
13
|
+
import { getScrollContainer } from '../../../utils/dom/scroll.mjs';
|
|
4
14
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
15
|
+
const __default__ = defineComponent({
|
|
16
|
+
name: "ElImage",
|
|
17
|
+
inheritAttrs: false
|
|
18
|
+
});
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
...__default__,
|
|
21
|
+
props: imageProps,
|
|
22
|
+
emits: imageEmits,
|
|
23
|
+
setup(__props, { expose, emit }) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const { t } = useLocale();
|
|
26
|
+
const ns = useNamespace("image");
|
|
27
|
+
const rawAttrs = useAttrs();
|
|
28
|
+
const containerAttrs = computed(() => {
|
|
29
|
+
return fromPairs(Object.entries(rawAttrs).filter(([key]) => /^(data-|on[A-Z])/i.test(key) || ["id", "style"].includes(key)));
|
|
30
|
+
});
|
|
31
|
+
const imgAttrs = useAttrs$1({
|
|
32
|
+
excludeListeners: true,
|
|
33
|
+
excludeKeys: computed(() => {
|
|
34
|
+
return Object.keys(containerAttrs.value);
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
const imageSrc = ref();
|
|
38
|
+
const hasLoadError = ref(false);
|
|
39
|
+
const isLoading = ref(true);
|
|
40
|
+
const showViewer = ref(false);
|
|
41
|
+
const container = ref();
|
|
42
|
+
const _scrollContainer = ref();
|
|
43
|
+
const supportLoading = isClient && "loading" in HTMLImageElement.prototype;
|
|
44
|
+
let stopScrollListener;
|
|
45
|
+
const imageKls = computed(() => [
|
|
46
|
+
ns.e("inner"),
|
|
47
|
+
preview.value && ns.e("preview"),
|
|
48
|
+
isLoading.value && ns.is("loading")
|
|
49
|
+
]);
|
|
50
|
+
const imageStyle = computed(() => {
|
|
51
|
+
const { fit } = props;
|
|
52
|
+
if (isClient && fit) {
|
|
53
|
+
return { objectFit: fit };
|
|
54
|
+
}
|
|
55
|
+
return {};
|
|
56
|
+
});
|
|
57
|
+
const preview = computed(() => {
|
|
58
|
+
const { previewSrcList } = props;
|
|
59
|
+
return isArray(previewSrcList) && previewSrcList.length > 0;
|
|
60
|
+
});
|
|
61
|
+
const imageIndex = computed(() => {
|
|
62
|
+
const { previewSrcList, initialIndex } = props;
|
|
63
|
+
let previewIndex = initialIndex;
|
|
64
|
+
if (initialIndex > previewSrcList.length - 1) {
|
|
65
|
+
previewIndex = 0;
|
|
66
|
+
}
|
|
67
|
+
return previewIndex;
|
|
68
|
+
});
|
|
69
|
+
const isManual = computed(() => {
|
|
70
|
+
if (props.loading === "eager")
|
|
71
|
+
return false;
|
|
72
|
+
return !supportLoading && props.loading === "lazy" || props.lazy;
|
|
73
|
+
});
|
|
74
|
+
const loadImage = () => {
|
|
75
|
+
if (!isClient)
|
|
76
|
+
return;
|
|
77
|
+
isLoading.value = true;
|
|
78
|
+
hasLoadError.value = false;
|
|
79
|
+
imageSrc.value = props.src;
|
|
80
|
+
};
|
|
81
|
+
function handleLoad(event) {
|
|
82
|
+
isLoading.value = false;
|
|
83
|
+
hasLoadError.value = false;
|
|
84
|
+
emit("load", event);
|
|
85
|
+
}
|
|
86
|
+
function handleError(event) {
|
|
87
|
+
isLoading.value = false;
|
|
88
|
+
hasLoadError.value = true;
|
|
89
|
+
emit("error", event);
|
|
90
|
+
}
|
|
91
|
+
function handleLazyLoad() {
|
|
92
|
+
if (isInContainer(container.value, _scrollContainer.value)) {
|
|
93
|
+
loadImage();
|
|
94
|
+
removeLazyLoadListener();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200, true);
|
|
98
|
+
async function addLazyLoadListener() {
|
|
99
|
+
var _a;
|
|
100
|
+
if (!isClient)
|
|
101
|
+
return;
|
|
102
|
+
await nextTick();
|
|
103
|
+
const { scrollContainer } = props;
|
|
104
|
+
if (isElement(scrollContainer)) {
|
|
105
|
+
_scrollContainer.value = scrollContainer;
|
|
106
|
+
} else if (isString(scrollContainer) && scrollContainer !== "") {
|
|
107
|
+
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
108
|
+
} else if (container.value) {
|
|
109
|
+
_scrollContainer.value = getScrollContainer(container.value);
|
|
110
|
+
}
|
|
111
|
+
if (_scrollContainer.value) {
|
|
112
|
+
stopScrollListener = useEventListener(_scrollContainer, "scroll", lazyLoadHandler);
|
|
113
|
+
setTimeout(() => handleLazyLoad(), 100);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function removeLazyLoadListener() {
|
|
117
|
+
if (!isClient || !_scrollContainer.value || !lazyLoadHandler)
|
|
118
|
+
return;
|
|
119
|
+
stopScrollListener == null ? void 0 : stopScrollListener();
|
|
120
|
+
_scrollContainer.value = void 0;
|
|
121
|
+
}
|
|
122
|
+
function clickHandler() {
|
|
123
|
+
if (!preview.value)
|
|
124
|
+
return;
|
|
125
|
+
showViewer.value = true;
|
|
126
|
+
emit("show");
|
|
127
|
+
}
|
|
128
|
+
function closeViewer() {
|
|
129
|
+
showViewer.value = false;
|
|
130
|
+
emit("close");
|
|
131
|
+
}
|
|
132
|
+
function switchViewer(val) {
|
|
133
|
+
emit("switch", val);
|
|
134
|
+
}
|
|
135
|
+
watch(() => props.src, () => {
|
|
136
|
+
if (isManual.value) {
|
|
137
|
+
isLoading.value = true;
|
|
138
|
+
hasLoadError.value = false;
|
|
139
|
+
removeLazyLoadListener();
|
|
140
|
+
addLazyLoadListener();
|
|
141
|
+
} else {
|
|
142
|
+
loadImage();
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
onMounted(() => {
|
|
146
|
+
if (isManual.value) {
|
|
147
|
+
addLazyLoadListener();
|
|
148
|
+
} else {
|
|
149
|
+
loadImage();
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
expose({
|
|
153
|
+
showPreview: clickHandler
|
|
154
|
+
});
|
|
155
|
+
return (_ctx, _cache) => {
|
|
156
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
157
|
+
ref_key: "container",
|
|
158
|
+
ref: container
|
|
159
|
+
}, unref(containerAttrs), {
|
|
160
|
+
class: [unref(ns).b(), _ctx.$attrs.class]
|
|
161
|
+
}), [
|
|
162
|
+
hasLoadError.value ? renderSlot(_ctx.$slots, "error", { key: 0 }, () => [
|
|
163
|
+
createElementVNode("div", {
|
|
164
|
+
class: normalizeClass(unref(ns).e("error"))
|
|
165
|
+
}, toDisplayString(unref(t)("el.image.error")), 3)
|
|
166
|
+
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
167
|
+
imageSrc.value !== void 0 ? (openBlock(), createElementBlock("img", mergeProps({ key: 0 }, unref(imgAttrs), {
|
|
168
|
+
src: imageSrc.value,
|
|
169
|
+
loading: _ctx.loading,
|
|
170
|
+
style: unref(imageStyle),
|
|
171
|
+
class: unref(imageKls),
|
|
172
|
+
crossorigin: _ctx.crossorigin,
|
|
173
|
+
onClick: clickHandler,
|
|
174
|
+
onLoad: handleLoad,
|
|
175
|
+
onError: handleError
|
|
176
|
+
}), null, 16, ["src", "loading", "crossorigin"])) : createCommentVNode("v-if", true),
|
|
177
|
+
isLoading.value ? (openBlock(), createElementBlock("div", {
|
|
178
|
+
key: 1,
|
|
179
|
+
class: normalizeClass(unref(ns).e("wrapper"))
|
|
180
|
+
}, [
|
|
181
|
+
renderSlot(_ctx.$slots, "placeholder", {}, () => [
|
|
182
|
+
createElementVNode("div", {
|
|
183
|
+
class: normalizeClass(unref(ns).e("placeholder"))
|
|
184
|
+
}, null, 2)
|
|
185
|
+
])
|
|
186
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
187
|
+
], 64)),
|
|
188
|
+
unref(preview) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
189
|
+
showViewer.value ? (openBlock(), createBlock(unref(ElImageViewer), {
|
|
190
|
+
key: 0,
|
|
191
|
+
"z-index": _ctx.zIndex,
|
|
192
|
+
"initial-index": unref(imageIndex),
|
|
193
|
+
infinite: _ctx.infinite,
|
|
194
|
+
"zoom-rate": _ctx.zoomRate,
|
|
195
|
+
"min-scale": _ctx.minScale,
|
|
196
|
+
"max-scale": _ctx.maxScale,
|
|
197
|
+
"show-progress": _ctx.showProgress,
|
|
198
|
+
"url-list": _ctx.previewSrcList,
|
|
199
|
+
crossorigin: _ctx.crossorigin,
|
|
200
|
+
"hide-on-click-modal": _ctx.hideOnClickModal,
|
|
201
|
+
teleported: _ctx.previewTeleported,
|
|
202
|
+
"close-on-press-escape": _ctx.closeOnPressEscape,
|
|
203
|
+
onClose: closeViewer,
|
|
204
|
+
onSwitch: switchViewer
|
|
205
|
+
}, {
|
|
206
|
+
progress: withCtx((progress) => [
|
|
207
|
+
renderSlot(_ctx.$slots, "progress", normalizeProps(guardReactiveProps(progress)))
|
|
208
|
+
]),
|
|
209
|
+
toolbar: withCtx((toolbar) => [
|
|
210
|
+
renderSlot(_ctx.$slots, "toolbar", normalizeProps(guardReactiveProps(toolbar)))
|
|
211
|
+
]),
|
|
212
|
+
default: withCtx(() => [
|
|
213
|
+
_ctx.$slots.viewer ? (openBlock(), createElementBlock("div", { key: 0 }, [
|
|
214
|
+
renderSlot(_ctx.$slots, "viewer")
|
|
215
|
+
])) : createCommentVNode("v-if", true)
|
|
216
|
+
]),
|
|
217
|
+
_: 3
|
|
218
|
+
}, 8, ["z-index", "initial-index", "infinite", "zoom-rate", "min-scale", "max-scale", "show-progress", "url-list", "crossorigin", "hide-on-click-modal", "teleported", "close-on-press-escape"])) : createCommentVNode("v-if", true)
|
|
219
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
220
|
+
], 16);
|
|
221
|
+
};
|
|
62
222
|
}
|
|
63
223
|
});
|
|
64
|
-
|
|
65
|
-
load: (evt) => evt instanceof Event,
|
|
66
|
-
error: (evt) => evt instanceof Event,
|
|
67
|
-
switch: (val) => isNumber(val),
|
|
68
|
-
close: () => true,
|
|
69
|
-
show: () => true
|
|
70
|
-
};
|
|
224
|
+
var Image = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "image.vue"]]);
|
|
71
225
|
|
|
72
|
-
export {
|
|
226
|
+
export { Image as default };
|
|
73
227
|
//# sourceMappingURL=image.mjs.map
|