@element-plus/nightly 0.0.20251214 → 0.0.20251215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.full.js +109 -78
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +110 -79
- 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/affix/src/affix.d.ts +2 -0
- package/es/components/affix/src/affix.mjs +6 -0
- package/es/components/affix/src/affix.mjs.map +1 -1
- package/es/components/affix/src/affix.vue.d.ts +6 -0
- package/es/components/affix/src/affix2.mjs +21 -7
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/anchor/index.mjs +1 -1
- package/es/components/anchor/src/anchor-link.mjs +5 -81
- package/es/components/anchor/src/anchor-link.mjs.map +1 -1
- package/es/components/anchor/src/anchor-link2.mjs +81 -5
- package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.mjs +1 -1
- package/es/components/cascader/src/cascader.vue.d.ts +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-group2.mjs +1 -1
- package/es/components/checkbox/src/checkbox.mjs +111 -63
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox2.mjs +63 -111
- package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
- package/es/components/col/index.mjs +2 -2
- package/es/components/col/src/col.mjs +43 -64
- package/es/components/col/src/col.mjs.map +1 -1
- package/es/components/col/src/col2.mjs +64 -43
- package/es/components/col/src/col2.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.mjs +1 -0
- package/es/components/date-picker/src/date-picker.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs +4 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -0
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs +6 -4
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -0
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +3 -0
- package/es/components/date-picker-panel/src/panel-utils.d.ts +16 -2
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -0
- package/es/components/date-picker-panel/src/props/date-picker-panel.mjs +4 -0
- package/es/components/date-picker-panel/src/props/date-picker-panel.mjs.map +1 -1
- package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -0
- package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -0
- package/es/components/date-picker-panel/src/props/shared.d.ts +1 -0
- package/es/components/date-picker-panel/src/props/shared.mjs +5 -1
- package/es/components/date-picker-panel/src/props/shared.mjs.map +1 -1
- package/es/components/descriptions/src/description2.mjs +1 -1
- package/es/components/descriptions/src/descriptions-row.mjs +6 -63
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row2.mjs +63 -6
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +1 -1
- package/es/components/image/index.mjs +2 -2
- package/es/components/image/src/image.mjs +69 -234
- package/es/components/image/src/image.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +234 -69
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/index.mjs +14 -14
- package/es/components/input-tag/src/input-tag.mjs +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item.mjs +15 -103
- package/es/components/menu/src/menu-item.mjs.map +1 -1
- package/es/components/menu/src/menu-item2.mjs +103 -15
- package/es/components/menu/src/menu-item2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.d.ts +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/es/components/popover/src/popover.vue.d.ts +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +132 -89
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +89 -132
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/select/index.mjs +1 -1
- package/es/components/select/src/option.mjs +91 -13
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/option2.mjs +13 -91
- package/es/components/select/src/option2.mjs.map +1 -1
- package/es/components/select/src/select.mjs +1 -1
- package/es/components/select/src/select.vue.d.ts +1 -1
- package/es/components/select/src/select2.mjs +1 -1
- package/es/components/select/src/useOption.mjs +1 -1
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +1 -1
- package/es/components/splitter/index.mjs +4 -4
- package/es/components/splitter/src/split-panel.mjs +20 -160
- package/es/components/splitter/src/split-panel.mjs.map +1 -1
- package/es/components/splitter/src/split-panel2.mjs +160 -20
- package/es/components/splitter/src/split-panel2.mjs.map +1 -1
- package/es/components/splitter/src/splitter.mjs +101 -15
- package/es/components/splitter/src/splitter.mjs.map +1 -1
- package/es/components/splitter/src/splitter2.mjs +15 -101
- package/es/components/splitter/src/splitter2.mjs.map +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/steps.mjs +35 -41
- package/es/components/steps/src/steps.mjs.map +1 -1
- package/es/components/steps/src/steps2.mjs +41 -35
- package/es/components/steps/src/steps2.mjs.map +1 -1
- package/es/components/switch/index.mjs +2 -2
- package/es/components/switch/src/switch.mjs +75 -248
- package/es/components/switch/src/switch.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +248 -75
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/table-column/index.d.ts +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +11 -92
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +92 -11
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +109 -27
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +27 -109
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/text/index.mjs +2 -2
- package/es/components/text/src/text.mjs +21 -67
- package/es/components/text/src/text.mjs.map +1 -1
- package/es/components/text/src/text2.mjs +67 -21
- package/es/components/text/src/text2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +2 -2
- package/es/components/tooltip/src/content.vue.d.ts +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content2.mjs +1 -1
- package/es/components/upload/src/upload-dragger.mjs +10 -60
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +60 -10
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/index.mjs +14 -14
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.d.ts +2 -0
- package/lib/components/affix/src/affix.js +6 -0
- package/lib/components/affix/src/affix.js.map +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +6 -0
- package/lib/components/affix/src/affix2.js +20 -6
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/anchor/index.js +1 -1
- package/lib/components/anchor/src/anchor-link.js +5 -81
- package/lib/components/anchor/src/anchor-link.js.map +1 -1
- package/lib/components/anchor/src/anchor-link2.js +81 -5
- package/lib/components/anchor/src/anchor-link2.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.js +1 -1
- package/lib/components/cascader/src/cascader.vue.d.ts +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-group2.js +1 -1
- package/lib/components/checkbox/src/checkbox.js +111 -64
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox2.js +64 -111
- package/lib/components/checkbox/src/checkbox2.js.map +1 -1
- package/lib/components/col/index.js +2 -2
- package/lib/components/col/src/col.js +43 -64
- package/lib/components/col/src/col.js.map +1 -1
- package/lib/components/col/src/col2.js +64 -43
- package/lib/components/col/src/col2.js.map +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.js +1 -0
- package/lib/components/date-picker/src/date-picker.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.js +4 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -0
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js +6 -4
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -0
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +3 -0
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +16 -2
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -0
- package/lib/components/date-picker-panel/src/props/date-picker-panel.js +4 -0
- package/lib/components/date-picker-panel/src/props/date-picker-panel.js.map +1 -1
- package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -0
- package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -0
- package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -0
- package/lib/components/date-picker-panel/src/props/shared.js +5 -1
- package/lib/components/date-picker-panel/src/props/shared.js.map +1 -1
- package/lib/components/descriptions/src/description2.js +1 -1
- package/lib/components/descriptions/src/descriptions-row.js +6 -63
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row2.js +63 -6
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +1 -1
- package/lib/components/image/index.js +2 -2
- package/lib/components/image/src/image.js +69 -233
- package/lib/components/image/src/image.js.map +1 -1
- package/lib/components/image/src/image2.js +233 -69
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/index.js +14 -14
- package/lib/components/input-tag/src/input-tag.js +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item.js +16 -103
- package/lib/components/menu/src/menu-item.js.map +1 -1
- package/lib/components/menu/src/menu-item2.js +103 -16
- package/lib/components/menu/src/menu-item2.js.map +1 -1
- package/lib/components/pagination/src/pagination.d.ts +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +132 -94
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +94 -132
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/select/index.js +1 -1
- package/lib/components/select/src/option.js +91 -14
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/option2.js +14 -91
- package/lib/components/select/src/option2.js.map +1 -1
- package/lib/components/select/src/select.js +1 -1
- package/lib/components/select/src/select.vue.d.ts +1 -1
- package/lib/components/select/src/select2.js +1 -1
- package/lib/components/select/src/useOption.js +1 -1
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +1 -1
- package/lib/components/splitter/index.js +4 -4
- package/lib/components/splitter/src/split-panel.js +21 -160
- package/lib/components/splitter/src/split-panel.js.map +1 -1
- package/lib/components/splitter/src/split-panel2.js +160 -21
- package/lib/components/splitter/src/split-panel2.js.map +1 -1
- package/lib/components/splitter/src/splitter.js +101 -16
- package/lib/components/splitter/src/splitter.js.map +1 -1
- package/lib/components/splitter/src/splitter2.js +16 -101
- package/lib/components/splitter/src/splitter2.js.map +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/steps.js +36 -41
- package/lib/components/steps/src/steps.js.map +1 -1
- package/lib/components/steps/src/steps2.js +41 -36
- package/lib/components/steps/src/steps2.js.map +1 -1
- package/lib/components/switch/index.js +2 -2
- package/lib/components/switch/src/switch.js +75 -247
- package/lib/components/switch/src/switch.js.map +1 -1
- package/lib/components/switch/src/switch2.js +247 -75
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/table-column/index.d.ts +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +11 -92
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +92 -11
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +109 -28
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +28 -109
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/text/index.js +2 -2
- package/lib/components/text/src/text.js +21 -67
- package/lib/components/text/src/text.js.map +1 -1
- package/lib/components/text/src/text2.js +67 -21
- package/lib/components/text/src/text2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +2 -2
- package/lib/components/tooltip/src/content.vue.d.ts +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content2.js +1 -1
- package/lib/components/upload/src/upload-dragger.js +11 -60
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +60 -11
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/index.js +14 -14
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,137 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { popperContentProps, popperContentEmits } from './content.mjs';
|
|
6
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
7
|
-
import { usePopperContentFocusTrap } from './composables/use-focus-trap.mjs';
|
|
8
|
-
import { usePopperContent } from './composables/use-content.mjs';
|
|
9
|
-
import { usePopperContentDOM } from './composables/use-content-dom.mjs';
|
|
10
|
-
import { formItemContextKey } from '../../form/src/constants.mjs';
|
|
11
|
-
import { NOOP } from '@vue/shared';
|
|
12
|
-
import { isElement } from '../../../utils/types.mjs';
|
|
1
|
+
import { placements } from '@popperjs/core';
|
|
2
|
+
import { popperArrowProps } from './arrow.mjs';
|
|
3
|
+
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
4
|
+
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
|
13
5
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const formItemContext = inject(formItemContextKey, void 0);
|
|
46
|
-
provide(POPPER_CONTENT_INJECTION_KEY, {
|
|
47
|
-
arrowStyle,
|
|
48
|
-
arrowRef
|
|
49
|
-
});
|
|
50
|
-
if (formItemContext) {
|
|
51
|
-
provide(formItemContextKey, {
|
|
52
|
-
...formItemContext,
|
|
53
|
-
addInputId: NOOP,
|
|
54
|
-
removeInputId: NOOP
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
let triggerTargetAriaStopWatch = void 0;
|
|
58
|
-
const updatePopper = (shouldUpdateZIndex = true) => {
|
|
59
|
-
update();
|
|
60
|
-
shouldUpdateZIndex && updateZIndex();
|
|
61
|
-
};
|
|
62
|
-
const togglePopperAlive = () => {
|
|
63
|
-
updatePopper(false);
|
|
64
|
-
if (props.visible && props.focusOnShow) {
|
|
65
|
-
trapped.value = true;
|
|
66
|
-
} else if (props.visible === false) {
|
|
67
|
-
trapped.value = false;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
onMounted(() => {
|
|
71
|
-
watch(() => props.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
|
|
72
|
-
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
|
73
|
-
triggerTargetAriaStopWatch = void 0;
|
|
74
|
-
const el = unref(triggerTargetEl || contentRef.value);
|
|
75
|
-
const prevEl = unref(prevTriggerTargetEl || contentRef.value);
|
|
76
|
-
if (isElement(el)) {
|
|
77
|
-
triggerTargetAriaStopWatch = watch([role, () => props.ariaLabel, ariaModal, () => props.id], (watches) => {
|
|
78
|
-
["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
|
|
79
|
-
isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
|
80
|
-
});
|
|
81
|
-
}, { immediate: true });
|
|
82
|
-
}
|
|
83
|
-
if (prevEl !== el && isElement(prevEl)) {
|
|
84
|
-
["role", "aria-label", "aria-modal", "id"].forEach((key) => {
|
|
85
|
-
prevEl.removeAttribute(key);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}, { immediate: true });
|
|
89
|
-
watch(() => props.visible, togglePopperAlive, { immediate: true });
|
|
90
|
-
});
|
|
91
|
-
onBeforeUnmount(() => {
|
|
92
|
-
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
|
93
|
-
triggerTargetAriaStopWatch = void 0;
|
|
94
|
-
contentRef.value = void 0;
|
|
95
|
-
});
|
|
96
|
-
expose({
|
|
97
|
-
popperContentRef: contentRef,
|
|
98
|
-
popperInstanceRef: instanceRef,
|
|
99
|
-
updatePopper,
|
|
100
|
-
contentStyle
|
|
101
|
-
});
|
|
102
|
-
return (_ctx, _cache) => {
|
|
103
|
-
return openBlock(), createElementBlock("div", mergeProps({
|
|
104
|
-
ref_key: "contentRef",
|
|
105
|
-
ref: contentRef
|
|
106
|
-
}, unref(contentAttrs), {
|
|
107
|
-
style: unref(contentStyle),
|
|
108
|
-
class: unref(contentClass),
|
|
109
|
-
tabindex: "-1",
|
|
110
|
-
onMouseenter: (e) => _ctx.$emit("mouseenter", e),
|
|
111
|
-
onMouseleave: (e) => _ctx.$emit("mouseleave", e)
|
|
112
|
-
}), [
|
|
113
|
-
createVNode(unref(ElFocusTrap), {
|
|
114
|
-
loop: _ctx.loop,
|
|
115
|
-
trapped: unref(trapped),
|
|
116
|
-
"trap-on-focus-in": true,
|
|
117
|
-
"focus-trap-el": unref(contentRef),
|
|
118
|
-
"focus-start-el": unref(focusStartRef),
|
|
119
|
-
onFocusAfterTrapped: unref(onFocusAfterTrapped),
|
|
120
|
-
onFocusAfterReleased: unref(onFocusAfterReleased),
|
|
121
|
-
onFocusin: unref(onFocusInTrap),
|
|
122
|
-
onFocusoutPrevented: unref(onFocusoutPrevented),
|
|
123
|
-
onReleaseRequested: unref(onReleaseRequested)
|
|
124
|
-
}, {
|
|
125
|
-
default: withCtx(() => [
|
|
126
|
-
renderSlot(_ctx.$slots, "default")
|
|
127
|
-
]),
|
|
128
|
-
_: 3
|
|
129
|
-
}, 8, ["loop", "trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
|
|
130
|
-
], 16, ["onMouseenter", "onMouseleave"]);
|
|
131
|
-
};
|
|
6
|
+
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
7
|
+
const popperCoreConfigProps = buildProps({
|
|
8
|
+
boundariesPadding: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 0
|
|
11
|
+
},
|
|
12
|
+
fallbackPlacements: {
|
|
13
|
+
type: definePropType(Array),
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
gpuAcceleration: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
offset: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 12
|
|
23
|
+
},
|
|
24
|
+
placement: {
|
|
25
|
+
type: String,
|
|
26
|
+
values: placements,
|
|
27
|
+
default: "bottom"
|
|
28
|
+
},
|
|
29
|
+
popperOptions: {
|
|
30
|
+
type: definePropType(Object),
|
|
31
|
+
default: () => ({})
|
|
32
|
+
},
|
|
33
|
+
strategy: {
|
|
34
|
+
type: String,
|
|
35
|
+
values: POSITIONING_STRATEGIES,
|
|
36
|
+
default: "absolute"
|
|
132
37
|
}
|
|
133
38
|
});
|
|
134
|
-
|
|
39
|
+
const popperContentProps = buildProps({
|
|
40
|
+
...popperCoreConfigProps,
|
|
41
|
+
...popperArrowProps,
|
|
42
|
+
id: String,
|
|
43
|
+
style: {
|
|
44
|
+
type: definePropType([String, Array, Object])
|
|
45
|
+
},
|
|
46
|
+
className: {
|
|
47
|
+
type: definePropType([String, Array, Object])
|
|
48
|
+
},
|
|
49
|
+
effect: {
|
|
50
|
+
type: definePropType(String),
|
|
51
|
+
default: "dark"
|
|
52
|
+
},
|
|
53
|
+
visible: Boolean,
|
|
54
|
+
enterable: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
58
|
+
pure: Boolean,
|
|
59
|
+
focusOnShow: Boolean,
|
|
60
|
+
trapping: Boolean,
|
|
61
|
+
popperClass: {
|
|
62
|
+
type: definePropType([String, Array, Object])
|
|
63
|
+
},
|
|
64
|
+
popperStyle: {
|
|
65
|
+
type: definePropType([String, Array, Object])
|
|
66
|
+
},
|
|
67
|
+
referenceEl: {
|
|
68
|
+
type: definePropType(Object)
|
|
69
|
+
},
|
|
70
|
+
triggerTargetEl: {
|
|
71
|
+
type: definePropType(Object)
|
|
72
|
+
},
|
|
73
|
+
stopPopperMouseEvent: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: true
|
|
76
|
+
},
|
|
77
|
+
virtualTriggering: Boolean,
|
|
78
|
+
zIndex: Number,
|
|
79
|
+
...useAriaProps(["ariaLabel"]),
|
|
80
|
+
loop: Boolean
|
|
81
|
+
});
|
|
82
|
+
const popperContentEmits = {
|
|
83
|
+
mouseenter: (evt) => evt instanceof MouseEvent,
|
|
84
|
+
mouseleave: (evt) => evt instanceof MouseEvent,
|
|
85
|
+
focus: () => true,
|
|
86
|
+
blur: () => true,
|
|
87
|
+
close: () => true
|
|
88
|
+
};
|
|
89
|
+
const usePopperCoreConfigProps = popperCoreConfigProps;
|
|
90
|
+
const usePopperContentProps = popperContentProps;
|
|
91
|
+
const usePopperContentEmits = popperContentEmits;
|
|
135
92
|
|
|
136
|
-
export {
|
|
93
|
+
export { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps };
|
|
137
94
|
//# sourceMappingURL=content2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content2.mjs","sources":["../../../../../../packages/components/popper/src/content.
|
|
1
|
+
{"version":3,"file":"content2.mjs","sources":["../../../../../../packages/components/popper/src/content.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\nimport { popperArrowProps } from './arrow'\n\nimport type { PopperEffect } from './popper'\nimport type {\n ExtractPropTypes,\n StyleValue,\n __ExtractPublicPropTypes,\n} from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nconst POSITIONING_STRATEGIES = ['fixed', 'absolute'] as const\n\nexport interface CreatePopperInstanceParams {\n referenceEl: Measurable\n popperContentEl: HTMLElement\n arrowEl: HTMLElement | undefined\n}\n\nexport const popperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0,\n },\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: undefined,\n },\n gpuAcceleration: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the Tooltip\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: 'absolute',\n },\n} as const)\nexport type PopperCoreConfigProps = ExtractPropTypes<\n typeof popperCoreConfigProps\n>\nexport type PopperCoreConfigPropsPublic = __ExtractPublicPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n ...popperArrowProps,\n id: String,\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n className: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: Boolean,\n trapping: Boolean,\n popperClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n referenceEl: {\n type: definePropType<HTMLElement>(Object),\n },\n triggerTargetEl: {\n type: definePropType<HTMLElement>(Object),\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true,\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...useAriaProps(['ariaLabel']),\n loop: Boolean,\n} as const)\nexport type PopperContentProps = ExtractPropTypes<typeof popperContentProps>\nexport type PopperContentPropsPublic = __ExtractPublicPropTypes<\n typeof popperContentProps\n>\n\nexport const popperContentEmits = {\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n focus: () => true,\n blur: () => true,\n close: () => true,\n}\nexport type PopperContentEmits = typeof popperContentEmits\n\nexport type PopperContentInstance = InstanceType<typeof Content> & unknown\n\n/** @deprecated use `popperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport const usePopperCoreConfigProps = popperCoreConfigProps\n\n/** @deprecated use `popperContentProps` instead, and it will be deprecated in the next major version */\nexport const usePopperContentProps = popperContentProps\n\n/** @deprecated use `popperContentEmits` instead, and it will be deprecated in the next major version */\nexport const usePopperContentEmits = popperContentEmits\n\n/** @deprecated use `PopperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperCoreConfigProps = PopperCoreConfigProps\n\n/** @deprecated use `PopperContentProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperContentProps = PopperContentProps\n\n/** @deprecated use `PopperContentInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowContent = PopperContentInstance\n"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Select from './src/select2.mjs';
|
|
2
|
-
import Option from './src/
|
|
2
|
+
import Option from './src/option.mjs';
|
|
3
3
|
import OptionGroup from './src/option-group.mjs';
|
|
4
4
|
export { selectGroupKey, selectKey } from './src/token.mjs';
|
|
5
5
|
export { selectEmits, selectProps } from './src/select.mjs';
|
|
@@ -1,17 +1,95 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, unref, reactive, toRefs, getCurrentInstance, onBeforeUnmount, nextTick, withDirectives, openBlock, createElementBlock, normalizeClass, withModifiers, renderSlot, createElementVNode, toDisplayString, vShow } from 'vue';
|
|
2
|
+
import { useOption } from './useOption.mjs';
|
|
3
|
+
import { COMPONENT_NAME, optionProps } from './option2.mjs';
|
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
+
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
6
|
+
import { useId } from '../../../hooks/use-id/index.mjs';
|
|
2
7
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const _sfc_main = defineComponent({
|
|
9
|
+
name: COMPONENT_NAME,
|
|
10
|
+
componentName: COMPONENT_NAME,
|
|
11
|
+
props: optionProps,
|
|
12
|
+
setup(props) {
|
|
13
|
+
const ns = useNamespace("select");
|
|
14
|
+
const id = useId();
|
|
15
|
+
const containerKls = computed(() => [
|
|
16
|
+
ns.be("dropdown", "item"),
|
|
17
|
+
ns.is("disabled", unref(isDisabled)),
|
|
18
|
+
ns.is("selected", unref(itemSelected)),
|
|
19
|
+
ns.is("hovering", unref(hover))
|
|
20
|
+
]);
|
|
21
|
+
const states = reactive({
|
|
22
|
+
index: -1,
|
|
23
|
+
groupDisabled: false,
|
|
24
|
+
visible: true,
|
|
25
|
+
hover: false
|
|
26
|
+
});
|
|
27
|
+
const {
|
|
28
|
+
currentLabel,
|
|
29
|
+
itemSelected,
|
|
30
|
+
isDisabled,
|
|
31
|
+
select,
|
|
32
|
+
hoverItem,
|
|
33
|
+
updateOption
|
|
34
|
+
} = useOption(props, states);
|
|
35
|
+
const { visible, hover } = toRefs(states);
|
|
36
|
+
const vm = getCurrentInstance().proxy;
|
|
37
|
+
select.onOptionCreate(vm);
|
|
38
|
+
onBeforeUnmount(() => {
|
|
39
|
+
const key = vm.value;
|
|
40
|
+
nextTick(() => {
|
|
41
|
+
const { selected: selectedOptions } = select.states;
|
|
42
|
+
const doesSelected = selectedOptions.some((item) => {
|
|
43
|
+
return item.value === vm.value;
|
|
44
|
+
});
|
|
45
|
+
if (select.states.cachedOptions.get(key) === vm && !doesSelected) {
|
|
46
|
+
select.states.cachedOptions.delete(key);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
select.onOptionDestroy(key, vm);
|
|
50
|
+
});
|
|
51
|
+
function selectOptionClick() {
|
|
52
|
+
if (!isDisabled.value) {
|
|
53
|
+
select.handleOptionSelect(vm);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
ns,
|
|
58
|
+
id,
|
|
59
|
+
containerKls,
|
|
60
|
+
currentLabel,
|
|
61
|
+
itemSelected,
|
|
62
|
+
isDisabled,
|
|
63
|
+
select,
|
|
64
|
+
visible,
|
|
65
|
+
hover,
|
|
66
|
+
states,
|
|
67
|
+
hoverItem,
|
|
68
|
+
updateOption,
|
|
69
|
+
selectOptionClick
|
|
70
|
+
};
|
|
71
|
+
}
|
|
14
72
|
});
|
|
73
|
+
function _sfc_render(_ctx, _cache) {
|
|
74
|
+
return withDirectives((openBlock(), createElementBlock("li", {
|
|
75
|
+
id: _ctx.id,
|
|
76
|
+
class: normalizeClass(_ctx.containerKls),
|
|
77
|
+
role: "option",
|
|
78
|
+
"aria-disabled": _ctx.isDisabled || void 0,
|
|
79
|
+
"aria-selected": _ctx.itemSelected,
|
|
80
|
+
onMousemove: _ctx.hoverItem,
|
|
81
|
+
onClick: withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
82
|
+
onMousedown: withModifiers(() => {
|
|
83
|
+
}, ["prevent"])
|
|
84
|
+
}, [
|
|
85
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
86
|
+
createElementVNode("span", null, toDisplayString(_ctx.currentLabel), 1)
|
|
87
|
+
])
|
|
88
|
+
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick", "onMousedown"])), [
|
|
89
|
+
[vShow, _ctx.visible]
|
|
90
|
+
]);
|
|
91
|
+
}
|
|
92
|
+
var Option = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "option.vue"]]);
|
|
15
93
|
|
|
16
|
-
export {
|
|
94
|
+
export { Option as default };
|
|
17
95
|
//# sourceMappingURL=option.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.mjs","sources":["../../../../../../packages/components/select/src/option.
|
|
1
|
+
{"version":3,"file":"option.mjs","sources":["../../../../../../packages/components/select/src/option.vue"],"sourcesContent":["<template>\n <li\n v-show=\"visible\"\n :id=\"id\"\n :class=\"containerKls\"\n role=\"option\"\n :aria-disabled=\"isDisabled || undefined\"\n :aria-selected=\"itemSelected\"\n @mousemove=\"hoverItem\"\n @click.stop=\"selectOptionClick\"\n @mousedown.prevent\n >\n <slot>\n <span>{{ currentLabel }}</span>\n </slot>\n </li>\n</template>\n\n<script lang=\"ts\">\nimport {\n computed,\n defineComponent,\n getCurrentInstance,\n nextTick,\n onBeforeUnmount,\n reactive,\n toRefs,\n unref,\n} from 'vue'\nimport { useId, useNamespace } from '@element-plus/hooks'\nimport { useOption } from './useOption'\nimport { COMPONENT_NAME, optionProps } from './option'\n\nimport type {\n OptionExposed,\n OptionInternalInstance,\n OptionStates,\n} from './type'\n\nexport default defineComponent({\n name: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n\n props: optionProps,\n\n setup(props) {\n const ns = useNamespace('select')\n const id = useId()\n\n const containerKls = computed(() => [\n ns.be('dropdown', 'item'),\n ns.is('disabled', unref(isDisabled)),\n ns.is('selected', unref(itemSelected)),\n ns.is('hovering', unref(hover)),\n ])\n\n const states = reactive<OptionStates>({\n index: -1,\n groupDisabled: false,\n visible: true,\n hover: false,\n })\n\n const {\n currentLabel,\n itemSelected,\n isDisabled,\n select,\n hoverItem,\n updateOption,\n } = useOption(props, states)\n\n const { visible, hover } = toRefs(states)\n\n const vm = (getCurrentInstance()! as OptionInternalInstance).proxy\n\n select.onOptionCreate(vm)\n\n onBeforeUnmount(() => {\n const key = vm.value\n\n // if option is not selected, remove it from cache\n nextTick(() => {\n const { selected: selectedOptions } = select.states\n const doesSelected = selectedOptions.some((item) => {\n return item.value === vm.value\n })\n if (select.states.cachedOptions.get(key) === vm && !doesSelected) {\n select.states.cachedOptions.delete(key)\n }\n })\n select.onOptionDestroy(key, vm)\n })\n\n function selectOptionClick() {\n if (!isDisabled.value) {\n select.handleOptionSelect(vm)\n }\n }\n\n return {\n ns,\n id,\n containerKls,\n currentLabel,\n itemSelected,\n isDisabled,\n select,\n visible,\n hover,\n states,\n\n hoverItem,\n updateOption,\n selectOptionClick,\n } satisfies OptionExposed\n },\n})\n</script>\n"],"names":["_createElementBlock","_normalizeClass","_withModifiers","_renderSlot","_createElementVNode","_toDisplayString","_vShow"],"mappings":"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"}
|
|
@@ -1,95 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useOption } from './useOption.mjs';
|
|
3
|
-
import { COMPONENT_NAME, optionProps } from './option.mjs';
|
|
4
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
-
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
|
6
|
-
import { useId } from '../../../hooks/use-id/index.mjs';
|
|
1
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
7
2
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
ns.is("hovering", unref(hover))
|
|
20
|
-
]);
|
|
21
|
-
const states = reactive({
|
|
22
|
-
index: -1,
|
|
23
|
-
groupDisabled: false,
|
|
24
|
-
visible: true,
|
|
25
|
-
hover: false
|
|
26
|
-
});
|
|
27
|
-
const {
|
|
28
|
-
currentLabel,
|
|
29
|
-
itemSelected,
|
|
30
|
-
isDisabled,
|
|
31
|
-
select,
|
|
32
|
-
hoverItem,
|
|
33
|
-
updateOption
|
|
34
|
-
} = useOption(props, states);
|
|
35
|
-
const { visible, hover } = toRefs(states);
|
|
36
|
-
const vm = getCurrentInstance().proxy;
|
|
37
|
-
select.onOptionCreate(vm);
|
|
38
|
-
onBeforeUnmount(() => {
|
|
39
|
-
const key = vm.value;
|
|
40
|
-
nextTick(() => {
|
|
41
|
-
const { selected: selectedOptions } = select.states;
|
|
42
|
-
const doesSelected = selectedOptions.some((item) => {
|
|
43
|
-
return item.value === vm.value;
|
|
44
|
-
});
|
|
45
|
-
if (select.states.cachedOptions.get(key) === vm && !doesSelected) {
|
|
46
|
-
select.states.cachedOptions.delete(key);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
select.onOptionDestroy(key, vm);
|
|
50
|
-
});
|
|
51
|
-
function selectOptionClick() {
|
|
52
|
-
if (!isDisabled.value) {
|
|
53
|
-
select.handleOptionSelect(vm);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
ns,
|
|
58
|
-
id,
|
|
59
|
-
containerKls,
|
|
60
|
-
currentLabel,
|
|
61
|
-
itemSelected,
|
|
62
|
-
isDisabled,
|
|
63
|
-
select,
|
|
64
|
-
visible,
|
|
65
|
-
hover,
|
|
66
|
-
states,
|
|
67
|
-
hoverItem,
|
|
68
|
-
updateOption,
|
|
69
|
-
selectOptionClick
|
|
70
|
-
};
|
|
71
|
-
}
|
|
3
|
+
const COMPONENT_NAME = "ElOption";
|
|
4
|
+
const optionProps = buildProps({
|
|
5
|
+
value: {
|
|
6
|
+
type: [String, Number, Boolean, Object],
|
|
7
|
+
required: true
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: [String, Number]
|
|
11
|
+
},
|
|
12
|
+
created: Boolean,
|
|
13
|
+
disabled: Boolean
|
|
72
14
|
});
|
|
73
|
-
function _sfc_render(_ctx, _cache) {
|
|
74
|
-
return withDirectives((openBlock(), createElementBlock("li", {
|
|
75
|
-
id: _ctx.id,
|
|
76
|
-
class: normalizeClass(_ctx.containerKls),
|
|
77
|
-
role: "option",
|
|
78
|
-
"aria-disabled": _ctx.isDisabled || void 0,
|
|
79
|
-
"aria-selected": _ctx.itemSelected,
|
|
80
|
-
onMousemove: _ctx.hoverItem,
|
|
81
|
-
onClick: withModifiers(_ctx.selectOptionClick, ["stop"]),
|
|
82
|
-
onMousedown: withModifiers(() => {
|
|
83
|
-
}, ["prevent"])
|
|
84
|
-
}, [
|
|
85
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
86
|
-
createElementVNode("span", null, toDisplayString(_ctx.currentLabel), 1)
|
|
87
|
-
])
|
|
88
|
-
], 42, ["id", "aria-disabled", "aria-selected", "onMousemove", "onClick", "onMousedown"])), [
|
|
89
|
-
[vShow, _ctx.visible]
|
|
90
|
-
]);
|
|
91
|
-
}
|
|
92
|
-
var Option = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "option.vue"]]);
|
|
93
15
|
|
|
94
|
-
export {
|
|
16
|
+
export { COMPONENT_NAME, optionProps };
|
|
95
17
|
//# sourceMappingURL=option2.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option2.mjs","sources":["../../../../../../packages/components/select/src/option.
|
|
1
|
+
{"version":3,"file":"option2.mjs","sources":["../../../../../../packages/components/select/src/option.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nexport const COMPONENT_NAME = 'ElOption'\nexport const optionProps = buildProps({\n /**\n * @description value of option\n */\n value: {\n type: [String, Number, Boolean, Object],\n required: true as const,\n },\n /**\n * @description label of option, same as `value` if omitted\n */\n label: {\n type: [String, Number],\n },\n created: Boolean,\n /**\n * @description whether option is disabled\n */\n disabled: Boolean,\n})\n"],"names":[],"mappings":";;AACY,MAAC,cAAc,GAAG,WAAW;AAC7B,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;AAC3C,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC;;;;"}
|
|
@@ -6,7 +6,7 @@ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs
|
|
|
6
6
|
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
|
7
7
|
import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
|
8
8
|
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
9
|
-
import { tagProps } from '../../tag/src/
|
|
9
|
+
import { tagProps } from '../../tag/src/tag2.mjs';
|
|
10
10
|
import { useEmptyValuesProps } from '../../../hooks/use-empty-values/index.mjs';
|
|
11
11
|
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
|
12
12
|
import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
|
@@ -403,13 +403,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
403
403
|
placement: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown>;
|
|
404
404
|
effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect))[], unknown, unknown>;
|
|
405
405
|
valueOnClear: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null))[], unknown, unknown>;
|
|
406
|
+
teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
406
407
|
autocomplete: string;
|
|
407
408
|
validateEvent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
408
409
|
clearable: boolean;
|
|
409
410
|
fallbackPlacements: import("element-plus").Placement[];
|
|
410
411
|
popperOptions: Partial<import("element-plus").Options>;
|
|
411
412
|
popperClass: string;
|
|
412
|
-
teleported: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
413
413
|
persistent: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
414
414
|
showArrow: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
415
415
|
valueKey: string;
|
|
@@ -4,7 +4,7 @@ import { ElScrollbar } from '../../scrollbar/index.mjs';
|
|
|
4
4
|
import { ElTag } from '../../tag/index.mjs';
|
|
5
5
|
import { ElIcon } from '../../icon/index.mjs';
|
|
6
6
|
import { useProps } from '../../select-v2/src/useProps.mjs';
|
|
7
|
-
import Option from './
|
|
7
|
+
import Option from './option.mjs';
|
|
8
8
|
import ElSelectMenu from './select-dropdown.mjs';
|
|
9
9
|
import { useSelect } from './useSelect.mjs';
|
|
10
10
|
import { selectKey } from './token.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject, computed, getCurrentInstance, toRaw, watch } from 'vue';
|
|
2
2
|
import { castArray, get, isEqual } from 'lodash-unified';
|
|
3
3
|
import { selectKey, selectGroupKey } from './token.mjs';
|
|
4
|
-
import { COMPONENT_NAME } from './
|
|
4
|
+
import { COMPONENT_NAME } from './option2.mjs';
|
|
5
5
|
import { escapeStringRegexp } from '../../../utils/strings.mjs';
|
|
6
6
|
import { throwError } from '../../../utils/error.mjs';
|
|
7
7
|
import { isObject } from '@vue/shared';
|
|
@@ -5,7 +5,7 @@ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs
|
|
|
5
5
|
import { iconPropType } from '../../../utils/vue/icon.mjs';
|
|
6
6
|
import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
|
|
7
7
|
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
|
8
|
-
import { tagProps } from '../../tag/src/
|
|
8
|
+
import { tagProps } from '../../tag/src/tag2.mjs';
|
|
9
9
|
import { isBoolean, isNumber } from '../../../utils/types.mjs';
|
|
10
10
|
import { useEmptyValuesProps } from '../../../hooks/use-empty-values/index.mjs';
|
|
11
11
|
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|