@element-plus/nightly 0.0.20240227 → 0.0.20240229
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 +292 -284
- package/dist/index.full.min.js +26 -26
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +26 -26
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +293 -285
- 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/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/calendar/src/calendar2.mjs +5 -5
- package/es/components/calendar/src/calendar2.mjs.map +1 -1
- package/es/components/calendar/src/use-calendar.mjs +1 -11
- package/es/components/calendar/src/use-calendar.mjs.map +1 -1
- package/es/components/card/index.mjs +2 -2
- package/es/components/card/src/card.mjs +43 -21
- package/es/components/card/src/card.mjs.map +1 -1
- package/es/components/card/src/card2.mjs +21 -43
- package/es/components/card/src/card2.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +7 -0
- package/es/components/carousel/src/carousel.d.ts +1 -0
- package/es/components/carousel/src/carousel.mjs +4 -0
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +7 -0
- package/es/components/carousel/src/carousel2.mjs +100 -66
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.d.ts +2 -0
- package/es/components/carousel/src/use-carousel.mjs +23 -0
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +120 -0
- package/es/components/checkbox/src/checkbox-button.mjs +5 -4
- package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +40 -0
- package/es/components/checkbox/src/checkbox.d.ts +24 -1
- package/es/components/checkbox/src/checkbox.mjs +12 -0
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +40 -0
- package/es/components/checkbox/src/checkbox2.mjs +5 -4
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/checkbox/src/composables/use-checkbox-event.mjs +2 -2
- package/es/components/checkbox/src/composables/use-checkbox-event.mjs.map +1 -1
- package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -0
- package/es/components/checkbox/src/composables/use-checkbox-status.mjs +15 -8
- package/es/components/checkbox/src/composables/use-checkbox-status.mjs.map +1 -1
- package/es/components/checkbox/src/composables/use-checkbox.d.ts +1 -0
- package/es/components/checkbox/src/composables/use-checkbox.mjs +40 -13
- package/es/components/checkbox/src/composables/use-checkbox.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -66
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +66 -43
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/date-picker/src/composables/use-basic-date-table.mjs +1 -1
- package/es/components/date-picker/src/composables/use-basic-date-table.mjs.map +1 -1
- package/es/components/index.mjs +6 -6
- package/es/components/menu/index.d.ts +0 -6
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +35 -4
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +4 -35
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +2 -0
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.d.ts +0 -4
- package/es/components/menu/src/sub-menu.mjs +2 -15
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +0 -3
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +94 -137
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +137 -94
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/radio/index.d.ts +77 -54
- package/es/components/radio/src/radio-button.d.ts +4 -2
- package/es/components/radio/src/radio-button.mjs +1 -5
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button.vue.d.ts +16 -7
- package/es/components/radio/src/radio-button2.mjs +4 -4
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group.d.ts +3 -3
- package/es/components/radio/src/radio-group.mjs +1 -1
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +10 -10
- package/es/components/radio/src/radio.d.ts +10 -6
- package/es/components/radio/src/radio.mjs +13 -9
- package/es/components/radio/src/radio.mjs.map +1 -1
- package/es/components/radio/src/radio.vue.d.ts +23 -18
- package/es/components/radio/src/radio2.mjs +4 -4
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/radio/src/use-radio.d.ts +4 -5
- package/es/components/radio/src/use-radio.mjs +21 -3
- package/es/components/radio/src/use-radio.mjs.map +1 -1
- package/es/components/select/index.d.ts +0 -3
- package/es/components/select/src/select.d.ts +0 -1
- package/es/components/select/src/select.mjs +0 -4
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +0 -3
- package/es/components/select/src/useSelect.mjs +3 -19
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/src/select-dropdown.mjs +5 -10
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.mjs +10 -11
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/switch/index.d.ts +0 -19
- package/es/components/switch/src/switch.d.ts +0 -4
- package/es/components/switch/src/switch.mjs +0 -16
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch.vue.d.ts +0 -19
- package/es/components/switch/src/switch2.mjs +3 -37
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tabs/index.d.ts +0 -12
- package/es/components/tabs/src/tabs.d.ts +0 -18
- package/es/components/tabs/src/tabs.mjs +7 -29
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/time-select/index.d.ts +0 -12
- package/es/components/time-select/src/time-select.vue.d.ts +0 -6
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/transfer/index.d.ts +400 -0
- package/es/components/transfer/src/transfer-panel.vue.d.ts +80 -0
- package/es/components/transfer/src/transfer.vue.d.ts +400 -0
- package/es/components/tree-select/src/select.d.ts +1 -1
- package/es/components/tree-select/src/select.mjs +15 -11
- package/es/components/tree-select/src/select.mjs.map +1 -1
- package/es/components/tree-select/src/tree.mjs +5 -6
- package/es/components/tree-select/src/tree.mjs.map +1 -1
- package/es/components/tree-v2/index.d.ts +80 -0
- package/es/components/tree-v2/src/tree-node.vue.d.ts +80 -0
- package/es/components/tree-v2/src/tree.vue.d.ts +80 -0
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-list.mjs +1 -1
- package/es/components/upload/src/upload.mjs +118 -104
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +104 -118
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/index.mjs +6 -6
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/calendar/src/calendar2.js +4 -4
- package/lib/components/calendar/src/calendar2.js.map +1 -1
- package/lib/components/calendar/src/use-calendar.js +0 -10
- package/lib/components/calendar/src/use-calendar.js.map +1 -1
- package/lib/components/card/index.js +2 -2
- package/lib/components/card/src/card.js +43 -21
- package/lib/components/card/src/card.js.map +1 -1
- package/lib/components/card/src/card2.js +21 -43
- package/lib/components/card/src/card2.js.map +1 -1
- package/lib/components/carousel/index.d.ts +7 -0
- package/lib/components/carousel/src/carousel.d.ts +1 -0
- package/lib/components/carousel/src/carousel.js +4 -0
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +7 -0
- package/lib/components/carousel/src/carousel2.js +99 -65
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.d.ts +2 -0
- package/lib/components/carousel/src/use-carousel.js +23 -0
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +120 -0
- package/lib/components/checkbox/src/checkbox-button.js +5 -4
- package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +40 -0
- package/lib/components/checkbox/src/checkbox.d.ts +24 -1
- package/lib/components/checkbox/src/checkbox.js +12 -0
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +40 -0
- package/lib/components/checkbox/src/checkbox2.js +5 -4
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-event.js +2 -2
- package/lib/components/checkbox/src/composables/use-checkbox-event.js.map +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +1 -0
- package/lib/components/checkbox/src/composables/use-checkbox-status.js +13 -6
- package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox.d.ts +1 -0
- package/lib/components/checkbox/src/composables/use-checkbox.js +40 -13
- package/lib/components/checkbox/src/composables/use-checkbox.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -66
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +66 -43
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/date-picker/src/composables/use-basic-date-table.js +1 -1
- package/lib/components/date-picker/src/composables/use-basic-date-table.js.map +1 -1
- package/lib/components/index.js +6 -6
- package/lib/components/menu/index.d.ts +0 -6
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +35 -4
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +4 -35
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/menu/src/menu.js +2 -0
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.d.ts +0 -4
- package/lib/components/menu/src/sub-menu.js +10 -23
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +0 -3
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +99 -137
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +137 -99
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/radio/index.d.ts +77 -54
- package/lib/components/radio/src/radio-button.d.ts +4 -2
- package/lib/components/radio/src/radio-button.js +1 -5
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button.vue.d.ts +16 -7
- package/lib/components/radio/src/radio-button2.js +4 -4
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group.d.ts +3 -3
- package/lib/components/radio/src/radio-group.js +1 -1
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +10 -10
- package/lib/components/radio/src/radio.d.ts +10 -6
- package/lib/components/radio/src/radio.js +13 -9
- package/lib/components/radio/src/radio.js.map +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +23 -18
- package/lib/components/radio/src/radio2.js +4 -4
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/radio/src/use-radio.d.ts +4 -5
- package/lib/components/radio/src/use-radio.js +21 -3
- package/lib/components/radio/src/use-radio.js.map +1 -1
- package/lib/components/select/index.d.ts +0 -3
- package/lib/components/select/src/select.d.ts +0 -1
- package/lib/components/select/src/select.js +0 -4
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +0 -3
- package/lib/components/select/src/useSelect.js +4 -20
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/src/select-dropdown.js +5 -10
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.js +10 -11
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/switch/index.d.ts +0 -19
- package/lib/components/switch/src/switch.d.ts +0 -4
- package/lib/components/switch/src/switch.js +0 -16
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +0 -19
- package/lib/components/switch/src/switch2.js +9 -43
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tabs/index.d.ts +0 -12
- package/lib/components/tabs/src/tabs.d.ts +0 -18
- package/lib/components/tabs/src/tabs.js +7 -29
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/time-select/index.d.ts +0 -12
- package/lib/components/time-select/src/time-select.vue.d.ts +0 -6
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/transfer/index.d.ts +400 -0
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +80 -0
- package/lib/components/transfer/src/transfer.vue.d.ts +400 -0
- package/lib/components/tree-select/src/select.d.ts +1 -1
- package/lib/components/tree-select/src/select.js +14 -10
- package/lib/components/tree-select/src/select.js.map +1 -1
- package/lib/components/tree-select/src/tree.js +5 -6
- package/lib/components/tree-select/src/tree.js.map +1 -1
- package/lib/components/tree-v2/index.d.ts +80 -0
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +80 -0
- package/lib/components/tree-v2/src/tree.vue.d.ts +80 -0
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-list.js +1 -1
- package/lib/components/upload/src/upload.js +118 -107
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +107 -118
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/index.js +6 -6
- 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-carousel.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/carousel.scss +8 -0
- package/web-types.json +1 -1
|
@@ -442,6 +442,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
442
442
|
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
443
443
|
default: undefined;
|
|
444
444
|
};
|
|
445
|
+
value: {
|
|
446
|
+
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
447
|
+
default: undefined;
|
|
448
|
+
};
|
|
445
449
|
indeterminate: BooleanConstructor;
|
|
446
450
|
disabled: BooleanConstructor;
|
|
447
451
|
checked: BooleanConstructor;
|
|
@@ -449,6 +453,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
449
453
|
type: StringConstructor;
|
|
450
454
|
default: undefined;
|
|
451
455
|
};
|
|
456
|
+
trueValue: {
|
|
457
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
458
|
+
default: undefined;
|
|
459
|
+
};
|
|
460
|
+
falseValue: {
|
|
461
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
462
|
+
default: undefined;
|
|
463
|
+
};
|
|
452
464
|
trueLabel: {
|
|
453
465
|
type: (NumberConstructor | StringConstructor)[];
|
|
454
466
|
default: undefined;
|
|
@@ -487,6 +499,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
487
499
|
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
488
500
|
default: undefined;
|
|
489
501
|
};
|
|
502
|
+
value: {
|
|
503
|
+
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
504
|
+
default: undefined;
|
|
505
|
+
};
|
|
490
506
|
indeterminate: BooleanConstructor;
|
|
491
507
|
disabled: BooleanConstructor;
|
|
492
508
|
checked: BooleanConstructor;
|
|
@@ -494,6 +510,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
494
510
|
type: StringConstructor;
|
|
495
511
|
default: undefined;
|
|
496
512
|
};
|
|
513
|
+
trueValue: {
|
|
514
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
515
|
+
default: undefined;
|
|
516
|
+
};
|
|
517
|
+
falseValue: {
|
|
518
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
519
|
+
default: undefined;
|
|
520
|
+
};
|
|
497
521
|
trueLabel: {
|
|
498
522
|
type: (NumberConstructor | StringConstructor)[];
|
|
499
523
|
default: undefined;
|
|
@@ -537,6 +561,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
537
561
|
checkboxSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
538
562
|
hasOwnLabel: import("vue").ComputedRef<boolean>;
|
|
539
563
|
model: import("vue").WritableComputedRef<any>;
|
|
564
|
+
actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
|
|
540
565
|
handleChange: (e: Event) => void;
|
|
541
566
|
onClickRoot: (e: MouseEvent) => Promise<void>;
|
|
542
567
|
ns: {
|
|
@@ -571,6 +596,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
571
596
|
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
572
597
|
default: undefined;
|
|
573
598
|
};
|
|
599
|
+
value: {
|
|
600
|
+
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
601
|
+
default: undefined;
|
|
602
|
+
};
|
|
574
603
|
indeterminate: BooleanConstructor;
|
|
575
604
|
disabled: BooleanConstructor;
|
|
576
605
|
checked: BooleanConstructor;
|
|
@@ -578,6 +607,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
578
607
|
type: StringConstructor;
|
|
579
608
|
default: undefined;
|
|
580
609
|
};
|
|
610
|
+
trueValue: {
|
|
611
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
612
|
+
default: undefined;
|
|
613
|
+
};
|
|
614
|
+
falseValue: {
|
|
615
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
616
|
+
default: undefined;
|
|
617
|
+
};
|
|
581
618
|
trueLabel: {
|
|
582
619
|
type: (NumberConstructor | StringConstructor)[];
|
|
583
620
|
default: undefined;
|
|
@@ -610,6 +647,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
610
647
|
onChange?: ((val: import("../..").CheckboxValueType) => any) | undefined;
|
|
611
648
|
"onUpdate:modelValue"?: ((val: import("../..").CheckboxValueType) => any) | undefined;
|
|
612
649
|
}, {
|
|
650
|
+
value: string | number | boolean | Record<string, any>;
|
|
613
651
|
modelValue: string | number | boolean;
|
|
614
652
|
label: string | number | boolean | Record<string, any>;
|
|
615
653
|
id: string;
|
|
@@ -619,6 +657,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
619
657
|
border: boolean;
|
|
620
658
|
indeterminate: boolean;
|
|
621
659
|
checked: boolean;
|
|
660
|
+
trueValue: string | number;
|
|
661
|
+
falseValue: string | number;
|
|
622
662
|
trueLabel: string | number;
|
|
623
663
|
falseLabel: string | number;
|
|
624
664
|
controls: string;
|
|
@@ -632,6 +672,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
632
672
|
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
633
673
|
default: undefined;
|
|
634
674
|
};
|
|
675
|
+
value: {
|
|
676
|
+
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
677
|
+
default: undefined;
|
|
678
|
+
};
|
|
635
679
|
indeterminate: BooleanConstructor;
|
|
636
680
|
disabled: BooleanConstructor;
|
|
637
681
|
checked: BooleanConstructor;
|
|
@@ -639,6 +683,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
639
683
|
type: StringConstructor;
|
|
640
684
|
default: undefined;
|
|
641
685
|
};
|
|
686
|
+
trueValue: {
|
|
687
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
688
|
+
default: undefined;
|
|
689
|
+
};
|
|
690
|
+
falseValue: {
|
|
691
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
692
|
+
default: undefined;
|
|
693
|
+
};
|
|
642
694
|
trueLabel: {
|
|
643
695
|
type: (NumberConstructor | StringConstructor)[];
|
|
644
696
|
default: undefined;
|
|
@@ -677,6 +729,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
677
729
|
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
678
730
|
default: undefined;
|
|
679
731
|
};
|
|
732
|
+
value: {
|
|
733
|
+
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
734
|
+
default: undefined;
|
|
735
|
+
};
|
|
680
736
|
indeterminate: BooleanConstructor;
|
|
681
737
|
disabled: BooleanConstructor;
|
|
682
738
|
checked: BooleanConstructor;
|
|
@@ -684,6 +740,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
684
740
|
type: StringConstructor;
|
|
685
741
|
default: undefined;
|
|
686
742
|
};
|
|
743
|
+
trueValue: {
|
|
744
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
745
|
+
default: undefined;
|
|
746
|
+
};
|
|
747
|
+
falseValue: {
|
|
748
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
749
|
+
default: undefined;
|
|
750
|
+
};
|
|
687
751
|
trueLabel: {
|
|
688
752
|
type: (NumberConstructor | StringConstructor)[];
|
|
689
753
|
default: undefined;
|
|
@@ -724,6 +788,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
724
788
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
725
789
|
checkboxButtonSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
726
790
|
model: import("vue").WritableComputedRef<any>;
|
|
791
|
+
actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
|
|
727
792
|
handleChange: (e: Event) => void;
|
|
728
793
|
checkboxGroup: ({
|
|
729
794
|
modelValue?: import("vue").WritableComputedRef<any> | undefined;
|
|
@@ -761,6 +826,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
761
826
|
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
762
827
|
default: undefined;
|
|
763
828
|
};
|
|
829
|
+
value: {
|
|
830
|
+
type: (ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[];
|
|
831
|
+
default: undefined;
|
|
832
|
+
};
|
|
764
833
|
indeterminate: BooleanConstructor;
|
|
765
834
|
disabled: BooleanConstructor;
|
|
766
835
|
checked: BooleanConstructor;
|
|
@@ -768,6 +837,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
768
837
|
type: StringConstructor;
|
|
769
838
|
default: undefined;
|
|
770
839
|
};
|
|
840
|
+
trueValue: {
|
|
841
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
842
|
+
default: undefined;
|
|
843
|
+
};
|
|
844
|
+
falseValue: {
|
|
845
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
846
|
+
default: undefined;
|
|
847
|
+
};
|
|
771
848
|
trueLabel: {
|
|
772
849
|
type: (NumberConstructor | StringConstructor)[];
|
|
773
850
|
default: undefined;
|
|
@@ -800,6 +877,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
800
877
|
onChange?: ((val: import("../..").CheckboxValueType) => any) | undefined;
|
|
801
878
|
"onUpdate:modelValue"?: ((val: import("../..").CheckboxValueType) => any) | undefined;
|
|
802
879
|
}, {
|
|
880
|
+
value: string | number | boolean | Record<string, any>;
|
|
803
881
|
modelValue: string | number | boolean;
|
|
804
882
|
label: string | number | boolean | Record<string, any>;
|
|
805
883
|
id: string;
|
|
@@ -809,6 +887,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
809
887
|
border: boolean;
|
|
810
888
|
indeterminate: boolean;
|
|
811
889
|
checked: boolean;
|
|
890
|
+
trueValue: string | number;
|
|
891
|
+
falseValue: string | number;
|
|
812
892
|
trueLabel: string | number;
|
|
813
893
|
falseLabel: string | number;
|
|
814
894
|
controls: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
|
-
import Upload from './src/
|
|
3
|
-
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './src/
|
|
2
|
+
import Upload from './src/upload.mjs';
|
|
3
|
+
export { genFileId, uploadBaseProps, uploadListTypes, uploadProps } from './src/upload2.mjs';
|
|
4
4
|
export { uploadContentProps } from './src/upload-content.mjs';
|
|
5
5
|
export { uploadListEmits, uploadListProps } from './src/upload-list.mjs';
|
|
6
6
|
export { uploadDraggerEmits, uploadDraggerProps } from './src/upload-dragger.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NOOP } from '@vue/shared';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
|
-
import { uploadBaseProps } from './
|
|
3
|
+
import { uploadBaseProps } from './upload2.mjs';
|
|
4
4
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
5
5
|
|
|
6
6
|
const uploadContentProps = buildProps({
|
|
@@ -6,7 +6,7 @@ import '../../../utils/index.mjs';
|
|
|
6
6
|
import '../../form/index.mjs';
|
|
7
7
|
import UploadDragger from './upload-dragger2.mjs';
|
|
8
8
|
import { uploadContentProps } from './upload-content.mjs';
|
|
9
|
-
import { genFileId } from './
|
|
9
|
+
import { genFileId } from './upload2.mjs';
|
|
10
10
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
11
11
|
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
12
12
|
import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NOOP } from '@vue/shared';
|
|
2
2
|
import '../../../utils/index.mjs';
|
|
3
|
-
import { uploadListTypes } from './
|
|
3
|
+
import { uploadListTypes } from './upload2.mjs';
|
|
4
4
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
5
5
|
import { mutable } from '../../../utils/typescript.mjs';
|
|
6
6
|
|
|
@@ -1,110 +1,124 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { defineComponent, shallowRef, computed, onBeforeUnmount, provide, toRef, openBlock, createElementBlock, unref, createBlock, createSlots, withCtx, createVNode, mergeProps, renderSlot, createCommentVNode } from 'vue';
|
|
2
|
+
import '../../form/index.mjs';
|
|
3
|
+
import { uploadContextKey } from './constants.mjs';
|
|
4
|
+
import UploadList from './upload-list2.mjs';
|
|
5
|
+
import UploadContent from './upload-content2.mjs';
|
|
6
|
+
import { useHandlers } from './use-handlers.mjs';
|
|
7
|
+
import { uploadProps } from './upload2.mjs';
|
|
8
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
9
|
+
import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
|
|
6
10
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const genFileId = () => Date.now() + fileId++;
|
|
10
|
-
const uploadBaseProps = buildProps({
|
|
11
|
-
action: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "#"
|
|
14
|
-
},
|
|
15
|
-
headers: {
|
|
16
|
-
type: definePropType(Object)
|
|
17
|
-
},
|
|
18
|
-
method: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "post"
|
|
21
|
-
},
|
|
22
|
-
data: {
|
|
23
|
-
type: definePropType([Object, Function, Promise]),
|
|
24
|
-
default: () => mutable({})
|
|
25
|
-
},
|
|
26
|
-
multiple: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false
|
|
29
|
-
},
|
|
30
|
-
name: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: "file"
|
|
33
|
-
},
|
|
34
|
-
drag: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
},
|
|
38
|
-
withCredentials: Boolean,
|
|
39
|
-
showFileList: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: true
|
|
42
|
-
},
|
|
43
|
-
accept: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ""
|
|
46
|
-
},
|
|
47
|
-
fileList: {
|
|
48
|
-
type: definePropType(Array),
|
|
49
|
-
default: () => mutable([])
|
|
50
|
-
},
|
|
51
|
-
autoUpload: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: true
|
|
54
|
-
},
|
|
55
|
-
listType: {
|
|
56
|
-
type: String,
|
|
57
|
-
values: uploadListTypes,
|
|
58
|
-
default: "text"
|
|
59
|
-
},
|
|
60
|
-
httpRequest: {
|
|
61
|
-
type: definePropType(Function),
|
|
62
|
-
default: ajaxUpload
|
|
63
|
-
},
|
|
64
|
-
disabled: Boolean,
|
|
65
|
-
limit: Number
|
|
11
|
+
const __default__ = defineComponent({
|
|
12
|
+
name: "ElUpload"
|
|
66
13
|
});
|
|
67
|
-
const
|
|
68
|
-
...
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
|
+
...__default__,
|
|
16
|
+
props: uploadProps,
|
|
17
|
+
setup(__props, { expose }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const disabled = useFormDisabled();
|
|
20
|
+
const uploadRef = shallowRef();
|
|
21
|
+
const {
|
|
22
|
+
abort,
|
|
23
|
+
submit,
|
|
24
|
+
clearFiles,
|
|
25
|
+
uploadFiles,
|
|
26
|
+
handleStart,
|
|
27
|
+
handleError,
|
|
28
|
+
handleRemove,
|
|
29
|
+
handleSuccess,
|
|
30
|
+
handleProgress,
|
|
31
|
+
revokeFileObjectURL
|
|
32
|
+
} = useHandlers(props, uploadRef);
|
|
33
|
+
const isPictureCard = computed(() => props.listType === "picture-card");
|
|
34
|
+
const uploadContentProps = computed(() => ({
|
|
35
|
+
...props,
|
|
36
|
+
fileList: uploadFiles.value,
|
|
37
|
+
onStart: handleStart,
|
|
38
|
+
onProgress: handleProgress,
|
|
39
|
+
onSuccess: handleSuccess,
|
|
40
|
+
onError: handleError,
|
|
41
|
+
onRemove: handleRemove
|
|
42
|
+
}));
|
|
43
|
+
onBeforeUnmount(() => {
|
|
44
|
+
uploadFiles.value.forEach(revokeFileObjectURL);
|
|
45
|
+
});
|
|
46
|
+
provide(uploadContextKey, {
|
|
47
|
+
accept: toRef(props, "accept")
|
|
48
|
+
});
|
|
49
|
+
expose({
|
|
50
|
+
abort,
|
|
51
|
+
submit,
|
|
52
|
+
clearFiles,
|
|
53
|
+
handleStart,
|
|
54
|
+
handleRemove
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return openBlock(), createElementBlock("div", null, [
|
|
58
|
+
unref(isPictureCard) && _ctx.showFileList ? (openBlock(), createBlock(UploadList, {
|
|
59
|
+
key: 0,
|
|
60
|
+
disabled: unref(disabled),
|
|
61
|
+
"list-type": _ctx.listType,
|
|
62
|
+
files: unref(uploadFiles),
|
|
63
|
+
crossorigin: _ctx.crossorigin,
|
|
64
|
+
"handle-preview": _ctx.onPreview,
|
|
65
|
+
onRemove: unref(handleRemove)
|
|
66
|
+
}, createSlots({
|
|
67
|
+
append: withCtx(() => [
|
|
68
|
+
createVNode(UploadContent, mergeProps({
|
|
69
|
+
ref_key: "uploadRef",
|
|
70
|
+
ref: uploadRef
|
|
71
|
+
}, unref(uploadContentProps)), {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
_ctx.$slots.trigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }) : createCommentVNode("v-if", true),
|
|
74
|
+
!_ctx.$slots.trigger && _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
|
|
75
|
+
]),
|
|
76
|
+
_: 3
|
|
77
|
+
}, 16)
|
|
78
|
+
]),
|
|
79
|
+
_: 2
|
|
80
|
+
}, [
|
|
81
|
+
_ctx.$slots.file ? {
|
|
82
|
+
name: "default",
|
|
83
|
+
fn: withCtx(({ file }) => [
|
|
84
|
+
renderSlot(_ctx.$slots, "file", { file })
|
|
85
|
+
])
|
|
86
|
+
} : void 0
|
|
87
|
+
]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true),
|
|
88
|
+
!unref(isPictureCard) || unref(isPictureCard) && !_ctx.showFileList ? (openBlock(), createBlock(UploadContent, mergeProps({
|
|
89
|
+
key: 1,
|
|
90
|
+
ref_key: "uploadRef",
|
|
91
|
+
ref: uploadRef
|
|
92
|
+
}, unref(uploadContentProps)), {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
_ctx.$slots.trigger ? renderSlot(_ctx.$slots, "trigger", { key: 0 }) : createCommentVNode("v-if", true),
|
|
95
|
+
!_ctx.$slots.trigger && _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 1 }) : createCommentVNode("v-if", true)
|
|
96
|
+
]),
|
|
97
|
+
_: 3
|
|
98
|
+
}, 16)) : createCommentVNode("v-if", true),
|
|
99
|
+
_ctx.$slots.trigger ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("v-if", true),
|
|
100
|
+
renderSlot(_ctx.$slots, "tip"),
|
|
101
|
+
!unref(isPictureCard) && _ctx.showFileList ? (openBlock(), createBlock(UploadList, {
|
|
102
|
+
key: 3,
|
|
103
|
+
disabled: unref(disabled),
|
|
104
|
+
"list-type": _ctx.listType,
|
|
105
|
+
files: unref(uploadFiles),
|
|
106
|
+
crossorigin: _ctx.crossorigin,
|
|
107
|
+
"handle-preview": _ctx.onPreview,
|
|
108
|
+
onRemove: unref(handleRemove)
|
|
109
|
+
}, createSlots({ _: 2 }, [
|
|
110
|
+
_ctx.$slots.file ? {
|
|
111
|
+
name: "default",
|
|
112
|
+
fn: withCtx(({ file }) => [
|
|
113
|
+
renderSlot(_ctx.$slots, "file", { file })
|
|
114
|
+
])
|
|
115
|
+
} : void 0
|
|
116
|
+
]), 1032, ["disabled", "list-type", "files", "crossorigin", "handle-preview", "onRemove"])) : createCommentVNode("v-if", true)
|
|
117
|
+
]);
|
|
118
|
+
};
|
|
106
119
|
}
|
|
107
120
|
});
|
|
121
|
+
var Upload = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "upload.vue"]]);
|
|
108
122
|
|
|
109
|
-
export {
|
|
123
|
+
export { Upload as default };
|
|
110
124
|
//# sourceMappingURL=upload.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.mjs","sources":["../../../../../../packages/components/upload/src/upload.
|
|
1
|
+
{"version":3,"file":"upload.mjs","sources":["../../../../../../packages/components/upload/src/upload.vue"],"sourcesContent":["<template>\n <div>\n <upload-list\n v-if=\"isPictureCard && showFileList\"\n :disabled=\"disabled\"\n :list-type=\"listType\"\n :files=\"uploadFiles\"\n :crossorigin=\"crossorigin\"\n :handle-preview=\"onPreview\"\n @remove=\"handleRemove\"\n >\n <template v-if=\"$slots.file\" #default=\"{ file }\">\n <slot name=\"file\" :file=\"file\" />\n </template>\n <template #append>\n <upload-content ref=\"uploadRef\" v-bind=\"uploadContentProps\">\n <slot v-if=\"$slots.trigger\" name=\"trigger\" />\n <slot v-if=\"!$slots.trigger && $slots.default\" />\n </upload-content>\n </template>\n </upload-list>\n\n <upload-content\n v-if=\"!isPictureCard || (isPictureCard && !showFileList)\"\n ref=\"uploadRef\"\n v-bind=\"uploadContentProps\"\n >\n <slot v-if=\"$slots.trigger\" name=\"trigger\" />\n <slot v-if=\"!$slots.trigger && $slots.default\" />\n </upload-content>\n\n <slot v-if=\"$slots.trigger\" />\n <slot name=\"tip\" />\n <upload-list\n v-if=\"!isPictureCard && showFileList\"\n :disabled=\"disabled\"\n :list-type=\"listType\"\n :files=\"uploadFiles\"\n :crossorigin=\"crossorigin\"\n :handle-preview=\"onPreview\"\n @remove=\"handleRemove\"\n >\n <template v-if=\"$slots.file\" #default=\"{ file }\">\n <slot name=\"file\" :file=\"file\" />\n </template>\n </upload-list>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onBeforeUnmount, provide, shallowRef, toRef } from 'vue'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport { uploadContextKey } from './constants'\nimport UploadList from './upload-list.vue'\nimport UploadContent from './upload-content.vue'\nimport { useHandlers } from './use-handlers'\nimport { uploadProps } from './upload'\n\nimport type {\n UploadContentInstance,\n UploadContentProps,\n} from './upload-content'\n\ndefineOptions({\n name: 'ElUpload',\n})\n\nconst props = defineProps(uploadProps)\n\nconst disabled = useFormDisabled()\n\nconst uploadRef = shallowRef<UploadContentInstance>()\nconst {\n abort,\n submit,\n clearFiles,\n uploadFiles,\n handleStart,\n handleError,\n handleRemove,\n handleSuccess,\n handleProgress,\n revokeFileObjectURL,\n} = useHandlers(props, uploadRef)\n\nconst isPictureCard = computed(() => props.listType === 'picture-card')\n\nconst uploadContentProps = computed<UploadContentProps>(() => ({\n ...props,\n fileList: uploadFiles.value,\n onStart: handleStart,\n onProgress: handleProgress,\n onSuccess: handleSuccess,\n onError: handleError,\n onRemove: handleRemove,\n}))\n\nonBeforeUnmount(() => {\n uploadFiles.value.forEach(revokeFileObjectURL)\n})\n\nprovide(uploadContextKey, {\n accept: toRef(props, 'accept'),\n})\n\ndefineExpose({\n /** @description cancel upload request */\n abort,\n /** @description upload the file list manually */\n submit,\n /** @description clear the file list */\n clearFiles,\n /** @description select the file manually */\n handleStart,\n /** @description remove the file manually */\n handleRemove,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCA+Dc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAW,eAAgB,EAAA,CAAA;AAEjC,IAAA,MAAM,YAAY,UAAkC,EAAA,CAAA;AACpD,IAAM,MAAA;AAAA,MACJ,KAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,aAAA;AAAA,MACA,cAAA;AAAA,MACA,mBAAA;AAAA,KACE,GAAA,WAAA,CAAY,OAAO,SAAS,CAAA,CAAA;AAEhC,IAAA,MAAM,aAAgB,GAAA,QAAA,CAAS,MAAM,KAAA,CAAM,aAAa,cAAc,CAAA,CAAA;AAEtE,IAAM,MAAA,kBAAA,GAAqB,SAA6B,OAAO;AAAA,MAC7D,GAAG,KAAA;AAAA,MACH,UAAU,WAAY,CAAA,KAAA;AAAA,MACtB,OAAS,EAAA,WAAA;AAAA,MACT,UAAY,EAAA,cAAA;AAAA,MACZ,SAAW,EAAA,aAAA;AAAA,MACX,OAAS,EAAA,WAAA;AAAA,MACT,QAAU,EAAA,YAAA;AAAA,KACV,CAAA,CAAA,CAAA;AAEF,IAAA,eAAA,CAAgB,MAAM;AACpB,MAAY,WAAA,CAAA,KAAA,CAAM,QAAQ,mBAAmB,CAAA,CAAA;AAAA,KAC9C,CAAA,CAAA;AAED,IAAA,OAAA,CAAQ,gBAAkB,EAAA;AAAA,MACxB,MAAA,EAAQ,KAAM,CAAA,KAAA,EAAO,QAAQ,CAAA;AAAA,KAC9B,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAEX,KAAA;AAAA,MAEA,MAAA;AAAA,MAEA,UAAA;AAAA,MAEA,WAAA;AAAA,MAEA,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|