@element-plus/nightly 0.0.20251219 → 0.0.20251220
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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix.mjs +1 -1
- package/es/components/alert/index.mjs +2 -2
- package/es/components/alert/src/alert.mjs +135 -39
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +39 -135
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/autocomplete/index.mjs +2 -2
- package/es/components/autocomplete/src/autocomplete.mjs +60 -486
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +486 -60
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +20 -61
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +61 -20
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/button/index.mjs +1 -1
- package/es/components/button/src/button-group.mjs +36 -11
- package/es/components/button/src/button-group.mjs.map +1 -1
- package/es/components/button/src/button-group2.mjs +11 -36
- package/es/components/button/src/button-group2.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +73 -22
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +22 -73
- 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 +79 -7
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +7 -79
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +389 -48
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +48 -389
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/countdown/index.mjs +2 -2
- package/es/components/countdown/src/countdown.mjs +83 -20
- package/es/components/countdown/src/countdown.mjs.map +1 -1
- package/es/components/countdown/src/countdown2.mjs +20 -83
- package/es/components/countdown/src/countdown2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/index.mjs +24 -24
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +124 -586
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +586 -124
- package/es/components/input/src/input2.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/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +174 -72
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +72 -174
- 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 +69 -7
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper2.mjs +7 -69
- package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +145 -88
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +88 -145
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +85 -295
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +295 -85
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +727 -152
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +152 -727
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +17 -27
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +27 -17
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/slider/src/button.mjs +104 -18
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +18 -104
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/split-panel.mjs +186 -19
- package/es/components/splitter/src/split-panel.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs +19 -186
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +111 -24
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +24 -111
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +66 -20
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +20 -66
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +2 -2
- package/es/components/time-select/src/time-select.mjs +138 -66
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select2.mjs +66 -138
- package/es/components/time-select/src/time-select2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +111 -32
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +32 -111
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/content.mjs +2 -2
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +183 -30
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +30 -183
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/index.mjs +3 -3
- package/es/components/tour/src/content.mjs +85 -42
- package/es/components/tour/src/content.mjs.map +1 -1
- package/es/components/tour/src/content2.mjs +42 -85
- package/es/components/tour/src/content2.mjs.map +1 -1
- package/es/components/tour/src/mask.mjs +17 -82
- package/es/components/tour/src/mask.mjs.map +1 -1
- package/es/components/tour/src/mask2.mjs +82 -17
- package/es/components/tour/src/mask2.mjs.map +1 -1
- package/es/components/tour/src/step.mjs +255 -43
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +43 -255
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/tour/src/tour.mjs +2 -2
- package/es/components/tour/src/tour2.mjs +2 -2
- package/es/components/tree-select/src/tree-select.mjs +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +27 -206
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +206 -27
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +26 -247
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +247 -26
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +24 -24
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.js +1 -1
- package/lib/components/alert/index.js +2 -2
- package/lib/components/alert/src/alert.js +134 -40
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +40 -134
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/autocomplete/index.js +2 -2
- package/lib/components/autocomplete/src/autocomplete.js +59 -484
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +484 -59
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +21 -61
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +61 -21
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/src/button-group.js +36 -11
- package/lib/components/button/src/button-group.js.map +1 -1
- package/lib/components/button/src/button-group2.js +11 -36
- package/lib/components/button/src/button-group2.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +73 -23
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +23 -73
- 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 +79 -7
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +7 -79
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +388 -48
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +48 -388
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/countdown/index.js +2 -2
- package/lib/components/countdown/src/countdown.js +83 -21
- package/lib/components/countdown/src/countdown.js.map +1 -1
- package/lib/components/countdown/src/countdown2.js +21 -83
- package/lib/components/countdown/src/countdown2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/index.js +24 -24
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +121 -582
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +582 -121
- package/lib/components/input/src/input2.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/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +173 -73
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +73 -173
- 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 +69 -7
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/jumper2.js +7 -69
- package/lib/components/pagination/src/components/jumper2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +145 -93
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +93 -145
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +85 -294
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +294 -85
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +726 -152
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +152 -726
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +17 -27
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +27 -17
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/slider/src/button.js +104 -19
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +19 -104
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider2.js +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/split-panel.js +186 -20
- package/lib/components/splitter/src/split-panel.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js +20 -186
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +111 -24
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +24 -111
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +66 -20
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +20 -66
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/time-select/index.js +2 -2
- package/lib/components/time-select/src/time-select.js +143 -66
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select2.js +66 -143
- package/lib/components/time-select/src/time-select2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +111 -32
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +32 -111
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/content.js +2 -2
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +183 -34
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +34 -183
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tour/index.js +3 -3
- package/lib/components/tour/src/content.js +85 -45
- package/lib/components/tour/src/content.js.map +1 -1
- package/lib/components/tour/src/content2.js +45 -85
- package/lib/components/tour/src/content2.js.map +1 -1
- package/lib/components/tour/src/mask.js +17 -82
- package/lib/components/tour/src/mask.js.map +1 -1
- package/lib/components/tour/src/mask2.js +82 -17
- package/lib/components/tour/src/mask2.js.map +1 -1
- package/lib/components/tour/src/step.js +254 -43
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +43 -254
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/tour/src/tour.js +2 -2
- package/lib/components/tour/src/tour2.js +2 -2
- package/lib/components/tree-select/src/tree-select.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +28 -206
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +206 -28
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +26 -247
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +247 -26
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +24 -24
- 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":"step2.js","sources":["../../../../../../packages/components/tour/src/step.vue"],"sourcesContent":["<template>\n <button\n v-if=\"mergedShowClose\"\n :aria-label=\"t('el.tour.close')\"\n :class=\"ns.e('closebtn')\"\n type=\"button\"\n @click=\"onClose\"\n >\n <el-icon :class=\"ns.e('close')\">\n <component :is=\"mergedCloseIcon\" />\n </el-icon>\n </button>\n <header :class=\"[ns.e('header'), { 'show-close': showClose }]\">\n <slot name=\"header\">\n <span role=\"heading\" :class=\"ns.e('title')\">\n {{ title }}\n </span>\n </slot>\n </header>\n <div :class=\"ns.e('body')\">\n <slot>\n <span>{{ description }}</span>\n </slot>\n </div>\n <footer :class=\"ns.e('footer')\">\n <div :class=\"ns.b('indicators')\">\n <component\n :is=\"tourSlots.indicators\"\n v-if=\"tourSlots.indicators\"\n :current=\"current\"\n :total=\"total\"\n />\n <template v-else>\n <span\n v-for=\"(item, index) in total\"\n :key=\"item\"\n :class=\"[ns.b('indicator'), ns.is('active', index === current)]\"\n />\n </template>\n </div>\n <div :class=\"ns.b('buttons')\">\n <el-button\n v-if=\"current > 0\"\n size=\"small\"\n :type=\"mergedType\"\n v-bind=\"filterButtonProps(prevButtonProps)\"\n @click=\"onPrev\"\n >\n {{ prevButtonProps?.children ?? t('el.tour.previous') }}\n </el-button>\n <el-button\n v-if=\"current <= total - 1\"\n size=\"small\"\n :type=\"mergedType === 'primary' ? 'default' : 'primary'\"\n v-bind=\"filterButtonProps(nextButtonProps)\"\n @click=\"onNext\"\n >\n {{\n nextButtonProps?.children ??\n (current === total - 1 ? t('el.tour.finish') : t('el.tour.next'))\n }}\n </el-button>\n </div>\n </footer>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, onBeforeUnmount, onMounted, watch } from 'vue'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { omit } from 'lodash-unified'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CloseComponents, getEventCode } from '@element-plus/utils'\nimport { useLocale } from '@element-plus/hooks'\nimport { tourStepEmits, tourStepProps } from './step'\nimport { tourKey } from './helper'\n\nimport type { TourBtnProps } from './types'\n\ndefineOptions({\n name: 'ElTourStep',\n})\n\nconst props = defineProps(tourStepProps)\nconst emit = defineEmits(tourStepEmits)\n\nconst { Close } = CloseComponents\n\nconst { t } = useLocale()\n\nconst {\n currentStep,\n current,\n total,\n showClose,\n closeIcon,\n mergedType,\n ns,\n slots: tourSlots,\n updateModelValue,\n onClose: tourOnClose,\n onFinish: tourOnFinish,\n onChange,\n} = inject(tourKey)!\n\nwatch(\n props,\n (val) => {\n currentStep.value = val\n },\n {\n immediate: true,\n }\n)\n\nconst mergedShowClose = computed(() => props.showClose ?? showClose.value)\nconst mergedCloseIcon = computed(\n () => props.closeIcon ?? closeIcon.value ?? Close\n)\n\nconst filterButtonProps = (btnProps?: TourBtnProps) => {\n if (!btnProps) return\n return omit(btnProps, ['children', 'onClick'])\n}\n\nconst onPrev = () => {\n current.value -= 1\n if (props.prevButtonProps?.onClick) {\n props.prevButtonProps?.onClick()\n }\n onChange()\n}\n\nconst onNext = () => {\n if (current.value >= total.value - 1) {\n onFinish()\n } else {\n current.value += 1\n }\n if (props.nextButtonProps?.onClick) {\n props.nextButtonProps.onClick()\n }\n onChange()\n}\n\nconst onFinish = () => {\n onClose()\n tourOnFinish()\n}\n\nconst onClose = () => {\n updateModelValue(false)\n tourOnClose()\n emit('close')\n}\n\nconst handleKeydown = (e: KeyboardEvent) => {\n const target = e.target as HTMLElement | null\n if (target?.isContentEditable) return\n const code = getEventCode(e)\n\n switch (code) {\n case EVENT_CODE.left:\n e.preventDefault()\n current.value > 0 && onPrev()\n break\n case EVENT_CODE.right:\n e.preventDefault()\n onNext()\n break\n }\n}\n\nonMounted(() => {\n window.addEventListener('keydown', handleKeydown)\n})\n\nonBeforeUnmount(() => {\n window.removeEventListener('keydown', handleKeydown)\n})\n</script>\n"],"names":["CloseComponents","useLocale","inject","tourKey","watch","computed","omit","getEventCode","EVENT_CODE","onMounted","onBeforeUnmount","_openBlock","_createElementBlock","_unref","_normalizeClass","_createVNode","ElIcon","_createBlock","_resolveDynamicComponent","_createElementVNode","_renderSlot","title","_toDisplayString","description","_Fragment","_renderList","ElButton","_mergeProps","prevButtonProps","_withCtx","_createTextVNode","nextButtonProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAE,OAAU,GAAAA,oBAAA,CAAA;AAEZ,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIC,eAAU,EAAA,CAAA;AAElB,IAAA,MAAA;AAAA,MACJ,WAAA;AAAA,MACA,OAAA;AAAA,MACA,KAAA;AAAA,MACA,SAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,EAAA;AAAA,MACA,KAAO,EAAA,SAAA;AAAA,MACP,gBAAA;AAAA,MACA,OAAS,EAAA,WAAA;AAAA,MACT,QAAU,EAAA,YAAA;AAAA,MACV,QAAA;AAAA,KACF,GAAIC,WAAOC,cAAO,CAAA,CAAA;AAElB,IAAAC,S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CAAA;AAAA,yBAAA;AAAA,uBAAA,CAAA;AAAA,qBAAA,CAAA;AAAA;;kBAG3BA,SAAA,CAAA,OAAA,CAAW,IAAAA,SAAA,CAAK,KAAA,CAAA,GAAA,CAAA,IAAAF,aAAA,EADxB,EAAAM,eAAA,CAWYJ,SAAA,CAAAa,gBAAA,GAXZC,cAWY,CAAA;AAAA,oBAAA,GAAA,EAAA,CAAA;AAAA,oBATV,IAAK,EAAA,OAAA;AAAA,oBACJ,IAAM,EAAAd,SAAA,CAAU,UAAA,CAAA,KAAA,YAAA,SAAA,GAAA,SAAA;AAAA,mBAAA,EACT,kBAAkBkB,IAAAA,CAAAA,eAAe,GACxC,EAAA,OAAA,EAAO,MAAM,EAAA,CAAA,EAAA;AAAA,oBAAA,OAAA,EAAAF,YAEd,MAGE;;AAAA,sBAAA,OAAA;AAAA,wBAAAC,mBAAA;AAAA,0BAFAC,mBAAAA,CAAAA,CAAAA,gBAAAA,eAAAA,KAAAA,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAiB,aAAjBA,IAAwC,GAAA,EAAA,GAAAlB,SAAA,CAAY,OAAA,CAAA,KAAAA,SAAA,CAAA,KAAA,IAAK,CAAO,GAAAA,SAAA,CAAA,CAAA,CAAC,CAAA,oBAAqBA,SAAC,CAAA,CAAA,CAAA,CAAA,cAAA,CAAA,CAAA;AAAA,0BAAA,CAAA;AAAA,yBAAA;AAAA,uBAAA,CAAA;AAAA,qBAAA,CAAA;AAAA;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"step2.js","sources":["../../../../../../packages/components/tour/src/step.ts"],"sourcesContent":["import { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { tourContentProps } from './content'\n\nimport type {\n CSSProperties,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\nimport type { TourBtnProps, TourMask } from './types'\n\nexport const tourStepProps = buildProps({\n /**\n * @description get the element the guide card points to. empty makes it show in center of screen\n */\n target: {\n type: definePropType<\n string | HTMLElement | (() => HTMLElement | null) | null\n >([String, Object, Function]),\n },\n /**\n * @description the title of the tour content\n */\n title: String,\n /**\n * @description description\n */\n description: String,\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom close icon, default is Close\n */\n closeIcon: {\n type: iconPropType,\n },\n /**\n * @description whether to show the arrow\n */\n showArrow: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description position of the guide card relative to the target element\n */\n placement: tourContentProps.placement,\n /**\n * @description whether to enable masking, change mask style and fill color by pass custom props\n */\n mask: {\n type: definePropType<TourMask>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description custom style for content\n */\n contentStyle: {\n type: definePropType<CSSProperties>([Object]),\n },\n /**\n * @description properties of the previous button\n */\n prevButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description properties of the Next button\n */\n nextButtonProps: {\n type: definePropType<TourBtnProps>(Object),\n },\n /**\n * @description support pass custom scrollIntoView options\n */\n scrollIntoViewOptions: {\n type: definePropType<boolean | ScrollIntoViewOptions>([Boolean, Object]),\n default: undefined,\n },\n /**\n * @description type, affects the background color and text color\n */\n type: {\n type: definePropType<'default' | 'primary'>(String),\n },\n})\n\nexport type TourStepProps = ExtractPropTypes<typeof tourStepProps>\nexport type TourStepPropsPublic = ExtractPublicPropTypes<typeof tourStepProps>\n\nexport const tourStepEmits = {\n close: () => true,\n}\nexport type TourStepEmits = typeof tourStepEmits\n"],"names":["buildProps","definePropType","iconPropType","tourContentProps"],"mappings":";;;;;;;;AAUO,MAAM,gBAAgBA,kBAAW,CAAA;AAAA,EAItC,MAAQ,EAAA;AAAA,IACN,MAAMC,sBAEJ,CAAA,CAAC,MAAQ,EAAA,MAAA,EAAQ,QAAQ,CAAC,CAAA;AAAA,GAC9B;AAAA,EAIA,KAAO,EAAA,MAAA;AAAA,EAIP,WAAa,EAAA,MAAA;AAAA,EAIb,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAAC,iBAAA;AAAA,GACR;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,WAAWC,wBAAiB,CAAA,SAAA;AAAA,EAI5B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAAF,sBAAA,CAAyB,CAAC,OAAA,EAAS,MAAM,CAAC,CAAA;AAAA,IAChD,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAAA,sBAAA,CAA8B,CAAC,MAAM,CAAC,CAAA;AAAA,GAC9C;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,GAC3C;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAMA,uBAA6B,MAAM,CAAA;AAAA,GAC3C;AAAA,EAIA,qBAAuB,EAAA;AAAA,IACrB,IAAM,EAAAA,sBAAA,CAAgD,CAAC,OAAA,EAAS,MAAM,CAAC,CAAA;AAAA,IACvE,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMA,uBAAsC,MAAM,CAAA;AAAA,GACpD;AACF,CAAC,EAAA;AAKM,MAAM,aAAgB,GAAA;AAAA,EAC3B,OAAO,MAAM,IAAA;AACf;;;;;"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var content = require('./
|
|
5
|
+
var content = require('./content2.js');
|
|
6
6
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
7
|
var icon = require('../../../utils/vue/icon.js');
|
|
8
|
-
var teleport = require('../../teleport/src/
|
|
8
|
+
var teleport = require('../../teleport/src/teleport2.js');
|
|
9
9
|
var event = require('../../../constants/event.js');
|
|
10
10
|
var types = require('../../../utils/types.js');
|
|
11
11
|
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var core = require('@vueuse/core');
|
|
7
7
|
var index$2 = require('../../teleport/index.js');
|
|
8
|
-
var mask = require('./
|
|
9
|
-
var content = require('./
|
|
8
|
+
var mask = require('./mask2.js');
|
|
9
|
+
var content = require('./content.js');
|
|
10
10
|
var steps = require('./steps.js');
|
|
11
11
|
var tour = require('./tour.js');
|
|
12
12
|
var helper = require('./helper.js');
|
|
@@ -10,7 +10,7 @@ var select$1 = require('./select.js');
|
|
|
10
10
|
var tree$1 = require('./tree.js');
|
|
11
11
|
var cacheOptions = require('./cache-options.js');
|
|
12
12
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
-
var select = require('../../select/src/
|
|
13
|
+
var select = require('../../select/src/select2.js');
|
|
14
14
|
var tree = require('../../tree/src/tree.js');
|
|
15
15
|
|
|
16
16
|
const _sfc_main = vue.defineComponent({
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var upload$1 = require('./src/upload2.js');
|
|
6
6
|
var upload = require('./src/upload.js');
|
|
7
7
|
var uploadContent = require('./src/upload-content.js');
|
|
8
|
-
var uploadList = require('./src/upload-
|
|
8
|
+
var uploadList = require('./src/upload-list.js');
|
|
9
9
|
var uploadDragger = require('./src/upload-dragger.js');
|
|
10
10
|
var constants = require('./src/constants.js');
|
|
11
11
|
var install = require('../../utils/vue/install.js');
|
|
@@ -2,215 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var uploadList = require('./upload-list2.js');
|
|
10
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
-
var index = require('../../../hooks/use-locale/index.js');
|
|
12
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
13
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
5
|
+
var upload = require('./upload.js');
|
|
6
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
7
|
+
var typescript = require('../../../utils/typescript.js');
|
|
8
|
+
var shared = require('@vue/shared');
|
|
14
9
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const _hoisted_5 = ["onClick"];
|
|
20
|
-
const _hoisted_6 = ["onClick"];
|
|
21
|
-
const _sfc_main = vue.defineComponent({
|
|
22
|
-
...{
|
|
23
|
-
name: "ElUploadList"
|
|
10
|
+
const uploadListProps = runtime.buildProps({
|
|
11
|
+
files: {
|
|
12
|
+
type: runtime.definePropType(Array),
|
|
13
|
+
default: () => typescript.mutable([])
|
|
24
14
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
nsUpload.is("disabled", disabled.value)
|
|
41
|
-
]);
|
|
42
|
-
const handleRemove = (file) => {
|
|
43
|
-
emit("remove", file);
|
|
44
|
-
};
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return vue.openBlock(), vue.createBlock(vue.TransitionGroup, {
|
|
47
|
-
tag: "ul",
|
|
48
|
-
class: vue.normalizeClass(containerKls.value),
|
|
49
|
-
name: vue.unref(nsList).b()
|
|
50
|
-
}, {
|
|
51
|
-
default: vue.withCtx(() => [
|
|
52
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
53
|
-
vue.Fragment,
|
|
54
|
-
null,
|
|
55
|
-
vue.renderList(_ctx.files, (file, index) => {
|
|
56
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
57
|
-
key: file.uid || file.name,
|
|
58
|
-
class: vue.normalizeClass([
|
|
59
|
-
vue.unref(nsUpload).be("list", "item"),
|
|
60
|
-
vue.unref(nsUpload).is(file.status),
|
|
61
|
-
{ focusing: focusing.value }
|
|
62
|
-
]),
|
|
63
|
-
tabindex: vue.unref(disabled) ? void 0 : 0,
|
|
64
|
-
"aria-disabled": vue.unref(disabled),
|
|
65
|
-
role: "button",
|
|
66
|
-
onKeydown: vue.withKeys(($event) => !vue.unref(disabled) && handleRemove(file), ["delete"]),
|
|
67
|
-
onFocus: _cache[0] || (_cache[0] = ($event) => focusing.value = true),
|
|
68
|
-
onBlur: _cache[1] || (_cache[1] = ($event) => focusing.value = false),
|
|
69
|
-
onClick: _cache[2] || (_cache[2] = ($event) => focusing.value = false)
|
|
70
|
-
}, [
|
|
71
|
-
vue.renderSlot(_ctx.$slots, "default", {
|
|
72
|
-
file,
|
|
73
|
-
index
|
|
74
|
-
}, () => [
|
|
75
|
-
_ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
76
|
-
key: 0,
|
|
77
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-thumbnail")),
|
|
78
|
-
src: file.url,
|
|
79
|
-
crossorigin: _ctx.crossorigin,
|
|
80
|
-
alt: ""
|
|
81
|
-
}, null, 10, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
82
|
-
file.status === "uploading" || _ctx.listType !== "picture-card" ? (vue.openBlock(), vue.createElementBlock(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
key: 1,
|
|
86
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-info"))
|
|
87
|
-
},
|
|
88
|
-
[
|
|
89
|
-
vue.createElementVNode("a", {
|
|
90
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-name")),
|
|
91
|
-
onClick: vue.withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
|
|
92
|
-
}, [
|
|
93
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
94
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("document"))
|
|
95
|
-
}, {
|
|
96
|
-
default: vue.withCtx(() => [
|
|
97
|
-
vue.createVNode(vue.unref(iconsVue.Document))
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["class"]),
|
|
101
|
-
vue.createElementVNode("span", {
|
|
102
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-file-name")),
|
|
103
|
-
title: file.name
|
|
104
|
-
}, vue.toDisplayString(file.name), 11, _hoisted_4)
|
|
105
|
-
], 10, _hoisted_3),
|
|
106
|
-
file.status === "uploading" ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElProgress), {
|
|
107
|
-
key: 0,
|
|
108
|
-
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
109
|
-
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
110
|
-
percentage: Number(file.percentage),
|
|
111
|
-
style: vue.normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
112
|
-
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : vue.createCommentVNode("v-if", true)
|
|
113
|
-
],
|
|
114
|
-
2
|
|
115
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
116
|
-
vue.createElementVNode(
|
|
117
|
-
"label",
|
|
118
|
-
{
|
|
119
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-status-label"))
|
|
120
|
-
},
|
|
121
|
-
[
|
|
122
|
-
_ctx.listType === "text" ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
123
|
-
key: 0,
|
|
124
|
-
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("circle-check")])
|
|
125
|
-
}, {
|
|
126
|
-
default: vue.withCtx(() => [
|
|
127
|
-
vue.createVNode(vue.unref(iconsVue.CircleCheck))
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
}, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
131
|
-
key: 1,
|
|
132
|
-
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("check")])
|
|
133
|
-
}, {
|
|
134
|
-
default: vue.withCtx(() => [
|
|
135
|
-
vue.createVNode(vue.unref(iconsVue.Check))
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
139
|
-
],
|
|
140
|
-
2
|
|
141
|
-
),
|
|
142
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
143
|
-
key: 2,
|
|
144
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("close")),
|
|
145
|
-
onClick: ($event) => handleRemove(file)
|
|
146
|
-
}, {
|
|
147
|
-
default: vue.withCtx(() => [
|
|
148
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
-
vue.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
153
|
-
vue.createCommentVNode(" This is a bug which needs to be fixed "),
|
|
154
|
-
vue.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
155
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock(
|
|
156
|
-
"i",
|
|
157
|
-
{
|
|
158
|
-
key: 3,
|
|
159
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("close-tip"))
|
|
160
|
-
},
|
|
161
|
-
vue.toDisplayString(vue.unref(t)("el.upload.deleteTip")),
|
|
162
|
-
3
|
|
163
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
164
|
-
_ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock(
|
|
165
|
-
"span",
|
|
166
|
-
{
|
|
167
|
-
key: 4,
|
|
168
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-actions"))
|
|
169
|
-
},
|
|
170
|
-
[
|
|
171
|
-
vue.createElementVNode("span", {
|
|
172
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-preview")),
|
|
173
|
-
onClick: ($event) => _ctx.handlePreview(file)
|
|
174
|
-
}, [
|
|
175
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
176
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("zoom-in"))
|
|
177
|
-
}, {
|
|
178
|
-
default: vue.withCtx(() => [
|
|
179
|
-
vue.createVNode(vue.unref(iconsVue.ZoomIn))
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}, 8, ["class"])
|
|
183
|
-
], 10, _hoisted_5),
|
|
184
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
185
|
-
key: 0,
|
|
186
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-delete")),
|
|
187
|
-
onClick: ($event) => handleRemove(file)
|
|
188
|
-
}, [
|
|
189
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
190
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("delete"))
|
|
191
|
-
}, {
|
|
192
|
-
default: vue.withCtx(() => [
|
|
193
|
-
vue.createVNode(vue.unref(iconsVue.Delete))
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["class"])
|
|
197
|
-
], 10, _hoisted_6)) : vue.createCommentVNode("v-if", true)
|
|
198
|
-
],
|
|
199
|
-
2
|
|
200
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
201
|
-
])
|
|
202
|
-
], 42, _hoisted_1);
|
|
203
|
-
}),
|
|
204
|
-
128
|
|
205
|
-
)),
|
|
206
|
-
vue.renderSlot(_ctx.$slots, "append")
|
|
207
|
-
]),
|
|
208
|
-
_: 3
|
|
209
|
-
}, 8, ["class", "name"]);
|
|
210
|
-
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
19
|
+
handlePreview: {
|
|
20
|
+
type: runtime.definePropType(Function),
|
|
21
|
+
default: shared.NOOP
|
|
22
|
+
},
|
|
23
|
+
listType: {
|
|
24
|
+
type: String,
|
|
25
|
+
values: upload.uploadListTypes,
|
|
26
|
+
default: "text"
|
|
27
|
+
},
|
|
28
|
+
crossorigin: {
|
|
29
|
+
type: runtime.definePropType(String)
|
|
211
30
|
}
|
|
212
31
|
});
|
|
213
|
-
|
|
32
|
+
const uploadListEmits = {
|
|
33
|
+
remove: (file) => !!file
|
|
34
|
+
};
|
|
214
35
|
|
|
215
|
-
exports
|
|
36
|
+
exports.uploadListEmits = uploadListEmits;
|
|
37
|
+
exports.uploadListProps = uploadListProps;
|
|
216
38
|
//# sourceMappingURL=upload-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-list.js","sources":["../../../../../../packages/components/upload/src/upload-list.vue"],"sourcesContent":["<template>\n <transition-group tag=\"ul\" :class=\"containerKls\" :name=\"nsList.b()\">\n <li\n v-for=\"(file, index) in files\"\n :key=\"file.uid || file.name\"\n :class=\"[\n nsUpload.be('list', 'item'),\n nsUpload.is(file.status),\n { focusing },\n ]\"\n :tabindex=\"disabled ? undefined : 0\"\n :aria-disabled=\"disabled\"\n role=\"button\"\n @keydown.delete=\"!disabled && handleRemove(file)\"\n @focus=\"focusing = true\"\n @blur=\"focusing = false\"\n @click=\"focusing = false\"\n >\n <slot :file=\"file\" :index=\"index\">\n <img\n v-if=\"\n listType === 'picture' ||\n (file.status !== 'uploading' && listType === 'picture-card')\n \"\n :class=\"nsUpload.be('list', 'item-thumbnail')\"\n :src=\"file.url\"\n :crossorigin=\"crossorigin\"\n alt=\"\"\n />\n <div\n v-if=\"file.status === 'uploading' || listType !== 'picture-card'\"\n :class=\"nsUpload.be('list', 'item-info')\"\n >\n <a\n :class=\"nsUpload.be('list', 'item-name')\"\n @click.prevent=\"handlePreview(file)\"\n >\n <el-icon :class=\"nsIcon.m('document')\">\n <Document />\n </el-icon>\n <span\n :class=\"nsUpload.be('list', 'item-file-name')\"\n :title=\"file.name\"\n >\n {{ file.name }}\n </span>\n </a>\n <el-progress\n v-if=\"file.status === 'uploading'\"\n :type=\"listType === 'picture-card' ? 'circle' : 'line'\"\n :stroke-width=\"listType === 'picture-card' ? 6 : 2\"\n :percentage=\"Number(file.percentage)\"\n :style=\"listType === 'picture-card' ? '' : 'margin-top: 0.5rem'\"\n />\n </div>\n\n <label :class=\"nsUpload.be('list', 'item-status-label')\">\n <el-icon\n v-if=\"listType === 'text'\"\n :class=\"[nsIcon.m('upload-success'), nsIcon.m('circle-check')]\"\n >\n <circle-check />\n </el-icon>\n <el-icon\n v-else-if=\"['picture-card', 'picture'].includes(listType)\"\n :class=\"[nsIcon.m('upload-success'), nsIcon.m('check')]\"\n >\n <Check />\n </el-icon>\n </label>\n <el-icon\n v-if=\"!disabled\"\n :class=\"nsIcon.m('close')\"\n @click=\"handleRemove(file)\"\n >\n <Close />\n </el-icon>\n <!-- Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn-->\n <!-- This is a bug which needs to be fixed -->\n <!-- TODO: Fix the incorrect navigation interaction -->\n <i v-if=\"!disabled\" :class=\"nsIcon.m('close-tip')\">{{\n t('el.upload.deleteTip')\n }}</i>\n <span\n v-if=\"listType === 'picture-card'\"\n :class=\"nsUpload.be('list', 'item-actions')\"\n >\n <span\n :class=\"nsUpload.be('list', 'item-preview')\"\n @click=\"handlePreview(file)\"\n >\n <el-icon :class=\"nsIcon.m('zoom-in')\"><zoom-in /></el-icon>\n </span>\n <span\n v-if=\"!disabled\"\n :class=\"nsUpload.be('list', 'item-delete')\"\n @click=\"handleRemove(file)\"\n >\n <el-icon :class=\"nsIcon.m('delete')\">\n <Delete />\n </el-icon>\n </span>\n </span>\n </slot>\n </li>\n <slot name=\"append\" />\n </transition-group>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n Check,\n CircleCheck,\n Close,\n Delete,\n Document,\n ZoomIn,\n} from '@element-plus/icons-vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElProgress from '@element-plus/components/progress'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport { uploadListEmits, uploadListProps } from './upload-list'\n\nimport type { UploadFile } from './upload'\n\ndefineOptions({\n name: 'ElUploadList',\n})\n\nconst props = defineProps(uploadListProps)\nconst emit = defineEmits(uploadListEmits)\n\nconst { t } = useLocale()\nconst nsUpload = useNamespace('upload')\nconst nsIcon = useNamespace('icon')\nconst nsList = useNamespace('list')\nconst disabled = useFormDisabled()\n\nconst focusing = ref(false)\n\nconst containerKls = computed(() => [\n nsUpload.b('list'),\n nsUpload.bm('list', props.listType),\n nsUpload.is('disabled', disabled.value),\n])\n\nconst handleRemove = (file: UploadFile) => {\n emit('remove', file)\n}\n</script>\n"],"names":["useLocale","useNamespace","useFormDisabled","ref","computed","_createBlock","_TransitionGroup","_normalizeClass","_unref","_openBlock","_createElementBlock","_Fragment","files","_withKeys","_renderSlot","listType","crossorigin","_createCommentVNode","_createElementVNode","_withModifiers","handlePreview","_createVNode","ElIcon","Document","_toDisplayString","ElProgress","_normalizeStyle","CircleCheck","Check","Close","ZoomIn","Delete"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmIA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,M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,CAAUb,SAAA,CAAAuB,eAAA,CAAA,CAAA;AAAA,2BAAA,CAAA;AAAA;;;;;;;;;;;UAMpBjB,cAAA,CAAsB,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;AAAA,SAAA,CAAA;AAAA;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"upload-list.js","sources":["../../../../../../packages/components/upload/src/upload-list.ts"],"sourcesContent":["import { NOOP, buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { uploadListTypes } from './upload'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type { UploadFile, UploadFiles, UploadHooks } from './upload'\nimport type UploadList from './upload-list.vue'\n\nexport const uploadListProps = buildProps({\n files: {\n type: definePropType<UploadFiles>(Array),\n default: () => mutable([]),\n },\n disabled: {\n type: Boolean,\n default: undefined,\n },\n handlePreview: {\n type: definePropType<UploadHooks['onPreview']>(Function),\n default: NOOP,\n },\n listType: {\n type: String,\n values: uploadListTypes,\n default: 'text',\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\n\nexport type UploadListProps = ExtractPropTypes<typeof uploadListProps>\nexport type UploadListPropsPublic = ExtractPublicPropTypes<\n typeof uploadListProps\n>\nexport const uploadListEmits = {\n remove: (file: UploadFile) => !!file,\n}\nexport type UploadListEmits = typeof uploadListEmits\nexport type UploadListInstance = InstanceType<typeof UploadList> & unknown\n"],"names":["buildProps","definePropType","mutable","NOOP","uploadListTypes"],"mappings":";;;;;;;;;AAOO,MAAM,kBAAkBA,kBAAW,CAAA;AAAA,EACxC,KAAO,EAAA;AAAA,IACL,IAAA,EAAMC,uBAA4B,KAAK,CAAA;AAAA,IACvC,OAAS,EAAA,MAAMC,kBAAQ,CAAA,EAAE,CAAA;AAAA,GAC3B;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,aAAe,EAAA;AAAA,IACb,IAAA,EAAMD,uBAAyC,QAAQ,CAAA;AAAA,IACvD,OAAS,EAAAE,WAAA;AAAA,GACX;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAAC,sBAAA;AAAA,IACR,OAAS,EAAA,MAAA;AAAA,GACX;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAA,EAAMH,uBAAqD,MAAM,CAAA;AAAA,GACnE;AACF,CAAU,EAAA;AAMH,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAQ,EAAA,CAAC,IAAqB,KAAA,CAAC,CAAC,IAAA;AAClC;;;;;"}
|
|
@@ -2,37 +2,215 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$2 = require('../../icon/index.js');
|
|
7
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
var index$3 = require('../../progress/index.js');
|
|
9
|
+
var uploadList = require('./upload-list.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
12
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
13
|
+
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
9
14
|
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
const _hoisted_1 = ["tabindex", "aria-disabled", "onKeydown"];
|
|
16
|
+
const _hoisted_2 = ["src", "crossorigin"];
|
|
17
|
+
const _hoisted_3 = ["onClick"];
|
|
18
|
+
const _hoisted_4 = ["title"];
|
|
19
|
+
const _hoisted_5 = ["onClick"];
|
|
20
|
+
const _hoisted_6 = ["onClick"];
|
|
21
|
+
const _sfc_main = vue.defineComponent({
|
|
22
|
+
...{
|
|
23
|
+
name: "ElUploadList"
|
|
14
24
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
__name: "upload-list",
|
|
26
|
+
props: uploadList.uploadListProps,
|
|
27
|
+
emits: uploadList.uploadListEmits,
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const emit = __emit;
|
|
31
|
+
const { t } = index.useLocale();
|
|
32
|
+
const nsUpload = index$1.useNamespace("upload");
|
|
33
|
+
const nsIcon = index$1.useNamespace("icon");
|
|
34
|
+
const nsList = index$1.useNamespace("list");
|
|
35
|
+
const disabled = useFormCommonProps.useFormDisabled();
|
|
36
|
+
const focusing = vue.ref(false);
|
|
37
|
+
const containerKls = vue.computed(() => [
|
|
38
|
+
nsUpload.b("list"),
|
|
39
|
+
nsUpload.bm("list", props.listType),
|
|
40
|
+
nsUpload.is("disabled", disabled.value)
|
|
41
|
+
]);
|
|
42
|
+
const handleRemove = (file) => {
|
|
43
|
+
emit("remove", file);
|
|
44
|
+
};
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return vue.openBlock(), vue.createBlock(vue.TransitionGroup, {
|
|
47
|
+
tag: "ul",
|
|
48
|
+
class: vue.normalizeClass(containerKls.value),
|
|
49
|
+
name: vue.unref(nsList).b()
|
|
50
|
+
}, {
|
|
51
|
+
default: vue.withCtx(() => [
|
|
52
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
53
|
+
vue.Fragment,
|
|
54
|
+
null,
|
|
55
|
+
vue.renderList(_ctx.files, (file, index) => {
|
|
56
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
57
|
+
key: file.uid || file.name,
|
|
58
|
+
class: vue.normalizeClass([
|
|
59
|
+
vue.unref(nsUpload).be("list", "item"),
|
|
60
|
+
vue.unref(nsUpload).is(file.status),
|
|
61
|
+
{ focusing: focusing.value }
|
|
62
|
+
]),
|
|
63
|
+
tabindex: vue.unref(disabled) ? void 0 : 0,
|
|
64
|
+
"aria-disabled": vue.unref(disabled),
|
|
65
|
+
role: "button",
|
|
66
|
+
onKeydown: vue.withKeys(($event) => !vue.unref(disabled) && handleRemove(file), ["delete"]),
|
|
67
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => focusing.value = true),
|
|
68
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => focusing.value = false),
|
|
69
|
+
onClick: _cache[2] || (_cache[2] = ($event) => focusing.value = false)
|
|
70
|
+
}, [
|
|
71
|
+
vue.renderSlot(_ctx.$slots, "default", {
|
|
72
|
+
file,
|
|
73
|
+
index
|
|
74
|
+
}, () => [
|
|
75
|
+
_ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-thumbnail")),
|
|
78
|
+
src: file.url,
|
|
79
|
+
crossorigin: _ctx.crossorigin,
|
|
80
|
+
alt: ""
|
|
81
|
+
}, null, 10, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
82
|
+
file.status === "uploading" || _ctx.listType !== "picture-card" ? (vue.openBlock(), vue.createElementBlock(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
key: 1,
|
|
86
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-info"))
|
|
87
|
+
},
|
|
88
|
+
[
|
|
89
|
+
vue.createElementVNode("a", {
|
|
90
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-name")),
|
|
91
|
+
onClick: vue.withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
|
|
92
|
+
}, [
|
|
93
|
+
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
94
|
+
class: vue.normalizeClass(vue.unref(nsIcon).m("document"))
|
|
95
|
+
}, {
|
|
96
|
+
default: vue.withCtx(() => [
|
|
97
|
+
vue.createVNode(vue.unref(iconsVue.Document))
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["class"]),
|
|
101
|
+
vue.createElementVNode("span", {
|
|
102
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-file-name")),
|
|
103
|
+
title: file.name
|
|
104
|
+
}, vue.toDisplayString(file.name), 11, _hoisted_4)
|
|
105
|
+
], 10, _hoisted_3),
|
|
106
|
+
file.status === "uploading" ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElProgress), {
|
|
107
|
+
key: 0,
|
|
108
|
+
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
109
|
+
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
110
|
+
percentage: Number(file.percentage),
|
|
111
|
+
style: vue.normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
112
|
+
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : vue.createCommentVNode("v-if", true)
|
|
113
|
+
],
|
|
114
|
+
2
|
|
115
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
116
|
+
vue.createElementVNode(
|
|
117
|
+
"label",
|
|
118
|
+
{
|
|
119
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-status-label"))
|
|
120
|
+
},
|
|
121
|
+
[
|
|
122
|
+
_ctx.listType === "text" ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("circle-check")])
|
|
125
|
+
}, {
|
|
126
|
+
default: vue.withCtx(() => [
|
|
127
|
+
vue.createVNode(vue.unref(iconsVue.CircleCheck))
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
131
|
+
key: 1,
|
|
132
|
+
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("check")])
|
|
133
|
+
}, {
|
|
134
|
+
default: vue.withCtx(() => [
|
|
135
|
+
vue.createVNode(vue.unref(iconsVue.Check))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
139
|
+
],
|
|
140
|
+
2
|
|
141
|
+
),
|
|
142
|
+
!vue.unref(disabled) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
143
|
+
key: 2,
|
|
144
|
+
class: vue.normalizeClass(vue.unref(nsIcon).m("close")),
|
|
145
|
+
onClick: ($event) => handleRemove(file)
|
|
146
|
+
}, {
|
|
147
|
+
default: vue.withCtx(() => [
|
|
148
|
+
vue.createVNode(vue.unref(iconsVue.Close))
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
|
|
152
|
+
vue.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
153
|
+
vue.createCommentVNode(" This is a bug which needs to be fixed "),
|
|
154
|
+
vue.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
155
|
+
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock(
|
|
156
|
+
"i",
|
|
157
|
+
{
|
|
158
|
+
key: 3,
|
|
159
|
+
class: vue.normalizeClass(vue.unref(nsIcon).m("close-tip"))
|
|
160
|
+
},
|
|
161
|
+
vue.toDisplayString(vue.unref(t)("el.upload.deleteTip")),
|
|
162
|
+
3
|
|
163
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
164
|
+
_ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock(
|
|
165
|
+
"span",
|
|
166
|
+
{
|
|
167
|
+
key: 4,
|
|
168
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-actions"))
|
|
169
|
+
},
|
|
170
|
+
[
|
|
171
|
+
vue.createElementVNode("span", {
|
|
172
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-preview")),
|
|
173
|
+
onClick: ($event) => _ctx.handlePreview(file)
|
|
174
|
+
}, [
|
|
175
|
+
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
176
|
+
class: vue.normalizeClass(vue.unref(nsIcon).m("zoom-in"))
|
|
177
|
+
}, {
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.createVNode(vue.unref(iconsVue.ZoomIn))
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["class"])
|
|
183
|
+
], 10, _hoisted_5),
|
|
184
|
+
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-delete")),
|
|
187
|
+
onClick: ($event) => handleRemove(file)
|
|
188
|
+
}, [
|
|
189
|
+
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
190
|
+
class: vue.normalizeClass(vue.unref(nsIcon).m("delete"))
|
|
191
|
+
}, {
|
|
192
|
+
default: vue.withCtx(() => [
|
|
193
|
+
vue.createVNode(vue.unref(iconsVue.Delete))
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["class"])
|
|
197
|
+
], 10, _hoisted_6)) : vue.createCommentVNode("v-if", true)
|
|
198
|
+
],
|
|
199
|
+
2
|
|
200
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
201
|
+
])
|
|
202
|
+
], 42, _hoisted_1);
|
|
203
|
+
}),
|
|
204
|
+
128
|
|
205
|
+
)),
|
|
206
|
+
vue.renderSlot(_ctx.$slots, "append")
|
|
207
|
+
]),
|
|
208
|
+
_: 3
|
|
209
|
+
}, 8, ["class", "name"]);
|
|
210
|
+
};
|
|
30
211
|
}
|
|
31
212
|
});
|
|
32
|
-
|
|
33
|
-
remove: (file) => !!file
|
|
34
|
-
};
|
|
213
|
+
var UploadList = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);
|
|
35
214
|
|
|
36
|
-
exports
|
|
37
|
-
exports.uploadListProps = uploadListProps;
|
|
215
|
+
exports["default"] = UploadList;
|
|
38
216
|
//# sourceMappingURL=upload-list2.js.map
|