@element-plus/nightly 0.0.20250806 → 0.0.20250808
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 +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +32 -71
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +71 -32
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +108 -303
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +303 -108
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/index.mjs +11 -11
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +4 -33
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +33 -4
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/page-header/index.mjs +2 -2
- package/es/components/page-header/src/page-header.mjs +16 -97
- package/es/components/page-header/src/page-header.mjs.map +1 -1
- package/es/components/page-header/src/page-header2.mjs +97 -16
- package/es/components/page-header/src/page-header2.mjs.map +1 -1
- 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/popover/index.mjs +2 -2
- package/es/components/popover/src/popover.mjs +66 -112
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover2.mjs +112 -66
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-group.mjs +65 -34
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +34 -65
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +140 -497
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +497 -140
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +17 -22
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +22 -17
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton2.mjs +1 -1
- package/es/components/splitter/index.mjs +2 -2
- package/es/components/splitter/src/split-panel.mjs +17 -152
- package/es/components/splitter/src/split-panel.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs +152 -17
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +227 -72
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +72 -227
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.mjs +2 -2
- package/es/components/tooltip-v2/src/content.mjs +48 -110
- package/es/components/tooltip-v2/src/content.mjs.map +1 -1
- package/es/components/tooltip-v2/src/content2.mjs +110 -48
- package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root.mjs +79 -17
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +17 -79
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
- package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +154 -69
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +69 -154
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/index.mjs +11 -11
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +32 -71
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +71 -32
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +117 -303
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +303 -117
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/index.js +11 -11
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +4 -33
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +33 -4
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/page-header/index.js +2 -2
- package/lib/components/page-header/src/page-header.js +17 -97
- package/lib/components/page-header/src/page-header.js.map +1 -1
- package/lib/components/page-header/src/page-header2.js +97 -17
- package/lib/components/page-header/src/page-header2.js.map +1 -1
- 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/popover/index.js +2 -2
- package/lib/components/popover/src/popover.js +67 -112
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover2.js +112 -67
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-group.js +65 -35
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +35 -65
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +141 -497
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +497 -141
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +17 -22
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +22 -17
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton2.js +1 -1
- package/lib/components/splitter/index.js +2 -2
- package/lib/components/splitter/src/split-panel.js +17 -152
- package/lib/components/splitter/src/split-panel.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js +152 -17
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +226 -72
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +72 -226
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/tooltip-v2/index.js +2 -2
- package/lib/components/tooltip-v2/src/content.js +48 -110
- package/lib/components/tooltip-v2/src/content.js.map +1 -1
- package/lib/components/tooltip-v2/src/content2.js +110 -48
- package/lib/components/tooltip-v2/src/content2.js.map +1 -1
- package/lib/components/tooltip-v2/src/root.js +79 -17
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +17 -79
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +2 -2
- package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +153 -69
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +69 -153
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/index.js +11 -11
- 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,146 +1,503 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import
|
1
|
+
import { defineComponent, getCurrentInstance, computed, reactive, toRefs, watch, provide, onBeforeUnmount, resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, normalizeClass, toHandlerKey, createVNode, withCtx, createElementVNode, withModifiers, renderSlot, createCommentVNode, Fragment, 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 './select.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
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
type: definePropType(Object)
|
130
|
-
},
|
131
|
-
...useEmptyValuesProps,
|
132
|
-
...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 instance = getCurrentInstance();
|
46
|
+
instance.appContext.config.warnHandler = (...args) => {
|
47
|
+
if (!args[0] || args[0].includes('Slot "default" invoked outside of the render function')) {
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
console.warn(...args);
|
51
|
+
};
|
52
|
+
const modelValue = computed(() => {
|
53
|
+
const { modelValue: rawModelValue, multiple } = props;
|
54
|
+
const fallback = multiple ? [] : void 0;
|
55
|
+
if (isArray(rawModelValue)) {
|
56
|
+
return multiple ? rawModelValue : fallback;
|
57
|
+
}
|
58
|
+
return multiple ? fallback : rawModelValue;
|
59
|
+
});
|
60
|
+
const _props = reactive({
|
61
|
+
...toRefs(props),
|
62
|
+
modelValue
|
63
|
+
});
|
64
|
+
const API = useSelect(_props, emit);
|
65
|
+
const { calculatorRef, inputStyle } = useCalcInputWidth();
|
66
|
+
const flatTreeSelectData = (data) => {
|
67
|
+
return data.reduce((acc, item) => {
|
68
|
+
acc.push(item);
|
69
|
+
if (item.children && item.children.length > 0) {
|
70
|
+
acc.push(...flatTreeSelectData(item.children));
|
71
|
+
}
|
72
|
+
return acc;
|
73
|
+
}, []);
|
74
|
+
};
|
75
|
+
const manuallyRenderSlots = (vnodes) => {
|
76
|
+
const children = flattedChildren(vnodes || []);
|
77
|
+
children.forEach((item) => {
|
78
|
+
var _a;
|
79
|
+
if (isObject(item) && (item.type.name === "ElOption" || item.type.name === "ElTree")) {
|
80
|
+
const _name = item.type.name;
|
81
|
+
if (_name === "ElTree") {
|
82
|
+
const treeData = ((_a = item.props) == null ? void 0 : _a.data) || [];
|
83
|
+
const flatData = flatTreeSelectData(treeData);
|
84
|
+
flatData.forEach((treeItem) => {
|
85
|
+
treeItem.currentLabel = treeItem.label || (isObject(treeItem.value) ? "" : treeItem.value);
|
86
|
+
API.onOptionCreate(treeItem);
|
87
|
+
});
|
88
|
+
} else if (_name === "ElOption") {
|
89
|
+
const obj = { ...item.props };
|
90
|
+
obj.currentLabel = obj.label || (isObject(obj.value) ? "" : obj.value);
|
91
|
+
API.onOptionCreate(obj);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
});
|
95
|
+
};
|
96
|
+
watch(() => {
|
97
|
+
var _a;
|
98
|
+
const slotsContent = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
99
|
+
return slotsContent;
|
100
|
+
}, (newSlot) => {
|
101
|
+
if (props.persistent) {
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
manuallyRenderSlots(newSlot);
|
105
|
+
}, {
|
106
|
+
immediate: true
|
107
|
+
});
|
108
|
+
provide(selectKey, reactive({
|
109
|
+
props: _props,
|
110
|
+
states: API.states,
|
111
|
+
selectRef: API.selectRef,
|
112
|
+
optionsArray: API.optionsArray,
|
113
|
+
setSelected: API.setSelected,
|
114
|
+
handleOptionSelect: API.handleOptionSelect,
|
115
|
+
onOptionCreate: API.onOptionCreate,
|
116
|
+
onOptionDestroy: API.onOptionDestroy
|
117
|
+
}));
|
118
|
+
const selectedLabel = computed(() => {
|
119
|
+
if (!props.multiple) {
|
120
|
+
return API.states.selectedLabel;
|
121
|
+
}
|
122
|
+
return API.states.selected.map((i) => i.currentLabel);
|
123
|
+
});
|
124
|
+
onBeforeUnmount(() => {
|
125
|
+
instance.appContext.config.warnHandler = void 0;
|
126
|
+
});
|
127
|
+
return {
|
128
|
+
...API,
|
129
|
+
modelValue,
|
130
|
+
selectedLabel,
|
131
|
+
calculatorRef,
|
132
|
+
inputStyle
|
133
|
+
};
|
134
|
+
}
|
133
135
|
});
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
"
|
138
|
-
"
|
139
|
-
"
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
136
|
+
function _sfc_render(_ctx, _cache) {
|
137
|
+
const _component_el_tag = resolveComponent("el-tag");
|
138
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
139
|
+
const _component_el_icon = resolveComponent("el-icon");
|
140
|
+
const _component_el_option = resolveComponent("el-option");
|
141
|
+
const _component_el_options = resolveComponent("el-options");
|
142
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
143
|
+
const _component_el_select_menu = resolveComponent("el-select-menu");
|
144
|
+
const _directive_click_outside = resolveDirective("click-outside");
|
145
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
146
|
+
ref: "selectRef",
|
147
|
+
class: normalizeClass([_ctx.nsSelect.b(), _ctx.nsSelect.m(_ctx.selectSize)]),
|
148
|
+
[toHandlerKey(_ctx.mouseEnterEventName)]: ($event) => _ctx.states.inputHovering = true,
|
149
|
+
onMouseleave: ($event) => _ctx.states.inputHovering = false
|
150
|
+
}, [
|
151
|
+
createVNode(_component_el_tooltip, {
|
152
|
+
ref: "tooltipRef",
|
153
|
+
visible: _ctx.dropdownMenuVisible,
|
154
|
+
placement: _ctx.placement,
|
155
|
+
teleported: _ctx.teleported,
|
156
|
+
"popper-class": [_ctx.nsSelect.e("popper"), _ctx.popperClass],
|
157
|
+
"popper-options": _ctx.popperOptions,
|
158
|
+
"fallback-placements": _ctx.fallbackPlacements,
|
159
|
+
effect: _ctx.effect,
|
160
|
+
pure: "",
|
161
|
+
trigger: "click",
|
162
|
+
transition: `${_ctx.nsSelect.namespace.value}-zoom-in-top`,
|
163
|
+
"stop-popper-mouse-event": false,
|
164
|
+
"gpu-acceleration": false,
|
165
|
+
persistent: _ctx.persistent,
|
166
|
+
"append-to": _ctx.appendTo,
|
167
|
+
"show-arrow": _ctx.showArrow,
|
168
|
+
offset: _ctx.offset,
|
169
|
+
onBeforeShow: _ctx.handleMenuEnter,
|
170
|
+
onHide: ($event) => _ctx.states.isBeforeHide = false
|
171
|
+
}, {
|
172
|
+
default: withCtx(() => {
|
173
|
+
var _a;
|
174
|
+
return [
|
175
|
+
createElementVNode("div", {
|
176
|
+
ref: "wrapperRef",
|
177
|
+
class: normalizeClass([
|
178
|
+
_ctx.nsSelect.e("wrapper"),
|
179
|
+
_ctx.nsSelect.is("focused", _ctx.isFocused),
|
180
|
+
_ctx.nsSelect.is("hovering", _ctx.states.inputHovering),
|
181
|
+
_ctx.nsSelect.is("filterable", _ctx.filterable),
|
182
|
+
_ctx.nsSelect.is("disabled", _ctx.selectDisabled)
|
183
|
+
]),
|
184
|
+
onClick: withModifiers(_ctx.toggleMenu, ["prevent"])
|
185
|
+
}, [
|
186
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", {
|
187
|
+
key: 0,
|
188
|
+
ref: "prefixRef",
|
189
|
+
class: normalizeClass(_ctx.nsSelect.e("prefix"))
|
190
|
+
}, [
|
191
|
+
renderSlot(_ctx.$slots, "prefix")
|
192
|
+
], 2)) : createCommentVNode("v-if", true),
|
193
|
+
createElementVNode("div", {
|
194
|
+
ref: "selectionRef",
|
195
|
+
class: normalizeClass([
|
196
|
+
_ctx.nsSelect.e("selection"),
|
197
|
+
_ctx.nsSelect.is("near", _ctx.multiple && !_ctx.$slots.prefix && !!_ctx.states.selected.length)
|
198
|
+
])
|
199
|
+
}, [
|
200
|
+
_ctx.multiple ? renderSlot(_ctx.$slots, "tag", {
|
201
|
+
key: 0,
|
202
|
+
data: _ctx.states.selected,
|
203
|
+
deleteTag: _ctx.deleteTag,
|
204
|
+
selectDisabled: _ctx.selectDisabled
|
205
|
+
}, () => [
|
206
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.showTagList, (item) => {
|
207
|
+
return openBlock(), createElementBlock("div", {
|
208
|
+
key: _ctx.getValueKey(item),
|
209
|
+
class: normalizeClass(_ctx.nsSelect.e("selected-item"))
|
210
|
+
}, [
|
211
|
+
createVNode(_component_el_tag, {
|
212
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
213
|
+
size: _ctx.collapseTagSize,
|
214
|
+
type: _ctx.tagType,
|
215
|
+
effect: _ctx.tagEffect,
|
216
|
+
"disable-transitions": "",
|
217
|
+
style: normalizeStyle(_ctx.tagStyle),
|
218
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
219
|
+
}, {
|
220
|
+
default: withCtx(() => [
|
221
|
+
createElementVNode("span", {
|
222
|
+
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
223
|
+
}, [
|
224
|
+
renderSlot(_ctx.$slots, "label", {
|
225
|
+
label: item.currentLabel,
|
226
|
+
value: item.value
|
227
|
+
}, () => [
|
228
|
+
createTextVNode(toDisplayString(item.currentLabel), 1)
|
229
|
+
])
|
230
|
+
], 2)
|
231
|
+
]),
|
232
|
+
_: 2
|
233
|
+
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
234
|
+
], 2);
|
235
|
+
}), 128)),
|
236
|
+
_ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (openBlock(), createBlock(_component_el_tooltip, {
|
237
|
+
key: 0,
|
238
|
+
ref: "tagTooltipRef",
|
239
|
+
disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
|
240
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
241
|
+
effect: _ctx.effect,
|
242
|
+
placement: "bottom",
|
243
|
+
"popper-class": _ctx.popperClass,
|
244
|
+
teleported: _ctx.teleported
|
245
|
+
}, {
|
246
|
+
default: withCtx(() => [
|
247
|
+
createElementVNode("div", {
|
248
|
+
ref: "collapseItemRef",
|
249
|
+
class: normalizeClass(_ctx.nsSelect.e("selected-item"))
|
250
|
+
}, [
|
251
|
+
createVNode(_component_el_tag, {
|
252
|
+
closable: false,
|
253
|
+
size: _ctx.collapseTagSize,
|
254
|
+
type: _ctx.tagType,
|
255
|
+
effect: _ctx.tagEffect,
|
256
|
+
"disable-transitions": "",
|
257
|
+
style: normalizeStyle(_ctx.collapseTagStyle)
|
258
|
+
}, {
|
259
|
+
default: withCtx(() => [
|
260
|
+
createElementVNode("span", {
|
261
|
+
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
262
|
+
}, " + " + toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags), 3)
|
263
|
+
]),
|
264
|
+
_: 1
|
265
|
+
}, 8, ["size", "type", "effect", "style"])
|
266
|
+
], 2)
|
267
|
+
]),
|
268
|
+
content: withCtx(() => [
|
269
|
+
createElementVNode("div", {
|
270
|
+
ref: "tagMenuRef",
|
271
|
+
class: normalizeClass(_ctx.nsSelect.e("selection"))
|
272
|
+
}, [
|
273
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.collapseTagList, (item) => {
|
274
|
+
return openBlock(), createElementBlock("div", {
|
275
|
+
key: _ctx.getValueKey(item),
|
276
|
+
class: normalizeClass(_ctx.nsSelect.e("selected-item"))
|
277
|
+
}, [
|
278
|
+
createVNode(_component_el_tag, {
|
279
|
+
class: "in-tooltip",
|
280
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
281
|
+
size: _ctx.collapseTagSize,
|
282
|
+
type: _ctx.tagType,
|
283
|
+
effect: _ctx.tagEffect,
|
284
|
+
"disable-transitions": "",
|
285
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
286
|
+
}, {
|
287
|
+
default: withCtx(() => [
|
288
|
+
createElementVNode("span", {
|
289
|
+
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
290
|
+
}, [
|
291
|
+
renderSlot(_ctx.$slots, "label", {
|
292
|
+
label: item.currentLabel,
|
293
|
+
value: item.value
|
294
|
+
}, () => [
|
295
|
+
createTextVNode(toDisplayString(item.currentLabel), 1)
|
296
|
+
])
|
297
|
+
], 2)
|
298
|
+
]),
|
299
|
+
_: 2
|
300
|
+
}, 1032, ["closable", "size", "type", "effect", "onClose"])
|
301
|
+
], 2);
|
302
|
+
}), 128))
|
303
|
+
], 2)
|
304
|
+
]),
|
305
|
+
_: 3
|
306
|
+
}, 8, ["disabled", "effect", "popper-class", "teleported"])) : createCommentVNode("v-if", true)
|
307
|
+
]) : createCommentVNode("v-if", true),
|
308
|
+
createElementVNode("div", {
|
309
|
+
class: normalizeClass([
|
310
|
+
_ctx.nsSelect.e("selected-item"),
|
311
|
+
_ctx.nsSelect.e("input-wrapper"),
|
312
|
+
_ctx.nsSelect.is("hidden", !_ctx.filterable)
|
313
|
+
])
|
314
|
+
}, [
|
315
|
+
withDirectives(createElementVNode("input", {
|
316
|
+
id: _ctx.inputId,
|
317
|
+
ref: "inputRef",
|
318
|
+
"onUpdate:modelValue": ($event) => _ctx.states.inputValue = $event,
|
319
|
+
type: "text",
|
320
|
+
name: _ctx.name,
|
321
|
+
class: normalizeClass([_ctx.nsSelect.e("input"), _ctx.nsSelect.is(_ctx.selectSize)]),
|
322
|
+
disabled: _ctx.selectDisabled,
|
323
|
+
autocomplete: _ctx.autocomplete,
|
324
|
+
style: normalizeStyle(_ctx.inputStyle),
|
325
|
+
tabindex: _ctx.tabindex,
|
326
|
+
role: "combobox",
|
327
|
+
readonly: !_ctx.filterable,
|
328
|
+
spellcheck: "false",
|
329
|
+
"aria-activedescendant": ((_a = _ctx.hoverOption) == null ? void 0 : _a.id) || "",
|
330
|
+
"aria-controls": _ctx.contentId,
|
331
|
+
"aria-expanded": _ctx.dropdownMenuVisible,
|
332
|
+
"aria-label": _ctx.ariaLabel,
|
333
|
+
"aria-autocomplete": "none",
|
334
|
+
"aria-haspopup": "listbox",
|
335
|
+
onKeydown: [
|
336
|
+
withKeys(withModifiers(($event) => _ctx.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
|
337
|
+
withKeys(withModifiers(($event) => _ctx.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
|
338
|
+
withKeys(withModifiers(_ctx.handleEsc, ["stop", "prevent"]), ["esc"]),
|
339
|
+
withKeys(withModifiers(_ctx.selectOption, ["stop", "prevent"]), ["enter"]),
|
340
|
+
withKeys(withModifiers(_ctx.deletePrevTag, ["stop"]), ["delete"])
|
341
|
+
],
|
342
|
+
onCompositionstart: _ctx.handleCompositionStart,
|
343
|
+
onCompositionupdate: _ctx.handleCompositionUpdate,
|
344
|
+
onCompositionend: _ctx.handleCompositionEnd,
|
345
|
+
onInput: _ctx.onInput,
|
346
|
+
onClick: withModifiers(_ctx.toggleMenu, ["stop"])
|
347
|
+
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "tabindex", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
348
|
+
[vModelText, _ctx.states.inputValue]
|
349
|
+
]),
|
350
|
+
_ctx.filterable ? (openBlock(), createElementBlock("span", {
|
351
|
+
key: 0,
|
352
|
+
ref: "calculatorRef",
|
353
|
+
"aria-hidden": "true",
|
354
|
+
class: normalizeClass(_ctx.nsSelect.e("input-calculator")),
|
355
|
+
textContent: toDisplayString(_ctx.states.inputValue)
|
356
|
+
}, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
|
357
|
+
], 2),
|
358
|
+
_ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
|
359
|
+
key: 1,
|
360
|
+
class: normalizeClass([
|
361
|
+
_ctx.nsSelect.e("selected-item"),
|
362
|
+
_ctx.nsSelect.e("placeholder"),
|
363
|
+
_ctx.nsSelect.is("transparent", !_ctx.hasModelValue || _ctx.expanded && !_ctx.states.inputValue)
|
364
|
+
])
|
365
|
+
}, [
|
366
|
+
_ctx.hasModelValue ? renderSlot(_ctx.$slots, "label", {
|
367
|
+
key: 0,
|
368
|
+
label: _ctx.currentPlaceholder,
|
369
|
+
value: _ctx.modelValue
|
370
|
+
}, () => [
|
371
|
+
createElementVNode("span", null, toDisplayString(_ctx.currentPlaceholder), 1)
|
372
|
+
]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(_ctx.currentPlaceholder), 1))
|
373
|
+
], 2)) : createCommentVNode("v-if", true)
|
374
|
+
], 2),
|
375
|
+
createElementVNode("div", {
|
376
|
+
ref: "suffixRef",
|
377
|
+
class: normalizeClass(_ctx.nsSelect.e("suffix"))
|
378
|
+
}, [
|
379
|
+
_ctx.iconComponent && !_ctx.showClose ? (openBlock(), createBlock(_component_el_icon, {
|
380
|
+
key: 0,
|
381
|
+
class: normalizeClass([_ctx.nsSelect.e("caret"), _ctx.nsSelect.e("icon"), _ctx.iconReverse])
|
382
|
+
}, {
|
383
|
+
default: withCtx(() => [
|
384
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
385
|
+
]),
|
386
|
+
_: 1
|
387
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
388
|
+
_ctx.showClose && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
|
389
|
+
key: 1,
|
390
|
+
class: normalizeClass([
|
391
|
+
_ctx.nsSelect.e("caret"),
|
392
|
+
_ctx.nsSelect.e("icon"),
|
393
|
+
_ctx.nsSelect.e("clear")
|
394
|
+
]),
|
395
|
+
onClick: _ctx.handleClearClick
|
396
|
+
}, {
|
397
|
+
default: withCtx(() => [
|
398
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
399
|
+
]),
|
400
|
+
_: 1
|
401
|
+
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
|
402
|
+
_ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (openBlock(), createBlock(_component_el_icon, {
|
403
|
+
key: 2,
|
404
|
+
class: normalizeClass([
|
405
|
+
_ctx.nsInput.e("icon"),
|
406
|
+
_ctx.nsInput.e("validateIcon"),
|
407
|
+
_ctx.nsInput.is("loading", _ctx.validateState === "validating")
|
408
|
+
])
|
409
|
+
}, {
|
410
|
+
default: withCtx(() => [
|
411
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
|
412
|
+
]),
|
413
|
+
_: 1
|
414
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
415
|
+
], 2)
|
416
|
+
], 10, ["onClick"])
|
417
|
+
];
|
418
|
+
}),
|
419
|
+
content: withCtx(() => [
|
420
|
+
createVNode(_component_el_select_menu, { ref: "menuRef" }, {
|
421
|
+
default: withCtx(() => [
|
422
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
423
|
+
key: 0,
|
424
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "header")),
|
425
|
+
onClick: withModifiers(() => {
|
426
|
+
}, ["stop"])
|
427
|
+
}, [
|
428
|
+
renderSlot(_ctx.$slots, "header")
|
429
|
+
], 10, ["onClick"])) : createCommentVNode("v-if", true),
|
430
|
+
withDirectives(createVNode(_component_el_scrollbar, {
|
431
|
+
id: _ctx.contentId,
|
432
|
+
ref: "scrollbarRef",
|
433
|
+
tag: "ul",
|
434
|
+
"wrap-class": _ctx.nsSelect.be("dropdown", "wrap"),
|
435
|
+
"view-class": _ctx.nsSelect.be("dropdown", "list"),
|
436
|
+
class: normalizeClass([_ctx.nsSelect.is("empty", _ctx.filteredOptionsCount === 0)]),
|
437
|
+
role: "listbox",
|
438
|
+
"aria-label": _ctx.ariaLabel,
|
439
|
+
"aria-orientation": "vertical",
|
440
|
+
onScroll: _ctx.popupScroll
|
441
|
+
}, {
|
442
|
+
default: withCtx(() => [
|
443
|
+
_ctx.showNewOption ? (openBlock(), createBlock(_component_el_option, {
|
444
|
+
key: 0,
|
445
|
+
value: _ctx.states.inputValue,
|
446
|
+
created: true
|
447
|
+
}, null, 8, ["value"])) : createCommentVNode("v-if", true),
|
448
|
+
createVNode(_component_el_options, null, {
|
449
|
+
default: withCtx(() => [
|
450
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
451
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
|
452
|
+
var _a, _b, _c, _d, _e, _f;
|
453
|
+
return openBlock(), createBlock(_component_el_option, {
|
454
|
+
key: index,
|
455
|
+
label: item[(_b = (_a = _ctx.props) == null ? void 0 : _a.label) != null ? _b : "label"],
|
456
|
+
value: item[(_d = (_c = _ctx.props) == null ? void 0 : _c.value) != null ? _d : "value"],
|
457
|
+
disabled: item[(_f = (_e = _ctx.props) == null ? void 0 : _e.disabled) != null ? _f : "disabled"]
|
458
|
+
}, null, 8, ["label", "value", "disabled"]);
|
459
|
+
}), 128))
|
460
|
+
])
|
461
|
+
]),
|
462
|
+
_: 3
|
463
|
+
})
|
464
|
+
]),
|
465
|
+
_: 3
|
466
|
+
}, 8, ["id", "wrap-class", "view-class", "class", "aria-label", "onScroll"]), [
|
467
|
+
[vShow, _ctx.states.options.size > 0 && !_ctx.loading]
|
468
|
+
]),
|
469
|
+
_ctx.$slots.loading && _ctx.loading ? (openBlock(), createElementBlock("div", {
|
470
|
+
key: 1,
|
471
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "loading"))
|
472
|
+
}, [
|
473
|
+
renderSlot(_ctx.$slots, "loading")
|
474
|
+
], 2)) : _ctx.loading || _ctx.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
|
475
|
+
key: 2,
|
476
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "empty"))
|
477
|
+
}, [
|
478
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
479
|
+
createElementVNode("span", null, toDisplayString(_ctx.emptyText), 1)
|
480
|
+
])
|
481
|
+
], 2)) : createCommentVNode("v-if", true),
|
482
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
483
|
+
key: 3,
|
484
|
+
class: normalizeClass(_ctx.nsSelect.be("dropdown", "footer")),
|
485
|
+
onClick: withModifiers(() => {
|
486
|
+
}, ["stop"])
|
487
|
+
}, [
|
488
|
+
renderSlot(_ctx.$slots, "footer")
|
489
|
+
], 10, ["onClick"])) : createCommentVNode("v-if", true)
|
490
|
+
]),
|
491
|
+
_: 3
|
492
|
+
}, 512)
|
493
|
+
]),
|
494
|
+
_: 3
|
495
|
+
}, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "show-arrow", "offset", "onBeforeShow", "onHide"])
|
496
|
+
], 16, ["onMouseleave"])), [
|
497
|
+
[_directive_click_outside, _ctx.handleClickOutside, _ctx.popperRef]
|
498
|
+
]);
|
499
|
+
}
|
500
|
+
var Select = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "select.vue"]]);
|
144
501
|
|
145
|
-
export {
|
502
|
+
export { Select as default };
|
146
503
|
//# sourceMappingURL=select2.mjs.map
|