element-plus 1.3.0-beta.7 → 1.3.0-beta.8
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 +612 -462
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +612 -462
- package/dist/locale/af.js +6 -8
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.js.map +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +6 -8
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.js.map +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/bg.js +6 -8
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.js.map +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +6 -8
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.js.map +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +6 -8
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.js.map +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +6 -8
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.js.map +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +6 -8
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.js.map +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +6 -8
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.js.map +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +6 -8
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.js.map +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +6 -8
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.js.map +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +6 -8
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.js.map +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +6 -8
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.js.map +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +6 -8
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.js.map +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +6 -8
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.js.map +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +6 -8
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.js.map +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +6 -8
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.js.map +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +6 -8
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.js.map +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +6 -8
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.js.map +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +6 -8
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.js.map +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +6 -8
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.js.map +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +6 -8
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.js.map +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +6 -8
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.js.map +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +6 -8
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.js.map +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +6 -8
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.js.map +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +6 -8
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.js.map +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +6 -8
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.js.map +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +6 -8
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.js.map +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +6 -8
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.js.map +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +6 -8
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.js.map +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +6 -8
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.js.map +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +6 -8
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.js.map +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mn.js +6 -8
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.js.map +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +6 -8
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.js.map +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +6 -8
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.js.map +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +6 -8
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.js.map +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +6 -8
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.js.map +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +6 -8
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.js.map +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +6 -8
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.js.map +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +6 -8
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.js.map +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +6 -8
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.js.map +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +6 -8
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.js.map +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +6 -8
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.js.map +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +6 -8
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.js.map +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +6 -8
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.js.map +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +6 -8
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.js.map +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +6 -8
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.js.map +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +6 -8
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.js.map +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +6 -8
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.js.map +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +6 -8
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.js.map +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +6 -8
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.js.map +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +6 -8
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.js.map +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +6 -8
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.js.map +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +6 -8
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.js.map +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +6 -8
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.js.map +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix2.mjs +2 -1
- package/es/components/affix/src/affix2.mjs.map +1 -1
- package/es/components/autocomplete/index.d.ts +22 -0
- package/es/components/autocomplete/src/index.mjs +17 -16
- package/es/components/autocomplete/src/index.mjs.map +1 -1
- package/es/components/autocomplete/src/index.vue.d.ts +11 -0
- package/es/components/backtop/index.d.ts +11 -0
- package/es/components/backtop/src/backtop.vue.d.ts +11 -0
- package/es/components/backtop/src/backtop2.mjs +18 -9
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs +2 -2
- package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +11 -7
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/carousel/src/item.mjs +4 -2
- package/es/components/carousel/src/item.mjs.map +1 -1
- package/es/components/cascader/src/index.mjs +38 -21
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +16 -13
- package/es/components/cascader-panel/src/index.mjs.map +1 -1
- package/es/components/cascader-panel/src/menu.mjs +25 -22
- package/es/components/cascader-panel/src/menu.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +6 -2
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +33 -0
- package/es/components/checkbox/src/checkbox-button.mjs +21 -15
- package/es/components/checkbox/src/checkbox-button.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +11 -0
- package/es/components/checkbox/src/checkbox-group.mjs +5 -2
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.mjs +36 -28
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +11 -0
- package/es/components/collapse/src/collapse-item.mjs +3 -3
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/color-picker/src/index.mjs +8 -5
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +2 -1
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs +2 -1
- package/es/components/date-picker/src/date-picker-com/basic-month-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.mjs.map +1 -1
- package/es/components/descriptions/src/index.mjs +7 -2
- package/es/components/descriptions/src/index.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -3
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +12 -6
- package/es/components/dropdown/src/dropdown-item.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +2 -1
- package/es/components/dropdown/src/dropdown-menu.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +9 -5
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs +1 -1
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -1
- package/es/components/form/src/form-item.mjs +6 -4
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/image/src/image2.mjs +3 -2
- package/es/components/image/src/image2.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +3 -2
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +17 -8
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs +12 -6
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +1 -1
- package/es/components/message-box/src/index.mjs +4 -2
- package/es/components/message-box/src/index.mjs.map +1 -1
- package/es/components/notification/src/notification2.mjs +1 -1
- package/es/components/pagination/src/components/jumper.mjs +5 -2
- package/es/components/pagination/src/components/jumper.mjs.map +1 -1
- package/es/components/pagination/src/components/sizes.mjs +2 -1
- package/es/components/pagination/src/components/sizes.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +6 -3
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/src/index.mjs +4 -2
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popper/src/content.mjs +5 -3
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/trigger.mjs +1 -1
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +2 -1
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +4 -4
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +1 -1
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +10 -6
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -1
- package/es/components/scrollbar/src/bar2.mjs +2 -1
- package/es/components/scrollbar/src/bar2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +2 -2
- package/es/components/select/src/option-group.mjs +2 -1
- package/es/components/select/src/option-group.mjs.map +1 -1
- package/es/components/select/src/select-dropdown.mjs +2 -1
- package/es/components/select/src/select-dropdown.mjs.map +1 -1
- package/es/components/select/src/select.mjs +2 -1
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select-dropdown.mjs +2 -1
- package/es/components/select-v2/src/select-dropdown.mjs.map +1 -1
- package/es/components/select-v2/src/select.mjs +192 -186
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/slider/src/index.mjs +3 -2
- package/es/components/slider/src/index.mjs.map +1 -1
- package/es/components/slider/src/marker.mjs +2 -1
- package/es/components/slider/src/marker.mjs.map +1 -1
- package/es/components/steps/src/item.mjs +2 -1
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs +4 -2
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +7 -3
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +3 -2
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.mjs +16 -8
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-select/src/time-select.mjs +4 -2
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +9 -4
- package/es/components/tooltip/src/content.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip2.mjs +2 -1
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/transfer/src/index.mjs +2 -1
- package/es/components/transfer/src/index.mjs.map +1 -1
- package/es/components/tree/src/tree.mjs +2 -1
- package/es/components/tree/src/tree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree-node.mjs +11 -7
- package/es/components/tree-v2/src/tree-node.mjs.map +1 -1
- package/es/components/tree-v2/src/tree.mjs +2 -1
- package/es/components/tree-v2/src/tree.mjs.map +1 -1
- package/es/components/upload/src/index.mjs +3 -2
- package/es/components/upload/src/index.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger.mjs +2 -1
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/utils/validators.d.ts +0 -1
- package/es/utils/validators.mjs +1 -9
- package/es/utils/validators.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix2.js +2 -1
- package/lib/components/affix/src/affix2.js.map +1 -1
- package/lib/components/autocomplete/index.d.ts +22 -0
- package/lib/components/autocomplete/src/index.js +19 -18
- package/lib/components/autocomplete/src/index.js.map +1 -1
- package/lib/components/autocomplete/src/index.vue.d.ts +11 -0
- package/lib/components/backtop/index.d.ts +11 -0
- package/lib/components/backtop/src/backtop.vue.d.ts +11 -0
- package/lib/components/backtop/src/backtop2.js +17 -8
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/breadcrumb/src/breadcrumb-item2.js +2 -2
- package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
- package/lib/components/button/src/button2.js +11 -7
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/carousel/src/item.js +4 -2
- package/lib/components/carousel/src/item.js.map +1 -1
- package/lib/components/cascader/src/index.js +38 -21
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +16 -13
- package/lib/components/cascader-panel/src/index.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.js +25 -22
- package/lib/components/cascader-panel/src/menu.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +6 -2
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +33 -0
- package/lib/components/checkbox/src/checkbox-button.js +21 -15
- package/lib/components/checkbox/src/checkbox-button.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +11 -0
- package/lib/components/checkbox/src/checkbox-group.js +5 -2
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.js +35 -27
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +11 -0
- package/lib/components/collapse/src/collapse-item.js +3 -3
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/color-picker/src/index.js +8 -5
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +2 -1
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js +2 -1
- package/lib/components/date-picker/src/date-picker-com/basic-month-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.js.map +1 -1
- package/lib/components/descriptions/src/index.js +7 -2
- package/lib/components/descriptions/src/index.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -3
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +12 -6
- package/lib/components/dropdown/src/dropdown-item.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +2 -1
- package/lib/components/dropdown/src/dropdown-menu.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +9 -5
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/focus-trap/src/focus-trap.js +1 -1
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -1
- package/lib/components/form/src/form-item.js +6 -4
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/image/src/image2.js +3 -2
- package/lib/components/image/src/image2.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +3 -2
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/input/src/input2.js +17 -8
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js +12 -6
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/message/src/message2.js +1 -1
- package/lib/components/message-box/src/index.js +4 -2
- package/lib/components/message-box/src/index.js.map +1 -1
- package/lib/components/notification/src/notification2.js +1 -1
- package/lib/components/pagination/src/components/jumper.js +5 -2
- package/lib/components/pagination/src/components/jumper.js.map +1 -1
- package/lib/components/pagination/src/components/sizes.js +2 -1
- package/lib/components/pagination/src/components/sizes.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +6 -3
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/src/index.js +4 -2
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popper/src/content.js +5 -3
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/trigger.js +1 -1
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/progress/src/progress2.js +2 -1
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +4 -4
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +1 -1
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +10 -6
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -1
- package/lib/components/scrollbar/src/bar2.js +2 -1
- package/lib/components/scrollbar/src/bar2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +2 -2
- package/lib/components/select/src/option-group.js +2 -1
- package/lib/components/select/src/option-group.js.map +1 -1
- package/lib/components/select/src/select-dropdown.js +2 -1
- package/lib/components/select/src/select-dropdown.js.map +1 -1
- package/lib/components/select/src/select.js +2 -1
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select-dropdown.js +2 -1
- package/lib/components/select-v2/src/select-dropdown.js.map +1 -1
- package/lib/components/select-v2/src/select.js +192 -186
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/slider/src/index.js +3 -2
- package/lib/components/slider/src/index.js.map +1 -1
- package/lib/components/slider/src/marker.js +2 -1
- package/lib/components/slider/src/marker.js.map +1 -1
- package/lib/components/steps/src/item.js +2 -1
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/switch/src/switch2.js +4 -2
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +7 -3
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +3 -2
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.js +16 -8
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-select/src/time-select.js +4 -2
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/tooltip/src/content.js +9 -4
- package/lib/components/tooltip/src/content.js.map +1 -1
- package/lib/components/tooltip/src/tooltip2.js +2 -1
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/transfer/src/index.js +2 -1
- package/lib/components/transfer/src/index.js.map +1 -1
- package/lib/components/tree/src/tree.js +2 -1
- package/lib/components/tree/src/tree.js.map +1 -1
- package/lib/components/tree-v2/src/tree-node.js +11 -7
- package/lib/components/tree-v2/src/tree-node.js.map +1 -1
- package/lib/components/tree-v2/src/tree.js +2 -1
- package/lib/components/tree-v2/src/tree.js.map +1 -1
- package/lib/components/upload/src/index.js +3 -2
- package/lib/components/upload/src/index.js.map +1 -1
- package/lib/components/upload/src/upload-dragger.js +2 -1
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/utils/validators.d.ts +0 -1
- package/lib/utils/validators.js +0 -9
- package/lib/utils/validators.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v1.3.0-beta.
|
|
1
|
+
/*! Element Plus v1.3.0-beta.8 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -4544,7 +4544,7 @@
|
|
|
4544
4544
|
});
|
|
4545
4545
|
}
|
|
4546
4546
|
|
|
4547
|
-
const version$1 = "1.3.0-beta.
|
|
4547
|
+
const version$1 = "1.3.0-beta.8";
|
|
4548
4548
|
|
|
4549
4549
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4550
4550
|
const makeInstaller = (components = []) => {
|
|
@@ -4697,8 +4697,9 @@
|
|
|
4697
4697
|
emit("change", state.fixed);
|
|
4698
4698
|
});
|
|
4699
4699
|
vue.onMounted(() => {
|
|
4700
|
+
var _a;
|
|
4700
4701
|
if (props.target) {
|
|
4701
|
-
target.value = document.querySelector(props.target)
|
|
4702
|
+
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
4702
4703
|
if (!target.value) {
|
|
4703
4704
|
throw new Error(`Target is not existed: ${props.target}`);
|
|
4704
4705
|
}
|
|
@@ -5110,13 +5111,13 @@
|
|
|
5110
5111
|
fill: "currentColor",
|
|
5111
5112
|
d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
|
|
5112
5113
|
}, null, -1);
|
|
5113
|
-
const _hoisted_5$
|
|
5114
|
+
const _hoisted_5$f = [
|
|
5114
5115
|
_hoisted_2$1g,
|
|
5115
5116
|
_hoisted_3$10,
|
|
5116
5117
|
_hoisted_4$n
|
|
5117
5118
|
];
|
|
5118
5119
|
function _sfc_render$2r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5119
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1E, _hoisted_5$
|
|
5120
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1E, _hoisted_5$f);
|
|
5120
5121
|
}
|
|
5121
5122
|
var clock = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["render", _sfc_render$2r]]);
|
|
5122
5123
|
|
|
@@ -6527,8 +6528,11 @@
|
|
|
6527
6528
|
const passwordVisible = vue.ref(false);
|
|
6528
6529
|
const _textareaCalcStyle = vue.shallowRef(props.inputStyle);
|
|
6529
6530
|
const inputOrTextarea = vue.computed(() => input.value || textarea.value);
|
|
6530
|
-
const needStatusIcon = vue.computed(() =>
|
|
6531
|
-
|
|
6531
|
+
const needStatusIcon = vue.computed(() => {
|
|
6532
|
+
var _a;
|
|
6533
|
+
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
6534
|
+
});
|
|
6535
|
+
const validateState = vue.computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
6532
6536
|
const validateIcon = vue.computed(() => ValidateComponentsMap[validateState.value]);
|
|
6533
6537
|
const containerStyle = vue.computed(() => rawAttrs.style);
|
|
6534
6538
|
const computedTextareaStyle = vue.computed(() => [
|
|
@@ -6598,33 +6602,38 @@
|
|
|
6598
6602
|
};
|
|
6599
6603
|
const focus = () => {
|
|
6600
6604
|
vue.nextTick(() => {
|
|
6601
|
-
|
|
6605
|
+
var _a;
|
|
6606
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
|
|
6602
6607
|
});
|
|
6603
6608
|
};
|
|
6604
6609
|
const blur = () => {
|
|
6605
|
-
|
|
6610
|
+
var _a;
|
|
6611
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
|
|
6606
6612
|
};
|
|
6607
6613
|
const handleFocus = (event) => {
|
|
6608
6614
|
focused.value = true;
|
|
6609
6615
|
emit("focus", event);
|
|
6610
6616
|
};
|
|
6611
6617
|
const handleBlur = (event) => {
|
|
6618
|
+
var _a;
|
|
6612
6619
|
focused.value = false;
|
|
6613
6620
|
emit("blur", event);
|
|
6614
6621
|
if (props.validateEvent) {
|
|
6615
|
-
formItem
|
|
6622
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
6616
6623
|
}
|
|
6617
6624
|
};
|
|
6618
6625
|
const select = () => {
|
|
6619
|
-
|
|
6626
|
+
var _a;
|
|
6627
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.select();
|
|
6620
6628
|
};
|
|
6621
6629
|
const handleCompositionStart = (event) => {
|
|
6622
6630
|
emit("compositionstart", event);
|
|
6623
6631
|
isComposing.value = true;
|
|
6624
6632
|
};
|
|
6625
6633
|
const handleCompositionUpdate = (event) => {
|
|
6634
|
+
var _a;
|
|
6626
6635
|
emit("compositionupdate", event);
|
|
6627
|
-
const text = event.target
|
|
6636
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
6628
6637
|
const lastCharacter = text[text.length - 1] || "";
|
|
6629
6638
|
isComposing.value = !isKorean(lastCharacter);
|
|
6630
6639
|
};
|
|
@@ -6647,9 +6656,10 @@
|
|
|
6647
6656
|
};
|
|
6648
6657
|
const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
6649
6658
|
vue.watch(() => props.modelValue, () => {
|
|
6659
|
+
var _a;
|
|
6650
6660
|
vue.nextTick(resizeTextarea);
|
|
6651
6661
|
if (props.validateEvent) {
|
|
6652
|
-
formItem
|
|
6662
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
6653
6663
|
}
|
|
6654
6664
|
});
|
|
6655
6665
|
vue.watch(nativeInputValue, () => setNativeInputValue());
|
|
@@ -6960,10 +6970,11 @@
|
|
|
6960
6970
|
}));
|
|
6961
6971
|
const offsetRatio = vue.computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props.ratio / thumb.value[bar.value.offset]);
|
|
6962
6972
|
const clickThumbHandler = (e) => {
|
|
6973
|
+
var _a;
|
|
6963
6974
|
e.stopPropagation();
|
|
6964
6975
|
if (e.ctrlKey || [1, 2].includes(e.button))
|
|
6965
6976
|
return;
|
|
6966
|
-
window.getSelection()
|
|
6977
|
+
(_a = window.getSelection()) == null ? void 0 : _a.removeAllRanges();
|
|
6967
6978
|
startDrag(e);
|
|
6968
6979
|
const el = e.currentTarget;
|
|
6969
6980
|
if (!el)
|
|
@@ -7178,8 +7189,8 @@
|
|
|
7178
7189
|
};
|
|
7179
7190
|
vue.watch(() => props.noresize, (noresize) => {
|
|
7180
7191
|
if (noresize) {
|
|
7181
|
-
stopResizeObserver
|
|
7182
|
-
stopResizeListener
|
|
7192
|
+
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
7193
|
+
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
7183
7194
|
} else {
|
|
7184
7195
|
({ stop: stopResizeObserver } = useResizeObserver(resize$, update));
|
|
7185
7196
|
stopResizeListener = useEventListener("resize", update);
|
|
@@ -9351,7 +9362,7 @@
|
|
|
9351
9362
|
const handler = props[eventName];
|
|
9352
9363
|
if (handler) {
|
|
9353
9364
|
el.addEventListener(eventName.slice(2).toLowerCase(), handler);
|
|
9354
|
-
prevEl
|
|
9365
|
+
prevEl == null ? void 0 : prevEl.removeEventListener(eventName.slice(2).toLowerCase(), handler);
|
|
9355
9366
|
}
|
|
9356
9367
|
});
|
|
9357
9368
|
}
|
|
@@ -9411,15 +9422,17 @@
|
|
|
9411
9422
|
return createPopper(referenceEl, popperContentEl, options);
|
|
9412
9423
|
};
|
|
9413
9424
|
const updatePopper = () => {
|
|
9414
|
-
|
|
9425
|
+
var _a;
|
|
9426
|
+
(_a = vue.unref(popperInstanceRef)) == null ? void 0 : _a.update();
|
|
9415
9427
|
contentZIndex.value = props.zIndex || PopupManager.nextZIndex();
|
|
9416
9428
|
};
|
|
9417
9429
|
vue.onMounted(() => {
|
|
9418
9430
|
let updateHandle;
|
|
9419
9431
|
vue.watch(() => unwrapMeasurableEl(props.referenceEl) || vue.unref(triggerRef), (val) => {
|
|
9420
|
-
|
|
9432
|
+
var _a;
|
|
9433
|
+
updateHandle == null ? void 0 : updateHandle();
|
|
9421
9434
|
if (val) {
|
|
9422
|
-
popperInstanceRef.value
|
|
9435
|
+
(_a = popperInstanceRef.value) == null ? void 0 : _a.destroy();
|
|
9423
9436
|
const popperContentEl = vue.unref(popperContentRef);
|
|
9424
9437
|
contentRef.value = popperContentEl;
|
|
9425
9438
|
const arrowEl = vue.unref(arrowRef);
|
|
@@ -9586,7 +9599,10 @@
|
|
|
9586
9599
|
const shouldShow = vue.computed(() => {
|
|
9587
9600
|
return props.disabled ? false : vue.unref(open);
|
|
9588
9601
|
});
|
|
9589
|
-
const contentStyle = vue.computed(() =>
|
|
9602
|
+
const contentStyle = vue.computed(() => {
|
|
9603
|
+
var _a;
|
|
9604
|
+
return (_a = props.style) != null ? _a : {};
|
|
9605
|
+
});
|
|
9590
9606
|
const ariaHidden = vue.computed(() => !vue.unref(open));
|
|
9591
9607
|
useEscapeKeydown(onClose);
|
|
9592
9608
|
const onTransitionLeave = () => {
|
|
@@ -9607,7 +9623,8 @@
|
|
|
9607
9623
|
}
|
|
9608
9624
|
});
|
|
9609
9625
|
const onBeforeEnter = () => {
|
|
9610
|
-
|
|
9626
|
+
var _a, _b;
|
|
9627
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
9611
9628
|
};
|
|
9612
9629
|
const onAfterShow = () => {
|
|
9613
9630
|
onShow();
|
|
@@ -9616,7 +9633,8 @@
|
|
|
9616
9633
|
vue.watch(() => vue.unref(open), (val) => {
|
|
9617
9634
|
if (val) {
|
|
9618
9635
|
stopHandle = onClickOutside(vue.computed(() => {
|
|
9619
|
-
|
|
9636
|
+
var _a;
|
|
9637
|
+
return (_a = contentRef.value) == null ? void 0 : _a.popperContentRef;
|
|
9620
9638
|
}), () => {
|
|
9621
9639
|
if (vue.unref(controlled))
|
|
9622
9640
|
return;
|
|
@@ -9626,7 +9644,7 @@
|
|
|
9626
9644
|
}
|
|
9627
9645
|
});
|
|
9628
9646
|
} else {
|
|
9629
|
-
stopHandle
|
|
9647
|
+
stopHandle == null ? void 0 : stopHandle();
|
|
9630
9648
|
}
|
|
9631
9649
|
}, {
|
|
9632
9650
|
flush: "post"
|
|
@@ -9823,9 +9841,10 @@
|
|
|
9823
9841
|
const id = useId();
|
|
9824
9842
|
const popperRef = vue.ref(null);
|
|
9825
9843
|
const updatePopper = () => {
|
|
9844
|
+
var _a;
|
|
9826
9845
|
const popperComponent = vue.unref(popperRef);
|
|
9827
9846
|
if (popperComponent) {
|
|
9828
|
-
popperComponent.popperInstanceRef
|
|
9847
|
+
(_a = popperComponent.popperInstanceRef) == null ? void 0 : _a.update();
|
|
9829
9848
|
}
|
|
9830
9849
|
};
|
|
9831
9850
|
const open = vue.ref(false);
|
|
@@ -10019,6 +10038,7 @@
|
|
|
10019
10038
|
"select"
|
|
10020
10039
|
],
|
|
10021
10040
|
setup(props, ctx) {
|
|
10041
|
+
const ns = useNamespace("autocomplete");
|
|
10022
10042
|
const attrs = useAttrs();
|
|
10023
10043
|
const suggestions = vue.ref([]);
|
|
10024
10044
|
const highlightedIndex = vue.ref(-1);
|
|
@@ -10030,7 +10050,7 @@
|
|
|
10030
10050
|
const regionRef = vue.ref(null);
|
|
10031
10051
|
const popper = vue.ref(null);
|
|
10032
10052
|
const id = vue.computed(() => {
|
|
10033
|
-
return
|
|
10053
|
+
return ns.b(String(generateId()));
|
|
10034
10054
|
});
|
|
10035
10055
|
const suggestionVisible = vue.computed(() => {
|
|
10036
10056
|
const isValidData = isArray$9(suggestions.value) && suggestions.value.length > 0;
|
|
@@ -10115,7 +10135,8 @@
|
|
|
10115
10135
|
activated.value = false;
|
|
10116
10136
|
};
|
|
10117
10137
|
const focus = () => {
|
|
10118
|
-
|
|
10138
|
+
var _a;
|
|
10139
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
10119
10140
|
};
|
|
10120
10141
|
const select = (item) => {
|
|
10121
10142
|
ctx.emit("input", item[props.valueKey]);
|
|
@@ -10137,8 +10158,8 @@
|
|
|
10137
10158
|
if (index >= suggestions.value.length) {
|
|
10138
10159
|
index = suggestions.value.length - 1;
|
|
10139
10160
|
}
|
|
10140
|
-
const suggestion = regionRef.value.querySelector(
|
|
10141
|
-
const suggestionList = suggestion.querySelectorAll("
|
|
10161
|
+
const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
|
|
10162
|
+
const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
|
|
10142
10163
|
const highlightItem = suggestionList[index];
|
|
10143
10164
|
const scrollTop = suggestion.scrollTop;
|
|
10144
10165
|
const { offsetTop, scrollHeight } = highlightItem;
|
|
@@ -10176,7 +10197,8 @@
|
|
|
10176
10197
|
focus,
|
|
10177
10198
|
select,
|
|
10178
10199
|
highlight,
|
|
10179
|
-
onSuggestionShow
|
|
10200
|
+
onSuggestionShow,
|
|
10201
|
+
ns
|
|
10180
10202
|
};
|
|
10181
10203
|
}
|
|
10182
10204
|
});
|
|
@@ -10196,32 +10218,29 @@
|
|
|
10196
10218
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.suggestionVisible = $event),
|
|
10197
10219
|
placement: _ctx.placement,
|
|
10198
10220
|
"fallback-placements": ["bottom-start", "top-start"],
|
|
10199
|
-
"popper-class":
|
|
10221
|
+
"popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
|
|
10200
10222
|
"append-to-body": _ctx.popperAppendToBody,
|
|
10201
10223
|
"gpu-acceleration": false,
|
|
10202
10224
|
pure: "",
|
|
10203
10225
|
"manual-mode": "",
|
|
10204
10226
|
effect: "light",
|
|
10205
10227
|
trigger: "click",
|
|
10206
|
-
transition:
|
|
10228
|
+
transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
|
|
10207
10229
|
persistent: "",
|
|
10208
10230
|
onShow: _ctx.onSuggestionShow
|
|
10209
10231
|
}, {
|
|
10210
10232
|
content: vue.withCtx(() => [
|
|
10211
10233
|
vue.createElementVNode("div", {
|
|
10212
10234
|
ref: "regionRef",
|
|
10213
|
-
class: vue.normalizeClass([
|
|
10214
|
-
"el-autocomplete-suggestion",
|
|
10215
|
-
_ctx.suggestionLoading && "is-loading"
|
|
10216
|
-
]),
|
|
10235
|
+
class: vue.normalizeClass([_ctx.ns.b("suggestion"), _ctx.ns.is("loading", _ctx.suggestionLoading)]),
|
|
10217
10236
|
style: vue.normalizeStyle({ minWidth: _ctx.dropdownWidth, outline: "none" }),
|
|
10218
10237
|
role: "region"
|
|
10219
10238
|
}, [
|
|
10220
10239
|
vue.createVNode(_component_el_scrollbar, {
|
|
10221
10240
|
id: _ctx.id,
|
|
10222
10241
|
tag: "ul",
|
|
10223
|
-
"wrap-class": "
|
|
10224
|
-
"view-class": "
|
|
10242
|
+
"wrap-class": _ctx.ns.be("suggestion", "wrap"),
|
|
10243
|
+
"view-class": _ctx.ns.be("suggestion", "list"),
|
|
10225
10244
|
role: "listbox"
|
|
10226
10245
|
}, {
|
|
10227
10246
|
default: vue.withCtx(() => [
|
|
@@ -10248,12 +10267,12 @@
|
|
|
10248
10267
|
}), 128))
|
|
10249
10268
|
]),
|
|
10250
10269
|
_: 3
|
|
10251
|
-
}, 8, ["id"])
|
|
10270
|
+
}, 8, ["id", "wrap-class", "view-class"])
|
|
10252
10271
|
], 6)
|
|
10253
10272
|
]),
|
|
10254
10273
|
default: vue.withCtx(() => [
|
|
10255
10274
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
10256
|
-
class: vue.normalizeClass([
|
|
10275
|
+
class: vue.normalizeClass([_ctx.ns.b(), _ctx.$attrs.class]),
|
|
10257
10276
|
style: vue.normalizeStyle(_ctx.$attrs.style),
|
|
10258
10277
|
role: "combobox",
|
|
10259
10278
|
"aria-haspopup": "listbox",
|
|
@@ -10304,7 +10323,7 @@
|
|
|
10304
10323
|
])
|
|
10305
10324
|
]),
|
|
10306
10325
|
_: 3
|
|
10307
|
-
}, 8, ["visible", "placement", "popper-class", "append-to-body", "onShow"]);
|
|
10326
|
+
}, 8, ["visible", "placement", "popper-class", "append-to-body", "transition", "onShow"]);
|
|
10308
10327
|
}
|
|
10309
10328
|
var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$1X, [["render", _sfc_render$1S]]);
|
|
10310
10329
|
|
|
@@ -10449,6 +10468,7 @@
|
|
|
10449
10468
|
props: backtopProps,
|
|
10450
10469
|
emits: backtopEmits,
|
|
10451
10470
|
setup(props, { emit }) {
|
|
10471
|
+
const ns = useNamespace("backtop");
|
|
10452
10472
|
const el = vue.shallowRef(document.documentElement);
|
|
10453
10473
|
const container = vue.shallowRef(document);
|
|
10454
10474
|
const visible = vue.ref(false);
|
|
@@ -10482,8 +10502,9 @@
|
|
|
10482
10502
|
};
|
|
10483
10503
|
const handleScrollThrottled = useThrottleFn(handleScroll, 300);
|
|
10484
10504
|
vue.onMounted(() => {
|
|
10505
|
+
var _a;
|
|
10485
10506
|
if (props.target) {
|
|
10486
|
-
el.value = document.querySelector(props.target)
|
|
10507
|
+
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
10487
10508
|
if (!el.value) {
|
|
10488
10509
|
throwError(COMPONENT_NAME$8, `target is not existed: ${props.target}`);
|
|
10489
10510
|
}
|
|
@@ -10495,14 +10516,17 @@
|
|
|
10495
10516
|
visible,
|
|
10496
10517
|
styleBottom,
|
|
10497
10518
|
styleRight,
|
|
10498
|
-
handleClick
|
|
10519
|
+
handleClick,
|
|
10520
|
+
ns
|
|
10499
10521
|
};
|
|
10500
10522
|
}
|
|
10501
10523
|
});
|
|
10502
10524
|
function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10503
10525
|
const _component_caret_top = vue.resolveComponent("caret-top");
|
|
10504
10526
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
10505
|
-
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
10527
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
10528
|
+
name: `${_ctx.ns.namespace.value}-fade-in`
|
|
10529
|
+
}, {
|
|
10506
10530
|
default: vue.withCtx(() => [
|
|
10507
10531
|
_ctx.visible ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
10508
10532
|
key: 0,
|
|
@@ -10510,21 +10534,23 @@
|
|
|
10510
10534
|
right: _ctx.styleRight,
|
|
10511
10535
|
bottom: _ctx.styleBottom
|
|
10512
10536
|
}),
|
|
10513
|
-
class:
|
|
10537
|
+
class: vue.normalizeClass(_ctx.ns.b()),
|
|
10514
10538
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
10515
10539
|
}, [
|
|
10516
10540
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
10517
|
-
vue.createVNode(_component_el_icon, {
|
|
10541
|
+
vue.createVNode(_component_el_icon, {
|
|
10542
|
+
class: vue.normalizeClass(_ctx.ns.e("icon"))
|
|
10543
|
+
}, {
|
|
10518
10544
|
default: vue.withCtx(() => [
|
|
10519
10545
|
vue.createVNode(_component_caret_top)
|
|
10520
10546
|
]),
|
|
10521
10547
|
_: 1
|
|
10522
|
-
})
|
|
10548
|
+
}, 8, ["class"])
|
|
10523
10549
|
])
|
|
10524
|
-
],
|
|
10550
|
+
], 6)) : vue.createCommentVNode("v-if", true)
|
|
10525
10551
|
]),
|
|
10526
10552
|
_: 3
|
|
10527
|
-
});
|
|
10553
|
+
}, 8, ["name"]);
|
|
10528
10554
|
}
|
|
10529
10555
|
var Backtop = /* @__PURE__ */ _export_sfc$1(_sfc_main$1V, [["render", _sfc_render$1Q]]);
|
|
10530
10556
|
|
|
@@ -10672,8 +10698,8 @@
|
|
|
10672
10698
|
return {
|
|
10673
10699
|
ns,
|
|
10674
10700
|
link,
|
|
10675
|
-
separator: parent
|
|
10676
|
-
separatorIcon: parent
|
|
10701
|
+
separator: parent == null ? void 0 : parent.separator,
|
|
10702
|
+
separatorIcon: parent == null ? void 0 : parent.separatorIcon
|
|
10677
10703
|
};
|
|
10678
10704
|
}
|
|
10679
10705
|
});
|
|
@@ -11888,12 +11914,16 @@
|
|
|
11888
11914
|
const buttonGroupContext = vue.inject(buttonGroupContextKey, void 0);
|
|
11889
11915
|
const globalConfig = useGlobalConfig("button");
|
|
11890
11916
|
const ns = useNamespace("button");
|
|
11891
|
-
const autoInsertSpace = vue.computed(() =>
|
|
11917
|
+
const autoInsertSpace = vue.computed(() => {
|
|
11918
|
+
var _a, _b, _c;
|
|
11919
|
+
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
11920
|
+
});
|
|
11892
11921
|
const shouldAddSpace = vue.computed(() => {
|
|
11893
|
-
|
|
11894
|
-
|
|
11922
|
+
var _a;
|
|
11923
|
+
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
11924
|
+
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
11895
11925
|
const slot = defaultSlot[0];
|
|
11896
|
-
if (slot
|
|
11926
|
+
if ((slot == null ? void 0 : slot.type) === vue.Text) {
|
|
11897
11927
|
const text = slot.children;
|
|
11898
11928
|
return /^\p{Unified_Ideograph}{2}$/u.test(text);
|
|
11899
11929
|
}
|
|
@@ -11901,9 +11931,9 @@
|
|
|
11901
11931
|
return false;
|
|
11902
11932
|
});
|
|
11903
11933
|
const { form } = useFormItem();
|
|
11904
|
-
const buttonSize = useSize(vue.computed(() => buttonGroupContext
|
|
11934
|
+
const buttonSize = useSize(vue.computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
11905
11935
|
const buttonDisabled = useDisabled$1();
|
|
11906
|
-
const buttonType = vue.computed(() => props.type || buttonGroupContext
|
|
11936
|
+
const buttonType = vue.computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
11907
11937
|
const typeColor = vue.computed(() => useCssVar(`--el-color-${props.type}`).value);
|
|
11908
11938
|
const buttonStyle = vue.computed(() => {
|
|
11909
11939
|
let styles = {};
|
|
@@ -11942,7 +11972,7 @@
|
|
|
11942
11972
|
});
|
|
11943
11973
|
const handleClick = (evt) => {
|
|
11944
11974
|
if (props.nativeType === "reset") {
|
|
11945
|
-
form
|
|
11975
|
+
form == null ? void 0 : form.resetFields();
|
|
11946
11976
|
}
|
|
11947
11977
|
emit("click", evt);
|
|
11948
11978
|
};
|
|
@@ -12111,12 +12141,6 @@
|
|
|
12111
12141
|
|
|
12112
12142
|
var isEqual_1 = isEqual$1;
|
|
12113
12143
|
|
|
12114
|
-
const isValidWidthUnit = (val) => {
|
|
12115
|
-
if (isNumber(val)) {
|
|
12116
|
-
return true;
|
|
12117
|
-
}
|
|
12118
|
-
return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
|
|
12119
|
-
};
|
|
12120
12144
|
const isValidComponentSize = (val) => ["", "large", "default", "small"].includes(val);
|
|
12121
12145
|
const isValidDatePickType = (val) => [
|
|
12122
12146
|
"year",
|
|
@@ -12301,6 +12325,7 @@
|
|
|
12301
12325
|
const pickerActualVisible = vue.ref(false);
|
|
12302
12326
|
const valueOnOpen = vue.ref(null);
|
|
12303
12327
|
vue.watch(pickerVisible, (val) => {
|
|
12328
|
+
var _a;
|
|
12304
12329
|
if (!val) {
|
|
12305
12330
|
userInput.value = null;
|
|
12306
12331
|
vue.nextTick(() => {
|
|
@@ -12308,15 +12333,16 @@
|
|
|
12308
12333
|
});
|
|
12309
12334
|
ctx.emit("blur");
|
|
12310
12335
|
blurInput();
|
|
12311
|
-
props.validateEvent && elFormItem.validate
|
|
12336
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur"));
|
|
12312
12337
|
} else {
|
|
12313
12338
|
valueOnOpen.value = props.modelValue;
|
|
12314
12339
|
}
|
|
12315
12340
|
});
|
|
12316
12341
|
const emitChange = (val, isClear) => {
|
|
12342
|
+
var _a;
|
|
12317
12343
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
12318
12344
|
ctx.emit("change", val);
|
|
12319
|
-
props.validateEvent && elFormItem.validate
|
|
12345
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change"));
|
|
12320
12346
|
}
|
|
12321
12347
|
};
|
|
12322
12348
|
const emitInput = (val) => {
|
|
@@ -12338,10 +12364,10 @@
|
|
|
12338
12364
|
return [];
|
|
12339
12365
|
});
|
|
12340
12366
|
const refStartInput = vue.computed(() => {
|
|
12341
|
-
return refInput
|
|
12367
|
+
return refInput == null ? void 0 : refInput.value[0];
|
|
12342
12368
|
});
|
|
12343
12369
|
const refEndInput = vue.computed(() => {
|
|
12344
|
-
return refInput
|
|
12370
|
+
return refInput == null ? void 0 : refInput.value[1];
|
|
12345
12371
|
});
|
|
12346
12372
|
const setSelectionRange = (start, end, pos) => {
|
|
12347
12373
|
const _inputs = refInput.value;
|
|
@@ -12382,7 +12408,8 @@
|
|
|
12382
12408
|
ctx.emit("focus", e);
|
|
12383
12409
|
};
|
|
12384
12410
|
const handleBlur = () => {
|
|
12385
|
-
|
|
12411
|
+
var _a;
|
|
12412
|
+
(_a = refPopper.value) == null ? void 0 : _a.onClose();
|
|
12386
12413
|
blurInput();
|
|
12387
12414
|
};
|
|
12388
12415
|
const pickerDisabled = vue.computed(() => {
|
|
@@ -12469,14 +12496,19 @@
|
|
|
12469
12496
|
});
|
|
12470
12497
|
const pickerSize = useSize();
|
|
12471
12498
|
const popperPaneRef = vue.computed(() => {
|
|
12472
|
-
|
|
12499
|
+
var _a, _b;
|
|
12500
|
+
return (_b = (_a = refPopper.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
12501
|
+
});
|
|
12502
|
+
const popperEl = vue.computed(() => {
|
|
12503
|
+
var _a, _b;
|
|
12504
|
+
return (_b = (_a = vue.unref(refPopper)) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
12473
12505
|
});
|
|
12474
|
-
const popperEl = vue.computed(() => vue.unref(refPopper)?.popperRef?.contentRef);
|
|
12475
12506
|
const actualInputRef = vue.computed(() => {
|
|
12507
|
+
var _a;
|
|
12476
12508
|
if (vue.unref(isRangeInput)) {
|
|
12477
12509
|
return vue.unref(inputRef);
|
|
12478
12510
|
}
|
|
12479
|
-
return vue.unref(inputRef)
|
|
12511
|
+
return (_a = vue.unref(inputRef)) == null ? void 0 : _a.$el;
|
|
12480
12512
|
});
|
|
12481
12513
|
onClickOutside(actualInputRef, (e) => {
|
|
12482
12514
|
const unrefedPopperEl = vue.unref(popperEl);
|
|
@@ -14248,8 +14280,8 @@
|
|
|
14248
14280
|
const _hoisted_2$N = { class: "el-time-range-picker__content" };
|
|
14249
14281
|
const _hoisted_3$A = { class: "el-time-range-picker__cell" };
|
|
14250
14282
|
const _hoisted_4$m = { class: "el-time-range-picker__header" };
|
|
14251
|
-
const _hoisted_5$
|
|
14252
|
-
const _hoisted_6$
|
|
14283
|
+
const _hoisted_5$e = { class: "el-time-range-picker__cell" };
|
|
14284
|
+
const _hoisted_6$c = { class: "el-time-range-picker__header" };
|
|
14253
14285
|
const _hoisted_7$9 = { class: "el-time-panel__footer" };
|
|
14254
14286
|
const _hoisted_8$8 = ["disabled"];
|
|
14255
14287
|
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -14277,8 +14309,8 @@
|
|
|
14277
14309
|
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onChange", "onSetOption", "onSelectRange"])
|
|
14278
14310
|
], 2)
|
|
14279
14311
|
]),
|
|
14280
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
14281
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
14312
|
+
vue.createElementVNode("div", _hoisted_5$e, [
|
|
14313
|
+
vue.createElementVNode("div", _hoisted_6$c, vue.toDisplayString(_ctx.t("el.datepicker.endTime")), 1),
|
|
14282
14314
|
vue.createElementVNode("div", {
|
|
14283
14315
|
class: vue.normalizeClass([{ "has-seconds": _ctx.showSeconds, "is-arrow": _ctx.arrowControl }, "el-time-range-picker__body el-time-panel__content"])
|
|
14284
14316
|
}, [
|
|
@@ -15327,7 +15359,8 @@
|
|
|
15327
15359
|
return index;
|
|
15328
15360
|
}
|
|
15329
15361
|
function calcCardTranslate(index, activeIndex) {
|
|
15330
|
-
|
|
15362
|
+
var _a;
|
|
15363
|
+
const parentWidth = ((_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
15331
15364
|
if (data.inStage) {
|
|
15332
15365
|
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
15333
15366
|
} else if (index < activeIndex) {
|
|
@@ -15337,7 +15370,8 @@
|
|
|
15337
15370
|
}
|
|
15338
15371
|
}
|
|
15339
15372
|
function calcTranslate(index, activeIndex, isVertical) {
|
|
15340
|
-
|
|
15373
|
+
var _a, _b;
|
|
15374
|
+
const distance = (isVertical ? (_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetHeight : (_b = injectCarouselScope.root.value) == null ? void 0 : _b.offsetWidth) || 0;
|
|
15341
15375
|
return distance * (index - activeIndex);
|
|
15342
15376
|
}
|
|
15343
15377
|
const translateItem = (index, activeIndex, oldIndex) => {
|
|
@@ -15653,45 +15687,48 @@
|
|
|
15653
15687
|
},
|
|
15654
15688
|
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
15655
15689
|
setup(props) {
|
|
15656
|
-
|
|
15690
|
+
const ns = useNamespace("checkbox");
|
|
15691
|
+
return {
|
|
15692
|
+
ns,
|
|
15693
|
+
...useCheckbox(props)
|
|
15694
|
+
};
|
|
15657
15695
|
}
|
|
15658
15696
|
});
|
|
15659
15697
|
const _hoisted_1$10 = ["id", "aria-controls"];
|
|
15660
15698
|
const _hoisted_2$K = ["tabindex", "role", "aria-checked"];
|
|
15661
|
-
const _hoisted_3$y =
|
|
15662
|
-
const _hoisted_4$l = ["aria-hidden", "
|
|
15663
|
-
const _hoisted_5$e = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15664
|
-
const _hoisted_6$c = {
|
|
15665
|
-
key: 0,
|
|
15666
|
-
class: "el-checkbox__label"
|
|
15667
|
-
};
|
|
15699
|
+
const _hoisted_3$y = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
15700
|
+
const _hoisted_4$l = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15668
15701
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15669
15702
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
15670
15703
|
id: _ctx.id,
|
|
15671
|
-
class: vue.normalizeClass([
|
|
15672
|
-
_ctx.
|
|
15673
|
-
|
|
15674
|
-
|
|
15675
|
-
|
|
15676
|
-
|
|
15704
|
+
class: vue.normalizeClass([
|
|
15705
|
+
_ctx.ns.b(),
|
|
15706
|
+
_ctx.ns.m(_ctx.checkboxSize),
|
|
15707
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15708
|
+
_ctx.ns.is("bordered", _ctx.border),
|
|
15709
|
+
_ctx.ns.is("checked", _ctx.isChecked)
|
|
15710
|
+
]),
|
|
15677
15711
|
"aria-controls": _ctx.indeterminate ? _ctx.controls : null
|
|
15678
15712
|
}, [
|
|
15679
15713
|
vue.createElementVNode("span", {
|
|
15680
|
-
class: vue.normalizeClass([
|
|
15681
|
-
"
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15714
|
+
class: vue.normalizeClass([
|
|
15715
|
+
_ctx.ns.e("input"),
|
|
15716
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15717
|
+
_ctx.ns.is("checked", _ctx.isChecked),
|
|
15718
|
+
_ctx.ns.is("indeterminate", _ctx.indeterminate),
|
|
15719
|
+
_ctx.ns.is("focus", _ctx.focus)
|
|
15720
|
+
]),
|
|
15686
15721
|
tabindex: _ctx.indeterminate ? 0 : void 0,
|
|
15687
15722
|
role: _ctx.indeterminate ? "checkbox" : void 0,
|
|
15688
15723
|
"aria-checked": _ctx.indeterminate ? "mixed" : false
|
|
15689
15724
|
}, [
|
|
15690
|
-
|
|
15725
|
+
vue.createElementVNode("span", {
|
|
15726
|
+
class: vue.normalizeClass(_ctx.ns.e("inner"))
|
|
15727
|
+
}, null, 2),
|
|
15691
15728
|
_ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15692
15729
|
key: 0,
|
|
15693
15730
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15694
|
-
class: "
|
|
15731
|
+
class: vue.normalizeClass(_ctx.ns.e("original")),
|
|
15695
15732
|
type: "checkbox",
|
|
15696
15733
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15697
15734
|
name: _ctx.name,
|
|
@@ -15702,12 +15739,12 @@
|
|
|
15702
15739
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15703
15740
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15704
15741
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15705
|
-
}, null,
|
|
15742
|
+
}, null, 42, _hoisted_3$y)), [
|
|
15706
15743
|
[vue.vModelCheckbox, _ctx.model]
|
|
15707
15744
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15708
15745
|
key: 1,
|
|
15709
15746
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15710
|
-
class: "
|
|
15747
|
+
class: vue.normalizeClass(_ctx.ns.e("original")),
|
|
15711
15748
|
type: "checkbox",
|
|
15712
15749
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15713
15750
|
disabled: _ctx.isDisabled,
|
|
@@ -15717,16 +15754,19 @@
|
|
|
15717
15754
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15718
15755
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15719
15756
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15720
|
-
}, null,
|
|
15757
|
+
}, null, 42, _hoisted_4$l)), [
|
|
15721
15758
|
[vue.vModelCheckbox, _ctx.model]
|
|
15722
15759
|
])
|
|
15723
15760
|
], 10, _hoisted_2$K),
|
|
15724
|
-
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span",
|
|
15761
|
+
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
15762
|
+
key: 0,
|
|
15763
|
+
class: vue.normalizeClass(_ctx.ns.e("label"))
|
|
15764
|
+
}, [
|
|
15725
15765
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
15726
15766
|
!_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
15727
15767
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
15728
15768
|
], 2112)) : vue.createCommentVNode("v-if", true)
|
|
15729
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
15769
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
15730
15770
|
], 10, _hoisted_1$10);
|
|
15731
15771
|
}
|
|
15732
15772
|
var Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1B]]);
|
|
@@ -15738,12 +15778,14 @@
|
|
|
15738
15778
|
setup(props) {
|
|
15739
15779
|
const { focus, isChecked, isDisabled, size, model, handleChange } = useCheckbox(props);
|
|
15740
15780
|
const { checkboxGroup } = useCheckboxGroup();
|
|
15781
|
+
const ns = useNamespace("checkbox");
|
|
15741
15782
|
const activeStyle = vue.computed(() => {
|
|
15742
|
-
|
|
15783
|
+
var _a, _b, _c, _d;
|
|
15784
|
+
const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
|
|
15743
15785
|
return {
|
|
15744
15786
|
backgroundColor: fillValue,
|
|
15745
15787
|
borderColor: fillValue,
|
|
15746
|
-
color: checkboxGroup
|
|
15788
|
+
color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
|
|
15747
15789
|
boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : null
|
|
15748
15790
|
};
|
|
15749
15791
|
});
|
|
@@ -15754,7 +15796,8 @@
|
|
|
15754
15796
|
model,
|
|
15755
15797
|
handleChange,
|
|
15756
15798
|
activeStyle,
|
|
15757
|
-
size
|
|
15799
|
+
size,
|
|
15800
|
+
ns
|
|
15758
15801
|
};
|
|
15759
15802
|
}
|
|
15760
15803
|
});
|
|
@@ -15763,12 +15806,13 @@
|
|
|
15763
15806
|
const _hoisted_3$x = ["name", "tabindex", "disabled", "value"];
|
|
15764
15807
|
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15765
15808
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
15766
|
-
class: vue.normalizeClass([
|
|
15767
|
-
_ctx.
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15809
|
+
class: vue.normalizeClass([
|
|
15810
|
+
_ctx.ns.b("button"),
|
|
15811
|
+
_ctx.ns.bm("button", _ctx.size),
|
|
15812
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15813
|
+
_ctx.ns.is("checked", _ctx.isChecked),
|
|
15814
|
+
_ctx.ns.is("focus", _ctx.focus)
|
|
15815
|
+
]),
|
|
15772
15816
|
role: "checkbox",
|
|
15773
15817
|
"aria-checked": _ctx.isChecked,
|
|
15774
15818
|
"aria-disabled": _ctx.isDisabled
|
|
@@ -15776,7 +15820,7 @@
|
|
|
15776
15820
|
_ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15777
15821
|
key: 0,
|
|
15778
15822
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15779
|
-
class: "
|
|
15823
|
+
class: vue.normalizeClass(_ctx.ns.be("button", "original")),
|
|
15780
15824
|
type: "checkbox",
|
|
15781
15825
|
name: _ctx.name,
|
|
15782
15826
|
tabindex: _ctx.tabindex,
|
|
@@ -15786,12 +15830,12 @@
|
|
|
15786
15830
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15787
15831
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15788
15832
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15789
|
-
}, null,
|
|
15833
|
+
}, null, 42, _hoisted_2$J)), [
|
|
15790
15834
|
[vue.vModelCheckbox, _ctx.model]
|
|
15791
15835
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15792
15836
|
key: 1,
|
|
15793
15837
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15794
|
-
class: "
|
|
15838
|
+
class: vue.normalizeClass(_ctx.ns.be("button", "original")),
|
|
15795
15839
|
type: "checkbox",
|
|
15796
15840
|
name: _ctx.name,
|
|
15797
15841
|
tabindex: _ctx.tabindex,
|
|
@@ -15800,18 +15844,18 @@
|
|
|
15800
15844
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15801
15845
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15802
15846
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15803
|
-
}, null,
|
|
15847
|
+
}, null, 42, _hoisted_3$x)), [
|
|
15804
15848
|
[vue.vModelCheckbox, _ctx.model]
|
|
15805
15849
|
]),
|
|
15806
15850
|
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
15807
15851
|
key: 2,
|
|
15808
|
-
class: "
|
|
15852
|
+
class: vue.normalizeClass(_ctx.ns.be("button", "inner")),
|
|
15809
15853
|
style: vue.normalizeStyle(_ctx.isChecked ? _ctx.activeStyle : null)
|
|
15810
15854
|
}, [
|
|
15811
15855
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15812
15856
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
15813
15857
|
])
|
|
15814
|
-
],
|
|
15858
|
+
], 6)) : vue.createCommentVNode("v-if", true)
|
|
15815
15859
|
], 10, _hoisted_1$$);
|
|
15816
15860
|
}
|
|
15817
15861
|
var CheckboxButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1F, [["render", _sfc_render$1A]]);
|
|
@@ -15853,6 +15897,7 @@
|
|
|
15853
15897
|
setup(props, { emit, slots }) {
|
|
15854
15898
|
const { elFormItem } = useCheckboxGroup();
|
|
15855
15899
|
const checkboxGroupSize = useSize();
|
|
15900
|
+
const ns = useNamespace("checkbox");
|
|
15856
15901
|
const changeEvent = (value) => {
|
|
15857
15902
|
emit(UPDATE_MODEL_EVENT, value);
|
|
15858
15903
|
vue.nextTick(() => {
|
|
@@ -15875,11 +15920,12 @@
|
|
|
15875
15920
|
changeEvent
|
|
15876
15921
|
});
|
|
15877
15922
|
vue.watch(() => props.modelValue, () => {
|
|
15878
|
-
|
|
15923
|
+
var _a;
|
|
15924
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
15879
15925
|
});
|
|
15880
15926
|
return () => {
|
|
15881
15927
|
return vue.h(props.tag, {
|
|
15882
|
-
class: "
|
|
15928
|
+
class: ns.b("group"),
|
|
15883
15929
|
role: "group",
|
|
15884
15930
|
"aria-label": "checkbox-group"
|
|
15885
15931
|
}, [vue.renderSlot(slots, "default")]);
|
|
@@ -16054,10 +16100,10 @@
|
|
|
16054
16100
|
} = useRadio(props, emit);
|
|
16055
16101
|
const activeStyle = vue.computed(() => {
|
|
16056
16102
|
return {
|
|
16057
|
-
backgroundColor: radioGroup
|
|
16058
|
-
borderColor: radioGroup
|
|
16059
|
-
boxShadow: radioGroup
|
|
16060
|
-
color: radioGroup
|
|
16103
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
16104
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
16105
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
16106
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
16061
16107
|
};
|
|
16062
16108
|
});
|
|
16063
16109
|
return {
|
|
@@ -16187,7 +16233,7 @@
|
|
|
16187
16233
|
...vue.toRefs(props),
|
|
16188
16234
|
changeEvent
|
|
16189
16235
|
}));
|
|
16190
|
-
vue.watch(() => props.modelValue, () => formItem
|
|
16236
|
+
vue.watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
|
|
16191
16237
|
return {
|
|
16192
16238
|
radioGroupRef,
|
|
16193
16239
|
handleKeydown
|
|
@@ -16254,15 +16300,19 @@
|
|
|
16254
16300
|
const isHoverMenu = vue.computed(() => panel.isHoverMenu);
|
|
16255
16301
|
const multiple = vue.computed(() => panel.config.multiple);
|
|
16256
16302
|
const checkStrictly = vue.computed(() => panel.config.checkStrictly);
|
|
16257
|
-
const checkedNodeId = vue.computed(() =>
|
|
16303
|
+
const checkedNodeId = vue.computed(() => {
|
|
16304
|
+
var _a;
|
|
16305
|
+
return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
|
|
16306
|
+
});
|
|
16258
16307
|
const isDisabled = vue.computed(() => props.node.isDisabled);
|
|
16259
16308
|
const isLeaf = vue.computed(() => props.node.isLeaf);
|
|
16260
16309
|
const expandable = vue.computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
16261
16310
|
const inExpandingPath = vue.computed(() => isInPath(panel.expandingNode));
|
|
16262
16311
|
const inCheckedPath = vue.computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
16263
16312
|
const isInPath = (node) => {
|
|
16313
|
+
var _a;
|
|
16264
16314
|
const { level, uid } = props.node;
|
|
16265
|
-
return node
|
|
16315
|
+
return ((_a = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a.uid) === uid;
|
|
16266
16316
|
};
|
|
16267
16317
|
const doExpand = () => {
|
|
16268
16318
|
if (inExpandingPath.value)
|
|
@@ -16530,28 +16580,31 @@
|
|
|
16530
16580
|
onMousemove: _ctx.handleMouseMove,
|
|
16531
16581
|
onMouseleave: _ctx.clearHoverZone
|
|
16532
16582
|
}, {
|
|
16533
|
-
default: vue.withCtx(() =>
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16583
|
+
default: vue.withCtx(() => {
|
|
16584
|
+
var _a;
|
|
16585
|
+
return [
|
|
16586
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.nodes, (node) => {
|
|
16587
|
+
return vue.openBlock(), vue.createBlock(_component_el_cascader_node, {
|
|
16588
|
+
key: node.uid,
|
|
16589
|
+
node,
|
|
16590
|
+
"menu-id": _ctx.menuId,
|
|
16591
|
+
onExpand: _ctx.handleExpand
|
|
16592
|
+
}, null, 8, ["node", "menu-id", "onExpand"]);
|
|
16593
|
+
}), 128)),
|
|
16594
|
+
_ctx.isLoading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
16595
|
+
vue.createVNode(_component_el_icon, {
|
|
16596
|
+
size: "14",
|
|
16597
|
+
class: "is-loading"
|
|
16598
|
+
}, {
|
|
16599
|
+
default: vue.withCtx(() => [
|
|
16600
|
+
vue.createVNode(_component_loading)
|
|
16601
|
+
]),
|
|
16602
|
+
_: 1
|
|
16603
|
+
}),
|
|
16604
|
+
vue.createTextVNode(" " + vue.toDisplayString(_ctx.t("el.cascader.loading")), 1)
|
|
16605
|
+
])) : _ctx.isEmpty ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, vue.toDisplayString(_ctx.t("el.cascader.noData")), 1)) : ((_a = _ctx.panel) == null ? void 0 : _a.isHoverMenu) ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_3$v, null, 512)) : vue.createCommentVNode("v-if", true)
|
|
16606
|
+
];
|
|
16607
|
+
}),
|
|
16555
16608
|
_: 1
|
|
16556
16609
|
}, 8, ["view-class", "onMousemove", "onMouseleave"]);
|
|
16557
16610
|
}
|
|
@@ -16843,7 +16896,7 @@
|
|
|
16843
16896
|
const resolve = (dataList) => {
|
|
16844
16897
|
const _node = node;
|
|
16845
16898
|
const parent = _node.root ? null : _node;
|
|
16846
|
-
dataList && store
|
|
16899
|
+
dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
|
|
16847
16900
|
_node.loading = false;
|
|
16848
16901
|
_node.loaded = true;
|
|
16849
16902
|
_node.childrenData = _node.childrenData || [];
|
|
@@ -16852,6 +16905,7 @@
|
|
|
16852
16905
|
cfg.lazyLoad(node, resolve);
|
|
16853
16906
|
};
|
|
16854
16907
|
const expandNode = (node, silent) => {
|
|
16908
|
+
var _a;
|
|
16855
16909
|
const { level } = node;
|
|
16856
16910
|
const newMenus = menus.value.slice(0, level);
|
|
16857
16911
|
let newExpandingNode;
|
|
@@ -16861,17 +16915,17 @@
|
|
|
16861
16915
|
newExpandingNode = node;
|
|
16862
16916
|
newMenus.push(node.children);
|
|
16863
16917
|
}
|
|
16864
|
-
if (expandingNode.value
|
|
16918
|
+
if (((_a = expandingNode.value) == null ? void 0 : _a.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
|
|
16865
16919
|
expandingNode.value = node;
|
|
16866
16920
|
menus.value = newMenus;
|
|
16867
|
-
!silent && emit("expand-change", node
|
|
16921
|
+
!silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
|
|
16868
16922
|
}
|
|
16869
16923
|
};
|
|
16870
16924
|
const handleCheckChange = (node, checked, emitClose = true) => {
|
|
16871
16925
|
const { checkStrictly, multiple } = config.value;
|
|
16872
16926
|
const oldNode = checkedNodes.value[0];
|
|
16873
16927
|
manualChecked = true;
|
|
16874
|
-
!multiple && oldNode
|
|
16928
|
+
!multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
|
|
16875
16929
|
node.doCheck(checked);
|
|
16876
16930
|
calculateCheckedValue();
|
|
16877
16931
|
emitClose && !multiple && !checkStrictly && emit("close");
|
|
@@ -16885,23 +16939,25 @@
|
|
|
16885
16939
|
node && expandNode(node);
|
|
16886
16940
|
};
|
|
16887
16941
|
const getFlattedNodes = (leafOnly) => {
|
|
16888
|
-
return store
|
|
16942
|
+
return store == null ? void 0 : store.getFlattedNodes(leafOnly);
|
|
16889
16943
|
};
|
|
16890
16944
|
const getCheckedNodes = (leafOnly) => {
|
|
16891
|
-
|
|
16945
|
+
var _a;
|
|
16946
|
+
return (_a = getFlattedNodes(leafOnly)) == null ? void 0 : _a.filter((node) => node.checked !== false);
|
|
16892
16947
|
};
|
|
16893
16948
|
const clearCheckedNodes = () => {
|
|
16894
16949
|
checkedNodes.value.forEach((node) => node.doCheck(false));
|
|
16895
16950
|
calculateCheckedValue();
|
|
16896
16951
|
};
|
|
16897
16952
|
const calculateCheckedValue = () => {
|
|
16953
|
+
var _a;
|
|
16898
16954
|
const { checkStrictly, multiple } = config.value;
|
|
16899
16955
|
const oldNodes = checkedNodes.value;
|
|
16900
16956
|
const newNodes = getCheckedNodes(!checkStrictly);
|
|
16901
16957
|
const nodes = sortByOriginalOrder(oldNodes, newNodes);
|
|
16902
16958
|
const values = nodes.map((node) => node.valueByOption);
|
|
16903
16959
|
checkedNodes.value = nodes;
|
|
16904
|
-
checkedValue.value = multiple ? values : values[0]
|
|
16960
|
+
checkedValue.value = multiple ? values : (_a = values[0]) != null ? _a : null;
|
|
16905
16961
|
};
|
|
16906
16962
|
const syncCheckedValue = (loaded = false, forced = false) => {
|
|
16907
16963
|
const { modelValue } = props;
|
|
@@ -16911,7 +16967,7 @@
|
|
|
16911
16967
|
return;
|
|
16912
16968
|
if (lazy && !loaded) {
|
|
16913
16969
|
const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
|
|
16914
|
-
const nodes = values.map((val) => store
|
|
16970
|
+
const nodes = values.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
|
|
16915
16971
|
if (nodes.length) {
|
|
16916
16972
|
nodes.forEach((node) => {
|
|
16917
16973
|
lazyLoad(node, () => syncCheckedValue(false, forced));
|
|
@@ -16921,7 +16977,7 @@
|
|
|
16921
16977
|
}
|
|
16922
16978
|
} else {
|
|
16923
16979
|
const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
|
|
16924
|
-
const nodes = deduplicate(values.map((val) => store
|
|
16980
|
+
const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
|
|
16925
16981
|
syncMenuState(nodes, false);
|
|
16926
16982
|
checkedValue.value = modelValue;
|
|
16927
16983
|
}
|
|
@@ -16930,7 +16986,7 @@
|
|
|
16930
16986
|
const { checkStrictly } = config.value;
|
|
16931
16987
|
const oldNodes = checkedNodes.value;
|
|
16932
16988
|
const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
|
|
16933
|
-
const oldExpandingNode = store
|
|
16989
|
+
const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
|
|
16934
16990
|
const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
|
|
16935
16991
|
if (newExpandingNode) {
|
|
16936
16992
|
newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
|
|
@@ -16946,7 +17002,7 @@
|
|
|
16946
17002
|
if (!isClient)
|
|
16947
17003
|
return;
|
|
16948
17004
|
menuList.value.forEach((menu) => {
|
|
16949
|
-
const menuElement = menu
|
|
17005
|
+
const menuElement = menu == null ? void 0 : menu.$el;
|
|
16950
17006
|
if (menuElement) {
|
|
16951
17007
|
const container = menuElement.querySelector(".el-scrollbar__wrap");
|
|
16952
17008
|
const activeNode = menuElement.querySelector(".el-cascader-node.is-active") || menuElement.querySelector(".el-cascader-node.in-active-path");
|
|
@@ -16968,14 +17024,14 @@
|
|
|
16968
17024
|
case EVENT_CODE.left: {
|
|
16969
17025
|
e.preventDefault();
|
|
16970
17026
|
const preMenu = menuList.value[getMenuIndex(target) - 1];
|
|
16971
|
-
const expandedNode = preMenu
|
|
17027
|
+
const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
|
|
16972
17028
|
focusNode(expandedNode);
|
|
16973
17029
|
break;
|
|
16974
17030
|
}
|
|
16975
17031
|
case EVENT_CODE.right: {
|
|
16976
17032
|
e.preventDefault();
|
|
16977
17033
|
const nextMenu = menuList.value[getMenuIndex(target) + 1];
|
|
16978
|
-
const firstNode = nextMenu
|
|
17034
|
+
const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
16979
17035
|
focusNode(firstNode);
|
|
16980
17036
|
break;
|
|
16981
17037
|
}
|
|
@@ -17285,7 +17341,10 @@
|
|
|
17285
17341
|
const multiple = vue.computed(() => !!props.props.multiple);
|
|
17286
17342
|
const readonly = vue.computed(() => !props.filterable || multiple.value);
|
|
17287
17343
|
const searchKeyword = vue.computed(() => multiple.value ? searchInputValue.value : inputValue.value);
|
|
17288
|
-
const checkedNodes = vue.computed(() =>
|
|
17344
|
+
const checkedNodes = vue.computed(() => {
|
|
17345
|
+
var _a;
|
|
17346
|
+
return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
|
|
17347
|
+
});
|
|
17289
17348
|
const clearBtnVisible = vue.computed(() => {
|
|
17290
17349
|
if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
|
|
17291
17350
|
return false;
|
|
@@ -17301,24 +17360,27 @@
|
|
|
17301
17360
|
return props.modelValue;
|
|
17302
17361
|
},
|
|
17303
17362
|
set(val) {
|
|
17363
|
+
var _a;
|
|
17304
17364
|
emit(UPDATE_MODEL_EVENT, val);
|
|
17305
17365
|
emit(CHANGE_EVENT, val);
|
|
17306
|
-
elFormItem.validate
|
|
17366
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
17307
17367
|
}
|
|
17308
17368
|
});
|
|
17309
17369
|
const popperPaneRef = vue.computed(() => {
|
|
17310
|
-
|
|
17370
|
+
var _a, _b;
|
|
17371
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
17311
17372
|
});
|
|
17312
17373
|
const togglePopperVisible = (visible) => {
|
|
17374
|
+
var _a, _b, _c;
|
|
17313
17375
|
if (isDisabled.value)
|
|
17314
17376
|
return;
|
|
17315
|
-
visible = visible
|
|
17377
|
+
visible = visible != null ? visible : !popperVisible.value;
|
|
17316
17378
|
if (visible !== popperVisible.value) {
|
|
17317
17379
|
popperVisible.value = visible;
|
|
17318
|
-
input.value
|
|
17380
|
+
(_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
|
|
17319
17381
|
if (visible) {
|
|
17320
17382
|
updatePopperPosition();
|
|
17321
|
-
vue.nextTick(panel.value
|
|
17383
|
+
vue.nextTick((_c = panel.value) == null ? void 0 : _c.scrollToExpandingNode);
|
|
17322
17384
|
} else if (props.filterable) {
|
|
17323
17385
|
const { value } = presentText;
|
|
17324
17386
|
inputValue.value = value;
|
|
@@ -17329,7 +17391,8 @@
|
|
|
17329
17391
|
};
|
|
17330
17392
|
const updatePopperPosition = () => {
|
|
17331
17393
|
vue.nextTick(() => {
|
|
17332
|
-
|
|
17394
|
+
var _a;
|
|
17395
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
|
|
17333
17396
|
});
|
|
17334
17397
|
};
|
|
17335
17398
|
const hideSuggestionPanel = () => {
|
|
@@ -17346,9 +17409,10 @@
|
|
|
17346
17409
|
};
|
|
17347
17410
|
};
|
|
17348
17411
|
const deleteTag = (tag) => {
|
|
17412
|
+
var _a;
|
|
17349
17413
|
const node = tag.node;
|
|
17350
17414
|
node.doCheck(false);
|
|
17351
|
-
panel.value
|
|
17415
|
+
(_a = panel.value) == null ? void 0 : _a.calculateCheckedValue();
|
|
17352
17416
|
emit("remove-tag", node.valueByOption);
|
|
17353
17417
|
};
|
|
17354
17418
|
const calculatePresentTags = () => {
|
|
@@ -17375,8 +17439,9 @@
|
|
|
17375
17439
|
presentTags.value = tags;
|
|
17376
17440
|
};
|
|
17377
17441
|
const calculateSuggestions = () => {
|
|
17442
|
+
var _a, _b;
|
|
17378
17443
|
const { filterMethod, showAllLevels, separator } = props;
|
|
17379
|
-
const res = panel.value
|
|
17444
|
+
const res = (_b = (_a = panel.value) == null ? void 0 : _a.getFlattedNodes(!props.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
|
|
17380
17445
|
if (node.isDisabled)
|
|
17381
17446
|
return false;
|
|
17382
17447
|
node.calcText(showAllLevels, separator);
|
|
@@ -17392,11 +17457,12 @@
|
|
|
17392
17457
|
updatePopperPosition();
|
|
17393
17458
|
};
|
|
17394
17459
|
const focusFirstNode = () => {
|
|
17460
|
+
var _a;
|
|
17395
17461
|
let firstNode;
|
|
17396
17462
|
if (filtering.value && suggestionPanel.value) {
|
|
17397
17463
|
firstNode = suggestionPanel.value.$el.querySelector(".el-cascader__suggestion-item");
|
|
17398
17464
|
} else {
|
|
17399
|
-
firstNode = panel.value
|
|
17465
|
+
firstNode = (_a = panel.value) == null ? void 0 : _a.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
17400
17466
|
}
|
|
17401
17467
|
if (firstNode) {
|
|
17402
17468
|
firstNode.focus();
|
|
@@ -17404,9 +17470,10 @@
|
|
|
17404
17470
|
}
|
|
17405
17471
|
};
|
|
17406
17472
|
const updateStyle = () => {
|
|
17407
|
-
|
|
17473
|
+
var _a, _b;
|
|
17474
|
+
const inputInner = (_a = input.value) == null ? void 0 : _a.input;
|
|
17408
17475
|
const tagWrapperEl = tagWrapper.value;
|
|
17409
|
-
const suggestionPanelEl = suggestionPanel.value
|
|
17476
|
+
const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
|
|
17410
17477
|
if (!isClient || !inputInner)
|
|
17411
17478
|
return;
|
|
17412
17479
|
if (suggestionPanelEl) {
|
|
@@ -17421,14 +17488,16 @@
|
|
|
17421
17488
|
}
|
|
17422
17489
|
};
|
|
17423
17490
|
const getCheckedNodes = (leafOnly) => {
|
|
17424
|
-
|
|
17491
|
+
var _a;
|
|
17492
|
+
return (_a = panel.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
|
|
17425
17493
|
};
|
|
17426
17494
|
const handleExpandChange = (value) => {
|
|
17427
17495
|
updatePopperPosition();
|
|
17428
17496
|
emit("expand-change", value);
|
|
17429
17497
|
};
|
|
17430
17498
|
const handleComposition = (event) => {
|
|
17431
|
-
|
|
17499
|
+
var _a;
|
|
17500
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
17432
17501
|
if (event.type === "compositionend") {
|
|
17433
17502
|
isOnComposition.value = false;
|
|
17434
17503
|
vue.nextTick(() => handleInput(text));
|
|
@@ -17456,15 +17525,17 @@
|
|
|
17456
17525
|
}
|
|
17457
17526
|
};
|
|
17458
17527
|
const handleClear = () => {
|
|
17459
|
-
|
|
17528
|
+
var _a;
|
|
17529
|
+
(_a = panel.value) == null ? void 0 : _a.clearCheckedNodes();
|
|
17460
17530
|
togglePopperVisible(false);
|
|
17461
17531
|
};
|
|
17462
17532
|
const handleSuggestionClick = (node) => {
|
|
17533
|
+
var _a, _b;
|
|
17463
17534
|
const { checked } = node;
|
|
17464
17535
|
if (multiple.value) {
|
|
17465
|
-
panel.value
|
|
17536
|
+
(_a = panel.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
|
|
17466
17537
|
} else {
|
|
17467
|
-
!checked && panel.value
|
|
17538
|
+
!checked && ((_b = panel.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
|
|
17468
17539
|
togglePopperVisible(false);
|
|
17469
17540
|
}
|
|
17470
17541
|
};
|
|
@@ -17515,7 +17586,7 @@
|
|
|
17515
17586
|
}, props.debounce);
|
|
17516
17587
|
const handleInput = (val, e) => {
|
|
17517
17588
|
!popperVisible.value && togglePopperVisible(true);
|
|
17518
|
-
if (e
|
|
17589
|
+
if (e == null ? void 0 : e.isComposing)
|
|
17519
17590
|
return;
|
|
17520
17591
|
val ? handleFilter() : hideSuggestionPanel();
|
|
17521
17592
|
};
|
|
@@ -17526,12 +17597,14 @@
|
|
|
17526
17597
|
});
|
|
17527
17598
|
vue.watch(presentText, (val) => inputValue.value = val, { immediate: true });
|
|
17528
17599
|
vue.onMounted(() => {
|
|
17529
|
-
|
|
17530
|
-
|
|
17600
|
+
var _a;
|
|
17601
|
+
const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
|
|
17602
|
+
inputInitialHeight = (inputEl == null ? void 0 : inputEl.offsetHeight) || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
|
|
17531
17603
|
addResizeListener(inputEl, updateStyle);
|
|
17532
17604
|
});
|
|
17533
17605
|
vue.onBeforeUnmount(() => {
|
|
17534
|
-
|
|
17606
|
+
var _a;
|
|
17607
|
+
removeResizeListener((_a = input.value) == null ? void 0 : _a.$el, updateStyle);
|
|
17535
17608
|
});
|
|
17536
17609
|
return {
|
|
17537
17610
|
popperOptions,
|
|
@@ -18073,7 +18146,7 @@
|
|
|
18073
18146
|
const isClick = vue.ref(false);
|
|
18074
18147
|
const id = vue.ref(generateId());
|
|
18075
18148
|
const isActive = vue.computed(() => {
|
|
18076
|
-
return collapse
|
|
18149
|
+
return (collapse == null ? void 0 : collapse.activeNames.value.indexOf(props.name)) > -1;
|
|
18077
18150
|
});
|
|
18078
18151
|
const handleFocus = () => {
|
|
18079
18152
|
setTimeout(() => {
|
|
@@ -18087,12 +18160,12 @@
|
|
|
18087
18160
|
const handleHeaderClick = () => {
|
|
18088
18161
|
if (props.disabled)
|
|
18089
18162
|
return;
|
|
18090
|
-
collapse
|
|
18163
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18091
18164
|
focusing.value = false;
|
|
18092
18165
|
isClick.value = true;
|
|
18093
18166
|
};
|
|
18094
18167
|
const handleEnterClick = () => {
|
|
18095
|
-
collapse
|
|
18168
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18096
18169
|
};
|
|
18097
18170
|
return {
|
|
18098
18171
|
isActive,
|
|
@@ -18992,10 +19065,11 @@
|
|
|
18992
19065
|
color.fromString(customInput.value);
|
|
18993
19066
|
}
|
|
18994
19067
|
function confirmValue() {
|
|
19068
|
+
var _a;
|
|
18995
19069
|
const value = color.value;
|
|
18996
19070
|
emit(UPDATE_MODEL_EVENT, value);
|
|
18997
19071
|
emit("change", value);
|
|
18998
|
-
elFormItem.validate
|
|
19072
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
18999
19073
|
debounceSetShowPicker(false);
|
|
19000
19074
|
vue.nextTick(() => {
|
|
19001
19075
|
const newColor = new Color({
|
|
@@ -19009,11 +19083,12 @@
|
|
|
19009
19083
|
});
|
|
19010
19084
|
}
|
|
19011
19085
|
function clear() {
|
|
19086
|
+
var _a;
|
|
19012
19087
|
debounceSetShowPicker(false);
|
|
19013
19088
|
emit(UPDATE_MODEL_EVENT, null);
|
|
19014
19089
|
emit("change", null);
|
|
19015
19090
|
if (props.modelValue !== null) {
|
|
19016
|
-
elFormItem.validate
|
|
19091
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
19017
19092
|
}
|
|
19018
19093
|
resetColor();
|
|
19019
19094
|
}
|
|
@@ -19024,9 +19099,10 @@
|
|
|
19024
19099
|
});
|
|
19025
19100
|
vue.watch(() => showPicker.value, () => {
|
|
19026
19101
|
vue.nextTick(() => {
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19102
|
+
var _a, _b, _c;
|
|
19103
|
+
(_a = hue.value) == null ? void 0 : _a.update();
|
|
19104
|
+
(_b = svPanel.value) == null ? void 0 : _b.update();
|
|
19105
|
+
(_c = alpha.value) == null ? void 0 : _c.update();
|
|
19030
19106
|
});
|
|
19031
19107
|
});
|
|
19032
19108
|
vue.provide(OPTIONS_KEY, {
|
|
@@ -19534,6 +19610,7 @@
|
|
|
19534
19610
|
return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
|
|
19535
19611
|
});
|
|
19536
19612
|
const rows = vue.computed(() => {
|
|
19613
|
+
var _a;
|
|
19537
19614
|
const startOfMonth = props.date.startOf("month");
|
|
19538
19615
|
const startOfMonthDay = startOfMonth.day() || 7;
|
|
19539
19616
|
const dateCountOfMonth = startOfMonth.daysInMonth();
|
|
@@ -19573,7 +19650,7 @@
|
|
|
19573
19650
|
cell.type = "normal";
|
|
19574
19651
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19575
19652
|
cell.inRange = props.minDate && calTime.isSameOrAfter(props.minDate, "day") && calEndDate && calTime.isSameOrBefore(calEndDate, "day") || props.minDate && calTime.isSameOrBefore(props.minDate, "day") && calEndDate && calTime.isSameOrAfter(calEndDate, "day");
|
|
19576
|
-
if (props.minDate
|
|
19653
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19577
19654
|
cell.start = calEndDate && calTime.isSame(calEndDate, "day");
|
|
19578
19655
|
cell.end = props.minDate && calTime.isSame(props.minDate, "day");
|
|
19579
19656
|
} else {
|
|
@@ -19842,6 +19919,7 @@
|
|
|
19842
19919
|
const lastRow = vue.ref(null);
|
|
19843
19920
|
const lastColumn = vue.ref(null);
|
|
19844
19921
|
const rows = vue.computed(() => {
|
|
19922
|
+
var _a;
|
|
19845
19923
|
const rows2 = tableRows.value;
|
|
19846
19924
|
const now = dayjs().locale(lang.value).startOf("month");
|
|
19847
19925
|
for (let i = 0; i < 3; i++) {
|
|
@@ -19863,7 +19941,7 @@
|
|
|
19863
19941
|
const calTime = props.date.startOf("year").month(index);
|
|
19864
19942
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19865
19943
|
cell.inRange = props.minDate && calTime.isSameOrAfter(props.minDate, "month") && calEndDate && calTime.isSameOrBefore(calEndDate, "month") || props.minDate && calTime.isSameOrBefore(props.minDate, "month") && calEndDate && calTime.isSameOrAfter(calEndDate, "month");
|
|
19866
|
-
if (props.minDate
|
|
19944
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19867
19945
|
cell.start = calEndDate && calTime.isSame(calEndDate, "month");
|
|
19868
19946
|
cell.end = props.minDate && calTime.isSame(props.minDate, "month");
|
|
19869
19947
|
} else {
|
|
@@ -20281,7 +20359,7 @@
|
|
|
20281
20359
|
currentView.value = "date";
|
|
20282
20360
|
}, { immediate: true });
|
|
20283
20361
|
vue.watch(() => currentView.value, () => {
|
|
20284
|
-
popper
|
|
20362
|
+
popper == null ? void 0 : popper.updatePopper();
|
|
20285
20363
|
});
|
|
20286
20364
|
const hasShortcuts = vue.computed(() => !!shortcuts.length);
|
|
20287
20365
|
const handleMonthPick = (month2) => {
|
|
@@ -22115,13 +22193,18 @@
|
|
|
22115
22193
|
return node;
|
|
22116
22194
|
};
|
|
22117
22195
|
const getRows = () => {
|
|
22118
|
-
|
|
22196
|
+
var _a;
|
|
22197
|
+
const children = flattedChildren((_a = slots.default) == null ? void 0 : _a.call(slots)).filter((node) => {
|
|
22198
|
+
var _a2;
|
|
22199
|
+
return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === "ElDescriptionsItem";
|
|
22200
|
+
});
|
|
22119
22201
|
const rows = [];
|
|
22120
22202
|
let temp = [];
|
|
22121
22203
|
let count = props.column;
|
|
22122
22204
|
let totalSpan = 0;
|
|
22123
22205
|
children.forEach((node, index) => {
|
|
22124
|
-
|
|
22206
|
+
var _a2;
|
|
22207
|
+
const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
|
|
22125
22208
|
if (index < children.length - 1) {
|
|
22126
22209
|
totalSpan += span > count ? count : span;
|
|
22127
22210
|
}
|
|
@@ -22364,8 +22447,7 @@
|
|
|
22364
22447
|
},
|
|
22365
22448
|
modalClass: String,
|
|
22366
22449
|
width: {
|
|
22367
|
-
type: [String, Number]
|
|
22368
|
-
validator: isValidWidthUnit
|
|
22450
|
+
type: [String, Number]
|
|
22369
22451
|
},
|
|
22370
22452
|
zIndex: {
|
|
22371
22453
|
type: Number
|
|
@@ -23034,7 +23116,7 @@
|
|
|
23034
23116
|
on(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23035
23117
|
trapContainer.dispatchEvent(unmountEvent);
|
|
23036
23118
|
if (!unmountEvent.defaultPrevented) {
|
|
23037
|
-
tryFocus(lastFocusBeforeMounted
|
|
23119
|
+
tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
|
|
23038
23120
|
}
|
|
23039
23121
|
off(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23040
23122
|
focusableStack.remove(focusLayer);
|
|
@@ -23211,7 +23293,8 @@
|
|
|
23211
23293
|
props: rovingFocusGroupProps,
|
|
23212
23294
|
emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
|
|
23213
23295
|
setup(props, { emit }) {
|
|
23214
|
-
|
|
23296
|
+
var _a;
|
|
23297
|
+
const currentTabbedId = vue.ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);
|
|
23215
23298
|
const isBackingOut = vue.ref(false);
|
|
23216
23299
|
const isClickFocus = vue.ref(false);
|
|
23217
23300
|
const rovingFocusGroupRef = vue.ref(null);
|
|
@@ -23231,18 +23314,20 @@
|
|
|
23231
23314
|
isBackingOut.value = true;
|
|
23232
23315
|
};
|
|
23233
23316
|
const onMousedown = composeEventHandlers((e) => {
|
|
23234
|
-
|
|
23317
|
+
var _a2;
|
|
23318
|
+
(_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);
|
|
23235
23319
|
}, () => {
|
|
23236
23320
|
isClickFocus.value = true;
|
|
23237
23321
|
});
|
|
23238
23322
|
const onFocus = composeEventHandlers((e) => {
|
|
23239
|
-
|
|
23323
|
+
var _a2;
|
|
23324
|
+
(_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);
|
|
23240
23325
|
}, (e) => {
|
|
23241
23326
|
const isKeyboardFocus = !vue.unref(isClickFocus);
|
|
23242
23327
|
const { target, currentTarget } = e;
|
|
23243
23328
|
if (target === currentTarget && isKeyboardFocus && !vue.unref(isBackingOut)) {
|
|
23244
23329
|
const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
|
|
23245
|
-
currentTarget
|
|
23330
|
+
currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
|
|
23246
23331
|
if (!entryFocusEvt.defaultPrevented) {
|
|
23247
23332
|
const items = getItems().filter((item) => item.focusable);
|
|
23248
23333
|
const activeItem = items.find((item) => item.active);
|
|
@@ -23255,7 +23340,8 @@
|
|
|
23255
23340
|
isClickFocus.value = false;
|
|
23256
23341
|
});
|
|
23257
23342
|
const onBlur = composeEventHandlers((e) => {
|
|
23258
|
-
|
|
23343
|
+
var _a2;
|
|
23344
|
+
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
23259
23345
|
}, () => {
|
|
23260
23346
|
isBackingOut.value = false;
|
|
23261
23347
|
});
|
|
@@ -23279,7 +23365,7 @@
|
|
|
23279
23365
|
onMousedown
|
|
23280
23366
|
});
|
|
23281
23367
|
vue.watch(() => props.currentTabId, (val) => {
|
|
23282
|
-
currentTabbedId.value = val
|
|
23368
|
+
currentTabbedId.value = val != null ? val : null;
|
|
23283
23369
|
});
|
|
23284
23370
|
vue.onMounted(() => {
|
|
23285
23371
|
const rovingFocusGroupEl = vue.unref(rovingFocusGroupRef);
|
|
@@ -23538,10 +23624,12 @@
|
|
|
23538
23624
|
handleClose();
|
|
23539
23625
|
}
|
|
23540
23626
|
function handleClose() {
|
|
23541
|
-
|
|
23627
|
+
var _a;
|
|
23628
|
+
(_a = popperRef.value) == null ? void 0 : _a.onClose();
|
|
23542
23629
|
}
|
|
23543
23630
|
function handleOpen() {
|
|
23544
|
-
|
|
23631
|
+
var _a;
|
|
23632
|
+
(_a = popperRef.value) == null ? void 0 : _a.onOpen();
|
|
23545
23633
|
}
|
|
23546
23634
|
const dropdownSize = useSize();
|
|
23547
23635
|
function commandHandler(...args) {
|
|
@@ -23551,7 +23639,7 @@
|
|
|
23551
23639
|
}
|
|
23552
23640
|
function onItemLeave() {
|
|
23553
23641
|
const contentEl = vue.unref(contentRef);
|
|
23554
|
-
contentEl
|
|
23642
|
+
contentEl == null ? void 0 : contentEl.focus();
|
|
23555
23643
|
currentTabId.value = null;
|
|
23556
23644
|
}
|
|
23557
23645
|
function handleCurrentTabIdChange(id) {
|
|
@@ -23578,8 +23666,9 @@
|
|
|
23578
23666
|
hideOnClick: vue.toRef(props, "hideOnClick")
|
|
23579
23667
|
});
|
|
23580
23668
|
const onMountOnFocus = (e) => {
|
|
23669
|
+
var _a, _b;
|
|
23581
23670
|
e.preventDefault();
|
|
23582
|
-
contentRef.value
|
|
23671
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {
|
|
23583
23672
|
preventScroll: true
|
|
23584
23673
|
});
|
|
23585
23674
|
};
|
|
@@ -23606,6 +23695,7 @@
|
|
|
23606
23695
|
});
|
|
23607
23696
|
const _hoisted_1$G = { class: "el-dropdown" };
|
|
23608
23697
|
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23698
|
+
var _a;
|
|
23609
23699
|
const _component_el_dropdown_collection = vue.resolveComponent("el-dropdown-collection");
|
|
23610
23700
|
const _component_el_roving_focus_group = vue.resolveComponent("el-roving-focus-group");
|
|
23611
23701
|
const _component_el_focus_trap = vue.resolveComponent("el-focus-trap");
|
|
@@ -23626,7 +23716,7 @@
|
|
|
23626
23716
|
"manual-mode": true,
|
|
23627
23717
|
placement: _ctx.placement,
|
|
23628
23718
|
"popper-class": `el-dropdown__popper ${_ctx.popperClass}`,
|
|
23629
|
-
"reference-element": _ctx.referenceElementRef
|
|
23719
|
+
"reference-element": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,
|
|
23630
23720
|
trigger: _ctx.trigger,
|
|
23631
23721
|
"show-after": _ctx.showTimeout,
|
|
23632
23722
|
"stop-popper-mouse-event": false,
|
|
@@ -23822,18 +23912,22 @@
|
|
|
23822
23912
|
const { elDropdown } = useDropdown();
|
|
23823
23913
|
const _instance = vue.getCurrentInstance();
|
|
23824
23914
|
const itemRef = vue.ref(null);
|
|
23825
|
-
const textContent = vue.computed(() =>
|
|
23915
|
+
const textContent = vue.computed(() => {
|
|
23916
|
+
var _a, _b;
|
|
23917
|
+
return (_b = (_a = vue.unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : "";
|
|
23918
|
+
});
|
|
23826
23919
|
const { onItemEnter, onItemLeave } = vue.inject(DROPDOWN_INJECTION_KEY, void 0);
|
|
23827
23920
|
const handlePointerMove = composeEventHandlers((e) => {
|
|
23828
23921
|
emit("pointermove", e);
|
|
23829
23922
|
return e.defaultPrevented;
|
|
23830
23923
|
}, whenMouse((e) => {
|
|
23924
|
+
var _a;
|
|
23831
23925
|
if (props.disabled) {
|
|
23832
23926
|
onItemLeave(e);
|
|
23833
23927
|
} else {
|
|
23834
23928
|
onItemEnter(e);
|
|
23835
23929
|
if (!e.defaultPrevented) {
|
|
23836
|
-
e.currentTarget
|
|
23930
|
+
(_a = e.currentTarget) == null ? void 0 : _a.focus();
|
|
23837
23931
|
}
|
|
23838
23932
|
}
|
|
23839
23933
|
}));
|
|
@@ -23847,14 +23941,15 @@
|
|
|
23847
23941
|
emit("click", e);
|
|
23848
23942
|
return e.defaultPrevented;
|
|
23849
23943
|
}, (e) => {
|
|
23944
|
+
var _a, _b, _c;
|
|
23850
23945
|
if (props.disabled) {
|
|
23851
23946
|
e.stopImmediatePropagation();
|
|
23852
23947
|
return;
|
|
23853
23948
|
}
|
|
23854
|
-
if (elDropdown
|
|
23855
|
-
elDropdown.handleClick
|
|
23949
|
+
if ((_a = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a.value) {
|
|
23950
|
+
(_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);
|
|
23856
23951
|
}
|
|
23857
|
-
elDropdown.commandHandler
|
|
23952
|
+
(_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);
|
|
23858
23953
|
});
|
|
23859
23954
|
return {
|
|
23860
23955
|
handleClick,
|
|
@@ -23865,12 +23960,13 @@
|
|
|
23865
23960
|
}
|
|
23866
23961
|
});
|
|
23867
23962
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23963
|
+
var _a;
|
|
23868
23964
|
const _component_el_dropdown_item_impl = vue.resolveComponent("el-dropdown-item-impl");
|
|
23869
23965
|
const _component_el_roving_focus_item = vue.resolveComponent("el-roving-focus-item");
|
|
23870
23966
|
const _component_el_dropdown_collection_item = vue.resolveComponent("el-dropdown-collection-item");
|
|
23871
23967
|
return vue.openBlock(), vue.createBlock(_component_el_dropdown_collection_item, {
|
|
23872
23968
|
disabled: _ctx.disabled,
|
|
23873
|
-
"text-value": _ctx.textValue
|
|
23969
|
+
"text-value": (_a = _ctx.textValue) != null ? _a : _ctx.textContent
|
|
23874
23970
|
}, {
|
|
23875
23971
|
default: vue.withCtx(() => [
|
|
23876
23972
|
vue.createVNode(_component_el_roving_focus_item, {
|
|
@@ -23922,7 +24018,8 @@
|
|
|
23922
24018
|
});
|
|
23923
24019
|
const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
|
23924
24020
|
const composedKeydown = composeEventHandlers((e) => {
|
|
23925
|
-
|
|
24021
|
+
var _a;
|
|
24022
|
+
(_a = props.onKeydown) == null ? void 0 : _a.call(props, e);
|
|
23926
24023
|
}, (e) => {
|
|
23927
24024
|
const { currentTarget, code, target } = e;
|
|
23928
24025
|
currentTarget.contains(target);
|
|
@@ -25911,10 +26008,11 @@
|
|
|
25911
26008
|
const model = {};
|
|
25912
26009
|
model[props.prop] = fieldValue.value;
|
|
25913
26010
|
validator.validate(model, { firstFields: true }, (errors, fields) => {
|
|
26011
|
+
var _a;
|
|
25914
26012
|
validateState.value = !errors ? "success" : "error";
|
|
25915
26013
|
validateMessage.value = errors ? errors[0].message || `${props.prop} is required` : "";
|
|
25916
26014
|
callback(validateMessage.value, errors ? fields : {});
|
|
25917
|
-
elForm.emit
|
|
26015
|
+
(_a = elForm.emit) == null ? void 0 : _a.call(elForm, "validate", props.prop, !errors, validateMessage.value || null);
|
|
25918
26016
|
});
|
|
25919
26017
|
};
|
|
25920
26018
|
const clearValidate = () => {
|
|
@@ -25959,7 +26057,8 @@
|
|
|
25959
26057
|
}).map((rule) => ({ ...rule }));
|
|
25960
26058
|
};
|
|
25961
26059
|
const evaluateValidationEnabled = () => {
|
|
25962
|
-
|
|
26060
|
+
var _a;
|
|
26061
|
+
isValidationEnabled.value = !!((_a = getRules()) == null ? void 0 : _a.length);
|
|
25963
26062
|
};
|
|
25964
26063
|
const updateComputedLabelWidth = (width) => {
|
|
25965
26064
|
computedLabelWidth.value = width ? `${width}px` : "";
|
|
@@ -25977,14 +26076,14 @@
|
|
|
25977
26076
|
});
|
|
25978
26077
|
vue.onMounted(() => {
|
|
25979
26078
|
if (props.prop) {
|
|
25980
|
-
elForm
|
|
26079
|
+
elForm == null ? void 0 : elForm.addField(elFormItem);
|
|
25981
26080
|
const value = fieldValue.value;
|
|
25982
26081
|
initialValue = Array.isArray(value) ? [...value] : value;
|
|
25983
26082
|
evaluateValidationEnabled();
|
|
25984
26083
|
}
|
|
25985
26084
|
});
|
|
25986
26085
|
vue.onBeforeUnmount(() => {
|
|
25987
|
-
elForm
|
|
26086
|
+
elForm == null ? void 0 : elForm.removeField(elFormItem);
|
|
25988
26087
|
});
|
|
25989
26088
|
vue.provide(elFormItemKey, elFormItem);
|
|
25990
26089
|
const formItemClass = vue.computed(() => [
|
|
@@ -26312,7 +26411,7 @@
|
|
|
26312
26411
|
vue.watch(currentImg, () => {
|
|
26313
26412
|
vue.nextTick(() => {
|
|
26314
26413
|
const $img = img.value;
|
|
26315
|
-
if (
|
|
26414
|
+
if (!($img == null ? void 0 : $img.complete)) {
|
|
26316
26415
|
loading.value = true;
|
|
26317
26416
|
}
|
|
26318
26417
|
});
|
|
@@ -26322,8 +26421,9 @@
|
|
|
26322
26421
|
emit("switch", val);
|
|
26323
26422
|
});
|
|
26324
26423
|
vue.onMounted(() => {
|
|
26424
|
+
var _a, _b;
|
|
26325
26425
|
registerEventListener();
|
|
26326
|
-
wrapper.value
|
|
26426
|
+
(_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26327
26427
|
});
|
|
26328
26428
|
return {
|
|
26329
26429
|
index,
|
|
@@ -26630,6 +26730,7 @@
|
|
|
26630
26730
|
}
|
|
26631
26731
|
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);
|
|
26632
26732
|
async function addLazyLoadListener() {
|
|
26733
|
+
var _a;
|
|
26633
26734
|
if (!isClient)
|
|
26634
26735
|
return;
|
|
26635
26736
|
await vue.nextTick();
|
|
@@ -26637,7 +26738,7 @@
|
|
|
26637
26738
|
if (isHtmlElement(scrollContainer)) {
|
|
26638
26739
|
_scrollContainer.value = scrollContainer;
|
|
26639
26740
|
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
26640
|
-
_scrollContainer.value = document.querySelector(scrollContainer)
|
|
26741
|
+
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
26641
26742
|
} else if (container.value) {
|
|
26642
26743
|
_scrollContainer.value = getScrollContainer(container.value);
|
|
26643
26744
|
}
|
|
@@ -26674,7 +26775,7 @@
|
|
|
26674
26775
|
showViewer.value = true;
|
|
26675
26776
|
}
|
|
26676
26777
|
function closeViewer() {
|
|
26677
|
-
stopWheelListener
|
|
26778
|
+
stopWheelListener == null ? void 0 : stopWheelListener();
|
|
26678
26779
|
document.body.style.overflow = prevOverflow;
|
|
26679
26780
|
showViewer.value = false;
|
|
26680
26781
|
emit("close");
|
|
@@ -26920,6 +27021,7 @@
|
|
|
26920
27021
|
setCurrentValue(newVal);
|
|
26921
27022
|
};
|
|
26922
27023
|
const setCurrentValue = (newVal) => {
|
|
27024
|
+
var _a;
|
|
26923
27025
|
const oldVal = data.currentValue;
|
|
26924
27026
|
if (typeof newVal === "number" && props.precision !== void 0) {
|
|
26925
27027
|
newVal = toPrecision(newVal, props.precision);
|
|
@@ -26937,7 +27039,7 @@
|
|
|
26937
27039
|
emit("update:modelValue", newVal);
|
|
26938
27040
|
emit("input", newVal);
|
|
26939
27041
|
emit("change", newVal, oldVal);
|
|
26940
|
-
formItem
|
|
27042
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
26941
27043
|
data.currentValue = newVal;
|
|
26942
27044
|
};
|
|
26943
27045
|
const handleInput = (value) => {
|
|
@@ -26951,17 +27053,20 @@
|
|
|
26951
27053
|
data.userInput = null;
|
|
26952
27054
|
};
|
|
26953
27055
|
const focus = () => {
|
|
26954
|
-
|
|
27056
|
+
var _a, _b;
|
|
27057
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26955
27058
|
};
|
|
26956
27059
|
const blur = () => {
|
|
26957
|
-
|
|
27060
|
+
var _a, _b;
|
|
27061
|
+
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
26958
27062
|
};
|
|
26959
27063
|
const handleFocus = (event) => {
|
|
26960
27064
|
emit("focus", event);
|
|
26961
27065
|
};
|
|
26962
27066
|
const handleBlur = (event) => {
|
|
27067
|
+
var _a;
|
|
26963
27068
|
emit("blur", event);
|
|
26964
|
-
formItem
|
|
27069
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
26965
27070
|
};
|
|
26966
27071
|
vue.watch(() => props.modelValue, (value) => {
|
|
26967
27072
|
let newVal = Number(value);
|
|
@@ -26990,7 +27095,8 @@
|
|
|
26990
27095
|
data.userInput = null;
|
|
26991
27096
|
}, { immediate: true });
|
|
26992
27097
|
vue.onMounted(() => {
|
|
26993
|
-
|
|
27098
|
+
var _a;
|
|
27099
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
26994
27100
|
innerInput.setAttribute("role", "spinbutton");
|
|
26995
27101
|
innerInput.setAttribute("aria-valuemax", String(props.max));
|
|
26996
27102
|
innerInput.setAttribute("aria-valuemin", String(props.min));
|
|
@@ -27005,7 +27111,8 @@
|
|
|
27005
27111
|
}
|
|
27006
27112
|
});
|
|
27007
27113
|
vue.onUpdated(() => {
|
|
27008
|
-
|
|
27114
|
+
var _a;
|
|
27115
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
27009
27116
|
innerInput.setAttribute("aria-valuenow", data.currentValue);
|
|
27010
27117
|
});
|
|
27011
27118
|
return {
|
|
@@ -28481,7 +28588,8 @@
|
|
|
28481
28588
|
const isFitInputWidth = vue.computed(() => select.props.fitInputWidth);
|
|
28482
28589
|
const minWidth = vue.ref("");
|
|
28483
28590
|
function updateMinWidth() {
|
|
28484
|
-
|
|
28591
|
+
var _a;
|
|
28592
|
+
minWidth.value = `${(_a = select.selectWrapper) == null ? void 0 : _a.getBoundingClientRect().width}px`;
|
|
28485
28593
|
}
|
|
28486
28594
|
vue.onMounted(() => {
|
|
28487
28595
|
updateMinWidth();
|
|
@@ -29405,7 +29513,8 @@
|
|
|
29405
29513
|
ctx.emit(UPDATE_MODEL_EVENT, "");
|
|
29406
29514
|
}
|
|
29407
29515
|
const popperPaneRef = vue.computed(() => {
|
|
29408
|
-
|
|
29516
|
+
var _a, _b;
|
|
29517
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
29409
29518
|
});
|
|
29410
29519
|
return {
|
|
29411
29520
|
tagInMultiLine,
|
|
@@ -29750,9 +29859,10 @@
|
|
|
29750
29859
|
const children2 = [];
|
|
29751
29860
|
if (Array.isArray(node.children)) {
|
|
29752
29861
|
node.children.forEach((child) => {
|
|
29862
|
+
var _a;
|
|
29753
29863
|
if (child.type && child.type.name === "ElOption" && child.component && child.component.proxy) {
|
|
29754
29864
|
children2.push(child.component.proxy);
|
|
29755
|
-
} else if (child.children
|
|
29865
|
+
} else if ((_a = child.children) == null ? void 0 : _a.length) {
|
|
29756
29866
|
children2.push(...flattedChildren(child));
|
|
29757
29867
|
}
|
|
29758
29868
|
});
|
|
@@ -29834,9 +29944,10 @@
|
|
|
29834
29944
|
});
|
|
29835
29945
|
const innerPagesizes = vue.computed(() => props.pageSizes);
|
|
29836
29946
|
function handleChange(val) {
|
|
29947
|
+
var _a;
|
|
29837
29948
|
if (val !== innerPageSize.value) {
|
|
29838
29949
|
innerPageSize.value = val;
|
|
29839
|
-
pagination.handleSizeChange
|
|
29950
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
|
29840
29951
|
}
|
|
29841
29952
|
}
|
|
29842
29953
|
return {
|
|
@@ -29883,13 +29994,16 @@
|
|
|
29883
29994
|
const { t } = useLocale();
|
|
29884
29995
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
29885
29996
|
const userInput = vue.ref();
|
|
29886
|
-
const innerValue = vue.computed(() =>
|
|
29997
|
+
const innerValue = vue.computed(() => {
|
|
29998
|
+
var _a;
|
|
29999
|
+
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
30000
|
+
});
|
|
29887
30001
|
function handleInput(val) {
|
|
29888
30002
|
userInput.value = +val;
|
|
29889
30003
|
}
|
|
29890
30004
|
function handleChange(val) {
|
|
29891
30005
|
val = Math.trunc(+val);
|
|
29892
|
-
changeEvent
|
|
30006
|
+
changeEvent == null ? void 0 : changeEvent(+val);
|
|
29893
30007
|
userInput.value = void 0;
|
|
29894
30008
|
}
|
|
29895
30009
|
return {
|
|
@@ -30424,17 +30538,20 @@
|
|
|
30424
30538
|
const { t } = useLocale();
|
|
30425
30539
|
const tooltipRef = vue.ref();
|
|
30426
30540
|
const hidePopper = () => {
|
|
30427
|
-
|
|
30541
|
+
var _a, _b;
|
|
30542
|
+
(_b = (_a = vue.unref(tooltipRef)) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
30428
30543
|
};
|
|
30429
30544
|
const handleCallback = () => {
|
|
30430
30545
|
hidePopper();
|
|
30431
30546
|
};
|
|
30432
30547
|
const confirm = (e) => {
|
|
30433
|
-
|
|
30548
|
+
var _a;
|
|
30549
|
+
(_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
|
|
30434
30550
|
handleCallback();
|
|
30435
30551
|
};
|
|
30436
30552
|
const cancel = (e) => {
|
|
30437
|
-
|
|
30553
|
+
var _a;
|
|
30554
|
+
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
30438
30555
|
handleCallback();
|
|
30439
30556
|
};
|
|
30440
30557
|
const finalConfirmButtonText = vue.computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
@@ -30550,7 +30667,8 @@
|
|
|
30550
30667
|
setup(props) {
|
|
30551
30668
|
const tooltipRef = vue.ref(null);
|
|
30552
30669
|
const popperRef = vue.computed(() => {
|
|
30553
|
-
|
|
30670
|
+
var _a;
|
|
30671
|
+
return (_a = vue.unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
30554
30672
|
});
|
|
30555
30673
|
const width = vue.computed(() => {
|
|
30556
30674
|
if (isString$1(props.width)) {
|
|
@@ -30574,7 +30692,8 @@
|
|
|
30574
30692
|
];
|
|
30575
30693
|
});
|
|
30576
30694
|
const hide = () => {
|
|
30577
|
-
|
|
30695
|
+
var _a;
|
|
30696
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
30578
30697
|
};
|
|
30579
30698
|
return {
|
|
30580
30699
|
kls,
|
|
@@ -30787,6 +30906,7 @@
|
|
|
30787
30906
|
});
|
|
30788
30907
|
const content = vue.computed(() => props.format(props.percentage));
|
|
30789
30908
|
const getCurrentColor = (percentage) => {
|
|
30909
|
+
var _a;
|
|
30790
30910
|
const { color } = props;
|
|
30791
30911
|
if (typeof color === "function") {
|
|
30792
30912
|
return color(percentage);
|
|
@@ -30808,7 +30928,7 @@
|
|
|
30808
30928
|
if (color2.percentage > percentage)
|
|
30809
30929
|
return color2.color;
|
|
30810
30930
|
}
|
|
30811
|
-
return colors[colors.length - 1]
|
|
30931
|
+
return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
|
|
30812
30932
|
}
|
|
30813
30933
|
};
|
|
30814
30934
|
const slotData = vue.computed(() => {
|
|
@@ -33358,6 +33478,7 @@
|
|
|
33358
33478
|
};
|
|
33359
33479
|
},
|
|
33360
33480
|
render(_ctx, _cache) {
|
|
33481
|
+
var _a;
|
|
33361
33482
|
const {
|
|
33362
33483
|
$slots,
|
|
33363
33484
|
data,
|
|
@@ -33384,7 +33505,7 @@
|
|
|
33384
33505
|
style: {
|
|
33385
33506
|
width: `${width}px`
|
|
33386
33507
|
}
|
|
33387
|
-
}, $slots.empty
|
|
33508
|
+
}, (_a = $slots.empty) == null ? void 0 : _a.call($slots));
|
|
33388
33509
|
}
|
|
33389
33510
|
const ListItem = vue.withCtx((scoped) => {
|
|
33390
33511
|
const { index, data: data2 } = scoped;
|
|
@@ -34259,67 +34380,49 @@
|
|
|
34259
34380
|
onShow: _ctx.handleMenuEnter,
|
|
34260
34381
|
onHide: _cache[23] || (_cache[23] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
34261
34382
|
}, {
|
|
34262
|
-
default: vue.withCtx(() =>
|
|
34263
|
-
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
"
|
|
34267
|
-
"
|
|
34268
|
-
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34280
|
-
|
|
34281
|
-
"disable-transitions": "",
|
|
34282
|
-
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34283
|
-
}, {
|
|
34284
|
-
default: vue.withCtx(() => [
|
|
34285
|
-
vue.createElementVNode("span", {
|
|
34286
|
-
class: "el-select-v2__tags-text",
|
|
34287
|
-
style: vue.normalizeStyle({
|
|
34288
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34289
|
-
})
|
|
34290
|
-
}, vue.toDisplayString(_ctx.states.cachedOptions[0]?.label), 5)
|
|
34291
|
-
]),
|
|
34292
|
-
_: 1
|
|
34293
|
-
}, 8, ["closable", "size"]),
|
|
34294
|
-
_ctx.modelValue.length > 1 ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34295
|
-
key: 0,
|
|
34296
|
-
closable: false,
|
|
34297
|
-
size: _ctx.collapseTagSize,
|
|
34298
|
-
type: "info",
|
|
34299
|
-
"disable-transitions": ""
|
|
34300
|
-
}, {
|
|
34301
|
-
default: vue.withCtx(() => [
|
|
34302
|
-
vue.createElementVNode("span", {
|
|
34303
|
-
class: "el-select-v2__tags-text",
|
|
34304
|
-
style: vue.normalizeStyle({
|
|
34305
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34306
|
-
})
|
|
34307
|
-
}, "+ " + vue.toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34308
|
-
]),
|
|
34309
|
-
_: 1
|
|
34310
|
-
}, 8, ["size"])) : vue.createCommentVNode("v-if", true)
|
|
34311
|
-
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34312
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34313
|
-
key: idx,
|
|
34314
|
-
class: "el-select-v2__selected-item"
|
|
34315
|
-
}, [
|
|
34316
|
-
(vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34317
|
-
key: _ctx.getValueKey(selected),
|
|
34318
|
-
closable: !_ctx.selectDisabled && !selected.disabled,
|
|
34383
|
+
default: vue.withCtx(() => {
|
|
34384
|
+
var _a;
|
|
34385
|
+
return [
|
|
34386
|
+
vue.createElementVNode("div", {
|
|
34387
|
+
ref: "selectionRef",
|
|
34388
|
+
class: vue.normalizeClass(["el-select-v2__wrapper", {
|
|
34389
|
+
"is-focused": _ctx.states.isComposing,
|
|
34390
|
+
"is-hovering": _ctx.states.comboBoxHovering,
|
|
34391
|
+
"is-filterable": _ctx.filterable,
|
|
34392
|
+
"is-disabled": _ctx.disabled
|
|
34393
|
+
}])
|
|
34394
|
+
}, [
|
|
34395
|
+
_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
34396
|
+
vue.renderSlot(_ctx.$slots, "prefix")
|
|
34397
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
34398
|
+
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
|
|
34399
|
+
_ctx.collapseTags && _ctx.modelValue.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
|
|
34400
|
+
vue.createVNode(_component_el_tag, {
|
|
34401
|
+
closable: !_ctx.selectDisabled && !((_a = _ctx.states.cachedOptions[0]) == null ? void 0 : _a.disable),
|
|
34319
34402
|
size: _ctx.collapseTagSize,
|
|
34320
34403
|
type: "info",
|
|
34321
34404
|
"disable-transitions": "",
|
|
34322
|
-
onClose: ($event) => _ctx.deleteTag($event,
|
|
34405
|
+
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34406
|
+
}, {
|
|
34407
|
+
default: vue.withCtx(() => {
|
|
34408
|
+
var _a2;
|
|
34409
|
+
return [
|
|
34410
|
+
vue.createElementVNode("span", {
|
|
34411
|
+
class: "el-select-v2__tags-text",
|
|
34412
|
+
style: vue.normalizeStyle({
|
|
34413
|
+
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34414
|
+
})
|
|
34415
|
+
}, vue.toDisplayString((_a2 = _ctx.states.cachedOptions[0]) == null ? void 0 : _a2.label), 5)
|
|
34416
|
+
];
|
|
34417
|
+
}),
|
|
34418
|
+
_: 1
|
|
34419
|
+
}, 8, ["closable", "size"]),
|
|
34420
|
+
_ctx.modelValue.length > 1 ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34421
|
+
key: 0,
|
|
34422
|
+
closable: false,
|
|
34423
|
+
size: _ctx.collapseTagSize,
|
|
34424
|
+
type: "info",
|
|
34425
|
+
"disable-transitions": ""
|
|
34323
34426
|
}, {
|
|
34324
34427
|
default: vue.withCtx(() => [
|
|
34325
34428
|
vue.createElementVNode("span", {
|
|
@@ -34327,141 +34430,165 @@
|
|
|
34327
34430
|
style: vue.normalizeStyle({
|
|
34328
34431
|
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34329
34432
|
})
|
|
34330
|
-
}, vue.toDisplayString(_ctx.
|
|
34433
|
+
}, "+ " + vue.toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34331
34434
|
]),
|
|
34332
|
-
_:
|
|
34333
|
-
},
|
|
34334
|
-
])
|
|
34335
|
-
|
|
34336
|
-
|
|
34337
|
-
|
|
34338
|
-
|
|
34339
|
-
|
|
34340
|
-
|
|
34341
|
-
|
|
34342
|
-
|
|
34343
|
-
|
|
34344
|
-
|
|
34345
|
-
|
|
34346
|
-
|
|
34347
|
-
|
|
34348
|
-
|
|
34349
|
-
|
|
34350
|
-
|
|
34351
|
-
|
|
34352
|
-
|
|
34353
|
-
|
|
34354
|
-
|
|
34355
|
-
|
|
34356
|
-
|
|
34357
|
-
|
|
34358
|
-
|
|
34359
|
-
|
|
34360
|
-
|
|
34361
|
-
|
|
34362
|
-
|
|
34363
|
-
|
|
34364
|
-
|
|
34365
|
-
|
|
34366
|
-
|
|
34367
|
-
|
|
34368
|
-
|
|
34369
|
-
|
|
34370
|
-
|
|
34371
|
-
|
|
34435
|
+
_: 1
|
|
34436
|
+
}, 8, ["size"])) : vue.createCommentVNode("v-if", true)
|
|
34437
|
+
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34438
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34439
|
+
key: idx,
|
|
34440
|
+
class: "el-select-v2__selected-item"
|
|
34441
|
+
}, [
|
|
34442
|
+
(vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34443
|
+
key: _ctx.getValueKey(selected),
|
|
34444
|
+
closable: !_ctx.selectDisabled && !selected.disabled,
|
|
34445
|
+
size: _ctx.collapseTagSize,
|
|
34446
|
+
type: "info",
|
|
34447
|
+
"disable-transitions": "",
|
|
34448
|
+
onClose: ($event) => _ctx.deleteTag($event, selected)
|
|
34449
|
+
}, {
|
|
34450
|
+
default: vue.withCtx(() => [
|
|
34451
|
+
vue.createElementVNode("span", {
|
|
34452
|
+
class: "el-select-v2__tags-text",
|
|
34453
|
+
style: vue.normalizeStyle({
|
|
34454
|
+
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34455
|
+
})
|
|
34456
|
+
}, vue.toDisplayString(_ctx.getLabel(selected)), 5)
|
|
34457
|
+
]),
|
|
34458
|
+
_: 2
|
|
34459
|
+
}, 1032, ["closable", "size", "onClose"]))
|
|
34460
|
+
]);
|
|
34461
|
+
}), 128)),
|
|
34462
|
+
vue.createElementVNode("div", {
|
|
34463
|
+
class: "el-select-v2__selected-item el-select-v2__input-wrapper",
|
|
34464
|
+
style: vue.normalizeStyle(_ctx.inputWrapperStyle)
|
|
34465
|
+
}, [
|
|
34466
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
34467
|
+
id: _ctx.id,
|
|
34468
|
+
ref: "inputRef",
|
|
34469
|
+
autocomplete: _ctx.autocomplete,
|
|
34470
|
+
"aria-autocomplete": "list",
|
|
34471
|
+
"aria-haspopup": "listbox",
|
|
34472
|
+
autocapitalize: "off",
|
|
34473
|
+
"aria-expanded": _ctx.expanded,
|
|
34474
|
+
"aria-labelledby": _ctx.label,
|
|
34475
|
+
class: vue.normalizeClass(["el-select-v2__combobox-input", [_ctx.selectSize ? `is-${_ctx.selectSize}` : ""]]),
|
|
34476
|
+
disabled: _ctx.disabled,
|
|
34477
|
+
role: "combobox",
|
|
34478
|
+
readonly: !_ctx.filterable,
|
|
34479
|
+
spellcheck: "false",
|
|
34480
|
+
type: "text",
|
|
34481
|
+
name: _ctx.name,
|
|
34482
|
+
unselectable: _ctx.expanded ? "on" : void 0,
|
|
34483
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args)),
|
|
34484
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34485
|
+
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
34486
|
+
onCompositionstart: _cache[4] || (_cache[4] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
34487
|
+
onCompositionupdate: _cache[5] || (_cache[5] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
|
|
34488
|
+
onCompositionend: _cache[6] || (_cache[6] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
|
|
34489
|
+
onKeydown: [
|
|
34490
|
+
_cache[7] || (_cache[7] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
|
|
34491
|
+
_cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
|
|
34492
|
+
_cache[9] || (_cache[9] = vue.withKeys(vue.withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
|
|
34493
|
+
_cache[10] || (_cache[10] = vue.withKeys(vue.withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
|
|
34494
|
+
_cache[11] || (_cache[11] = vue.withKeys(vue.withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop"]), ["delete"]))
|
|
34495
|
+
]
|
|
34496
|
+
}, null, 42, _hoisted_4$6), [
|
|
34497
|
+
[_directive_model_text, _ctx.states.displayInputValue]
|
|
34498
|
+
]),
|
|
34499
|
+
_ctx.filterable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34500
|
+
key: 0,
|
|
34501
|
+
ref: "calculatorRef",
|
|
34502
|
+
"aria-hidden": "true",
|
|
34503
|
+
class: "el-select-v2__input-calculator",
|
|
34504
|
+
textContent: vue.toDisplayString(_ctx.states.displayInputValue)
|
|
34505
|
+
}, null, 8, _hoisted_5$4)) : vue.createCommentVNode("v-if", true)
|
|
34506
|
+
], 4)
|
|
34507
|
+
])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
34508
|
+
vue.createElementVNode("div", _hoisted_6$3, [
|
|
34509
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
34510
|
+
id: _ctx.id,
|
|
34511
|
+
ref: "inputRef",
|
|
34512
|
+
"aria-autocomplete": "list",
|
|
34513
|
+
"aria-haspopup": "listbox",
|
|
34514
|
+
"aria-labelledby": _ctx.label,
|
|
34515
|
+
"aria-expanded": _ctx.expanded,
|
|
34516
|
+
autocapitalize: "off",
|
|
34517
|
+
autocomplete: _ctx.autocomplete,
|
|
34518
|
+
class: "el-select-v2__combobox-input",
|
|
34519
|
+
disabled: _ctx.disabled,
|
|
34520
|
+
name: _ctx.name,
|
|
34521
|
+
role: "combobox",
|
|
34522
|
+
readonly: !_ctx.filterable,
|
|
34523
|
+
spellcheck: "false",
|
|
34524
|
+
type: "text",
|
|
34525
|
+
unselectable: _ctx.expanded ? "on" : void 0,
|
|
34526
|
+
onCompositionstart: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
34527
|
+
onCompositionupdate: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
|
|
34528
|
+
onCompositionend: _cache[14] || (_cache[14] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
|
|
34529
|
+
onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34530
|
+
onInput: _cache[16] || (_cache[16] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
34531
|
+
onKeydown: [
|
|
34532
|
+
_cache[17] || (_cache[17] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
|
|
34533
|
+
_cache[18] || (_cache[18] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
|
|
34534
|
+
_cache[19] || (_cache[19] = vue.withKeys(vue.withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
|
|
34535
|
+
_cache[20] || (_cache[20] = vue.withKeys(vue.withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"]))
|
|
34536
|
+
],
|
|
34537
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args))
|
|
34538
|
+
}, null, 40, _hoisted_7$2), [
|
|
34539
|
+
[_directive_model_text, _ctx.states.displayInputValue]
|
|
34540
|
+
])
|
|
34372
34541
|
]),
|
|
34373
34542
|
_ctx.filterable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34374
34543
|
key: 0,
|
|
34375
34544
|
ref: "calculatorRef",
|
|
34376
34545
|
"aria-hidden": "true",
|
|
34377
|
-
class: "el-select-v2__input-calculator",
|
|
34546
|
+
class: "el-select-v2__selected-item el-select-v2__input-calculator",
|
|
34378
34547
|
textContent: vue.toDisplayString(_ctx.states.displayInputValue)
|
|
34379
|
-
}, null, 8,
|
|
34380
|
-
],
|
|
34381
|
-
|
|
34382
|
-
|
|
34383
|
-
vue.
|
|
34384
|
-
|
|
34385
|
-
|
|
34386
|
-
|
|
34387
|
-
|
|
34388
|
-
|
|
34389
|
-
|
|
34390
|
-
|
|
34391
|
-
|
|
34392
|
-
|
|
34393
|
-
|
|
34394
|
-
|
|
34395
|
-
|
|
34396
|
-
|
|
34397
|
-
|
|
34398
|
-
|
|
34399
|
-
|
|
34400
|
-
|
|
34401
|
-
|
|
34402
|
-
|
|
34403
|
-
|
|
34404
|
-
|
|
34405
|
-
|
|
34406
|
-
|
|
34407
|
-
|
|
34408
|
-
|
|
34409
|
-
|
|
34410
|
-
|
|
34411
|
-
|
|
34412
|
-
|
|
34413
|
-
|
|
34414
|
-
|
|
34415
|
-
|
|
34416
|
-
|
|
34417
|
-
|
|
34418
|
-
|
|
34419
|
-
|
|
34420
|
-
|
|
34421
|
-
|
|
34422
|
-
|
|
34423
|
-
], 64)),
|
|
34424
|
-
_ctx.shouldShowPlaceholder ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34425
|
-
key: 3,
|
|
34426
|
-
class: vue.normalizeClass({
|
|
34427
|
-
"el-select-v2__placeholder": true,
|
|
34428
|
-
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34429
|
-
})
|
|
34430
|
-
}, vue.toDisplayString(_ctx.currentPlaceholder), 3)) : vue.createCommentVNode("v-if", true),
|
|
34431
|
-
vue.createElementVNode("span", _hoisted_9$1, [
|
|
34432
|
-
_ctx.iconComponent ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34433
|
-
key: 0,
|
|
34434
|
-
class: vue.normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34435
|
-
}, {
|
|
34436
|
-
default: vue.withCtx(() => [
|
|
34437
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
34438
|
-
]),
|
|
34439
|
-
_: 1
|
|
34440
|
-
}, 8, ["class"])), [
|
|
34441
|
-
[vue.vShow, !_ctx.showClearBtn]
|
|
34442
|
-
]) : vue.createCommentVNode("v-if", true),
|
|
34443
|
-
_ctx.showClearBtn && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34444
|
-
key: 1,
|
|
34445
|
-
class: "el-select-v2__caret el-input__icon",
|
|
34446
|
-
onClick: vue.withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34447
|
-
}, {
|
|
34448
|
-
default: vue.withCtx(() => [
|
|
34449
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
34450
|
-
]),
|
|
34451
|
-
_: 1
|
|
34452
|
-
}, 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
34453
|
-
_ctx.validateState && _ctx.validateIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34454
|
-
key: 2,
|
|
34455
|
-
class: "el-input__icon el-input__validateIcon"
|
|
34456
|
-
}, {
|
|
34457
|
-
default: vue.withCtx(() => [
|
|
34458
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
|
|
34459
|
-
]),
|
|
34460
|
-
_: 1
|
|
34461
|
-
})) : vue.createCommentVNode("v-if", true)
|
|
34462
|
-
])
|
|
34463
|
-
], 2)
|
|
34464
|
-
]),
|
|
34548
|
+
}, null, 8, _hoisted_8$2)) : vue.createCommentVNode("v-if", true)
|
|
34549
|
+
], 64)),
|
|
34550
|
+
_ctx.shouldShowPlaceholder ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34551
|
+
key: 3,
|
|
34552
|
+
class: vue.normalizeClass({
|
|
34553
|
+
"el-select-v2__placeholder": true,
|
|
34554
|
+
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34555
|
+
})
|
|
34556
|
+
}, vue.toDisplayString(_ctx.currentPlaceholder), 3)) : vue.createCommentVNode("v-if", true),
|
|
34557
|
+
vue.createElementVNode("span", _hoisted_9$1, [
|
|
34558
|
+
_ctx.iconComponent ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34559
|
+
key: 0,
|
|
34560
|
+
class: vue.normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34561
|
+
}, {
|
|
34562
|
+
default: vue.withCtx(() => [
|
|
34563
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
34564
|
+
]),
|
|
34565
|
+
_: 1
|
|
34566
|
+
}, 8, ["class"])), [
|
|
34567
|
+
[vue.vShow, !_ctx.showClearBtn]
|
|
34568
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
34569
|
+
_ctx.showClearBtn && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34570
|
+
key: 1,
|
|
34571
|
+
class: "el-select-v2__caret el-input__icon",
|
|
34572
|
+
onClick: vue.withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34573
|
+
}, {
|
|
34574
|
+
default: vue.withCtx(() => [
|
|
34575
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
34576
|
+
]),
|
|
34577
|
+
_: 1
|
|
34578
|
+
}, 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
34579
|
+
_ctx.validateState && _ctx.validateIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34580
|
+
key: 2,
|
|
34581
|
+
class: "el-input__icon el-input__validateIcon"
|
|
34582
|
+
}, {
|
|
34583
|
+
default: vue.withCtx(() => [
|
|
34584
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
|
|
34585
|
+
]),
|
|
34586
|
+
_: 1
|
|
34587
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
34588
|
+
])
|
|
34589
|
+
], 2)
|
|
34590
|
+
];
|
|
34591
|
+
}),
|
|
34465
34592
|
content: vue.withCtx(() => [
|
|
34466
34593
|
vue.createVNode(_component_el_select_menu, {
|
|
34467
34594
|
ref: "menuRef",
|
|
@@ -34925,9 +35052,10 @@
|
|
|
34925
35052
|
};
|
|
34926
35053
|
},
|
|
34927
35054
|
render() {
|
|
35055
|
+
var _a;
|
|
34928
35056
|
return vue.h("div", {
|
|
34929
35057
|
class: "el-slider__marks-text",
|
|
34930
|
-
style: this.mark
|
|
35058
|
+
style: (_a = this.mark) == null ? void 0 : _a.style
|
|
34931
35059
|
}, this.label);
|
|
34932
35060
|
}
|
|
34933
35061
|
});
|
|
@@ -35259,6 +35387,7 @@
|
|
|
35259
35387
|
}
|
|
35260
35388
|
};
|
|
35261
35389
|
const setValues = () => {
|
|
35390
|
+
var _a, _b;
|
|
35262
35391
|
if (props.min > props.max) {
|
|
35263
35392
|
throwError("Slider", "min should not be greater than max.");
|
|
35264
35393
|
return;
|
|
@@ -35277,7 +35406,7 @@
|
|
|
35277
35406
|
initData.firstValue = val[0];
|
|
35278
35407
|
initData.secondValue = val[1];
|
|
35279
35408
|
if (valueChanged()) {
|
|
35280
|
-
elFormItem.validate
|
|
35409
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
35281
35410
|
initData.oldValue = val.slice();
|
|
35282
35411
|
}
|
|
35283
35412
|
}
|
|
@@ -35289,7 +35418,7 @@
|
|
|
35289
35418
|
} else {
|
|
35290
35419
|
initData.firstValue = val;
|
|
35291
35420
|
if (valueChanged()) {
|
|
35292
|
-
elFormItem.validate
|
|
35421
|
+
(_b = elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change");
|
|
35293
35422
|
initData.oldValue = val;
|
|
35294
35423
|
}
|
|
35295
35424
|
}
|
|
@@ -35772,7 +35901,8 @@
|
|
|
35772
35901
|
return parent.steps.value.length;
|
|
35773
35902
|
});
|
|
35774
35903
|
const isLast = vue.computed(() => {
|
|
35775
|
-
|
|
35904
|
+
var _a;
|
|
35905
|
+
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === currentInstance.uid;
|
|
35776
35906
|
});
|
|
35777
35907
|
const space = vue.computed(() => {
|
|
35778
35908
|
return isSimple.value ? "" : parent.props.space;
|
|
@@ -36049,12 +36179,13 @@
|
|
|
36049
36179
|
emit(INPUT_EVENT, props.inactiveValue);
|
|
36050
36180
|
}
|
|
36051
36181
|
vue.watch(checked, () => {
|
|
36182
|
+
var _a;
|
|
36052
36183
|
input.value.checked = checked.value;
|
|
36053
36184
|
if (props.activeColor || props.inactiveColor) {
|
|
36054
36185
|
setBackgroundColor();
|
|
36055
36186
|
}
|
|
36056
36187
|
if (props.validateEvent) {
|
|
36057
|
-
formItem
|
|
36188
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
36058
36189
|
}
|
|
36059
36190
|
});
|
|
36060
36191
|
const handleChange = () => {
|
|
@@ -36101,7 +36232,8 @@
|
|
|
36101
36232
|
coreEl.children[0].style.color = newColor;
|
|
36102
36233
|
};
|
|
36103
36234
|
const focus = () => {
|
|
36104
|
-
|
|
36235
|
+
var _a, _b;
|
|
36236
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
36105
36237
|
};
|
|
36106
36238
|
vue.onMounted(() => {
|
|
36107
36239
|
if (props.activeColor || props.inactiveColor || props.borderColor) {
|
|
@@ -37841,7 +37973,7 @@
|
|
|
37841
37973
|
const instance = vue.getCurrentInstance();
|
|
37842
37974
|
const { t } = useLocale();
|
|
37843
37975
|
const ns = useNamespace("table-filter");
|
|
37844
|
-
const parent = instance
|
|
37976
|
+
const parent = instance == null ? void 0 : instance.parent;
|
|
37845
37977
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
37846
37978
|
parent.filterPanels.value[props.column.id] = instance;
|
|
37847
37979
|
}
|
|
@@ -37851,7 +37983,10 @@
|
|
|
37851
37983
|
return props.column && props.column.filters;
|
|
37852
37984
|
});
|
|
37853
37985
|
const filterValue = vue.computed({
|
|
37854
|
-
get: () =>
|
|
37986
|
+
get: () => {
|
|
37987
|
+
var _a;
|
|
37988
|
+
return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
|
|
37989
|
+
},
|
|
37855
37990
|
set: (value) => {
|
|
37856
37991
|
if (filteredValue.value) {
|
|
37857
37992
|
if (typeof value !== "undefined" && value !== null) {
|
|
@@ -37927,7 +38062,8 @@
|
|
|
37927
38062
|
immediate: true
|
|
37928
38063
|
});
|
|
37929
38064
|
const popperPaneRef = vue.computed(() => {
|
|
37930
|
-
|
|
38065
|
+
var _a, _b;
|
|
38066
|
+
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
37931
38067
|
});
|
|
37932
38068
|
return {
|
|
37933
38069
|
tooltipVisible,
|
|
@@ -40518,7 +40654,8 @@
|
|
|
40518
40654
|
const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
|
|
40519
40655
|
const sizeDir = sizeName === "width" ? "x" : "y";
|
|
40520
40656
|
props.tabs.every((tab) => {
|
|
40521
|
-
|
|
40657
|
+
var _a, _b, _c, _d;
|
|
40658
|
+
const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.paneName}`];
|
|
40522
40659
|
if (!$el)
|
|
40523
40660
|
return false;
|
|
40524
40661
|
if (!tab.active) {
|
|
@@ -40526,7 +40663,7 @@
|
|
|
40526
40663
|
}
|
|
40527
40664
|
tabSize = $el[`client${capitalize(sizeName)}`];
|
|
40528
40665
|
const position = sizeDir === "x" ? "left" : "top";
|
|
40529
|
-
offset = $el.getBoundingClientRect()[position] - ($el.parentElement
|
|
40666
|
+
offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
|
|
40530
40667
|
const tabStyles = window.getComputedStyle($el);
|
|
40531
40668
|
if (sizeName === "width") {
|
|
40532
40669
|
if (props.tabs.length > 1) {
|
|
@@ -41226,10 +41363,12 @@
|
|
|
41226
41363
|
return result;
|
|
41227
41364
|
});
|
|
41228
41365
|
const blur = () => {
|
|
41229
|
-
|
|
41366
|
+
var _a, _b;
|
|
41367
|
+
(_b = (_a = select.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
41230
41368
|
};
|
|
41231
41369
|
const focus = () => {
|
|
41232
|
-
|
|
41370
|
+
var _a, _b;
|
|
41371
|
+
(_b = (_a = select.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
41233
41372
|
};
|
|
41234
41373
|
return {
|
|
41235
41374
|
select,
|
|
@@ -41832,7 +41971,8 @@
|
|
|
41832
41971
|
const rightPanelTitle = vue.computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
41833
41972
|
const panelFilterPlaceholder = vue.computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
41834
41973
|
vue.watch(() => props.modelValue, () => {
|
|
41835
|
-
|
|
41974
|
+
var _a;
|
|
41975
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
41836
41976
|
});
|
|
41837
41977
|
const optionRender = vue.computed(() => (option) => {
|
|
41838
41978
|
if (props.renderContent)
|
|
@@ -43523,6 +43663,7 @@
|
|
|
43523
43663
|
class: "el-tree__drop-indicator"
|
|
43524
43664
|
};
|
|
43525
43665
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43666
|
+
var _a;
|
|
43526
43667
|
const _component_el_tree_node = vue.resolveComponent("el-tree-node");
|
|
43527
43668
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
43528
43669
|
ref: "el$",
|
|
@@ -43547,7 +43688,7 @@
|
|
|
43547
43688
|
}, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
|
|
43548
43689
|
}), 128)),
|
|
43549
43690
|
_ctx.isEmpty ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
43550
|
-
vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString(_ctx.emptyText
|
|
43691
|
+
vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
|
|
43551
43692
|
])) : vue.createCommentVNode("v-if", true),
|
|
43552
43693
|
vue.withDirectives(vue.createElementVNode("div", _hoisted_3$4, null, 512), [
|
|
43553
43694
|
[vue.vShow, _ctx.dragState.showDropIndicator]
|
|
@@ -44222,10 +44363,12 @@
|
|
|
44222
44363
|
setup(props, { emit }) {
|
|
44223
44364
|
const tree = vue.inject(ROOT_TREE_INJECTION_KEY);
|
|
44224
44365
|
const indent = vue.computed(() => {
|
|
44225
|
-
|
|
44366
|
+
var _a;
|
|
44367
|
+
return (_a = tree == null ? void 0 : tree.props.indent) != null ? _a : 16;
|
|
44226
44368
|
});
|
|
44227
44369
|
const icon = vue.computed(() => {
|
|
44228
|
-
|
|
44370
|
+
var _a;
|
|
44371
|
+
return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
|
|
44229
44372
|
});
|
|
44230
44373
|
const handleClick = (e) => {
|
|
44231
44374
|
emit("click", props.node, e);
|
|
@@ -44237,11 +44380,12 @@
|
|
|
44237
44380
|
emit("check", props.node, value);
|
|
44238
44381
|
};
|
|
44239
44382
|
const handleContextMenu = (event) => {
|
|
44240
|
-
|
|
44383
|
+
var _a, _b, _c, _d;
|
|
44384
|
+
if ((_c = (_b = (_a = tree == null ? void 0 : tree.instance) == null ? void 0 : _a.vnode) == null ? void 0 : _b.props) == null ? void 0 : _c["onNodeContextmenu"]) {
|
|
44241
44385
|
event.stopPropagation();
|
|
44242
44386
|
event.preventDefault();
|
|
44243
44387
|
}
|
|
44244
|
-
tree
|
|
44388
|
+
tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props.node) == null ? void 0 : _d.data, props.node);
|
|
44245
44389
|
};
|
|
44246
44390
|
return {
|
|
44247
44391
|
indent,
|
|
@@ -44255,6 +44399,7 @@
|
|
|
44255
44399
|
});
|
|
44256
44400
|
const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key"];
|
|
44257
44401
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44402
|
+
var _a, _b, _c;
|
|
44258
44403
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
44259
44404
|
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
44260
44405
|
const _component_el_node_content = vue.resolveComponent("el-node-content");
|
|
@@ -44271,7 +44416,7 @@
|
|
|
44271
44416
|
"aria-expanded": _ctx.expanded,
|
|
44272
44417
|
"aria-disabled": _ctx.disabled,
|
|
44273
44418
|
"aria-checked": _ctx.checked,
|
|
44274
|
-
"data-key": _ctx.node
|
|
44419
|
+
"data-key": (_a = _ctx.node) == null ? void 0 : _a.key,
|
|
44275
44420
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
44276
44421
|
onContextmenu: _cache[2] || (_cache[2] = (...args) => _ctx.handleContextMenu && _ctx.handleContextMenu(...args))
|
|
44277
44422
|
}, [
|
|
@@ -44283,9 +44428,9 @@
|
|
|
44283
44428
|
key: 0,
|
|
44284
44429
|
class: vue.normalizeClass([
|
|
44285
44430
|
{
|
|
44286
|
-
"is-leaf": _ctx.node
|
|
44431
|
+
"is-leaf": (_b = _ctx.node) == null ? void 0 : _b.isLeaf,
|
|
44287
44432
|
"is-hidden": _ctx.hiddenExpandIcon,
|
|
44288
|
-
expanded: !_ctx.node
|
|
44433
|
+
expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
|
|
44289
44434
|
},
|
|
44290
44435
|
"el-tree-node__expand-icon"
|
|
44291
44436
|
]),
|
|
@@ -44388,6 +44533,7 @@
|
|
|
44388
44533
|
};
|
|
44389
44534
|
const _hoisted_2$4 = { class: "el-tree__empty-text" };
|
|
44390
44535
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44536
|
+
var _a;
|
|
44391
44537
|
const _component_el_tree_node = vue.resolveComponent("el-tree-node");
|
|
44392
44538
|
const _component_fixed_size_list = vue.resolveComponent("fixed-size-list");
|
|
44393
44539
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -44424,7 +44570,7 @@
|
|
|
44424
44570
|
]),
|
|
44425
44571
|
_: 1
|
|
44426
44572
|
}, 8, ["data", "total", "height", "item-size", "perf-mode"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
44427
|
-
vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString(_ctx.emptyText
|
|
44573
|
+
vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
|
|
44428
44574
|
]))
|
|
44429
44575
|
], 2);
|
|
44430
44576
|
}
|
|
@@ -44711,9 +44857,10 @@
|
|
|
44711
44857
|
const uploader = vue.inject("uploader", {});
|
|
44712
44858
|
const dragover = vue.ref(false);
|
|
44713
44859
|
function onDrop(e) {
|
|
44860
|
+
var _a;
|
|
44714
44861
|
if (props.disabled || !uploader)
|
|
44715
44862
|
return;
|
|
44716
|
-
const accept = uploader.props
|
|
44863
|
+
const accept = ((_a = uploader.props) == null ? void 0 : _a.accept) || uploader.accept;
|
|
44717
44864
|
dragover.value = false;
|
|
44718
44865
|
if (!accept) {
|
|
44719
44866
|
emit("file", e.dataTransfer.files);
|
|
@@ -46240,6 +46387,7 @@
|
|
|
46240
46387
|
};
|
|
46241
46388
|
},
|
|
46242
46389
|
render() {
|
|
46390
|
+
var _a, _b;
|
|
46243
46391
|
let uploadList;
|
|
46244
46392
|
if (this.showFileList) {
|
|
46245
46393
|
uploadList = vue.h(UploadList, {
|
|
@@ -46287,12 +46435,12 @@
|
|
|
46287
46435
|
};
|
|
46288
46436
|
const trigger = this.$slots.trigger || this.$slots.default;
|
|
46289
46437
|
const uploadComponent = vue.h(Upload$1, uploadData, {
|
|
46290
|
-
default: () => trigger
|
|
46438
|
+
default: () => trigger == null ? void 0 : trigger()
|
|
46291
46439
|
});
|
|
46292
46440
|
return vue.h("div", [
|
|
46293
46441
|
this.listType === "picture-card" ? uploadList : null,
|
|
46294
46442
|
this.$slots.trigger ? [uploadComponent, this.$slots.default()] : uploadComponent,
|
|
46295
|
-
this.$slots.tip
|
|
46443
|
+
(_b = (_a = this.$slots).tip) == null ? void 0 : _b.call(_a),
|
|
46296
46444
|
this.listType !== "picture-card" ? uploadList : null
|
|
46297
46445
|
]);
|
|
46298
46446
|
}
|
|
@@ -46897,7 +47045,7 @@
|
|
|
46897
47045
|
}
|
|
46898
47046
|
}
|
|
46899
47047
|
function clearTimer() {
|
|
46900
|
-
stopTimer
|
|
47048
|
+
stopTimer == null ? void 0 : stopTimer();
|
|
46901
47049
|
}
|
|
46902
47050
|
function close() {
|
|
46903
47051
|
visible.value = false;
|
|
@@ -47225,7 +47373,8 @@
|
|
|
47225
47373
|
if (val) {
|
|
47226
47374
|
if (props.boxType === "alert" || props.boxType === "confirm") {
|
|
47227
47375
|
vue.nextTick().then(() => {
|
|
47228
|
-
|
|
47376
|
+
var _a, _b, _c;
|
|
47377
|
+
(_c = (_b = (_a = confirmRef.value) == null ? void 0 : _a.$el) == null ? void 0 : _b.focus) == null ? void 0 : _c.call(_b);
|
|
47229
47378
|
});
|
|
47230
47379
|
}
|
|
47231
47380
|
state.zIndex = PopupManager.nextZIndex();
|
|
@@ -47274,12 +47423,13 @@
|
|
|
47274
47423
|
}
|
|
47275
47424
|
};
|
|
47276
47425
|
const handleAction = (action) => {
|
|
47426
|
+
var _a;
|
|
47277
47427
|
if (props.boxType === "prompt" && action === "confirm" && !validate()) {
|
|
47278
47428
|
return;
|
|
47279
47429
|
}
|
|
47280
47430
|
state.action = action;
|
|
47281
47431
|
if (state.beforeClose) {
|
|
47282
|
-
state.beforeClose
|
|
47432
|
+
(_a = state.beforeClose) == null ? void 0 : _a.call(state, action, state, doClose);
|
|
47283
47433
|
} else {
|
|
47284
47434
|
doClose();
|
|
47285
47435
|
}
|
|
@@ -47761,7 +47911,7 @@
|
|
|
47761
47911
|
}
|
|
47762
47912
|
}
|
|
47763
47913
|
function clearTimer() {
|
|
47764
|
-
timer
|
|
47914
|
+
timer == null ? void 0 : timer();
|
|
47765
47915
|
}
|
|
47766
47916
|
function close() {
|
|
47767
47917
|
visible.value = false;
|