@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
package/dist/index.full.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20240229 */
|
|
2
2
|
|
|
3
|
-
import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, isRef, inject, onUnmounted, h as h$1, Teleport, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers,
|
|
3
|
+
import { getCurrentScope, onScopeDispose, unref, readonly, shallowRef, watchEffect, ref, watch, getCurrentInstance, onMounted, nextTick, computed as computed$1, defineComponent, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, onBeforeUnmount, isRef, inject, onUnmounted, h as h$1, Teleport, onBeforeMount, provide, renderSlot, normalizeClass, normalizeStyle, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, toRef, reactive, toRefs, onUpdated, TransitionGroup, useAttrs as useAttrs$1, withModifiers, cloneVNode, Text as Text$1, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRaw as toRaw$1, vModelCheckbox, vModelRadio, resolveComponent, onBeforeUpdate, vModelText, toHandlers, markRaw, effectScope, resolveDirective, render, createApp, shallowReactive } from 'vue';
|
|
4
4
|
|
|
5
5
|
const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
|
|
6
6
|
const isVisible = (element) => {
|
|
@@ -11638,7 +11638,7 @@ const ConfigProvider = defineComponent({
|
|
|
11638
11638
|
|
|
11639
11639
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11640
11640
|
|
|
11641
|
-
const version$1 = "0.0.
|
|
11641
|
+
const version$1 = "0.0.20240229";
|
|
11642
11642
|
|
|
11643
11643
|
const makeInstaller = (components = []) => {
|
|
11644
11644
|
const install = (app, options) => {
|
|
@@ -20894,7 +20894,6 @@ const threeConsecutiveMonth = (start, end) => {
|
|
|
20894
20894
|
];
|
|
20895
20895
|
};
|
|
20896
20896
|
const useCalendar = (props, emit, componentName) => {
|
|
20897
|
-
const slots = useSlots();
|
|
20898
20897
|
const { lang } = useLocale();
|
|
20899
20898
|
const selectedDay = ref();
|
|
20900
20899
|
const now = dayjs().locale(lang.value);
|
|
@@ -20972,14 +20971,6 @@ const useCalendar = (props, emit, componentName) => {
|
|
|
20972
20971
|
pickDay(day);
|
|
20973
20972
|
}
|
|
20974
20973
|
};
|
|
20975
|
-
useDeprecated({
|
|
20976
|
-
from: '"dateCell"',
|
|
20977
|
-
replacement: '"date-cell"',
|
|
20978
|
-
scope: "ElCalendar",
|
|
20979
|
-
version: "2.3.0",
|
|
20980
|
-
ref: "https://element-plus.org/en-US/component/calendar.html#slots",
|
|
20981
|
-
type: "Slot"
|
|
20982
|
-
}, computed$1(() => !!slots.dateCell));
|
|
20983
20974
|
return {
|
|
20984
20975
|
calculateValidatedDateRange,
|
|
20985
20976
|
date,
|
|
@@ -21094,10 +21085,10 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
21094
21085
|
"selected-day": unref(realSelectedDay),
|
|
21095
21086
|
onPick: unref(pickDay)
|
|
21096
21087
|
}, createSlots({ _: 2 }, [
|
|
21097
|
-
_ctx.$slots["date-cell"]
|
|
21088
|
+
_ctx.$slots["date-cell"] ? {
|
|
21098
21089
|
name: "date-cell",
|
|
21099
21090
|
fn: withCtx((data) => [
|
|
21100
|
-
|
|
21091
|
+
renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
|
|
21101
21092
|
])
|
|
21102
21093
|
} : void 0
|
|
21103
21094
|
]), 1032, ["date", "selected-day", "onPick"])
|
|
@@ -21114,10 +21105,10 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
21114
21105
|
"hide-header": index !== 0,
|
|
21115
21106
|
onPick: unref(pickDay)
|
|
21116
21107
|
}, createSlots({ _: 2 }, [
|
|
21117
|
-
_ctx.$slots["date-cell"]
|
|
21108
|
+
_ctx.$slots["date-cell"] ? {
|
|
21118
21109
|
name: "date-cell",
|
|
21119
21110
|
fn: withCtx((data) => [
|
|
21120
|
-
|
|
21111
|
+
renderSlot(_ctx.$slots, "date-cell", normalizeProps(guardReactiveProps(data)))
|
|
21121
21112
|
])
|
|
21122
21113
|
} : void 0
|
|
21123
21114
|
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
@@ -21243,6 +21234,10 @@ const carouselProps = buildProps({
|
|
|
21243
21234
|
pauseOnHover: {
|
|
21244
21235
|
type: Boolean,
|
|
21245
21236
|
default: true
|
|
21237
|
+
},
|
|
21238
|
+
motionBlur: {
|
|
21239
|
+
type: Boolean,
|
|
21240
|
+
default: false
|
|
21246
21241
|
}
|
|
21247
21242
|
});
|
|
21248
21243
|
const carouselEmits = {
|
|
@@ -21265,6 +21260,8 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
21265
21260
|
const root = ref();
|
|
21266
21261
|
const containerHeight = ref(0);
|
|
21267
21262
|
const isItemsTwoLength = ref(true);
|
|
21263
|
+
const isFirstCall = ref(true);
|
|
21264
|
+
const isTransitioning = ref(false);
|
|
21268
21265
|
const arrowDisplay = computed$1(() => props.arrow !== "never" && !unref(isVertical));
|
|
21269
21266
|
const hasLabel = computed$1(() => {
|
|
21270
21267
|
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
@@ -21305,6 +21302,10 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
21305
21302
|
timer.value = setInterval(() => playSlides(), props.interval);
|
|
21306
21303
|
}
|
|
21307
21304
|
const playSlides = () => {
|
|
21305
|
+
if (!isFirstCall.value) {
|
|
21306
|
+
isTransitioning.value = true;
|
|
21307
|
+
}
|
|
21308
|
+
isFirstCall.value = false;
|
|
21308
21309
|
if (activeIndex.value < items.value.length - 1) {
|
|
21309
21310
|
activeIndex.value = activeIndex.value + 1;
|
|
21310
21311
|
} else if (props.loop) {
|
|
@@ -21312,6 +21313,10 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
21312
21313
|
}
|
|
21313
21314
|
};
|
|
21314
21315
|
function setActiveItem(index) {
|
|
21316
|
+
if (!isFirstCall.value) {
|
|
21317
|
+
isTransitioning.value = true;
|
|
21318
|
+
}
|
|
21319
|
+
isFirstCall.value = false;
|
|
21315
21320
|
if (isString$1(index)) {
|
|
21316
21321
|
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
21317
21322
|
if (filteredItems.length > 0) {
|
|
@@ -21371,6 +21376,9 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
21371
21376
|
hover.value = false;
|
|
21372
21377
|
startTimer();
|
|
21373
21378
|
}
|
|
21379
|
+
function handleTransitionEnd() {
|
|
21380
|
+
isTransitioning.value = false;
|
|
21381
|
+
}
|
|
21374
21382
|
function handleButtonEnter(arrow) {
|
|
21375
21383
|
if (unref(isVertical))
|
|
21376
21384
|
return;
|
|
@@ -21388,11 +21396,19 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
21388
21396
|
});
|
|
21389
21397
|
}
|
|
21390
21398
|
function handleIndicatorClick(index) {
|
|
21399
|
+
if (index !== activeIndex.value) {
|
|
21400
|
+
if (!isFirstCall.value) {
|
|
21401
|
+
isTransitioning.value = true;
|
|
21402
|
+
}
|
|
21403
|
+
}
|
|
21391
21404
|
activeIndex.value = index;
|
|
21392
21405
|
}
|
|
21393
21406
|
function handleIndicatorHover(index) {
|
|
21394
21407
|
if (props.trigger === "hover" && index !== activeIndex.value) {
|
|
21395
21408
|
activeIndex.value = index;
|
|
21409
|
+
if (!isFirstCall.value) {
|
|
21410
|
+
isTransitioning.value = true;
|
|
21411
|
+
}
|
|
21396
21412
|
}
|
|
21397
21413
|
}
|
|
21398
21414
|
function prev() {
|
|
@@ -21483,11 +21499,13 @@ const useCarousel = (props, emit, componentName) => {
|
|
|
21483
21499
|
hasLabel,
|
|
21484
21500
|
hover,
|
|
21485
21501
|
isCardType,
|
|
21502
|
+
isTransitioning,
|
|
21486
21503
|
items,
|
|
21487
21504
|
isVertical,
|
|
21488
21505
|
containerStyle,
|
|
21489
21506
|
isItemsTwoLength,
|
|
21490
21507
|
handleButtonEnter,
|
|
21508
|
+
handleTransitionEnd,
|
|
21491
21509
|
handleButtonLeave,
|
|
21492
21510
|
handleIndicatorClick,
|
|
21493
21511
|
handleMouseEnter,
|
|
@@ -21507,6 +21525,29 @@ const _hoisted_2$C = ["aria-label"];
|
|
|
21507
21525
|
const _hoisted_3$h = ["onMouseenter", "onClick"];
|
|
21508
21526
|
const _hoisted_4$b = ["aria-label"];
|
|
21509
21527
|
const _hoisted_5$7 = { key: 0 };
|
|
21528
|
+
const _hoisted_6$4 = {
|
|
21529
|
+
key: 3,
|
|
21530
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21531
|
+
version: "1.1",
|
|
21532
|
+
style: { "display": "none" }
|
|
21533
|
+
};
|
|
21534
|
+
const _hoisted_7$2 = /* @__PURE__ */ createElementVNode("defs", null, [
|
|
21535
|
+
/* @__PURE__ */ createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
|
21536
|
+
/* @__PURE__ */ createElementVNode("feGaussianBlur", {
|
|
21537
|
+
in: "SourceGraphic",
|
|
21538
|
+
stdDeviation: "12,0"
|
|
21539
|
+
})
|
|
21540
|
+
]),
|
|
21541
|
+
/* @__PURE__ */ createElementVNode("filter", { id: "elCarouselVertical" }, [
|
|
21542
|
+
/* @__PURE__ */ createElementVNode("feGaussianBlur", {
|
|
21543
|
+
in: "SourceGraphic",
|
|
21544
|
+
stdDeviation: "0,10"
|
|
21545
|
+
})
|
|
21546
|
+
])
|
|
21547
|
+
], -1);
|
|
21548
|
+
const _hoisted_8$2 = [
|
|
21549
|
+
_hoisted_7$2
|
|
21550
|
+
];
|
|
21510
21551
|
const COMPONENT_NAME$f = "ElCarousel";
|
|
21511
21552
|
const __default__$1k = defineComponent({
|
|
21512
21553
|
name: COMPONENT_NAME$f
|
|
@@ -21529,9 +21570,11 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
21529
21570
|
containerStyle,
|
|
21530
21571
|
handleButtonEnter,
|
|
21531
21572
|
handleButtonLeave,
|
|
21573
|
+
isTransitioning,
|
|
21532
21574
|
handleIndicatorClick,
|
|
21533
21575
|
handleMouseEnter,
|
|
21534
21576
|
handleMouseLeave,
|
|
21577
|
+
handleTransitionEnd,
|
|
21535
21578
|
setActiveItem,
|
|
21536
21579
|
prev,
|
|
21537
21580
|
next,
|
|
@@ -21549,6 +21592,13 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
21549
21592
|
}
|
|
21550
21593
|
return classes;
|
|
21551
21594
|
});
|
|
21595
|
+
const carouselContainer = computed$1(() => {
|
|
21596
|
+
const classes = [ns.e("container")];
|
|
21597
|
+
if (props.motionBlur && unref(isTransitioning)) {
|
|
21598
|
+
classes.push(unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`);
|
|
21599
|
+
}
|
|
21600
|
+
return classes;
|
|
21601
|
+
});
|
|
21552
21602
|
const indicatorsClasses = computed$1(() => {
|
|
21553
21603
|
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
21554
21604
|
if (unref(hasLabel)) {
|
|
@@ -21572,76 +21622,77 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
21572
21622
|
ref_key: "root",
|
|
21573
21623
|
ref: root,
|
|
21574
21624
|
class: normalizeClass(unref(carouselClasses)),
|
|
21575
|
-
onMouseenter: _cache[
|
|
21576
|
-
onMouseleave: _cache[
|
|
21625
|
+
onMouseenter: _cache[7] || (_cache[7] = withModifiers((...args) => unref(handleMouseEnter) && unref(handleMouseEnter)(...args), ["stop"])),
|
|
21626
|
+
onMouseleave: _cache[8] || (_cache[8] = withModifiers((...args) => unref(handleMouseLeave) && unref(handleMouseLeave)(...args), ["stop"]))
|
|
21577
21627
|
}, [
|
|
21628
|
+
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
21629
|
+
key: 0,
|
|
21630
|
+
name: "carousel-arrow-left",
|
|
21631
|
+
persisted: ""
|
|
21632
|
+
}, {
|
|
21633
|
+
default: withCtx(() => [
|
|
21634
|
+
withDirectives(createElementVNode("button", {
|
|
21635
|
+
type: "button",
|
|
21636
|
+
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
|
|
21637
|
+
"aria-label": unref(t)("el.carousel.leftArrow"),
|
|
21638
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => unref(handleButtonEnter)("left")),
|
|
21639
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
|
|
21640
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"]))
|
|
21641
|
+
}, [
|
|
21642
|
+
createVNode(unref(ElIcon), null, {
|
|
21643
|
+
default: withCtx(() => [
|
|
21644
|
+
createVNode(unref(arrow_left_default))
|
|
21645
|
+
]),
|
|
21646
|
+
_: 1
|
|
21647
|
+
})
|
|
21648
|
+
], 42, _hoisted_1$Y), [
|
|
21649
|
+
[
|
|
21650
|
+
vShow,
|
|
21651
|
+
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) > 0)
|
|
21652
|
+
]
|
|
21653
|
+
])
|
|
21654
|
+
]),
|
|
21655
|
+
_: 1
|
|
21656
|
+
})) : createCommentVNode("v-if", true),
|
|
21657
|
+
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
21658
|
+
key: 1,
|
|
21659
|
+
name: "carousel-arrow-right",
|
|
21660
|
+
persisted: ""
|
|
21661
|
+
}, {
|
|
21662
|
+
default: withCtx(() => [
|
|
21663
|
+
withDirectives(createElementVNode("button", {
|
|
21664
|
+
type: "button",
|
|
21665
|
+
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
|
|
21666
|
+
"aria-label": unref(t)("el.carousel.rightArrow"),
|
|
21667
|
+
onMouseenter: _cache[3] || (_cache[3] = ($event) => unref(handleButtonEnter)("right")),
|
|
21668
|
+
onMouseleave: _cache[4] || (_cache[4] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
|
|
21669
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"]))
|
|
21670
|
+
}, [
|
|
21671
|
+
createVNode(unref(ElIcon), null, {
|
|
21672
|
+
default: withCtx(() => [
|
|
21673
|
+
createVNode(unref(arrow_right_default))
|
|
21674
|
+
]),
|
|
21675
|
+
_: 1
|
|
21676
|
+
})
|
|
21677
|
+
], 42, _hoisted_2$C), [
|
|
21678
|
+
[
|
|
21679
|
+
vShow,
|
|
21680
|
+
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) < unref(items).length - 1)
|
|
21681
|
+
]
|
|
21682
|
+
])
|
|
21683
|
+
]),
|
|
21684
|
+
_: 1
|
|
21685
|
+
})) : createCommentVNode("v-if", true),
|
|
21578
21686
|
createElementVNode("div", {
|
|
21579
|
-
class: normalizeClass(unref(
|
|
21580
|
-
style: normalizeStyle(unref(containerStyle))
|
|
21687
|
+
class: normalizeClass(unref(carouselContainer)),
|
|
21688
|
+
style: normalizeStyle(unref(containerStyle)),
|
|
21689
|
+
onTransitionend: _cache[6] || (_cache[6] = (...args) => unref(handleTransitionEnd) && unref(handleTransitionEnd)(...args))
|
|
21581
21690
|
}, [
|
|
21582
|
-
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
21583
|
-
key: 0,
|
|
21584
|
-
name: "carousel-arrow-left",
|
|
21585
|
-
persisted: ""
|
|
21586
|
-
}, {
|
|
21587
|
-
default: withCtx(() => [
|
|
21588
|
-
withDirectives(createElementVNode("button", {
|
|
21589
|
-
type: "button",
|
|
21590
|
-
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "left")]),
|
|
21591
|
-
"aria-label": unref(t)("el.carousel.leftArrow"),
|
|
21592
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => unref(handleButtonEnter)("left")),
|
|
21593
|
-
onMouseleave: _cache[1] || (_cache[1] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
|
|
21594
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) - 1), ["stop"]))
|
|
21595
|
-
}, [
|
|
21596
|
-
createVNode(unref(ElIcon), null, {
|
|
21597
|
-
default: withCtx(() => [
|
|
21598
|
-
createVNode(unref(arrow_left_default))
|
|
21599
|
-
]),
|
|
21600
|
-
_: 1
|
|
21601
|
-
})
|
|
21602
|
-
], 42, _hoisted_1$Y), [
|
|
21603
|
-
[
|
|
21604
|
-
vShow,
|
|
21605
|
-
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) > 0)
|
|
21606
|
-
]
|
|
21607
|
-
])
|
|
21608
|
-
]),
|
|
21609
|
-
_: 1
|
|
21610
|
-
})) : createCommentVNode("v-if", true),
|
|
21611
|
-
unref(arrowDisplay) ? (openBlock(), createBlock(Transition, {
|
|
21612
|
-
key: 1,
|
|
21613
|
-
name: "carousel-arrow-right",
|
|
21614
|
-
persisted: ""
|
|
21615
|
-
}, {
|
|
21616
|
-
default: withCtx(() => [
|
|
21617
|
-
withDirectives(createElementVNode("button", {
|
|
21618
|
-
type: "button",
|
|
21619
|
-
class: normalizeClass([unref(ns).e("arrow"), unref(ns).em("arrow", "right")]),
|
|
21620
|
-
"aria-label": unref(t)("el.carousel.rightArrow"),
|
|
21621
|
-
onMouseenter: _cache[3] || (_cache[3] = ($event) => unref(handleButtonEnter)("right")),
|
|
21622
|
-
onMouseleave: _cache[4] || (_cache[4] = (...args) => unref(handleButtonLeave) && unref(handleButtonLeave)(...args)),
|
|
21623
|
-
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => unref(throttledArrowClick)(unref(activeIndex) + 1), ["stop"]))
|
|
21624
|
-
}, [
|
|
21625
|
-
createVNode(unref(ElIcon), null, {
|
|
21626
|
-
default: withCtx(() => [
|
|
21627
|
-
createVNode(unref(arrow_right_default))
|
|
21628
|
-
]),
|
|
21629
|
-
_: 1
|
|
21630
|
-
})
|
|
21631
|
-
], 42, _hoisted_2$C), [
|
|
21632
|
-
[
|
|
21633
|
-
vShow,
|
|
21634
|
-
(_ctx.arrow === "always" || unref(hover)) && (props.loop || unref(activeIndex) < unref(items).length - 1)
|
|
21635
|
-
]
|
|
21636
|
-
])
|
|
21637
|
-
]),
|
|
21638
|
-
_: 1
|
|
21639
|
-
})) : createCommentVNode("v-if", true),
|
|
21640
21691
|
createVNode(unref(PlaceholderItem)),
|
|
21641
21692
|
renderSlot(_ctx.$slots, "default")
|
|
21642
|
-
],
|
|
21693
|
+
], 38),
|
|
21643
21694
|
_ctx.indicatorPosition !== "none" ? (openBlock(), createElementBlock("ul", {
|
|
21644
|
-
key:
|
|
21695
|
+
key: 2,
|
|
21645
21696
|
class: normalizeClass(unref(indicatorsClasses))
|
|
21646
21697
|
}, [
|
|
21647
21698
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(items), (item, index) => {
|
|
@@ -21665,7 +21716,8 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
21665
21716
|
[vShow, unref(isTwoLengthShow)(index)]
|
|
21666
21717
|
]);
|
|
21667
21718
|
}), 128))
|
|
21668
|
-
], 2)) : createCommentVNode("v-if", true)
|
|
21719
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
21720
|
+
props.motionBlur ? (openBlock(), createElementBlock("svg", _hoisted_6$4, _hoisted_8$2)) : createCommentVNode("v-if", true)
|
|
21669
21721
|
], 34);
|
|
21670
21722
|
};
|
|
21671
21723
|
}
|
|
@@ -21871,6 +21923,10 @@ const checkboxProps = {
|
|
|
21871
21923
|
type: [String, Boolean, Number, Object],
|
|
21872
21924
|
default: void 0
|
|
21873
21925
|
},
|
|
21926
|
+
value: {
|
|
21927
|
+
type: [String, Boolean, Number, Object],
|
|
21928
|
+
default: void 0
|
|
21929
|
+
},
|
|
21874
21930
|
indeterminate: Boolean,
|
|
21875
21931
|
disabled: Boolean,
|
|
21876
21932
|
checked: Boolean,
|
|
@@ -21878,6 +21934,14 @@ const checkboxProps = {
|
|
|
21878
21934
|
type: String,
|
|
21879
21935
|
default: void 0
|
|
21880
21936
|
},
|
|
21937
|
+
trueValue: {
|
|
21938
|
+
type: [String, Number],
|
|
21939
|
+
default: void 0
|
|
21940
|
+
},
|
|
21941
|
+
falseValue: {
|
|
21942
|
+
type: [String, Number],
|
|
21943
|
+
default: void 0
|
|
21944
|
+
},
|
|
21881
21945
|
trueLabel: {
|
|
21882
21946
|
type: [String, Number],
|
|
21883
21947
|
default: void 0
|
|
@@ -21939,7 +22003,7 @@ const useCheckboxEvent = (props, {
|
|
|
21939
22003
|
const { emit } = getCurrentInstance();
|
|
21940
22004
|
function getLabeledValue(value) {
|
|
21941
22005
|
var _a, _b;
|
|
21942
|
-
return
|
|
22006
|
+
return [true, props.trueValue, props.trueLabel].includes(value) ? (_a = props.trueValue || props.trueLabel) != null ? _a : true : (_b = props.falseValue || props.falseLabel) != null ? _b : false;
|
|
21943
22007
|
}
|
|
21944
22008
|
function emitChangeEvent(checked, e) {
|
|
21945
22009
|
emit("change", getLabeledValue(checked), e);
|
|
@@ -21957,7 +22021,7 @@ const useCheckboxEvent = (props, {
|
|
|
21957
22021
|
const eventTargets = e.composedPath();
|
|
21958
22022
|
const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
|
|
21959
22023
|
if (!hasLabel) {
|
|
21960
|
-
model.value = getLabeledValue([false, props.falseLabel].includes(model.value));
|
|
22024
|
+
model.value = getLabeledValue([false, props.falseValue, props.falseLabel].includes(model.value));
|
|
21961
22025
|
await nextTick();
|
|
21962
22026
|
emitChangeEvent(model.value, e);
|
|
21963
22027
|
}
|
|
@@ -22007,18 +22071,24 @@ const useCheckboxModel = (props) => {
|
|
|
22007
22071
|
const useCheckboxStatus = (props, slots, { model }) => {
|
|
22008
22072
|
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
|
22009
22073
|
const isFocused = ref(false);
|
|
22074
|
+
const actualValue = computed$1(() => {
|
|
22075
|
+
if (!isPropAbsent(props.value)) {
|
|
22076
|
+
return props.value;
|
|
22077
|
+
}
|
|
22078
|
+
return props.label;
|
|
22079
|
+
});
|
|
22010
22080
|
const isChecked = computed$1(() => {
|
|
22011
22081
|
const value = model.value;
|
|
22012
22082
|
if (isBoolean(value)) {
|
|
22013
22083
|
return value;
|
|
22014
22084
|
} else if (isArray$1(value)) {
|
|
22015
|
-
if (isObject$1(
|
|
22016
|
-
return value.map(toRaw$1).some((o) => isEqual$1(o,
|
|
22085
|
+
if (isObject$1(actualValue.value)) {
|
|
22086
|
+
return value.map(toRaw$1).some((o) => isEqual$1(o, actualValue.value));
|
|
22017
22087
|
} else {
|
|
22018
|
-
return value.map(toRaw$1).includes(
|
|
22088
|
+
return value.map(toRaw$1).includes(actualValue.value);
|
|
22019
22089
|
}
|
|
22020
22090
|
} else if (value !== null && value !== void 0) {
|
|
22021
|
-
return value === props.trueLabel;
|
|
22091
|
+
return value === props.trueValue || value === props.trueLabel;
|
|
22022
22092
|
} else {
|
|
22023
22093
|
return !!value;
|
|
22024
22094
|
}
|
|
@@ -22034,27 +22104,18 @@ const useCheckboxStatus = (props, slots, { model }) => {
|
|
|
22034
22104
|
return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
|
|
22035
22105
|
}));
|
|
22036
22106
|
const hasOwnLabel = computed$1(() => {
|
|
22037
|
-
return !!slots.default || !
|
|
22107
|
+
return !!slots.default || !isPropAbsent(actualValue.value);
|
|
22038
22108
|
});
|
|
22039
22109
|
return {
|
|
22040
22110
|
checkboxButtonSize,
|
|
22041
22111
|
isChecked,
|
|
22042
22112
|
isFocused,
|
|
22043
22113
|
checkboxSize,
|
|
22044
|
-
hasOwnLabel
|
|
22114
|
+
hasOwnLabel,
|
|
22115
|
+
actualValue
|
|
22045
22116
|
};
|
|
22046
22117
|
};
|
|
22047
22118
|
|
|
22048
|
-
const setStoreValue = (props, { model }) => {
|
|
22049
|
-
function addToStore() {
|
|
22050
|
-
if (isArray$1(model.value) && !model.value.includes(props.label)) {
|
|
22051
|
-
model.value.push(props.label);
|
|
22052
|
-
} else {
|
|
22053
|
-
model.value = props.trueLabel || true;
|
|
22054
|
-
}
|
|
22055
|
-
}
|
|
22056
|
-
props.checked && addToStore();
|
|
22057
|
-
};
|
|
22058
22119
|
const useCheckbox = (props, slots) => {
|
|
22059
22120
|
const { formItem: elFormItem } = useFormItem();
|
|
22060
22121
|
const { model, isGroup, isLimitExceeded } = useCheckboxModel(props);
|
|
@@ -22063,7 +22124,8 @@ const useCheckbox = (props, slots) => {
|
|
|
22063
22124
|
isChecked,
|
|
22064
22125
|
checkboxButtonSize,
|
|
22065
22126
|
checkboxSize,
|
|
22066
|
-
hasOwnLabel
|
|
22127
|
+
hasOwnLabel,
|
|
22128
|
+
actualValue
|
|
22067
22129
|
} = useCheckboxStatus(props, slots, { model });
|
|
22068
22130
|
const { isDisabled } = useCheckboxDisabled({ model, isChecked });
|
|
22069
22131
|
const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {
|
|
@@ -22078,7 +22140,38 @@ const useCheckbox = (props, slots) => {
|
|
|
22078
22140
|
isDisabled,
|
|
22079
22141
|
isLabeledByFormItem
|
|
22080
22142
|
});
|
|
22081
|
-
setStoreValue(
|
|
22143
|
+
const setStoreValue = () => {
|
|
22144
|
+
function addToStore() {
|
|
22145
|
+
if (isArray$1(model.value) && !model.value.includes(actualValue.value)) {
|
|
22146
|
+
model.value.push(actualValue.value);
|
|
22147
|
+
} else {
|
|
22148
|
+
model.value = props.trueValue || props.trueLabel || true;
|
|
22149
|
+
}
|
|
22150
|
+
}
|
|
22151
|
+
props.checked && addToStore();
|
|
22152
|
+
};
|
|
22153
|
+
setStoreValue();
|
|
22154
|
+
useDeprecated({
|
|
22155
|
+
from: "label act as value",
|
|
22156
|
+
replacement: "value",
|
|
22157
|
+
version: "3.0.0",
|
|
22158
|
+
scope: "el-checkbox",
|
|
22159
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
22160
|
+
}, computed$1(() => isGroup.value && isPropAbsent(props.value)));
|
|
22161
|
+
useDeprecated({
|
|
22162
|
+
from: "true-label",
|
|
22163
|
+
replacement: "true-value",
|
|
22164
|
+
version: "3.0.0",
|
|
22165
|
+
scope: "el-checkbox",
|
|
22166
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
22167
|
+
}, computed$1(() => !!props.trueLabel));
|
|
22168
|
+
useDeprecated({
|
|
22169
|
+
from: "false-label",
|
|
22170
|
+
replacement: "false-value",
|
|
22171
|
+
version: "3.0.0",
|
|
22172
|
+
scope: "el-checkbox",
|
|
22173
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
22174
|
+
}, computed$1(() => !!props.falseLabel));
|
|
22082
22175
|
return {
|
|
22083
22176
|
inputId,
|
|
22084
22177
|
isLabeledByFormItem,
|
|
@@ -22089,6 +22182,7 @@ const useCheckbox = (props, slots) => {
|
|
|
22089
22182
|
checkboxSize,
|
|
22090
22183
|
hasOwnLabel,
|
|
22091
22184
|
model,
|
|
22185
|
+
actualValue,
|
|
22092
22186
|
handleChange,
|
|
22093
22187
|
onClickRoot
|
|
22094
22188
|
};
|
|
@@ -22115,6 +22209,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
22115
22209
|
checkboxSize,
|
|
22116
22210
|
hasOwnLabel,
|
|
22117
22211
|
model,
|
|
22212
|
+
actualValue,
|
|
22118
22213
|
handleChange,
|
|
22119
22214
|
onClickRoot
|
|
22120
22215
|
} = useCheckbox(props, slots);
|
|
@@ -22147,7 +22242,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
22147
22242
|
createElementVNode("span", {
|
|
22148
22243
|
class: normalizeClass(unref(spanKls))
|
|
22149
22244
|
}, [
|
|
22150
|
-
_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
22245
|
+
_ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
22151
22246
|
key: 0,
|
|
22152
22247
|
id: unref(inputId),
|
|
22153
22248
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
@@ -22157,8 +22252,8 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
22157
22252
|
name: _ctx.name,
|
|
22158
22253
|
tabindex: _ctx.tabindex,
|
|
22159
22254
|
disabled: unref(isDisabled),
|
|
22160
|
-
"true-value": _ctx.trueLabel,
|
|
22161
|
-
"false-value": _ctx.falseLabel,
|
|
22255
|
+
"true-value": _ctx.trueValue || _ctx.trueLabel,
|
|
22256
|
+
"false-value": _ctx.falseValue || _ctx.falseLabel,
|
|
22162
22257
|
onChange: _cache[1] || (_cache[1] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
22163
22258
|
onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
|
|
22164
22259
|
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
|
|
@@ -22174,7 +22269,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
22174
22269
|
type: "checkbox",
|
|
22175
22270
|
indeterminate: _ctx.indeterminate,
|
|
22176
22271
|
disabled: unref(isDisabled),
|
|
22177
|
-
value:
|
|
22272
|
+
value: unref(actualValue),
|
|
22178
22273
|
name: _ctx.name,
|
|
22179
22274
|
tabindex: _ctx.tabindex,
|
|
22180
22275
|
onChange: _cache[6] || (_cache[6] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
@@ -22224,6 +22319,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
22224
22319
|
isDisabled,
|
|
22225
22320
|
checkboxButtonSize,
|
|
22226
22321
|
model,
|
|
22322
|
+
actualValue,
|
|
22227
22323
|
handleChange
|
|
22228
22324
|
} = useCheckbox(props, slots);
|
|
22229
22325
|
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
|
@@ -22251,7 +22347,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
22251
22347
|
return openBlock(), createElementBlock("label", {
|
|
22252
22348
|
class: normalizeClass(unref(labelKls))
|
|
22253
22349
|
}, [
|
|
22254
|
-
_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
22350
|
+
_ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
22255
22351
|
key: 0,
|
|
22256
22352
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(model) ? model.value = $event : null),
|
|
22257
22353
|
class: normalizeClass(unref(ns).be("button", "original")),
|
|
@@ -22259,8 +22355,8 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
22259
22355
|
name: _ctx.name,
|
|
22260
22356
|
tabindex: _ctx.tabindex,
|
|
22261
22357
|
disabled: unref(isDisabled),
|
|
22262
|
-
"true-value": _ctx.trueLabel,
|
|
22263
|
-
"false-value": _ctx.falseLabel,
|
|
22358
|
+
"true-value": _ctx.trueValue || _ctx.trueLabel,
|
|
22359
|
+
"false-value": _ctx.falseValue || _ctx.falseLabel,
|
|
22264
22360
|
onChange: _cache[1] || (_cache[1] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
22265
22361
|
onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
|
|
22266
22362
|
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
|
|
@@ -22276,7 +22372,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
|
22276
22372
|
name: _ctx.name,
|
|
22277
22373
|
tabindex: _ctx.tabindex,
|
|
22278
22374
|
disabled: unref(isDisabled),
|
|
22279
|
-
value:
|
|
22375
|
+
value: unref(actualValue),
|
|
22280
22376
|
onChange: _cache[6] || (_cache[6] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
22281
22377
|
onFocus: _cache[7] || (_cache[7] = ($event) => isFocused.value = true),
|
|
22282
22378
|
onBlur: _cache[8] || (_cache[8] = ($event) => isFocused.value = false),
|
|
@@ -22398,23 +22494,27 @@ const ElCheckboxButton = withNoopInstall(CheckboxButton);
|
|
|
22398
22494
|
const ElCheckboxGroup$1 = withNoopInstall(CheckboxGroup);
|
|
22399
22495
|
|
|
22400
22496
|
const radioPropsBase = buildProps({
|
|
22497
|
+
modelValue: {
|
|
22498
|
+
type: [String, Number, Boolean],
|
|
22499
|
+
default: void 0
|
|
22500
|
+
},
|
|
22401
22501
|
size: useSizeProp,
|
|
22402
22502
|
disabled: Boolean,
|
|
22403
22503
|
label: {
|
|
22404
22504
|
type: [String, Number, Boolean],
|
|
22405
|
-
default:
|
|
22406
|
-
}
|
|
22407
|
-
|
|
22408
|
-
const radioProps = buildProps({
|
|
22409
|
-
...radioPropsBase,
|
|
22410
|
-
modelValue: {
|
|
22505
|
+
default: void 0
|
|
22506
|
+
},
|
|
22507
|
+
value: {
|
|
22411
22508
|
type: [String, Number, Boolean],
|
|
22412
|
-
default:
|
|
22509
|
+
default: void 0
|
|
22413
22510
|
},
|
|
22414
22511
|
name: {
|
|
22415
22512
|
type: String,
|
|
22416
|
-
default:
|
|
22417
|
-
}
|
|
22513
|
+
default: void 0
|
|
22514
|
+
}
|
|
22515
|
+
});
|
|
22516
|
+
const radioProps = buildProps({
|
|
22517
|
+
...radioPropsBase,
|
|
22418
22518
|
border: Boolean
|
|
22419
22519
|
});
|
|
22420
22520
|
const radioEmits = {
|
|
@@ -22428,6 +22528,12 @@ const useRadio = (props, emit) => {
|
|
|
22428
22528
|
const radioRef = ref();
|
|
22429
22529
|
const radioGroup = inject(radioGroupKey, void 0);
|
|
22430
22530
|
const isGroup = computed$1(() => !!radioGroup);
|
|
22531
|
+
const actualValue = computed$1(() => {
|
|
22532
|
+
if (!isPropAbsent(props.value)) {
|
|
22533
|
+
return props.value;
|
|
22534
|
+
}
|
|
22535
|
+
return props.label;
|
|
22536
|
+
});
|
|
22431
22537
|
const modelValue = computed$1({
|
|
22432
22538
|
get() {
|
|
22433
22539
|
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
@@ -22438,15 +22544,22 @@ const useRadio = (props, emit) => {
|
|
|
22438
22544
|
} else {
|
|
22439
22545
|
emit && emit(UPDATE_MODEL_EVENT, val);
|
|
22440
22546
|
}
|
|
22441
|
-
radioRef.value.checked = props.modelValue ===
|
|
22547
|
+
radioRef.value.checked = props.modelValue === actualValue.value;
|
|
22442
22548
|
}
|
|
22443
22549
|
});
|
|
22444
22550
|
const size = useFormSize(computed$1(() => radioGroup == null ? void 0 : radioGroup.size));
|
|
22445
22551
|
const disabled = useFormDisabled(computed$1(() => radioGroup == null ? void 0 : radioGroup.disabled));
|
|
22446
22552
|
const focus = ref(false);
|
|
22447
22553
|
const tabIndex = computed$1(() => {
|
|
22448
|
-
return disabled.value || isGroup.value && modelValue.value !==
|
|
22554
|
+
return disabled.value || isGroup.value && modelValue.value !== actualValue.value ? -1 : 0;
|
|
22449
22555
|
});
|
|
22556
|
+
useDeprecated({
|
|
22557
|
+
from: "label act as value",
|
|
22558
|
+
replacement: "value",
|
|
22559
|
+
version: "3.0.0",
|
|
22560
|
+
scope: "el-radio",
|
|
22561
|
+
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
22562
|
+
}, computed$1(() => isGroup.value && isPropAbsent(props.value)));
|
|
22450
22563
|
return {
|
|
22451
22564
|
radioRef,
|
|
22452
22565
|
isGroup,
|
|
@@ -22455,7 +22568,8 @@ const useRadio = (props, emit) => {
|
|
|
22455
22568
|
size,
|
|
22456
22569
|
disabled,
|
|
22457
22570
|
tabIndex,
|
|
22458
|
-
modelValue
|
|
22571
|
+
modelValue,
|
|
22572
|
+
actualValue
|
|
22459
22573
|
};
|
|
22460
22574
|
};
|
|
22461
22575
|
|
|
@@ -22470,7 +22584,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
22470
22584
|
setup(__props, { emit }) {
|
|
22471
22585
|
const props = __props;
|
|
22472
22586
|
const ns = useNamespace("radio");
|
|
22473
|
-
const { radioRef, radioGroup, focus, size, disabled, modelValue } = useRadio(props, emit);
|
|
22587
|
+
const { radioRef, radioGroup, focus, size, disabled, modelValue, actualValue } = useRadio(props, emit);
|
|
22474
22588
|
function handleChange() {
|
|
22475
22589
|
nextTick(() => emit("change", modelValue.value));
|
|
22476
22590
|
}
|
|
@@ -22482,7 +22596,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
22482
22596
|
unref(ns).is("disabled", unref(disabled)),
|
|
22483
22597
|
unref(ns).is("focus", unref(focus)),
|
|
22484
22598
|
unref(ns).is("bordered", _ctx.border),
|
|
22485
|
-
unref(ns).is("checked", unref(modelValue) ===
|
|
22599
|
+
unref(ns).is("checked", unref(modelValue) === unref(actualValue)),
|
|
22486
22600
|
unref(ns).m(unref(size))
|
|
22487
22601
|
])
|
|
22488
22602
|
}, [
|
|
@@ -22490,7 +22604,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
22490
22604
|
class: normalizeClass([
|
|
22491
22605
|
unref(ns).e("input"),
|
|
22492
22606
|
unref(ns).is("disabled", unref(disabled)),
|
|
22493
|
-
unref(ns).is("checked", unref(modelValue) ===
|
|
22607
|
+
unref(ns).is("checked", unref(modelValue) === unref(actualValue))
|
|
22494
22608
|
])
|
|
22495
22609
|
}, [
|
|
22496
22610
|
withDirectives(createElementVNode("input", {
|
|
@@ -22498,7 +22612,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
22498
22612
|
ref: radioRef,
|
|
22499
22613
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
22500
22614
|
class: normalizeClass(unref(ns).e("original")),
|
|
22501
|
-
value:
|
|
22615
|
+
value: unref(actualValue),
|
|
22502
22616
|
name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
|
|
22503
22617
|
disabled: unref(disabled),
|
|
22504
22618
|
type: "radio",
|
|
@@ -22530,11 +22644,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
22530
22644
|
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__file", "radio.vue"]]);
|
|
22531
22645
|
|
|
22532
22646
|
const radioButtonProps = buildProps({
|
|
22533
|
-
...radioPropsBase
|
|
22534
|
-
name: {
|
|
22535
|
-
type: String,
|
|
22536
|
-
default: ""
|
|
22537
|
-
}
|
|
22647
|
+
...radioPropsBase
|
|
22538
22648
|
});
|
|
22539
22649
|
|
|
22540
22650
|
const _hoisted_1$U = ["value", "name", "disabled"];
|
|
@@ -22547,7 +22657,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
22547
22657
|
setup(__props) {
|
|
22548
22658
|
const props = __props;
|
|
22549
22659
|
const ns = useNamespace("radio");
|
|
22550
|
-
const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio(props);
|
|
22660
|
+
const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio(props);
|
|
22551
22661
|
const activeStyle = computed$1(() => {
|
|
22552
22662
|
return {
|
|
22553
22663
|
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
@@ -22561,7 +22671,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
22561
22671
|
return openBlock(), createElementBlock("label", {
|
|
22562
22672
|
class: normalizeClass([
|
|
22563
22673
|
unref(ns).b("button"),
|
|
22564
|
-
unref(ns).is("active", unref(modelValue) ===
|
|
22674
|
+
unref(ns).is("active", unref(modelValue) === unref(actualValue)),
|
|
22565
22675
|
unref(ns).is("disabled", unref(disabled)),
|
|
22566
22676
|
unref(ns).is("focus", unref(focus)),
|
|
22567
22677
|
unref(ns).bm("button", unref(size))
|
|
@@ -22572,7 +22682,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
22572
22682
|
ref: radioRef,
|
|
22573
22683
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
22574
22684
|
class: normalizeClass(unref(ns).be("button", "original-radio")),
|
|
22575
|
-
value:
|
|
22685
|
+
value: unref(actualValue),
|
|
22576
22686
|
type: "radio",
|
|
22577
22687
|
name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
|
|
22578
22688
|
disabled: unref(disabled),
|
|
@@ -22585,7 +22695,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
22585
22695
|
]),
|
|
22586
22696
|
createElementVNode("span", {
|
|
22587
22697
|
class: normalizeClass(unref(ns).be("button", "inner")),
|
|
22588
|
-
style: normalizeStyle(unref(modelValue) ===
|
|
22698
|
+
style: normalizeStyle(unref(modelValue) === unref(actualValue) ? unref(activeStyle) : {}),
|
|
22589
22699
|
onKeydown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
22590
22700
|
}, ["stop"]))
|
|
22591
22701
|
}, [
|
|
@@ -22608,7 +22718,7 @@ const radioGroupProps = buildProps({
|
|
|
22608
22718
|
disabled: Boolean,
|
|
22609
22719
|
modelValue: {
|
|
22610
22720
|
type: [String, Number, Boolean],
|
|
22611
|
-
default:
|
|
22721
|
+
default: void 0
|
|
22612
22722
|
},
|
|
22613
22723
|
fill: {
|
|
22614
22724
|
type: String,
|
|
@@ -26624,7 +26734,7 @@ const useBasicDateTable = (props, emit) => {
|
|
|
26624
26734
|
const _selectedDate = unref(selectedDate);
|
|
26625
26735
|
const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex });
|
|
26626
26736
|
const cellDate = cell.dayjs.toDate();
|
|
26627
|
-
cell.selected = _selectedDate.find((d) => d.
|
|
26737
|
+
cell.selected = _selectedDate.find((d) => d.isSame(cell.dayjs, "day"));
|
|
26628
26738
|
cell.isSelected = !!cell.selected;
|
|
26629
26739
|
cell.isCurrent = isCurrent(cell);
|
|
26630
26740
|
cell.disabled = disabledDate == null ? void 0 : disabledDate(cellDate);
|
|
@@ -32872,10 +32982,6 @@ const subMenuProps = buildProps({
|
|
|
32872
32982
|
hideTimeout: Number,
|
|
32873
32983
|
popperClass: String,
|
|
32874
32984
|
disabled: Boolean,
|
|
32875
|
-
popperAppendToBody: {
|
|
32876
|
-
type: Boolean,
|
|
32877
|
-
default: void 0
|
|
32878
|
-
},
|
|
32879
32985
|
teleported: {
|
|
32880
32986
|
type: Boolean,
|
|
32881
32987
|
default: void 0
|
|
@@ -32899,13 +33005,6 @@ var SubMenu = defineComponent({
|
|
|
32899
33005
|
name: COMPONENT_NAME$c,
|
|
32900
33006
|
props: subMenuProps,
|
|
32901
33007
|
setup(props, { slots, expose }) {
|
|
32902
|
-
useDeprecated({
|
|
32903
|
-
from: "popper-append-to-body",
|
|
32904
|
-
replacement: "teleported",
|
|
32905
|
-
scope: COMPONENT_NAME$c,
|
|
32906
|
-
version: "2.3.0",
|
|
32907
|
-
ref: "https://element-plus.org/en-US/component/menu.html#submenu-attributes"
|
|
32908
|
-
}, computed$1(() => props.popperAppendToBody !== void 0));
|
|
32909
33008
|
const instance = getCurrentInstance();
|
|
32910
33009
|
const { indexPath, parentMenu } = useMenu(instance, computed$1(() => props.index));
|
|
32911
33010
|
const nsMenu = useNamespace("menu");
|
|
@@ -32930,8 +33029,7 @@ var SubMenu = defineComponent({
|
|
|
32930
33029
|
return subMenu.level === 0;
|
|
32931
33030
|
});
|
|
32932
33031
|
const appendToBody = computed$1(() => {
|
|
32933
|
-
|
|
32934
|
-
const value = (_a = props.teleported) != null ? _a : props.popperAppendToBody;
|
|
33032
|
+
const value = props.teleported;
|
|
32935
33033
|
return value === void 0 ? isFirstLevel.value : value;
|
|
32936
33034
|
});
|
|
32937
33035
|
const menuTransitionName = computed$1(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
|
|
@@ -33343,6 +33441,8 @@ var Menu = defineComponent({
|
|
|
33343
33441
|
};
|
|
33344
33442
|
let isFirstTimeRender = true;
|
|
33345
33443
|
const handleResize = () => {
|
|
33444
|
+
if (sliceIndex.value === calcSliceIndex())
|
|
33445
|
+
return;
|
|
33346
33446
|
const callback = () => {
|
|
33347
33447
|
sliceIndex.value = -1;
|
|
33348
33448
|
nextTick(() => {
|
|
@@ -34118,13 +34218,6 @@ const useSelect$3 = (props, emit) => {
|
|
|
34118
34218
|
menuVisibleOnFocus: false,
|
|
34119
34219
|
isBeforeHide: false
|
|
34120
34220
|
});
|
|
34121
|
-
useDeprecated({
|
|
34122
|
-
from: "suffixTransition",
|
|
34123
|
-
replacement: "override style scheme",
|
|
34124
|
-
version: "2.3.0",
|
|
34125
|
-
scope: "props",
|
|
34126
|
-
ref: "https://element-plus.org/en-US/component/select.html#select-attributes"
|
|
34127
|
-
}, computed$1(() => props.suffixTransition === false));
|
|
34128
34221
|
const selectRef = ref(null);
|
|
34129
34222
|
const selectionRef = ref(null);
|
|
34130
34223
|
const tooltipRef = ref(null);
|
|
@@ -34168,7 +34261,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
34168
34261
|
return criteria;
|
|
34169
34262
|
});
|
|
34170
34263
|
const iconComponent = computed$1(() => props.remote && props.filterable && !props.remoteShowSuffix ? "" : props.suffixIcon);
|
|
34171
|
-
const iconReverse = computed$1(() => nsSelect.is("reverse", iconComponent.value && expanded.value
|
|
34264
|
+
const iconReverse = computed$1(() => nsSelect.is("reverse", iconComponent.value && expanded.value));
|
|
34172
34265
|
const validateState = computed$1(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
34173
34266
|
const validateIcon = computed$1(() => ValidateComponentsMap[validateState.value]);
|
|
34174
34267
|
const debounce$1 = computed$1(() => props.remote ? 300 : 0);
|
|
@@ -34363,15 +34456,7 @@ const useSelect$3 = (props, emit) => {
|
|
|
34363
34456
|
return getValueKey(item) === getValueKey(states.selected);
|
|
34364
34457
|
});
|
|
34365
34458
|
} else {
|
|
34366
|
-
|
|
34367
|
-
states.hoveringIndex = Math.min(...states.selected.map((selected) => {
|
|
34368
|
-
return optionsArray.value.findIndex((item) => {
|
|
34369
|
-
return getValueKey(item) === getValueKey(selected);
|
|
34370
|
-
});
|
|
34371
|
-
}));
|
|
34372
|
-
} else {
|
|
34373
|
-
states.hoveringIndex = -1;
|
|
34374
|
-
}
|
|
34459
|
+
states.hoveringIndex = optionsArray.value.findIndex((item) => states.selected.some((selected) => getValueKey(selected) === getValueKey(item)));
|
|
34375
34460
|
}
|
|
34376
34461
|
};
|
|
34377
34462
|
const resetSelectionWidth = () => {
|
|
@@ -34849,10 +34934,6 @@ const SelectProps$1 = buildProps({
|
|
|
34849
34934
|
default: true
|
|
34850
34935
|
},
|
|
34851
34936
|
remoteShowSuffix: Boolean,
|
|
34852
|
-
suffixTransition: {
|
|
34853
|
-
type: Boolean,
|
|
34854
|
-
default: true
|
|
34855
|
-
},
|
|
34856
34937
|
placement: {
|
|
34857
34938
|
type: definePropType(String),
|
|
34858
34939
|
values: Ee,
|
|
@@ -39226,18 +39307,13 @@ var ElSelectMenu = defineComponent({
|
|
|
39226
39307
|
multiple,
|
|
39227
39308
|
scrollbarAlwaysOn
|
|
39228
39309
|
} = select.props;
|
|
39229
|
-
if (slots.loading || slots.empty) {
|
|
39230
|
-
return createVNode("div", {
|
|
39231
|
-
"class": ns.b("dropdown"),
|
|
39232
|
-
"style": {
|
|
39233
|
-
width: `${width}px`
|
|
39234
|
-
}
|
|
39235
|
-
}, [((_a = slots.loading) == null ? void 0 : _a.call(slots)) || ((_b = slots.empty) == null ? void 0 : _b.call(slots))]);
|
|
39236
|
-
}
|
|
39237
39310
|
const List = unref(isSized) ? FixedSizeList$1 : DynamicSizeList$1;
|
|
39238
39311
|
return createVNode("div", {
|
|
39239
|
-
"class": [ns.b("dropdown"), ns.is("multiple", multiple)]
|
|
39240
|
-
|
|
39312
|
+
"class": [ns.b("dropdown"), ns.is("multiple", multiple)],
|
|
39313
|
+
"style": {
|
|
39314
|
+
width: `${width}px`
|
|
39315
|
+
}
|
|
39316
|
+
}, [(_a = slots.header) == null ? void 0 : _a.call(slots), ((_b = slots.loading) == null ? void 0 : _b.call(slots)) || ((_c = slots.empty) == null ? void 0 : _c.call(slots)) || createVNode(List, mergeProps({
|
|
39241
39317
|
"ref": listRef
|
|
39242
39318
|
}, unref(listProps), {
|
|
39243
39319
|
"className": ns.be("dropdown", "list"),
|
|
@@ -39451,6 +39527,13 @@ const useSelect$1 = (props, emit) => {
|
|
|
39451
39527
|
allOptions.value = filterOptions("");
|
|
39452
39528
|
filteredOptions.value = filterOptions(states.inputValue);
|
|
39453
39529
|
};
|
|
39530
|
+
const allOptionsValueMap = computed$1(() => {
|
|
39531
|
+
const valueMap = /* @__PURE__ */ new Map();
|
|
39532
|
+
allOptions.value.forEach((option, index) => {
|
|
39533
|
+
valueMap.set(getValueKey(getValue(option)), { option, index });
|
|
39534
|
+
});
|
|
39535
|
+
return valueMap;
|
|
39536
|
+
});
|
|
39454
39537
|
const filteredOptionsValueMap = computed$1(() => {
|
|
39455
39538
|
const valueMap = /* @__PURE__ */ new Map();
|
|
39456
39539
|
filteredOptions.value.forEach((option, index) => {
|
|
@@ -39780,15 +39863,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
39780
39863
|
return getValueKey(item) === getValueKey(props.modelValue);
|
|
39781
39864
|
});
|
|
39782
39865
|
} else {
|
|
39783
|
-
|
|
39784
|
-
states.hoveringIndex = Math.min(...props.modelValue.map((selected) => {
|
|
39785
|
-
return filteredOptions.value.findIndex((item) => {
|
|
39786
|
-
return getValue(item) === selected;
|
|
39787
|
-
});
|
|
39788
|
-
}));
|
|
39789
|
-
} else {
|
|
39790
|
-
states.hoveringIndex = -1;
|
|
39791
|
-
}
|
|
39866
|
+
states.hoveringIndex = filteredOptions.value.findIndex((item) => props.modelValue.some((modelValue) => getValueKey(modelValue) === getValueKey(item)));
|
|
39792
39867
|
}
|
|
39793
39868
|
};
|
|
39794
39869
|
const onInput = (event) => {
|
|
@@ -39818,8 +39893,8 @@ const useSelect$1 = (props, emit) => {
|
|
|
39818
39893
|
};
|
|
39819
39894
|
const getOption = (value) => {
|
|
39820
39895
|
const selectValue = getValueKey(value);
|
|
39821
|
-
if (
|
|
39822
|
-
const { option } =
|
|
39896
|
+
if (allOptionsValueMap.value.has(selectValue)) {
|
|
39897
|
+
const { option } = allOptionsValueMap.value.get(selectValue);
|
|
39823
39898
|
return option;
|
|
39824
39899
|
}
|
|
39825
39900
|
return {
|
|
@@ -42140,18 +42215,6 @@ const switchProps = buildProps({
|
|
|
42140
42215
|
type: [Boolean, String, Number],
|
|
42141
42216
|
default: false
|
|
42142
42217
|
},
|
|
42143
|
-
activeColor: {
|
|
42144
|
-
type: String,
|
|
42145
|
-
default: ""
|
|
42146
|
-
},
|
|
42147
|
-
inactiveColor: {
|
|
42148
|
-
type: String,
|
|
42149
|
-
default: ""
|
|
42150
|
-
},
|
|
42151
|
-
borderColor: {
|
|
42152
|
-
type: String,
|
|
42153
|
-
default: ""
|
|
42154
|
-
},
|
|
42155
42218
|
name: {
|
|
42156
42219
|
type: String,
|
|
42157
42220
|
default: ""
|
|
@@ -42167,10 +42230,6 @@ const switchProps = buildProps({
|
|
|
42167
42230
|
tabindex: {
|
|
42168
42231
|
type: [String, Number]
|
|
42169
42232
|
},
|
|
42170
|
-
value: {
|
|
42171
|
-
type: [Boolean, String, Number],
|
|
42172
|
-
default: false
|
|
42173
|
-
},
|
|
42174
42233
|
label: {
|
|
42175
42234
|
type: String,
|
|
42176
42235
|
default: void 0
|
|
@@ -42197,31 +42256,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
42197
42256
|
emits: switchEmits,
|
|
42198
42257
|
setup(__props, { expose, emit }) {
|
|
42199
42258
|
const props = __props;
|
|
42200
|
-
const vm = getCurrentInstance();
|
|
42201
42259
|
const { formItem } = useFormItem();
|
|
42202
42260
|
const switchSize = useFormSize();
|
|
42203
42261
|
const ns = useNamespace("switch");
|
|
42204
|
-
const useBatchDeprecated = (list) => {
|
|
42205
|
-
list.forEach((param) => {
|
|
42206
|
-
useDeprecated({
|
|
42207
|
-
from: param[0],
|
|
42208
|
-
replacement: param[1],
|
|
42209
|
-
scope: COMPONENT_NAME$8,
|
|
42210
|
-
version: "2.3.0",
|
|
42211
|
-
ref: "https://element-plus.org/en-US/component/switch.html#attributes",
|
|
42212
|
-
type: "Attribute"
|
|
42213
|
-
}, computed$1(() => {
|
|
42214
|
-
var _a;
|
|
42215
|
-
return !!((_a = vm.vnode.props) == null ? void 0 : _a[param[2]]);
|
|
42216
|
-
}));
|
|
42217
|
-
});
|
|
42218
|
-
};
|
|
42219
|
-
useBatchDeprecated([
|
|
42220
|
-
['"value"', '"model-value" or "v-model"', "value"],
|
|
42221
|
-
['"active-color"', "CSS var `--el-switch-on-color`", "activeColor"],
|
|
42222
|
-
['"inactive-color"', "CSS var `--el-switch-off-color`", "inactiveColor"],
|
|
42223
|
-
['"border-color"', "CSS var `--el-switch-border-color`", "borderColor"]
|
|
42224
|
-
]);
|
|
42225
42262
|
const { inputId } = useFormItemInputId(props, {
|
|
42226
42263
|
formItemContext: formItem
|
|
42227
42264
|
});
|
|
@@ -42251,11 +42288,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
42251
42288
|
watch(() => props.modelValue, () => {
|
|
42252
42289
|
isControlled.value = true;
|
|
42253
42290
|
});
|
|
42254
|
-
watch(() => props.value, () => {
|
|
42255
|
-
isControlled.value = false;
|
|
42256
|
-
});
|
|
42257
42291
|
const actualValue = computed$1(() => {
|
|
42258
|
-
return isControlled.value ? props.modelValue :
|
|
42292
|
+
return isControlled.value ? props.modelValue : false;
|
|
42259
42293
|
});
|
|
42260
42294
|
const checked = computed$1(() => actualValue.value === props.activeValue);
|
|
42261
42295
|
if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
|
|
@@ -42306,13 +42340,6 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
42306
42340
|
handleChange();
|
|
42307
42341
|
}
|
|
42308
42342
|
};
|
|
42309
|
-
const styles = computed$1(() => {
|
|
42310
|
-
return ns.cssVarBlock({
|
|
42311
|
-
...props.activeColor ? { "on-color": props.activeColor } : null,
|
|
42312
|
-
...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
|
|
42313
|
-
...props.borderColor ? { "border-color": props.borderColor } : null
|
|
42314
|
-
});
|
|
42315
|
-
});
|
|
42316
42343
|
const focus = () => {
|
|
42317
42344
|
var _a, _b;
|
|
42318
42345
|
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
@@ -42327,7 +42354,6 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
42327
42354
|
return (_ctx, _cache) => {
|
|
42328
42355
|
return openBlock(), createElementBlock("div", {
|
|
42329
42356
|
class: normalizeClass(unref(switchKls)),
|
|
42330
|
-
style: normalizeStyle(unref(styles)),
|
|
42331
42357
|
onClick: withModifiers(switchValue, ["prevent"])
|
|
42332
42358
|
}, [
|
|
42333
42359
|
createElementVNode("input", {
|
|
@@ -42430,7 +42456,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
42430
42456
|
"aria-hidden": !unref(checked)
|
|
42431
42457
|
}, toDisplayString(_ctx.activeText), 9, _hoisted_5$1)) : createCommentVNode("v-if", true)
|
|
42432
42458
|
], 2)) : createCommentVNode("v-if", true)
|
|
42433
|
-
],
|
|
42459
|
+
], 10, _hoisted_1$g);
|
|
42434
42460
|
};
|
|
42435
42461
|
}
|
|
42436
42462
|
});
|
|
@@ -49344,9 +49370,6 @@ const tabsProps = buildProps({
|
|
|
49344
49370
|
values: ["card", "border-card", ""],
|
|
49345
49371
|
default: ""
|
|
49346
49372
|
},
|
|
49347
|
-
activeName: {
|
|
49348
|
-
type: [String, Number]
|
|
49349
|
-
},
|
|
49350
49373
|
closable: Boolean,
|
|
49351
49374
|
addable: Boolean,
|
|
49352
49375
|
modelValue: {
|
|
@@ -49382,7 +49405,7 @@ const Tabs = defineComponent({
|
|
|
49382
49405
|
slots,
|
|
49383
49406
|
expose
|
|
49384
49407
|
}) {
|
|
49385
|
-
var _a
|
|
49408
|
+
var _a;
|
|
49386
49409
|
const ns = useNamespace("tabs");
|
|
49387
49410
|
const {
|
|
49388
49411
|
children: panes,
|
|
@@ -49390,9 +49413,9 @@ const Tabs = defineComponent({
|
|
|
49390
49413
|
removeChild: unregisterPane
|
|
49391
49414
|
} = useOrderedChildren(getCurrentInstance(), "ElTabPane");
|
|
49392
49415
|
const nav$ = ref();
|
|
49393
|
-
const currentName = ref((
|
|
49416
|
+
const currentName = ref((_a = props.modelValue) != null ? _a : "0");
|
|
49394
49417
|
const setCurrentName = async (value, trigger = false) => {
|
|
49395
|
-
var _a2,
|
|
49418
|
+
var _a2, _b, _c;
|
|
49396
49419
|
if (currentName.value === value || isUndefined(value))
|
|
49397
49420
|
return;
|
|
49398
49421
|
try {
|
|
@@ -49403,7 +49426,7 @@ const Tabs = defineComponent({
|
|
|
49403
49426
|
emit(UPDATE_MODEL_EVENT, value);
|
|
49404
49427
|
emit("tabChange", value);
|
|
49405
49428
|
}
|
|
49406
|
-
(_c = (
|
|
49429
|
+
(_c = (_b = nav$.value) == null ? void 0 : _b.removeFocus) == null ? void 0 : _c.call(_b);
|
|
49407
49430
|
}
|
|
49408
49431
|
} catch (e) {
|
|
49409
49432
|
}
|
|
@@ -49425,23 +49448,6 @@ const Tabs = defineComponent({
|
|
|
49425
49448
|
emit("edit", void 0, "add");
|
|
49426
49449
|
emit("tabAdd");
|
|
49427
49450
|
};
|
|
49428
|
-
useDeprecated({
|
|
49429
|
-
from: '"activeName"',
|
|
49430
|
-
replacement: '"model-value" or "v-model"',
|
|
49431
|
-
scope: "ElTabs",
|
|
49432
|
-
version: "2.3.0",
|
|
49433
|
-
ref: "https://element-plus.org/en-US/component/tabs.html#attributes",
|
|
49434
|
-
type: "Attribute"
|
|
49435
|
-
}, computed$1(() => !!props.activeName));
|
|
49436
|
-
useDeprecated({
|
|
49437
|
-
from: '"addIcon"',
|
|
49438
|
-
replacement: '"add-icon"',
|
|
49439
|
-
scope: "ElTabs",
|
|
49440
|
-
version: "2.6.0",
|
|
49441
|
-
ref: "https://element-plus.org/en-US/component/tabs.html#slots",
|
|
49442
|
-
type: "Slot"
|
|
49443
|
-
}, computed$1(() => !!slots.addIcon));
|
|
49444
|
-
watch(() => props.activeName, (modelValue) => setCurrentName(modelValue));
|
|
49445
49451
|
watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
49446
49452
|
watch(currentName, async () => {
|
|
49447
49453
|
var _a2;
|
|
@@ -49458,8 +49464,7 @@ const Tabs = defineComponent({
|
|
|
49458
49464
|
currentName
|
|
49459
49465
|
});
|
|
49460
49466
|
return () => {
|
|
49461
|
-
const addSlot = slots["add-icon"]
|
|
49462
|
-
const isCamelCase = addSlot && slots["addIcon"];
|
|
49467
|
+
const addSlot = slots["add-icon"];
|
|
49463
49468
|
const newButton = props.editable || props.addable ? createVNode("span", {
|
|
49464
49469
|
"class": ns.e("new-tab"),
|
|
49465
49470
|
"tabindex": "0",
|
|
@@ -49468,7 +49473,7 @@ const Tabs = defineComponent({
|
|
|
49468
49473
|
if (ev.code === EVENT_CODE.enter)
|
|
49469
49474
|
handleTabAdd();
|
|
49470
49475
|
}
|
|
49471
|
-
}, [addSlot ? renderSlot(slots,
|
|
49476
|
+
}, [addSlot ? renderSlot(slots, "add-icon") : createVNode(ElIcon, {
|
|
49472
49477
|
"class": ns.is("icon-plus")
|
|
49473
49478
|
}, {
|
|
49474
49479
|
default: () => [createVNode(plus_default, null, null)]
|
|
@@ -52713,10 +52718,19 @@ const _Tree = Tree;
|
|
|
52713
52718
|
const ElTree = _Tree;
|
|
52714
52719
|
|
|
52715
52720
|
const useSelect = (props, { attrs, emit }, {
|
|
52721
|
+
select,
|
|
52716
52722
|
tree,
|
|
52717
52723
|
key
|
|
52718
52724
|
}) => {
|
|
52719
52725
|
const ns = useNamespace("tree-select");
|
|
52726
|
+
watch(() => props.data, () => {
|
|
52727
|
+
if (props.filterable) {
|
|
52728
|
+
nextTick(() => {
|
|
52729
|
+
var _a, _b;
|
|
52730
|
+
(_b = tree.value) == null ? void 0 : _b.filter((_a = select.value) == null ? void 0 : _a.states.inputValue);
|
|
52731
|
+
});
|
|
52732
|
+
}
|
|
52733
|
+
}, { flush: "post" });
|
|
52720
52734
|
const result = {
|
|
52721
52735
|
...pick(toRefs(props), Object.keys(ElSelect.props)),
|
|
52722
52736
|
...attrs,
|
|
@@ -52729,18 +52743,13 @@ const useSelect = (props, { attrs, emit }, {
|
|
|
52729
52743
|
return classes.join(" ");
|
|
52730
52744
|
}),
|
|
52731
52745
|
filterMethod: (keyword = "") => {
|
|
52732
|
-
|
|
52746
|
+
var _a;
|
|
52747
|
+
if (props.filterMethod) {
|
|
52733
52748
|
props.filterMethod(keyword);
|
|
52734
|
-
|
|
52735
|
-
|
|
52749
|
+
} else if (props.remoteMethod) {
|
|
52750
|
+
props.remoteMethod(keyword);
|
|
52751
|
+
} else {
|
|
52736
52752
|
(_a = tree.value) == null ? void 0 : _a.filter(keyword);
|
|
52737
|
-
});
|
|
52738
|
-
},
|
|
52739
|
-
onVisibleChange: (visible) => {
|
|
52740
|
-
var _a;
|
|
52741
|
-
(_a = attrs.onVisibleChange) == null ? void 0 : _a.call(attrs, visible);
|
|
52742
|
-
if (props.filterable && visible) {
|
|
52743
|
-
result.filterMethod();
|
|
52744
52753
|
}
|
|
52745
52754
|
}
|
|
52746
52755
|
};
|
|
@@ -52855,9 +52864,6 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
52855
52864
|
}, (data) => getNodeValByProp("children", data));
|
|
52856
52865
|
return options;
|
|
52857
52866
|
});
|
|
52858
|
-
const cacheOptionsMap = computed$1(() => {
|
|
52859
|
-
return cacheOptions.value.reduce((prev, next) => ({ ...prev, [next.value]: next }), {});
|
|
52860
|
-
});
|
|
52861
52867
|
return {
|
|
52862
52868
|
...pick(toRefs(props), Object.keys(_Tree.props)),
|
|
52863
52869
|
...attrs,
|
|
@@ -52903,14 +52909,16 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
52903
52909
|
if (!props.showCheckbox)
|
|
52904
52910
|
return;
|
|
52905
52911
|
const dataValue = getNodeValByProp("value", data);
|
|
52912
|
+
const dataMap = {};
|
|
52913
|
+
treeEach([tree.value.store.root], (node) => dataMap[node.key] = node, (node) => node.childNodes);
|
|
52906
52914
|
const uncachedCheckedKeys = params.checkedKeys;
|
|
52907
|
-
const cachedKeys = props.multiple ? toValidArray(props.modelValue).filter((item) => item in
|
|
52908
|
-
const checkedKeys =
|
|
52915
|
+
const cachedKeys = props.multiple ? toValidArray(props.modelValue).filter((item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item)) : [];
|
|
52916
|
+
const checkedKeys = cachedKeys.concat(uncachedCheckedKeys);
|
|
52909
52917
|
if (props.checkStrictly) {
|
|
52910
52918
|
emit(UPDATE_MODEL_EVENT, props.multiple ? checkedKeys : checkedKeys.includes(dataValue) ? dataValue : void 0);
|
|
52911
52919
|
} else {
|
|
52912
52920
|
if (props.multiple) {
|
|
52913
|
-
emit(UPDATE_MODEL_EVENT, tree.value.getCheckedKeys(true));
|
|
52921
|
+
emit(UPDATE_MODEL_EVENT, cachedKeys.concat(tree.value.getCheckedKeys(true)));
|
|
52914
52922
|
} else {
|
|
52915
52923
|
const firstLeaf = treeFind([data], (data2) => !isValidArray(getNodeValByProp("children", data2)) && !getNodeValByProp("disabled", data2), (data2) => getNodeValByProp("children", data2));
|
|
52916
52924
|
const firstLeafKey = firstLeaf ? getNodeValByProp("value", firstLeaf) : void 0;
|