@element-plus/nightly 0.0.20240129 → 0.0.20240130
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.full.js +5 -5
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5 -5
- 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/alert/index.d.ts +4 -4
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +4 -4
- package/es/components/autocomplete/index.d.ts +65 -65
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +21 -54
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +54 -21
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/button/index.d.ts +5 -5
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +5 -5
- package/es/components/button/src/use-button.d.ts +1 -1
- package/es/components/calendar/index.d.ts +5 -5
- package/es/components/calendar/src/calendar.vue.d.ts +5 -5
- package/es/components/carousel/index.d.ts +5 -5
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +5 -5
- package/es/components/cascader/index.d.ts +128 -128
- package/es/components/cascader/src/cascader.vue.d.ts +64 -64
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +18 -28
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +28 -18
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +38 -38
- package/es/components/color-picker/src/color-picker.vue.d.ts +38 -38
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
- package/es/components/date-picker/src/panel-utils.d.ts +34 -34
- package/es/components/dialog/index.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/drawer/index.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +1 -1
- package/es/components/dropdown/index.d.ts +14 -14
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +12 -12
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/es/components/form/index.d.ts +12 -12
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.vue.d.ts +5 -5
- package/es/components/image/index.d.ts +1 -1
- package/es/components/image/src/image.vue.d.ts +1 -1
- package/es/components/index.mjs +3 -3
- package/es/components/input/index.d.ts +12 -12
- package/es/components/input/src/input.vue.d.ts +12 -12
- package/es/components/input-number/index.d.ts +45 -45
- package/es/components/input-number/src/input-number.vue.d.ts +45 -45
- package/es/components/menu/index.d.ts +3 -3
- package/es/components/menu/src/menu.d.ts +4 -4
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/src/index.vue.d.ts +1 -1
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -4
- package/es/components/pagination/src/components/jumper.vue.d.ts +12 -12
- package/es/components/pagination/src/components/sizes.vue.d.ts +27 -27
- package/es/components/popconfirm/index.d.ts +23 -23
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
- package/es/components/popover/index.d.ts +18 -18
- package/es/components/popover/src/popover.vue.d.ts +18 -18
- package/es/components/popper/src/content.vue.d.ts +6 -6
- package/es/components/result/index.d.ts +4 -4
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +4 -4
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +27 -27
- package/es/components/select/src/select.vue.d.ts +27 -27
- package/es/components/select/src/useOption.mjs +4 -4
- package/es/components/select/src/useOption.mjs.map +1 -1
- package/es/components/select/src/useSelect.d.ts +25 -25
- package/es/components/select-v2/index.d.ts +54 -54
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +27 -27
- package/es/components/select-v2/src/useSelect.d.ts +25 -25
- package/es/components/slider/index.d.ts +75 -75
- package/es/components/slider/src/button.vue.d.ts +6 -6
- package/es/components/slider/src/composables/use-slide.d.ts +24 -24
- package/es/components/slider/src/slider.vue.d.ts +75 -75
- package/es/components/steps/index.d.ts +16 -16
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +4 -4
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/steps/src/steps.vue.d.ts +8 -8
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +12 -12
- package/es/components/table/src/table.vue.d.ts +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +7 -75
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +75 -7
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tag/index.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/es/components/time-select/index.d.ts +114 -114
- package/es/components/time-select/src/time-select.vue.d.ts +57 -57
- package/es/components/tooltip/index.d.ts +6 -6
- package/es/components/tooltip/src/content.vue.d.ts +6 -6
- package/es/components/tooltip/src/tooltip.vue.d.ts +6 -6
- package/es/components/tooltip-v2/index.d.ts +4 -4
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
- package/es/components/tour/index.d.ts +11 -11
- package/es/components/tour/src/content.vue.d.ts +1 -1
- package/es/components/tour/src/step.vue.d.ts +5 -5
- package/es/components/tour/src/tour.vue.d.ts +1 -1
- package/es/components/transfer/index.d.ts +65 -65
- package/es/components/transfer/src/transfer-panel.vue.d.ts +12 -12
- package/es/components/transfer/src/transfer.vue.d.ts +65 -65
- package/es/components/tree-v2/index.d.ts +1 -1
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/components/upload/index.d.ts +5 -5
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +5 -5
- package/es/index.mjs +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/index.d.ts +4 -4
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +4 -4
- package/lib/components/autocomplete/index.d.ts +65 -65
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +65 -65
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +22 -54
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +54 -22
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/button/index.d.ts +5 -5
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +5 -5
- package/lib/components/button/src/use-button.d.ts +1 -1
- package/lib/components/calendar/index.d.ts +5 -5
- package/lib/components/calendar/src/calendar.vue.d.ts +5 -5
- package/lib/components/carousel/index.d.ts +5 -5
- package/lib/components/carousel/src/carousel.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +5 -5
- package/lib/components/cascader/index.d.ts +128 -128
- package/lib/components/cascader/src/cascader.vue.d.ts +64 -64
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +20 -28
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +28 -20
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +38 -38
- package/lib/components/color-picker/src/color-picker.vue.d.ts +38 -38
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +17 -17
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +17 -17
- package/lib/components/date-picker/src/panel-utils.d.ts +34 -34
- package/lib/components/dialog/index.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/drawer/index.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
- package/lib/components/dropdown/index.d.ts +14 -14
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +12 -12
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/lib/components/form/index.d.ts +12 -12
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +5 -5
- package/lib/components/image/index.d.ts +1 -1
- package/lib/components/image/src/image.vue.d.ts +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/input/index.d.ts +12 -12
- package/lib/components/input/src/input.vue.d.ts +12 -12
- package/lib/components/input-number/index.d.ts +45 -45
- package/lib/components/input-number/src/input-number.vue.d.ts +45 -45
- package/lib/components/menu/index.d.ts +3 -3
- package/lib/components/menu/src/menu.d.ts +4 -4
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/src/index.vue.d.ts +1 -1
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -4
- package/lib/components/pagination/src/components/jumper.vue.d.ts +12 -12
- package/lib/components/pagination/src/components/sizes.vue.d.ts +27 -27
- package/lib/components/popconfirm/index.d.ts +23 -23
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +23 -23
- package/lib/components/popover/index.d.ts +18 -18
- package/lib/components/popover/src/popover.vue.d.ts +18 -18
- package/lib/components/popper/src/content.vue.d.ts +6 -6
- package/lib/components/result/index.d.ts +4 -4
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +4 -4
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +27 -27
- package/lib/components/select/src/select.vue.d.ts +27 -27
- package/lib/components/select/src/useOption.js +3 -3
- package/lib/components/select/src/useOption.js.map +1 -1
- package/lib/components/select/src/useSelect.d.ts +25 -25
- package/lib/components/select-v2/index.d.ts +54 -54
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +27 -27
- package/lib/components/select-v2/src/useSelect.d.ts +25 -25
- package/lib/components/slider/index.d.ts +75 -75
- package/lib/components/slider/src/button.vue.d.ts +6 -6
- package/lib/components/slider/src/composables/use-slide.d.ts +24 -24
- package/lib/components/slider/src/slider.vue.d.ts +75 -75
- package/lib/components/steps/index.d.ts +16 -16
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +4 -4
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +8 -8
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +12 -12
- package/lib/components/table/src/table.vue.d.ts +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +7 -75
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +75 -7
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +34 -34
- package/lib/components/time-select/index.d.ts +114 -114
- package/lib/components/time-select/src/time-select.vue.d.ts +57 -57
- package/lib/components/tooltip/index.d.ts +6 -6
- package/lib/components/tooltip/src/content.vue.d.ts +6 -6
- package/lib/components/tooltip/src/tooltip.vue.d.ts +6 -6
- package/lib/components/tooltip-v2/index.d.ts +4 -4
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +4 -4
- package/lib/components/tour/index.d.ts +11 -11
- package/lib/components/tour/src/content.vue.d.ts +1 -1
- package/lib/components/tour/src/step.vue.d.ts +5 -5
- package/lib/components/tour/src/tour.vue.d.ts +1 -1
- package/lib/components/transfer/index.d.ts +65 -65
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +12 -12
- package/lib/components/transfer/src/transfer.vue.d.ts +65 -65
- package/lib/components/tree-v2/index.d.ts +1 -1
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/components/upload/index.d.ts +5 -5
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +5 -5
- package/lib/index.js +3 -3
- 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/web-types.json +1 -1
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
handleKeydown: (event: Event) => void;
|
|
13
13
|
handleFocus: (event: Event) => void;
|
|
14
14
|
handleMousedown: (event: Event) => void;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mousedown" | "focus" | "keydown")[], "mousedown" | "focus" | "keydown", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
focusable: {
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
@@ -143,7 +143,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
143
143
|
showClose: import("vue").ComputedRef<boolean>;
|
|
144
144
|
iconComponent: import("vue").ComputedRef<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown> | undefined>;
|
|
145
145
|
iconReverse: import("vue").ComputedRef<string>;
|
|
146
|
-
validateState: import("vue").ComputedRef<"" | "
|
|
146
|
+
validateState: import("vue").ComputedRef<"" | "error" | "success" | "validating">;
|
|
147
147
|
validateIcon: import("vue").ComputedRef<any>;
|
|
148
148
|
showNewOption: import("vue").ComputedRef<boolean>;
|
|
149
149
|
updateOptions: () => void;
|
|
@@ -2550,7 +2550,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
2550
2550
|
readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
2551
2551
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
2552
2552
|
}, {
|
|
2553
|
-
emit: ((event: "
|
|
2553
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
2554
2554
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2555
2555
|
readonly id: StringConstructor;
|
|
2556
2556
|
readonly style: {
|
|
@@ -2800,10 +2800,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
2800
2800
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
2801
2801
|
}>> & {
|
|
2802
2802
|
onClose?: (() => any) | undefined;
|
|
2803
|
-
onFocus?: (() => any) | undefined;
|
|
2804
2803
|
onBlur?: (() => any) | undefined;
|
|
2805
|
-
|
|
2804
|
+
onFocus?: (() => any) | undefined;
|
|
2806
2805
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
2806
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
2807
2807
|
}>>;
|
|
2808
2808
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
2809
2809
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -2872,7 +2872,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
2872
2872
|
};
|
|
2873
2873
|
}, {
|
|
2874
2874
|
onKeydown: (e: KeyboardEvent) => void;
|
|
2875
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2875
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2876
2876
|
loop: BooleanConstructor;
|
|
2877
2877
|
trapped: BooleanConstructor;
|
|
2878
2878
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -3147,10 +3147,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
3147
3147
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
3148
3148
|
}>> & {
|
|
3149
3149
|
onClose?: (() => any) | undefined;
|
|
3150
|
-
onFocus?: (() => any) | undefined;
|
|
3151
3150
|
onBlur?: (() => any) | undefined;
|
|
3152
|
-
|
|
3151
|
+
onFocus?: (() => any) | undefined;
|
|
3153
3152
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
3153
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
3154
3154
|
}, {
|
|
3155
3155
|
readonly offset: number;
|
|
3156
3156
|
readonly effect: string;
|
|
@@ -5503,7 +5503,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
5503
5503
|
readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
5504
5504
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5505
5505
|
}, {
|
|
5506
|
-
emit: ((event: "
|
|
5506
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
5507
5507
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5508
5508
|
readonly id: StringConstructor;
|
|
5509
5509
|
readonly style: {
|
|
@@ -5753,10 +5753,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
5753
5753
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5754
5754
|
}>> & {
|
|
5755
5755
|
onClose?: (() => any) | undefined;
|
|
5756
|
-
onFocus?: (() => any) | undefined;
|
|
5757
5756
|
onBlur?: (() => any) | undefined;
|
|
5758
|
-
|
|
5757
|
+
onFocus?: (() => any) | undefined;
|
|
5759
5758
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
5759
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
5760
5760
|
}>>;
|
|
5761
5761
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
5762
5762
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -5825,7 +5825,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
5825
5825
|
};
|
|
5826
5826
|
}, {
|
|
5827
5827
|
onKeydown: (e: KeyboardEvent) => void;
|
|
5828
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
5828
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5829
5829
|
loop: BooleanConstructor;
|
|
5830
5830
|
trapped: BooleanConstructor;
|
|
5831
5831
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -6100,10 +6100,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
6100
6100
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
6101
6101
|
}>> & {
|
|
6102
6102
|
onClose?: (() => any) | undefined;
|
|
6103
|
-
onFocus?: (() => any) | undefined;
|
|
6104
6103
|
onBlur?: (() => any) | undefined;
|
|
6105
|
-
|
|
6104
|
+
onFocus?: (() => any) | undefined;
|
|
6106
6105
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
6106
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
6107
6107
|
}, {
|
|
6108
6108
|
readonly offset: number;
|
|
6109
6109
|
readonly effect: string;
|
|
@@ -8778,7 +8778,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
8778
8778
|
readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
8779
8779
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
8780
8780
|
}, {
|
|
8781
|
-
emit: ((event: "
|
|
8781
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
8782
8782
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8783
8783
|
readonly id: StringConstructor;
|
|
8784
8784
|
readonly style: {
|
|
@@ -9028,10 +9028,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
9028
9028
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
9029
9029
|
}>> & {
|
|
9030
9030
|
onClose?: (() => any) | undefined;
|
|
9031
|
-
onFocus?: (() => any) | undefined;
|
|
9032
9031
|
onBlur?: (() => any) | undefined;
|
|
9033
|
-
|
|
9032
|
+
onFocus?: (() => any) | undefined;
|
|
9034
9033
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
9034
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
9035
9035
|
}>>;
|
|
9036
9036
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
9037
9037
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -9100,7 +9100,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
9100
9100
|
};
|
|
9101
9101
|
}, {
|
|
9102
9102
|
onKeydown: (e: KeyboardEvent) => void;
|
|
9103
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
9103
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9104
9104
|
loop: BooleanConstructor;
|
|
9105
9105
|
trapped: BooleanConstructor;
|
|
9106
9106
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -9375,10 +9375,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
9375
9375
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
9376
9376
|
}>> & {
|
|
9377
9377
|
onClose?: (() => any) | undefined;
|
|
9378
|
-
onFocus?: (() => any) | undefined;
|
|
9379
9378
|
onBlur?: (() => any) | undefined;
|
|
9380
|
-
|
|
9379
|
+
onFocus?: (() => any) | undefined;
|
|
9381
9380
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
9381
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
9382
9382
|
}, {
|
|
9383
9383
|
readonly offset: number;
|
|
9384
9384
|
readonly effect: string;
|
|
@@ -11731,7 +11731,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
11731
11731
|
readonly popperOptions: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
11732
11732
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
11733
11733
|
}, {
|
|
11734
|
-
emit: ((event: "
|
|
11734
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
11735
11735
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
11736
11736
|
readonly id: StringConstructor;
|
|
11737
11737
|
readonly style: {
|
|
@@ -11981,10 +11981,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
11981
11981
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
11982
11982
|
}>> & {
|
|
11983
11983
|
onClose?: (() => any) | undefined;
|
|
11984
|
-
onFocus?: (() => any) | undefined;
|
|
11985
11984
|
onBlur?: (() => any) | undefined;
|
|
11986
|
-
|
|
11985
|
+
onFocus?: (() => any) | undefined;
|
|
11987
11986
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
11987
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
11988
11988
|
}>>;
|
|
11989
11989
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
11990
11990
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -12053,7 +12053,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
12053
12053
|
};
|
|
12054
12054
|
}, {
|
|
12055
12055
|
onKeydown: (e: KeyboardEvent) => void;
|
|
12056
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
12056
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12057
12057
|
loop: BooleanConstructor;
|
|
12058
12058
|
trapped: BooleanConstructor;
|
|
12059
12059
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -12328,10 +12328,10 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
12328
12328
|
readonly strategy: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
12329
12329
|
}>> & {
|
|
12330
12330
|
onClose?: (() => any) | undefined;
|
|
12331
|
-
onFocus?: (() => any) | undefined;
|
|
12332
12331
|
onBlur?: (() => any) | undefined;
|
|
12333
|
-
|
|
12332
|
+
onFocus?: (() => any) | undefined;
|
|
12334
12333
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
12334
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
12335
12335
|
}, {
|
|
12336
12336
|
readonly offset: number;
|
|
12337
12337
|
readonly effect: string;
|
|
@@ -12650,7 +12650,7 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
12650
12650
|
menuRef: import("vue").Ref<HTMLElement>;
|
|
12651
12651
|
tagMenuRef: import("vue").Ref<HTMLElement>;
|
|
12652
12652
|
collapseItemRef: import("vue").Ref<HTMLElement>;
|
|
12653
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "focus" | "clear" | "visible-change" | "remove-tag"
|
|
12653
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "blur" | "focus" | "clear" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "blur" | "focus" | "clear" | "visible-change" | "remove-tag", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12654
12654
|
name: StringConstructor;
|
|
12655
12655
|
id: StringConstructor;
|
|
12656
12656
|
modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(ArrayConstructor | ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[], unknown, unknown, undefined, boolean>;
|
|
@@ -12720,8 +12720,8 @@ export declare const ElSelect: import("@element-plus/nightly/es/utils").SFCWithI
|
|
|
12720
12720
|
}>> & {
|
|
12721
12721
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
12722
12722
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
12723
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
12724
12723
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
12724
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
12725
12725
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
12726
12726
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
12727
12727
|
"onRemove-tag"?: ((...args: any[]) => any) | undefined;
|
|
@@ -143,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
143
|
showClose: import("vue").ComputedRef<boolean>;
|
|
144
144
|
iconComponent: import("vue").ComputedRef<import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown> | undefined>;
|
|
145
145
|
iconReverse: import("vue").ComputedRef<string>;
|
|
146
|
-
validateState: import("vue").ComputedRef<"" | "
|
|
146
|
+
validateState: import("vue").ComputedRef<"" | "error" | "success" | "validating">;
|
|
147
147
|
validateIcon: import("vue").ComputedRef<any>;
|
|
148
148
|
showNewOption: import("vue").ComputedRef<boolean>;
|
|
149
149
|
updateOptions: () => void;
|
|
@@ -2550,7 +2550,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2550
2550
|
readonly popperOptions: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
2551
2551
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
2552
2552
|
}, {
|
|
2553
|
-
emit: ((event: "
|
|
2553
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
2554
2554
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
2555
2555
|
readonly id: StringConstructor;
|
|
2556
2556
|
readonly style: {
|
|
@@ -2800,10 +2800,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2800
2800
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
2801
2801
|
}>> & {
|
|
2802
2802
|
onClose?: (() => any) | undefined;
|
|
2803
|
-
onFocus?: (() => any) | undefined;
|
|
2804
2803
|
onBlur?: (() => any) | undefined;
|
|
2805
|
-
|
|
2804
|
+
onFocus?: (() => any) | undefined;
|
|
2806
2805
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
2806
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
2807
2807
|
}>>;
|
|
2808
2808
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
2809
2809
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -2872,7 +2872,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2872
2872
|
};
|
|
2873
2873
|
}, {
|
|
2874
2874
|
onKeydown: (e: KeyboardEvent) => void;
|
|
2875
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
2875
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2876
2876
|
loop: BooleanConstructor;
|
|
2877
2877
|
trapped: BooleanConstructor;
|
|
2878
2878
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -3147,10 +3147,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3147
3147
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
3148
3148
|
}>> & {
|
|
3149
3149
|
onClose?: (() => any) | undefined;
|
|
3150
|
-
onFocus?: (() => any) | undefined;
|
|
3151
3150
|
onBlur?: (() => any) | undefined;
|
|
3152
|
-
|
|
3151
|
+
onFocus?: (() => any) | undefined;
|
|
3153
3152
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
3153
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
3154
3154
|
}, {
|
|
3155
3155
|
readonly offset: number;
|
|
3156
3156
|
readonly effect: string;
|
|
@@ -5503,7 +5503,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5503
5503
|
readonly popperOptions: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
5504
5504
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5505
5505
|
}, {
|
|
5506
|
-
emit: ((event: "
|
|
5506
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
5507
5507
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
5508
5508
|
readonly id: StringConstructor;
|
|
5509
5509
|
readonly style: {
|
|
@@ -5753,10 +5753,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5753
5753
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
5754
5754
|
}>> & {
|
|
5755
5755
|
onClose?: (() => any) | undefined;
|
|
5756
|
-
onFocus?: (() => any) | undefined;
|
|
5757
5756
|
onBlur?: (() => any) | undefined;
|
|
5758
|
-
|
|
5757
|
+
onFocus?: (() => any) | undefined;
|
|
5759
5758
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
5759
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
5760
5760
|
}>>;
|
|
5761
5761
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
5762
5762
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -5825,7 +5825,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5825
5825
|
};
|
|
5826
5826
|
}, {
|
|
5827
5827
|
onKeydown: (e: KeyboardEvent) => void;
|
|
5828
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
5828
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5829
5829
|
loop: BooleanConstructor;
|
|
5830
5830
|
trapped: BooleanConstructor;
|
|
5831
5831
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -6100,10 +6100,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6100
6100
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
6101
6101
|
}>> & {
|
|
6102
6102
|
onClose?: (() => any) | undefined;
|
|
6103
|
-
onFocus?: (() => any) | undefined;
|
|
6104
6103
|
onBlur?: (() => any) | undefined;
|
|
6105
|
-
|
|
6104
|
+
onFocus?: (() => any) | undefined;
|
|
6106
6105
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
6106
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
6107
6107
|
}, {
|
|
6108
6108
|
readonly offset: number;
|
|
6109
6109
|
readonly effect: string;
|
|
@@ -8778,7 +8778,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8778
8778
|
readonly popperOptions: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
8779
8779
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
8780
8780
|
}, {
|
|
8781
|
-
emit: ((event: "
|
|
8781
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
8782
8782
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8783
8783
|
readonly id: StringConstructor;
|
|
8784
8784
|
readonly style: {
|
|
@@ -9028,10 +9028,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9028
9028
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
9029
9029
|
}>> & {
|
|
9030
9030
|
onClose?: (() => any) | undefined;
|
|
9031
|
-
onFocus?: (() => any) | undefined;
|
|
9032
9031
|
onBlur?: (() => any) | undefined;
|
|
9033
|
-
|
|
9032
|
+
onFocus?: (() => any) | undefined;
|
|
9034
9033
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
9034
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
9035
9035
|
}>>;
|
|
9036
9036
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
9037
9037
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -9100,7 +9100,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9100
9100
|
};
|
|
9101
9101
|
}, {
|
|
9102
9102
|
onKeydown: (e: KeyboardEvent) => void;
|
|
9103
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
9103
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9104
9104
|
loop: BooleanConstructor;
|
|
9105
9105
|
trapped: BooleanConstructor;
|
|
9106
9106
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -9375,10 +9375,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9375
9375
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
9376
9376
|
}>> & {
|
|
9377
9377
|
onClose?: (() => any) | undefined;
|
|
9378
|
-
onFocus?: (() => any) | undefined;
|
|
9379
9378
|
onBlur?: (() => any) | undefined;
|
|
9380
|
-
|
|
9379
|
+
onFocus?: (() => any) | undefined;
|
|
9381
9380
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
9381
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
9382
9382
|
}, {
|
|
9383
9383
|
readonly offset: number;
|
|
9384
9384
|
readonly effect: string;
|
|
@@ -11731,7 +11731,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11731
11731
|
readonly popperOptions: import("../../../utils").EpPropFinalized<(new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>) | ((new (...args: any[]) => Partial<import("@popperjs/core").Options>) | (() => Partial<import("@popperjs/core").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
11732
11732
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
11733
11733
|
}, {
|
|
11734
|
-
emit: ((event: "
|
|
11734
|
+
emit: ((event: "blur") => void) & ((event: "close") => void) & ((event: "focus") => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
11735
11735
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
11736
11736
|
readonly id: StringConstructor;
|
|
11737
11737
|
readonly style: {
|
|
@@ -11981,10 +11981,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11981
11981
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
11982
11982
|
}>> & {
|
|
11983
11983
|
onClose?: (() => any) | undefined;
|
|
11984
|
-
onFocus?: (() => any) | undefined;
|
|
11985
11984
|
onBlur?: (() => any) | undefined;
|
|
11986
|
-
|
|
11985
|
+
onFocus?: (() => any) | undefined;
|
|
11987
11986
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
11987
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
11988
11988
|
}>>;
|
|
11989
11989
|
focusStartRef: import("vue").Ref<HTMLElement | "first" | "container" | undefined>;
|
|
11990
11990
|
trapped: import("vue").Ref<boolean>;
|
|
@@ -12053,7 +12053,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12053
12053
|
};
|
|
12054
12054
|
}, {
|
|
12055
12055
|
onKeydown: (e: KeyboardEvent) => void;
|
|
12056
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
12056
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested")[], "focusin" | "focusout" | "focusAfterTrapped" | "focusAfterReleased" | "focusout-prevented" | "release-requested", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12057
12057
|
loop: BooleanConstructor;
|
|
12058
12058
|
trapped: BooleanConstructor;
|
|
12059
12059
|
focusTrapEl: import("vue").PropType<HTMLElement>;
|
|
@@ -12328,10 +12328,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12328
12328
|
readonly strategy: import("../../../utils").EpPropFinalized<StringConstructor, "fixed" | "absolute", unknown, "absolute", boolean>;
|
|
12329
12329
|
}>> & {
|
|
12330
12330
|
onClose?: (() => any) | undefined;
|
|
12331
|
-
onFocus?: (() => any) | undefined;
|
|
12332
12331
|
onBlur?: (() => any) | undefined;
|
|
12333
|
-
|
|
12332
|
+
onFocus?: (() => any) | undefined;
|
|
12334
12333
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
12334
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
12335
12335
|
}, {
|
|
12336
12336
|
readonly offset: number;
|
|
12337
12337
|
readonly effect: string;
|
|
@@ -12650,7 +12650,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12650
12650
|
menuRef: import("vue").Ref<HTMLElement>;
|
|
12651
12651
|
tagMenuRef: import("vue").Ref<HTMLElement>;
|
|
12652
12652
|
collapseItemRef: import("vue").Ref<HTMLElement>;
|
|
12653
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "focus" | "clear" | "visible-change" | "remove-tag"
|
|
12653
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "blur" | "focus" | "clear" | "visible-change" | "remove-tag")[], "update:modelValue" | "change" | "blur" | "focus" | "clear" | "visible-change" | "remove-tag", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12654
12654
|
name: StringConstructor;
|
|
12655
12655
|
id: StringConstructor;
|
|
12656
12656
|
modelValue: import("../../../utils").EpPropFinalized<(ArrayConstructor | ObjectConstructor | NumberConstructor | BooleanConstructor | StringConstructor)[], unknown, unknown, undefined, boolean>;
|
|
@@ -12720,8 +12720,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12720
12720
|
}>> & {
|
|
12721
12721
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
12722
12722
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
12723
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
12724
12723
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
12724
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
12725
12725
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
12726
12726
|
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
|
12727
12727
|
"onRemove-tag"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, getCurrentInstance, toRaw, watch } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { get, isEqual } from 'lodash-unified';
|
|
3
3
|
import '../../../utils/index.mjs';
|
|
4
4
|
import { selectKey, selectGroupKey } from './token.mjs';
|
|
5
5
|
import { isObject } from '@vue/shared';
|
|
@@ -9,10 +9,10 @@ function useOption(props, states) {
|
|
|
9
9
|
const select = inject(selectKey);
|
|
10
10
|
const selectGroup = inject(selectGroupKey, { disabled: false });
|
|
11
11
|
const itemSelected = computed(() => {
|
|
12
|
-
if (
|
|
13
|
-
return isEqual(props.value, select.props.modelValue);
|
|
14
|
-
} else {
|
|
12
|
+
if (select.props.multiple) {
|
|
15
13
|
return contains(select.props.modelValue, props.value);
|
|
14
|
+
} else {
|
|
15
|
+
return contains([select.props.modelValue], props.value);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
const limitReached = computed(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOption.mjs","sources":["../../../../../../packages/components/select/src/useOption.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, getCurrentInstance, inject, toRaw, watch } from 'vue'\nimport { get, isEqual } from 'lodash-unified'\nimport { escapeStringRegexp, isObject } from '@element-plus/utils'\nimport { selectGroupKey, selectKey } from './token'\n\nexport function useOption(props, states) {\n // inject\n const select = inject(selectKey)\n const selectGroup = inject(selectGroupKey, { disabled: false })\n\n // computed\n const itemSelected = computed(() => {\n if (
|
|
1
|
+
{"version":3,"file":"useOption.mjs","sources":["../../../../../../packages/components/select/src/useOption.ts"],"sourcesContent":["// @ts-nocheck\nimport { computed, getCurrentInstance, inject, toRaw, watch } from 'vue'\nimport { get, isEqual } from 'lodash-unified'\nimport { escapeStringRegexp, isObject } from '@element-plus/utils'\nimport { selectGroupKey, selectKey } from './token'\n\nexport function useOption(props, states) {\n // inject\n const select = inject(selectKey)\n const selectGroup = inject(selectGroupKey, { disabled: false })\n\n // computed\n const itemSelected = computed(() => {\n if (select.props.multiple) {\n return contains(select.props.modelValue as unknown[], props.value)\n } else {\n return contains([select.props.modelValue] as unknown[], props.value)\n }\n })\n\n const limitReached = computed(() => {\n if (select.props.multiple) {\n const modelValue = (select.props.modelValue || []) as unknown[]\n return (\n !itemSelected.value &&\n modelValue.length >= select.props.multipleLimit &&\n select.props.multipleLimit > 0\n )\n } else {\n return false\n }\n })\n\n const currentLabel = computed(() => {\n return props.label || (isObject(props.value) ? '' : props.value)\n })\n\n const currentValue = computed(() => {\n return props.value || props.label || ''\n })\n\n const isDisabled = computed(() => {\n return props.disabled || states.groupDisabled || limitReached.value\n })\n\n const instance = getCurrentInstance()\n\n const contains = (arr = [], target) => {\n if (!isObject(props.value)) {\n return arr && arr.includes(target)\n } else {\n const valueKey = select.props.valueKey\n return (\n arr &&\n arr.some((item) => {\n return toRaw(get(item, valueKey)) === get(target, valueKey)\n })\n )\n }\n }\n\n const hoverItem = () => {\n if (!props.disabled && !selectGroup.disabled) {\n select.states.hoveringIndex = select.optionsArray.indexOf(instance.proxy)\n }\n }\n\n const updateOption = (query: string) => {\n const regexp = new RegExp(escapeStringRegexp(query), 'i')\n states.visible = regexp.test(currentLabel.value) || props.created\n }\n\n watch(\n () => currentLabel.value,\n () => {\n if (!props.created && !select.props.remote) select.setSelected()\n }\n )\n\n watch(\n () => props.value,\n (val, oldVal) => {\n const { remote, valueKey } = select.props\n\n if (!isEqual(val, oldVal)) {\n select.onOptionDestroy(oldVal, instance.proxy)\n select.onOptionCreate(instance.proxy)\n }\n\n if (!props.created && !remote) {\n if (\n valueKey &&\n isObject(val) &&\n isObject(oldVal) &&\n val[valueKey] === oldVal[valueKey]\n ) {\n return\n }\n select.setSelected()\n }\n }\n )\n\n watch(\n () => selectGroup.disabled,\n () => {\n states.groupDisabled = selectGroup.disabled\n },\n { immediate: true }\n )\n\n return {\n select,\n currentLabel,\n currentValue,\n itemSelected,\n isDisabled,\n hoverItem,\n updateOption,\n }\n}\n"],"names":[],"mappings":"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"}
|