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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v1.3.0-beta.
|
|
1
|
+
/*! Element Plus v1.3.0-beta.8 */
|
|
2
2
|
|
|
3
3
|
import { getCurrentInstance, computed, warn, getCurrentScope, onScopeDispose, readonly, shallowRef, watchSyncEffect, ref, unref, watch, inject, provide, isRef, onMounted, onUnmounted, h as h$1, Teleport, onBeforeUnmount, onBeforeMount, nextTick, defineComponent, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, mergeProps, resolveComponent, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, Fragment, createVNode, vShow, onUpdated, withModifiers, toRef, cloneVNode, Text, Comment, resolveDirective, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, toRefs, vModelCheckbox, vModelRadio, onBeforeUpdate, vModelText, toHandlers, watchEffect, isVNode, camelize as camelize$1, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, render } from 'vue';
|
|
4
4
|
|
|
@@ -4540,7 +4540,7 @@ if (isClient) {
|
|
|
4540
4540
|
});
|
|
4541
4541
|
}
|
|
4542
4542
|
|
|
4543
|
-
const version$1 = "1.3.0-beta.
|
|
4543
|
+
const version$1 = "1.3.0-beta.8";
|
|
4544
4544
|
|
|
4545
4545
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4546
4546
|
const makeInstaller = (components = []) => {
|
|
@@ -4693,8 +4693,9 @@ const _sfc_main$2L = defineComponent({
|
|
|
4693
4693
|
emit("change", state.fixed);
|
|
4694
4694
|
});
|
|
4695
4695
|
onMounted(() => {
|
|
4696
|
+
var _a;
|
|
4696
4697
|
if (props.target) {
|
|
4697
|
-
target.value = document.querySelector(props.target)
|
|
4698
|
+
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
4698
4699
|
if (!target.value) {
|
|
4699
4700
|
throw new Error(`Target is not existed: ${props.target}`);
|
|
4700
4701
|
}
|
|
@@ -5106,13 +5107,13 @@ const _hoisted_4$n = /* @__PURE__ */ createElementVNode("path", {
|
|
|
5106
5107
|
fill: "currentColor",
|
|
5107
5108
|
d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
|
|
5108
5109
|
}, null, -1);
|
|
5109
|
-
const _hoisted_5$
|
|
5110
|
+
const _hoisted_5$f = [
|
|
5110
5111
|
_hoisted_2$1g,
|
|
5111
5112
|
_hoisted_3$10,
|
|
5112
5113
|
_hoisted_4$n
|
|
5113
5114
|
];
|
|
5114
5115
|
function _sfc_render$2r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5115
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$1E, _hoisted_5$
|
|
5116
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1E, _hoisted_5$f);
|
|
5116
5117
|
}
|
|
5117
5118
|
var clock = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["render", _sfc_render$2r]]);
|
|
5118
5119
|
|
|
@@ -6523,8 +6524,11 @@ const _sfc_main$26 = defineComponent({
|
|
|
6523
6524
|
const passwordVisible = ref(false);
|
|
6524
6525
|
const _textareaCalcStyle = shallowRef(props.inputStyle);
|
|
6525
6526
|
const inputOrTextarea = computed(() => input.value || textarea.value);
|
|
6526
|
-
const needStatusIcon = computed(() =>
|
|
6527
|
-
|
|
6527
|
+
const needStatusIcon = computed(() => {
|
|
6528
|
+
var _a;
|
|
6529
|
+
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
6530
|
+
});
|
|
6531
|
+
const validateState = computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
6528
6532
|
const validateIcon = computed(() => ValidateComponentsMap[validateState.value]);
|
|
6529
6533
|
const containerStyle = computed(() => rawAttrs.style);
|
|
6530
6534
|
const computedTextareaStyle = computed(() => [
|
|
@@ -6594,33 +6598,38 @@ const _sfc_main$26 = defineComponent({
|
|
|
6594
6598
|
};
|
|
6595
6599
|
const focus = () => {
|
|
6596
6600
|
nextTick(() => {
|
|
6597
|
-
|
|
6601
|
+
var _a;
|
|
6602
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
|
|
6598
6603
|
});
|
|
6599
6604
|
};
|
|
6600
6605
|
const blur = () => {
|
|
6601
|
-
|
|
6606
|
+
var _a;
|
|
6607
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
|
|
6602
6608
|
};
|
|
6603
6609
|
const handleFocus = (event) => {
|
|
6604
6610
|
focused.value = true;
|
|
6605
6611
|
emit("focus", event);
|
|
6606
6612
|
};
|
|
6607
6613
|
const handleBlur = (event) => {
|
|
6614
|
+
var _a;
|
|
6608
6615
|
focused.value = false;
|
|
6609
6616
|
emit("blur", event);
|
|
6610
6617
|
if (props.validateEvent) {
|
|
6611
|
-
formItem
|
|
6618
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
6612
6619
|
}
|
|
6613
6620
|
};
|
|
6614
6621
|
const select = () => {
|
|
6615
|
-
|
|
6622
|
+
var _a;
|
|
6623
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.select();
|
|
6616
6624
|
};
|
|
6617
6625
|
const handleCompositionStart = (event) => {
|
|
6618
6626
|
emit("compositionstart", event);
|
|
6619
6627
|
isComposing.value = true;
|
|
6620
6628
|
};
|
|
6621
6629
|
const handleCompositionUpdate = (event) => {
|
|
6630
|
+
var _a;
|
|
6622
6631
|
emit("compositionupdate", event);
|
|
6623
|
-
const text = event.target
|
|
6632
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
6624
6633
|
const lastCharacter = text[text.length - 1] || "";
|
|
6625
6634
|
isComposing.value = !isKorean(lastCharacter);
|
|
6626
6635
|
};
|
|
@@ -6643,9 +6652,10 @@ const _sfc_main$26 = defineComponent({
|
|
|
6643
6652
|
};
|
|
6644
6653
|
const suffixVisible = computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
6645
6654
|
watch(() => props.modelValue, () => {
|
|
6655
|
+
var _a;
|
|
6646
6656
|
nextTick(resizeTextarea);
|
|
6647
6657
|
if (props.validateEvent) {
|
|
6648
|
-
formItem
|
|
6658
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
6649
6659
|
}
|
|
6650
6660
|
});
|
|
6651
6661
|
watch(nativeInputValue, () => setNativeInputValue());
|
|
@@ -6956,10 +6966,11 @@ const _sfc_main$25 = defineComponent({
|
|
|
6956
6966
|
}));
|
|
6957
6967
|
const offsetRatio = computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props.ratio / thumb.value[bar.value.offset]);
|
|
6958
6968
|
const clickThumbHandler = (e) => {
|
|
6969
|
+
var _a;
|
|
6959
6970
|
e.stopPropagation();
|
|
6960
6971
|
if (e.ctrlKey || [1, 2].includes(e.button))
|
|
6961
6972
|
return;
|
|
6962
|
-
window.getSelection()
|
|
6973
|
+
(_a = window.getSelection()) == null ? void 0 : _a.removeAllRanges();
|
|
6963
6974
|
startDrag(e);
|
|
6964
6975
|
const el = e.currentTarget;
|
|
6965
6976
|
if (!el)
|
|
@@ -7174,8 +7185,8 @@ const _sfc_main$24 = defineComponent({
|
|
|
7174
7185
|
};
|
|
7175
7186
|
watch(() => props.noresize, (noresize) => {
|
|
7176
7187
|
if (noresize) {
|
|
7177
|
-
stopResizeObserver
|
|
7178
|
-
stopResizeListener
|
|
7188
|
+
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
7189
|
+
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
7179
7190
|
} else {
|
|
7180
7191
|
({ stop: stopResizeObserver } = useResizeObserver(resize$, update));
|
|
7181
7192
|
stopResizeListener = useEventListener("resize", update);
|
|
@@ -9347,7 +9358,7 @@ const _sfc_main$21 = defineComponent({
|
|
|
9347
9358
|
const handler = props[eventName];
|
|
9348
9359
|
if (handler) {
|
|
9349
9360
|
el.addEventListener(eventName.slice(2).toLowerCase(), handler);
|
|
9350
|
-
prevEl
|
|
9361
|
+
prevEl == null ? void 0 : prevEl.removeEventListener(eventName.slice(2).toLowerCase(), handler);
|
|
9351
9362
|
}
|
|
9352
9363
|
});
|
|
9353
9364
|
}
|
|
@@ -9407,15 +9418,17 @@ const _sfc_main$20 = defineComponent({
|
|
|
9407
9418
|
return createPopper(referenceEl, popperContentEl, options);
|
|
9408
9419
|
};
|
|
9409
9420
|
const updatePopper = () => {
|
|
9410
|
-
|
|
9421
|
+
var _a;
|
|
9422
|
+
(_a = unref(popperInstanceRef)) == null ? void 0 : _a.update();
|
|
9411
9423
|
contentZIndex.value = props.zIndex || PopupManager.nextZIndex();
|
|
9412
9424
|
};
|
|
9413
9425
|
onMounted(() => {
|
|
9414
9426
|
let updateHandle;
|
|
9415
9427
|
watch(() => unwrapMeasurableEl(props.referenceEl) || unref(triggerRef), (val) => {
|
|
9416
|
-
|
|
9428
|
+
var _a;
|
|
9429
|
+
updateHandle == null ? void 0 : updateHandle();
|
|
9417
9430
|
if (val) {
|
|
9418
|
-
popperInstanceRef.value
|
|
9431
|
+
(_a = popperInstanceRef.value) == null ? void 0 : _a.destroy();
|
|
9419
9432
|
const popperContentEl = unref(popperContentRef);
|
|
9420
9433
|
contentRef.value = popperContentEl;
|
|
9421
9434
|
const arrowEl = unref(arrowRef);
|
|
@@ -9582,7 +9595,10 @@ const _sfc_main$1_ = defineComponent({
|
|
|
9582
9595
|
const shouldShow = computed(() => {
|
|
9583
9596
|
return props.disabled ? false : unref(open);
|
|
9584
9597
|
});
|
|
9585
|
-
const contentStyle = computed(() =>
|
|
9598
|
+
const contentStyle = computed(() => {
|
|
9599
|
+
var _a;
|
|
9600
|
+
return (_a = props.style) != null ? _a : {};
|
|
9601
|
+
});
|
|
9586
9602
|
const ariaHidden = computed(() => !unref(open));
|
|
9587
9603
|
useEscapeKeydown(onClose);
|
|
9588
9604
|
const onTransitionLeave = () => {
|
|
@@ -9603,7 +9619,8 @@ const _sfc_main$1_ = defineComponent({
|
|
|
9603
9619
|
}
|
|
9604
9620
|
});
|
|
9605
9621
|
const onBeforeEnter = () => {
|
|
9606
|
-
|
|
9622
|
+
var _a, _b;
|
|
9623
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
9607
9624
|
};
|
|
9608
9625
|
const onAfterShow = () => {
|
|
9609
9626
|
onShow();
|
|
@@ -9612,7 +9629,8 @@ const _sfc_main$1_ = defineComponent({
|
|
|
9612
9629
|
watch(() => unref(open), (val) => {
|
|
9613
9630
|
if (val) {
|
|
9614
9631
|
stopHandle = onClickOutside(computed(() => {
|
|
9615
|
-
|
|
9632
|
+
var _a;
|
|
9633
|
+
return (_a = contentRef.value) == null ? void 0 : _a.popperContentRef;
|
|
9616
9634
|
}), () => {
|
|
9617
9635
|
if (unref(controlled))
|
|
9618
9636
|
return;
|
|
@@ -9622,7 +9640,7 @@ const _sfc_main$1_ = defineComponent({
|
|
|
9622
9640
|
}
|
|
9623
9641
|
});
|
|
9624
9642
|
} else {
|
|
9625
|
-
stopHandle
|
|
9643
|
+
stopHandle == null ? void 0 : stopHandle();
|
|
9626
9644
|
}
|
|
9627
9645
|
}, {
|
|
9628
9646
|
flush: "post"
|
|
@@ -9819,9 +9837,10 @@ const _sfc_main$1Y = defineComponent({
|
|
|
9819
9837
|
const id = useId();
|
|
9820
9838
|
const popperRef = ref(null);
|
|
9821
9839
|
const updatePopper = () => {
|
|
9840
|
+
var _a;
|
|
9822
9841
|
const popperComponent = unref(popperRef);
|
|
9823
9842
|
if (popperComponent) {
|
|
9824
|
-
popperComponent.popperInstanceRef
|
|
9843
|
+
(_a = popperComponent.popperInstanceRef) == null ? void 0 : _a.update();
|
|
9825
9844
|
}
|
|
9826
9845
|
};
|
|
9827
9846
|
const open = ref(false);
|
|
@@ -10015,6 +10034,7 @@ const _sfc_main$1X = defineComponent({
|
|
|
10015
10034
|
"select"
|
|
10016
10035
|
],
|
|
10017
10036
|
setup(props, ctx) {
|
|
10037
|
+
const ns = useNamespace("autocomplete");
|
|
10018
10038
|
const attrs = useAttrs();
|
|
10019
10039
|
const suggestions = ref([]);
|
|
10020
10040
|
const highlightedIndex = ref(-1);
|
|
@@ -10026,7 +10046,7 @@ const _sfc_main$1X = defineComponent({
|
|
|
10026
10046
|
const regionRef = ref(null);
|
|
10027
10047
|
const popper = ref(null);
|
|
10028
10048
|
const id = computed(() => {
|
|
10029
|
-
return
|
|
10049
|
+
return ns.b(String(generateId()));
|
|
10030
10050
|
});
|
|
10031
10051
|
const suggestionVisible = computed(() => {
|
|
10032
10052
|
const isValidData = isArray$9(suggestions.value) && suggestions.value.length > 0;
|
|
@@ -10111,7 +10131,8 @@ const _sfc_main$1X = defineComponent({
|
|
|
10111
10131
|
activated.value = false;
|
|
10112
10132
|
};
|
|
10113
10133
|
const focus = () => {
|
|
10114
|
-
|
|
10134
|
+
var _a;
|
|
10135
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
10115
10136
|
};
|
|
10116
10137
|
const select = (item) => {
|
|
10117
10138
|
ctx.emit("input", item[props.valueKey]);
|
|
@@ -10133,8 +10154,8 @@ const _sfc_main$1X = defineComponent({
|
|
|
10133
10154
|
if (index >= suggestions.value.length) {
|
|
10134
10155
|
index = suggestions.value.length - 1;
|
|
10135
10156
|
}
|
|
10136
|
-
const suggestion = regionRef.value.querySelector(
|
|
10137
|
-
const suggestionList = suggestion.querySelectorAll("
|
|
10157
|
+
const suggestion = regionRef.value.querySelector(`.${ns.be("suggestion", "wrap")}`);
|
|
10158
|
+
const suggestionList = suggestion.querySelectorAll(`.${ns.be("suggestion", "list")} li`);
|
|
10138
10159
|
const highlightItem = suggestionList[index];
|
|
10139
10160
|
const scrollTop = suggestion.scrollTop;
|
|
10140
10161
|
const { offsetTop, scrollHeight } = highlightItem;
|
|
@@ -10172,7 +10193,8 @@ const _sfc_main$1X = defineComponent({
|
|
|
10172
10193
|
focus,
|
|
10173
10194
|
select,
|
|
10174
10195
|
highlight,
|
|
10175
|
-
onSuggestionShow
|
|
10196
|
+
onSuggestionShow,
|
|
10197
|
+
ns
|
|
10176
10198
|
};
|
|
10177
10199
|
}
|
|
10178
10200
|
});
|
|
@@ -10192,32 +10214,29 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10192
10214
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.suggestionVisible = $event),
|
|
10193
10215
|
placement: _ctx.placement,
|
|
10194
10216
|
"fallback-placements": ["bottom-start", "top-start"],
|
|
10195
|
-
"popper-class":
|
|
10217
|
+
"popper-class": `${_ctx.ns.e("popper")} ${_ctx.popperClass}`,
|
|
10196
10218
|
"append-to-body": _ctx.popperAppendToBody,
|
|
10197
10219
|
"gpu-acceleration": false,
|
|
10198
10220
|
pure: "",
|
|
10199
10221
|
"manual-mode": "",
|
|
10200
10222
|
effect: "light",
|
|
10201
10223
|
trigger: "click",
|
|
10202
|
-
transition:
|
|
10224
|
+
transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
|
|
10203
10225
|
persistent: "",
|
|
10204
10226
|
onShow: _ctx.onSuggestionShow
|
|
10205
10227
|
}, {
|
|
10206
10228
|
content: withCtx(() => [
|
|
10207
10229
|
createElementVNode("div", {
|
|
10208
10230
|
ref: "regionRef",
|
|
10209
|
-
class: normalizeClass([
|
|
10210
|
-
"el-autocomplete-suggestion",
|
|
10211
|
-
_ctx.suggestionLoading && "is-loading"
|
|
10212
|
-
]),
|
|
10231
|
+
class: normalizeClass([_ctx.ns.b("suggestion"), _ctx.ns.is("loading", _ctx.suggestionLoading)]),
|
|
10213
10232
|
style: normalizeStyle({ minWidth: _ctx.dropdownWidth, outline: "none" }),
|
|
10214
10233
|
role: "region"
|
|
10215
10234
|
}, [
|
|
10216
10235
|
createVNode(_component_el_scrollbar, {
|
|
10217
10236
|
id: _ctx.id,
|
|
10218
10237
|
tag: "ul",
|
|
10219
|
-
"wrap-class": "
|
|
10220
|
-
"view-class": "
|
|
10238
|
+
"wrap-class": _ctx.ns.be("suggestion", "wrap"),
|
|
10239
|
+
"view-class": _ctx.ns.be("suggestion", "list"),
|
|
10221
10240
|
role: "listbox"
|
|
10222
10241
|
}, {
|
|
10223
10242
|
default: withCtx(() => [
|
|
@@ -10244,12 +10263,12 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10244
10263
|
}), 128))
|
|
10245
10264
|
]),
|
|
10246
10265
|
_: 3
|
|
10247
|
-
}, 8, ["id"])
|
|
10266
|
+
}, 8, ["id", "wrap-class", "view-class"])
|
|
10248
10267
|
], 6)
|
|
10249
10268
|
]),
|
|
10250
10269
|
default: withCtx(() => [
|
|
10251
10270
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
10252
|
-
class: normalizeClass([
|
|
10271
|
+
class: normalizeClass([_ctx.ns.b(), _ctx.$attrs.class]),
|
|
10253
10272
|
style: normalizeStyle(_ctx.$attrs.style),
|
|
10254
10273
|
role: "combobox",
|
|
10255
10274
|
"aria-haspopup": "listbox",
|
|
@@ -10300,7 +10319,7 @@ function _sfc_render$1S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10300
10319
|
])
|
|
10301
10320
|
]),
|
|
10302
10321
|
_: 3
|
|
10303
|
-
}, 8, ["visible", "placement", "popper-class", "append-to-body", "onShow"]);
|
|
10322
|
+
}, 8, ["visible", "placement", "popper-class", "append-to-body", "transition", "onShow"]);
|
|
10304
10323
|
}
|
|
10305
10324
|
var Autocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$1X, [["render", _sfc_render$1S]]);
|
|
10306
10325
|
|
|
@@ -10445,6 +10464,7 @@ const _sfc_main$1V = defineComponent({
|
|
|
10445
10464
|
props: backtopProps,
|
|
10446
10465
|
emits: backtopEmits,
|
|
10447
10466
|
setup(props, { emit }) {
|
|
10467
|
+
const ns = useNamespace("backtop");
|
|
10448
10468
|
const el = shallowRef(document.documentElement);
|
|
10449
10469
|
const container = shallowRef(document);
|
|
10450
10470
|
const visible = ref(false);
|
|
@@ -10478,8 +10498,9 @@ const _sfc_main$1V = defineComponent({
|
|
|
10478
10498
|
};
|
|
10479
10499
|
const handleScrollThrottled = useThrottleFn(handleScroll, 300);
|
|
10480
10500
|
onMounted(() => {
|
|
10501
|
+
var _a;
|
|
10481
10502
|
if (props.target) {
|
|
10482
|
-
el.value = document.querySelector(props.target)
|
|
10503
|
+
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
10483
10504
|
if (!el.value) {
|
|
10484
10505
|
throwError(COMPONENT_NAME$8, `target is not existed: ${props.target}`);
|
|
10485
10506
|
}
|
|
@@ -10491,14 +10512,17 @@ const _sfc_main$1V = defineComponent({
|
|
|
10491
10512
|
visible,
|
|
10492
10513
|
styleBottom,
|
|
10493
10514
|
styleRight,
|
|
10494
|
-
handleClick
|
|
10515
|
+
handleClick,
|
|
10516
|
+
ns
|
|
10495
10517
|
};
|
|
10496
10518
|
}
|
|
10497
10519
|
});
|
|
10498
10520
|
function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10499
10521
|
const _component_caret_top = resolveComponent("caret-top");
|
|
10500
10522
|
const _component_el_icon = resolveComponent("el-icon");
|
|
10501
|
-
return openBlock(), createBlock(Transition, {
|
|
10523
|
+
return openBlock(), createBlock(Transition, {
|
|
10524
|
+
name: `${_ctx.ns.namespace.value}-fade-in`
|
|
10525
|
+
}, {
|
|
10502
10526
|
default: withCtx(() => [
|
|
10503
10527
|
_ctx.visible ? (openBlock(), createElementBlock("div", {
|
|
10504
10528
|
key: 0,
|
|
@@ -10506,21 +10530,23 @@ function _sfc_render$1Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10506
10530
|
right: _ctx.styleRight,
|
|
10507
10531
|
bottom: _ctx.styleBottom
|
|
10508
10532
|
}),
|
|
10509
|
-
class:
|
|
10533
|
+
class: normalizeClass(_ctx.ns.b()),
|
|
10510
10534
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
10511
10535
|
}, [
|
|
10512
10536
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
10513
|
-
createVNode(_component_el_icon, {
|
|
10537
|
+
createVNode(_component_el_icon, {
|
|
10538
|
+
class: normalizeClass(_ctx.ns.e("icon"))
|
|
10539
|
+
}, {
|
|
10514
10540
|
default: withCtx(() => [
|
|
10515
10541
|
createVNode(_component_caret_top)
|
|
10516
10542
|
]),
|
|
10517
10543
|
_: 1
|
|
10518
|
-
})
|
|
10544
|
+
}, 8, ["class"])
|
|
10519
10545
|
])
|
|
10520
|
-
],
|
|
10546
|
+
], 6)) : createCommentVNode("v-if", true)
|
|
10521
10547
|
]),
|
|
10522
10548
|
_: 3
|
|
10523
|
-
});
|
|
10549
|
+
}, 8, ["name"]);
|
|
10524
10550
|
}
|
|
10525
10551
|
var Backtop = /* @__PURE__ */ _export_sfc$1(_sfc_main$1V, [["render", _sfc_render$1Q]]);
|
|
10526
10552
|
|
|
@@ -10668,8 +10694,8 @@ const _sfc_main$1S = defineComponent({
|
|
|
10668
10694
|
return {
|
|
10669
10695
|
ns,
|
|
10670
10696
|
link,
|
|
10671
|
-
separator: parent
|
|
10672
|
-
separatorIcon: parent
|
|
10697
|
+
separator: parent == null ? void 0 : parent.separator,
|
|
10698
|
+
separatorIcon: parent == null ? void 0 : parent.separatorIcon
|
|
10673
10699
|
};
|
|
10674
10700
|
}
|
|
10675
10701
|
});
|
|
@@ -11884,12 +11910,16 @@ const _sfc_main$1R = defineComponent({
|
|
|
11884
11910
|
const buttonGroupContext = inject(buttonGroupContextKey, void 0);
|
|
11885
11911
|
const globalConfig = useGlobalConfig("button");
|
|
11886
11912
|
const ns = useNamespace("button");
|
|
11887
|
-
const autoInsertSpace = computed(() =>
|
|
11913
|
+
const autoInsertSpace = computed(() => {
|
|
11914
|
+
var _a, _b, _c;
|
|
11915
|
+
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
11916
|
+
});
|
|
11888
11917
|
const shouldAddSpace = computed(() => {
|
|
11889
|
-
|
|
11890
|
-
|
|
11918
|
+
var _a;
|
|
11919
|
+
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
11920
|
+
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
11891
11921
|
const slot = defaultSlot[0];
|
|
11892
|
-
if (slot
|
|
11922
|
+
if ((slot == null ? void 0 : slot.type) === Text) {
|
|
11893
11923
|
const text = slot.children;
|
|
11894
11924
|
return /^\p{Unified_Ideograph}{2}$/u.test(text);
|
|
11895
11925
|
}
|
|
@@ -11897,9 +11927,9 @@ const _sfc_main$1R = defineComponent({
|
|
|
11897
11927
|
return false;
|
|
11898
11928
|
});
|
|
11899
11929
|
const { form } = useFormItem();
|
|
11900
|
-
const buttonSize = useSize(computed(() => buttonGroupContext
|
|
11930
|
+
const buttonSize = useSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
11901
11931
|
const buttonDisabled = useDisabled$1();
|
|
11902
|
-
const buttonType = computed(() => props.type || buttonGroupContext
|
|
11932
|
+
const buttonType = computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
11903
11933
|
const typeColor = computed(() => useCssVar(`--el-color-${props.type}`).value);
|
|
11904
11934
|
const buttonStyle = computed(() => {
|
|
11905
11935
|
let styles = {};
|
|
@@ -11938,7 +11968,7 @@ const _sfc_main$1R = defineComponent({
|
|
|
11938
11968
|
});
|
|
11939
11969
|
const handleClick = (evt) => {
|
|
11940
11970
|
if (props.nativeType === "reset") {
|
|
11941
|
-
form
|
|
11971
|
+
form == null ? void 0 : form.resetFields();
|
|
11942
11972
|
}
|
|
11943
11973
|
emit("click", evt);
|
|
11944
11974
|
};
|
|
@@ -12107,12 +12137,6 @@ function isEqual$1(value, other) {
|
|
|
12107
12137
|
|
|
12108
12138
|
var isEqual_1 = isEqual$1;
|
|
12109
12139
|
|
|
12110
|
-
const isValidWidthUnit = (val) => {
|
|
12111
|
-
if (isNumber(val)) {
|
|
12112
|
-
return true;
|
|
12113
|
-
}
|
|
12114
|
-
return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
|
|
12115
|
-
};
|
|
12116
12140
|
const isValidComponentSize = (val) => ["", "large", "default", "small"].includes(val);
|
|
12117
12141
|
const isValidDatePickType = (val) => [
|
|
12118
12142
|
"year",
|
|
@@ -12297,6 +12321,7 @@ const _sfc_main$1P = defineComponent({
|
|
|
12297
12321
|
const pickerActualVisible = ref(false);
|
|
12298
12322
|
const valueOnOpen = ref(null);
|
|
12299
12323
|
watch(pickerVisible, (val) => {
|
|
12324
|
+
var _a;
|
|
12300
12325
|
if (!val) {
|
|
12301
12326
|
userInput.value = null;
|
|
12302
12327
|
nextTick(() => {
|
|
@@ -12304,15 +12329,16 @@ const _sfc_main$1P = defineComponent({
|
|
|
12304
12329
|
});
|
|
12305
12330
|
ctx.emit("blur");
|
|
12306
12331
|
blurInput();
|
|
12307
|
-
props.validateEvent && elFormItem.validate
|
|
12332
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur"));
|
|
12308
12333
|
} else {
|
|
12309
12334
|
valueOnOpen.value = props.modelValue;
|
|
12310
12335
|
}
|
|
12311
12336
|
});
|
|
12312
12337
|
const emitChange = (val, isClear) => {
|
|
12338
|
+
var _a;
|
|
12313
12339
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
12314
12340
|
ctx.emit("change", val);
|
|
12315
|
-
props.validateEvent && elFormItem.validate
|
|
12341
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change"));
|
|
12316
12342
|
}
|
|
12317
12343
|
};
|
|
12318
12344
|
const emitInput = (val) => {
|
|
@@ -12334,10 +12360,10 @@ const _sfc_main$1P = defineComponent({
|
|
|
12334
12360
|
return [];
|
|
12335
12361
|
});
|
|
12336
12362
|
const refStartInput = computed(() => {
|
|
12337
|
-
return refInput
|
|
12363
|
+
return refInput == null ? void 0 : refInput.value[0];
|
|
12338
12364
|
});
|
|
12339
12365
|
const refEndInput = computed(() => {
|
|
12340
|
-
return refInput
|
|
12366
|
+
return refInput == null ? void 0 : refInput.value[1];
|
|
12341
12367
|
});
|
|
12342
12368
|
const setSelectionRange = (start, end, pos) => {
|
|
12343
12369
|
const _inputs = refInput.value;
|
|
@@ -12378,7 +12404,8 @@ const _sfc_main$1P = defineComponent({
|
|
|
12378
12404
|
ctx.emit("focus", e);
|
|
12379
12405
|
};
|
|
12380
12406
|
const handleBlur = () => {
|
|
12381
|
-
|
|
12407
|
+
var _a;
|
|
12408
|
+
(_a = refPopper.value) == null ? void 0 : _a.onClose();
|
|
12382
12409
|
blurInput();
|
|
12383
12410
|
};
|
|
12384
12411
|
const pickerDisabled = computed(() => {
|
|
@@ -12465,14 +12492,19 @@ const _sfc_main$1P = defineComponent({
|
|
|
12465
12492
|
});
|
|
12466
12493
|
const pickerSize = useSize();
|
|
12467
12494
|
const popperPaneRef = computed(() => {
|
|
12468
|
-
|
|
12495
|
+
var _a, _b;
|
|
12496
|
+
return (_b = (_a = refPopper.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
12497
|
+
});
|
|
12498
|
+
const popperEl = computed(() => {
|
|
12499
|
+
var _a, _b;
|
|
12500
|
+
return (_b = (_a = unref(refPopper)) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
12469
12501
|
});
|
|
12470
|
-
const popperEl = computed(() => unref(refPopper)?.popperRef?.contentRef);
|
|
12471
12502
|
const actualInputRef = computed(() => {
|
|
12503
|
+
var _a;
|
|
12472
12504
|
if (unref(isRangeInput)) {
|
|
12473
12505
|
return unref(inputRef);
|
|
12474
12506
|
}
|
|
12475
|
-
return unref(inputRef)
|
|
12507
|
+
return (_a = unref(inputRef)) == null ? void 0 : _a.$el;
|
|
12476
12508
|
});
|
|
12477
12509
|
onClickOutside(actualInputRef, (e) => {
|
|
12478
12510
|
const unrefedPopperEl = unref(popperEl);
|
|
@@ -14244,8 +14276,8 @@ const _hoisted_1$14 = {
|
|
|
14244
14276
|
const _hoisted_2$N = { class: "el-time-range-picker__content" };
|
|
14245
14277
|
const _hoisted_3$A = { class: "el-time-range-picker__cell" };
|
|
14246
14278
|
const _hoisted_4$m = { class: "el-time-range-picker__header" };
|
|
14247
|
-
const _hoisted_5$
|
|
14248
|
-
const _hoisted_6$
|
|
14279
|
+
const _hoisted_5$e = { class: "el-time-range-picker__cell" };
|
|
14280
|
+
const _hoisted_6$c = { class: "el-time-range-picker__header" };
|
|
14249
14281
|
const _hoisted_7$9 = { class: "el-time-panel__footer" };
|
|
14250
14282
|
const _hoisted_8$8 = ["disabled"];
|
|
14251
14283
|
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -14273,8 +14305,8 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14273
14305
|
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onChange", "onSetOption", "onSelectRange"])
|
|
14274
14306
|
], 2)
|
|
14275
14307
|
]),
|
|
14276
|
-
createElementVNode("div", _hoisted_5$
|
|
14277
|
-
createElementVNode("div", _hoisted_6$
|
|
14308
|
+
createElementVNode("div", _hoisted_5$e, [
|
|
14309
|
+
createElementVNode("div", _hoisted_6$c, toDisplayString(_ctx.t("el.datepicker.endTime")), 1),
|
|
14278
14310
|
createElementVNode("div", {
|
|
14279
14311
|
class: normalizeClass([{ "has-seconds": _ctx.showSeconds, "is-arrow": _ctx.arrowControl }, "el-time-range-picker__body el-time-panel__content"])
|
|
14280
14312
|
}, [
|
|
@@ -15323,7 +15355,8 @@ const _sfc_main$1H = defineComponent({
|
|
|
15323
15355
|
return index;
|
|
15324
15356
|
}
|
|
15325
15357
|
function calcCardTranslate(index, activeIndex) {
|
|
15326
|
-
|
|
15358
|
+
var _a;
|
|
15359
|
+
const parentWidth = ((_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
15327
15360
|
if (data.inStage) {
|
|
15328
15361
|
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
15329
15362
|
} else if (index < activeIndex) {
|
|
@@ -15333,7 +15366,8 @@ const _sfc_main$1H = defineComponent({
|
|
|
15333
15366
|
}
|
|
15334
15367
|
}
|
|
15335
15368
|
function calcTranslate(index, activeIndex, isVertical) {
|
|
15336
|
-
|
|
15369
|
+
var _a, _b;
|
|
15370
|
+
const distance = (isVertical ? (_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetHeight : (_b = injectCarouselScope.root.value) == null ? void 0 : _b.offsetWidth) || 0;
|
|
15337
15371
|
return distance * (index - activeIndex);
|
|
15338
15372
|
}
|
|
15339
15373
|
const translateItem = (index, activeIndex, oldIndex) => {
|
|
@@ -15649,45 +15683,48 @@ const _sfc_main$1G = defineComponent({
|
|
|
15649
15683
|
},
|
|
15650
15684
|
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
15651
15685
|
setup(props) {
|
|
15652
|
-
|
|
15686
|
+
const ns = useNamespace("checkbox");
|
|
15687
|
+
return {
|
|
15688
|
+
ns,
|
|
15689
|
+
...useCheckbox(props)
|
|
15690
|
+
};
|
|
15653
15691
|
}
|
|
15654
15692
|
});
|
|
15655
15693
|
const _hoisted_1$10 = ["id", "aria-controls"];
|
|
15656
15694
|
const _hoisted_2$K = ["tabindex", "role", "aria-checked"];
|
|
15657
|
-
const _hoisted_3$y =
|
|
15658
|
-
const _hoisted_4$l = ["aria-hidden", "
|
|
15659
|
-
const _hoisted_5$e = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15660
|
-
const _hoisted_6$c = {
|
|
15661
|
-
key: 0,
|
|
15662
|
-
class: "el-checkbox__label"
|
|
15663
|
-
};
|
|
15695
|
+
const _hoisted_3$y = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
15696
|
+
const _hoisted_4$l = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15664
15697
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15665
15698
|
return openBlock(), createElementBlock("label", {
|
|
15666
15699
|
id: _ctx.id,
|
|
15667
|
-
class: normalizeClass([
|
|
15668
|
-
_ctx.
|
|
15669
|
-
|
|
15670
|
-
|
|
15671
|
-
|
|
15672
|
-
|
|
15700
|
+
class: normalizeClass([
|
|
15701
|
+
_ctx.ns.b(),
|
|
15702
|
+
_ctx.ns.m(_ctx.checkboxSize),
|
|
15703
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15704
|
+
_ctx.ns.is("bordered", _ctx.border),
|
|
15705
|
+
_ctx.ns.is("checked", _ctx.isChecked)
|
|
15706
|
+
]),
|
|
15673
15707
|
"aria-controls": _ctx.indeterminate ? _ctx.controls : null
|
|
15674
15708
|
}, [
|
|
15675
15709
|
createElementVNode("span", {
|
|
15676
|
-
class: normalizeClass([
|
|
15677
|
-
"
|
|
15678
|
-
|
|
15679
|
-
|
|
15680
|
-
|
|
15681
|
-
|
|
15710
|
+
class: normalizeClass([
|
|
15711
|
+
_ctx.ns.e("input"),
|
|
15712
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15713
|
+
_ctx.ns.is("checked", _ctx.isChecked),
|
|
15714
|
+
_ctx.ns.is("indeterminate", _ctx.indeterminate),
|
|
15715
|
+
_ctx.ns.is("focus", _ctx.focus)
|
|
15716
|
+
]),
|
|
15682
15717
|
tabindex: _ctx.indeterminate ? 0 : void 0,
|
|
15683
15718
|
role: _ctx.indeterminate ? "checkbox" : void 0,
|
|
15684
15719
|
"aria-checked": _ctx.indeterminate ? "mixed" : false
|
|
15685
15720
|
}, [
|
|
15686
|
-
|
|
15721
|
+
createElementVNode("span", {
|
|
15722
|
+
class: normalizeClass(_ctx.ns.e("inner"))
|
|
15723
|
+
}, null, 2),
|
|
15687
15724
|
_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
15688
15725
|
key: 0,
|
|
15689
15726
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15690
|
-
class: "
|
|
15727
|
+
class: normalizeClass(_ctx.ns.e("original")),
|
|
15691
15728
|
type: "checkbox",
|
|
15692
15729
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15693
15730
|
name: _ctx.name,
|
|
@@ -15698,12 +15735,12 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15698
15735
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15699
15736
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15700
15737
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15701
|
-
}, null,
|
|
15738
|
+
}, null, 42, _hoisted_3$y)), [
|
|
15702
15739
|
[vModelCheckbox, _ctx.model]
|
|
15703
15740
|
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
15704
15741
|
key: 1,
|
|
15705
15742
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15706
|
-
class: "
|
|
15743
|
+
class: normalizeClass(_ctx.ns.e("original")),
|
|
15707
15744
|
type: "checkbox",
|
|
15708
15745
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15709
15746
|
disabled: _ctx.isDisabled,
|
|
@@ -15713,16 +15750,19 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15713
15750
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15714
15751
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15715
15752
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15716
|
-
}, null,
|
|
15753
|
+
}, null, 42, _hoisted_4$l)), [
|
|
15717
15754
|
[vModelCheckbox, _ctx.model]
|
|
15718
15755
|
])
|
|
15719
15756
|
], 10, _hoisted_2$K),
|
|
15720
|
-
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span",
|
|
15757
|
+
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
15758
|
+
key: 0,
|
|
15759
|
+
class: normalizeClass(_ctx.ns.e("label"))
|
|
15760
|
+
}, [
|
|
15721
15761
|
renderSlot(_ctx.$slots, "default"),
|
|
15722
15762
|
!_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15723
15763
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
15724
15764
|
], 2112)) : createCommentVNode("v-if", true)
|
|
15725
|
-
])) : createCommentVNode("v-if", true)
|
|
15765
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
15726
15766
|
], 10, _hoisted_1$10);
|
|
15727
15767
|
}
|
|
15728
15768
|
var Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1B]]);
|
|
@@ -15734,12 +15774,14 @@ const _sfc_main$1F = defineComponent({
|
|
|
15734
15774
|
setup(props) {
|
|
15735
15775
|
const { focus, isChecked, isDisabled, size, model, handleChange } = useCheckbox(props);
|
|
15736
15776
|
const { checkboxGroup } = useCheckboxGroup();
|
|
15777
|
+
const ns = useNamespace("checkbox");
|
|
15737
15778
|
const activeStyle = computed(() => {
|
|
15738
|
-
|
|
15779
|
+
var _a, _b, _c, _d;
|
|
15780
|
+
const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
|
|
15739
15781
|
return {
|
|
15740
15782
|
backgroundColor: fillValue,
|
|
15741
15783
|
borderColor: fillValue,
|
|
15742
|
-
color: checkboxGroup
|
|
15784
|
+
color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
|
|
15743
15785
|
boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : null
|
|
15744
15786
|
};
|
|
15745
15787
|
});
|
|
@@ -15750,7 +15792,8 @@ const _sfc_main$1F = defineComponent({
|
|
|
15750
15792
|
model,
|
|
15751
15793
|
handleChange,
|
|
15752
15794
|
activeStyle,
|
|
15753
|
-
size
|
|
15795
|
+
size,
|
|
15796
|
+
ns
|
|
15754
15797
|
};
|
|
15755
15798
|
}
|
|
15756
15799
|
});
|
|
@@ -15759,12 +15802,13 @@ const _hoisted_2$J = ["name", "tabindex", "disabled", "true-value", "false-value
|
|
|
15759
15802
|
const _hoisted_3$x = ["name", "tabindex", "disabled", "value"];
|
|
15760
15803
|
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15761
15804
|
return openBlock(), createElementBlock("label", {
|
|
15762
|
-
class: normalizeClass([
|
|
15763
|
-
_ctx.
|
|
15764
|
-
|
|
15765
|
-
|
|
15766
|
-
|
|
15767
|
-
|
|
15805
|
+
class: normalizeClass([
|
|
15806
|
+
_ctx.ns.b("button"),
|
|
15807
|
+
_ctx.ns.bm("button", _ctx.size),
|
|
15808
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15809
|
+
_ctx.ns.is("checked", _ctx.isChecked),
|
|
15810
|
+
_ctx.ns.is("focus", _ctx.focus)
|
|
15811
|
+
]),
|
|
15768
15812
|
role: "checkbox",
|
|
15769
15813
|
"aria-checked": _ctx.isChecked,
|
|
15770
15814
|
"aria-disabled": _ctx.isDisabled
|
|
@@ -15772,7 +15816,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15772
15816
|
_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
15773
15817
|
key: 0,
|
|
15774
15818
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15775
|
-
class: "
|
|
15819
|
+
class: normalizeClass(_ctx.ns.be("button", "original")),
|
|
15776
15820
|
type: "checkbox",
|
|
15777
15821
|
name: _ctx.name,
|
|
15778
15822
|
tabindex: _ctx.tabindex,
|
|
@@ -15782,12 +15826,12 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15782
15826
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15783
15827
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15784
15828
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15785
|
-
}, null,
|
|
15829
|
+
}, null, 42, _hoisted_2$J)), [
|
|
15786
15830
|
[vModelCheckbox, _ctx.model]
|
|
15787
15831
|
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
15788
15832
|
key: 1,
|
|
15789
15833
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15790
|
-
class: "
|
|
15834
|
+
class: normalizeClass(_ctx.ns.be("button", "original")),
|
|
15791
15835
|
type: "checkbox",
|
|
15792
15836
|
name: _ctx.name,
|
|
15793
15837
|
tabindex: _ctx.tabindex,
|
|
@@ -15796,18 +15840,18 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15796
15840
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15797
15841
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15798
15842
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15799
|
-
}, null,
|
|
15843
|
+
}, null, 42, _hoisted_3$x)), [
|
|
15800
15844
|
[vModelCheckbox, _ctx.model]
|
|
15801
15845
|
]),
|
|
15802
15846
|
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
15803
15847
|
key: 2,
|
|
15804
|
-
class: "
|
|
15848
|
+
class: normalizeClass(_ctx.ns.be("button", "inner")),
|
|
15805
15849
|
style: normalizeStyle(_ctx.isChecked ? _ctx.activeStyle : null)
|
|
15806
15850
|
}, [
|
|
15807
15851
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15808
15852
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
15809
15853
|
])
|
|
15810
|
-
],
|
|
15854
|
+
], 6)) : createCommentVNode("v-if", true)
|
|
15811
15855
|
], 10, _hoisted_1$$);
|
|
15812
15856
|
}
|
|
15813
15857
|
var CheckboxButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1F, [["render", _sfc_render$1A]]);
|
|
@@ -15849,6 +15893,7 @@ const _sfc_main$1E = defineComponent({
|
|
|
15849
15893
|
setup(props, { emit, slots }) {
|
|
15850
15894
|
const { elFormItem } = useCheckboxGroup();
|
|
15851
15895
|
const checkboxGroupSize = useSize();
|
|
15896
|
+
const ns = useNamespace("checkbox");
|
|
15852
15897
|
const changeEvent = (value) => {
|
|
15853
15898
|
emit(UPDATE_MODEL_EVENT, value);
|
|
15854
15899
|
nextTick(() => {
|
|
@@ -15871,11 +15916,12 @@ const _sfc_main$1E = defineComponent({
|
|
|
15871
15916
|
changeEvent
|
|
15872
15917
|
});
|
|
15873
15918
|
watch(() => props.modelValue, () => {
|
|
15874
|
-
|
|
15919
|
+
var _a;
|
|
15920
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
15875
15921
|
});
|
|
15876
15922
|
return () => {
|
|
15877
15923
|
return h$1(props.tag, {
|
|
15878
|
-
class: "
|
|
15924
|
+
class: ns.b("group"),
|
|
15879
15925
|
role: "group",
|
|
15880
15926
|
"aria-label": "checkbox-group"
|
|
15881
15927
|
}, [renderSlot(slots, "default")]);
|
|
@@ -16050,10 +16096,10 @@ const _sfc_main$1C = defineComponent({
|
|
|
16050
16096
|
} = useRadio(props, emit);
|
|
16051
16097
|
const activeStyle = computed(() => {
|
|
16052
16098
|
return {
|
|
16053
|
-
backgroundColor: radioGroup
|
|
16054
|
-
borderColor: radioGroup
|
|
16055
|
-
boxShadow: radioGroup
|
|
16056
|
-
color: radioGroup
|
|
16099
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
16100
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
16101
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
16102
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
16057
16103
|
};
|
|
16058
16104
|
});
|
|
16059
16105
|
return {
|
|
@@ -16183,7 +16229,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
16183
16229
|
...toRefs(props),
|
|
16184
16230
|
changeEvent
|
|
16185
16231
|
}));
|
|
16186
|
-
watch(() => props.modelValue, () => formItem
|
|
16232
|
+
watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
|
|
16187
16233
|
return {
|
|
16188
16234
|
radioGroupRef,
|
|
16189
16235
|
handleKeydown
|
|
@@ -16250,15 +16296,19 @@ const _sfc_main$1A = defineComponent({
|
|
|
16250
16296
|
const isHoverMenu = computed(() => panel.isHoverMenu);
|
|
16251
16297
|
const multiple = computed(() => panel.config.multiple);
|
|
16252
16298
|
const checkStrictly = computed(() => panel.config.checkStrictly);
|
|
16253
|
-
const checkedNodeId = computed(() =>
|
|
16299
|
+
const checkedNodeId = computed(() => {
|
|
16300
|
+
var _a;
|
|
16301
|
+
return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
|
|
16302
|
+
});
|
|
16254
16303
|
const isDisabled = computed(() => props.node.isDisabled);
|
|
16255
16304
|
const isLeaf = computed(() => props.node.isLeaf);
|
|
16256
16305
|
const expandable = computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
16257
16306
|
const inExpandingPath = computed(() => isInPath(panel.expandingNode));
|
|
16258
16307
|
const inCheckedPath = computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
16259
16308
|
const isInPath = (node) => {
|
|
16309
|
+
var _a;
|
|
16260
16310
|
const { level, uid } = props.node;
|
|
16261
|
-
return node
|
|
16311
|
+
return ((_a = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a.uid) === uid;
|
|
16262
16312
|
};
|
|
16263
16313
|
const doExpand = () => {
|
|
16264
16314
|
if (inExpandingPath.value)
|
|
@@ -16526,28 +16576,31 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16526
16576
|
onMousemove: _ctx.handleMouseMove,
|
|
16527
16577
|
onMouseleave: _ctx.clearHoverZone
|
|
16528
16578
|
}, {
|
|
16529
|
-
default: withCtx(() =>
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16579
|
+
default: withCtx(() => {
|
|
16580
|
+
var _a;
|
|
16581
|
+
return [
|
|
16582
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.nodes, (node) => {
|
|
16583
|
+
return openBlock(), createBlock(_component_el_cascader_node, {
|
|
16584
|
+
key: node.uid,
|
|
16585
|
+
node,
|
|
16586
|
+
"menu-id": _ctx.menuId,
|
|
16587
|
+
onExpand: _ctx.handleExpand
|
|
16588
|
+
}, null, 8, ["node", "menu-id", "onExpand"]);
|
|
16589
|
+
}), 128)),
|
|
16590
|
+
_ctx.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$X, [
|
|
16591
|
+
createVNode(_component_el_icon, {
|
|
16592
|
+
size: "14",
|
|
16593
|
+
class: "is-loading"
|
|
16594
|
+
}, {
|
|
16595
|
+
default: withCtx(() => [
|
|
16596
|
+
createVNode(_component_loading)
|
|
16597
|
+
]),
|
|
16598
|
+
_: 1
|
|
16599
|
+
}),
|
|
16600
|
+
createTextVNode(" " + toDisplayString(_ctx.t("el.cascader.loading")), 1)
|
|
16601
|
+
])) : _ctx.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_2$F, toDisplayString(_ctx.t("el.cascader.noData")), 1)) : ((_a = _ctx.panel) == null ? void 0 : _a.isHoverMenu) ? (openBlock(), createElementBlock("svg", _hoisted_3$v, null, 512)) : createCommentVNode("v-if", true)
|
|
16602
|
+
];
|
|
16603
|
+
}),
|
|
16551
16604
|
_: 1
|
|
16552
16605
|
}, 8, ["view-class", "onMousemove", "onMouseleave"]);
|
|
16553
16606
|
}
|
|
@@ -16839,7 +16892,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16839
16892
|
const resolve = (dataList) => {
|
|
16840
16893
|
const _node = node;
|
|
16841
16894
|
const parent = _node.root ? null : _node;
|
|
16842
|
-
dataList && store
|
|
16895
|
+
dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
|
|
16843
16896
|
_node.loading = false;
|
|
16844
16897
|
_node.loaded = true;
|
|
16845
16898
|
_node.childrenData = _node.childrenData || [];
|
|
@@ -16848,6 +16901,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16848
16901
|
cfg.lazyLoad(node, resolve);
|
|
16849
16902
|
};
|
|
16850
16903
|
const expandNode = (node, silent) => {
|
|
16904
|
+
var _a;
|
|
16851
16905
|
const { level } = node;
|
|
16852
16906
|
const newMenus = menus.value.slice(0, level);
|
|
16853
16907
|
let newExpandingNode;
|
|
@@ -16857,17 +16911,17 @@ const _sfc_main$1y = defineComponent({
|
|
|
16857
16911
|
newExpandingNode = node;
|
|
16858
16912
|
newMenus.push(node.children);
|
|
16859
16913
|
}
|
|
16860
|
-
if (expandingNode.value
|
|
16914
|
+
if (((_a = expandingNode.value) == null ? void 0 : _a.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
|
|
16861
16915
|
expandingNode.value = node;
|
|
16862
16916
|
menus.value = newMenus;
|
|
16863
|
-
!silent && emit("expand-change", node
|
|
16917
|
+
!silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
|
|
16864
16918
|
}
|
|
16865
16919
|
};
|
|
16866
16920
|
const handleCheckChange = (node, checked, emitClose = true) => {
|
|
16867
16921
|
const { checkStrictly, multiple } = config.value;
|
|
16868
16922
|
const oldNode = checkedNodes.value[0];
|
|
16869
16923
|
manualChecked = true;
|
|
16870
|
-
!multiple && oldNode
|
|
16924
|
+
!multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
|
|
16871
16925
|
node.doCheck(checked);
|
|
16872
16926
|
calculateCheckedValue();
|
|
16873
16927
|
emitClose && !multiple && !checkStrictly && emit("close");
|
|
@@ -16881,23 +16935,25 @@ const _sfc_main$1y = defineComponent({
|
|
|
16881
16935
|
node && expandNode(node);
|
|
16882
16936
|
};
|
|
16883
16937
|
const getFlattedNodes = (leafOnly) => {
|
|
16884
|
-
return store
|
|
16938
|
+
return store == null ? void 0 : store.getFlattedNodes(leafOnly);
|
|
16885
16939
|
};
|
|
16886
16940
|
const getCheckedNodes = (leafOnly) => {
|
|
16887
|
-
|
|
16941
|
+
var _a;
|
|
16942
|
+
return (_a = getFlattedNodes(leafOnly)) == null ? void 0 : _a.filter((node) => node.checked !== false);
|
|
16888
16943
|
};
|
|
16889
16944
|
const clearCheckedNodes = () => {
|
|
16890
16945
|
checkedNodes.value.forEach((node) => node.doCheck(false));
|
|
16891
16946
|
calculateCheckedValue();
|
|
16892
16947
|
};
|
|
16893
16948
|
const calculateCheckedValue = () => {
|
|
16949
|
+
var _a;
|
|
16894
16950
|
const { checkStrictly, multiple } = config.value;
|
|
16895
16951
|
const oldNodes = checkedNodes.value;
|
|
16896
16952
|
const newNodes = getCheckedNodes(!checkStrictly);
|
|
16897
16953
|
const nodes = sortByOriginalOrder(oldNodes, newNodes);
|
|
16898
16954
|
const values = nodes.map((node) => node.valueByOption);
|
|
16899
16955
|
checkedNodes.value = nodes;
|
|
16900
|
-
checkedValue.value = multiple ? values : values[0]
|
|
16956
|
+
checkedValue.value = multiple ? values : (_a = values[0]) != null ? _a : null;
|
|
16901
16957
|
};
|
|
16902
16958
|
const syncCheckedValue = (loaded = false, forced = false) => {
|
|
16903
16959
|
const { modelValue } = props;
|
|
@@ -16907,7 +16963,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16907
16963
|
return;
|
|
16908
16964
|
if (lazy && !loaded) {
|
|
16909
16965
|
const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
|
|
16910
|
-
const nodes = values.map((val) => store
|
|
16966
|
+
const nodes = values.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
|
|
16911
16967
|
if (nodes.length) {
|
|
16912
16968
|
nodes.forEach((node) => {
|
|
16913
16969
|
lazyLoad(node, () => syncCheckedValue(false, forced));
|
|
@@ -16917,7 +16973,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16917
16973
|
}
|
|
16918
16974
|
} else {
|
|
16919
16975
|
const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
|
|
16920
|
-
const nodes = deduplicate(values.map((val) => store
|
|
16976
|
+
const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
|
|
16921
16977
|
syncMenuState(nodes, false);
|
|
16922
16978
|
checkedValue.value = modelValue;
|
|
16923
16979
|
}
|
|
@@ -16926,7 +16982,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16926
16982
|
const { checkStrictly } = config.value;
|
|
16927
16983
|
const oldNodes = checkedNodes.value;
|
|
16928
16984
|
const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
|
|
16929
|
-
const oldExpandingNode = store
|
|
16985
|
+
const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
|
|
16930
16986
|
const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
|
|
16931
16987
|
if (newExpandingNode) {
|
|
16932
16988
|
newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
|
|
@@ -16942,7 +16998,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16942
16998
|
if (!isClient)
|
|
16943
16999
|
return;
|
|
16944
17000
|
menuList.value.forEach((menu) => {
|
|
16945
|
-
const menuElement = menu
|
|
17001
|
+
const menuElement = menu == null ? void 0 : menu.$el;
|
|
16946
17002
|
if (menuElement) {
|
|
16947
17003
|
const container = menuElement.querySelector(".el-scrollbar__wrap");
|
|
16948
17004
|
const activeNode = menuElement.querySelector(".el-cascader-node.is-active") || menuElement.querySelector(".el-cascader-node.in-active-path");
|
|
@@ -16964,14 +17020,14 @@ const _sfc_main$1y = defineComponent({
|
|
|
16964
17020
|
case EVENT_CODE.left: {
|
|
16965
17021
|
e.preventDefault();
|
|
16966
17022
|
const preMenu = menuList.value[getMenuIndex(target) - 1];
|
|
16967
|
-
const expandedNode = preMenu
|
|
17023
|
+
const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
|
|
16968
17024
|
focusNode(expandedNode);
|
|
16969
17025
|
break;
|
|
16970
17026
|
}
|
|
16971
17027
|
case EVENT_CODE.right: {
|
|
16972
17028
|
e.preventDefault();
|
|
16973
17029
|
const nextMenu = menuList.value[getMenuIndex(target) + 1];
|
|
16974
|
-
const firstNode = nextMenu
|
|
17030
|
+
const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
16975
17031
|
focusNode(firstNode);
|
|
16976
17032
|
break;
|
|
16977
17033
|
}
|
|
@@ -17281,7 +17337,10 @@ const _sfc_main$1w = defineComponent({
|
|
|
17281
17337
|
const multiple = computed(() => !!props.props.multiple);
|
|
17282
17338
|
const readonly = computed(() => !props.filterable || multiple.value);
|
|
17283
17339
|
const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
|
|
17284
|
-
const checkedNodes = computed(() =>
|
|
17340
|
+
const checkedNodes = computed(() => {
|
|
17341
|
+
var _a;
|
|
17342
|
+
return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
|
|
17343
|
+
});
|
|
17285
17344
|
const clearBtnVisible = computed(() => {
|
|
17286
17345
|
if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
|
|
17287
17346
|
return false;
|
|
@@ -17297,24 +17356,27 @@ const _sfc_main$1w = defineComponent({
|
|
|
17297
17356
|
return props.modelValue;
|
|
17298
17357
|
},
|
|
17299
17358
|
set(val) {
|
|
17359
|
+
var _a;
|
|
17300
17360
|
emit(UPDATE_MODEL_EVENT, val);
|
|
17301
17361
|
emit(CHANGE_EVENT, val);
|
|
17302
|
-
elFormItem.validate
|
|
17362
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
17303
17363
|
}
|
|
17304
17364
|
});
|
|
17305
17365
|
const popperPaneRef = computed(() => {
|
|
17306
|
-
|
|
17366
|
+
var _a, _b;
|
|
17367
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
17307
17368
|
});
|
|
17308
17369
|
const togglePopperVisible = (visible) => {
|
|
17370
|
+
var _a, _b, _c;
|
|
17309
17371
|
if (isDisabled.value)
|
|
17310
17372
|
return;
|
|
17311
|
-
visible = visible
|
|
17373
|
+
visible = visible != null ? visible : !popperVisible.value;
|
|
17312
17374
|
if (visible !== popperVisible.value) {
|
|
17313
17375
|
popperVisible.value = visible;
|
|
17314
|
-
input.value
|
|
17376
|
+
(_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
|
|
17315
17377
|
if (visible) {
|
|
17316
17378
|
updatePopperPosition();
|
|
17317
|
-
nextTick(panel.value
|
|
17379
|
+
nextTick((_c = panel.value) == null ? void 0 : _c.scrollToExpandingNode);
|
|
17318
17380
|
} else if (props.filterable) {
|
|
17319
17381
|
const { value } = presentText;
|
|
17320
17382
|
inputValue.value = value;
|
|
@@ -17325,7 +17387,8 @@ const _sfc_main$1w = defineComponent({
|
|
|
17325
17387
|
};
|
|
17326
17388
|
const updatePopperPosition = () => {
|
|
17327
17389
|
nextTick(() => {
|
|
17328
|
-
|
|
17390
|
+
var _a;
|
|
17391
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
|
|
17329
17392
|
});
|
|
17330
17393
|
};
|
|
17331
17394
|
const hideSuggestionPanel = () => {
|
|
@@ -17342,9 +17405,10 @@ const _sfc_main$1w = defineComponent({
|
|
|
17342
17405
|
};
|
|
17343
17406
|
};
|
|
17344
17407
|
const deleteTag = (tag) => {
|
|
17408
|
+
var _a;
|
|
17345
17409
|
const node = tag.node;
|
|
17346
17410
|
node.doCheck(false);
|
|
17347
|
-
panel.value
|
|
17411
|
+
(_a = panel.value) == null ? void 0 : _a.calculateCheckedValue();
|
|
17348
17412
|
emit("remove-tag", node.valueByOption);
|
|
17349
17413
|
};
|
|
17350
17414
|
const calculatePresentTags = () => {
|
|
@@ -17371,8 +17435,9 @@ const _sfc_main$1w = defineComponent({
|
|
|
17371
17435
|
presentTags.value = tags;
|
|
17372
17436
|
};
|
|
17373
17437
|
const calculateSuggestions = () => {
|
|
17438
|
+
var _a, _b;
|
|
17374
17439
|
const { filterMethod, showAllLevels, separator } = props;
|
|
17375
|
-
const res = panel.value
|
|
17440
|
+
const res = (_b = (_a = panel.value) == null ? void 0 : _a.getFlattedNodes(!props.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
|
|
17376
17441
|
if (node.isDisabled)
|
|
17377
17442
|
return false;
|
|
17378
17443
|
node.calcText(showAllLevels, separator);
|
|
@@ -17388,11 +17453,12 @@ const _sfc_main$1w = defineComponent({
|
|
|
17388
17453
|
updatePopperPosition();
|
|
17389
17454
|
};
|
|
17390
17455
|
const focusFirstNode = () => {
|
|
17456
|
+
var _a;
|
|
17391
17457
|
let firstNode;
|
|
17392
17458
|
if (filtering.value && suggestionPanel.value) {
|
|
17393
17459
|
firstNode = suggestionPanel.value.$el.querySelector(".el-cascader__suggestion-item");
|
|
17394
17460
|
} else {
|
|
17395
|
-
firstNode = panel.value
|
|
17461
|
+
firstNode = (_a = panel.value) == null ? void 0 : _a.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
17396
17462
|
}
|
|
17397
17463
|
if (firstNode) {
|
|
17398
17464
|
firstNode.focus();
|
|
@@ -17400,9 +17466,10 @@ const _sfc_main$1w = defineComponent({
|
|
|
17400
17466
|
}
|
|
17401
17467
|
};
|
|
17402
17468
|
const updateStyle = () => {
|
|
17403
|
-
|
|
17469
|
+
var _a, _b;
|
|
17470
|
+
const inputInner = (_a = input.value) == null ? void 0 : _a.input;
|
|
17404
17471
|
const tagWrapperEl = tagWrapper.value;
|
|
17405
|
-
const suggestionPanelEl = suggestionPanel.value
|
|
17472
|
+
const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
|
|
17406
17473
|
if (!isClient || !inputInner)
|
|
17407
17474
|
return;
|
|
17408
17475
|
if (suggestionPanelEl) {
|
|
@@ -17417,14 +17484,16 @@ const _sfc_main$1w = defineComponent({
|
|
|
17417
17484
|
}
|
|
17418
17485
|
};
|
|
17419
17486
|
const getCheckedNodes = (leafOnly) => {
|
|
17420
|
-
|
|
17487
|
+
var _a;
|
|
17488
|
+
return (_a = panel.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
|
|
17421
17489
|
};
|
|
17422
17490
|
const handleExpandChange = (value) => {
|
|
17423
17491
|
updatePopperPosition();
|
|
17424
17492
|
emit("expand-change", value);
|
|
17425
17493
|
};
|
|
17426
17494
|
const handleComposition = (event) => {
|
|
17427
|
-
|
|
17495
|
+
var _a;
|
|
17496
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
17428
17497
|
if (event.type === "compositionend") {
|
|
17429
17498
|
isOnComposition.value = false;
|
|
17430
17499
|
nextTick(() => handleInput(text));
|
|
@@ -17452,15 +17521,17 @@ const _sfc_main$1w = defineComponent({
|
|
|
17452
17521
|
}
|
|
17453
17522
|
};
|
|
17454
17523
|
const handleClear = () => {
|
|
17455
|
-
|
|
17524
|
+
var _a;
|
|
17525
|
+
(_a = panel.value) == null ? void 0 : _a.clearCheckedNodes();
|
|
17456
17526
|
togglePopperVisible(false);
|
|
17457
17527
|
};
|
|
17458
17528
|
const handleSuggestionClick = (node) => {
|
|
17529
|
+
var _a, _b;
|
|
17459
17530
|
const { checked } = node;
|
|
17460
17531
|
if (multiple.value) {
|
|
17461
|
-
panel.value
|
|
17532
|
+
(_a = panel.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
|
|
17462
17533
|
} else {
|
|
17463
|
-
!checked && panel.value
|
|
17534
|
+
!checked && ((_b = panel.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
|
|
17464
17535
|
togglePopperVisible(false);
|
|
17465
17536
|
}
|
|
17466
17537
|
};
|
|
@@ -17511,7 +17582,7 @@ const _sfc_main$1w = defineComponent({
|
|
|
17511
17582
|
}, props.debounce);
|
|
17512
17583
|
const handleInput = (val, e) => {
|
|
17513
17584
|
!popperVisible.value && togglePopperVisible(true);
|
|
17514
|
-
if (e
|
|
17585
|
+
if (e == null ? void 0 : e.isComposing)
|
|
17515
17586
|
return;
|
|
17516
17587
|
val ? handleFilter() : hideSuggestionPanel();
|
|
17517
17588
|
};
|
|
@@ -17522,12 +17593,14 @@ const _sfc_main$1w = defineComponent({
|
|
|
17522
17593
|
});
|
|
17523
17594
|
watch(presentText, (val) => inputValue.value = val, { immediate: true });
|
|
17524
17595
|
onMounted(() => {
|
|
17525
|
-
|
|
17526
|
-
|
|
17596
|
+
var _a;
|
|
17597
|
+
const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
|
|
17598
|
+
inputInitialHeight = (inputEl == null ? void 0 : inputEl.offsetHeight) || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
|
|
17527
17599
|
addResizeListener(inputEl, updateStyle);
|
|
17528
17600
|
});
|
|
17529
17601
|
onBeforeUnmount(() => {
|
|
17530
|
-
|
|
17602
|
+
var _a;
|
|
17603
|
+
removeResizeListener((_a = input.value) == null ? void 0 : _a.$el, updateStyle);
|
|
17531
17604
|
});
|
|
17532
17605
|
return {
|
|
17533
17606
|
popperOptions,
|
|
@@ -18069,7 +18142,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
18069
18142
|
const isClick = ref(false);
|
|
18070
18143
|
const id = ref(generateId());
|
|
18071
18144
|
const isActive = computed(() => {
|
|
18072
|
-
return collapse
|
|
18145
|
+
return (collapse == null ? void 0 : collapse.activeNames.value.indexOf(props.name)) > -1;
|
|
18073
18146
|
});
|
|
18074
18147
|
const handleFocus = () => {
|
|
18075
18148
|
setTimeout(() => {
|
|
@@ -18083,12 +18156,12 @@ const _sfc_main$1s = defineComponent({
|
|
|
18083
18156
|
const handleHeaderClick = () => {
|
|
18084
18157
|
if (props.disabled)
|
|
18085
18158
|
return;
|
|
18086
|
-
collapse
|
|
18159
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18087
18160
|
focusing.value = false;
|
|
18088
18161
|
isClick.value = true;
|
|
18089
18162
|
};
|
|
18090
18163
|
const handleEnterClick = () => {
|
|
18091
|
-
collapse
|
|
18164
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18092
18165
|
};
|
|
18093
18166
|
return {
|
|
18094
18167
|
isActive,
|
|
@@ -18988,10 +19061,11 @@ const _sfc_main$1n = defineComponent({
|
|
|
18988
19061
|
color.fromString(customInput.value);
|
|
18989
19062
|
}
|
|
18990
19063
|
function confirmValue() {
|
|
19064
|
+
var _a;
|
|
18991
19065
|
const value = color.value;
|
|
18992
19066
|
emit(UPDATE_MODEL_EVENT, value);
|
|
18993
19067
|
emit("change", value);
|
|
18994
|
-
elFormItem.validate
|
|
19068
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
18995
19069
|
debounceSetShowPicker(false);
|
|
18996
19070
|
nextTick(() => {
|
|
18997
19071
|
const newColor = new Color({
|
|
@@ -19005,11 +19079,12 @@ const _sfc_main$1n = defineComponent({
|
|
|
19005
19079
|
});
|
|
19006
19080
|
}
|
|
19007
19081
|
function clear() {
|
|
19082
|
+
var _a;
|
|
19008
19083
|
debounceSetShowPicker(false);
|
|
19009
19084
|
emit(UPDATE_MODEL_EVENT, null);
|
|
19010
19085
|
emit("change", null);
|
|
19011
19086
|
if (props.modelValue !== null) {
|
|
19012
|
-
elFormItem.validate
|
|
19087
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
19013
19088
|
}
|
|
19014
19089
|
resetColor();
|
|
19015
19090
|
}
|
|
@@ -19020,9 +19095,10 @@ const _sfc_main$1n = defineComponent({
|
|
|
19020
19095
|
});
|
|
19021
19096
|
watch(() => showPicker.value, () => {
|
|
19022
19097
|
nextTick(() => {
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19098
|
+
var _a, _b, _c;
|
|
19099
|
+
(_a = hue.value) == null ? void 0 : _a.update();
|
|
19100
|
+
(_b = svPanel.value) == null ? void 0 : _b.update();
|
|
19101
|
+
(_c = alpha.value) == null ? void 0 : _c.update();
|
|
19026
19102
|
});
|
|
19027
19103
|
});
|
|
19028
19104
|
provide(OPTIONS_KEY, {
|
|
@@ -19530,6 +19606,7 @@ const _sfc_main$1h = defineComponent({
|
|
|
19530
19606
|
return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
|
|
19531
19607
|
});
|
|
19532
19608
|
const rows = computed(() => {
|
|
19609
|
+
var _a;
|
|
19533
19610
|
const startOfMonth = props.date.startOf("month");
|
|
19534
19611
|
const startOfMonthDay = startOfMonth.day() || 7;
|
|
19535
19612
|
const dateCountOfMonth = startOfMonth.daysInMonth();
|
|
@@ -19569,7 +19646,7 @@ const _sfc_main$1h = defineComponent({
|
|
|
19569
19646
|
cell.type = "normal";
|
|
19570
19647
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19571
19648
|
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");
|
|
19572
|
-
if (props.minDate
|
|
19649
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19573
19650
|
cell.start = calEndDate && calTime.isSame(calEndDate, "day");
|
|
19574
19651
|
cell.end = props.minDate && calTime.isSame(props.minDate, "day");
|
|
19575
19652
|
} else {
|
|
@@ -19838,6 +19915,7 @@ const _sfc_main$1g = defineComponent({
|
|
|
19838
19915
|
const lastRow = ref(null);
|
|
19839
19916
|
const lastColumn = ref(null);
|
|
19840
19917
|
const rows = computed(() => {
|
|
19918
|
+
var _a;
|
|
19841
19919
|
const rows2 = tableRows.value;
|
|
19842
19920
|
const now = dayjs().locale(lang.value).startOf("month");
|
|
19843
19921
|
for (let i = 0; i < 3; i++) {
|
|
@@ -19859,7 +19937,7 @@ const _sfc_main$1g = defineComponent({
|
|
|
19859
19937
|
const calTime = props.date.startOf("year").month(index);
|
|
19860
19938
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19861
19939
|
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");
|
|
19862
|
-
if (props.minDate
|
|
19940
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19863
19941
|
cell.start = calEndDate && calTime.isSame(calEndDate, "month");
|
|
19864
19942
|
cell.end = props.minDate && calTime.isSame(props.minDate, "month");
|
|
19865
19943
|
} else {
|
|
@@ -20277,7 +20355,7 @@ const _sfc_main$1e = defineComponent({
|
|
|
20277
20355
|
currentView.value = "date";
|
|
20278
20356
|
}, { immediate: true });
|
|
20279
20357
|
watch(() => currentView.value, () => {
|
|
20280
|
-
popper
|
|
20358
|
+
popper == null ? void 0 : popper.updatePopper();
|
|
20281
20359
|
});
|
|
20282
20360
|
const hasShortcuts = computed(() => !!shortcuts.length);
|
|
20283
20361
|
const handleMonthPick = (month2) => {
|
|
@@ -22111,13 +22189,18 @@ const _sfc_main$1a = defineComponent({
|
|
|
22111
22189
|
return node;
|
|
22112
22190
|
};
|
|
22113
22191
|
const getRows = () => {
|
|
22114
|
-
|
|
22192
|
+
var _a;
|
|
22193
|
+
const children = flattedChildren((_a = slots.default) == null ? void 0 : _a.call(slots)).filter((node) => {
|
|
22194
|
+
var _a2;
|
|
22195
|
+
return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === "ElDescriptionsItem";
|
|
22196
|
+
});
|
|
22115
22197
|
const rows = [];
|
|
22116
22198
|
let temp = [];
|
|
22117
22199
|
let count = props.column;
|
|
22118
22200
|
let totalSpan = 0;
|
|
22119
22201
|
children.forEach((node, index) => {
|
|
22120
|
-
|
|
22202
|
+
var _a2;
|
|
22203
|
+
const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
|
|
22121
22204
|
if (index < children.length - 1) {
|
|
22122
22205
|
totalSpan += span > count ? count : span;
|
|
22123
22206
|
}
|
|
@@ -22360,8 +22443,7 @@ const dialogProps = buildProps({
|
|
|
22360
22443
|
},
|
|
22361
22444
|
modalClass: String,
|
|
22362
22445
|
width: {
|
|
22363
|
-
type: [String, Number]
|
|
22364
|
-
validator: isValidWidthUnit
|
|
22446
|
+
type: [String, Number]
|
|
22365
22447
|
},
|
|
22366
22448
|
zIndex: {
|
|
22367
22449
|
type: Number
|
|
@@ -23030,7 +23112,7 @@ const _sfc_main$16 = defineComponent({
|
|
|
23030
23112
|
on(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23031
23113
|
trapContainer.dispatchEvent(unmountEvent);
|
|
23032
23114
|
if (!unmountEvent.defaultPrevented) {
|
|
23033
|
-
tryFocus(lastFocusBeforeMounted
|
|
23115
|
+
tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
|
|
23034
23116
|
}
|
|
23035
23117
|
off(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23036
23118
|
focusableStack.remove(focusLayer);
|
|
@@ -23207,7 +23289,8 @@ const _sfc_main$13 = defineComponent({
|
|
|
23207
23289
|
props: rovingFocusGroupProps,
|
|
23208
23290
|
emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
|
|
23209
23291
|
setup(props, { emit }) {
|
|
23210
|
-
|
|
23292
|
+
var _a;
|
|
23293
|
+
const currentTabbedId = ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);
|
|
23211
23294
|
const isBackingOut = ref(false);
|
|
23212
23295
|
const isClickFocus = ref(false);
|
|
23213
23296
|
const rovingFocusGroupRef = ref(null);
|
|
@@ -23227,18 +23310,20 @@ const _sfc_main$13 = defineComponent({
|
|
|
23227
23310
|
isBackingOut.value = true;
|
|
23228
23311
|
};
|
|
23229
23312
|
const onMousedown = composeEventHandlers((e) => {
|
|
23230
|
-
|
|
23313
|
+
var _a2;
|
|
23314
|
+
(_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);
|
|
23231
23315
|
}, () => {
|
|
23232
23316
|
isClickFocus.value = true;
|
|
23233
23317
|
});
|
|
23234
23318
|
const onFocus = composeEventHandlers((e) => {
|
|
23235
|
-
|
|
23319
|
+
var _a2;
|
|
23320
|
+
(_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);
|
|
23236
23321
|
}, (e) => {
|
|
23237
23322
|
const isKeyboardFocus = !unref(isClickFocus);
|
|
23238
23323
|
const { target, currentTarget } = e;
|
|
23239
23324
|
if (target === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {
|
|
23240
23325
|
const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
|
|
23241
|
-
currentTarget
|
|
23326
|
+
currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
|
|
23242
23327
|
if (!entryFocusEvt.defaultPrevented) {
|
|
23243
23328
|
const items = getItems().filter((item) => item.focusable);
|
|
23244
23329
|
const activeItem = items.find((item) => item.active);
|
|
@@ -23251,7 +23336,8 @@ const _sfc_main$13 = defineComponent({
|
|
|
23251
23336
|
isClickFocus.value = false;
|
|
23252
23337
|
});
|
|
23253
23338
|
const onBlur = composeEventHandlers((e) => {
|
|
23254
|
-
|
|
23339
|
+
var _a2;
|
|
23340
|
+
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
23255
23341
|
}, () => {
|
|
23256
23342
|
isBackingOut.value = false;
|
|
23257
23343
|
});
|
|
@@ -23275,7 +23361,7 @@ const _sfc_main$13 = defineComponent({
|
|
|
23275
23361
|
onMousedown
|
|
23276
23362
|
});
|
|
23277
23363
|
watch(() => props.currentTabId, (val) => {
|
|
23278
|
-
currentTabbedId.value = val
|
|
23364
|
+
currentTabbedId.value = val != null ? val : null;
|
|
23279
23365
|
});
|
|
23280
23366
|
onMounted(() => {
|
|
23281
23367
|
const rovingFocusGroupEl = unref(rovingFocusGroupRef);
|
|
@@ -23534,10 +23620,12 @@ const _sfc_main$10 = defineComponent({
|
|
|
23534
23620
|
handleClose();
|
|
23535
23621
|
}
|
|
23536
23622
|
function handleClose() {
|
|
23537
|
-
|
|
23623
|
+
var _a;
|
|
23624
|
+
(_a = popperRef.value) == null ? void 0 : _a.onClose();
|
|
23538
23625
|
}
|
|
23539
23626
|
function handleOpen() {
|
|
23540
|
-
|
|
23627
|
+
var _a;
|
|
23628
|
+
(_a = popperRef.value) == null ? void 0 : _a.onOpen();
|
|
23541
23629
|
}
|
|
23542
23630
|
const dropdownSize = useSize();
|
|
23543
23631
|
function commandHandler(...args) {
|
|
@@ -23547,7 +23635,7 @@ const _sfc_main$10 = defineComponent({
|
|
|
23547
23635
|
}
|
|
23548
23636
|
function onItemLeave() {
|
|
23549
23637
|
const contentEl = unref(contentRef);
|
|
23550
|
-
contentEl
|
|
23638
|
+
contentEl == null ? void 0 : contentEl.focus();
|
|
23551
23639
|
currentTabId.value = null;
|
|
23552
23640
|
}
|
|
23553
23641
|
function handleCurrentTabIdChange(id) {
|
|
@@ -23574,8 +23662,9 @@ const _sfc_main$10 = defineComponent({
|
|
|
23574
23662
|
hideOnClick: toRef(props, "hideOnClick")
|
|
23575
23663
|
});
|
|
23576
23664
|
const onMountOnFocus = (e) => {
|
|
23665
|
+
var _a, _b;
|
|
23577
23666
|
e.preventDefault();
|
|
23578
|
-
contentRef.value
|
|
23667
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {
|
|
23579
23668
|
preventScroll: true
|
|
23580
23669
|
});
|
|
23581
23670
|
};
|
|
@@ -23602,6 +23691,7 @@ const _sfc_main$10 = defineComponent({
|
|
|
23602
23691
|
});
|
|
23603
23692
|
const _hoisted_1$G = { class: "el-dropdown" };
|
|
23604
23693
|
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23694
|
+
var _a;
|
|
23605
23695
|
const _component_el_dropdown_collection = resolveComponent("el-dropdown-collection");
|
|
23606
23696
|
const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
|
|
23607
23697
|
const _component_el_focus_trap = resolveComponent("el-focus-trap");
|
|
@@ -23622,7 +23712,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23622
23712
|
"manual-mode": true,
|
|
23623
23713
|
placement: _ctx.placement,
|
|
23624
23714
|
"popper-class": `el-dropdown__popper ${_ctx.popperClass}`,
|
|
23625
|
-
"reference-element": _ctx.referenceElementRef
|
|
23715
|
+
"reference-element": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,
|
|
23626
23716
|
trigger: _ctx.trigger,
|
|
23627
23717
|
"show-after": _ctx.showTimeout,
|
|
23628
23718
|
"stop-popper-mouse-event": false,
|
|
@@ -23818,18 +23908,22 @@ const _sfc_main$_ = defineComponent({
|
|
|
23818
23908
|
const { elDropdown } = useDropdown();
|
|
23819
23909
|
const _instance = getCurrentInstance();
|
|
23820
23910
|
const itemRef = ref(null);
|
|
23821
|
-
const textContent = computed(() =>
|
|
23911
|
+
const textContent = computed(() => {
|
|
23912
|
+
var _a, _b;
|
|
23913
|
+
return (_b = (_a = unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : "";
|
|
23914
|
+
});
|
|
23822
23915
|
const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);
|
|
23823
23916
|
const handlePointerMove = composeEventHandlers((e) => {
|
|
23824
23917
|
emit("pointermove", e);
|
|
23825
23918
|
return e.defaultPrevented;
|
|
23826
23919
|
}, whenMouse((e) => {
|
|
23920
|
+
var _a;
|
|
23827
23921
|
if (props.disabled) {
|
|
23828
23922
|
onItemLeave(e);
|
|
23829
23923
|
} else {
|
|
23830
23924
|
onItemEnter(e);
|
|
23831
23925
|
if (!e.defaultPrevented) {
|
|
23832
|
-
e.currentTarget
|
|
23926
|
+
(_a = e.currentTarget) == null ? void 0 : _a.focus();
|
|
23833
23927
|
}
|
|
23834
23928
|
}
|
|
23835
23929
|
}));
|
|
@@ -23843,14 +23937,15 @@ const _sfc_main$_ = defineComponent({
|
|
|
23843
23937
|
emit("click", e);
|
|
23844
23938
|
return e.defaultPrevented;
|
|
23845
23939
|
}, (e) => {
|
|
23940
|
+
var _a, _b, _c;
|
|
23846
23941
|
if (props.disabled) {
|
|
23847
23942
|
e.stopImmediatePropagation();
|
|
23848
23943
|
return;
|
|
23849
23944
|
}
|
|
23850
|
-
if (elDropdown
|
|
23851
|
-
elDropdown.handleClick
|
|
23945
|
+
if ((_a = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a.value) {
|
|
23946
|
+
(_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);
|
|
23852
23947
|
}
|
|
23853
|
-
elDropdown.commandHandler
|
|
23948
|
+
(_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);
|
|
23854
23949
|
});
|
|
23855
23950
|
return {
|
|
23856
23951
|
handleClick,
|
|
@@ -23861,12 +23956,13 @@ const _sfc_main$_ = defineComponent({
|
|
|
23861
23956
|
}
|
|
23862
23957
|
});
|
|
23863
23958
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23959
|
+
var _a;
|
|
23864
23960
|
const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
|
|
23865
23961
|
const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
|
|
23866
23962
|
const _component_el_dropdown_collection_item = resolveComponent("el-dropdown-collection-item");
|
|
23867
23963
|
return openBlock(), createBlock(_component_el_dropdown_collection_item, {
|
|
23868
23964
|
disabled: _ctx.disabled,
|
|
23869
|
-
"text-value": _ctx.textValue
|
|
23965
|
+
"text-value": (_a = _ctx.textValue) != null ? _a : _ctx.textContent
|
|
23870
23966
|
}, {
|
|
23871
23967
|
default: withCtx(() => [
|
|
23872
23968
|
createVNode(_component_el_roving_focus_item, {
|
|
@@ -23918,7 +24014,8 @@ const _sfc_main$Z = defineComponent({
|
|
|
23918
24014
|
});
|
|
23919
24015
|
const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
|
23920
24016
|
const composedKeydown = composeEventHandlers((e) => {
|
|
23921
|
-
|
|
24017
|
+
var _a;
|
|
24018
|
+
(_a = props.onKeydown) == null ? void 0 : _a.call(props, e);
|
|
23922
24019
|
}, (e) => {
|
|
23923
24020
|
const { currentTarget, code, target } = e;
|
|
23924
24021
|
currentTarget.contains(target);
|
|
@@ -25907,10 +26004,11 @@ const _sfc_main$V = defineComponent({
|
|
|
25907
26004
|
const model = {};
|
|
25908
26005
|
model[props.prop] = fieldValue.value;
|
|
25909
26006
|
validator.validate(model, { firstFields: true }, (errors, fields) => {
|
|
26007
|
+
var _a;
|
|
25910
26008
|
validateState.value = !errors ? "success" : "error";
|
|
25911
26009
|
validateMessage.value = errors ? errors[0].message || `${props.prop} is required` : "";
|
|
25912
26010
|
callback(validateMessage.value, errors ? fields : {});
|
|
25913
|
-
elForm.emit
|
|
26011
|
+
(_a = elForm.emit) == null ? void 0 : _a.call(elForm, "validate", props.prop, !errors, validateMessage.value || null);
|
|
25914
26012
|
});
|
|
25915
26013
|
};
|
|
25916
26014
|
const clearValidate = () => {
|
|
@@ -25955,7 +26053,8 @@ const _sfc_main$V = defineComponent({
|
|
|
25955
26053
|
}).map((rule) => ({ ...rule }));
|
|
25956
26054
|
};
|
|
25957
26055
|
const evaluateValidationEnabled = () => {
|
|
25958
|
-
|
|
26056
|
+
var _a;
|
|
26057
|
+
isValidationEnabled.value = !!((_a = getRules()) == null ? void 0 : _a.length);
|
|
25959
26058
|
};
|
|
25960
26059
|
const updateComputedLabelWidth = (width) => {
|
|
25961
26060
|
computedLabelWidth.value = width ? `${width}px` : "";
|
|
@@ -25973,14 +26072,14 @@ const _sfc_main$V = defineComponent({
|
|
|
25973
26072
|
});
|
|
25974
26073
|
onMounted(() => {
|
|
25975
26074
|
if (props.prop) {
|
|
25976
|
-
elForm
|
|
26075
|
+
elForm == null ? void 0 : elForm.addField(elFormItem);
|
|
25977
26076
|
const value = fieldValue.value;
|
|
25978
26077
|
initialValue = Array.isArray(value) ? [...value] : value;
|
|
25979
26078
|
evaluateValidationEnabled();
|
|
25980
26079
|
}
|
|
25981
26080
|
});
|
|
25982
26081
|
onBeforeUnmount(() => {
|
|
25983
|
-
elForm
|
|
26082
|
+
elForm == null ? void 0 : elForm.removeField(elFormItem);
|
|
25984
26083
|
});
|
|
25985
26084
|
provide(elFormItemKey, elFormItem);
|
|
25986
26085
|
const formItemClass = computed(() => [
|
|
@@ -26308,7 +26407,7 @@ const _sfc_main$U = defineComponent({
|
|
|
26308
26407
|
watch(currentImg, () => {
|
|
26309
26408
|
nextTick(() => {
|
|
26310
26409
|
const $img = img.value;
|
|
26311
|
-
if (
|
|
26410
|
+
if (!($img == null ? void 0 : $img.complete)) {
|
|
26312
26411
|
loading.value = true;
|
|
26313
26412
|
}
|
|
26314
26413
|
});
|
|
@@ -26318,8 +26417,9 @@ const _sfc_main$U = defineComponent({
|
|
|
26318
26417
|
emit("switch", val);
|
|
26319
26418
|
});
|
|
26320
26419
|
onMounted(() => {
|
|
26420
|
+
var _a, _b;
|
|
26321
26421
|
registerEventListener();
|
|
26322
|
-
wrapper.value
|
|
26422
|
+
(_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26323
26423
|
});
|
|
26324
26424
|
return {
|
|
26325
26425
|
index,
|
|
@@ -26626,6 +26726,7 @@ const _sfc_main$T = defineComponent({
|
|
|
26626
26726
|
}
|
|
26627
26727
|
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);
|
|
26628
26728
|
async function addLazyLoadListener() {
|
|
26729
|
+
var _a;
|
|
26629
26730
|
if (!isClient)
|
|
26630
26731
|
return;
|
|
26631
26732
|
await nextTick();
|
|
@@ -26633,7 +26734,7 @@ const _sfc_main$T = defineComponent({
|
|
|
26633
26734
|
if (isHtmlElement(scrollContainer)) {
|
|
26634
26735
|
_scrollContainer.value = scrollContainer;
|
|
26635
26736
|
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
26636
|
-
_scrollContainer.value = document.querySelector(scrollContainer)
|
|
26737
|
+
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
26637
26738
|
} else if (container.value) {
|
|
26638
26739
|
_scrollContainer.value = getScrollContainer(container.value);
|
|
26639
26740
|
}
|
|
@@ -26670,7 +26771,7 @@ const _sfc_main$T = defineComponent({
|
|
|
26670
26771
|
showViewer.value = true;
|
|
26671
26772
|
}
|
|
26672
26773
|
function closeViewer() {
|
|
26673
|
-
stopWheelListener
|
|
26774
|
+
stopWheelListener == null ? void 0 : stopWheelListener();
|
|
26674
26775
|
document.body.style.overflow = prevOverflow;
|
|
26675
26776
|
showViewer.value = false;
|
|
26676
26777
|
emit("close");
|
|
@@ -26916,6 +27017,7 @@ const _sfc_main$S = defineComponent({
|
|
|
26916
27017
|
setCurrentValue(newVal);
|
|
26917
27018
|
};
|
|
26918
27019
|
const setCurrentValue = (newVal) => {
|
|
27020
|
+
var _a;
|
|
26919
27021
|
const oldVal = data.currentValue;
|
|
26920
27022
|
if (typeof newVal === "number" && props.precision !== void 0) {
|
|
26921
27023
|
newVal = toPrecision(newVal, props.precision);
|
|
@@ -26933,7 +27035,7 @@ const _sfc_main$S = defineComponent({
|
|
|
26933
27035
|
emit("update:modelValue", newVal);
|
|
26934
27036
|
emit("input", newVal);
|
|
26935
27037
|
emit("change", newVal, oldVal);
|
|
26936
|
-
formItem
|
|
27038
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
26937
27039
|
data.currentValue = newVal;
|
|
26938
27040
|
};
|
|
26939
27041
|
const handleInput = (value) => {
|
|
@@ -26947,17 +27049,20 @@ const _sfc_main$S = defineComponent({
|
|
|
26947
27049
|
data.userInput = null;
|
|
26948
27050
|
};
|
|
26949
27051
|
const focus = () => {
|
|
26950
|
-
|
|
27052
|
+
var _a, _b;
|
|
27053
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26951
27054
|
};
|
|
26952
27055
|
const blur = () => {
|
|
26953
|
-
|
|
27056
|
+
var _a, _b;
|
|
27057
|
+
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
26954
27058
|
};
|
|
26955
27059
|
const handleFocus = (event) => {
|
|
26956
27060
|
emit("focus", event);
|
|
26957
27061
|
};
|
|
26958
27062
|
const handleBlur = (event) => {
|
|
27063
|
+
var _a;
|
|
26959
27064
|
emit("blur", event);
|
|
26960
|
-
formItem
|
|
27065
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
26961
27066
|
};
|
|
26962
27067
|
watch(() => props.modelValue, (value) => {
|
|
26963
27068
|
let newVal = Number(value);
|
|
@@ -26986,7 +27091,8 @@ const _sfc_main$S = defineComponent({
|
|
|
26986
27091
|
data.userInput = null;
|
|
26987
27092
|
}, { immediate: true });
|
|
26988
27093
|
onMounted(() => {
|
|
26989
|
-
|
|
27094
|
+
var _a;
|
|
27095
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
26990
27096
|
innerInput.setAttribute("role", "spinbutton");
|
|
26991
27097
|
innerInput.setAttribute("aria-valuemax", String(props.max));
|
|
26992
27098
|
innerInput.setAttribute("aria-valuemin", String(props.min));
|
|
@@ -27001,7 +27107,8 @@ const _sfc_main$S = defineComponent({
|
|
|
27001
27107
|
}
|
|
27002
27108
|
});
|
|
27003
27109
|
onUpdated(() => {
|
|
27004
|
-
|
|
27110
|
+
var _a;
|
|
27111
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
27005
27112
|
innerInput.setAttribute("aria-valuenow", data.currentValue);
|
|
27006
27113
|
});
|
|
27007
27114
|
return {
|
|
@@ -28477,7 +28584,8 @@ const _sfc_main$J = defineComponent({
|
|
|
28477
28584
|
const isFitInputWidth = computed(() => select.props.fitInputWidth);
|
|
28478
28585
|
const minWidth = ref("");
|
|
28479
28586
|
function updateMinWidth() {
|
|
28480
|
-
|
|
28587
|
+
var _a;
|
|
28588
|
+
minWidth.value = `${(_a = select.selectWrapper) == null ? void 0 : _a.getBoundingClientRect().width}px`;
|
|
28481
28589
|
}
|
|
28482
28590
|
onMounted(() => {
|
|
28483
28591
|
updateMinWidth();
|
|
@@ -29401,7 +29509,8 @@ const _sfc_main$I = defineComponent({
|
|
|
29401
29509
|
ctx.emit(UPDATE_MODEL_EVENT, "");
|
|
29402
29510
|
}
|
|
29403
29511
|
const popperPaneRef = computed(() => {
|
|
29404
|
-
|
|
29512
|
+
var _a, _b;
|
|
29513
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
29405
29514
|
});
|
|
29406
29515
|
return {
|
|
29407
29516
|
tagInMultiLine,
|
|
@@ -29746,9 +29855,10 @@ const _sfc_main$H = defineComponent({
|
|
|
29746
29855
|
const children2 = [];
|
|
29747
29856
|
if (Array.isArray(node.children)) {
|
|
29748
29857
|
node.children.forEach((child) => {
|
|
29858
|
+
var _a;
|
|
29749
29859
|
if (child.type && child.type.name === "ElOption" && child.component && child.component.proxy) {
|
|
29750
29860
|
children2.push(child.component.proxy);
|
|
29751
|
-
} else if (child.children
|
|
29861
|
+
} else if ((_a = child.children) == null ? void 0 : _a.length) {
|
|
29752
29862
|
children2.push(...flattedChildren(child));
|
|
29753
29863
|
}
|
|
29754
29864
|
});
|
|
@@ -29830,9 +29940,10 @@ const _sfc_main$G = defineComponent({
|
|
|
29830
29940
|
});
|
|
29831
29941
|
const innerPagesizes = computed(() => props.pageSizes);
|
|
29832
29942
|
function handleChange(val) {
|
|
29943
|
+
var _a;
|
|
29833
29944
|
if (val !== innerPageSize.value) {
|
|
29834
29945
|
innerPageSize.value = val;
|
|
29835
|
-
pagination.handleSizeChange
|
|
29946
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
|
29836
29947
|
}
|
|
29837
29948
|
}
|
|
29838
29949
|
return {
|
|
@@ -29879,13 +29990,16 @@ const _sfc_main$F = defineComponent({
|
|
|
29879
29990
|
const { t } = useLocale();
|
|
29880
29991
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
29881
29992
|
const userInput = ref();
|
|
29882
|
-
const innerValue = computed(() =>
|
|
29993
|
+
const innerValue = computed(() => {
|
|
29994
|
+
var _a;
|
|
29995
|
+
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
29996
|
+
});
|
|
29883
29997
|
function handleInput(val) {
|
|
29884
29998
|
userInput.value = +val;
|
|
29885
29999
|
}
|
|
29886
30000
|
function handleChange(val) {
|
|
29887
30001
|
val = Math.trunc(+val);
|
|
29888
|
-
changeEvent
|
|
30002
|
+
changeEvent == null ? void 0 : changeEvent(+val);
|
|
29889
30003
|
userInput.value = void 0;
|
|
29890
30004
|
}
|
|
29891
30005
|
return {
|
|
@@ -30420,17 +30534,20 @@ const _sfc_main$C = defineComponent({
|
|
|
30420
30534
|
const { t } = useLocale();
|
|
30421
30535
|
const tooltipRef = ref();
|
|
30422
30536
|
const hidePopper = () => {
|
|
30423
|
-
|
|
30537
|
+
var _a, _b;
|
|
30538
|
+
(_b = (_a = unref(tooltipRef)) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
30424
30539
|
};
|
|
30425
30540
|
const handleCallback = () => {
|
|
30426
30541
|
hidePopper();
|
|
30427
30542
|
};
|
|
30428
30543
|
const confirm = (e) => {
|
|
30429
|
-
|
|
30544
|
+
var _a;
|
|
30545
|
+
(_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
|
|
30430
30546
|
handleCallback();
|
|
30431
30547
|
};
|
|
30432
30548
|
const cancel = (e) => {
|
|
30433
|
-
|
|
30549
|
+
var _a;
|
|
30550
|
+
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
30434
30551
|
handleCallback();
|
|
30435
30552
|
};
|
|
30436
30553
|
const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
@@ -30546,7 +30663,8 @@ const _sfc_main$B = defineComponent({
|
|
|
30546
30663
|
setup(props) {
|
|
30547
30664
|
const tooltipRef = ref(null);
|
|
30548
30665
|
const popperRef = computed(() => {
|
|
30549
|
-
|
|
30666
|
+
var _a;
|
|
30667
|
+
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
30550
30668
|
});
|
|
30551
30669
|
const width = computed(() => {
|
|
30552
30670
|
if (isString$1(props.width)) {
|
|
@@ -30570,7 +30688,8 @@ const _sfc_main$B = defineComponent({
|
|
|
30570
30688
|
];
|
|
30571
30689
|
});
|
|
30572
30690
|
const hide = () => {
|
|
30573
|
-
|
|
30691
|
+
var _a;
|
|
30692
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
30574
30693
|
};
|
|
30575
30694
|
return {
|
|
30576
30695
|
kls,
|
|
@@ -30783,6 +30902,7 @@ const _sfc_main$A = defineComponent({
|
|
|
30783
30902
|
});
|
|
30784
30903
|
const content = computed(() => props.format(props.percentage));
|
|
30785
30904
|
const getCurrentColor = (percentage) => {
|
|
30905
|
+
var _a;
|
|
30786
30906
|
const { color } = props;
|
|
30787
30907
|
if (typeof color === "function") {
|
|
30788
30908
|
return color(percentage);
|
|
@@ -30804,7 +30924,7 @@ const _sfc_main$A = defineComponent({
|
|
|
30804
30924
|
if (color2.percentage > percentage)
|
|
30805
30925
|
return color2.color;
|
|
30806
30926
|
}
|
|
30807
|
-
return colors[colors.length - 1]
|
|
30927
|
+
return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
|
|
30808
30928
|
}
|
|
30809
30929
|
};
|
|
30810
30930
|
const slotData = computed(() => {
|
|
@@ -33354,6 +33474,7 @@ const _sfc_main$v = defineComponent({
|
|
|
33354
33474
|
};
|
|
33355
33475
|
},
|
|
33356
33476
|
render(_ctx, _cache) {
|
|
33477
|
+
var _a;
|
|
33357
33478
|
const {
|
|
33358
33479
|
$slots,
|
|
33359
33480
|
data,
|
|
@@ -33380,7 +33501,7 @@ const _sfc_main$v = defineComponent({
|
|
|
33380
33501
|
style: {
|
|
33381
33502
|
width: `${width}px`
|
|
33382
33503
|
}
|
|
33383
|
-
}, $slots.empty
|
|
33504
|
+
}, (_a = $slots.empty) == null ? void 0 : _a.call($slots));
|
|
33384
33505
|
}
|
|
33385
33506
|
const ListItem = withCtx((scoped) => {
|
|
33386
33507
|
const { index, data: data2 } = scoped;
|
|
@@ -34255,67 +34376,49 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34255
34376
|
onShow: _ctx.handleMenuEnter,
|
|
34256
34377
|
onHide: _cache[23] || (_cache[23] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
34257
34378
|
}, {
|
|
34258
|
-
default: withCtx(() =>
|
|
34259
|
-
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
"
|
|
34263
|
-
"
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
|
|
34267
|
-
|
|
34268
|
-
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
"disable-transitions": "",
|
|
34278
|
-
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34279
|
-
}, {
|
|
34280
|
-
default: withCtx(() => [
|
|
34281
|
-
createElementVNode("span", {
|
|
34282
|
-
class: "el-select-v2__tags-text",
|
|
34283
|
-
style: normalizeStyle({
|
|
34284
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34285
|
-
})
|
|
34286
|
-
}, toDisplayString(_ctx.states.cachedOptions[0]?.label), 5)
|
|
34287
|
-
]),
|
|
34288
|
-
_: 1
|
|
34289
|
-
}, 8, ["closable", "size"]),
|
|
34290
|
-
_ctx.modelValue.length > 1 ? (openBlock(), createBlock(_component_el_tag, {
|
|
34291
|
-
key: 0,
|
|
34292
|
-
closable: false,
|
|
34293
|
-
size: _ctx.collapseTagSize,
|
|
34294
|
-
type: "info",
|
|
34295
|
-
"disable-transitions": ""
|
|
34296
|
-
}, {
|
|
34297
|
-
default: withCtx(() => [
|
|
34298
|
-
createElementVNode("span", {
|
|
34299
|
-
class: "el-select-v2__tags-text",
|
|
34300
|
-
style: normalizeStyle({
|
|
34301
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34302
|
-
})
|
|
34303
|
-
}, "+ " + toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34304
|
-
]),
|
|
34305
|
-
_: 1
|
|
34306
|
-
}, 8, ["size"])) : createCommentVNode("v-if", true)
|
|
34307
|
-
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34308
|
-
return openBlock(), createElementBlock("div", {
|
|
34309
|
-
key: idx,
|
|
34310
|
-
class: "el-select-v2__selected-item"
|
|
34311
|
-
}, [
|
|
34312
|
-
(openBlock(), createBlock(_component_el_tag, {
|
|
34313
|
-
key: _ctx.getValueKey(selected),
|
|
34314
|
-
closable: !_ctx.selectDisabled && !selected.disabled,
|
|
34379
|
+
default: withCtx(() => {
|
|
34380
|
+
var _a;
|
|
34381
|
+
return [
|
|
34382
|
+
createElementVNode("div", {
|
|
34383
|
+
ref: "selectionRef",
|
|
34384
|
+
class: normalizeClass(["el-select-v2__wrapper", {
|
|
34385
|
+
"is-focused": _ctx.states.isComposing,
|
|
34386
|
+
"is-hovering": _ctx.states.comboBoxHovering,
|
|
34387
|
+
"is-filterable": _ctx.filterable,
|
|
34388
|
+
"is-disabled": _ctx.disabled
|
|
34389
|
+
}])
|
|
34390
|
+
}, [
|
|
34391
|
+
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
|
|
34392
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
34393
|
+
])) : createCommentVNode("v-if", true),
|
|
34394
|
+
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
|
|
34395
|
+
_ctx.collapseTags && _ctx.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
34396
|
+
createVNode(_component_el_tag, {
|
|
34397
|
+
closable: !_ctx.selectDisabled && !((_a = _ctx.states.cachedOptions[0]) == null ? void 0 : _a.disable),
|
|
34315
34398
|
size: _ctx.collapseTagSize,
|
|
34316
34399
|
type: "info",
|
|
34317
34400
|
"disable-transitions": "",
|
|
34318
|
-
onClose: ($event) => _ctx.deleteTag($event,
|
|
34401
|
+
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34402
|
+
}, {
|
|
34403
|
+
default: withCtx(() => {
|
|
34404
|
+
var _a2;
|
|
34405
|
+
return [
|
|
34406
|
+
createElementVNode("span", {
|
|
34407
|
+
class: "el-select-v2__tags-text",
|
|
34408
|
+
style: normalizeStyle({
|
|
34409
|
+
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34410
|
+
})
|
|
34411
|
+
}, toDisplayString((_a2 = _ctx.states.cachedOptions[0]) == null ? void 0 : _a2.label), 5)
|
|
34412
|
+
];
|
|
34413
|
+
}),
|
|
34414
|
+
_: 1
|
|
34415
|
+
}, 8, ["closable", "size"]),
|
|
34416
|
+
_ctx.modelValue.length > 1 ? (openBlock(), createBlock(_component_el_tag, {
|
|
34417
|
+
key: 0,
|
|
34418
|
+
closable: false,
|
|
34419
|
+
size: _ctx.collapseTagSize,
|
|
34420
|
+
type: "info",
|
|
34421
|
+
"disable-transitions": ""
|
|
34319
34422
|
}, {
|
|
34320
34423
|
default: withCtx(() => [
|
|
34321
34424
|
createElementVNode("span", {
|
|
@@ -34323,141 +34426,165 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34323
34426
|
style: normalizeStyle({
|
|
34324
34427
|
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34325
34428
|
})
|
|
34326
|
-
}, toDisplayString(_ctx.
|
|
34429
|
+
}, "+ " + toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34327
34430
|
]),
|
|
34328
|
-
_:
|
|
34329
|
-
},
|
|
34330
|
-
])
|
|
34331
|
-
|
|
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
|
-
|
|
34431
|
+
_: 1
|
|
34432
|
+
}, 8, ["size"])) : createCommentVNode("v-if", true)
|
|
34433
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34434
|
+
return openBlock(), createElementBlock("div", {
|
|
34435
|
+
key: idx,
|
|
34436
|
+
class: "el-select-v2__selected-item"
|
|
34437
|
+
}, [
|
|
34438
|
+
(openBlock(), createBlock(_component_el_tag, {
|
|
34439
|
+
key: _ctx.getValueKey(selected),
|
|
34440
|
+
closable: !_ctx.selectDisabled && !selected.disabled,
|
|
34441
|
+
size: _ctx.collapseTagSize,
|
|
34442
|
+
type: "info",
|
|
34443
|
+
"disable-transitions": "",
|
|
34444
|
+
onClose: ($event) => _ctx.deleteTag($event, selected)
|
|
34445
|
+
}, {
|
|
34446
|
+
default: withCtx(() => [
|
|
34447
|
+
createElementVNode("span", {
|
|
34448
|
+
class: "el-select-v2__tags-text",
|
|
34449
|
+
style: normalizeStyle({
|
|
34450
|
+
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34451
|
+
})
|
|
34452
|
+
}, toDisplayString(_ctx.getLabel(selected)), 5)
|
|
34453
|
+
]),
|
|
34454
|
+
_: 2
|
|
34455
|
+
}, 1032, ["closable", "size", "onClose"]))
|
|
34456
|
+
]);
|
|
34457
|
+
}), 128)),
|
|
34458
|
+
createElementVNode("div", {
|
|
34459
|
+
class: "el-select-v2__selected-item el-select-v2__input-wrapper",
|
|
34460
|
+
style: normalizeStyle(_ctx.inputWrapperStyle)
|
|
34461
|
+
}, [
|
|
34462
|
+
withDirectives(createElementVNode("input", {
|
|
34463
|
+
id: _ctx.id,
|
|
34464
|
+
ref: "inputRef",
|
|
34465
|
+
autocomplete: _ctx.autocomplete,
|
|
34466
|
+
"aria-autocomplete": "list",
|
|
34467
|
+
"aria-haspopup": "listbox",
|
|
34468
|
+
autocapitalize: "off",
|
|
34469
|
+
"aria-expanded": _ctx.expanded,
|
|
34470
|
+
"aria-labelledby": _ctx.label,
|
|
34471
|
+
class: normalizeClass(["el-select-v2__combobox-input", [_ctx.selectSize ? `is-${_ctx.selectSize}` : ""]]),
|
|
34472
|
+
disabled: _ctx.disabled,
|
|
34473
|
+
role: "combobox",
|
|
34474
|
+
readonly: !_ctx.filterable,
|
|
34475
|
+
spellcheck: "false",
|
|
34476
|
+
type: "text",
|
|
34477
|
+
name: _ctx.name,
|
|
34478
|
+
unselectable: _ctx.expanded ? "on" : void 0,
|
|
34479
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args)),
|
|
34480
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34481
|
+
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
34482
|
+
onCompositionstart: _cache[4] || (_cache[4] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
34483
|
+
onCompositionupdate: _cache[5] || (_cache[5] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
|
|
34484
|
+
onCompositionend: _cache[6] || (_cache[6] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
|
|
34485
|
+
onKeydown: [
|
|
34486
|
+
_cache[7] || (_cache[7] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
|
|
34487
|
+
_cache[8] || (_cache[8] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
|
|
34488
|
+
_cache[9] || (_cache[9] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
|
|
34489
|
+
_cache[10] || (_cache[10] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
|
|
34490
|
+
_cache[11] || (_cache[11] = withKeys(withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop"]), ["delete"]))
|
|
34491
|
+
]
|
|
34492
|
+
}, null, 42, _hoisted_4$6), [
|
|
34493
|
+
[_directive_model_text, _ctx.states.displayInputValue]
|
|
34494
|
+
]),
|
|
34495
|
+
_ctx.filterable ? (openBlock(), createElementBlock("span", {
|
|
34496
|
+
key: 0,
|
|
34497
|
+
ref: "calculatorRef",
|
|
34498
|
+
"aria-hidden": "true",
|
|
34499
|
+
class: "el-select-v2__input-calculator",
|
|
34500
|
+
textContent: toDisplayString(_ctx.states.displayInputValue)
|
|
34501
|
+
}, null, 8, _hoisted_5$4)) : createCommentVNode("v-if", true)
|
|
34502
|
+
], 4)
|
|
34503
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
34504
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
34505
|
+
withDirectives(createElementVNode("input", {
|
|
34506
|
+
id: _ctx.id,
|
|
34507
|
+
ref: "inputRef",
|
|
34508
|
+
"aria-autocomplete": "list",
|
|
34509
|
+
"aria-haspopup": "listbox",
|
|
34510
|
+
"aria-labelledby": _ctx.label,
|
|
34511
|
+
"aria-expanded": _ctx.expanded,
|
|
34512
|
+
autocapitalize: "off",
|
|
34513
|
+
autocomplete: _ctx.autocomplete,
|
|
34514
|
+
class: "el-select-v2__combobox-input",
|
|
34515
|
+
disabled: _ctx.disabled,
|
|
34516
|
+
name: _ctx.name,
|
|
34517
|
+
role: "combobox",
|
|
34518
|
+
readonly: !_ctx.filterable,
|
|
34519
|
+
spellcheck: "false",
|
|
34520
|
+
type: "text",
|
|
34521
|
+
unselectable: _ctx.expanded ? "on" : void 0,
|
|
34522
|
+
onCompositionstart: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
34523
|
+
onCompositionupdate: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
|
|
34524
|
+
onCompositionend: _cache[14] || (_cache[14] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
|
|
34525
|
+
onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34526
|
+
onInput: _cache[16] || (_cache[16] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
34527
|
+
onKeydown: [
|
|
34528
|
+
_cache[17] || (_cache[17] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
|
|
34529
|
+
_cache[18] || (_cache[18] = withKeys(withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
|
|
34530
|
+
_cache[19] || (_cache[19] = withKeys(withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
|
|
34531
|
+
_cache[20] || (_cache[20] = withKeys(withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"]))
|
|
34532
|
+
],
|
|
34533
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args))
|
|
34534
|
+
}, null, 40, _hoisted_7$2), [
|
|
34535
|
+
[_directive_model_text, _ctx.states.displayInputValue]
|
|
34536
|
+
])
|
|
34368
34537
|
]),
|
|
34369
34538
|
_ctx.filterable ? (openBlock(), createElementBlock("span", {
|
|
34370
34539
|
key: 0,
|
|
34371
34540
|
ref: "calculatorRef",
|
|
34372
34541
|
"aria-hidden": "true",
|
|
34373
|
-
class: "el-select-v2__input-calculator",
|
|
34542
|
+
class: "el-select-v2__selected-item el-select-v2__input-calculator",
|
|
34374
34543
|
textContent: toDisplayString(_ctx.states.displayInputValue)
|
|
34375
|
-
}, null, 8,
|
|
34376
|
-
],
|
|
34377
|
-
|
|
34378
|
-
|
|
34379
|
-
|
|
34380
|
-
|
|
34381
|
-
|
|
34382
|
-
|
|
34383
|
-
|
|
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
|
-
], 64)),
|
|
34420
|
-
_ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("span", {
|
|
34421
|
-
key: 3,
|
|
34422
|
-
class: normalizeClass({
|
|
34423
|
-
"el-select-v2__placeholder": true,
|
|
34424
|
-
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34425
|
-
})
|
|
34426
|
-
}, toDisplayString(_ctx.currentPlaceholder), 3)) : createCommentVNode("v-if", true),
|
|
34427
|
-
createElementVNode("span", _hoisted_9$1, [
|
|
34428
|
-
_ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
|
|
34429
|
-
key: 0,
|
|
34430
|
-
class: normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34431
|
-
}, {
|
|
34432
|
-
default: withCtx(() => [
|
|
34433
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
34434
|
-
]),
|
|
34435
|
-
_: 1
|
|
34436
|
-
}, 8, ["class"])), [
|
|
34437
|
-
[vShow, !_ctx.showClearBtn]
|
|
34438
|
-
]) : createCommentVNode("v-if", true),
|
|
34439
|
-
_ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
|
|
34440
|
-
key: 1,
|
|
34441
|
-
class: "el-select-v2__caret el-input__icon",
|
|
34442
|
-
onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34443
|
-
}, {
|
|
34444
|
-
default: withCtx(() => [
|
|
34445
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
|
34446
|
-
]),
|
|
34447
|
-
_: 1
|
|
34448
|
-
}, 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
34449
|
-
_ctx.validateState && _ctx.validateIcon ? (openBlock(), createBlock(_component_el_icon, {
|
|
34450
|
-
key: 2,
|
|
34451
|
-
class: "el-input__icon el-input__validateIcon"
|
|
34452
|
-
}, {
|
|
34453
|
-
default: withCtx(() => [
|
|
34454
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
|
|
34455
|
-
]),
|
|
34456
|
-
_: 1
|
|
34457
|
-
})) : createCommentVNode("v-if", true)
|
|
34458
|
-
])
|
|
34459
|
-
], 2)
|
|
34460
|
-
]),
|
|
34544
|
+
}, null, 8, _hoisted_8$2)) : createCommentVNode("v-if", true)
|
|
34545
|
+
], 64)),
|
|
34546
|
+
_ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("span", {
|
|
34547
|
+
key: 3,
|
|
34548
|
+
class: normalizeClass({
|
|
34549
|
+
"el-select-v2__placeholder": true,
|
|
34550
|
+
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34551
|
+
})
|
|
34552
|
+
}, toDisplayString(_ctx.currentPlaceholder), 3)) : createCommentVNode("v-if", true),
|
|
34553
|
+
createElementVNode("span", _hoisted_9$1, [
|
|
34554
|
+
_ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
|
|
34555
|
+
key: 0,
|
|
34556
|
+
class: normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34557
|
+
}, {
|
|
34558
|
+
default: withCtx(() => [
|
|
34559
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
34560
|
+
]),
|
|
34561
|
+
_: 1
|
|
34562
|
+
}, 8, ["class"])), [
|
|
34563
|
+
[vShow, !_ctx.showClearBtn]
|
|
34564
|
+
]) : createCommentVNode("v-if", true),
|
|
34565
|
+
_ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
|
|
34566
|
+
key: 1,
|
|
34567
|
+
class: "el-select-v2__caret el-input__icon",
|
|
34568
|
+
onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34569
|
+
}, {
|
|
34570
|
+
default: withCtx(() => [
|
|
34571
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
|
34572
|
+
]),
|
|
34573
|
+
_: 1
|
|
34574
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
34575
|
+
_ctx.validateState && _ctx.validateIcon ? (openBlock(), createBlock(_component_el_icon, {
|
|
34576
|
+
key: 2,
|
|
34577
|
+
class: "el-input__icon el-input__validateIcon"
|
|
34578
|
+
}, {
|
|
34579
|
+
default: withCtx(() => [
|
|
34580
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
|
|
34581
|
+
]),
|
|
34582
|
+
_: 1
|
|
34583
|
+
})) : createCommentVNode("v-if", true)
|
|
34584
|
+
])
|
|
34585
|
+
], 2)
|
|
34586
|
+
];
|
|
34587
|
+
}),
|
|
34461
34588
|
content: withCtx(() => [
|
|
34462
34589
|
createVNode(_component_el_select_menu, {
|
|
34463
34590
|
ref: "menuRef",
|
|
@@ -34921,9 +35048,10 @@ const _sfc_main$p = defineComponent({
|
|
|
34921
35048
|
};
|
|
34922
35049
|
},
|
|
34923
35050
|
render() {
|
|
35051
|
+
var _a;
|
|
34924
35052
|
return h$1("div", {
|
|
34925
35053
|
class: "el-slider__marks-text",
|
|
34926
|
-
style: this.mark
|
|
35054
|
+
style: (_a = this.mark) == null ? void 0 : _a.style
|
|
34927
35055
|
}, this.label);
|
|
34928
35056
|
}
|
|
34929
35057
|
});
|
|
@@ -35255,6 +35383,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
35255
35383
|
}
|
|
35256
35384
|
};
|
|
35257
35385
|
const setValues = () => {
|
|
35386
|
+
var _a, _b;
|
|
35258
35387
|
if (props.min > props.max) {
|
|
35259
35388
|
throwError("Slider", "min should not be greater than max.");
|
|
35260
35389
|
return;
|
|
@@ -35273,7 +35402,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
35273
35402
|
initData.firstValue = val[0];
|
|
35274
35403
|
initData.secondValue = val[1];
|
|
35275
35404
|
if (valueChanged()) {
|
|
35276
|
-
elFormItem.validate
|
|
35405
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
35277
35406
|
initData.oldValue = val.slice();
|
|
35278
35407
|
}
|
|
35279
35408
|
}
|
|
@@ -35285,7 +35414,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
35285
35414
|
} else {
|
|
35286
35415
|
initData.firstValue = val;
|
|
35287
35416
|
if (valueChanged()) {
|
|
35288
|
-
elFormItem.validate
|
|
35417
|
+
(_b = elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change");
|
|
35289
35418
|
initData.oldValue = val;
|
|
35290
35419
|
}
|
|
35291
35420
|
}
|
|
@@ -35768,7 +35897,8 @@ const _sfc_main$l = defineComponent({
|
|
|
35768
35897
|
return parent.steps.value.length;
|
|
35769
35898
|
});
|
|
35770
35899
|
const isLast = computed(() => {
|
|
35771
|
-
|
|
35900
|
+
var _a;
|
|
35901
|
+
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === currentInstance.uid;
|
|
35772
35902
|
});
|
|
35773
35903
|
const space = computed(() => {
|
|
35774
35904
|
return isSimple.value ? "" : parent.props.space;
|
|
@@ -36045,12 +36175,13 @@ const _sfc_main$k = defineComponent({
|
|
|
36045
36175
|
emit(INPUT_EVENT, props.inactiveValue);
|
|
36046
36176
|
}
|
|
36047
36177
|
watch(checked, () => {
|
|
36178
|
+
var _a;
|
|
36048
36179
|
input.value.checked = checked.value;
|
|
36049
36180
|
if (props.activeColor || props.inactiveColor) {
|
|
36050
36181
|
setBackgroundColor();
|
|
36051
36182
|
}
|
|
36052
36183
|
if (props.validateEvent) {
|
|
36053
|
-
formItem
|
|
36184
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
36054
36185
|
}
|
|
36055
36186
|
});
|
|
36056
36187
|
const handleChange = () => {
|
|
@@ -36097,7 +36228,8 @@ const _sfc_main$k = defineComponent({
|
|
|
36097
36228
|
coreEl.children[0].style.color = newColor;
|
|
36098
36229
|
};
|
|
36099
36230
|
const focus = () => {
|
|
36100
|
-
|
|
36231
|
+
var _a, _b;
|
|
36232
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
36101
36233
|
};
|
|
36102
36234
|
onMounted(() => {
|
|
36103
36235
|
if (props.activeColor || props.inactiveColor || props.borderColor) {
|
|
@@ -37837,7 +37969,7 @@ const _sfc_main$j = defineComponent({
|
|
|
37837
37969
|
const instance = getCurrentInstance();
|
|
37838
37970
|
const { t } = useLocale();
|
|
37839
37971
|
const ns = useNamespace("table-filter");
|
|
37840
|
-
const parent = instance
|
|
37972
|
+
const parent = instance == null ? void 0 : instance.parent;
|
|
37841
37973
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
37842
37974
|
parent.filterPanels.value[props.column.id] = instance;
|
|
37843
37975
|
}
|
|
@@ -37847,7 +37979,10 @@ const _sfc_main$j = defineComponent({
|
|
|
37847
37979
|
return props.column && props.column.filters;
|
|
37848
37980
|
});
|
|
37849
37981
|
const filterValue = computed({
|
|
37850
|
-
get: () =>
|
|
37982
|
+
get: () => {
|
|
37983
|
+
var _a;
|
|
37984
|
+
return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
|
|
37985
|
+
},
|
|
37851
37986
|
set: (value) => {
|
|
37852
37987
|
if (filteredValue.value) {
|
|
37853
37988
|
if (typeof value !== "undefined" && value !== null) {
|
|
@@ -37923,7 +38058,8 @@ const _sfc_main$j = defineComponent({
|
|
|
37923
38058
|
immediate: true
|
|
37924
38059
|
});
|
|
37925
38060
|
const popperPaneRef = computed(() => {
|
|
37926
|
-
|
|
38061
|
+
var _a, _b;
|
|
38062
|
+
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
37927
38063
|
});
|
|
37928
38064
|
return {
|
|
37929
38065
|
tooltipVisible,
|
|
@@ -40514,7 +40650,8 @@ const _sfc_main$h = defineComponent({
|
|
|
40514
40650
|
const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
|
|
40515
40651
|
const sizeDir = sizeName === "width" ? "x" : "y";
|
|
40516
40652
|
props.tabs.every((tab) => {
|
|
40517
|
-
|
|
40653
|
+
var _a, _b, _c, _d;
|
|
40654
|
+
const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.paneName}`];
|
|
40518
40655
|
if (!$el)
|
|
40519
40656
|
return false;
|
|
40520
40657
|
if (!tab.active) {
|
|
@@ -40522,7 +40659,7 @@ const _sfc_main$h = defineComponent({
|
|
|
40522
40659
|
}
|
|
40523
40660
|
tabSize = $el[`client${capitalize(sizeName)}`];
|
|
40524
40661
|
const position = sizeDir === "x" ? "left" : "top";
|
|
40525
|
-
offset = $el.getBoundingClientRect()[position] - ($el.parentElement
|
|
40662
|
+
offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
|
|
40526
40663
|
const tabStyles = window.getComputedStyle($el);
|
|
40527
40664
|
if (sizeName === "width") {
|
|
40528
40665
|
if (props.tabs.length > 1) {
|
|
@@ -41222,10 +41359,12 @@ const _sfc_main$f = defineComponent({
|
|
|
41222
41359
|
return result;
|
|
41223
41360
|
});
|
|
41224
41361
|
const blur = () => {
|
|
41225
|
-
|
|
41362
|
+
var _a, _b;
|
|
41363
|
+
(_b = (_a = select.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
41226
41364
|
};
|
|
41227
41365
|
const focus = () => {
|
|
41228
|
-
|
|
41366
|
+
var _a, _b;
|
|
41367
|
+
(_b = (_a = select.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
41229
41368
|
};
|
|
41230
41369
|
return {
|
|
41231
41370
|
select,
|
|
@@ -41828,7 +41967,8 @@ const _sfc_main$c = defineComponent({
|
|
|
41828
41967
|
const rightPanelTitle = computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
41829
41968
|
const panelFilterPlaceholder = computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
41830
41969
|
watch(() => props.modelValue, () => {
|
|
41831
|
-
|
|
41970
|
+
var _a;
|
|
41971
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
41832
41972
|
});
|
|
41833
41973
|
const optionRender = computed(() => (option) => {
|
|
41834
41974
|
if (props.renderContent)
|
|
@@ -43519,6 +43659,7 @@ const _hoisted_3$4 = {
|
|
|
43519
43659
|
class: "el-tree__drop-indicator"
|
|
43520
43660
|
};
|
|
43521
43661
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43662
|
+
var _a;
|
|
43522
43663
|
const _component_el_tree_node = resolveComponent("el-tree-node");
|
|
43523
43664
|
return openBlock(), createElementBlock("div", {
|
|
43524
43665
|
ref: "el$",
|
|
@@ -43543,7 +43684,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43543
43684
|
}, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
|
|
43544
43685
|
}), 128)),
|
|
43545
43686
|
_ctx.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
43546
|
-
createElementVNode("span", _hoisted_2$5, toDisplayString(_ctx.emptyText
|
|
43687
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
|
|
43547
43688
|
])) : createCommentVNode("v-if", true),
|
|
43548
43689
|
withDirectives(createElementVNode("div", _hoisted_3$4, null, 512), [
|
|
43549
43690
|
[vShow, _ctx.dragState.showDropIndicator]
|
|
@@ -44218,10 +44359,12 @@ const _sfc_main$8 = defineComponent({
|
|
|
44218
44359
|
setup(props, { emit }) {
|
|
44219
44360
|
const tree = inject(ROOT_TREE_INJECTION_KEY);
|
|
44220
44361
|
const indent = computed(() => {
|
|
44221
|
-
|
|
44362
|
+
var _a;
|
|
44363
|
+
return (_a = tree == null ? void 0 : tree.props.indent) != null ? _a : 16;
|
|
44222
44364
|
});
|
|
44223
44365
|
const icon = computed(() => {
|
|
44224
|
-
|
|
44366
|
+
var _a;
|
|
44367
|
+
return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
|
|
44225
44368
|
});
|
|
44226
44369
|
const handleClick = (e) => {
|
|
44227
44370
|
emit("click", props.node, e);
|
|
@@ -44233,11 +44376,12 @@ const _sfc_main$8 = defineComponent({
|
|
|
44233
44376
|
emit("check", props.node, value);
|
|
44234
44377
|
};
|
|
44235
44378
|
const handleContextMenu = (event) => {
|
|
44236
|
-
|
|
44379
|
+
var _a, _b, _c, _d;
|
|
44380
|
+
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"]) {
|
|
44237
44381
|
event.stopPropagation();
|
|
44238
44382
|
event.preventDefault();
|
|
44239
44383
|
}
|
|
44240
|
-
tree
|
|
44384
|
+
tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props.node) == null ? void 0 : _d.data, props.node);
|
|
44241
44385
|
};
|
|
44242
44386
|
return {
|
|
44243
44387
|
indent,
|
|
@@ -44251,6 +44395,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
44251
44395
|
});
|
|
44252
44396
|
const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key"];
|
|
44253
44397
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44398
|
+
var _a, _b, _c;
|
|
44254
44399
|
const _component_el_icon = resolveComponent("el-icon");
|
|
44255
44400
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
44256
44401
|
const _component_el_node_content = resolveComponent("el-node-content");
|
|
@@ -44267,7 +44412,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44267
44412
|
"aria-expanded": _ctx.expanded,
|
|
44268
44413
|
"aria-disabled": _ctx.disabled,
|
|
44269
44414
|
"aria-checked": _ctx.checked,
|
|
44270
|
-
"data-key": _ctx.node
|
|
44415
|
+
"data-key": (_a = _ctx.node) == null ? void 0 : _a.key,
|
|
44271
44416
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
44272
44417
|
onContextmenu: _cache[2] || (_cache[2] = (...args) => _ctx.handleContextMenu && _ctx.handleContextMenu(...args))
|
|
44273
44418
|
}, [
|
|
@@ -44279,9 +44424,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44279
44424
|
key: 0,
|
|
44280
44425
|
class: normalizeClass([
|
|
44281
44426
|
{
|
|
44282
|
-
"is-leaf": _ctx.node
|
|
44427
|
+
"is-leaf": (_b = _ctx.node) == null ? void 0 : _b.isLeaf,
|
|
44283
44428
|
"is-hidden": _ctx.hiddenExpandIcon,
|
|
44284
|
-
expanded: !_ctx.node
|
|
44429
|
+
expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
|
|
44285
44430
|
},
|
|
44286
44431
|
"el-tree-node__expand-icon"
|
|
44287
44432
|
]),
|
|
@@ -44384,6 +44529,7 @@ const _hoisted_1$5 = {
|
|
|
44384
44529
|
};
|
|
44385
44530
|
const _hoisted_2$4 = { class: "el-tree__empty-text" };
|
|
44386
44531
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44532
|
+
var _a;
|
|
44387
44533
|
const _component_el_tree_node = resolveComponent("el-tree-node");
|
|
44388
44534
|
const _component_fixed_size_list = resolveComponent("fixed-size-list");
|
|
44389
44535
|
return openBlock(), createElementBlock("div", {
|
|
@@ -44420,7 +44566,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44420
44566
|
]),
|
|
44421
44567
|
_: 1
|
|
44422
44568
|
}, 8, ["data", "total", "height", "item-size", "perf-mode"])) : (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
44423
|
-
createElementVNode("span", _hoisted_2$4, toDisplayString(_ctx.emptyText
|
|
44569
|
+
createElementVNode("span", _hoisted_2$4, toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
|
|
44424
44570
|
]))
|
|
44425
44571
|
], 2);
|
|
44426
44572
|
}
|
|
@@ -44707,9 +44853,10 @@ const _sfc_main$5 = defineComponent({
|
|
|
44707
44853
|
const uploader = inject("uploader", {});
|
|
44708
44854
|
const dragover = ref(false);
|
|
44709
44855
|
function onDrop(e) {
|
|
44856
|
+
var _a;
|
|
44710
44857
|
if (props.disabled || !uploader)
|
|
44711
44858
|
return;
|
|
44712
|
-
const accept = uploader.props
|
|
44859
|
+
const accept = ((_a = uploader.props) == null ? void 0 : _a.accept) || uploader.accept;
|
|
44713
44860
|
dragover.value = false;
|
|
44714
44861
|
if (!accept) {
|
|
44715
44862
|
emit("file", e.dataTransfer.files);
|
|
@@ -46236,6 +46383,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
46236
46383
|
};
|
|
46237
46384
|
},
|
|
46238
46385
|
render() {
|
|
46386
|
+
var _a, _b;
|
|
46239
46387
|
let uploadList;
|
|
46240
46388
|
if (this.showFileList) {
|
|
46241
46389
|
uploadList = h$1(UploadList, {
|
|
@@ -46283,12 +46431,12 @@ const _sfc_main$3 = defineComponent({
|
|
|
46283
46431
|
};
|
|
46284
46432
|
const trigger = this.$slots.trigger || this.$slots.default;
|
|
46285
46433
|
const uploadComponent = h$1(Upload$1, uploadData, {
|
|
46286
|
-
default: () => trigger
|
|
46434
|
+
default: () => trigger == null ? void 0 : trigger()
|
|
46287
46435
|
});
|
|
46288
46436
|
return h$1("div", [
|
|
46289
46437
|
this.listType === "picture-card" ? uploadList : null,
|
|
46290
46438
|
this.$slots.trigger ? [uploadComponent, this.$slots.default()] : uploadComponent,
|
|
46291
|
-
this.$slots.tip
|
|
46439
|
+
(_b = (_a = this.$slots).tip) == null ? void 0 : _b.call(_a),
|
|
46292
46440
|
this.listType !== "picture-card" ? uploadList : null
|
|
46293
46441
|
]);
|
|
46294
46442
|
}
|
|
@@ -46893,7 +47041,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
46893
47041
|
}
|
|
46894
47042
|
}
|
|
46895
47043
|
function clearTimer() {
|
|
46896
|
-
stopTimer
|
|
47044
|
+
stopTimer == null ? void 0 : stopTimer();
|
|
46897
47045
|
}
|
|
46898
47046
|
function close() {
|
|
46899
47047
|
visible.value = false;
|
|
@@ -47221,7 +47369,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
47221
47369
|
if (val) {
|
|
47222
47370
|
if (props.boxType === "alert" || props.boxType === "confirm") {
|
|
47223
47371
|
nextTick().then(() => {
|
|
47224
|
-
|
|
47372
|
+
var _a, _b, _c;
|
|
47373
|
+
(_c = (_b = (_a = confirmRef.value) == null ? void 0 : _a.$el) == null ? void 0 : _b.focus) == null ? void 0 : _c.call(_b);
|
|
47225
47374
|
});
|
|
47226
47375
|
}
|
|
47227
47376
|
state.zIndex = PopupManager.nextZIndex();
|
|
@@ -47270,12 +47419,13 @@ const _sfc_main$1 = defineComponent({
|
|
|
47270
47419
|
}
|
|
47271
47420
|
};
|
|
47272
47421
|
const handleAction = (action) => {
|
|
47422
|
+
var _a;
|
|
47273
47423
|
if (props.boxType === "prompt" && action === "confirm" && !validate()) {
|
|
47274
47424
|
return;
|
|
47275
47425
|
}
|
|
47276
47426
|
state.action = action;
|
|
47277
47427
|
if (state.beforeClose) {
|
|
47278
|
-
state.beforeClose
|
|
47428
|
+
(_a = state.beforeClose) == null ? void 0 : _a.call(state, action, state, doClose);
|
|
47279
47429
|
} else {
|
|
47280
47430
|
doClose();
|
|
47281
47431
|
}
|
|
@@ -47757,7 +47907,7 @@ const _sfc_main = defineComponent({
|
|
|
47757
47907
|
}
|
|
47758
47908
|
}
|
|
47759
47909
|
function clearTimer() {
|
|
47760
|
-
timer
|
|
47910
|
+
timer == null ? void 0 : timer();
|
|
47761
47911
|
}
|
|
47762
47912
|
function close() {
|
|
47763
47913
|
visible.value = false;
|