@element-plus/nightly 0.0.20231010 → 0.0.20231012
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 +623 -452
- package/dist/index.full.min.js +17 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +19 -19
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +623 -452
- 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.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/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/autocomplete/index.d.ts +28 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +28 -1
- package/es/components/carousel/index.d.ts +5 -0
- package/es/components/carousel/src/carousel.vue.d.ts +5 -0
- package/es/components/carousel/src/carousel2.mjs +7 -2
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/carousel/src/use-carousel.d.ts +6 -0
- package/es/components/carousel/src/use-carousel.mjs +33 -1
- package/es/components/carousel/src/use-carousel.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +150 -6
- package/es/components/cascader/src/cascader.vue.d.ts +75 -3
- package/es/components/checkbox/index.d.ts +12 -0
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +4 -0
- package/es/components/checkbox/src/checkbox.d.ts +1 -0
- package/es/components/checkbox/src/checkbox.mjs +2 -1
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +4 -0
- package/es/components/checkbox/src/checkbox2.mjs +8 -12
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/checkbox/src/composables/use-checkbox-status.mjs +2 -2
- package/es/components/checkbox/src/composables/use-checkbox-status.mjs.map +1 -1
- package/es/components/color-picker/index.d.ts +18 -1
- package/es/components/color-picker/src/color-picker.d.ts +2 -0
- package/es/components/color-picker/src/color-picker.mjs +3 -1
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +18 -1
- package/es/components/color-picker/src/color-picker2.mjs +83 -11
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +263 -11
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +263 -11
- package/es/components/date-picker/src/panel-utils.d.ts +526 -22
- package/es/components/descriptions/src/description-item.mjs.map +1 -1
- package/es/components/descriptions/src/description.mjs.map +1 -1
- package/es/components/image/index.d.ts +16 -0
- package/es/components/image/src/image.d.ts +2 -0
- package/es/components/image/src/image.mjs +8 -0
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image.vue.d.ts +16 -0
- package/es/components/image/src/image2.mjs +3 -1
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/index.d.ts +8 -0
- package/es/components/image-viewer/src/image-viewer.d.ts +2 -0
- package/es/components/image-viewer/src/image-viewer.mjs +8 -0
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +8 -0
- package/es/components/image-viewer/src/image-viewer2.mjs +3 -2
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +4 -0
- package/es/components/scrollbar/index.d.ts +28 -1
- package/es/components/scrollbar/src/scrollbar.d.ts +9 -0
- package/es/components/scrollbar/src/scrollbar.mjs +7 -0
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +28 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +12 -8
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/index.d.ts +4 -0
- package/es/components/select/src/option.mjs +9 -1
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/option.vue.d.ts +1 -0
- package/es/components/select/src/select.mjs +251 -228
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +98 -98
- package/es/components/select/src/useSelect.d.ts +1 -0
- package/es/components/select/src/useSelect.mjs +4 -2
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/table/src/table-footer/index.mjs +15 -33
- package/es/components/table/src/table-footer/index.mjs.map +1 -1
- package/es/components/table/src/table.mjs +33 -12
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +216 -9
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +263 -11
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +263 -11
- package/es/components/time-select/index.d.ts +14 -0
- package/es/components/time-select/src/time-select.vue.d.ts +16 -9
- package/es/components/transfer/index.d.ts +40 -0
- package/es/components/transfer/src/transfer-panel.vue.d.ts +8 -0
- package/es/components/transfer/src/transfer.vue.d.ts +40 -0
- package/es/components/tree-select/src/tree-select-option.d.ts +6 -0
- package/es/components/tree-v2/index.d.ts +8 -0
- package/es/components/tree-v2/src/tree-node.vue.d.ts +8 -0
- package/es/components/tree-v2/src/tree.vue.d.ts +8 -0
- package/es/hooks/use-focus-controller/index.d.ts +6 -1
- package/es/hooks/use-focus-controller/index.mjs +5 -2
- package/es/hooks/use-focus-controller/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +28 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +28 -1
- package/lib/components/carousel/index.d.ts +5 -0
- package/lib/components/carousel/src/carousel.vue.d.ts +5 -0
- package/lib/components/carousel/src/carousel2.js +7 -2
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/carousel/src/use-carousel.d.ts +6 -0
- package/lib/components/carousel/src/use-carousel.js +32 -0
- package/lib/components/carousel/src/use-carousel.js.map +1 -1
- package/lib/components/cascader/index.d.ts +150 -6
- package/lib/components/cascader/src/cascader.vue.d.ts +75 -3
- package/lib/components/checkbox/index.d.ts +12 -0
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +4 -0
- package/lib/components/checkbox/src/checkbox.d.ts +1 -0
- package/lib/components/checkbox/src/checkbox.js +2 -1
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -0
- package/lib/components/checkbox/src/checkbox2.js +8 -12
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-status.js +1 -1
- package/lib/components/checkbox/src/composables/use-checkbox-status.js.map +1 -1
- package/lib/components/color-picker/index.d.ts +18 -1
- package/lib/components/color-picker/src/color-picker.d.ts +2 -0
- package/lib/components/color-picker/src/color-picker.js +3 -1
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +18 -1
- package/lib/components/color-picker/src/color-picker2.js +93 -21
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +263 -11
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +263 -11
- package/lib/components/date-picker/src/panel-utils.d.ts +526 -22
- package/lib/components/descriptions/src/description-item.js.map +1 -1
- package/lib/components/descriptions/src/description.js.map +1 -1
- package/lib/components/image/index.d.ts +16 -0
- package/lib/components/image/src/image.d.ts +2 -0
- package/lib/components/image/src/image.js +8 -0
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image.vue.d.ts +16 -0
- package/lib/components/image/src/image2.js +3 -1
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/index.d.ts +8 -0
- package/lib/components/image-viewer/src/image-viewer.d.ts +2 -0
- package/lib/components/image-viewer/src/image-viewer.js +8 -0
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +8 -0
- package/lib/components/image-viewer/src/image-viewer2.js +3 -2
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +4 -0
- package/lib/components/scrollbar/index.d.ts +28 -1
- package/lib/components/scrollbar/src/scrollbar.d.ts +9 -0
- package/lib/components/scrollbar/src/scrollbar.js +7 -0
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +28 -1
- package/lib/components/scrollbar/src/scrollbar2.js +12 -8
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/index.d.ts +4 -0
- package/lib/components/select/src/option.js +9 -1
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/option.vue.d.ts +1 -0
- package/lib/components/select/src/select.js +251 -228
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +98 -98
- package/lib/components/select/src/useSelect.d.ts +1 -0
- package/lib/components/select/src/useSelect.js +4 -2
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/table/src/table-footer/index.js +15 -33
- package/lib/components/table/src/table-footer/index.js.map +1 -1
- package/lib/components/table/src/table.js +33 -12
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue.d.ts +216 -9
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +263 -11
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +263 -11
- package/lib/components/time-select/index.d.ts +14 -0
- package/lib/components/time-select/src/time-select.vue.d.ts +16 -9
- package/lib/components/transfer/index.d.ts +40 -0
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +8 -0
- package/lib/components/transfer/src/transfer.vue.d.ts +40 -0
- package/lib/components/tree-select/src/tree-select-option.d.ts +6 -0
- package/lib/components/tree-v2/index.d.ts +8 -0
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +8 -0
- package/lib/components/tree-v2/src/tree.vue.d.ts +8 -0
- package/lib/hooks/use-focus-controller/index.d.ts +6 -1
- package/lib/hooks/use-focus-controller/index.js +5 -2
- package/lib/hooks/use-focus-controller/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-color-picker.css +1 -1
- package/theme-chalk/el-table-v2.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-upload.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/color-picker.scss +8 -2
- package/theme-chalk/src/common/var.scss +1 -0
- package/theme-chalk/src/table.scss +37 -14
- package/theme-chalk/src/upload.scss +1 -1
- package/web-types.json +1 -1
|
@@ -29,6 +29,7 @@ var tag = require('../../tag/src/tag.js');
|
|
|
29
29
|
var event = require('../../../constants/event.js');
|
|
30
30
|
var index$6 = require('../../../hooks/use-namespace/index.js');
|
|
31
31
|
var index$7 = require('../../../hooks/use-locale/index.js');
|
|
32
|
+
var index$8 = require('../../../hooks/use-id/index.js');
|
|
32
33
|
|
|
33
34
|
const COMPONENT_NAME = "ElSelect";
|
|
34
35
|
const _sfc_main = vue.defineComponent({
|
|
@@ -154,10 +155,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
154
155
|
const nsSelect = index$6.useNamespace("select");
|
|
155
156
|
const nsInput = index$6.useNamespace("input");
|
|
156
157
|
const { t } = index$7.useLocale();
|
|
158
|
+
const contentId = index$8.useId();
|
|
157
159
|
const states = useSelect.useSelectStates(props);
|
|
158
160
|
const {
|
|
159
161
|
optionList,
|
|
160
162
|
optionsArray,
|
|
163
|
+
hoverOption,
|
|
161
164
|
selectSize,
|
|
162
165
|
readonly,
|
|
163
166
|
handleResize,
|
|
@@ -399,11 +402,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
399
402
|
handleMouseLeave,
|
|
400
403
|
showTagList,
|
|
401
404
|
collapseTagList,
|
|
402
|
-
tagTooltipRef
|
|
405
|
+
tagTooltipRef,
|
|
406
|
+
contentId,
|
|
407
|
+
hoverOption
|
|
403
408
|
};
|
|
404
409
|
}
|
|
405
410
|
});
|
|
406
|
-
const _hoisted_1 = ["disabled", "autocomplete", "aria-label"];
|
|
411
|
+
const _hoisted_1 = ["disabled", "autocomplete", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label"];
|
|
407
412
|
const _hoisted_2 = ["disabled"];
|
|
408
413
|
const _hoisted_3 = { style: { "height": "100%", "display": "flex", "justify-content": "center", "align-items": "center" } };
|
|
409
414
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -440,258 +445,276 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
440
445
|
persistent: _ctx.persistent,
|
|
441
446
|
onShow: _ctx.handleMenuEnter
|
|
442
447
|
}, {
|
|
443
|
-
default: vue.withCtx(() =>
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
key: 0,
|
|
451
|
-
ref: "tags",
|
|
452
|
-
tabindex: "-1",
|
|
453
|
-
class: vue.normalizeClass(_ctx.tagsKls),
|
|
454
|
-
style: vue.normalizeStyle(_ctx.selectTagsStyle),
|
|
455
|
-
onClick: _cache[15] || (_cache[15] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
448
|
+
default: vue.withCtx(() => {
|
|
449
|
+
var _a, _b;
|
|
450
|
+
return [
|
|
451
|
+
vue.createElementVNode("div", {
|
|
452
|
+
class: "select-trigger",
|
|
453
|
+
onMouseenter: _cache[20] || (_cache[20] = ($event) => _ctx.inputHovering = true),
|
|
454
|
+
onMouseleave: _cache[21] || (_cache[21] = ($event) => _ctx.inputHovering = false)
|
|
456
455
|
}, [
|
|
457
|
-
_ctx.
|
|
456
|
+
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
458
457
|
key: 0,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}, 1032, ["closable", "size", "hit", "type", "onClose"]);
|
|
483
|
-
}), 128)),
|
|
484
|
-
_ctx.selected.length > _ctx.maxCollapseTags ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
485
|
-
key: 0,
|
|
486
|
-
closable: false,
|
|
487
|
-
size: _ctx.collapseTagSize,
|
|
488
|
-
type: _ctx.tagType,
|
|
489
|
-
"disable-transitions": ""
|
|
490
|
-
}, {
|
|
491
|
-
default: vue.withCtx(() => [
|
|
492
|
-
_ctx.collapseTagsTooltip ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
493
|
-
key: 0,
|
|
494
|
-
ref: "tagTooltipRef",
|
|
495
|
-
disabled: _ctx.dropMenuVisible,
|
|
496
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
497
|
-
effect: _ctx.effect,
|
|
498
|
-
placement: "bottom",
|
|
499
|
-
teleported: _ctx.teleported
|
|
458
|
+
ref: "tags",
|
|
459
|
+
tabindex: "-1",
|
|
460
|
+
class: vue.normalizeClass(_ctx.tagsKls),
|
|
461
|
+
style: vue.normalizeStyle(_ctx.selectTagsStyle),
|
|
462
|
+
onClick: _cache[15] || (_cache[15] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
463
|
+
}, [
|
|
464
|
+
_ctx.collapseTags && _ctx.selected.length ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
465
|
+
key: 0,
|
|
466
|
+
onAfterLeave: _ctx.resetInputHeight
|
|
467
|
+
}, {
|
|
468
|
+
default: vue.withCtx(() => [
|
|
469
|
+
vue.createElementVNode("span", {
|
|
470
|
+
class: vue.normalizeClass(_ctx.tagWrapperKls)
|
|
471
|
+
}, [
|
|
472
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.showTagList, (item) => {
|
|
473
|
+
return vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
474
|
+
key: _ctx.getValueKey(item),
|
|
475
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
476
|
+
size: _ctx.collapseTagSize,
|
|
477
|
+
hit: item.hitState,
|
|
478
|
+
type: _ctx.tagType,
|
|
479
|
+
"disable-transitions": "",
|
|
480
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
|
500
481
|
}, {
|
|
501
482
|
default: vue.withCtx(() => [
|
|
502
483
|
vue.createElementVNode("span", {
|
|
503
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
content: vue.withCtx(() => [
|
|
507
|
-
vue.createElementVNode("div", {
|
|
508
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("collapse-tags"))
|
|
509
|
-
}, [
|
|
510
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.collapseTagList, (item) => {
|
|
511
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
512
|
-
key: _ctx.getValueKey(item),
|
|
513
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("collapse-tag"))
|
|
514
|
-
}, [
|
|
515
|
-
vue.createVNode(_component_el_tag, {
|
|
516
|
-
class: "in-tooltip",
|
|
517
|
-
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
518
|
-
size: _ctx.collapseTagSize,
|
|
519
|
-
hit: item.hitState,
|
|
520
|
-
type: _ctx.tagType,
|
|
521
|
-
"disable-transitions": "",
|
|
522
|
-
style: { margin: "2px" },
|
|
523
|
-
onClose: ($event) => _ctx.handleDeleteTooltipTag($event, item)
|
|
524
|
-
}, {
|
|
525
|
-
default: vue.withCtx(() => [
|
|
526
|
-
vue.createElementVNode("span", {
|
|
527
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text")),
|
|
528
|
-
style: vue.normalizeStyle({
|
|
529
|
-
maxWidth: _ctx.inputWidth - 75 + "px"
|
|
530
|
-
})
|
|
531
|
-
}, vue.toDisplayString(item.currentLabel), 7)
|
|
532
|
-
]),
|
|
533
|
-
_: 2
|
|
534
|
-
}, 1032, ["closable", "size", "hit", "type", "onClose"])
|
|
535
|
-
], 2);
|
|
536
|
-
}), 128))
|
|
537
|
-
], 2)
|
|
484
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text")),
|
|
485
|
+
style: vue.normalizeStyle(_ctx.tagTextStyle)
|
|
486
|
+
}, vue.toDisplayString(item.currentLabel), 7)
|
|
538
487
|
]),
|
|
539
|
-
_:
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
_: 1
|
|
546
|
-
}, 8, ["size", "type"])) : vue.createCommentVNode("v-if", true)
|
|
547
|
-
], 2)
|
|
548
|
-
]),
|
|
549
|
-
_: 1
|
|
550
|
-
}, 8, ["onAfterLeave"])) : vue.createCommentVNode("v-if", true),
|
|
551
|
-
!_ctx.collapseTags ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
552
|
-
key: 1,
|
|
553
|
-
onAfterLeave: _ctx.resetInputHeight
|
|
554
|
-
}, {
|
|
555
|
-
default: vue.withCtx(() => [
|
|
556
|
-
vue.createElementVNode("span", {
|
|
557
|
-
class: vue.normalizeClass(_ctx.tagWrapperKls),
|
|
558
|
-
style: vue.normalizeStyle(_ctx.prefixWidth && _ctx.selected.length ? { marginLeft: `${_ctx.prefixWidth}px` } : "")
|
|
559
|
-
}, [
|
|
560
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.selected, (item) => {
|
|
561
|
-
return vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
562
|
-
key: _ctx.getValueKey(item),
|
|
563
|
-
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
488
|
+
_: 2
|
|
489
|
+
}, 1032, ["closable", "size", "hit", "type", "onClose"]);
|
|
490
|
+
}), 128)),
|
|
491
|
+
_ctx.selected.length > _ctx.maxCollapseTags ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
492
|
+
key: 0,
|
|
493
|
+
closable: false,
|
|
564
494
|
size: _ctx.collapseTagSize,
|
|
565
|
-
hit: item.hitState,
|
|
566
495
|
type: _ctx.tagType,
|
|
567
|
-
"disable-transitions": ""
|
|
568
|
-
onClose: ($event) => _ctx.deleteTag($event, item)
|
|
496
|
+
"disable-transitions": ""
|
|
569
497
|
}, {
|
|
570
498
|
default: vue.withCtx(() => [
|
|
571
|
-
vue.
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
499
|
+
_ctx.collapseTagsTooltip ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
500
|
+
key: 0,
|
|
501
|
+
ref: "tagTooltipRef",
|
|
502
|
+
disabled: _ctx.dropMenuVisible,
|
|
503
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
504
|
+
effect: _ctx.effect,
|
|
505
|
+
placement: "bottom",
|
|
506
|
+
teleported: _ctx.teleported
|
|
507
|
+
}, {
|
|
508
|
+
default: vue.withCtx(() => [
|
|
509
|
+
vue.createElementVNode("span", {
|
|
510
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
511
|
+
}, "+ " + vue.toDisplayString(_ctx.selected.length - _ctx.maxCollapseTags), 3)
|
|
512
|
+
]),
|
|
513
|
+
content: vue.withCtx(() => [
|
|
514
|
+
vue.createElementVNode("div", {
|
|
515
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("collapse-tags"))
|
|
516
|
+
}, [
|
|
517
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.collapseTagList, (item) => {
|
|
518
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
519
|
+
key: _ctx.getValueKey(item),
|
|
520
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("collapse-tag"))
|
|
521
|
+
}, [
|
|
522
|
+
vue.createVNode(_component_el_tag, {
|
|
523
|
+
class: "in-tooltip",
|
|
524
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
525
|
+
size: _ctx.collapseTagSize,
|
|
526
|
+
hit: item.hitState,
|
|
527
|
+
type: _ctx.tagType,
|
|
528
|
+
"disable-transitions": "",
|
|
529
|
+
style: { margin: "2px" },
|
|
530
|
+
onClose: ($event) => _ctx.handleDeleteTooltipTag($event, item)
|
|
531
|
+
}, {
|
|
532
|
+
default: vue.withCtx(() => [
|
|
533
|
+
vue.createElementVNode("span", {
|
|
534
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text")),
|
|
535
|
+
style: vue.normalizeStyle({
|
|
536
|
+
maxWidth: _ctx.inputWidth - 75 + "px"
|
|
537
|
+
})
|
|
538
|
+
}, vue.toDisplayString(item.currentLabel), 7)
|
|
539
|
+
]),
|
|
540
|
+
_: 2
|
|
541
|
+
}, 1032, ["closable", "size", "hit", "type", "onClose"])
|
|
542
|
+
], 2);
|
|
543
|
+
}), 128))
|
|
544
|
+
], 2)
|
|
545
|
+
]),
|
|
546
|
+
_: 1
|
|
547
|
+
}, 8, ["disabled", "effect", "teleported"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
548
|
+
key: 1,
|
|
549
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
550
|
+
}, "+ " + vue.toDisplayString(_ctx.selected.length - _ctx.maxCollapseTags), 3))
|
|
575
551
|
]),
|
|
576
|
-
_:
|
|
577
|
-
},
|
|
578
|
-
|
|
579
|
-
], 6)
|
|
580
|
-
]),
|
|
581
|
-
_: 1
|
|
582
|
-
}, 8, ["onAfterLeave"])) : vue.createCommentVNode("v-if", true),
|
|
583
|
-
_ctx.filterable && !_ctx.selectDisabled ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
584
|
-
key: 2,
|
|
585
|
-
ref: "input",
|
|
586
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.query = $event),
|
|
587
|
-
type: "text",
|
|
588
|
-
class: vue.normalizeClass(_ctx.inputKls),
|
|
589
|
-
disabled: _ctx.selectDisabled,
|
|
590
|
-
autocomplete: _ctx.autocomplete,
|
|
591
|
-
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
592
|
-
"aria-label": _ctx.ariaLabel,
|
|
593
|
-
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
594
|
-
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
|
|
595
|
-
onKeyup: _cache[3] || (_cache[3] = (...args) => _ctx.managePlaceholder && _ctx.managePlaceholder(...args)),
|
|
596
|
-
onKeydown: [
|
|
597
|
-
_cache[4] || (_cache[4] = (...args) => _ctx.resetInputState && _ctx.resetInputState(...args)),
|
|
598
|
-
_cache[5] || (_cache[5] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
|
|
599
|
-
_cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"])),
|
|
600
|
-
_cache[7] || (_cache[7] = vue.withKeys((...args) => _ctx.handleKeydownEscape && _ctx.handleKeydownEscape(...args), ["esc"])),
|
|
601
|
-
_cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers((...args) => _ctx.selectOption && _ctx.selectOption(...args), ["stop", "prevent"]), ["enter"])),
|
|
602
|
-
_cache[9] || (_cache[9] = vue.withKeys((...args) => _ctx.deletePrevTag && _ctx.deletePrevTag(...args), ["delete"])),
|
|
603
|
-
_cache[10] || (_cache[10] = vue.withKeys(($event) => _ctx.visible = false, ["tab"]))
|
|
604
|
-
],
|
|
605
|
-
onCompositionstart: _cache[11] || (_cache[11] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
606
|
-
onCompositionupdate: _cache[12] || (_cache[12] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
607
|
-
onCompositionend: _cache[13] || (_cache[13] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
608
|
-
onInput: _cache[14] || (_cache[14] = (...args) => _ctx.debouncedQueryChange && _ctx.debouncedQueryChange(...args))
|
|
609
|
-
}, null, 46, _hoisted_1)), [
|
|
610
|
-
[vue.vModelText, _ctx.query]
|
|
611
|
-
]) : vue.createCommentVNode("v-if", true)
|
|
612
|
-
], 6)) : vue.createCommentVNode("v-if", true),
|
|
613
|
-
vue.createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),
|
|
614
|
-
_ctx.isIOS && !_ctx.multiple && _ctx.filterable && _ctx.readonly ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
615
|
-
key: 1,
|
|
616
|
-
ref: "iOSInput",
|
|
617
|
-
class: vue.normalizeClass(_ctx.iOSInputKls),
|
|
618
|
-
disabled: _ctx.selectDisabled,
|
|
619
|
-
type: "text"
|
|
620
|
-
}, null, 10, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
621
|
-
vue.createVNode(_component_el_input, {
|
|
622
|
-
id: _ctx.id,
|
|
623
|
-
ref: "reference",
|
|
624
|
-
modelValue: _ctx.selectedLabel,
|
|
625
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => _ctx.selectedLabel = $event),
|
|
626
|
-
type: "text",
|
|
627
|
-
placeholder: typeof _ctx.currentPlaceholder === "function" ? _ctx.currentPlaceholder() : _ctx.currentPlaceholder,
|
|
628
|
-
name: _ctx.name,
|
|
629
|
-
autocomplete: _ctx.autocomplete,
|
|
630
|
-
size: _ctx.selectSize,
|
|
631
|
-
disabled: _ctx.selectDisabled,
|
|
632
|
-
readonly: _ctx.readonly,
|
|
633
|
-
"validate-event": false,
|
|
634
|
-
class: vue.normalizeClass([_ctx.nsSelect.is("focus", _ctx.visible)]),
|
|
635
|
-
tabindex: _ctx.multiple && _ctx.filterable ? -1 : void 0,
|
|
636
|
-
label: _ctx.ariaLabel,
|
|
637
|
-
onFocus: _ctx.handleFocus,
|
|
638
|
-
onBlur: _ctx.handleBlur,
|
|
639
|
-
onInput: _ctx.debouncedOnInputChange,
|
|
640
|
-
onPaste: _ctx.debouncedOnInputChange,
|
|
641
|
-
onCompositionstart: _ctx.handleComposition,
|
|
642
|
-
onCompositionupdate: _ctx.handleComposition,
|
|
643
|
-
onCompositionend: _ctx.handleComposition,
|
|
644
|
-
onKeydown: [
|
|
645
|
-
_cache[17] || (_cache[17] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"])),
|
|
646
|
-
_cache[18] || (_cache[18] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"])),
|
|
647
|
-
vue.withKeys(vue.withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
648
|
-
vue.withKeys(_ctx.handleKeydownEscape, ["esc"]),
|
|
649
|
-
_cache[19] || (_cache[19] = vue.withKeys(($event) => _ctx.visible = false, ["tab"]))
|
|
650
|
-
]
|
|
651
|
-
}, vue.createSlots({
|
|
652
|
-
suffix: vue.withCtx(() => [
|
|
653
|
-
_ctx.iconComponent && !_ctx.showClose ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
654
|
-
key: 0,
|
|
655
|
-
class: vue.normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
|
|
656
|
-
}, {
|
|
657
|
-
default: vue.withCtx(() => [
|
|
658
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
552
|
+
_: 1
|
|
553
|
+
}, 8, ["size", "type"])) : vue.createCommentVNode("v-if", true)
|
|
554
|
+
], 2)
|
|
659
555
|
]),
|
|
660
556
|
_: 1
|
|
661
|
-
}, 8, ["
|
|
662
|
-
_ctx.
|
|
557
|
+
}, 8, ["onAfterLeave"])) : vue.createCommentVNode("v-if", true),
|
|
558
|
+
!_ctx.collapseTags ? (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
663
559
|
key: 1,
|
|
664
|
-
|
|
665
|
-
onClick: _ctx.handleClearClick
|
|
560
|
+
onAfterLeave: _ctx.resetInputHeight
|
|
666
561
|
}, {
|
|
667
562
|
default: vue.withCtx(() => [
|
|
668
|
-
|
|
563
|
+
vue.createElementVNode("span", {
|
|
564
|
+
class: vue.normalizeClass(_ctx.tagWrapperKls),
|
|
565
|
+
style: vue.normalizeStyle(_ctx.prefixWidth && _ctx.selected.length ? { marginLeft: `${_ctx.prefixWidth}px` } : "")
|
|
566
|
+
}, [
|
|
567
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.selected, (item) => {
|
|
568
|
+
return vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
569
|
+
key: _ctx.getValueKey(item),
|
|
570
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
571
|
+
size: _ctx.collapseTagSize,
|
|
572
|
+
hit: item.hitState,
|
|
573
|
+
type: _ctx.tagType,
|
|
574
|
+
"disable-transitions": "",
|
|
575
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
|
576
|
+
}, {
|
|
577
|
+
default: vue.withCtx(() => [
|
|
578
|
+
vue.createElementVNode("span", {
|
|
579
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text")),
|
|
580
|
+
style: vue.normalizeStyle({ maxWidth: _ctx.inputWidth - 75 + "px" })
|
|
581
|
+
}, vue.toDisplayString(item.currentLabel), 7)
|
|
582
|
+
]),
|
|
583
|
+
_: 2
|
|
584
|
+
}, 1032, ["closable", "size", "hit", "type", "onClose"]);
|
|
585
|
+
}), 128))
|
|
586
|
+
], 6)
|
|
669
587
|
]),
|
|
670
588
|
_: 1
|
|
671
|
-
}, 8, ["
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
589
|
+
}, 8, ["onAfterLeave"])) : vue.createCommentVNode("v-if", true),
|
|
590
|
+
_ctx.filterable && !_ctx.selectDisabled ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
591
|
+
key: 2,
|
|
592
|
+
ref: "input",
|
|
593
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.query = $event),
|
|
594
|
+
type: "text",
|
|
595
|
+
class: vue.normalizeClass(_ctx.inputKls),
|
|
596
|
+
disabled: _ctx.selectDisabled,
|
|
597
|
+
autocomplete: _ctx.autocomplete,
|
|
598
|
+
style: vue.normalizeStyle(_ctx.inputStyle),
|
|
599
|
+
role: "combobox",
|
|
600
|
+
"aria-activedescendant": ((_a = _ctx.hoverOption) == null ? void 0 : _a.id) || "",
|
|
601
|
+
"aria-controls": _ctx.contentId,
|
|
602
|
+
"aria-expanded": _ctx.dropMenuVisible,
|
|
603
|
+
"aria-label": _ctx.ariaLabel,
|
|
604
|
+
"aria-autocomplete": "none",
|
|
605
|
+
"aria-haspopup": "listbox",
|
|
606
|
+
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
607
|
+
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
|
|
608
|
+
onKeyup: _cache[3] || (_cache[3] = (...args) => _ctx.managePlaceholder && _ctx.managePlaceholder(...args)),
|
|
609
|
+
onKeydown: [
|
|
610
|
+
_cache[4] || (_cache[4] = (...args) => _ctx.resetInputState && _ctx.resetInputState(...args)),
|
|
611
|
+
_cache[5] || (_cache[5] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("next"), ["prevent"]), ["down"])),
|
|
612
|
+
_cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("prev"), ["prevent"]), ["up"])),
|
|
613
|
+
_cache[7] || (_cache[7] = vue.withKeys((...args) => _ctx.handleKeydownEscape && _ctx.handleKeydownEscape(...args), ["esc"])),
|
|
614
|
+
_cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers((...args) => _ctx.selectOption && _ctx.selectOption(...args), ["stop", "prevent"]), ["enter"])),
|
|
615
|
+
_cache[9] || (_cache[9] = vue.withKeys((...args) => _ctx.deletePrevTag && _ctx.deletePrevTag(...args), ["delete"])),
|
|
616
|
+
_cache[10] || (_cache[10] = vue.withKeys(($event) => _ctx.visible = false, ["tab"]))
|
|
617
|
+
],
|
|
618
|
+
onCompositionstart: _cache[11] || (_cache[11] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
619
|
+
onCompositionupdate: _cache[12] || (_cache[12] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
620
|
+
onCompositionend: _cache[13] || (_cache[13] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
621
|
+
onInput: _cache[14] || (_cache[14] = (...args) => _ctx.debouncedQueryChange && _ctx.debouncedQueryChange(...args))
|
|
622
|
+
}, null, 46, _hoisted_1)), [
|
|
623
|
+
[vue.vModelText, _ctx.query]
|
|
624
|
+
]) : vue.createCommentVNode("v-if", true)
|
|
625
|
+
], 6)) : vue.createCommentVNode("v-if", true),
|
|
626
|
+
_ctx.isIOS && !_ctx.multiple && _ctx.filterable && _ctx.readonly ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
627
|
+
key: 1,
|
|
628
|
+
ref: "iOSInput",
|
|
629
|
+
class: vue.normalizeClass(_ctx.iOSInputKls),
|
|
630
|
+
disabled: _ctx.selectDisabled,
|
|
631
|
+
type: "text"
|
|
632
|
+
}, null, 10, _hoisted_2)) : vue.createCommentVNode("v-if", true),
|
|
633
|
+
vue.createVNode(_component_el_input, {
|
|
634
|
+
id: _ctx.id,
|
|
635
|
+
ref: "reference",
|
|
636
|
+
modelValue: _ctx.selectedLabel,
|
|
637
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => _ctx.selectedLabel = $event),
|
|
638
|
+
type: "text",
|
|
639
|
+
placeholder: typeof _ctx.currentPlaceholder === "function" ? _ctx.currentPlaceholder() : _ctx.currentPlaceholder,
|
|
640
|
+
name: _ctx.name,
|
|
641
|
+
autocomplete: _ctx.autocomplete,
|
|
642
|
+
size: _ctx.selectSize,
|
|
643
|
+
disabled: _ctx.selectDisabled,
|
|
644
|
+
readonly: _ctx.readonly,
|
|
645
|
+
"validate-event": false,
|
|
646
|
+
class: vue.normalizeClass([_ctx.nsSelect.is("focus", _ctx.visible)]),
|
|
647
|
+
tabindex: _ctx.multiple && _ctx.filterable ? -1 : void 0,
|
|
648
|
+
role: "combobox",
|
|
649
|
+
"aria-activedescendant": ((_b = _ctx.hoverOption) == null ? void 0 : _b.id) || "",
|
|
650
|
+
"aria-controls": _ctx.contentId,
|
|
651
|
+
"aria-expanded": _ctx.dropMenuVisible,
|
|
652
|
+
label: _ctx.ariaLabel,
|
|
653
|
+
"aria-autocomplete": "none",
|
|
654
|
+
"aria-haspopup": "listbox",
|
|
655
|
+
onFocus: _ctx.handleFocus,
|
|
656
|
+
onBlur: _ctx.handleBlur,
|
|
657
|
+
onInput: _ctx.debouncedOnInputChange,
|
|
658
|
+
onPaste: _ctx.debouncedOnInputChange,
|
|
659
|
+
onCompositionstart: _ctx.handleComposition,
|
|
660
|
+
onCompositionupdate: _ctx.handleComposition,
|
|
661
|
+
onCompositionend: _ctx.handleComposition,
|
|
662
|
+
onKeydown: [
|
|
663
|
+
_cache[17] || (_cache[17] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"])),
|
|
664
|
+
_cache[18] || (_cache[18] = vue.withKeys(vue.withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"])),
|
|
665
|
+
vue.withKeys(vue.withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
666
|
+
vue.withKeys(_ctx.handleKeydownEscape, ["esc"]),
|
|
667
|
+
_cache[19] || (_cache[19] = vue.withKeys(($event) => _ctx.visible = false, ["tab"]))
|
|
668
|
+
]
|
|
669
|
+
}, vue.createSlots({
|
|
670
|
+
suffix: vue.withCtx(() => [
|
|
671
|
+
_ctx.iconComponent && !_ctx.showClose ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
672
|
+
key: 0,
|
|
673
|
+
class: vue.normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
|
|
674
|
+
}, {
|
|
675
|
+
default: vue.withCtx(() => [
|
|
676
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
677
|
+
]),
|
|
678
|
+
_: 1
|
|
679
|
+
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
680
|
+
_ctx.showClose && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
681
|
+
key: 1,
|
|
682
|
+
class: vue.normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon")]),
|
|
683
|
+
onClick: _ctx.handleClearClick
|
|
684
|
+
}, {
|
|
685
|
+
default: vue.withCtx(() => [
|
|
686
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
687
|
+
]),
|
|
688
|
+
_: 1
|
|
689
|
+
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
690
|
+
]),
|
|
691
|
+
_: 2
|
|
692
|
+
}, [
|
|
693
|
+
_ctx.$slots.prefix ? {
|
|
694
|
+
name: "prefix",
|
|
695
|
+
fn: vue.withCtx(() => [
|
|
696
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
697
|
+
vue.renderSlot(_ctx.$slots, "prefix")
|
|
698
|
+
])
|
|
680
699
|
])
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
]
|
|
684
|
-
]
|
|
685
|
-
|
|
700
|
+
} : void 0
|
|
701
|
+
]), 1032, ["id", "modelValue", "placeholder", "name", "autocomplete", "size", "disabled", "readonly", "class", "tabindex", "aria-activedescendant", "aria-controls", "aria-expanded", "label", "onFocus", "onBlur", "onInput", "onPaste", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onKeydown"])
|
|
702
|
+
], 32)
|
|
703
|
+
];
|
|
704
|
+
}),
|
|
686
705
|
content: vue.withCtx(() => [
|
|
687
706
|
vue.createVNode(_component_el_select_menu, null, {
|
|
688
707
|
default: vue.withCtx(() => [
|
|
689
708
|
vue.withDirectives(vue.createVNode(_component_el_scrollbar, {
|
|
709
|
+
id: _ctx.contentId,
|
|
690
710
|
ref: "scrollbar",
|
|
691
711
|
tag: "ul",
|
|
692
712
|
"wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
|
|
693
713
|
"view-class": _ctx.nsSelect.be("dropdown", "list"),
|
|
694
|
-
class: vue.normalizeClass(_ctx.scrollbarKls)
|
|
714
|
+
class: vue.normalizeClass(_ctx.scrollbarKls),
|
|
715
|
+
role: "listbox",
|
|
716
|
+
"aria-label": _ctx.ariaLabel,
|
|
717
|
+
"aria-orientation": "vertical"
|
|
695
718
|
}, {
|
|
696
719
|
default: vue.withCtx(() => [
|
|
697
720
|
_ctx.showNewOption ? (vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
@@ -707,7 +730,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
707
730
|
}, 8, ["onUpdateOptions"])
|
|
708
731
|
]),
|
|
709
732
|
_: 3
|
|
710
|
-
}, 8, ["wrap-class", "view-class", "class"]), [
|
|
733
|
+
}, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [
|
|
711
734
|
[vue.vShow, _ctx.options.size > 0 && !_ctx.loading]
|
|
712
735
|
]),
|
|
713
736
|
_ctx.emptyText && (!_ctx.allowCreate || _ctx.loading || _ctx.allowCreate && _ctx.options.size === 0) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|