@element-plus/nightly 0.0.20231225 → 0.0.20231227
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +2084 -817
- package/dist/index.full.min.js +22 -22
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +22 -22
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2081 -818
- 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 +6 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.js.map +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.min.mjs.map +1 -1
- package/dist/locale/de.mjs +6 -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 +6 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.js.map +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.min.mjs.map +1 -1
- package/dist/locale/en.mjs +6 -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 +6 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.js.map +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.min.mjs.map +1 -1
- package/dist/locale/eu.mjs +6 -1
- package/dist/locale/fa.js +6 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.js.map +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.min.mjs.map +1 -1
- package/dist/locale/fa.mjs +6 -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 +6 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.js.map +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.min.mjs.map +1 -1
- package/dist/locale/ja.mjs +6 -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 +6 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.js.map +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.min.mjs.map +1 -1
- package/dist/locale/ko.mjs +6 -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 +6 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.js.map +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.min.mjs.map +1 -1
- package/dist/locale/lt.mjs +6 -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/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 +6 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.js.map +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.min.mjs.map +1 -1
- package/dist/locale/pl.mjs +6 -1
- package/dist/locale/pt-br.js +6 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.js.map +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.min.mjs.map +1 -1
- package/dist/locale/pt-br.mjs +6 -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 +6 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.js.map +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.min.mjs.map +1 -1
- package/dist/locale/ru.mjs +6 -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 +6 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.js.map +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.min.mjs.map +1 -1
- package/dist/locale/sv.mjs +6 -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 +6 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.js.map +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.min.mjs.map +1 -1
- package/dist/locale/th.mjs +6 -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 +6 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.js.map +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.min.mjs.map +1 -1
- package/dist/locale/uk.mjs +6 -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 +6 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.js.map +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.min.mjs.map +1 -1
- package/dist/locale/vi.mjs +6 -1
- package/dist/locale/zh-cn.js +6 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.js.map +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.min.mjs.map +1 -1
- package/dist/locale/zh-cn.mjs +6 -1
- package/dist/locale/zh-tw.js +6 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.js.map +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.min.mjs.map +1 -1
- package/dist/locale/zh-tw.mjs +6 -1
- package/es/component.mjs +4 -1
- package/es/component.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +6 -0
- package/es/components/carousel/src/carousel-item.vue.d.ts +3 -0
- package/es/components/carousel/src/carousel-item2.mjs +12 -11
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +4 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +9 -66
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +66 -9
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/tour/index.d.ts +7626 -0
- package/es/components/tour/index.mjs +13 -0
- package/es/components/tour/index.mjs.map +1 -0
- package/es/components/tour/src/content.d.ts +15 -0
- package/es/components/tour/src/content.mjs +49 -0
- package/es/components/tour/src/content.mjs.map +1 -0
- package/es/components/tour/src/content.vue.d.ts +95 -0
- package/es/components/tour/src/content2.mjs +65 -0
- package/es/components/tour/src/content2.mjs.map +1 -0
- package/es/components/tour/src/helper.d.ts +37 -0
- package/es/components/tour/src/helper.mjs +234 -0
- package/es/components/tour/src/helper.mjs.map +1 -0
- package/es/components/tour/src/mask.d.ts +15 -0
- package/es/components/tour/src/mask.mjs +24 -0
- package/es/components/tour/src/mask.mjs.map +1 -0
- package/es/components/tour/src/mask.vue.d.ts +68 -0
- package/es/components/tour/src/mask2.mjs +117 -0
- package/es/components/tour/src/mask2.mjs.map +1 -0
- package/es/components/tour/src/step.d.ts +62 -0
- package/es/components/tour/src/step.mjs +48 -0
- package/es/components/tour/src/step.mjs.map +1 -0
- package/es/components/tour/src/step.vue.d.ts +545 -0
- package/es/components/tour/src/step2.mjs +163 -0
- package/es/components/tour/src/step2.mjs.map +1 -0
- package/es/components/tour/src/steps.d.ts +19 -0
- package/es/components/tour/src/steps.mjs +52 -0
- package/es/components/tour/src/steps.mjs.map +1 -0
- package/es/components/tour/src/tour.d.ts +55 -0
- package/es/components/tour/src/tour.mjs +75 -0
- package/es/components/tour/src/tour.mjs.map +1 -0
- package/es/components/tour/src/tour.vue.d.ts +6535 -0
- package/es/components/tour/src/tour2.mjs +152 -0
- package/es/components/tour/src/tour2.mjs.map +1 -0
- package/es/components/tour/src/types.d.ts +32 -0
- package/es/components/tour/src/types.mjs +2 -0
- package/es/components/tour/src/types.mjs.map +1 -0
- package/es/components/tour/style/css.d.ts +3 -0
- package/es/components/tour/style/css.mjs +4 -0
- package/es/components/tour/style/css.mjs.map +1 -0
- package/es/components/tour/style/index.d.ts +3 -0
- package/es/components/tour/style/index.mjs +4 -0
- package/es/components/tour/style/index.mjs.map +1 -0
- package/es/components/tour-step/style/css.d.ts +0 -0
- package/es/components/tour-step/style/css.mjs +2 -0
- package/es/components/tour-step/style/css.mjs.map +1 -0
- package/es/components/tour-step/style/index.d.ts +0 -0
- package/es/components/tour-step/style/index.mjs +2 -0
- package/es/components/tour-step/style/index.mjs.map +1 -0
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content.mjs +33 -194
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +194 -33
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +4 -2
- package/es/index.mjs.map +1 -1
- package/es/locale/lang/de.d.ts +5 -0
- package/es/locale/lang/de.mjs +5 -0
- package/es/locale/lang/de.mjs.map +1 -1
- package/es/locale/lang/en.d.ts +5 -0
- package/es/locale/lang/en.mjs +5 -0
- package/es/locale/lang/en.mjs.map +1 -1
- package/es/locale/lang/eu.d.ts +5 -0
- package/es/locale/lang/eu.mjs +5 -0
- package/es/locale/lang/eu.mjs.map +1 -1
- package/es/locale/lang/fa.d.ts +5 -0
- package/es/locale/lang/fa.mjs +5 -0
- package/es/locale/lang/fa.mjs.map +1 -1
- package/es/locale/lang/ja.d.ts +5 -0
- package/es/locale/lang/ja.mjs +5 -0
- package/es/locale/lang/ja.mjs.map +1 -1
- package/es/locale/lang/ko.d.ts +5 -0
- package/es/locale/lang/ko.mjs +5 -0
- package/es/locale/lang/ko.mjs.map +1 -1
- package/es/locale/lang/lt.d.ts +5 -0
- package/es/locale/lang/lt.mjs +5 -0
- package/es/locale/lang/lt.mjs.map +1 -1
- package/es/locale/lang/pl.d.ts +5 -0
- package/es/locale/lang/pl.mjs +5 -0
- package/es/locale/lang/pl.mjs.map +1 -1
- package/es/locale/lang/pt-br.d.ts +5 -0
- package/es/locale/lang/pt-br.mjs +5 -0
- package/es/locale/lang/pt-br.mjs.map +1 -1
- package/es/locale/lang/ru.d.ts +5 -0
- package/es/locale/lang/ru.mjs +5 -0
- package/es/locale/lang/ru.mjs.map +1 -1
- package/es/locale/lang/sv.d.ts +5 -0
- package/es/locale/lang/sv.mjs +5 -0
- package/es/locale/lang/sv.mjs.map +1 -1
- package/es/locale/lang/th.d.ts +5 -0
- package/es/locale/lang/th.mjs +5 -0
- package/es/locale/lang/th.mjs.map +1 -1
- package/es/locale/lang/uk.d.ts +5 -0
- package/es/locale/lang/uk.mjs +5 -0
- package/es/locale/lang/uk.mjs.map +1 -1
- package/es/locale/lang/vi.d.ts +5 -0
- package/es/locale/lang/vi.mjs +5 -0
- package/es/locale/lang/vi.mjs.map +1 -1
- package/es/locale/lang/zh-cn.d.ts +5 -0
- package/es/locale/lang/zh-cn.mjs +5 -0
- package/es/locale/lang/zh-cn.mjs.map +1 -1
- package/es/locale/lang/zh-tw.d.ts +5 -0
- package/es/locale/lang/zh-tw.mjs +5 -0
- package/es/locale/lang/zh-tw.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js +4 -1
- package/lib/component.js.map +1 -1
- package/lib/components/carousel/index.d.ts +6 -0
- package/lib/components/carousel/src/carousel-item.vue.d.ts +3 -0
- package/lib/components/carousel/src/carousel-item2.js +12 -11
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +21 -15
- package/lib/components/index.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +9 -66
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +66 -9
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/tour/index.d.ts +7626 -0
- package/lib/components/tour/index.js +21 -0
- package/lib/components/tour/index.js.map +1 -0
- package/lib/components/tour/src/content.d.ts +15 -0
- package/lib/components/tour/src/content.js +54 -0
- package/lib/components/tour/src/content.js.map +1 -0
- package/lib/components/tour/src/content.vue.d.ts +95 -0
- package/lib/components/tour/src/content2.js +69 -0
- package/lib/components/tour/src/content2.js.map +1 -0
- package/lib/components/tour/src/helper.d.ts +37 -0
- package/lib/components/tour/src/helper.js +242 -0
- package/lib/components/tour/src/helper.js.map +1 -0
- package/lib/components/tour/src/mask.d.ts +15 -0
- package/lib/components/tour/src/mask.js +28 -0
- package/lib/components/tour/src/mask.js.map +1 -0
- package/lib/components/tour/src/mask.vue.d.ts +68 -0
- package/lib/components/tour/src/mask2.js +121 -0
- package/lib/components/tour/src/mask2.js.map +1 -0
- package/lib/components/tour/src/step.d.ts +62 -0
- package/lib/components/tour/src/step.js +53 -0
- package/lib/components/tour/src/step.js.map +1 -0
- package/lib/components/tour/src/step.vue.d.ts +545 -0
- package/lib/components/tour/src/step2.js +167 -0
- package/lib/components/tour/src/step2.js.map +1 -0
- package/lib/components/tour/src/steps.d.ts +19 -0
- package/lib/components/tour/src/steps.js +56 -0
- package/lib/components/tour/src/steps.js.map +1 -0
- package/lib/components/tour/src/tour.d.ts +55 -0
- package/lib/components/tour/src/tour.js +80 -0
- package/lib/components/tour/src/tour.js.map +1 -0
- package/lib/components/tour/src/tour.vue.d.ts +6535 -0
- package/lib/components/tour/src/tour2.js +156 -0
- package/lib/components/tour/src/tour2.js.map +1 -0
- package/lib/components/tour/src/types.d.ts +32 -0
- package/lib/components/tour/src/types.js +3 -0
- package/lib/components/tour/src/types.js.map +1 -0
- package/lib/components/tour/style/css.d.ts +3 -0
- package/lib/components/tour/style/css.js +7 -0
- package/lib/components/tour/style/css.js.map +1 -0
- package/lib/components/tour/style/index.d.ts +3 -0
- package/lib/components/tour/style/index.js +7 -0
- package/lib/components/tour/style/index.js.map +1 -0
- package/lib/components/tour-step/style/css.d.ts +0 -0
- package/lib/components/tour-step/style/css.js +3 -0
- package/lib/components/tour-step/style/css.js.map +1 -0
- package/lib/components/tour-step/style/index.d.ts +0 -0
- package/lib/components/tour-step/style/index.js +3 -0
- package/lib/components/tour-step/style/index.js.map +1 -0
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content.js +31 -192
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +192 -31
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +112 -106
- package/lib/index.js.map +1 -1
- package/lib/locale/lang/de.d.ts +5 -0
- package/lib/locale/lang/de.js +5 -0
- package/lib/locale/lang/de.js.map +1 -1
- package/lib/locale/lang/en.d.ts +5 -0
- package/lib/locale/lang/en.js +5 -0
- package/lib/locale/lang/en.js.map +1 -1
- package/lib/locale/lang/eu.d.ts +5 -0
- package/lib/locale/lang/eu.js +5 -0
- package/lib/locale/lang/eu.js.map +1 -1
- package/lib/locale/lang/fa.d.ts +5 -0
- package/lib/locale/lang/fa.js +5 -0
- package/lib/locale/lang/fa.js.map +1 -1
- package/lib/locale/lang/ja.d.ts +5 -0
- package/lib/locale/lang/ja.js +5 -0
- package/lib/locale/lang/ja.js.map +1 -1
- package/lib/locale/lang/ko.d.ts +5 -0
- package/lib/locale/lang/ko.js +5 -0
- package/lib/locale/lang/ko.js.map +1 -1
- package/lib/locale/lang/lt.d.ts +5 -0
- package/lib/locale/lang/lt.js +5 -0
- package/lib/locale/lang/lt.js.map +1 -1
- package/lib/locale/lang/pl.d.ts +5 -0
- package/lib/locale/lang/pl.js +5 -0
- package/lib/locale/lang/pl.js.map +1 -1
- package/lib/locale/lang/pt-br.d.ts +5 -0
- package/lib/locale/lang/pt-br.js +5 -0
- package/lib/locale/lang/pt-br.js.map +1 -1
- package/lib/locale/lang/ru.d.ts +5 -0
- package/lib/locale/lang/ru.js +5 -0
- package/lib/locale/lang/ru.js.map +1 -1
- package/lib/locale/lang/sv.d.ts +5 -0
- package/lib/locale/lang/sv.js +5 -0
- package/lib/locale/lang/sv.js.map +1 -1
- package/lib/locale/lang/th.d.ts +5 -0
- package/lib/locale/lang/th.js +5 -0
- package/lib/locale/lang/th.js.map +1 -1
- package/lib/locale/lang/uk.d.ts +5 -0
- package/lib/locale/lang/uk.js +5 -0
- package/lib/locale/lang/uk.js.map +1 -1
- package/lib/locale/lang/vi.d.ts +5 -0
- package/lib/locale/lang/vi.js +5 -0
- package/lib/locale/lang/vi.js.map +1 -1
- package/lib/locale/lang/zh-cn.d.ts +5 -0
- package/lib/locale/lang/zh-cn.js +5 -0
- package/lib/locale/lang/zh-cn.js.map +1 -1
- package/lib/locale/lang/zh-tw.d.ts +5 -0
- package/lib/locale/lang/zh-tw.js +5 -0
- package/lib/locale/lang/zh-tw.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-tour.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +20 -0
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/tour.scss +166 -0
- package/web-types.json +1 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var core = require('@vueuse/core');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
require('../../../utils/index.js');
|
|
9
|
+
var mask = require('./mask2.js');
|
|
10
|
+
var content = require('./content2.js');
|
|
11
|
+
var steps = require('./steps.js');
|
|
12
|
+
var tour = require('./tour.js');
|
|
13
|
+
var helper = require('./helper.js');
|
|
14
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
15
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
16
|
+
var types = require('../../../utils/types.js');
|
|
17
|
+
var index$1 = require('../../../hooks/use-z-index/index.js');
|
|
18
|
+
|
|
19
|
+
const __default__ = vue.defineComponent({
|
|
20
|
+
name: "ElTour"
|
|
21
|
+
});
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
23
|
+
...__default__,
|
|
24
|
+
props: tour.tourProps,
|
|
25
|
+
emits: tour.tourEmits,
|
|
26
|
+
setup(__props, { emit }) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const ns = index.useNamespace("tour");
|
|
29
|
+
const steps$1 = vue.ref([]);
|
|
30
|
+
const current = core.useVModel(props, "current", emit, {
|
|
31
|
+
passive: true
|
|
32
|
+
});
|
|
33
|
+
const total = vue.computed(() => steps$1.value.length);
|
|
34
|
+
const currentStep = vue.computed(() => steps$1.value[current.value] || {});
|
|
35
|
+
const currentTarget = vue.computed(() => currentStep.value.target);
|
|
36
|
+
const kls = vue.computed(() => [
|
|
37
|
+
ns.b(),
|
|
38
|
+
mergedType.value === "primary" ? ns.m("primary") : ""
|
|
39
|
+
]);
|
|
40
|
+
const mergedPlacement = vue.computed(() => currentStep.value.placement || props.placement);
|
|
41
|
+
const mergedContentStyle = vue.computed(() => {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = currentStep.value.contentStyle) != null ? _a : props.contentStyle;
|
|
44
|
+
});
|
|
45
|
+
const mergedMask = vue.computed(() => {
|
|
46
|
+
var _a;
|
|
47
|
+
return (_a = currentStep.value.mask) != null ? _a : props.mask;
|
|
48
|
+
});
|
|
49
|
+
const mergedShowMask = vue.computed(() => !!mergedMask.value && props.modelValue);
|
|
50
|
+
const mergedMaskStyle = vue.computed(() => types.isBoolean(mergedMask.value) ? void 0 : mergedMask.value);
|
|
51
|
+
const mergedShowArrow = vue.computed(() => {
|
|
52
|
+
var _a;
|
|
53
|
+
return !!currentTarget.value && ((_a = currentStep.value.showArrow) != null ? _a : props.showArrow);
|
|
54
|
+
});
|
|
55
|
+
const mergedScrollIntoViewOptions = vue.computed(() => {
|
|
56
|
+
var _a;
|
|
57
|
+
return (_a = currentStep.value.scrollIntoViewOptions) != null ? _a : props.scrollIntoViewOptions;
|
|
58
|
+
});
|
|
59
|
+
const mergedType = vue.computed(() => {
|
|
60
|
+
var _a;
|
|
61
|
+
return (_a = currentStep.value.type) != null ? _a : props.type;
|
|
62
|
+
});
|
|
63
|
+
const { nextZIndex } = index$1.useZIndex();
|
|
64
|
+
const nowZIndex = nextZIndex();
|
|
65
|
+
const mergedZIndex = vue.computed(() => {
|
|
66
|
+
var _a;
|
|
67
|
+
return (_a = props.zIndex) != null ? _a : nowZIndex;
|
|
68
|
+
});
|
|
69
|
+
const { mergedPosInfo: pos, triggerTarget } = helper.useTarget(currentTarget, vue.toRef(props, "modelValue"), vue.toRef(props, "gap"), mergedMask, mergedScrollIntoViewOptions);
|
|
70
|
+
vue.watch(() => props.modelValue, (val) => {
|
|
71
|
+
if (!val) {
|
|
72
|
+
current.value = 0;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const onUpdateSteps = (v) => {
|
|
76
|
+
steps$1.value = v;
|
|
77
|
+
};
|
|
78
|
+
const onEscClose = () => {
|
|
79
|
+
if (props.closeOnPressEscape) {
|
|
80
|
+
emit("update:modelValue", false);
|
|
81
|
+
emit("close", current.value);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const slots = vue.useSlots();
|
|
85
|
+
vue.provide(helper.tourKey, {
|
|
86
|
+
current,
|
|
87
|
+
total,
|
|
88
|
+
showClose: vue.toRef(props, "showClose"),
|
|
89
|
+
closeIcon: vue.toRef(props, "closeIcon"),
|
|
90
|
+
mergedType,
|
|
91
|
+
ns,
|
|
92
|
+
slots,
|
|
93
|
+
updateModelValue(modelValue) {
|
|
94
|
+
emit("update:modelValue", modelValue);
|
|
95
|
+
},
|
|
96
|
+
onClose() {
|
|
97
|
+
emit("close", current.value);
|
|
98
|
+
},
|
|
99
|
+
onFinish() {
|
|
100
|
+
emit("finish");
|
|
101
|
+
},
|
|
102
|
+
onChange() {
|
|
103
|
+
emit("change", current.value);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
return (_ctx, _cache) => {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
109
|
+
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: _ctx.appendTo }, [
|
|
110
|
+
vue.createElementVNode("div", vue.mergeProps({ class: vue.unref(kls) }, _ctx.$attrs), [
|
|
111
|
+
vue.createVNode(mask["default"], {
|
|
112
|
+
visible: vue.unref(mergedShowMask),
|
|
113
|
+
fill: (_a = vue.unref(mergedMaskStyle)) == null ? void 0 : _a.color,
|
|
114
|
+
style: vue.normalizeStyle((_b = vue.unref(mergedMaskStyle)) == null ? void 0 : _b.style),
|
|
115
|
+
pos: vue.unref(pos),
|
|
116
|
+
"z-index": vue.unref(mergedZIndex),
|
|
117
|
+
"target-area-clickable": _ctx.targetAreaClickable
|
|
118
|
+
}, null, 8, ["visible", "fill", "style", "pos", "z-index", "target-area-clickable"]),
|
|
119
|
+
_ctx.modelValue ? (vue.openBlock(), vue.createBlock(content["default"], {
|
|
120
|
+
key: vue.unref(current),
|
|
121
|
+
reference: vue.unref(triggerTarget),
|
|
122
|
+
placement: vue.unref(mergedPlacement),
|
|
123
|
+
"show-arrow": vue.unref(mergedShowArrow),
|
|
124
|
+
"z-index": vue.unref(mergedZIndex),
|
|
125
|
+
style: vue.normalizeStyle(vue.unref(mergedContentStyle)),
|
|
126
|
+
onClose: onEscClose
|
|
127
|
+
}, {
|
|
128
|
+
default: vue.withCtx(() => [
|
|
129
|
+
vue.createVNode(vue.unref(steps["default"]), {
|
|
130
|
+
current: vue.unref(current),
|
|
131
|
+
onUpdateSteps
|
|
132
|
+
}, {
|
|
133
|
+
default: vue.withCtx(() => [
|
|
134
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
135
|
+
]),
|
|
136
|
+
_: 3
|
|
137
|
+
}, 8, ["current"])
|
|
138
|
+
]),
|
|
139
|
+
_: 3
|
|
140
|
+
}, 8, ["reference", "placement", "show-arrow", "z-index", "style"])) : vue.createCommentVNode("v-if", true)
|
|
141
|
+
], 16)
|
|
142
|
+
], 8, ["to"])),
|
|
143
|
+
vue.createCommentVNode(" just for IDE "),
|
|
144
|
+
false ? vue.renderSlot(_ctx.$slots, "indicators", {
|
|
145
|
+
key: 0,
|
|
146
|
+
current: vue.unref(current) + 1,
|
|
147
|
+
total: vue.unref(total)
|
|
148
|
+
}) : vue.createCommentVNode("v-if", true)
|
|
149
|
+
], 64);
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
var Tour = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "tour.vue"]]);
|
|
154
|
+
|
|
155
|
+
exports["default"] = Tour;
|
|
156
|
+
//# sourceMappingURL=tour2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tour2.js","sources":["../../../../../../packages/components/tour/src/tour.vue"],"sourcesContent":["<template>\n <teleport :to=\"appendTo\">\n <div :class=\"kls\" v-bind=\"$attrs\">\n <el-tour-mask\n :visible=\"mergedShowMask\"\n :fill=\"mergedMaskStyle?.color\"\n :style=\"mergedMaskStyle?.style\"\n :pos=\"pos\"\n :z-index=\"mergedZIndex\"\n :target-area-clickable=\"targetAreaClickable\"\n />\n <el-tour-content\n v-if=\"modelValue\"\n :key=\"current\"\n :reference=\"triggerTarget\"\n :placement=\"mergedPlacement\"\n :show-arrow=\"mergedShowArrow\"\n :z-index=\"mergedZIndex\"\n :style=\"mergedContentStyle\"\n @close=\"onEscClose\"\n >\n <el-tour-steps :current=\"current\" @update-steps=\"onUpdateSteps\">\n <slot />\n </el-tour-steps>\n </el-tour-content>\n </div>\n </teleport>\n <!-- just for IDE -->\n <slot v-if=\"false\" name=\"indicators\" :current=\"current + 1\" :total=\"total\" />\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, toRef, useSlots, watch } from 'vue'\nimport { useVModel } from '@vueuse/core'\nimport { useNamespace, useZIndex } from '@element-plus/hooks'\nimport { isBoolean } from '@element-plus/utils'\nimport ElTourMask from './mask.vue'\nimport ElTourContent from './content.vue'\nimport ElTourSteps from './steps'\nimport { tourEmits, tourProps } from './tour'\nimport { tourKey, useTarget } from './helper'\nimport type { UsedTourStepProps } from './types'\n\ndefineOptions({\n name: 'ElTour',\n})\n\nconst props = defineProps(tourProps)\nconst emit = defineEmits(tourEmits)\n\nconst ns = useNamespace('tour')\nconst steps = ref<UsedTourStepProps[]>([])\n\nconst current = useVModel(props, 'current', emit, {\n passive: true,\n})\nconst total = computed(() => steps.value.length)\n\nconst currentStep = computed(() => steps.value[current.value] || {})\nconst currentTarget = computed(() => currentStep.value.target)\n\nconst kls = computed(() => [\n ns.b(),\n mergedType.value === 'primary' ? ns.m('primary') : '',\n])\n\nconst mergedPlacement = computed(\n () => currentStep.value.placement || props.placement\n)\n\nconst mergedContentStyle = computed(\n () => currentStep.value.contentStyle ?? props.contentStyle\n)\n\nconst mergedMask = computed(() => currentStep.value.mask ?? props.mask)\nconst mergedShowMask = computed(() => !!mergedMask.value && props.modelValue)\nconst mergedMaskStyle = computed(() =>\n isBoolean(mergedMask.value) ? undefined : mergedMask.value\n)\n\nconst mergedShowArrow = computed(\n () =>\n !!currentTarget.value && (currentStep.value.showArrow ?? props.showArrow)\n)\n\nconst mergedScrollIntoViewOptions = computed(\n () => currentStep.value.scrollIntoViewOptions ?? props.scrollIntoViewOptions\n)\nconst mergedType = computed(() => currentStep.value.type ?? props.type)\n\nconst { nextZIndex } = useZIndex()\nconst nowZIndex = nextZIndex()\nconst mergedZIndex = computed(() => props.zIndex ?? nowZIndex)\n\nconst { mergedPosInfo: pos, triggerTarget } = useTarget(\n currentTarget,\n toRef(props, 'modelValue'),\n toRef(props, 'gap'),\n mergedMask,\n mergedScrollIntoViewOptions\n)\n\nwatch(\n () => props.modelValue,\n (val) => {\n if (!val) {\n current.value = 0\n }\n }\n)\n\nconst onUpdateSteps = (v: any) => {\n steps.value = v\n}\n\nconst onEscClose = () => {\n if (props.closeOnPressEscape) {\n emit('update:modelValue', false)\n emit('close', current.value)\n }\n}\n\nconst slots = useSlots()\n\nprovide(tourKey, {\n current,\n total,\n showClose: toRef(props, 'showClose'),\n closeIcon: toRef(props, 'closeIcon') as any,\n mergedType: mergedType as any,\n ns,\n slots,\n updateModelValue(modelValue) {\n emit('update:modelValue', modelValue)\n },\n onClose() {\n emit('close', current.value)\n },\n onFinish() {\n emit('finish')\n },\n onChange() {\n emit('change', current.value)\n },\n})\n</script>\n"],"names":["useNamespace","steps","ref","useVModel","computed","isBoolean","useTarget","toRef","watch","useSlots","provide","tourKey"],"mappings":";;;;;;;;;;;;;;;;;;uCA2Cc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;AAC9B,IAAM,MAAAC,OAAA,GAAQC,OAAyB,CAAA,EAAE,CAAA,CAAA;AAEzC,IAAA,MAAM,OAAU,GAAAC,cAAA,CAAU,KAAO,EAAA,SAAA,EAAW,IAAM,EAAA;AAAA,MAChD,OAAS,EAAA,IAAA;AAAA,KACV,CAAA,CAAA;AACD,IAAA,MAAM,KAAQ,GAAAC,YAAA,CAAS,MAAMH,OAAA,CAAM,MAAM,MAAM,CAAA,CAAA;AAE/C,IAAM,MAAA,WAAA,GAAcG,aAAS,MAAM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GAAY,CAAA,CAAA,KAAA;AAC3B,MAAAP,OAAA,CAAA;AAAoC,KACtC,CAAA;AAAA,IAAA,MACU,UAAA,GAAA,MAAA;AACR,MAAK,IAAA,KAAA,CAAA,kBAAsB,EAAA;AAAA,QAC7B,IAAA,CAAA,mBAAA,EAAA,KAAA,CAAA,CAAA;AAAA,QACW,IAAA,CAAA,OAAA,EAAA,OAAA,CAAA,KAAA,CAAA,CAAA;AACT,OAAA;AAAa,KACf,CAAA;AAAA,IAAA,MACW,KAAA,GAAAQ,YAAA,EAAA,CAAA;AACT,IAAKC,WAAA,CAAAC,cAAA,EAAA;AAAuB,MAC9B,OAAA;AAAA,MACD,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CSSProperties, VNode } from 'vue';
|
|
2
|
+
import type { Placement } from '@floating-ui/dom';
|
|
3
|
+
export declare type TourMask = boolean | {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface TourGap {
|
|
8
|
+
offset?: number | [number, number];
|
|
9
|
+
radius?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TourBtnProps {
|
|
12
|
+
children: VNode | string;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
}
|
|
17
|
+
export interface PosInfo {
|
|
18
|
+
left: number;
|
|
19
|
+
top: number;
|
|
20
|
+
height: number;
|
|
21
|
+
width: number;
|
|
22
|
+
radius: number;
|
|
23
|
+
}
|
|
24
|
+
export interface UsedTourStepProps {
|
|
25
|
+
target?: HTMLElement | null;
|
|
26
|
+
showArrow?: boolean;
|
|
27
|
+
placement?: Placement;
|
|
28
|
+
contentStyle?: CSSProperties;
|
|
29
|
+
mask?: TourMask;
|
|
30
|
+
type?: 'default' | 'primary';
|
|
31
|
+
scrollIntoViewOptions?: boolean | ScrollIntoViewOptions;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var upload$1 = require('./src/upload2.js');
|
|
7
7
|
var upload = require('./src/upload.js');
|
|
8
|
-
var uploadContent = require('./src/upload-
|
|
8
|
+
var uploadContent = require('./src/upload-content.js');
|
|
9
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');
|
|
@@ -2,203 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
5
|
var shared = require('@vue/shared');
|
|
7
|
-
var lodashUnified = require('lodash-unified');
|
|
8
|
-
require('../../../hooks/index.js');
|
|
9
6
|
require('../../../utils/index.js');
|
|
10
|
-
require('../../form/index.js');
|
|
11
|
-
var uploadDragger = require('./upload-dragger2.js');
|
|
12
|
-
var uploadContent = require('./upload-content2.js');
|
|
13
7
|
var upload = require('./upload.js');
|
|
14
|
-
var
|
|
15
|
-
var index = require('../../../hooks/use-namespace/index.js');
|
|
16
|
-
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
17
|
-
var objects = require('../../../utils/objects.js');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
18
9
|
|
|
19
|
-
const
|
|
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
|
-
onStart(rawFile);
|
|
49
|
-
if (autoUpload)
|
|
50
|
-
upload$1(rawFile);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const upload$1 = async (rawFile) => {
|
|
54
|
-
inputRef.value.value = "";
|
|
55
|
-
if (!props.beforeUpload) {
|
|
56
|
-
return doUpload(rawFile);
|
|
57
|
-
}
|
|
58
|
-
let hookResult;
|
|
59
|
-
let beforeData = {};
|
|
60
|
-
try {
|
|
61
|
-
const originData = props.data;
|
|
62
|
-
const beforeUploadPromise = props.beforeUpload(rawFile);
|
|
63
|
-
beforeData = shared.isPlainObject(props.data) ? lodashUnified.cloneDeep(props.data) : props.data;
|
|
64
|
-
hookResult = await beforeUploadPromise;
|
|
65
|
-
if (shared.isPlainObject(props.data) && lodashUnified.isEqual(originData, beforeData)) {
|
|
66
|
-
beforeData = lodashUnified.cloneDeep(props.data);
|
|
67
|
-
}
|
|
68
|
-
} catch (e) {
|
|
69
|
-
hookResult = false;
|
|
70
|
-
}
|
|
71
|
-
if (hookResult === false) {
|
|
72
|
-
props.onRemove(rawFile);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
let file = rawFile;
|
|
76
|
-
if (hookResult instanceof Blob) {
|
|
77
|
-
if (hookResult instanceof File) {
|
|
78
|
-
file = hookResult;
|
|
79
|
-
} else {
|
|
80
|
-
file = new File([hookResult], rawFile.name, {
|
|
81
|
-
type: rawFile.type
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
doUpload(Object.assign(file, {
|
|
86
|
-
uid: rawFile.uid
|
|
87
|
-
}), beforeData);
|
|
88
|
-
};
|
|
89
|
-
const resolveData = async (data, rawFile) => {
|
|
90
|
-
if (shared.isFunction(data)) {
|
|
91
|
-
return data(rawFile);
|
|
92
|
-
}
|
|
93
|
-
return data;
|
|
94
|
-
};
|
|
95
|
-
const doUpload = async (rawFile, beforeData) => {
|
|
96
|
-
const {
|
|
97
|
-
headers,
|
|
98
|
-
data,
|
|
99
|
-
method,
|
|
100
|
-
withCredentials,
|
|
101
|
-
name: filename,
|
|
102
|
-
action,
|
|
103
|
-
onProgress,
|
|
104
|
-
onSuccess,
|
|
105
|
-
onError,
|
|
106
|
-
httpRequest
|
|
107
|
-
} = props;
|
|
108
|
-
try {
|
|
109
|
-
beforeData = await resolveData(beforeData != null ? beforeData : data, rawFile);
|
|
110
|
-
} catch (e) {
|
|
111
|
-
props.onRemove(rawFile);
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
const { uid } = rawFile;
|
|
115
|
-
const options = {
|
|
116
|
-
headers: headers || {},
|
|
117
|
-
withCredentials,
|
|
118
|
-
file: rawFile,
|
|
119
|
-
data: beforeData,
|
|
120
|
-
method,
|
|
121
|
-
filename,
|
|
122
|
-
action,
|
|
123
|
-
onProgress: (evt) => {
|
|
124
|
-
onProgress(evt, rawFile);
|
|
125
|
-
},
|
|
126
|
-
onSuccess: (res) => {
|
|
127
|
-
onSuccess(res, rawFile);
|
|
128
|
-
delete requests.value[uid];
|
|
129
|
-
},
|
|
130
|
-
onError: (err) => {
|
|
131
|
-
onError(err, rawFile);
|
|
132
|
-
delete requests.value[uid];
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const request = httpRequest(options);
|
|
136
|
-
requests.value[uid] = request;
|
|
137
|
-
if (request instanceof Promise) {
|
|
138
|
-
request.then(options.onSuccess, options.onError);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const handleChange = (e) => {
|
|
142
|
-
const files = e.target.files;
|
|
143
|
-
if (!files)
|
|
144
|
-
return;
|
|
145
|
-
uploadFiles(Array.from(files));
|
|
146
|
-
};
|
|
147
|
-
const handleClick = () => {
|
|
148
|
-
if (!disabled.value) {
|
|
149
|
-
inputRef.value.value = "";
|
|
150
|
-
inputRef.value.click();
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
const handleKeydown = () => {
|
|
154
|
-
handleClick();
|
|
155
|
-
};
|
|
156
|
-
const abort = (file) => {
|
|
157
|
-
const _reqs = objects.entriesOf(requests.value).filter(file ? ([uid]) => String(file.uid) === uid : () => true);
|
|
158
|
-
_reqs.forEach(([uid, req]) => {
|
|
159
|
-
if (req instanceof XMLHttpRequest)
|
|
160
|
-
req.abort();
|
|
161
|
-
delete requests.value[uid];
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
expose({
|
|
165
|
-
abort,
|
|
166
|
-
upload: upload$1
|
|
167
|
-
});
|
|
168
|
-
return (_ctx, _cache) => {
|
|
169
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
170
|
-
class: vue.normalizeClass([vue.unref(ns).b(), vue.unref(ns).m(_ctx.listType), vue.unref(ns).is("drag", _ctx.drag)]),
|
|
171
|
-
tabindex: "0",
|
|
172
|
-
onClick: handleClick,
|
|
173
|
-
onKeydown: vue.withKeys(vue.withModifiers(handleKeydown, ["self"]), ["enter", "space"])
|
|
174
|
-
}, [
|
|
175
|
-
_ctx.drag ? (vue.openBlock(), vue.createBlock(uploadDragger["default"], {
|
|
176
|
-
key: 0,
|
|
177
|
-
disabled: vue.unref(disabled),
|
|
178
|
-
onFile: uploadFiles
|
|
179
|
-
}, {
|
|
180
|
-
default: vue.withCtx(() => [
|
|
181
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
182
|
-
]),
|
|
183
|
-
_: 3
|
|
184
|
-
}, 8, ["disabled"])) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }),
|
|
185
|
-
vue.createElementVNode("input", {
|
|
186
|
-
ref_key: "inputRef",
|
|
187
|
-
ref: inputRef,
|
|
188
|
-
class: vue.normalizeClass(vue.unref(ns).e("input")),
|
|
189
|
-
name: _ctx.name,
|
|
190
|
-
multiple: _ctx.multiple,
|
|
191
|
-
accept: _ctx.accept,
|
|
192
|
-
type: "file",
|
|
193
|
-
onChange: handleChange,
|
|
194
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
195
|
-
}, ["stop"]))
|
|
196
|
-
}, null, 42, _hoisted_2)
|
|
197
|
-
], 42, _hoisted_1);
|
|
198
|
-
};
|
|
10
|
+
const uploadContentProps = runtime.buildProps({
|
|
11
|
+
...upload.uploadBaseProps,
|
|
12
|
+
beforeUpload: {
|
|
13
|
+
type: runtime.definePropType(Function),
|
|
14
|
+
default: shared.NOOP
|
|
15
|
+
},
|
|
16
|
+
onRemove: {
|
|
17
|
+
type: runtime.definePropType(Function),
|
|
18
|
+
default: shared.NOOP
|
|
19
|
+
},
|
|
20
|
+
onStart: {
|
|
21
|
+
type: runtime.definePropType(Function),
|
|
22
|
+
default: shared.NOOP
|
|
23
|
+
},
|
|
24
|
+
onSuccess: {
|
|
25
|
+
type: runtime.definePropType(Function),
|
|
26
|
+
default: shared.NOOP
|
|
27
|
+
},
|
|
28
|
+
onProgress: {
|
|
29
|
+
type: runtime.definePropType(Function),
|
|
30
|
+
default: shared.NOOP
|
|
31
|
+
},
|
|
32
|
+
onError: {
|
|
33
|
+
type: runtime.definePropType(Function),
|
|
34
|
+
default: shared.NOOP
|
|
35
|
+
},
|
|
36
|
+
onExceed: {
|
|
37
|
+
type: runtime.definePropType(Function),
|
|
38
|
+
default: shared.NOOP
|
|
199
39
|
}
|
|
200
40
|
});
|
|
201
|
-
var UploadContent = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "upload-content.vue"]]);
|
|
202
41
|
|
|
203
|
-
exports
|
|
42
|
+
exports.uploadContentProps = uploadContentProps;
|
|
204
43
|
//# sourceMappingURL=upload-content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-content.js","sources":["../../../../../../packages/components/upload/src/upload-content.vue"],"sourcesContent":["<template>\n <div\n :class=\"[ns.b(), ns.m(listType), ns.is('drag', drag)]\"\n tabindex=\"0\"\n @click=\"handleClick\"\n @keydown.self.enter.space=\"handleKeydown\"\n >\n <template v-if=\"drag\">\n <upload-dragger :disabled=\"disabled\" @file=\"uploadFiles\">\n <slot />\n </upload-dragger>\n </template>\n <template v-else>\n <slot />\n </template>\n <input\n ref=\"inputRef\"\n :class=\"ns.e('input')\"\n :name=\"name\"\n :multiple=\"multiple\"\n :accept=\"accept\"\n type=\"file\"\n @change=\"handleChange\"\n @click.stop\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { shallowRef } from 'vue'\nimport { isPlainObject } from '@vue/shared'\nimport { cloneDeep, isEqual } from 'lodash-unified'\nimport { useNamespace } from '@element-plus/hooks'\nimport { entriesOf, isFunction } from '@element-plus/utils'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport UploadDragger from './upload-dragger.vue'\nimport { uploadContentProps } from './upload-content'\nimport { genFileId } from './upload'\nimport type { UploadContentProps } from './upload-content'\n\nimport type {\n UploadFile,\n UploadHooks,\n UploadRawFile,\n UploadRequestOptions,\n} from './upload'\n\ndefineOptions({\n name: 'ElUploadContent',\n inheritAttrs: false,\n})\n\nconst props = defineProps(uploadContentProps)\nconst ns = useNamespace('upload')\nconst disabled = useFormDisabled()\n\nconst requests = shallowRef<Record<string, XMLHttpRequest | Promise<unknown>>>(\n {}\n)\nconst inputRef = shallowRef<HTMLInputElement>()\n\nconst uploadFiles = (files: File[]) => {\n if (files.length === 0) return\n\n const { autoUpload, limit, fileList, multiple, onStart, onExceed } = props\n\n if (limit && fileList.length + files.length > limit) {\n onExceed(files, fileList)\n return\n }\n\n if (!multiple) {\n files = files.slice(0, 1)\n }\n\n for (const file of files) {\n const rawFile = file as UploadRawFile\n rawFile.uid = genFileId()\n onStart(rawFile)\n if (autoUpload) upload(rawFile)\n }\n}\n\nconst upload = async (rawFile: UploadRawFile): Promise<void> => {\n inputRef.value!.value = ''\n\n if (!props.beforeUpload) {\n return doUpload(rawFile)\n }\n\n let hookResult: Exclude<ReturnType<UploadHooks['beforeUpload']>, Promise<any>>\n let beforeData: UploadContentProps['data'] = {}\n\n try {\n // origin data: Handle data changes after synchronization tasks are executed\n const originData = props.data\n const beforeUploadPromise = props.beforeUpload(rawFile)\n beforeData = isPlainObject(props.data) ? cloneDeep(props.data) : props.data\n hookResult = await beforeUploadPromise\n if (isPlainObject(props.data) && isEqual(originData, beforeData)) {\n beforeData = cloneDeep(props.data)\n }\n } catch {\n hookResult = false\n }\n\n if (hookResult === false) {\n props.onRemove(rawFile)\n return\n }\n\n let file: File = rawFile\n if (hookResult instanceof Blob) {\n if (hookResult instanceof File) {\n file = hookResult\n } else {\n file = new File([hookResult], rawFile.name, {\n type: rawFile.type,\n })\n }\n }\n\n doUpload(\n Object.assign(file, {\n uid: rawFile.uid,\n }),\n beforeData\n )\n}\n\nconst resolveData = async (\n data: UploadContentProps['data'],\n rawFile: UploadRawFile\n): Promise<Record<string, any>> => {\n if (isFunction(data)) {\n return data(rawFile)\n }\n\n return data\n}\n\nconst doUpload = async (\n rawFile: UploadRawFile,\n beforeData?: UploadContentProps['data']\n) => {\n const {\n headers,\n data,\n method,\n withCredentials,\n name: filename,\n action,\n onProgress,\n onSuccess,\n onError,\n httpRequest,\n } = props\n\n try {\n beforeData = await resolveData(beforeData ?? data, rawFile)\n } catch {\n props.onRemove(rawFile)\n return\n }\n\n const { uid } = rawFile\n const options: UploadRequestOptions = {\n headers: headers || {},\n withCredentials,\n file: rawFile,\n data: beforeData,\n method,\n filename,\n action,\n onProgress: (evt) => {\n onProgress(evt, rawFile)\n },\n onSuccess: (res) => {\n onSuccess(res, rawFile)\n delete requests.value[uid]\n },\n onError: (err) => {\n onError(err, rawFile)\n delete requests.value[uid]\n },\n }\n const request = httpRequest(options)\n requests.value[uid] = request\n if (request instanceof Promise) {\n request.then(options.onSuccess, options.onError)\n }\n}\n\nconst handleChange = (e: Event) => {\n const files = (e.target as HTMLInputElement).files\n if (!files) return\n uploadFiles(Array.from(files))\n}\n\nconst handleClick = () => {\n if (!disabled.value) {\n inputRef.value!.value = ''\n inputRef.value!.click()\n }\n}\n\nconst handleKeydown = () => {\n handleClick()\n}\n\nconst abort = (file?: UploadFile) => {\n const _reqs = entriesOf(requests.value).filter(\n file ? ([uid]) => String(file.uid) === uid : () => true\n )\n _reqs.forEach(([uid, req]) => {\n if (req instanceof XMLHttpRequest) req.abort()\n delete requests.value[uid]\n })\n}\n\ndefineExpose({\n abort,\n upload,\n})\n</script>\n"],"names":["useNamespace","useFormDisabled","shallowRef","genFileId","upload","isPlainObject","cloneDeep","isEqual","isFunction","entriesOf"],"mappings":";;;;;;;;;;;;;;;;;;;;uCA+Cc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAA,MAAM,WAAWC,kCAAgB,EAAA,CAAA;AAEjC,IAAM,MAAA,QAAA,GAAWC,cACf,CAAA,EACF,CAAA,CAAA;AACA,IAAA,MAAM,WAAWA,cAA6B,EAAA,CAAA;AAE9C,IAAM,MAAA,WAAA,GAAc,CAAC,KAAkB,KAAA;AACrC,MAAA,IAAI,MAAM,MAAW,KAAA,CAAA;AAAG,QAAA,OAAA;AAExB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;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"upload-content.js","sources":["../../../../../../packages/components/upload/src/upload-content.ts"],"sourcesContent":["import { NOOP } from '@vue/shared'\nimport { buildProps, definePropType } from '@element-plus/utils'\nimport { uploadBaseProps } from './upload'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type {\n UploadFile,\n UploadHooks,\n UploadProgressEvent,\n UploadRawFile,\n} from './upload'\nimport type UploadContent from './upload-content.vue'\nimport type { UploadAjaxError } from './ajax'\n\nexport const uploadContentProps = buildProps({\n ...uploadBaseProps,\n\n beforeUpload: {\n type: definePropType<UploadHooks['beforeUpload']>(Function),\n default: NOOP,\n },\n onRemove: {\n type: definePropType<\n (file: UploadFile | UploadRawFile, rawFile?: UploadRawFile) => void\n >(Function),\n default: NOOP,\n },\n onStart: {\n type: definePropType<(rawFile: UploadRawFile) => void>(Function),\n default: NOOP,\n },\n onSuccess: {\n type: definePropType<(response: any, rawFile: UploadRawFile) => unknown>(\n Function\n ),\n default: NOOP,\n },\n onProgress: {\n type: definePropType<\n (evt: UploadProgressEvent, rawFile: UploadRawFile) => void\n >(Function),\n default: NOOP,\n },\n onError: {\n type: definePropType<\n (err: UploadAjaxError, rawFile: UploadRawFile) => void\n >(Function),\n default: NOOP,\n },\n onExceed: {\n type: definePropType<UploadHooks['onExceed']>(Function),\n default: NOOP,\n },\n} as const)\n\nexport type UploadContentProps = ExtractPropTypes<typeof uploadContentProps>\n\nexport type UploadContentInstance = InstanceType<typeof UploadContent>\n"],"names":["buildProps","uploadBaseProps","definePropType","NOOP"],"mappings":";;;;;;;;;AAGY,MAAC,kBAAkB,GAAGA,kBAAU,CAAC;AAC7C,EAAE,GAAGC,sBAAe;AACpB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAEC,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAED,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAEC,WAAI;AACjB,GAAG;AACH,CAAC;;;;"}
|