@element-plus/nightly 0.0.20241002 → 0.0.20241003
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/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/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/breadcrumb/index.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb.mjs +11 -38
- package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb2.mjs +38 -11
- package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +120 -61
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +61 -120
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/descriptions/index.mjs +2 -2
- package/es/components/descriptions/src/description.mjs +127 -22
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +22 -127
- package/es/components/descriptions/src/description2.mjs.map +1 -1
- package/es/components/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs +170 -66
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +66 -170
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.mjs +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +392 -45
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +45 -392
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +16 -16
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +445 -103
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +103 -445
- 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/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +53 -208
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +208 -53
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/index.mjs +4 -4
- package/es/components/radio/src/radio-button.mjs +6 -66
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +66 -6
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio.mjs +73 -34
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio2.mjs +34 -73
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +29 -63
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +63 -29
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +18 -23
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +29 -98
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +98 -29
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/timeline/index.mjs +2 -2
- package/es/components/timeline/src/timeline-item.mjs +73 -34
- package/es/components/timeline/src/timeline-item.mjs.map +1 -1
- package/es/components/timeline/src/timeline-item2.mjs +34 -73
- package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +1 -1
- package/es/components/tooltip-v2/src/root.mjs +80 -17
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +17 -80
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
- package/es/components/transfer/index.mjs +2 -2
- package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
- package/es/components/transfer/src/transfer-panel.mjs +1 -1
- package/es/components/transfer/src/transfer.mjs +69 -161
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer2.mjs +161 -69
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +29 -175
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +175 -29
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/components/visual-hidden/index.mjs +3 -3
- package/es/components/visual-hidden/src/visual-hidden.mjs +7 -35
- package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
- package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -7
- package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
- package/es/components/watermark/index.mjs +2 -2
- package/es/components/watermark/src/watermark.mjs +28 -209
- package/es/components/watermark/src/watermark.mjs.map +1 -1
- package/es/components/watermark/src/watermark2.mjs +209 -28
- package/es/components/watermark/src/watermark2.mjs.map +1 -1
- package/es/index.mjs +16 -16
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/breadcrumb/index.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb.js +11 -38
- package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb2.js +38 -11
- package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +120 -62
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +62 -120
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/descriptions/index.js +2 -2
- package/lib/components/descriptions/src/description.js +127 -22
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +22 -127
- package/lib/components/descriptions/src/description2.js.map +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog.js +170 -67
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +67 -170
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/src/drawer.js +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +392 -46
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +46 -392
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +16 -16
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +444 -103
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +103 -444
- 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/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +53 -208
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +208 -53
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/index.js +4 -4
- package/lib/components/radio/src/radio-button.js +6 -66
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +66 -6
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio.js +73 -36
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio2.js +36 -73
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +31 -63
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +63 -31
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +18 -23
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +23 -18
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +30 -98
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +98 -30
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/timeline/index.js +2 -2
- package/lib/components/timeline/src/timeline-item.js +73 -34
- package/lib/components/timeline/src/timeline-item.js.map +1 -1
- package/lib/components/timeline/src/timeline-item2.js +34 -73
- package/lib/components/timeline/src/timeline-item2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +1 -1
- package/lib/components/tooltip-v2/src/content2.js +1 -1
- package/lib/components/tooltip-v2/src/root.js +80 -17
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +17 -80
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
- package/lib/components/transfer/index.js +2 -2
- package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
- package/lib/components/transfer/src/transfer-panel.js +1 -1
- package/lib/components/transfer/src/transfer.js +73 -161
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer2.js +161 -73
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-list.js +30 -175
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +175 -30
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/components/visual-hidden/index.js +2 -2
- package/lib/components/visual-hidden/src/visual-hidden.js +7 -35
- package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
- package/lib/components/visual-hidden/src/visual-hidden2.js +35 -7
- package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
- package/lib/components/watermark/index.js +2 -2
- package/lib/components/watermark/src/watermark.js +28 -209
- package/lib/components/watermark/src/watermark.js.map +1 -1
- package/lib/components/watermark/src/watermark2.js +209 -28
- package/lib/components/watermark/src/watermark2.js.map +1 -1
- package/lib/index.js +16 -16
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -2,82 +2,170 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
6
|
require('../../../utils/index.js');
|
|
7
|
-
require('../../../
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var index$2 = require('../../button/index.js');
|
|
9
|
+
var index$3 = require('../../icon/index.js');
|
|
10
|
+
require('../../form/index.js');
|
|
11
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
12
|
+
var transfer = require('./transfer.js');
|
|
13
|
+
require('./composables/index.js');
|
|
14
|
+
var transferPanel = require('./transfer-panel2.js');
|
|
15
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
16
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
17
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
18
|
+
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
|
19
|
+
var usePropsAlias = require('./composables/use-props-alias.js');
|
|
20
|
+
var useComputedData = require('./composables/use-computed-data.js');
|
|
21
|
+
var useCheckedChange = require('./composables/use-checked-change.js');
|
|
22
|
+
var useMove = require('./composables/use-move.js');
|
|
23
|
+
var error = require('../../../utils/error.js');
|
|
24
|
+
var types = require('../../../utils/types.js');
|
|
12
25
|
|
|
13
|
-
const
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
26
|
+
const __default__ = vue.defineComponent({
|
|
27
|
+
name: "ElTransfer"
|
|
28
|
+
});
|
|
29
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
30
|
+
...__default__,
|
|
31
|
+
props: transfer.transferProps,
|
|
32
|
+
emits: transfer.transferEmits,
|
|
33
|
+
setup(__props, { expose, emit }) {
|
|
34
|
+
const props = __props;
|
|
35
|
+
const slots = vue.useSlots();
|
|
36
|
+
const { t } = index.useLocale();
|
|
37
|
+
const ns = index$1.useNamespace("transfer");
|
|
38
|
+
const { formItem } = useFormItem.useFormItem();
|
|
39
|
+
const checkedState = vue.reactive({
|
|
40
|
+
leftChecked: [],
|
|
41
|
+
rightChecked: []
|
|
42
|
+
});
|
|
43
|
+
const propsAlias = usePropsAlias.usePropsAlias(props);
|
|
44
|
+
const { sourceData, targetData } = useComputedData.useComputedData(props);
|
|
45
|
+
const { onSourceCheckedChange, onTargetCheckedChange } = useCheckedChange.useCheckedChange(checkedState, emit);
|
|
46
|
+
const { addToLeft, addToRight } = useMove.useMove(props, checkedState, emit);
|
|
47
|
+
const leftPanel = vue.ref();
|
|
48
|
+
const rightPanel = vue.ref();
|
|
49
|
+
const clearQuery = (which) => {
|
|
50
|
+
switch (which) {
|
|
51
|
+
case "left":
|
|
52
|
+
leftPanel.value.query = "";
|
|
53
|
+
break;
|
|
54
|
+
case "right":
|
|
55
|
+
rightPanel.value.query = "";
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const hasButtonTexts = vue.computed(() => props.buttonTexts.length === 2);
|
|
60
|
+
const leftPanelTitle = vue.computed(() => props.titles[0] || t("el.transfer.titles.0"));
|
|
61
|
+
const rightPanelTitle = vue.computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
62
|
+
const panelFilterPlaceholder = vue.computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
63
|
+
vue.watch(() => props.modelValue, () => {
|
|
64
|
+
var _a;
|
|
65
|
+
if (props.validateEvent) {
|
|
66
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => error.debugWarn(err));
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
const optionRender = vue.computed(() => (option) => {
|
|
70
|
+
var _a;
|
|
71
|
+
if (props.renderContent)
|
|
72
|
+
return props.renderContent(vue.h, option);
|
|
73
|
+
const defaultSlotVNodes = (((_a = slots.default) == null ? void 0 : _a.call(slots, { option })) || []).filter((node) => node.type !== vue.Comment);
|
|
74
|
+
if (defaultSlotVNodes.length) {
|
|
75
|
+
return defaultSlotVNodes;
|
|
76
|
+
}
|
|
77
|
+
return vue.h("span", option[propsAlias.value.label] || option[propsAlias.value.key]);
|
|
78
|
+
});
|
|
79
|
+
expose({
|
|
80
|
+
clearQuery,
|
|
81
|
+
leftPanel,
|
|
82
|
+
rightPanel
|
|
83
|
+
});
|
|
84
|
+
return (_ctx, _cache) => {
|
|
85
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
86
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
87
|
+
}, [
|
|
88
|
+
vue.createVNode(transferPanel["default"], {
|
|
89
|
+
ref_key: "leftPanel",
|
|
90
|
+
ref: leftPanel,
|
|
91
|
+
data: vue.unref(sourceData),
|
|
92
|
+
"option-render": vue.unref(optionRender),
|
|
93
|
+
placeholder: vue.unref(panelFilterPlaceholder),
|
|
94
|
+
title: vue.unref(leftPanelTitle),
|
|
95
|
+
filterable: _ctx.filterable,
|
|
96
|
+
format: _ctx.format,
|
|
97
|
+
"filter-method": _ctx.filterMethod,
|
|
98
|
+
"default-checked": _ctx.leftDefaultChecked,
|
|
99
|
+
props: props.props,
|
|
100
|
+
onCheckedChange: vue.unref(onSourceCheckedChange)
|
|
101
|
+
}, {
|
|
102
|
+
default: vue.withCtx(() => [
|
|
103
|
+
vue.renderSlot(_ctx.$slots, "left-footer")
|
|
104
|
+
]),
|
|
105
|
+
_: 3
|
|
106
|
+
}, 8, ["data", "option-render", "placeholder", "title", "filterable", "format", "filter-method", "default-checked", "props", "onCheckedChange"]),
|
|
107
|
+
vue.createElementVNode("div", {
|
|
108
|
+
class: vue.normalizeClass(vue.unref(ns).e("buttons"))
|
|
109
|
+
}, [
|
|
110
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
111
|
+
type: "primary",
|
|
112
|
+
class: vue.normalizeClass([vue.unref(ns).e("button"), vue.unref(ns).is("with-texts", vue.unref(hasButtonTexts))]),
|
|
113
|
+
disabled: vue.unref(types.isEmpty)(checkedState.rightChecked),
|
|
114
|
+
onClick: vue.unref(addToLeft)
|
|
115
|
+
}, {
|
|
116
|
+
default: vue.withCtx(() => [
|
|
117
|
+
vue.createVNode(vue.unref(index$3.ElIcon), null, {
|
|
118
|
+
default: vue.withCtx(() => [
|
|
119
|
+
vue.createVNode(vue.unref(iconsVue.ArrowLeft))
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}),
|
|
123
|
+
!vue.unref(types.isUndefined)(_ctx.buttonTexts[0]) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.buttonTexts[0]), 1)) : vue.createCommentVNode("v-if", true)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["class", "disabled", "onClick"]),
|
|
127
|
+
vue.createVNode(vue.unref(index$2.ElButton), {
|
|
128
|
+
type: "primary",
|
|
129
|
+
class: vue.normalizeClass([vue.unref(ns).e("button"), vue.unref(ns).is("with-texts", vue.unref(hasButtonTexts))]),
|
|
130
|
+
disabled: vue.unref(types.isEmpty)(checkedState.leftChecked),
|
|
131
|
+
onClick: vue.unref(addToRight)
|
|
132
|
+
}, {
|
|
133
|
+
default: vue.withCtx(() => [
|
|
134
|
+
!vue.unref(types.isUndefined)(_ctx.buttonTexts[1]) ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.buttonTexts[1]), 1)) : vue.createCommentVNode("v-if", true),
|
|
135
|
+
vue.createVNode(vue.unref(index$3.ElIcon), null, {
|
|
136
|
+
default: vue.withCtx(() => [
|
|
137
|
+
vue.createVNode(vue.unref(iconsVue.ArrowRight))
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
})
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}, 8, ["class", "disabled", "onClick"])
|
|
144
|
+
], 2),
|
|
145
|
+
vue.createVNode(transferPanel["default"], {
|
|
146
|
+
ref_key: "rightPanel",
|
|
147
|
+
ref: rightPanel,
|
|
148
|
+
data: vue.unref(targetData),
|
|
149
|
+
"option-render": vue.unref(optionRender),
|
|
150
|
+
placeholder: vue.unref(panelFilterPlaceholder),
|
|
151
|
+
filterable: _ctx.filterable,
|
|
152
|
+
format: _ctx.format,
|
|
153
|
+
"filter-method": _ctx.filterMethod,
|
|
154
|
+
title: vue.unref(rightPanelTitle),
|
|
155
|
+
"default-checked": _ctx.rightDefaultChecked,
|
|
156
|
+
props: props.props,
|
|
157
|
+
onCheckedChange: vue.unref(onTargetCheckedChange)
|
|
158
|
+
}, {
|
|
159
|
+
default: vue.withCtx(() => [
|
|
160
|
+
vue.renderSlot(_ctx.$slots, "right-footer")
|
|
161
|
+
]),
|
|
162
|
+
_: 3
|
|
163
|
+
}, 8, ["data", "option-render", "placeholder", "filterable", "format", "filter-method", "title", "default-checked", "props", "onCheckedChange"])
|
|
164
|
+
], 2);
|
|
165
|
+
};
|
|
68
166
|
}
|
|
69
167
|
});
|
|
70
|
-
|
|
71
|
-
const transferEmits = {
|
|
72
|
-
[event.CHANGE_EVENT]: (value, direction, movedKeys) => [value, movedKeys].every(shared.isArray) && ["left", "right"].includes(direction),
|
|
73
|
-
[event.UPDATE_MODEL_EVENT]: (value) => shared.isArray(value),
|
|
74
|
-
[LEFT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn,
|
|
75
|
-
[RIGHT_CHECK_CHANGE_EVENT]: transferCheckedChangeFn
|
|
76
|
-
};
|
|
168
|
+
var Transfer = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "transfer.vue"]]);
|
|
77
169
|
|
|
78
|
-
exports
|
|
79
|
-
exports.RIGHT_CHECK_CHANGE_EVENT = RIGHT_CHECK_CHANGE_EVENT;
|
|
80
|
-
exports.transferCheckedChangeFn = transferCheckedChangeFn;
|
|
81
|
-
exports.transferEmits = transferEmits;
|
|
82
|
-
exports.transferProps = transferProps;
|
|
170
|
+
exports["default"] = Transfer;
|
|
83
171
|
//# sourceMappingURL=transfer2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer2.js","sources":["../../../../../../packages/components/transfer/src/transfer.
|
|
1
|
+
{"version":3,"file":"transfer2.js","sources":["../../../../../../packages/components/transfer/src/transfer.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <transfer-panel\n ref=\"leftPanel\"\n :data=\"sourceData\"\n :option-render=\"optionRender\"\n :placeholder=\"panelFilterPlaceholder\"\n :title=\"leftPanelTitle\"\n :filterable=\"filterable\"\n :format=\"format\"\n :filter-method=\"filterMethod\"\n :default-checked=\"leftDefaultChecked\"\n :props=\"props.props\"\n @checked-change=\"onSourceCheckedChange\"\n >\n <slot name=\"left-footer\" />\n </transfer-panel>\n <div :class=\"ns.e('buttons')\">\n <el-button\n type=\"primary\"\n :class=\"[ns.e('button'), ns.is('with-texts', hasButtonTexts)]\"\n :disabled=\"isEmpty(checkedState.rightChecked)\"\n @click=\"addToLeft\"\n >\n <el-icon><arrow-left /></el-icon>\n <span v-if=\"!isUndefined(buttonTexts[0])\">{{ buttonTexts[0] }}</span>\n </el-button>\n <el-button\n type=\"primary\"\n :class=\"[ns.e('button'), ns.is('with-texts', hasButtonTexts)]\"\n :disabled=\"isEmpty(checkedState.leftChecked)\"\n @click=\"addToRight\"\n >\n <span v-if=\"!isUndefined(buttonTexts[1])\">{{ buttonTexts[1] }}</span>\n <el-icon><arrow-right /></el-icon>\n </el-button>\n </div>\n <transfer-panel\n ref=\"rightPanel\"\n :data=\"targetData\"\n :option-render=\"optionRender\"\n :placeholder=\"panelFilterPlaceholder\"\n :filterable=\"filterable\"\n :format=\"format\"\n :filter-method=\"filterMethod\"\n :title=\"rightPanelTitle\"\n :default-checked=\"rightDefaultChecked\"\n :props=\"props.props\"\n @checked-change=\"onTargetCheckedChange\"\n >\n <slot name=\"right-footer\" />\n </transfer-panel>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { Comment, computed, h, reactive, ref, useSlots, watch } from 'vue'\nimport { debugWarn, isEmpty, isUndefined } from '@element-plus/utils'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { ElButton } from '@element-plus/components/button'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useFormItem } from '@element-plus/components/form'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport { transferEmits, transferProps } from './transfer'\nimport {\n useCheckedChange,\n useComputedData,\n useMove,\n usePropsAlias,\n} from './composables'\nimport TransferPanel from './transfer-panel.vue'\n\nimport type {\n TransferCheckedState,\n TransferDataItem,\n TransferDirection,\n} from './transfer'\nimport type { TransferPanelInstance } from './transfer-panel'\n\ndefineOptions({\n name: 'ElTransfer',\n})\n\nconst props = defineProps(transferProps)\nconst emit = defineEmits(transferEmits)\nconst slots = useSlots()\n\nconst { t } = useLocale()\nconst ns = useNamespace('transfer')\nconst { formItem } = useFormItem()\n\nconst checkedState = reactive<TransferCheckedState>({\n leftChecked: [],\n rightChecked: [],\n})\n\nconst propsAlias = usePropsAlias(props)\n\nconst { sourceData, targetData } = useComputedData(props)\n\nconst { onSourceCheckedChange, onTargetCheckedChange } = useCheckedChange(\n checkedState,\n emit\n)\n\nconst { addToLeft, addToRight } = useMove(props, checkedState, emit)\n\nconst leftPanel = ref<TransferPanelInstance>()\nconst rightPanel = ref<TransferPanelInstance>()\n\nconst clearQuery = (which: TransferDirection) => {\n switch (which) {\n case 'left':\n leftPanel.value!.query = ''\n break\n case 'right':\n rightPanel.value!.query = ''\n break\n }\n}\n\nconst hasButtonTexts = computed(() => props.buttonTexts.length === 2)\n\nconst leftPanelTitle = computed(\n () => props.titles[0] || t('el.transfer.titles.0')\n)\n\nconst rightPanelTitle = computed(\n () => props.titles[1] || t('el.transfer.titles.1')\n)\n\nconst panelFilterPlaceholder = computed(\n () => props.filterPlaceholder || t('el.transfer.filterPlaceholder')\n)\n\nwatch(\n () => props.modelValue,\n () => {\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n }\n)\n\nconst optionRender = computed(() => (option: TransferDataItem) => {\n if (props.renderContent) return props.renderContent(h, option)\n\n const defaultSlotVNodes = (slots.default?.({ option }) || []).filter(\n (node) => node.type !== Comment\n )\n if (defaultSlotVNodes.length) {\n return defaultSlotVNodes\n }\n\n return h(\n 'span',\n option[propsAlias.value.label] || option[propsAlias.value.key]\n )\n})\n\ndefineExpose({\n /** @description clear the filter keyword of a certain panel */\n clearQuery,\n /** @description left panel ref */\n leftPanel,\n /** @description right panel ref */\n rightPanel,\n})\n</script>\n"],"names":["useSlots","useLocale","useNamespace","useFormItem","reactive","usePropsAlias","useComputedData","useCheckedChange","useMove","ref","computed","watch","debugWarn","h","Comment","_normalizeClass","_unref","_createVNode","TransferPanel"],"mappings":"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"}
|
|
@@ -6,7 +6,7 @@ require('../../utils/index.js');
|
|
|
6
6
|
var upload$1 = require('./src/upload2.js');
|
|
7
7
|
var upload = require('./src/upload.js');
|
|
8
8
|
var uploadContent = require('./src/upload-content.js');
|
|
9
|
-
var uploadList = require('./src/upload-
|
|
9
|
+
var uploadList = require('./src/upload-list.js');
|
|
10
10
|
var uploadDragger = require('./src/upload-dragger.js');
|
|
11
11
|
var constants = require('./src/constants.js');
|
|
12
12
|
var install = require('../../utils/vue/install.js');
|
|
@@ -2,183 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('../../../
|
|
9
|
-
var
|
|
10
|
-
require('../../form/index.js');
|
|
11
|
-
var uploadList = require('./upload-list2.js');
|
|
12
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
13
|
-
var index = require('../../../hooks/use-locale/index.js');
|
|
14
|
-
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
15
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
var upload = require('./upload.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var typescript = require('../../../utils/typescript.js');
|
|
9
|
+
var shared = require('@vue/shared');
|
|
16
10
|
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const handleRemove = (file) => {
|
|
38
|
-
emit("remove", file);
|
|
39
|
-
};
|
|
40
|
-
return (_ctx, _cache) => {
|
|
41
|
-
return vue.openBlock(), vue.createBlock(vue.TransitionGroup, {
|
|
42
|
-
tag: "ul",
|
|
43
|
-
class: vue.normalizeClass(vue.unref(containerKls)),
|
|
44
|
-
name: vue.unref(nsList).b()
|
|
45
|
-
}, {
|
|
46
|
-
default: vue.withCtx(() => [
|
|
47
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.files, (file, index) => {
|
|
48
|
-
return vue.openBlock(), vue.createElementBlock("li", {
|
|
49
|
-
key: file.uid || file.name,
|
|
50
|
-
class: vue.normalizeClass([
|
|
51
|
-
vue.unref(nsUpload).be("list", "item"),
|
|
52
|
-
vue.unref(nsUpload).is(file.status),
|
|
53
|
-
{ focusing: focusing.value }
|
|
54
|
-
]),
|
|
55
|
-
tabindex: "0",
|
|
56
|
-
onKeydown: vue.withKeys(($event) => !vue.unref(disabled) && handleRemove(file), ["delete"]),
|
|
57
|
-
onFocus: ($event) => focusing.value = true,
|
|
58
|
-
onBlur: ($event) => focusing.value = false,
|
|
59
|
-
onClick: ($event) => focusing.value = false
|
|
60
|
-
}, [
|
|
61
|
-
vue.renderSlot(_ctx.$slots, "default", {
|
|
62
|
-
file,
|
|
63
|
-
index
|
|
64
|
-
}, () => [
|
|
65
|
-
_ctx.listType === "picture" || file.status !== "uploading" && _ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
66
|
-
key: 0,
|
|
67
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-thumbnail")),
|
|
68
|
-
src: file.url,
|
|
69
|
-
crossorigin: _ctx.crossorigin,
|
|
70
|
-
alt: ""
|
|
71
|
-
}, null, 10, ["src", "crossorigin"])) : vue.createCommentVNode("v-if", true),
|
|
72
|
-
file.status === "uploading" || _ctx.listType !== "picture-card" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
73
|
-
key: 1,
|
|
74
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-info"))
|
|
75
|
-
}, [
|
|
76
|
-
vue.createElementVNode("a", {
|
|
77
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-name")),
|
|
78
|
-
onClick: vue.withModifiers(($event) => _ctx.handlePreview(file), ["prevent"])
|
|
79
|
-
}, [
|
|
80
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
81
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("document"))
|
|
82
|
-
}, {
|
|
83
|
-
default: vue.withCtx(() => [
|
|
84
|
-
vue.createVNode(vue.unref(iconsVue.Document))
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
}, 8, ["class"]),
|
|
88
|
-
vue.createElementVNode("span", {
|
|
89
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-file-name")),
|
|
90
|
-
title: file.name
|
|
91
|
-
}, vue.toDisplayString(file.name), 11, ["title"])
|
|
92
|
-
], 10, ["onClick"]),
|
|
93
|
-
file.status === "uploading" ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElProgress), {
|
|
94
|
-
key: 0,
|
|
95
|
-
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
96
|
-
"stroke-width": _ctx.listType === "picture-card" ? 6 : 2,
|
|
97
|
-
percentage: Number(file.percentage),
|
|
98
|
-
style: vue.normalizeStyle(_ctx.listType === "picture-card" ? "" : "margin-top: 0.5rem")
|
|
99
|
-
}, null, 8, ["type", "stroke-width", "percentage", "style"])) : vue.createCommentVNode("v-if", true)
|
|
100
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
101
|
-
vue.createElementVNode("label", {
|
|
102
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-status-label"))
|
|
103
|
-
}, [
|
|
104
|
-
_ctx.listType === "text" ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
105
|
-
key: 0,
|
|
106
|
-
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("circle-check")])
|
|
107
|
-
}, {
|
|
108
|
-
default: vue.withCtx(() => [
|
|
109
|
-
vue.createVNode(vue.unref(iconsVue.CircleCheck))
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 8, ["class"])) : ["picture-card", "picture"].includes(_ctx.listType) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
113
|
-
key: 1,
|
|
114
|
-
class: vue.normalizeClass([vue.unref(nsIcon).m("upload-success"), vue.unref(nsIcon).m("check")])
|
|
115
|
-
}, {
|
|
116
|
-
default: vue.withCtx(() => [
|
|
117
|
-
vue.createVNode(vue.unref(iconsVue.Check))
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
121
|
-
], 2),
|
|
122
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), {
|
|
123
|
-
key: 2,
|
|
124
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("close")),
|
|
125
|
-
onClick: ($event) => handleRemove(file)
|
|
126
|
-
}, {
|
|
127
|
-
default: vue.withCtx(() => [
|
|
128
|
-
vue.createVNode(vue.unref(iconsVue.Close))
|
|
129
|
-
]),
|
|
130
|
-
_: 2
|
|
131
|
-
}, 1032, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
|
|
132
|
-
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"),
|
|
133
|
-
vue.createCommentVNode(" This is a bug which needs to be fixed "),
|
|
134
|
-
vue.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
135
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
136
|
-
key: 3,
|
|
137
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("close-tip"))
|
|
138
|
-
}, vue.toDisplayString(vue.unref(t)("el.upload.deleteTip")), 3)) : vue.createCommentVNode("v-if", true),
|
|
139
|
-
_ctx.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
140
|
-
key: 4,
|
|
141
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-actions"))
|
|
142
|
-
}, [
|
|
143
|
-
vue.createElementVNode("span", {
|
|
144
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-preview")),
|
|
145
|
-
onClick: ($event) => _ctx.handlePreview(file)
|
|
146
|
-
}, [
|
|
147
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
148
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("zoom-in"))
|
|
149
|
-
}, {
|
|
150
|
-
default: vue.withCtx(() => [
|
|
151
|
-
vue.createVNode(vue.unref(iconsVue.ZoomIn))
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, ["class"])
|
|
155
|
-
], 10, ["onClick"]),
|
|
156
|
-
!vue.unref(disabled) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
157
|
-
key: 0,
|
|
158
|
-
class: vue.normalizeClass(vue.unref(nsUpload).be("list", "item-delete")),
|
|
159
|
-
onClick: ($event) => handleRemove(file)
|
|
160
|
-
}, [
|
|
161
|
-
vue.createVNode(vue.unref(index$2.ElIcon), {
|
|
162
|
-
class: vue.normalizeClass(vue.unref(nsIcon).m("delete"))
|
|
163
|
-
}, {
|
|
164
|
-
default: vue.withCtx(() => [
|
|
165
|
-
vue.createVNode(vue.unref(iconsVue.Delete))
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
}, 8, ["class"])
|
|
169
|
-
], 10, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
170
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
171
|
-
])
|
|
172
|
-
], 42, ["onKeydown", "onFocus", "onBlur", "onClick"]);
|
|
173
|
-
}), 128)),
|
|
174
|
-
vue.renderSlot(_ctx.$slots, "append")
|
|
175
|
-
]),
|
|
176
|
-
_: 3
|
|
177
|
-
}, 8, ["class", "name"]);
|
|
178
|
-
};
|
|
11
|
+
const uploadListProps = runtime.buildProps({
|
|
12
|
+
files: {
|
|
13
|
+
type: runtime.definePropType(Array),
|
|
14
|
+
default: () => typescript.mutable([])
|
|
15
|
+
},
|
|
16
|
+
disabled: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
handlePreview: {
|
|
21
|
+
type: runtime.definePropType(Function),
|
|
22
|
+
default: shared.NOOP
|
|
23
|
+
},
|
|
24
|
+
listType: {
|
|
25
|
+
type: String,
|
|
26
|
+
values: upload.uploadListTypes,
|
|
27
|
+
default: "text"
|
|
28
|
+
},
|
|
29
|
+
crossorigin: {
|
|
30
|
+
type: runtime.definePropType(String)
|
|
179
31
|
}
|
|
180
32
|
});
|
|
181
|
-
|
|
33
|
+
const uploadListEmits = {
|
|
34
|
+
remove: (file) => !!file
|
|
35
|
+
};
|
|
182
36
|
|
|
183
|
-
exports
|
|
37
|
+
exports.uploadListEmits = uploadListEmits;
|
|
38
|
+
exports.uploadListProps = uploadListProps;
|
|
184
39
|
//# sourceMappingURL=upload-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-list.js","sources":["../../../../../../packages/components/upload/src/upload-list.
|
|
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'\nimport type { ExtractPropTypes } 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: false,\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 const uploadListEmits = {\n remove: (file: UploadFile) => !!file,\n}\nexport type UploadListEmits = typeof uploadListEmits\nexport type UploadListInstance = InstanceType<typeof UploadList>\n"],"names":["buildProps","definePropType","mutable","NOOP","uploadListTypes"],"mappings":";;;;;;;;;;AAEY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEE,WAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAEC,sBAAe;AAC3B,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEH,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,MAAM,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI;AAC1B;;;;;"}
|