@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20240229 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -11642,7 +11642,7 @@
|
|
|
11642
11642
|
|
|
11643
11643
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
11644
11644
|
|
|
11645
|
-
const version$1 = "0.0.
|
|
11645
|
+
const version$1 = "0.0.20240229";
|
|
11646
11646
|
|
|
11647
11647
|
const makeInstaller = (components = []) => {
|
|
11648
11648
|
const install = (app, options) => {
|
|
@@ -20898,7 +20898,6 @@
|
|
|
20898
20898
|
];
|
|
20899
20899
|
};
|
|
20900
20900
|
const useCalendar = (props, emit, componentName) => {
|
|
20901
|
-
const slots = vue.useSlots();
|
|
20902
20901
|
const { lang } = useLocale();
|
|
20903
20902
|
const selectedDay = vue.ref();
|
|
20904
20903
|
const now = dayjs().locale(lang.value);
|
|
@@ -20976,14 +20975,6 @@
|
|
|
20976
20975
|
pickDay(day);
|
|
20977
20976
|
}
|
|
20978
20977
|
};
|
|
20979
|
-
useDeprecated({
|
|
20980
|
-
from: '"dateCell"',
|
|
20981
|
-
replacement: '"date-cell"',
|
|
20982
|
-
scope: "ElCalendar",
|
|
20983
|
-
version: "2.3.0",
|
|
20984
|
-
ref: "https://element-plus.org/en-US/component/calendar.html#slots",
|
|
20985
|
-
type: "Slot"
|
|
20986
|
-
}, vue.computed(() => !!slots.dateCell));
|
|
20987
20978
|
return {
|
|
20988
20979
|
calculateValidatedDateRange,
|
|
20989
20980
|
date,
|
|
@@ -21098,10 +21089,10 @@
|
|
|
21098
21089
|
"selected-day": vue.unref(realSelectedDay),
|
|
21099
21090
|
onPick: vue.unref(pickDay)
|
|
21100
21091
|
}, vue.createSlots({ _: 2 }, [
|
|
21101
|
-
_ctx.$slots["date-cell"]
|
|
21092
|
+
_ctx.$slots["date-cell"] ? {
|
|
21102
21093
|
name: "date-cell",
|
|
21103
21094
|
fn: vue.withCtx((data) => [
|
|
21104
|
-
|
|
21095
|
+
vue.renderSlot(_ctx.$slots, "date-cell", vue.normalizeProps(vue.guardReactiveProps(data)))
|
|
21105
21096
|
])
|
|
21106
21097
|
} : void 0
|
|
21107
21098
|
]), 1032, ["date", "selected-day", "onPick"])
|
|
@@ -21118,10 +21109,10 @@
|
|
|
21118
21109
|
"hide-header": index !== 0,
|
|
21119
21110
|
onPick: vue.unref(pickDay)
|
|
21120
21111
|
}, vue.createSlots({ _: 2 }, [
|
|
21121
|
-
_ctx.$slots["date-cell"]
|
|
21112
|
+
_ctx.$slots["date-cell"] ? {
|
|
21122
21113
|
name: "date-cell",
|
|
21123
21114
|
fn: vue.withCtx((data) => [
|
|
21124
|
-
|
|
21115
|
+
vue.renderSlot(_ctx.$slots, "date-cell", vue.normalizeProps(vue.guardReactiveProps(data)))
|
|
21125
21116
|
])
|
|
21126
21117
|
} : void 0
|
|
21127
21118
|
]), 1032, ["date", "selected-day", "range", "hide-header", "onPick"]);
|
|
@@ -21247,6 +21238,10 @@
|
|
|
21247
21238
|
pauseOnHover: {
|
|
21248
21239
|
type: Boolean,
|
|
21249
21240
|
default: true
|
|
21241
|
+
},
|
|
21242
|
+
motionBlur: {
|
|
21243
|
+
type: Boolean,
|
|
21244
|
+
default: false
|
|
21250
21245
|
}
|
|
21251
21246
|
});
|
|
21252
21247
|
const carouselEmits = {
|
|
@@ -21269,6 +21264,8 @@
|
|
|
21269
21264
|
const root = vue.ref();
|
|
21270
21265
|
const containerHeight = vue.ref(0);
|
|
21271
21266
|
const isItemsTwoLength = vue.ref(true);
|
|
21267
|
+
const isFirstCall = vue.ref(true);
|
|
21268
|
+
const isTransitioning = vue.ref(false);
|
|
21272
21269
|
const arrowDisplay = vue.computed(() => props.arrow !== "never" && !vue.unref(isVertical));
|
|
21273
21270
|
const hasLabel = vue.computed(() => {
|
|
21274
21271
|
return items.value.some((item) => item.props.label.toString().length > 0);
|
|
@@ -21309,6 +21306,10 @@
|
|
|
21309
21306
|
timer.value = setInterval(() => playSlides(), props.interval);
|
|
21310
21307
|
}
|
|
21311
21308
|
const playSlides = () => {
|
|
21309
|
+
if (!isFirstCall.value) {
|
|
21310
|
+
isTransitioning.value = true;
|
|
21311
|
+
}
|
|
21312
|
+
isFirstCall.value = false;
|
|
21312
21313
|
if (activeIndex.value < items.value.length - 1) {
|
|
21313
21314
|
activeIndex.value = activeIndex.value + 1;
|
|
21314
21315
|
} else if (props.loop) {
|
|
@@ -21316,6 +21317,10 @@
|
|
|
21316
21317
|
}
|
|
21317
21318
|
};
|
|
21318
21319
|
function setActiveItem(index) {
|
|
21320
|
+
if (!isFirstCall.value) {
|
|
21321
|
+
isTransitioning.value = true;
|
|
21322
|
+
}
|
|
21323
|
+
isFirstCall.value = false;
|
|
21319
21324
|
if (isString$1(index)) {
|
|
21320
21325
|
const filteredItems = items.value.filter((item) => item.props.name === index);
|
|
21321
21326
|
if (filteredItems.length > 0) {
|
|
@@ -21375,6 +21380,9 @@
|
|
|
21375
21380
|
hover.value = false;
|
|
21376
21381
|
startTimer();
|
|
21377
21382
|
}
|
|
21383
|
+
function handleTransitionEnd() {
|
|
21384
|
+
isTransitioning.value = false;
|
|
21385
|
+
}
|
|
21378
21386
|
function handleButtonEnter(arrow) {
|
|
21379
21387
|
if (vue.unref(isVertical))
|
|
21380
21388
|
return;
|
|
@@ -21392,11 +21400,19 @@
|
|
|
21392
21400
|
});
|
|
21393
21401
|
}
|
|
21394
21402
|
function handleIndicatorClick(index) {
|
|
21403
|
+
if (index !== activeIndex.value) {
|
|
21404
|
+
if (!isFirstCall.value) {
|
|
21405
|
+
isTransitioning.value = true;
|
|
21406
|
+
}
|
|
21407
|
+
}
|
|
21395
21408
|
activeIndex.value = index;
|
|
21396
21409
|
}
|
|
21397
21410
|
function handleIndicatorHover(index) {
|
|
21398
21411
|
if (props.trigger === "hover" && index !== activeIndex.value) {
|
|
21399
21412
|
activeIndex.value = index;
|
|
21413
|
+
if (!isFirstCall.value) {
|
|
21414
|
+
isTransitioning.value = true;
|
|
21415
|
+
}
|
|
21400
21416
|
}
|
|
21401
21417
|
}
|
|
21402
21418
|
function prev() {
|
|
@@ -21487,11 +21503,13 @@
|
|
|
21487
21503
|
hasLabel,
|
|
21488
21504
|
hover,
|
|
21489
21505
|
isCardType,
|
|
21506
|
+
isTransitioning,
|
|
21490
21507
|
items,
|
|
21491
21508
|
isVertical,
|
|
21492
21509
|
containerStyle,
|
|
21493
21510
|
isItemsTwoLength,
|
|
21494
21511
|
handleButtonEnter,
|
|
21512
|
+
handleTransitionEnd,
|
|
21495
21513
|
handleButtonLeave,
|
|
21496
21514
|
handleIndicatorClick,
|
|
21497
21515
|
handleMouseEnter,
|
|
@@ -21511,6 +21529,29 @@
|
|
|
21511
21529
|
const _hoisted_3$h = ["onMouseenter", "onClick"];
|
|
21512
21530
|
const _hoisted_4$b = ["aria-label"];
|
|
21513
21531
|
const _hoisted_5$7 = { key: 0 };
|
|
21532
|
+
const _hoisted_6$4 = {
|
|
21533
|
+
key: 3,
|
|
21534
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21535
|
+
version: "1.1",
|
|
21536
|
+
style: { "display": "none" }
|
|
21537
|
+
};
|
|
21538
|
+
const _hoisted_7$2 = /* @__PURE__ */ vue.createElementVNode("defs", null, [
|
|
21539
|
+
/* @__PURE__ */ vue.createElementVNode("filter", { id: "elCarouselHorizontal" }, [
|
|
21540
|
+
/* @__PURE__ */ vue.createElementVNode("feGaussianBlur", {
|
|
21541
|
+
in: "SourceGraphic",
|
|
21542
|
+
stdDeviation: "12,0"
|
|
21543
|
+
})
|
|
21544
|
+
]),
|
|
21545
|
+
/* @__PURE__ */ vue.createElementVNode("filter", { id: "elCarouselVertical" }, [
|
|
21546
|
+
/* @__PURE__ */ vue.createElementVNode("feGaussianBlur", {
|
|
21547
|
+
in: "SourceGraphic",
|
|
21548
|
+
stdDeviation: "0,10"
|
|
21549
|
+
})
|
|
21550
|
+
])
|
|
21551
|
+
], -1);
|
|
21552
|
+
const _hoisted_8$2 = [
|
|
21553
|
+
_hoisted_7$2
|
|
21554
|
+
];
|
|
21514
21555
|
const COMPONENT_NAME$f = "ElCarousel";
|
|
21515
21556
|
const __default__$1k = vue.defineComponent({
|
|
21516
21557
|
name: COMPONENT_NAME$f
|
|
@@ -21533,9 +21574,11 @@
|
|
|
21533
21574
|
containerStyle,
|
|
21534
21575
|
handleButtonEnter,
|
|
21535
21576
|
handleButtonLeave,
|
|
21577
|
+
isTransitioning,
|
|
21536
21578
|
handleIndicatorClick,
|
|
21537
21579
|
handleMouseEnter,
|
|
21538
21580
|
handleMouseLeave,
|
|
21581
|
+
handleTransitionEnd,
|
|
21539
21582
|
setActiveItem,
|
|
21540
21583
|
prev,
|
|
21541
21584
|
next,
|
|
@@ -21553,6 +21596,13 @@
|
|
|
21553
21596
|
}
|
|
21554
21597
|
return classes;
|
|
21555
21598
|
});
|
|
21599
|
+
const carouselContainer = vue.computed(() => {
|
|
21600
|
+
const classes = [ns.e("container")];
|
|
21601
|
+
if (props.motionBlur && vue.unref(isTransitioning)) {
|
|
21602
|
+
classes.push(vue.unref(isVertical) ? `${ns.namespace.value}-transitioning-vertical` : `${ns.namespace.value}-transitioning`);
|
|
21603
|
+
}
|
|
21604
|
+
return classes;
|
|
21605
|
+
});
|
|
21556
21606
|
const indicatorsClasses = vue.computed(() => {
|
|
21557
21607
|
const classes = [ns.e("indicators"), ns.em("indicators", props.direction)];
|
|
21558
21608
|
if (vue.unref(hasLabel)) {
|
|
@@ -21576,76 +21626,77 @@
|
|
|
21576
21626
|
ref_key: "root",
|
|
21577
21627
|
ref: root,
|
|
21578
21628
|
class: vue.normalizeClass(vue.unref(carouselClasses)),
|
|
21579
|
-
onMouseenter: _cache[
|
|
21580
|
-
onMouseleave: _cache[
|
|
21629
|
+
onMouseenter: _cache[7] || (_cache[7] = vue.withModifiers((...args) => vue.unref(handleMouseEnter) && vue.unref(handleMouseEnter)(...args), ["stop"])),
|
|
21630
|
+
onMouseleave: _cache[8] || (_cache[8] = vue.withModifiers((...args) => vue.unref(handleMouseLeave) && vue.unref(handleMouseLeave)(...args), ["stop"]))
|
|
21581
21631
|
}, [
|
|
21632
|
+
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
21633
|
+
key: 0,
|
|
21634
|
+
name: "carousel-arrow-left",
|
|
21635
|
+
persisted: ""
|
|
21636
|
+
}, {
|
|
21637
|
+
default: vue.withCtx(() => [
|
|
21638
|
+
vue.withDirectives(vue.createElementVNode("button", {
|
|
21639
|
+
type: "button",
|
|
21640
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
|
|
21641
|
+
"aria-label": vue.unref(t)("el.carousel.leftArrow"),
|
|
21642
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => vue.unref(handleButtonEnter)("left")),
|
|
21643
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => vue.unref(handleButtonLeave) && vue.unref(handleButtonLeave)(...args)),
|
|
21644
|
+
onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"]))
|
|
21645
|
+
}, [
|
|
21646
|
+
vue.createVNode(vue.unref(ElIcon), null, {
|
|
21647
|
+
default: vue.withCtx(() => [
|
|
21648
|
+
vue.createVNode(vue.unref(arrow_left_default))
|
|
21649
|
+
]),
|
|
21650
|
+
_: 1
|
|
21651
|
+
})
|
|
21652
|
+
], 42, _hoisted_1$Y), [
|
|
21653
|
+
[
|
|
21654
|
+
vue.vShow,
|
|
21655
|
+
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
|
|
21656
|
+
]
|
|
21657
|
+
])
|
|
21658
|
+
]),
|
|
21659
|
+
_: 1
|
|
21660
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
21661
|
+
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
21662
|
+
key: 1,
|
|
21663
|
+
name: "carousel-arrow-right",
|
|
21664
|
+
persisted: ""
|
|
21665
|
+
}, {
|
|
21666
|
+
default: vue.withCtx(() => [
|
|
21667
|
+
vue.withDirectives(vue.createElementVNode("button", {
|
|
21668
|
+
type: "button",
|
|
21669
|
+
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
|
|
21670
|
+
"aria-label": vue.unref(t)("el.carousel.rightArrow"),
|
|
21671
|
+
onMouseenter: _cache[3] || (_cache[3] = ($event) => vue.unref(handleButtonEnter)("right")),
|
|
21672
|
+
onMouseleave: _cache[4] || (_cache[4] = (...args) => vue.unref(handleButtonLeave) && vue.unref(handleButtonLeave)(...args)),
|
|
21673
|
+
onClick: _cache[5] || (_cache[5] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"]))
|
|
21674
|
+
}, [
|
|
21675
|
+
vue.createVNode(vue.unref(ElIcon), null, {
|
|
21676
|
+
default: vue.withCtx(() => [
|
|
21677
|
+
vue.createVNode(vue.unref(arrow_right_default))
|
|
21678
|
+
]),
|
|
21679
|
+
_: 1
|
|
21680
|
+
})
|
|
21681
|
+
], 42, _hoisted_2$C), [
|
|
21682
|
+
[
|
|
21683
|
+
vue.vShow,
|
|
21684
|
+
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
|
|
21685
|
+
]
|
|
21686
|
+
])
|
|
21687
|
+
]),
|
|
21688
|
+
_: 1
|
|
21689
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
21582
21690
|
vue.createElementVNode("div", {
|
|
21583
|
-
class: vue.normalizeClass(vue.unref(
|
|
21584
|
-
style: vue.normalizeStyle(vue.unref(containerStyle))
|
|
21691
|
+
class: vue.normalizeClass(vue.unref(carouselContainer)),
|
|
21692
|
+
style: vue.normalizeStyle(vue.unref(containerStyle)),
|
|
21693
|
+
onTransitionend: _cache[6] || (_cache[6] = (...args) => vue.unref(handleTransitionEnd) && vue.unref(handleTransitionEnd)(...args))
|
|
21585
21694
|
}, [
|
|
21586
|
-
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
21587
|
-
key: 0,
|
|
21588
|
-
name: "carousel-arrow-left",
|
|
21589
|
-
persisted: ""
|
|
21590
|
-
}, {
|
|
21591
|
-
default: vue.withCtx(() => [
|
|
21592
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
|
21593
|
-
type: "button",
|
|
21594
|
-
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "left")]),
|
|
21595
|
-
"aria-label": vue.unref(t)("el.carousel.leftArrow"),
|
|
21596
|
-
onMouseenter: _cache[0] || (_cache[0] = ($event) => vue.unref(handleButtonEnter)("left")),
|
|
21597
|
-
onMouseleave: _cache[1] || (_cache[1] = (...args) => vue.unref(handleButtonLeave) && vue.unref(handleButtonLeave)(...args)),
|
|
21598
|
-
onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) - 1), ["stop"]))
|
|
21599
|
-
}, [
|
|
21600
|
-
vue.createVNode(vue.unref(ElIcon), null, {
|
|
21601
|
-
default: vue.withCtx(() => [
|
|
21602
|
-
vue.createVNode(vue.unref(arrow_left_default))
|
|
21603
|
-
]),
|
|
21604
|
-
_: 1
|
|
21605
|
-
})
|
|
21606
|
-
], 42, _hoisted_1$Y), [
|
|
21607
|
-
[
|
|
21608
|
-
vue.vShow,
|
|
21609
|
-
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) > 0)
|
|
21610
|
-
]
|
|
21611
|
-
])
|
|
21612
|
-
]),
|
|
21613
|
-
_: 1
|
|
21614
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
21615
|
-
vue.unref(arrowDisplay) ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
21616
|
-
key: 1,
|
|
21617
|
-
name: "carousel-arrow-right",
|
|
21618
|
-
persisted: ""
|
|
21619
|
-
}, {
|
|
21620
|
-
default: vue.withCtx(() => [
|
|
21621
|
-
vue.withDirectives(vue.createElementVNode("button", {
|
|
21622
|
-
type: "button",
|
|
21623
|
-
class: vue.normalizeClass([vue.unref(ns).e("arrow"), vue.unref(ns).em("arrow", "right")]),
|
|
21624
|
-
"aria-label": vue.unref(t)("el.carousel.rightArrow"),
|
|
21625
|
-
onMouseenter: _cache[3] || (_cache[3] = ($event) => vue.unref(handleButtonEnter)("right")),
|
|
21626
|
-
onMouseleave: _cache[4] || (_cache[4] = (...args) => vue.unref(handleButtonLeave) && vue.unref(handleButtonLeave)(...args)),
|
|
21627
|
-
onClick: _cache[5] || (_cache[5] = vue.withModifiers(($event) => vue.unref(throttledArrowClick)(vue.unref(activeIndex) + 1), ["stop"]))
|
|
21628
|
-
}, [
|
|
21629
|
-
vue.createVNode(vue.unref(ElIcon), null, {
|
|
21630
|
-
default: vue.withCtx(() => [
|
|
21631
|
-
vue.createVNode(vue.unref(arrow_right_default))
|
|
21632
|
-
]),
|
|
21633
|
-
_: 1
|
|
21634
|
-
})
|
|
21635
|
-
], 42, _hoisted_2$C), [
|
|
21636
|
-
[
|
|
21637
|
-
vue.vShow,
|
|
21638
|
-
(_ctx.arrow === "always" || vue.unref(hover)) && (props.loop || vue.unref(activeIndex) < vue.unref(items).length - 1)
|
|
21639
|
-
]
|
|
21640
|
-
])
|
|
21641
|
-
]),
|
|
21642
|
-
_: 1
|
|
21643
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
21644
21695
|
vue.createVNode(vue.unref(PlaceholderItem)),
|
|
21645
21696
|
vue.renderSlot(_ctx.$slots, "default")
|
|
21646
|
-
],
|
|
21697
|
+
], 38),
|
|
21647
21698
|
_ctx.indicatorPosition !== "none" ? (vue.openBlock(), vue.createElementBlock("ul", {
|
|
21648
|
-
key:
|
|
21699
|
+
key: 2,
|
|
21649
21700
|
class: vue.normalizeClass(vue.unref(indicatorsClasses))
|
|
21650
21701
|
}, [
|
|
21651
21702
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(items), (item, index) => {
|
|
@@ -21669,7 +21720,8 @@
|
|
|
21669
21720
|
[vue.vShow, vue.unref(isTwoLengthShow)(index)]
|
|
21670
21721
|
]);
|
|
21671
21722
|
}), 128))
|
|
21672
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
21723
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
21724
|
+
props.motionBlur ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_6$4, _hoisted_8$2)) : vue.createCommentVNode("v-if", true)
|
|
21673
21725
|
], 34);
|
|
21674
21726
|
};
|
|
21675
21727
|
}
|
|
@@ -21875,6 +21927,10 @@
|
|
|
21875
21927
|
type: [String, Boolean, Number, Object],
|
|
21876
21928
|
default: void 0
|
|
21877
21929
|
},
|
|
21930
|
+
value: {
|
|
21931
|
+
type: [String, Boolean, Number, Object],
|
|
21932
|
+
default: void 0
|
|
21933
|
+
},
|
|
21878
21934
|
indeterminate: Boolean,
|
|
21879
21935
|
disabled: Boolean,
|
|
21880
21936
|
checked: Boolean,
|
|
@@ -21882,6 +21938,14 @@
|
|
|
21882
21938
|
type: String,
|
|
21883
21939
|
default: void 0
|
|
21884
21940
|
},
|
|
21941
|
+
trueValue: {
|
|
21942
|
+
type: [String, Number],
|
|
21943
|
+
default: void 0
|
|
21944
|
+
},
|
|
21945
|
+
falseValue: {
|
|
21946
|
+
type: [String, Number],
|
|
21947
|
+
default: void 0
|
|
21948
|
+
},
|
|
21885
21949
|
trueLabel: {
|
|
21886
21950
|
type: [String, Number],
|
|
21887
21951
|
default: void 0
|
|
@@ -21943,7 +22007,7 @@
|
|
|
21943
22007
|
const { emit } = vue.getCurrentInstance();
|
|
21944
22008
|
function getLabeledValue(value) {
|
|
21945
22009
|
var _a, _b;
|
|
21946
|
-
return
|
|
22010
|
+
return [true, props.trueValue, props.trueLabel].includes(value) ? (_a = props.trueValue || props.trueLabel) != null ? _a : true : (_b = props.falseValue || props.falseLabel) != null ? _b : false;
|
|
21947
22011
|
}
|
|
21948
22012
|
function emitChangeEvent(checked, e) {
|
|
21949
22013
|
emit("change", getLabeledValue(checked), e);
|
|
@@ -21961,7 +22025,7 @@
|
|
|
21961
22025
|
const eventTargets = e.composedPath();
|
|
21962
22026
|
const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
|
|
21963
22027
|
if (!hasLabel) {
|
|
21964
|
-
model.value = getLabeledValue([false, props.falseLabel].includes(model.value));
|
|
22028
|
+
model.value = getLabeledValue([false, props.falseValue, props.falseLabel].includes(model.value));
|
|
21965
22029
|
await vue.nextTick();
|
|
21966
22030
|
emitChangeEvent(model.value, e);
|
|
21967
22031
|
}
|
|
@@ -22011,18 +22075,24 @@
|
|
|
22011
22075
|
const useCheckboxStatus = (props, slots, { model }) => {
|
|
22012
22076
|
const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
|
|
22013
22077
|
const isFocused = vue.ref(false);
|
|
22078
|
+
const actualValue = vue.computed(() => {
|
|
22079
|
+
if (!isPropAbsent(props.value)) {
|
|
22080
|
+
return props.value;
|
|
22081
|
+
}
|
|
22082
|
+
return props.label;
|
|
22083
|
+
});
|
|
22014
22084
|
const isChecked = vue.computed(() => {
|
|
22015
22085
|
const value = model.value;
|
|
22016
22086
|
if (isBoolean(value)) {
|
|
22017
22087
|
return value;
|
|
22018
22088
|
} else if (isArray$1(value)) {
|
|
22019
|
-
if (isObject$1(
|
|
22020
|
-
return value.map(vue.toRaw).some((o) => isEqual$1(o,
|
|
22089
|
+
if (isObject$1(actualValue.value)) {
|
|
22090
|
+
return value.map(vue.toRaw).some((o) => isEqual$1(o, actualValue.value));
|
|
22021
22091
|
} else {
|
|
22022
|
-
return value.map(vue.toRaw).includes(
|
|
22092
|
+
return value.map(vue.toRaw).includes(actualValue.value);
|
|
22023
22093
|
}
|
|
22024
22094
|
} else if (value !== null && value !== void 0) {
|
|
22025
|
-
return value === props.trueLabel;
|
|
22095
|
+
return value === props.trueValue || value === props.trueLabel;
|
|
22026
22096
|
} else {
|
|
22027
22097
|
return !!value;
|
|
22028
22098
|
}
|
|
@@ -22038,27 +22108,18 @@
|
|
|
22038
22108
|
return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
|
|
22039
22109
|
}));
|
|
22040
22110
|
const hasOwnLabel = vue.computed(() => {
|
|
22041
|
-
return !!slots.default || !
|
|
22111
|
+
return !!slots.default || !isPropAbsent(actualValue.value);
|
|
22042
22112
|
});
|
|
22043
22113
|
return {
|
|
22044
22114
|
checkboxButtonSize,
|
|
22045
22115
|
isChecked,
|
|
22046
22116
|
isFocused,
|
|
22047
22117
|
checkboxSize,
|
|
22048
|
-
hasOwnLabel
|
|
22118
|
+
hasOwnLabel,
|
|
22119
|
+
actualValue
|
|
22049
22120
|
};
|
|
22050
22121
|
};
|
|
22051
22122
|
|
|
22052
|
-
const setStoreValue = (props, { model }) => {
|
|
22053
|
-
function addToStore() {
|
|
22054
|
-
if (isArray$1(model.value) && !model.value.includes(props.label)) {
|
|
22055
|
-
model.value.push(props.label);
|
|
22056
|
-
} else {
|
|
22057
|
-
model.value = props.trueLabel || true;
|
|
22058
|
-
}
|
|
22059
|
-
}
|
|
22060
|
-
props.checked && addToStore();
|
|
22061
|
-
};
|
|
22062
22123
|
const useCheckbox = (props, slots) => {
|
|
22063
22124
|
const { formItem: elFormItem } = useFormItem();
|
|
22064
22125
|
const { model, isGroup, isLimitExceeded } = useCheckboxModel(props);
|
|
@@ -22067,7 +22128,8 @@
|
|
|
22067
22128
|
isChecked,
|
|
22068
22129
|
checkboxButtonSize,
|
|
22069
22130
|
checkboxSize,
|
|
22070
|
-
hasOwnLabel
|
|
22131
|
+
hasOwnLabel,
|
|
22132
|
+
actualValue
|
|
22071
22133
|
} = useCheckboxStatus(props, slots, { model });
|
|
22072
22134
|
const { isDisabled } = useCheckboxDisabled({ model, isChecked });
|
|
22073
22135
|
const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {
|
|
@@ -22082,7 +22144,38 @@
|
|
|
22082
22144
|
isDisabled,
|
|
22083
22145
|
isLabeledByFormItem
|
|
22084
22146
|
});
|
|
22085
|
-
setStoreValue(
|
|
22147
|
+
const setStoreValue = () => {
|
|
22148
|
+
function addToStore() {
|
|
22149
|
+
if (isArray$1(model.value) && !model.value.includes(actualValue.value)) {
|
|
22150
|
+
model.value.push(actualValue.value);
|
|
22151
|
+
} else {
|
|
22152
|
+
model.value = props.trueValue || props.trueLabel || true;
|
|
22153
|
+
}
|
|
22154
|
+
}
|
|
22155
|
+
props.checked && addToStore();
|
|
22156
|
+
};
|
|
22157
|
+
setStoreValue();
|
|
22158
|
+
useDeprecated({
|
|
22159
|
+
from: "label act as value",
|
|
22160
|
+
replacement: "value",
|
|
22161
|
+
version: "3.0.0",
|
|
22162
|
+
scope: "el-checkbox",
|
|
22163
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
22164
|
+
}, vue.computed(() => isGroup.value && isPropAbsent(props.value)));
|
|
22165
|
+
useDeprecated({
|
|
22166
|
+
from: "true-label",
|
|
22167
|
+
replacement: "true-value",
|
|
22168
|
+
version: "3.0.0",
|
|
22169
|
+
scope: "el-checkbox",
|
|
22170
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
22171
|
+
}, vue.computed(() => !!props.trueLabel));
|
|
22172
|
+
useDeprecated({
|
|
22173
|
+
from: "false-label",
|
|
22174
|
+
replacement: "false-value",
|
|
22175
|
+
version: "3.0.0",
|
|
22176
|
+
scope: "el-checkbox",
|
|
22177
|
+
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
|
22178
|
+
}, vue.computed(() => !!props.falseLabel));
|
|
22086
22179
|
return {
|
|
22087
22180
|
inputId,
|
|
22088
22181
|
isLabeledByFormItem,
|
|
@@ -22093,6 +22186,7 @@
|
|
|
22093
22186
|
checkboxSize,
|
|
22094
22187
|
hasOwnLabel,
|
|
22095
22188
|
model,
|
|
22189
|
+
actualValue,
|
|
22096
22190
|
handleChange,
|
|
22097
22191
|
onClickRoot
|
|
22098
22192
|
};
|
|
@@ -22119,6 +22213,7 @@
|
|
|
22119
22213
|
checkboxSize,
|
|
22120
22214
|
hasOwnLabel,
|
|
22121
22215
|
model,
|
|
22216
|
+
actualValue,
|
|
22122
22217
|
handleChange,
|
|
22123
22218
|
onClickRoot
|
|
22124
22219
|
} = useCheckbox(props, slots);
|
|
@@ -22151,7 +22246,7 @@
|
|
|
22151
22246
|
vue.createElementVNode("span", {
|
|
22152
22247
|
class: vue.normalizeClass(vue.unref(spanKls))
|
|
22153
22248
|
}, [
|
|
22154
|
-
_ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
22249
|
+
_ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
22155
22250
|
key: 0,
|
|
22156
22251
|
id: vue.unref(inputId),
|
|
22157
22252
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(model) ? model.value = $event : null),
|
|
@@ -22161,8 +22256,8 @@
|
|
|
22161
22256
|
name: _ctx.name,
|
|
22162
22257
|
tabindex: _ctx.tabindex,
|
|
22163
22258
|
disabled: vue.unref(isDisabled),
|
|
22164
|
-
"true-value": _ctx.trueLabel,
|
|
22165
|
-
"false-value": _ctx.falseLabel,
|
|
22259
|
+
"true-value": _ctx.trueValue || _ctx.trueLabel,
|
|
22260
|
+
"false-value": _ctx.falseValue || _ctx.falseLabel,
|
|
22166
22261
|
onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
22167
22262
|
onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
|
|
22168
22263
|
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
|
|
@@ -22178,7 +22273,7 @@
|
|
|
22178
22273
|
type: "checkbox",
|
|
22179
22274
|
indeterminate: _ctx.indeterminate,
|
|
22180
22275
|
disabled: vue.unref(isDisabled),
|
|
22181
|
-
value:
|
|
22276
|
+
value: vue.unref(actualValue),
|
|
22182
22277
|
name: _ctx.name,
|
|
22183
22278
|
tabindex: _ctx.tabindex,
|
|
22184
22279
|
onChange: _cache[6] || (_cache[6] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
@@ -22228,6 +22323,7 @@
|
|
|
22228
22323
|
isDisabled,
|
|
22229
22324
|
checkboxButtonSize,
|
|
22230
22325
|
model,
|
|
22326
|
+
actualValue,
|
|
22231
22327
|
handleChange
|
|
22232
22328
|
} = useCheckbox(props, slots);
|
|
22233
22329
|
const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
|
|
@@ -22255,7 +22351,7 @@
|
|
|
22255
22351
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
22256
22352
|
class: vue.normalizeClass(vue.unref(labelKls))
|
|
22257
22353
|
}, [
|
|
22258
|
-
_ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
22354
|
+
_ctx.trueValue || _ctx.falseValue || _ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
22259
22355
|
key: 0,
|
|
22260
22356
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(model) ? model.value = $event : null),
|
|
22261
22357
|
class: vue.normalizeClass(vue.unref(ns).be("button", "original")),
|
|
@@ -22263,8 +22359,8 @@
|
|
|
22263
22359
|
name: _ctx.name,
|
|
22264
22360
|
tabindex: _ctx.tabindex,
|
|
22265
22361
|
disabled: vue.unref(isDisabled),
|
|
22266
|
-
"true-value": _ctx.trueLabel,
|
|
22267
|
-
"false-value": _ctx.falseLabel,
|
|
22362
|
+
"true-value": _ctx.trueValue || _ctx.trueLabel,
|
|
22363
|
+
"false-value": _ctx.falseValue || _ctx.falseLabel,
|
|
22268
22364
|
onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
22269
22365
|
onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
|
|
22270
22366
|
onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false),
|
|
@@ -22280,7 +22376,7 @@
|
|
|
22280
22376
|
name: _ctx.name,
|
|
22281
22377
|
tabindex: _ctx.tabindex,
|
|
22282
22378
|
disabled: vue.unref(isDisabled),
|
|
22283
|
-
value:
|
|
22379
|
+
value: vue.unref(actualValue),
|
|
22284
22380
|
onChange: _cache[6] || (_cache[6] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
22285
22381
|
onFocus: _cache[7] || (_cache[7] = ($event) => isFocused.value = true),
|
|
22286
22382
|
onBlur: _cache[8] || (_cache[8] = ($event) => isFocused.value = false),
|
|
@@ -22402,23 +22498,27 @@
|
|
|
22402
22498
|
const ElCheckboxGroup$1 = withNoopInstall(CheckboxGroup);
|
|
22403
22499
|
|
|
22404
22500
|
const radioPropsBase = buildProps({
|
|
22501
|
+
modelValue: {
|
|
22502
|
+
type: [String, Number, Boolean],
|
|
22503
|
+
default: void 0
|
|
22504
|
+
},
|
|
22405
22505
|
size: useSizeProp,
|
|
22406
22506
|
disabled: Boolean,
|
|
22407
22507
|
label: {
|
|
22408
22508
|
type: [String, Number, Boolean],
|
|
22409
|
-
default:
|
|
22410
|
-
}
|
|
22411
|
-
|
|
22412
|
-
const radioProps = buildProps({
|
|
22413
|
-
...radioPropsBase,
|
|
22414
|
-
modelValue: {
|
|
22509
|
+
default: void 0
|
|
22510
|
+
},
|
|
22511
|
+
value: {
|
|
22415
22512
|
type: [String, Number, Boolean],
|
|
22416
|
-
default:
|
|
22513
|
+
default: void 0
|
|
22417
22514
|
},
|
|
22418
22515
|
name: {
|
|
22419
22516
|
type: String,
|
|
22420
|
-
default:
|
|
22421
|
-
}
|
|
22517
|
+
default: void 0
|
|
22518
|
+
}
|
|
22519
|
+
});
|
|
22520
|
+
const radioProps = buildProps({
|
|
22521
|
+
...radioPropsBase,
|
|
22422
22522
|
border: Boolean
|
|
22423
22523
|
});
|
|
22424
22524
|
const radioEmits = {
|
|
@@ -22432,6 +22532,12 @@
|
|
|
22432
22532
|
const radioRef = vue.ref();
|
|
22433
22533
|
const radioGroup = vue.inject(radioGroupKey, void 0);
|
|
22434
22534
|
const isGroup = vue.computed(() => !!radioGroup);
|
|
22535
|
+
const actualValue = vue.computed(() => {
|
|
22536
|
+
if (!isPropAbsent(props.value)) {
|
|
22537
|
+
return props.value;
|
|
22538
|
+
}
|
|
22539
|
+
return props.label;
|
|
22540
|
+
});
|
|
22435
22541
|
const modelValue = vue.computed({
|
|
22436
22542
|
get() {
|
|
22437
22543
|
return isGroup.value ? radioGroup.modelValue : props.modelValue;
|
|
@@ -22442,15 +22548,22 @@
|
|
|
22442
22548
|
} else {
|
|
22443
22549
|
emit && emit(UPDATE_MODEL_EVENT, val);
|
|
22444
22550
|
}
|
|
22445
|
-
radioRef.value.checked = props.modelValue ===
|
|
22551
|
+
radioRef.value.checked = props.modelValue === actualValue.value;
|
|
22446
22552
|
}
|
|
22447
22553
|
});
|
|
22448
22554
|
const size = useFormSize(vue.computed(() => radioGroup == null ? void 0 : radioGroup.size));
|
|
22449
22555
|
const disabled = useFormDisabled(vue.computed(() => radioGroup == null ? void 0 : radioGroup.disabled));
|
|
22450
22556
|
const focus = vue.ref(false);
|
|
22451
22557
|
const tabIndex = vue.computed(() => {
|
|
22452
|
-
return disabled.value || isGroup.value && modelValue.value !==
|
|
22558
|
+
return disabled.value || isGroup.value && modelValue.value !== actualValue.value ? -1 : 0;
|
|
22453
22559
|
});
|
|
22560
|
+
useDeprecated({
|
|
22561
|
+
from: "label act as value",
|
|
22562
|
+
replacement: "value",
|
|
22563
|
+
version: "3.0.0",
|
|
22564
|
+
scope: "el-radio",
|
|
22565
|
+
ref: "https://element-plus.org/en-US/component/radio.html"
|
|
22566
|
+
}, vue.computed(() => isGroup.value && isPropAbsent(props.value)));
|
|
22454
22567
|
return {
|
|
22455
22568
|
radioRef,
|
|
22456
22569
|
isGroup,
|
|
@@ -22459,7 +22572,8 @@
|
|
|
22459
22572
|
size,
|
|
22460
22573
|
disabled,
|
|
22461
22574
|
tabIndex,
|
|
22462
|
-
modelValue
|
|
22575
|
+
modelValue,
|
|
22576
|
+
actualValue
|
|
22463
22577
|
};
|
|
22464
22578
|
};
|
|
22465
22579
|
|
|
@@ -22474,7 +22588,7 @@
|
|
|
22474
22588
|
setup(__props, { emit }) {
|
|
22475
22589
|
const props = __props;
|
|
22476
22590
|
const ns = useNamespace("radio");
|
|
22477
|
-
const { radioRef, radioGroup, focus, size, disabled, modelValue } = useRadio(props, emit);
|
|
22591
|
+
const { radioRef, radioGroup, focus, size, disabled, modelValue, actualValue } = useRadio(props, emit);
|
|
22478
22592
|
function handleChange() {
|
|
22479
22593
|
vue.nextTick(() => emit("change", modelValue.value));
|
|
22480
22594
|
}
|
|
@@ -22486,7 +22600,7 @@
|
|
|
22486
22600
|
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
|
22487
22601
|
vue.unref(ns).is("focus", vue.unref(focus)),
|
|
22488
22602
|
vue.unref(ns).is("bordered", _ctx.border),
|
|
22489
|
-
vue.unref(ns).is("checked", vue.unref(modelValue) ===
|
|
22603
|
+
vue.unref(ns).is("checked", vue.unref(modelValue) === vue.unref(actualValue)),
|
|
22490
22604
|
vue.unref(ns).m(vue.unref(size))
|
|
22491
22605
|
])
|
|
22492
22606
|
}, [
|
|
@@ -22494,7 +22608,7 @@
|
|
|
22494
22608
|
class: vue.normalizeClass([
|
|
22495
22609
|
vue.unref(ns).e("input"),
|
|
22496
22610
|
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
|
22497
|
-
vue.unref(ns).is("checked", vue.unref(modelValue) ===
|
|
22611
|
+
vue.unref(ns).is("checked", vue.unref(modelValue) === vue.unref(actualValue))
|
|
22498
22612
|
])
|
|
22499
22613
|
}, [
|
|
22500
22614
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
@@ -22502,7 +22616,7 @@
|
|
|
22502
22616
|
ref: radioRef,
|
|
22503
22617
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
22504
22618
|
class: vue.normalizeClass(vue.unref(ns).e("original")),
|
|
22505
|
-
value:
|
|
22619
|
+
value: vue.unref(actualValue),
|
|
22506
22620
|
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
|
22507
22621
|
disabled: vue.unref(disabled),
|
|
22508
22622
|
type: "radio",
|
|
@@ -22534,11 +22648,7 @@
|
|
|
22534
22648
|
var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__file", "radio.vue"]]);
|
|
22535
22649
|
|
|
22536
22650
|
const radioButtonProps = buildProps({
|
|
22537
|
-
...radioPropsBase
|
|
22538
|
-
name: {
|
|
22539
|
-
type: String,
|
|
22540
|
-
default: ""
|
|
22541
|
-
}
|
|
22651
|
+
...radioPropsBase
|
|
22542
22652
|
});
|
|
22543
22653
|
|
|
22544
22654
|
const _hoisted_1$U = ["value", "name", "disabled"];
|
|
@@ -22551,7 +22661,7 @@
|
|
|
22551
22661
|
setup(__props) {
|
|
22552
22662
|
const props = __props;
|
|
22553
22663
|
const ns = useNamespace("radio");
|
|
22554
|
-
const { radioRef, focus, size, disabled, modelValue, radioGroup } = useRadio(props);
|
|
22664
|
+
const { radioRef, focus, size, disabled, modelValue, radioGroup, actualValue } = useRadio(props);
|
|
22555
22665
|
const activeStyle = vue.computed(() => {
|
|
22556
22666
|
return {
|
|
22557
22667
|
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
@@ -22565,7 +22675,7 @@
|
|
|
22565
22675
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
22566
22676
|
class: vue.normalizeClass([
|
|
22567
22677
|
vue.unref(ns).b("button"),
|
|
22568
|
-
vue.unref(ns).is("active", vue.unref(modelValue) ===
|
|
22678
|
+
vue.unref(ns).is("active", vue.unref(modelValue) === vue.unref(actualValue)),
|
|
22569
22679
|
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
|
22570
22680
|
vue.unref(ns).is("focus", vue.unref(focus)),
|
|
22571
22681
|
vue.unref(ns).bm("button", vue.unref(size))
|
|
@@ -22576,7 +22686,7 @@
|
|
|
22576
22686
|
ref: radioRef,
|
|
22577
22687
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
22578
22688
|
class: vue.normalizeClass(vue.unref(ns).be("button", "original-radio")),
|
|
22579
|
-
value:
|
|
22689
|
+
value: vue.unref(actualValue),
|
|
22580
22690
|
type: "radio",
|
|
22581
22691
|
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
|
22582
22692
|
disabled: vue.unref(disabled),
|
|
@@ -22589,7 +22699,7 @@
|
|
|
22589
22699
|
]),
|
|
22590
22700
|
vue.createElementVNode("span", {
|
|
22591
22701
|
class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
|
|
22592
|
-
style: vue.normalizeStyle(vue.unref(modelValue) ===
|
|
22702
|
+
style: vue.normalizeStyle(vue.unref(modelValue) === vue.unref(actualValue) ? vue.unref(activeStyle) : {}),
|
|
22593
22703
|
onKeydown: _cache[4] || (_cache[4] = vue.withModifiers(() => {
|
|
22594
22704
|
}, ["stop"]))
|
|
22595
22705
|
}, [
|
|
@@ -22612,7 +22722,7 @@
|
|
|
22612
22722
|
disabled: Boolean,
|
|
22613
22723
|
modelValue: {
|
|
22614
22724
|
type: [String, Number, Boolean],
|
|
22615
|
-
default:
|
|
22725
|
+
default: void 0
|
|
22616
22726
|
},
|
|
22617
22727
|
fill: {
|
|
22618
22728
|
type: String,
|
|
@@ -26628,7 +26738,7 @@
|
|
|
26628
26738
|
const _selectedDate = vue.unref(selectedDate);
|
|
26629
26739
|
const shouldIncrement = setDateText(cell, { count, rowIndex, columnIndex });
|
|
26630
26740
|
const cellDate = cell.dayjs.toDate();
|
|
26631
|
-
cell.selected = _selectedDate.find((d) => d.
|
|
26741
|
+
cell.selected = _selectedDate.find((d) => d.isSame(cell.dayjs, "day"));
|
|
26632
26742
|
cell.isSelected = !!cell.selected;
|
|
26633
26743
|
cell.isCurrent = isCurrent(cell);
|
|
26634
26744
|
cell.disabled = disabledDate == null ? void 0 : disabledDate(cellDate);
|
|
@@ -32876,10 +32986,6 @@
|
|
|
32876
32986
|
hideTimeout: Number,
|
|
32877
32987
|
popperClass: String,
|
|
32878
32988
|
disabled: Boolean,
|
|
32879
|
-
popperAppendToBody: {
|
|
32880
|
-
type: Boolean,
|
|
32881
|
-
default: void 0
|
|
32882
|
-
},
|
|
32883
32989
|
teleported: {
|
|
32884
32990
|
type: Boolean,
|
|
32885
32991
|
default: void 0
|
|
@@ -32903,13 +33009,6 @@
|
|
|
32903
33009
|
name: COMPONENT_NAME$c,
|
|
32904
33010
|
props: subMenuProps,
|
|
32905
33011
|
setup(props, { slots, expose }) {
|
|
32906
|
-
useDeprecated({
|
|
32907
|
-
from: "popper-append-to-body",
|
|
32908
|
-
replacement: "teleported",
|
|
32909
|
-
scope: COMPONENT_NAME$c,
|
|
32910
|
-
version: "2.3.0",
|
|
32911
|
-
ref: "https://element-plus.org/en-US/component/menu.html#submenu-attributes"
|
|
32912
|
-
}, vue.computed(() => props.popperAppendToBody !== void 0));
|
|
32913
33012
|
const instance = vue.getCurrentInstance();
|
|
32914
33013
|
const { indexPath, parentMenu } = useMenu(instance, vue.computed(() => props.index));
|
|
32915
33014
|
const nsMenu = useNamespace("menu");
|
|
@@ -32934,8 +33033,7 @@
|
|
|
32934
33033
|
return subMenu.level === 0;
|
|
32935
33034
|
});
|
|
32936
33035
|
const appendToBody = vue.computed(() => {
|
|
32937
|
-
|
|
32938
|
-
const value = (_a = props.teleported) != null ? _a : props.popperAppendToBody;
|
|
33036
|
+
const value = props.teleported;
|
|
32939
33037
|
return value === void 0 ? isFirstLevel.value : value;
|
|
32940
33038
|
});
|
|
32941
33039
|
const menuTransitionName = vue.computed(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
|
|
@@ -33347,6 +33445,8 @@
|
|
|
33347
33445
|
};
|
|
33348
33446
|
let isFirstTimeRender = true;
|
|
33349
33447
|
const handleResize = () => {
|
|
33448
|
+
if (sliceIndex.value === calcSliceIndex())
|
|
33449
|
+
return;
|
|
33350
33450
|
const callback = () => {
|
|
33351
33451
|
sliceIndex.value = -1;
|
|
33352
33452
|
vue.nextTick(() => {
|
|
@@ -34122,13 +34222,6 @@
|
|
|
34122
34222
|
menuVisibleOnFocus: false,
|
|
34123
34223
|
isBeforeHide: false
|
|
34124
34224
|
});
|
|
34125
|
-
useDeprecated({
|
|
34126
|
-
from: "suffixTransition",
|
|
34127
|
-
replacement: "override style scheme",
|
|
34128
|
-
version: "2.3.0",
|
|
34129
|
-
scope: "props",
|
|
34130
|
-
ref: "https://element-plus.org/en-US/component/select.html#select-attributes"
|
|
34131
|
-
}, vue.computed(() => props.suffixTransition === false));
|
|
34132
34225
|
const selectRef = vue.ref(null);
|
|
34133
34226
|
const selectionRef = vue.ref(null);
|
|
34134
34227
|
const tooltipRef = vue.ref(null);
|
|
@@ -34172,7 +34265,7 @@
|
|
|
34172
34265
|
return criteria;
|
|
34173
34266
|
});
|
|
34174
34267
|
const iconComponent = vue.computed(() => props.remote && props.filterable && !props.remoteShowSuffix ? "" : props.suffixIcon);
|
|
34175
|
-
const iconReverse = vue.computed(() => nsSelect.is("reverse", iconComponent.value && expanded.value
|
|
34268
|
+
const iconReverse = vue.computed(() => nsSelect.is("reverse", iconComponent.value && expanded.value));
|
|
34176
34269
|
const validateState = vue.computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
34177
34270
|
const validateIcon = vue.computed(() => ValidateComponentsMap[validateState.value]);
|
|
34178
34271
|
const debounce$1 = vue.computed(() => props.remote ? 300 : 0);
|
|
@@ -34367,15 +34460,7 @@
|
|
|
34367
34460
|
return getValueKey(item) === getValueKey(states.selected);
|
|
34368
34461
|
});
|
|
34369
34462
|
} else {
|
|
34370
|
-
|
|
34371
|
-
states.hoveringIndex = Math.min(...states.selected.map((selected) => {
|
|
34372
|
-
return optionsArray.value.findIndex((item) => {
|
|
34373
|
-
return getValueKey(item) === getValueKey(selected);
|
|
34374
|
-
});
|
|
34375
|
-
}));
|
|
34376
|
-
} else {
|
|
34377
|
-
states.hoveringIndex = -1;
|
|
34378
|
-
}
|
|
34463
|
+
states.hoveringIndex = optionsArray.value.findIndex((item) => states.selected.some((selected) => getValueKey(selected) === getValueKey(item)));
|
|
34379
34464
|
}
|
|
34380
34465
|
};
|
|
34381
34466
|
const resetSelectionWidth = () => {
|
|
@@ -34853,10 +34938,6 @@
|
|
|
34853
34938
|
default: true
|
|
34854
34939
|
},
|
|
34855
34940
|
remoteShowSuffix: Boolean,
|
|
34856
|
-
suffixTransition: {
|
|
34857
|
-
type: Boolean,
|
|
34858
|
-
default: true
|
|
34859
|
-
},
|
|
34860
34941
|
placement: {
|
|
34861
34942
|
type: definePropType(String),
|
|
34862
34943
|
values: Ee,
|
|
@@ -39230,18 +39311,13 @@
|
|
|
39230
39311
|
multiple,
|
|
39231
39312
|
scrollbarAlwaysOn
|
|
39232
39313
|
} = select.props;
|
|
39233
|
-
if (slots.loading || slots.empty) {
|
|
39234
|
-
return vue.createVNode("div", {
|
|
39235
|
-
"class": ns.b("dropdown"),
|
|
39236
|
-
"style": {
|
|
39237
|
-
width: `${width}px`
|
|
39238
|
-
}
|
|
39239
|
-
}, [((_a = slots.loading) == null ? void 0 : _a.call(slots)) || ((_b = slots.empty) == null ? void 0 : _b.call(slots))]);
|
|
39240
|
-
}
|
|
39241
39314
|
const List = vue.unref(isSized) ? FixedSizeList$1 : DynamicSizeList$1;
|
|
39242
39315
|
return vue.createVNode("div", {
|
|
39243
|
-
"class": [ns.b("dropdown"), ns.is("multiple", multiple)]
|
|
39244
|
-
|
|
39316
|
+
"class": [ns.b("dropdown"), ns.is("multiple", multiple)],
|
|
39317
|
+
"style": {
|
|
39318
|
+
width: `${width}px`
|
|
39319
|
+
}
|
|
39320
|
+
}, [(_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)) || vue.createVNode(List, vue.mergeProps({
|
|
39245
39321
|
"ref": listRef
|
|
39246
39322
|
}, vue.unref(listProps), {
|
|
39247
39323
|
"className": ns.be("dropdown", "list"),
|
|
@@ -39455,6 +39531,13 @@
|
|
|
39455
39531
|
allOptions.value = filterOptions("");
|
|
39456
39532
|
filteredOptions.value = filterOptions(states.inputValue);
|
|
39457
39533
|
};
|
|
39534
|
+
const allOptionsValueMap = vue.computed(() => {
|
|
39535
|
+
const valueMap = /* @__PURE__ */ new Map();
|
|
39536
|
+
allOptions.value.forEach((option, index) => {
|
|
39537
|
+
valueMap.set(getValueKey(getValue(option)), { option, index });
|
|
39538
|
+
});
|
|
39539
|
+
return valueMap;
|
|
39540
|
+
});
|
|
39458
39541
|
const filteredOptionsValueMap = vue.computed(() => {
|
|
39459
39542
|
const valueMap = /* @__PURE__ */ new Map();
|
|
39460
39543
|
filteredOptions.value.forEach((option, index) => {
|
|
@@ -39784,15 +39867,7 @@
|
|
|
39784
39867
|
return getValueKey(item) === getValueKey(props.modelValue);
|
|
39785
39868
|
});
|
|
39786
39869
|
} else {
|
|
39787
|
-
|
|
39788
|
-
states.hoveringIndex = Math.min(...props.modelValue.map((selected) => {
|
|
39789
|
-
return filteredOptions.value.findIndex((item) => {
|
|
39790
|
-
return getValue(item) === selected;
|
|
39791
|
-
});
|
|
39792
|
-
}));
|
|
39793
|
-
} else {
|
|
39794
|
-
states.hoveringIndex = -1;
|
|
39795
|
-
}
|
|
39870
|
+
states.hoveringIndex = filteredOptions.value.findIndex((item) => props.modelValue.some((modelValue) => getValueKey(modelValue) === getValueKey(item)));
|
|
39796
39871
|
}
|
|
39797
39872
|
};
|
|
39798
39873
|
const onInput = (event) => {
|
|
@@ -39822,8 +39897,8 @@
|
|
|
39822
39897
|
};
|
|
39823
39898
|
const getOption = (value) => {
|
|
39824
39899
|
const selectValue = getValueKey(value);
|
|
39825
|
-
if (
|
|
39826
|
-
const { option } =
|
|
39900
|
+
if (allOptionsValueMap.value.has(selectValue)) {
|
|
39901
|
+
const { option } = allOptionsValueMap.value.get(selectValue);
|
|
39827
39902
|
return option;
|
|
39828
39903
|
}
|
|
39829
39904
|
return {
|
|
@@ -42144,18 +42219,6 @@
|
|
|
42144
42219
|
type: [Boolean, String, Number],
|
|
42145
42220
|
default: false
|
|
42146
42221
|
},
|
|
42147
|
-
activeColor: {
|
|
42148
|
-
type: String,
|
|
42149
|
-
default: ""
|
|
42150
|
-
},
|
|
42151
|
-
inactiveColor: {
|
|
42152
|
-
type: String,
|
|
42153
|
-
default: ""
|
|
42154
|
-
},
|
|
42155
|
-
borderColor: {
|
|
42156
|
-
type: String,
|
|
42157
|
-
default: ""
|
|
42158
|
-
},
|
|
42159
42222
|
name: {
|
|
42160
42223
|
type: String,
|
|
42161
42224
|
default: ""
|
|
@@ -42171,10 +42234,6 @@
|
|
|
42171
42234
|
tabindex: {
|
|
42172
42235
|
type: [String, Number]
|
|
42173
42236
|
},
|
|
42174
|
-
value: {
|
|
42175
|
-
type: [Boolean, String, Number],
|
|
42176
|
-
default: false
|
|
42177
|
-
},
|
|
42178
42237
|
label: {
|
|
42179
42238
|
type: String,
|
|
42180
42239
|
default: void 0
|
|
@@ -42201,31 +42260,9 @@
|
|
|
42201
42260
|
emits: switchEmits,
|
|
42202
42261
|
setup(__props, { expose, emit }) {
|
|
42203
42262
|
const props = __props;
|
|
42204
|
-
const vm = vue.getCurrentInstance();
|
|
42205
42263
|
const { formItem } = useFormItem();
|
|
42206
42264
|
const switchSize = useFormSize();
|
|
42207
42265
|
const ns = useNamespace("switch");
|
|
42208
|
-
const useBatchDeprecated = (list) => {
|
|
42209
|
-
list.forEach((param) => {
|
|
42210
|
-
useDeprecated({
|
|
42211
|
-
from: param[0],
|
|
42212
|
-
replacement: param[1],
|
|
42213
|
-
scope: COMPONENT_NAME$8,
|
|
42214
|
-
version: "2.3.0",
|
|
42215
|
-
ref: "https://element-plus.org/en-US/component/switch.html#attributes",
|
|
42216
|
-
type: "Attribute"
|
|
42217
|
-
}, vue.computed(() => {
|
|
42218
|
-
var _a;
|
|
42219
|
-
return !!((_a = vm.vnode.props) == null ? void 0 : _a[param[2]]);
|
|
42220
|
-
}));
|
|
42221
|
-
});
|
|
42222
|
-
};
|
|
42223
|
-
useBatchDeprecated([
|
|
42224
|
-
['"value"', '"model-value" or "v-model"', "value"],
|
|
42225
|
-
['"active-color"', "CSS var `--el-switch-on-color`", "activeColor"],
|
|
42226
|
-
['"inactive-color"', "CSS var `--el-switch-off-color`", "inactiveColor"],
|
|
42227
|
-
['"border-color"', "CSS var `--el-switch-border-color`", "borderColor"]
|
|
42228
|
-
]);
|
|
42229
42266
|
const { inputId } = useFormItemInputId(props, {
|
|
42230
42267
|
formItemContext: formItem
|
|
42231
42268
|
});
|
|
@@ -42255,11 +42292,8 @@
|
|
|
42255
42292
|
vue.watch(() => props.modelValue, () => {
|
|
42256
42293
|
isControlled.value = true;
|
|
42257
42294
|
});
|
|
42258
|
-
vue.watch(() => props.value, () => {
|
|
42259
|
-
isControlled.value = false;
|
|
42260
|
-
});
|
|
42261
42295
|
const actualValue = vue.computed(() => {
|
|
42262
|
-
return isControlled.value ? props.modelValue :
|
|
42296
|
+
return isControlled.value ? props.modelValue : false;
|
|
42263
42297
|
});
|
|
42264
42298
|
const checked = vue.computed(() => actualValue.value === props.activeValue);
|
|
42265
42299
|
if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
|
|
@@ -42310,13 +42344,6 @@
|
|
|
42310
42344
|
handleChange();
|
|
42311
42345
|
}
|
|
42312
42346
|
};
|
|
42313
|
-
const styles = vue.computed(() => {
|
|
42314
|
-
return ns.cssVarBlock({
|
|
42315
|
-
...props.activeColor ? { "on-color": props.activeColor } : null,
|
|
42316
|
-
...props.inactiveColor ? { "off-color": props.inactiveColor } : null,
|
|
42317
|
-
...props.borderColor ? { "border-color": props.borderColor } : null
|
|
42318
|
-
});
|
|
42319
|
-
});
|
|
42320
42347
|
const focus = () => {
|
|
42321
42348
|
var _a, _b;
|
|
42322
42349
|
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
@@ -42331,7 +42358,6 @@
|
|
|
42331
42358
|
return (_ctx, _cache) => {
|
|
42332
42359
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
42333
42360
|
class: vue.normalizeClass(vue.unref(switchKls)),
|
|
42334
|
-
style: vue.normalizeStyle(vue.unref(styles)),
|
|
42335
42361
|
onClick: vue.withModifiers(switchValue, ["prevent"])
|
|
42336
42362
|
}, [
|
|
42337
42363
|
vue.createElementVNode("input", {
|
|
@@ -42434,7 +42460,7 @@
|
|
|
42434
42460
|
"aria-hidden": !vue.unref(checked)
|
|
42435
42461
|
}, vue.toDisplayString(_ctx.activeText), 9, _hoisted_5$1)) : vue.createCommentVNode("v-if", true)
|
|
42436
42462
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
42437
|
-
],
|
|
42463
|
+
], 10, _hoisted_1$g);
|
|
42438
42464
|
};
|
|
42439
42465
|
}
|
|
42440
42466
|
});
|
|
@@ -49348,9 +49374,6 @@
|
|
|
49348
49374
|
values: ["card", "border-card", ""],
|
|
49349
49375
|
default: ""
|
|
49350
49376
|
},
|
|
49351
|
-
activeName: {
|
|
49352
|
-
type: [String, Number]
|
|
49353
|
-
},
|
|
49354
49377
|
closable: Boolean,
|
|
49355
49378
|
addable: Boolean,
|
|
49356
49379
|
modelValue: {
|
|
@@ -49386,7 +49409,7 @@
|
|
|
49386
49409
|
slots,
|
|
49387
49410
|
expose
|
|
49388
49411
|
}) {
|
|
49389
|
-
var _a
|
|
49412
|
+
var _a;
|
|
49390
49413
|
const ns = useNamespace("tabs");
|
|
49391
49414
|
const {
|
|
49392
49415
|
children: panes,
|
|
@@ -49394,9 +49417,9 @@
|
|
|
49394
49417
|
removeChild: unregisterPane
|
|
49395
49418
|
} = useOrderedChildren(vue.getCurrentInstance(), "ElTabPane");
|
|
49396
49419
|
const nav$ = vue.ref();
|
|
49397
|
-
const currentName = vue.ref((
|
|
49420
|
+
const currentName = vue.ref((_a = props.modelValue) != null ? _a : "0");
|
|
49398
49421
|
const setCurrentName = async (value, trigger = false) => {
|
|
49399
|
-
var _a2,
|
|
49422
|
+
var _a2, _b, _c;
|
|
49400
49423
|
if (currentName.value === value || isUndefined(value))
|
|
49401
49424
|
return;
|
|
49402
49425
|
try {
|
|
@@ -49407,7 +49430,7 @@
|
|
|
49407
49430
|
emit(UPDATE_MODEL_EVENT, value);
|
|
49408
49431
|
emit("tabChange", value);
|
|
49409
49432
|
}
|
|
49410
|
-
(_c = (
|
|
49433
|
+
(_c = (_b = nav$.value) == null ? void 0 : _b.removeFocus) == null ? void 0 : _c.call(_b);
|
|
49411
49434
|
}
|
|
49412
49435
|
} catch (e) {
|
|
49413
49436
|
}
|
|
@@ -49429,23 +49452,6 @@
|
|
|
49429
49452
|
emit("edit", void 0, "add");
|
|
49430
49453
|
emit("tabAdd");
|
|
49431
49454
|
};
|
|
49432
|
-
useDeprecated({
|
|
49433
|
-
from: '"activeName"',
|
|
49434
|
-
replacement: '"model-value" or "v-model"',
|
|
49435
|
-
scope: "ElTabs",
|
|
49436
|
-
version: "2.3.0",
|
|
49437
|
-
ref: "https://element-plus.org/en-US/component/tabs.html#attributes",
|
|
49438
|
-
type: "Attribute"
|
|
49439
|
-
}, vue.computed(() => !!props.activeName));
|
|
49440
|
-
useDeprecated({
|
|
49441
|
-
from: '"addIcon"',
|
|
49442
|
-
replacement: '"add-icon"',
|
|
49443
|
-
scope: "ElTabs",
|
|
49444
|
-
version: "2.6.0",
|
|
49445
|
-
ref: "https://element-plus.org/en-US/component/tabs.html#slots",
|
|
49446
|
-
type: "Slot"
|
|
49447
|
-
}, vue.computed(() => !!slots.addIcon));
|
|
49448
|
-
vue.watch(() => props.activeName, (modelValue) => setCurrentName(modelValue));
|
|
49449
49455
|
vue.watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
49450
49456
|
vue.watch(currentName, async () => {
|
|
49451
49457
|
var _a2;
|
|
@@ -49462,8 +49468,7 @@
|
|
|
49462
49468
|
currentName
|
|
49463
49469
|
});
|
|
49464
49470
|
return () => {
|
|
49465
|
-
const addSlot = slots["add-icon"]
|
|
49466
|
-
const isCamelCase = addSlot && slots["addIcon"];
|
|
49471
|
+
const addSlot = slots["add-icon"];
|
|
49467
49472
|
const newButton = props.editable || props.addable ? vue.createVNode("span", {
|
|
49468
49473
|
"class": ns.e("new-tab"),
|
|
49469
49474
|
"tabindex": "0",
|
|
@@ -49472,7 +49477,7 @@
|
|
|
49472
49477
|
if (ev.code === EVENT_CODE.enter)
|
|
49473
49478
|
handleTabAdd();
|
|
49474
49479
|
}
|
|
49475
|
-
}, [addSlot ? vue.renderSlot(slots,
|
|
49480
|
+
}, [addSlot ? vue.renderSlot(slots, "add-icon") : vue.createVNode(ElIcon, {
|
|
49476
49481
|
"class": ns.is("icon-plus")
|
|
49477
49482
|
}, {
|
|
49478
49483
|
default: () => [vue.createVNode(plus_default, null, null)]
|
|
@@ -52717,10 +52722,19 @@
|
|
|
52717
52722
|
const ElTree = _Tree;
|
|
52718
52723
|
|
|
52719
52724
|
const useSelect = (props, { attrs, emit }, {
|
|
52725
|
+
select,
|
|
52720
52726
|
tree,
|
|
52721
52727
|
key
|
|
52722
52728
|
}) => {
|
|
52723
52729
|
const ns = useNamespace("tree-select");
|
|
52730
|
+
vue.watch(() => props.data, () => {
|
|
52731
|
+
if (props.filterable) {
|
|
52732
|
+
vue.nextTick(() => {
|
|
52733
|
+
var _a, _b;
|
|
52734
|
+
(_b = tree.value) == null ? void 0 : _b.filter((_a = select.value) == null ? void 0 : _a.states.inputValue);
|
|
52735
|
+
});
|
|
52736
|
+
}
|
|
52737
|
+
}, { flush: "post" });
|
|
52724
52738
|
const result = {
|
|
52725
52739
|
...pick(vue.toRefs(props), Object.keys(ElSelect.props)),
|
|
52726
52740
|
...attrs,
|
|
@@ -52733,18 +52747,13 @@
|
|
|
52733
52747
|
return classes.join(" ");
|
|
52734
52748
|
}),
|
|
52735
52749
|
filterMethod: (keyword = "") => {
|
|
52736
|
-
|
|
52750
|
+
var _a;
|
|
52751
|
+
if (props.filterMethod) {
|
|
52737
52752
|
props.filterMethod(keyword);
|
|
52738
|
-
|
|
52739
|
-
|
|
52753
|
+
} else if (props.remoteMethod) {
|
|
52754
|
+
props.remoteMethod(keyword);
|
|
52755
|
+
} else {
|
|
52740
52756
|
(_a = tree.value) == null ? void 0 : _a.filter(keyword);
|
|
52741
|
-
});
|
|
52742
|
-
},
|
|
52743
|
-
onVisibleChange: (visible) => {
|
|
52744
|
-
var _a;
|
|
52745
|
-
(_a = attrs.onVisibleChange) == null ? void 0 : _a.call(attrs, visible);
|
|
52746
|
-
if (props.filterable && visible) {
|
|
52747
|
-
result.filterMethod();
|
|
52748
52757
|
}
|
|
52749
52758
|
}
|
|
52750
52759
|
};
|
|
@@ -52859,9 +52868,6 @@
|
|
|
52859
52868
|
}, (data) => getNodeValByProp("children", data));
|
|
52860
52869
|
return options;
|
|
52861
52870
|
});
|
|
52862
|
-
const cacheOptionsMap = vue.computed(() => {
|
|
52863
|
-
return cacheOptions.value.reduce((prev, next) => ({ ...prev, [next.value]: next }), {});
|
|
52864
|
-
});
|
|
52865
52871
|
return {
|
|
52866
52872
|
...pick(vue.toRefs(props), Object.keys(_Tree.props)),
|
|
52867
52873
|
...attrs,
|
|
@@ -52907,14 +52913,16 @@
|
|
|
52907
52913
|
if (!props.showCheckbox)
|
|
52908
52914
|
return;
|
|
52909
52915
|
const dataValue = getNodeValByProp("value", data);
|
|
52916
|
+
const dataMap = {};
|
|
52917
|
+
treeEach([tree.value.store.root], (node) => dataMap[node.key] = node, (node) => node.childNodes);
|
|
52910
52918
|
const uncachedCheckedKeys = params.checkedKeys;
|
|
52911
|
-
const cachedKeys = props.multiple ? toValidArray(props.modelValue).filter((item) => item in
|
|
52912
|
-
const checkedKeys =
|
|
52919
|
+
const cachedKeys = props.multiple ? toValidArray(props.modelValue).filter((item) => !(item in dataMap) && !uncachedCheckedKeys.includes(item)) : [];
|
|
52920
|
+
const checkedKeys = cachedKeys.concat(uncachedCheckedKeys);
|
|
52913
52921
|
if (props.checkStrictly) {
|
|
52914
52922
|
emit(UPDATE_MODEL_EVENT, props.multiple ? checkedKeys : checkedKeys.includes(dataValue) ? dataValue : void 0);
|
|
52915
52923
|
} else {
|
|
52916
52924
|
if (props.multiple) {
|
|
52917
|
-
emit(UPDATE_MODEL_EVENT, tree.value.getCheckedKeys(true));
|
|
52925
|
+
emit(UPDATE_MODEL_EVENT, cachedKeys.concat(tree.value.getCheckedKeys(true)));
|
|
52918
52926
|
} else {
|
|
52919
52927
|
const firstLeaf = treeFind([data], (data2) => !isValidArray(getNodeValByProp("children", data2)) && !getNodeValByProp("disabled", data2), (data2) => getNodeValByProp("children", data2));
|
|
52920
52928
|
const firstLeafKey = firstLeaf ? getNodeValByProp("value", firstLeaf) : void 0;
|