@element-plus/nightly 0.0.20250608 → 0.0.20250610
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/dist/index.full.js +92 -112
- package/dist/index.full.min.js +16 -16
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +16 -16
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +92 -112
- 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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.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.mjs +2 -2
- package/es/components/alert/src/alert.mjs +41 -108
- package/es/components/alert/src/alert.mjs.map +1 -1
- package/es/components/alert/src/alert2.mjs +108 -41
- package/es/components/alert/src/alert2.mjs.map +1 -1
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +87 -62
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +62 -87
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +206 -115
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +115 -206
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/checkbox/index.mjs +2 -2
- package/es/components/checkbox/src/checkbox-button.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +59 -119
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +119 -59
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +28 -23
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +23 -28
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +39 -399
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +399 -39
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.mjs +1 -1
- package/es/components/date-picker/src/composables/use-range-picker.d.ts +2 -1
- package/es/components/date-picker/src/composables/use-range-picker.mjs +2 -0
- package/es/components/date-picker/src/composables/use-range-picker.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs +9 -2
- package/es/components/date-picker/src/date-picker-com/panel-month-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -0
- package/es/components/date-picker/src/date-picker-com/panel-year-range.mjs +77 -107
- package/es/components/date-picker/src/date-picker-com/panel-year-range.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-year-range.vue.d.ts +3 -0
- package/es/components/date-picker/src/panel-utils.d.ts +12 -5
- package/es/components/date-picker/src/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker/src/props/panel-date-range.mjs +1 -2
- package/es/components/date-picker/src/props/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker/src/props/panel-month-range.d.ts +1 -0
- package/es/components/date-picker/src/props/panel-year-range.d.ts +1 -0
- package/es/components/date-picker/src/props/shared.d.ts +1 -0
- package/es/components/date-picker/src/props/shared.mjs +1 -0
- package/es/components/date-picker/src/props/shared.mjs.map +1 -1
- package/es/components/date-picker/src/utils.d.ts +2 -1
- package/es/components/date-picker/src/utils.mjs +5 -5
- package/es/components/date-picker/src/utils.mjs.map +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +47 -320
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +320 -47
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +54 -160
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +160 -54
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +35 -8
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +8 -35
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/index.mjs +22 -22
- package/es/components/notification/index.mjs +1 -1
- package/es/components/notification/src/notification.mjs +73 -140
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +140 -73
- package/es/components/notification/src/notification2.mjs.map +1 -1
- package/es/components/notification/src/notify.mjs +2 -2
- package/es/components/pagination/src/components/pager.mjs +210 -16
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +16 -210
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.mjs +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +30 -7
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +7 -30
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +94 -130
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +130 -94
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/segmented/index.mjs +2 -2
- package/es/components/segmented/src/segmented.mjs +42 -168
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs +168 -42
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +448 -130
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +130 -448
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/slider/index.mjs +2 -2
- package/es/components/slider/src/button.mjs +91 -19
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button2.mjs +19 -91
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/slider.mjs +92 -238
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider2.mjs +238 -92
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/splitter.mjs +7 -77
- package/es/components/splitter/src/splitter.mjs.map +1 -1
- package/es/components/splitter/src/splitter2.mjs +77 -7
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +13 -71
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +71 -13
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip.mjs +30 -169
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +169 -30
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/step.mjs +168 -44
- package/es/components/tour/src/step.mjs.map +1 -1
- package/es/components/tour/src/step2.mjs +44 -168
- package/es/components/tour/src/step2.mjs.map +1 -1
- package/es/components/upload/index.mjs +2 -2
- package/es/components/upload/src/upload-content.mjs +33 -196
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +196 -33
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger.mjs +10 -56
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +56 -10
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +22 -22
- 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.js +2 -2
- package/lib/components/alert/src/alert.js +42 -107
- package/lib/components/alert/src/alert.js.map +1 -1
- package/lib/components/alert/src/alert2.js +107 -42
- package/lib/components/alert/src/alert2.js.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +87 -65
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +65 -87
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +206 -115
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +115 -206
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/checkbox/index.js +2 -2
- package/lib/components/checkbox/src/checkbox-button.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +60 -119
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +119 -60
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +28 -25
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +25 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +40 -398
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +398 -40
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.js +1 -1
- package/lib/components/date-picker/src/composables/use-range-picker.d.ts +2 -1
- package/lib/components/date-picker/src/composables/use-range-picker.js +2 -0
- package/lib/components/date-picker/src/composables/use-range-picker.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js +8 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +3 -0
- package/lib/components/date-picker/src/date-picker-com/panel-year-range.js +79 -109
- package/lib/components/date-picker/src/date-picker-com/panel-year-range.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-year-range.vue.d.ts +3 -0
- package/lib/components/date-picker/src/panel-utils.d.ts +12 -5
- package/lib/components/date-picker/src/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker/src/props/panel-date-range.js +1 -2
- package/lib/components/date-picker/src/props/panel-date-range.js.map +1 -1
- package/lib/components/date-picker/src/props/panel-month-range.d.ts +1 -0
- package/lib/components/date-picker/src/props/panel-year-range.d.ts +1 -0
- package/lib/components/date-picker/src/props/shared.d.ts +1 -0
- package/lib/components/date-picker/src/props/shared.js +1 -0
- package/lib/components/date-picker/src/props/shared.js.map +1 -1
- package/lib/components/date-picker/src/utils.d.ts +2 -1
- package/lib/components/date-picker/src/utils.js +5 -5
- package/lib/components/date-picker/src/utils.js.map +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +48 -324
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +324 -48
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +55 -159
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +159 -55
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +35 -8
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +8 -35
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/index.js +22 -22
- package/lib/components/notification/index.js +1 -1
- package/lib/components/notification/src/notification.js +74 -139
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification2.js +139 -74
- package/lib/components/notification/src/notification2.js.map +1 -1
- package/lib/components/notification/src/notify.js +2 -2
- package/lib/components/pagination/src/components/pager.js +210 -16
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +16 -210
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +1 -1
- package/lib/components/popconfirm/src/popconfirm.js +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +30 -8
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +8 -30
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/content.js +99 -130
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +130 -99
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/segmented/index.js +2 -2
- package/lib/components/segmented/src/segmented.js +44 -168
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js +168 -44
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +448 -131
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +131 -448
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/slider/index.js +2 -2
- package/lib/components/slider/src/button.js +91 -20
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button2.js +20 -91
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/slider.js +93 -238
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider2.js +238 -93
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/splitter.js +7 -77
- package/lib/components/splitter/src/splitter.js.map +1 -1
- package/lib/components/splitter/src/splitter2.js +77 -7
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +13 -71
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +71 -13
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip.js +33 -168
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +168 -33
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/step.js +167 -44
- package/lib/components/tour/src/step.js.map +1 -1
- package/lib/components/tour/src/step2.js +44 -167
- package/lib/components/tour/src/step2.js.map +1 -1
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload/src/upload-content.js +31 -194
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +194 -31
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-dragger.js +11 -56
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +56 -11
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +22 -22
- 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/web-types.json +1 -1
@@ -1,136 +1,454 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import
|
1
|
+
import { defineComponent, computed, reactive, toRefs, watchEffect, nextTick, h, Fragment, provide, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, toHandlerKey, createVNode, withCtx, createElementVNode, withModifiers, renderSlot, createCommentVNode, renderList, normalizeStyle, createTextVNode, toDisplayString, createBlock, withKeys, vModelText, resolveDynamicComponent, vShow } from 'vue';
|
2
|
+
import { ElTooltip } from '../../tooltip/index.mjs';
|
3
|
+
import { ElScrollbar } from '../../scrollbar/index.mjs';
|
4
|
+
import { ElTag } from '../../tag/index.mjs';
|
5
|
+
import { ElIcon } from '../../icon/index.mjs';
|
6
|
+
import Option from './option2.mjs';
|
7
|
+
import ElSelectMenu from './select-dropdown.mjs';
|
8
|
+
import { useSelect } from './useSelect.mjs';
|
9
|
+
import { selectKey } from './token.mjs';
|
10
|
+
import ElOptions from './options.mjs';
|
11
|
+
import { selectProps } from './select2.mjs';
|
12
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
13
|
+
import ClickOutside from '../../../directives/click-outside/index.mjs';
|
11
14
|
import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
15
|
+
import { isArray, isObject } from '@vue/shared';
|
16
|
+
import { useCalcInputWidth } from '../../../hooks/use-calc-input-width/index.mjs';
|
17
|
+
import { flattedChildren } from '../../../utils/vue/vnode.mjs';
|
12
18
|
|
13
|
-
const
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
const COMPONENT_NAME = "ElSelect";
|
20
|
+
const _sfc_main = defineComponent({
|
21
|
+
name: COMPONENT_NAME,
|
22
|
+
componentName: COMPONENT_NAME,
|
23
|
+
components: {
|
24
|
+
ElSelectMenu,
|
25
|
+
ElOption: Option,
|
26
|
+
ElOptions,
|
27
|
+
ElTag,
|
28
|
+
ElScrollbar,
|
29
|
+
ElTooltip,
|
30
|
+
ElIcon
|
25
31
|
},
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
default: true
|
97
|
-
},
|
98
|
-
remoteShowSuffix: Boolean,
|
99
|
-
showArrow: {
|
100
|
-
type: Boolean,
|
101
|
-
default: true
|
102
|
-
},
|
103
|
-
offset: {
|
104
|
-
type: Number,
|
105
|
-
default: 12
|
106
|
-
},
|
107
|
-
placement: {
|
108
|
-
type: definePropType(String),
|
109
|
-
values: placements,
|
110
|
-
default: "bottom-start"
|
111
|
-
},
|
112
|
-
fallbackPlacements: {
|
113
|
-
type: definePropType(Array),
|
114
|
-
default: ["bottom-start", "top-start", "right", "left"]
|
115
|
-
},
|
116
|
-
tabindex: {
|
117
|
-
type: [String, Number],
|
118
|
-
default: 0
|
119
|
-
},
|
120
|
-
appendTo: useTooltipContentProps.appendTo,
|
121
|
-
...useEmptyValuesProps,
|
122
|
-
...useAriaProps(["ariaLabel"])
|
32
|
+
directives: { ClickOutside },
|
33
|
+
props: selectProps,
|
34
|
+
emits: [
|
35
|
+
UPDATE_MODEL_EVENT,
|
36
|
+
CHANGE_EVENT,
|
37
|
+
"remove-tag",
|
38
|
+
"clear",
|
39
|
+
"visible-change",
|
40
|
+
"focus",
|
41
|
+
"blur",
|
42
|
+
"popup-scroll"
|
43
|
+
],
|
44
|
+
setup(props, { emit, slots }) {
|
45
|
+
const modelValue = computed(() => {
|
46
|
+
const { modelValue: rawModelValue, multiple } = props;
|
47
|
+
const fallback = multiple ? [] : void 0;
|
48
|
+
if (isArray(rawModelValue)) {
|
49
|
+
return multiple ? rawModelValue : fallback;
|
50
|
+
}
|
51
|
+
return multiple ? fallback : rawModelValue;
|
52
|
+
});
|
53
|
+
const _props = reactive({
|
54
|
+
...toRefs(props),
|
55
|
+
modelValue
|
56
|
+
});
|
57
|
+
const API = useSelect(_props, emit);
|
58
|
+
const { calculatorRef, inputStyle } = useCalcInputWidth();
|
59
|
+
const manuallyRenderSlots = (vnodes) => {
|
60
|
+
const children = flattedChildren(vnodes);
|
61
|
+
children.filter((item) => {
|
62
|
+
return isObject(item) && item.type.name === "ElOption";
|
63
|
+
}).forEach((item) => {
|
64
|
+
const obj = { ...item.props };
|
65
|
+
obj.currentLabel = obj.label || (isObject(obj.value) ? "" : obj.value);
|
66
|
+
API.onOptionCreate(obj);
|
67
|
+
});
|
68
|
+
};
|
69
|
+
watchEffect(() => {
|
70
|
+
if (!props.persistent) {
|
71
|
+
nextTick(() => {
|
72
|
+
var _a, _b;
|
73
|
+
const defaultSlots = h(Fragment, (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : []).children;
|
74
|
+
manuallyRenderSlots(defaultSlots);
|
75
|
+
});
|
76
|
+
}
|
77
|
+
});
|
78
|
+
provide(selectKey, reactive({
|
79
|
+
props: _props,
|
80
|
+
states: API.states,
|
81
|
+
selectRef: API.selectRef,
|
82
|
+
optionsArray: API.optionsArray,
|
83
|
+
setSelected: API.setSelected,
|
84
|
+
handleOptionSelect: API.handleOptionSelect,
|
85
|
+
onOptionCreate: API.onOptionCreate,
|
86
|
+
onOptionDestroy: API.onOptionDestroy
|
87
|
+
}));
|
88
|
+
const selectedLabel = computed(() => {
|
89
|
+
if (!props.multiple) {
|
90
|
+
return API.states.selectedLabel;
|
91
|
+
}
|
92
|
+
return API.states.selected.map((i) => i.currentLabel);
|
93
|
+
});
|
94
|
+
return {
|
95
|
+
...API,
|
96
|
+
modelValue,
|
97
|
+
selectedLabel,
|
98
|
+
calculatorRef,
|
99
|
+
inputStyle
|
100
|
+
};
|
101
|
+
}
|
123
102
|
});
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
"
|
128
|
-
"
|
129
|
-
"
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
103
|
+
function _sfc_render(_ctx, _cache) {
|
104
|
+
const _component_el_tag = resolveComponent("el-tag");
|
105
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
106
|
+
const _component_el_icon = resolveComponent("el-icon");
|
107
|
+
const _component_el_option = resolveComponent("el-option");
|
108
|
+
const _component_el_options = resolveComponent("el-options");
|
109
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
110
|
+
const _component_el_select_menu = resolveComponent("el-select-menu");
|
111
|
+
const _directive_click_outside = resolveDirective("click-outside");
|
112
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
113
|
+
ref: "selectRef",
|
114
|
+
class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
|
115
|
+
[toHandlerKey(_ctx.mouseEnterEventName)]: ($event) => _ctx.states.inputHovering = true,
|
116
|
+
onMouseleave: ($event) => _ctx.states.inputHovering = false
|
117
|
+
}, [
|
118
|
+
createVNode(_component_el_tooltip, {
|
119
|
+
ref: "tooltipRef",
|
120
|
+
visible: _ctx.dropdownMenuVisible,
|
121
|
+
placement: _ctx.placement,
|
122
|
+
teleported: _ctx.teleported,
|
123
|
+
"popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
|
124
|
+
"popper-options": _ctx.popperOptions,
|
125
|
+
"fallback-placements": _ctx.fallbackPlacements,
|
126
|
+
effect: _ctx.effect,
|
127
|
+
pure: "",
|
128
|
+
trigger: "click",
|
129
|
+
transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
|
130
|
+
"stop-popper-mouse-event": false,
|
131
|
+
"gpu-acceleration": false,
|
132
|
+
persistent: _ctx.persistent,
|
133
|
+
"append-to": _ctx.appendTo,
|
134
|
+
"show-arrow": _ctx.showArrow,
|
135
|
+
offset: _ctx.offset,
|
136
|
+
onBeforeShow: _ctx.handleMenuEnter,
|
137
|
+
onHide: ($event) => _ctx.states.isBeforeHide = false
|
138
|
+
}, {
|
139
|
+
default: withCtx(() => {
|
140
|
+
var _a;
|
141
|
+
return [
|
142
|
+
createElementVNode("div", {
|
143
|
+
ref: "wrapperRef",
|
144
|
+
class: normalizeClass([
|
145
|
+
_ctx.nsSelect.e("wrapper"),
|
146
|
+
_ctx.nsSelect.is("focused", _ctx.isFocused),
|
147
|
+
_ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
|
148
|
+
_ctx.nsSelect.is("filterable", _ctx.filterable),
|
149
|
+
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
150
|
+
]),
|
151
|
+
onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
|
152
|
+
}, [
|
153
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
|
154
|
+
key: 0,
|
155
|
+
ref: "prefixRef",
|
156
|
+
class: normalizeClass(_ctx.nsSelect.e("prefix"))
|
157
|
+
}, [
|
158
|
+
renderSlot(_ctx.$slots, "prefix")
|
159
|
+
], 2)) : createCommentVNode("v-if", true),
|
160
|
+
createElementVNode("div", {
|
161
|
+
ref: "selectionRef",
|
162
|
+
class: normalizeClass([
|
163
|
+
_ctx.nsSelect.e("selection"),
|
164
|
+
_ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.states.selected.length)
|
165
|
+
])
|
166
|
+
}, [
|
167
|
+
_ctx.multiple ? renderSlot(_ctx.$slots, "tag", { key: 0 }, () => [
|
168
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
|
169
|
+
return openBlock(), createElementBlock("div", {
|
170
|
+
key: _ctx.getValueKey(item),
|
171
|
+
class: normalizeClass(_ctx.nsSelect.e("selected-item"))
|
172
|
+
}, [
|
173
|
+
createVNode(_component_el_tag, {
|
174
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
175
|
+
size: _ctx.collapseTagSize,
|
176
|
+
type: _ctx.tagType,
|
177
|
+
effect: _ctx.tagEffect,
|
178
|
+
"disable-transitions": "",
|
179
|
+
style: normalizeStyle(_ctx.tagStyle),
|
180
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
181
|
+
}, {
|
182
|
+
default: withCtx(() => [
|
183
|
+
createElementVNode("span", {
|
184
|
+
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
185
|
+
}, [
|
186
|
+
renderSlot(_ctx.$slots, "label", {
|
187
|
+
label: item.currentLabel,
|
188
|
+
value: item.value
|
189
|
+
}, () => [
|
190
|
+
createTextVNode(toDisplayString(item.currentLabel), 1)
|
191
|
+
])
|
192
|
+
], 2)
|
193
|
+
]),
|
194
|
+
_: 2
|
195
|
+
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
196
|
+
], 2);
|
197
|
+
}), 128)),
|
198
|
+
_ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
|
199
|
+
key: 0,
|
200
|
+
ref: "tagTooltipRef",
|
201
|
+
disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
|
202
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
203
|
+
effect: _ctx.effect,
|
204
|
+
placement: "bottom",
|
205
|
+
teleported: _ctx.teleported
|
206
|
+
}, {
|
207
|
+
default: withCtx(() => [
|
208
|
+
createElementVNode("div", {
|
209
|
+
ref: "collapseItemRef",
|
210
|
+
class: normalizeClass(_ctx.nsSelect.e("selected-item"))
|
211
|
+
}, [
|
212
|
+
createVNode(_component_el_tag, {
|
213
|
+
closable: false,
|
214
|
+
size: _ctx.collapseTagSize,
|
215
|
+
type: _ctx.tagType,
|
216
|
+
effect: _ctx.tagEffect,
|
217
|
+
"disable-transitions": "",
|
218
|
+
style: normalizeStyle(_ctx.collapseTagStyle)
|
219
|
+
}, {
|
220
|
+
default: withCtx(() => [
|
221
|
+
createElementVNode("span", {
|
222
|
+
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
223
|
+
}, " + " + toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags), 3)
|
224
|
+
]),
|
225
|
+
_: 1
|
226
|
+
}, 8, ["size", "type", "effect", "style"])
|
227
|
+
], 2)
|
228
|
+
]),
|
229
|
+
content: withCtx(() => [
|
230
|
+
createElementVNode("div", {
|
231
|
+
ref: "tagMenuRef",
|
232
|
+
class: normalizeClass(_ctx.nsSelect.e("selection"))
|
233
|
+
}, [
|
234
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (item) => {
|
235
|
+
return openBlock(), createElementBlock("div", {
|
236
|
+
key: _ctx.getValueKey(item),
|
237
|
+
class: normalizeClass(_ctx.nsSelect.e("selected-item"))
|
238
|
+
}, [
|
239
|
+
createVNode(_component_el_tag, {
|
240
|
+
class: "in-tooltip",
|
241
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
242
|
+
size: _ctx.collapseTagSize,
|
243
|
+
type: _ctx.tagType,
|
244
|
+
effect: _ctx.tagEffect,
|
245
|
+
"disable-transitions": "",
|
246
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
247
|
+
}, {
|
248
|
+
default: withCtx(() => [
|
249
|
+
createElementVNode("span", {
|
250
|
+
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
251
|
+
}, [
|
252
|
+
renderSlot(_ctx.$slots, "label", {
|
253
|
+
label: item.currentLabel,
|
254
|
+
value: item.value
|
255
|
+
}, () => [
|
256
|
+
createTextVNode(toDisplayString(item.currentLabel), 1)
|
257
|
+
])
|
258
|
+
], 2)
|
259
|
+
]),
|
260
|
+
_: 2
|
261
|
+
}, 1032, ["closable", "size", "type", "effect", "onClose"])
|
262
|
+
], 2);
|
263
|
+
}), 128))
|
264
|
+
], 2)
|
265
|
+
]),
|
266
|
+
_: 3
|
267
|
+
}, 8, ["disabled", "effect", "teleported"])) : createCommentVNode("v-if", true)
|
268
|
+
]) : createCommentVNode("v-if", true),
|
269
|
+
createElementVNode("div", {
|
270
|
+
class: normalizeClass([
|
271
|
+
_ctx.nsSelect.e("selected-item"),
|
272
|
+
_ctx.nsSelect.e("input-wrapper"),
|
273
|
+
_ctx.nsSelect.is("hidden", !_ctx.filterable)
|
274
|
+
])
|
275
|
+
}, [
|
276
|
+
withDirectives(createElementVNode("input", {
|
277
|
+
id: _ctx.inputId,
|
278
|
+
ref: "inputRef",
|
279
|
+
"onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
|
280
|
+
type: "text",
|
281
|
+
name: _ctx.name,
|
282
|
+
class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
|
283
|
+
disabled: _ctx.selectDisabled,
|
284
|
+
autocomplete: _ctx.autocomplete,
|
285
|
+
style: normalizeStyle(_ctx.inputStyle),
|
286
|
+
tabindex: _ctx.tabindex,
|
287
|
+
role: "combobox",
|
288
|
+
readonly: !_ctx.filterable,
|
289
|
+
spellcheck: "false",
|
290
|
+
"aria-activedescendant": ((_a = _ctx.hoverOption) == null ? void 0 : _a.id) || "",
|
291
|
+
"aria-controls": _ctx.contentId,
|
292
|
+
"aria-expanded": _ctx.dropdownMenuVisible,
|
293
|
+
"aria-label": _ctx.ariaLabel,
|
294
|
+
"aria-autocomplete": "none",
|
295
|
+
"aria-haspopup": "listbox",
|
296
|
+
onKeydown: [
|
297
|
+
withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
|
298
|
+
withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
|
299
|
+
withKeys(withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
|
300
|
+
withKeys(withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
301
|
+
withKeys(withModifiers(_ctx.deletePrevTag, ["stop"]), ["delete"])
|
302
|
+
],
|
303
|
+
onCompositionstart: _ctx.handleCompositionStart,
|
304
|
+
onCompositionupdate: _ctx.handleCompositionUpdate,
|
305
|
+
onCompositionend: _ctx.handleCompositionEnd,
|
306
|
+
onInput: _ctx.onInput,
|
307
|
+
onClick: withModifiers(_ctx.toggleMenu, ["stop"])
|
308
|
+
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
309
|
+
[vModelText, _ctx.states.inputValue]
|
310
|
+
]),
|
311
|
+
_ctx.filterable ? (openBlock(), createElementBlock("span", {
|
312
|
+
key: 0,
|
313
|
+
ref: "calculatorRef",
|
314
|
+
"aria-hidden": "true",
|
315
|
+
class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
|
316
|
+
textContent: toDisplayString(_ctx.states.inputValue)
|
317
|
+
}, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
|
318
|
+
], 2),
|
319
|
+
_ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
|
320
|
+
key: 1,
|
321
|
+
class: normalizeClass([
|
322
|
+
_ctx.nsSelect.e("selected-item"),
|
323
|
+
_ctx.nsSelect.e("placeholder"),
|
324
|
+
_ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
|
325
|
+
])
|
326
|
+
}, [
|
327
|
+
_ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
|
328
|
+
key: 0,
|
329
|
+
label: _ctx.currentPlaceholder,
|
330
|
+
value: _ctx.modelValue
|
331
|
+
}, () => [
|
332
|
+
createElementVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
|
333
|
+
]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
|
334
|
+
], 2)) : createCommentVNode("v-if", true)
|
335
|
+
], 2),
|
336
|
+
createElementVNode("div", {
|
337
|
+
ref: "suffixRef",
|
338
|
+
class: normalizeClass(_ctx.nsSelect.e("suffix"))
|
339
|
+
}, [
|
340
|
+
_ctx.iconComponent && !_ctx.showClose ? (openBlock(), createBlock(_component_el_icon, {
|
341
|
+
key: 0,
|
342
|
+
class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
|
343
|
+
}, {
|
344
|
+
default: withCtx(() => [
|
345
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
346
|
+
]),
|
347
|
+
_: 1
|
348
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
349
|
+
_ctx.showClose && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
|
350
|
+
key: 1,
|
351
|
+
class: normalizeClass([
|
352
|
+
_ctx.nsSelect.e("caret"),
|
353
|
+
_ctx.nsSelect.e("icon"),
|
354
|
+
_ctx.nsSelect.e("clear")
|
355
|
+
]),
|
356
|
+
onClick: _ctx.handleClearClick
|
357
|
+
}, {
|
358
|
+
default: withCtx(() => [
|
359
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
360
|
+
]),
|
361
|
+
_: 1
|
362
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
|
363
|
+
_ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
|
364
|
+
key: 2,
|
365
|
+
class: normalizeClass([
|
366
|
+
_ctx.nsInput.e("icon"),
|
367
|
+
_ctx.nsInput.e("validateIcon"),
|
368
|
+
_ctx.nsInput.is("loading", _ctx.validateState === "validating")
|
369
|
+
])
|
370
|
+
}, {
|
371
|
+
default: withCtx(() => [
|
372
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
|
373
|
+
]),
|
374
|
+
_: 1
|
375
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
376
|
+
], 2)
|
377
|
+
], 10, ["onClick"])
|
378
|
+
];
|
379
|
+
}),
|
380
|
+
content: withCtx(() => [
|
381
|
+
createVNode(_component_el_select_menu, { ref: "menuRef" }, {
|
382
|
+
default: withCtx(() => [
|
383
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
384
|
+
key: 0,
|
385
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
|
386
|
+
onClick: withModifiers(() => {
|
387
|
+
}, ["stop"])
|
388
|
+
}, [
|
389
|
+
renderSlot(_ctx.$slots, "header")
|
390
|
+
], 10, ["onClick"])) : createCommentVNode("v-if", true),
|
391
|
+
withDirectives(createVNode(_component_el_scrollbar, {
|
392
|
+
id: _ctx.contentId,
|
393
|
+
ref: "scrollbarRef",
|
394
|
+
tag: "ul",
|
395
|
+
"wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
|
396
|
+
"view-class": _ctx.nsSelect.be("dropdown", "list"),
|
397
|
+
class: normalizeClass([_ctx.nsSelect.is("empty", _ctx.filteredOptionsCount === 0)]),
|
398
|
+
role: "listbox",
|
399
|
+
"aria-label": _ctx.ariaLabel,
|
400
|
+
"aria-orientation": "vertical",
|
401
|
+
onScroll: _ctx.popupScroll
|
402
|
+
}, {
|
403
|
+
default: withCtx(() => [
|
404
|
+
_ctx.showNewOption ? (openBlock(), createBlock(_component_el_option, {
|
405
|
+
key: 0,
|
406
|
+
value: _ctx.states.inputValue,
|
407
|
+
created: true
|
408
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
409
|
+
createVNode(_component_el_options, null, {
|
410
|
+
default: withCtx(() => [
|
411
|
+
renderSlot(_ctx.$slots, "default")
|
412
|
+
]),
|
413
|
+
_: 3
|
414
|
+
})
|
415
|
+
]),
|
416
|
+
_: 3
|
417
|
+
}, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
|
418
|
+
[vShow, _ctx.states.options.size > 0 && !_ctx.loading]
|
419
|
+
]),
|
420
|
+
_ctx.$slots.loading && _ctx.loading ? (openBlock(), createElementBlock("div", {
|
421
|
+
key: 1,
|
422
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
|
423
|
+
}, [
|
424
|
+
renderSlot(_ctx.$slots, "loading")
|
425
|
+
], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
|
426
|
+
key: 2,
|
427
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
|
428
|
+
}, [
|
429
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
430
|
+
createElementVNode("span", null, toDisplayString(_ctx.emptyText), 1)
|
431
|
+
])
|
432
|
+
], 2)) : createCommentVNode("v-if", true),
|
433
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
434
|
+
key: 3,
|
435
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
|
436
|
+
onClick: withModifiers(() => {
|
437
|
+
}, ["stop"])
|
438
|
+
}, [
|
439
|
+
renderSlot(_ctx.$slots, "footer")
|
440
|
+
], 10, ["onClick"])) : createCommentVNode("v-if", true)
|
441
|
+
]),
|
442
|
+
_: 3
|
443
|
+
}, 512)
|
444
|
+
]),
|
445
|
+
_: 3
|
446
|
+
}, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
|
447
|
+
], 16, ["onMouseleave"])), [
|
448
|
+
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
449
|
+
]);
|
450
|
+
}
|
451
|
+
var Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "select.vue"]]);
|
134
452
|
|
135
|
-
export {
|
453
|
+
export { Select as default };
|
136
454
|
//# sourceMappingURL=select.mjs.map
|