@element-plus/nightly 0.0.20220123 → 0.0.20220124
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 +585 -440
- 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 +585 -440
- 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/src/index.mjs +2 -1
- package/es/components/autocomplete/src/index.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +2 -1
- 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/index.mjs +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/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +45 -104
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +107 -45
- 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/index.mjs +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/src/index.js +2 -1
- package/lib/components/autocomplete/src/index.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +2 -1
- 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/index.js +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/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +45 -104
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +107 -45
- 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/index.js +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 v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220124 */
|
|
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 = "0.0.
|
|
4543
|
+
const version$1 = "0.0.20220124";
|
|
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);
|
|
@@ -10112,7 +10131,8 @@ const _sfc_main$1X = defineComponent({
|
|
|
10112
10131
|
activated.value = false;
|
|
10113
10132
|
};
|
|
10114
10133
|
const focus = () => {
|
|
10115
|
-
|
|
10134
|
+
var _a;
|
|
10135
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
10116
10136
|
};
|
|
10117
10137
|
const select = (item) => {
|
|
10118
10138
|
ctx.emit("input", item[props.valueKey]);
|
|
@@ -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
|
}
|
|
@@ -10673,8 +10694,8 @@ const _sfc_main$1S = defineComponent({
|
|
|
10673
10694
|
return {
|
|
10674
10695
|
ns,
|
|
10675
10696
|
link,
|
|
10676
|
-
separator: parent
|
|
10677
|
-
separatorIcon: parent
|
|
10697
|
+
separator: parent == null ? void 0 : parent.separator,
|
|
10698
|
+
separatorIcon: parent == null ? void 0 : parent.separatorIcon
|
|
10678
10699
|
};
|
|
10679
10700
|
}
|
|
10680
10701
|
});
|
|
@@ -11889,12 +11910,16 @@ const _sfc_main$1R = defineComponent({
|
|
|
11889
11910
|
const buttonGroupContext = inject(buttonGroupContextKey, void 0);
|
|
11890
11911
|
const globalConfig = useGlobalConfig("button");
|
|
11891
11912
|
const ns = useNamespace("button");
|
|
11892
|
-
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
|
+
});
|
|
11893
11917
|
const shouldAddSpace = computed(() => {
|
|
11894
|
-
|
|
11895
|
-
|
|
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) {
|
|
11896
11921
|
const slot = defaultSlot[0];
|
|
11897
|
-
if (slot
|
|
11922
|
+
if ((slot == null ? void 0 : slot.type) === Text) {
|
|
11898
11923
|
const text = slot.children;
|
|
11899
11924
|
return /^\p{Unified_Ideograph}{2}$/u.test(text);
|
|
11900
11925
|
}
|
|
@@ -11902,9 +11927,9 @@ const _sfc_main$1R = defineComponent({
|
|
|
11902
11927
|
return false;
|
|
11903
11928
|
});
|
|
11904
11929
|
const { form } = useFormItem();
|
|
11905
|
-
const buttonSize = useSize(computed(() => buttonGroupContext
|
|
11930
|
+
const buttonSize = useSize(computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
11906
11931
|
const buttonDisabled = useDisabled$1();
|
|
11907
|
-
const buttonType = computed(() => props.type || buttonGroupContext
|
|
11932
|
+
const buttonType = computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
11908
11933
|
const typeColor = computed(() => useCssVar(`--el-color-${props.type}`).value);
|
|
11909
11934
|
const buttonStyle = computed(() => {
|
|
11910
11935
|
let styles = {};
|
|
@@ -11943,7 +11968,7 @@ const _sfc_main$1R = defineComponent({
|
|
|
11943
11968
|
});
|
|
11944
11969
|
const handleClick = (evt) => {
|
|
11945
11970
|
if (props.nativeType === "reset") {
|
|
11946
|
-
form
|
|
11971
|
+
form == null ? void 0 : form.resetFields();
|
|
11947
11972
|
}
|
|
11948
11973
|
emit("click", evt);
|
|
11949
11974
|
};
|
|
@@ -12112,12 +12137,6 @@ function isEqual$1(value, other) {
|
|
|
12112
12137
|
|
|
12113
12138
|
var isEqual_1 = isEqual$1;
|
|
12114
12139
|
|
|
12115
|
-
const isValidWidthUnit = (val) => {
|
|
12116
|
-
if (isNumber(val)) {
|
|
12117
|
-
return true;
|
|
12118
|
-
}
|
|
12119
|
-
return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
|
|
12120
|
-
};
|
|
12121
12140
|
const isValidComponentSize = (val) => ["", "large", "default", "small"].includes(val);
|
|
12122
12141
|
const isValidDatePickType = (val) => [
|
|
12123
12142
|
"year",
|
|
@@ -12302,6 +12321,7 @@ const _sfc_main$1P = defineComponent({
|
|
|
12302
12321
|
const pickerActualVisible = ref(false);
|
|
12303
12322
|
const valueOnOpen = ref(null);
|
|
12304
12323
|
watch(pickerVisible, (val) => {
|
|
12324
|
+
var _a;
|
|
12305
12325
|
if (!val) {
|
|
12306
12326
|
userInput.value = null;
|
|
12307
12327
|
nextTick(() => {
|
|
@@ -12309,15 +12329,16 @@ const _sfc_main$1P = defineComponent({
|
|
|
12309
12329
|
});
|
|
12310
12330
|
ctx.emit("blur");
|
|
12311
12331
|
blurInput();
|
|
12312
|
-
props.validateEvent && elFormItem.validate
|
|
12332
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur"));
|
|
12313
12333
|
} else {
|
|
12314
12334
|
valueOnOpen.value = props.modelValue;
|
|
12315
12335
|
}
|
|
12316
12336
|
});
|
|
12317
12337
|
const emitChange = (val, isClear) => {
|
|
12338
|
+
var _a;
|
|
12318
12339
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
12319
12340
|
ctx.emit("change", val);
|
|
12320
|
-
props.validateEvent && elFormItem.validate
|
|
12341
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change"));
|
|
12321
12342
|
}
|
|
12322
12343
|
};
|
|
12323
12344
|
const emitInput = (val) => {
|
|
@@ -12339,10 +12360,10 @@ const _sfc_main$1P = defineComponent({
|
|
|
12339
12360
|
return [];
|
|
12340
12361
|
});
|
|
12341
12362
|
const refStartInput = computed(() => {
|
|
12342
|
-
return refInput
|
|
12363
|
+
return refInput == null ? void 0 : refInput.value[0];
|
|
12343
12364
|
});
|
|
12344
12365
|
const refEndInput = computed(() => {
|
|
12345
|
-
return refInput
|
|
12366
|
+
return refInput == null ? void 0 : refInput.value[1];
|
|
12346
12367
|
});
|
|
12347
12368
|
const setSelectionRange = (start, end, pos) => {
|
|
12348
12369
|
const _inputs = refInput.value;
|
|
@@ -12383,7 +12404,8 @@ const _sfc_main$1P = defineComponent({
|
|
|
12383
12404
|
ctx.emit("focus", e);
|
|
12384
12405
|
};
|
|
12385
12406
|
const handleBlur = () => {
|
|
12386
|
-
|
|
12407
|
+
var _a;
|
|
12408
|
+
(_a = refPopper.value) == null ? void 0 : _a.onClose();
|
|
12387
12409
|
blurInput();
|
|
12388
12410
|
};
|
|
12389
12411
|
const pickerDisabled = computed(() => {
|
|
@@ -12470,14 +12492,19 @@ const _sfc_main$1P = defineComponent({
|
|
|
12470
12492
|
});
|
|
12471
12493
|
const pickerSize = useSize();
|
|
12472
12494
|
const popperPaneRef = computed(() => {
|
|
12473
|
-
|
|
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;
|
|
12474
12501
|
});
|
|
12475
|
-
const popperEl = computed(() => unref(refPopper)?.popperRef?.contentRef);
|
|
12476
12502
|
const actualInputRef = computed(() => {
|
|
12503
|
+
var _a;
|
|
12477
12504
|
if (unref(isRangeInput)) {
|
|
12478
12505
|
return unref(inputRef);
|
|
12479
12506
|
}
|
|
12480
|
-
return unref(inputRef)
|
|
12507
|
+
return (_a = unref(inputRef)) == null ? void 0 : _a.$el;
|
|
12481
12508
|
});
|
|
12482
12509
|
onClickOutside(actualInputRef, (e) => {
|
|
12483
12510
|
const unrefedPopperEl = unref(popperEl);
|
|
@@ -14249,8 +14276,8 @@ const _hoisted_1$14 = {
|
|
|
14249
14276
|
const _hoisted_2$N = { class: "el-time-range-picker__content" };
|
|
14250
14277
|
const _hoisted_3$A = { class: "el-time-range-picker__cell" };
|
|
14251
14278
|
const _hoisted_4$m = { class: "el-time-range-picker__header" };
|
|
14252
|
-
const _hoisted_5$
|
|
14253
|
-
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" };
|
|
14254
14281
|
const _hoisted_7$9 = { class: "el-time-panel__footer" };
|
|
14255
14282
|
const _hoisted_8$8 = ["disabled"];
|
|
14256
14283
|
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -14278,8 +14305,8 @@ function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
14278
14305
|
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onChange", "onSetOption", "onSelectRange"])
|
|
14279
14306
|
], 2)
|
|
14280
14307
|
]),
|
|
14281
|
-
createElementVNode("div", _hoisted_5$
|
|
14282
|
-
createElementVNode("div", _hoisted_6$
|
|
14308
|
+
createElementVNode("div", _hoisted_5$e, [
|
|
14309
|
+
createElementVNode("div", _hoisted_6$c, toDisplayString(_ctx.t("el.datepicker.endTime")), 1),
|
|
14283
14310
|
createElementVNode("div", {
|
|
14284
14311
|
class: normalizeClass([{ "has-seconds": _ctx.showSeconds, "is-arrow": _ctx.arrowControl }, "el-time-range-picker__body el-time-panel__content"])
|
|
14285
14312
|
}, [
|
|
@@ -15328,7 +15355,8 @@ const _sfc_main$1H = defineComponent({
|
|
|
15328
15355
|
return index;
|
|
15329
15356
|
}
|
|
15330
15357
|
function calcCardTranslate(index, activeIndex) {
|
|
15331
|
-
|
|
15358
|
+
var _a;
|
|
15359
|
+
const parentWidth = ((_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
15332
15360
|
if (data.inStage) {
|
|
15333
15361
|
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
15334
15362
|
} else if (index < activeIndex) {
|
|
@@ -15338,7 +15366,8 @@ const _sfc_main$1H = defineComponent({
|
|
|
15338
15366
|
}
|
|
15339
15367
|
}
|
|
15340
15368
|
function calcTranslate(index, activeIndex, isVertical) {
|
|
15341
|
-
|
|
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;
|
|
15342
15371
|
return distance * (index - activeIndex);
|
|
15343
15372
|
}
|
|
15344
15373
|
const translateItem = (index, activeIndex, oldIndex) => {
|
|
@@ -15654,45 +15683,48 @@ const _sfc_main$1G = defineComponent({
|
|
|
15654
15683
|
},
|
|
15655
15684
|
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
15656
15685
|
setup(props) {
|
|
15657
|
-
|
|
15686
|
+
const ns = useNamespace("checkbox");
|
|
15687
|
+
return {
|
|
15688
|
+
ns,
|
|
15689
|
+
...useCheckbox(props)
|
|
15690
|
+
};
|
|
15658
15691
|
}
|
|
15659
15692
|
});
|
|
15660
15693
|
const _hoisted_1$10 = ["id", "aria-controls"];
|
|
15661
15694
|
const _hoisted_2$K = ["tabindex", "role", "aria-checked"];
|
|
15662
|
-
const _hoisted_3$y =
|
|
15663
|
-
const _hoisted_4$l = ["aria-hidden", "
|
|
15664
|
-
const _hoisted_5$e = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15665
|
-
const _hoisted_6$c = {
|
|
15666
|
-
key: 0,
|
|
15667
|
-
class: "el-checkbox__label"
|
|
15668
|
-
};
|
|
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"];
|
|
15669
15697
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15670
15698
|
return openBlock(), createElementBlock("label", {
|
|
15671
15699
|
id: _ctx.id,
|
|
15672
|
-
class: normalizeClass([
|
|
15673
|
-
_ctx.
|
|
15674
|
-
|
|
15675
|
-
|
|
15676
|
-
|
|
15677
|
-
|
|
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
|
+
]),
|
|
15678
15707
|
"aria-controls": _ctx.indeterminate ? _ctx.controls : null
|
|
15679
15708
|
}, [
|
|
15680
15709
|
createElementVNode("span", {
|
|
15681
|
-
class: normalizeClass([
|
|
15682
|
-
"
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15686
|
-
|
|
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
|
+
]),
|
|
15687
15717
|
tabindex: _ctx.indeterminate ? 0 : void 0,
|
|
15688
15718
|
role: _ctx.indeterminate ? "checkbox" : void 0,
|
|
15689
15719
|
"aria-checked": _ctx.indeterminate ? "mixed" : false
|
|
15690
15720
|
}, [
|
|
15691
|
-
|
|
15721
|
+
createElementVNode("span", {
|
|
15722
|
+
class: normalizeClass(_ctx.ns.e("inner"))
|
|
15723
|
+
}, null, 2),
|
|
15692
15724
|
_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
15693
15725
|
key: 0,
|
|
15694
15726
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15695
|
-
class: "
|
|
15727
|
+
class: normalizeClass(_ctx.ns.e("original")),
|
|
15696
15728
|
type: "checkbox",
|
|
15697
15729
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15698
15730
|
name: _ctx.name,
|
|
@@ -15703,12 +15735,12 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15703
15735
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15704
15736
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15705
15737
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15706
|
-
}, null,
|
|
15738
|
+
}, null, 42, _hoisted_3$y)), [
|
|
15707
15739
|
[vModelCheckbox, _ctx.model]
|
|
15708
15740
|
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
15709
15741
|
key: 1,
|
|
15710
15742
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15711
|
-
class: "
|
|
15743
|
+
class: normalizeClass(_ctx.ns.e("original")),
|
|
15712
15744
|
type: "checkbox",
|
|
15713
15745
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15714
15746
|
disabled: _ctx.isDisabled,
|
|
@@ -15718,16 +15750,19 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15718
15750
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15719
15751
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15720
15752
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15721
|
-
}, null,
|
|
15753
|
+
}, null, 42, _hoisted_4$l)), [
|
|
15722
15754
|
[vModelCheckbox, _ctx.model]
|
|
15723
15755
|
])
|
|
15724
15756
|
], 10, _hoisted_2$K),
|
|
15725
|
-
_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
|
+
}, [
|
|
15726
15761
|
renderSlot(_ctx.$slots, "default"),
|
|
15727
15762
|
!_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
15728
15763
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
15729
15764
|
], 2112)) : createCommentVNode("v-if", true)
|
|
15730
|
-
])) : createCommentVNode("v-if", true)
|
|
15765
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
15731
15766
|
], 10, _hoisted_1$10);
|
|
15732
15767
|
}
|
|
15733
15768
|
var Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1B]]);
|
|
@@ -15739,12 +15774,14 @@ const _sfc_main$1F = defineComponent({
|
|
|
15739
15774
|
setup(props) {
|
|
15740
15775
|
const { focus, isChecked, isDisabled, size, model, handleChange } = useCheckbox(props);
|
|
15741
15776
|
const { checkboxGroup } = useCheckboxGroup();
|
|
15777
|
+
const ns = useNamespace("checkbox");
|
|
15742
15778
|
const activeStyle = computed(() => {
|
|
15743
|
-
|
|
15779
|
+
var _a, _b, _c, _d;
|
|
15780
|
+
const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
|
|
15744
15781
|
return {
|
|
15745
15782
|
backgroundColor: fillValue,
|
|
15746
15783
|
borderColor: fillValue,
|
|
15747
|
-
color: checkboxGroup
|
|
15784
|
+
color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
|
|
15748
15785
|
boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : null
|
|
15749
15786
|
};
|
|
15750
15787
|
});
|
|
@@ -15755,7 +15792,8 @@ const _sfc_main$1F = defineComponent({
|
|
|
15755
15792
|
model,
|
|
15756
15793
|
handleChange,
|
|
15757
15794
|
activeStyle,
|
|
15758
|
-
size
|
|
15795
|
+
size,
|
|
15796
|
+
ns
|
|
15759
15797
|
};
|
|
15760
15798
|
}
|
|
15761
15799
|
});
|
|
@@ -15764,12 +15802,13 @@ const _hoisted_2$J = ["name", "tabindex", "disabled", "true-value", "false-value
|
|
|
15764
15802
|
const _hoisted_3$x = ["name", "tabindex", "disabled", "value"];
|
|
15765
15803
|
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15766
15804
|
return openBlock(), createElementBlock("label", {
|
|
15767
|
-
class: normalizeClass([
|
|
15768
|
-
_ctx.
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
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
|
+
]),
|
|
15773
15812
|
role: "checkbox",
|
|
15774
15813
|
"aria-checked": _ctx.isChecked,
|
|
15775
15814
|
"aria-disabled": _ctx.isDisabled
|
|
@@ -15777,7 +15816,7 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15777
15816
|
_ctx.trueLabel || _ctx.falseLabel ? withDirectives((openBlock(), createElementBlock("input", {
|
|
15778
15817
|
key: 0,
|
|
15779
15818
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15780
|
-
class: "
|
|
15819
|
+
class: normalizeClass(_ctx.ns.be("button", "original")),
|
|
15781
15820
|
type: "checkbox",
|
|
15782
15821
|
name: _ctx.name,
|
|
15783
15822
|
tabindex: _ctx.tabindex,
|
|
@@ -15787,12 +15826,12 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15787
15826
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15788
15827
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15789
15828
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15790
|
-
}, null,
|
|
15829
|
+
}, null, 42, _hoisted_2$J)), [
|
|
15791
15830
|
[vModelCheckbox, _ctx.model]
|
|
15792
15831
|
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
15793
15832
|
key: 1,
|
|
15794
15833
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15795
|
-
class: "
|
|
15834
|
+
class: normalizeClass(_ctx.ns.be("button", "original")),
|
|
15796
15835
|
type: "checkbox",
|
|
15797
15836
|
name: _ctx.name,
|
|
15798
15837
|
tabindex: _ctx.tabindex,
|
|
@@ -15801,18 +15840,18 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15801
15840
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15802
15841
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15803
15842
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15804
|
-
}, null,
|
|
15843
|
+
}, null, 42, _hoisted_3$x)), [
|
|
15805
15844
|
[vModelCheckbox, _ctx.model]
|
|
15806
15845
|
]),
|
|
15807
15846
|
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
15808
15847
|
key: 2,
|
|
15809
|
-
class: "
|
|
15848
|
+
class: normalizeClass(_ctx.ns.be("button", "inner")),
|
|
15810
15849
|
style: normalizeStyle(_ctx.isChecked ? _ctx.activeStyle : null)
|
|
15811
15850
|
}, [
|
|
15812
15851
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15813
15852
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
15814
15853
|
])
|
|
15815
|
-
],
|
|
15854
|
+
], 6)) : createCommentVNode("v-if", true)
|
|
15816
15855
|
], 10, _hoisted_1$$);
|
|
15817
15856
|
}
|
|
15818
15857
|
var CheckboxButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1F, [["render", _sfc_render$1A]]);
|
|
@@ -15854,6 +15893,7 @@ const _sfc_main$1E = defineComponent({
|
|
|
15854
15893
|
setup(props, { emit, slots }) {
|
|
15855
15894
|
const { elFormItem } = useCheckboxGroup();
|
|
15856
15895
|
const checkboxGroupSize = useSize();
|
|
15896
|
+
const ns = useNamespace("checkbox");
|
|
15857
15897
|
const changeEvent = (value) => {
|
|
15858
15898
|
emit(UPDATE_MODEL_EVENT, value);
|
|
15859
15899
|
nextTick(() => {
|
|
@@ -15876,11 +15916,12 @@ const _sfc_main$1E = defineComponent({
|
|
|
15876
15916
|
changeEvent
|
|
15877
15917
|
});
|
|
15878
15918
|
watch(() => props.modelValue, () => {
|
|
15879
|
-
|
|
15919
|
+
var _a;
|
|
15920
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
15880
15921
|
});
|
|
15881
15922
|
return () => {
|
|
15882
15923
|
return h$1(props.tag, {
|
|
15883
|
-
class: "
|
|
15924
|
+
class: ns.b("group"),
|
|
15884
15925
|
role: "group",
|
|
15885
15926
|
"aria-label": "checkbox-group"
|
|
15886
15927
|
}, [renderSlot(slots, "default")]);
|
|
@@ -16055,10 +16096,10 @@ const _sfc_main$1C = defineComponent({
|
|
|
16055
16096
|
} = useRadio(props, emit);
|
|
16056
16097
|
const activeStyle = computed(() => {
|
|
16057
16098
|
return {
|
|
16058
|
-
backgroundColor: radioGroup
|
|
16059
|
-
borderColor: radioGroup
|
|
16060
|
-
boxShadow: radioGroup
|
|
16061
|
-
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) || ""
|
|
16062
16103
|
};
|
|
16063
16104
|
});
|
|
16064
16105
|
return {
|
|
@@ -16188,7 +16229,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
16188
16229
|
...toRefs(props),
|
|
16189
16230
|
changeEvent
|
|
16190
16231
|
}));
|
|
16191
|
-
watch(() => props.modelValue, () => formItem
|
|
16232
|
+
watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
|
|
16192
16233
|
return {
|
|
16193
16234
|
radioGroupRef,
|
|
16194
16235
|
handleKeydown
|
|
@@ -16255,15 +16296,19 @@ const _sfc_main$1A = defineComponent({
|
|
|
16255
16296
|
const isHoverMenu = computed(() => panel.isHoverMenu);
|
|
16256
16297
|
const multiple = computed(() => panel.config.multiple);
|
|
16257
16298
|
const checkStrictly = computed(() => panel.config.checkStrictly);
|
|
16258
|
-
const checkedNodeId = computed(() =>
|
|
16299
|
+
const checkedNodeId = computed(() => {
|
|
16300
|
+
var _a;
|
|
16301
|
+
return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
|
|
16302
|
+
});
|
|
16259
16303
|
const isDisabled = computed(() => props.node.isDisabled);
|
|
16260
16304
|
const isLeaf = computed(() => props.node.isLeaf);
|
|
16261
16305
|
const expandable = computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
16262
16306
|
const inExpandingPath = computed(() => isInPath(panel.expandingNode));
|
|
16263
16307
|
const inCheckedPath = computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
16264
16308
|
const isInPath = (node) => {
|
|
16309
|
+
var _a;
|
|
16265
16310
|
const { level, uid } = props.node;
|
|
16266
|
-
return node
|
|
16311
|
+
return ((_a = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a.uid) === uid;
|
|
16267
16312
|
};
|
|
16268
16313
|
const doExpand = () => {
|
|
16269
16314
|
if (inExpandingPath.value)
|
|
@@ -16531,28 +16576,31 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16531
16576
|
onMousemove: _ctx.handleMouseMove,
|
|
16532
16577
|
onMouseleave: _ctx.clearHoverZone
|
|
16533
16578
|
}, {
|
|
16534
|
-
default: withCtx(() =>
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
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
|
+
}),
|
|
16556
16604
|
_: 1
|
|
16557
16605
|
}, 8, ["view-class", "onMousemove", "onMouseleave"]);
|
|
16558
16606
|
}
|
|
@@ -16844,7 +16892,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16844
16892
|
const resolve = (dataList) => {
|
|
16845
16893
|
const _node = node;
|
|
16846
16894
|
const parent = _node.root ? null : _node;
|
|
16847
|
-
dataList && store
|
|
16895
|
+
dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
|
|
16848
16896
|
_node.loading = false;
|
|
16849
16897
|
_node.loaded = true;
|
|
16850
16898
|
_node.childrenData = _node.childrenData || [];
|
|
@@ -16853,6 +16901,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16853
16901
|
cfg.lazyLoad(node, resolve);
|
|
16854
16902
|
};
|
|
16855
16903
|
const expandNode = (node, silent) => {
|
|
16904
|
+
var _a;
|
|
16856
16905
|
const { level } = node;
|
|
16857
16906
|
const newMenus = menus.value.slice(0, level);
|
|
16858
16907
|
let newExpandingNode;
|
|
@@ -16862,17 +16911,17 @@ const _sfc_main$1y = defineComponent({
|
|
|
16862
16911
|
newExpandingNode = node;
|
|
16863
16912
|
newMenus.push(node.children);
|
|
16864
16913
|
}
|
|
16865
|
-
if (expandingNode.value
|
|
16914
|
+
if (((_a = expandingNode.value) == null ? void 0 : _a.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
|
|
16866
16915
|
expandingNode.value = node;
|
|
16867
16916
|
menus.value = newMenus;
|
|
16868
|
-
!silent && emit("expand-change", node
|
|
16917
|
+
!silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
|
|
16869
16918
|
}
|
|
16870
16919
|
};
|
|
16871
16920
|
const handleCheckChange = (node, checked, emitClose = true) => {
|
|
16872
16921
|
const { checkStrictly, multiple } = config.value;
|
|
16873
16922
|
const oldNode = checkedNodes.value[0];
|
|
16874
16923
|
manualChecked = true;
|
|
16875
|
-
!multiple && oldNode
|
|
16924
|
+
!multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
|
|
16876
16925
|
node.doCheck(checked);
|
|
16877
16926
|
calculateCheckedValue();
|
|
16878
16927
|
emitClose && !multiple && !checkStrictly && emit("close");
|
|
@@ -16886,23 +16935,25 @@ const _sfc_main$1y = defineComponent({
|
|
|
16886
16935
|
node && expandNode(node);
|
|
16887
16936
|
};
|
|
16888
16937
|
const getFlattedNodes = (leafOnly) => {
|
|
16889
|
-
return store
|
|
16938
|
+
return store == null ? void 0 : store.getFlattedNodes(leafOnly);
|
|
16890
16939
|
};
|
|
16891
16940
|
const getCheckedNodes = (leafOnly) => {
|
|
16892
|
-
|
|
16941
|
+
var _a;
|
|
16942
|
+
return (_a = getFlattedNodes(leafOnly)) == null ? void 0 : _a.filter((node) => node.checked !== false);
|
|
16893
16943
|
};
|
|
16894
16944
|
const clearCheckedNodes = () => {
|
|
16895
16945
|
checkedNodes.value.forEach((node) => node.doCheck(false));
|
|
16896
16946
|
calculateCheckedValue();
|
|
16897
16947
|
};
|
|
16898
16948
|
const calculateCheckedValue = () => {
|
|
16949
|
+
var _a;
|
|
16899
16950
|
const { checkStrictly, multiple } = config.value;
|
|
16900
16951
|
const oldNodes = checkedNodes.value;
|
|
16901
16952
|
const newNodes = getCheckedNodes(!checkStrictly);
|
|
16902
16953
|
const nodes = sortByOriginalOrder(oldNodes, newNodes);
|
|
16903
16954
|
const values = nodes.map((node) => node.valueByOption);
|
|
16904
16955
|
checkedNodes.value = nodes;
|
|
16905
|
-
checkedValue.value = multiple ? values : values[0]
|
|
16956
|
+
checkedValue.value = multiple ? values : (_a = values[0]) != null ? _a : null;
|
|
16906
16957
|
};
|
|
16907
16958
|
const syncCheckedValue = (loaded = false, forced = false) => {
|
|
16908
16959
|
const { modelValue } = props;
|
|
@@ -16912,7 +16963,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16912
16963
|
return;
|
|
16913
16964
|
if (lazy && !loaded) {
|
|
16914
16965
|
const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
|
|
16915
|
-
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);
|
|
16916
16967
|
if (nodes.length) {
|
|
16917
16968
|
nodes.forEach((node) => {
|
|
16918
16969
|
lazyLoad(node, () => syncCheckedValue(false, forced));
|
|
@@ -16922,7 +16973,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16922
16973
|
}
|
|
16923
16974
|
} else {
|
|
16924
16975
|
const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
|
|
16925
|
-
const nodes = deduplicate(values.map((val) => store
|
|
16976
|
+
const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
|
|
16926
16977
|
syncMenuState(nodes, false);
|
|
16927
16978
|
checkedValue.value = modelValue;
|
|
16928
16979
|
}
|
|
@@ -16931,7 +16982,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16931
16982
|
const { checkStrictly } = config.value;
|
|
16932
16983
|
const oldNodes = checkedNodes.value;
|
|
16933
16984
|
const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
|
|
16934
|
-
const oldExpandingNode = store
|
|
16985
|
+
const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
|
|
16935
16986
|
const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
|
|
16936
16987
|
if (newExpandingNode) {
|
|
16937
16988
|
newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
|
|
@@ -16947,7 +16998,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
16947
16998
|
if (!isClient)
|
|
16948
16999
|
return;
|
|
16949
17000
|
menuList.value.forEach((menu) => {
|
|
16950
|
-
const menuElement = menu
|
|
17001
|
+
const menuElement = menu == null ? void 0 : menu.$el;
|
|
16951
17002
|
if (menuElement) {
|
|
16952
17003
|
const container = menuElement.querySelector(".el-scrollbar__wrap");
|
|
16953
17004
|
const activeNode = menuElement.querySelector(".el-cascader-node.is-active") || menuElement.querySelector(".el-cascader-node.in-active-path");
|
|
@@ -16969,14 +17020,14 @@ const _sfc_main$1y = defineComponent({
|
|
|
16969
17020
|
case EVENT_CODE.left: {
|
|
16970
17021
|
e.preventDefault();
|
|
16971
17022
|
const preMenu = menuList.value[getMenuIndex(target) - 1];
|
|
16972
|
-
const expandedNode = preMenu
|
|
17023
|
+
const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
|
|
16973
17024
|
focusNode(expandedNode);
|
|
16974
17025
|
break;
|
|
16975
17026
|
}
|
|
16976
17027
|
case EVENT_CODE.right: {
|
|
16977
17028
|
e.preventDefault();
|
|
16978
17029
|
const nextMenu = menuList.value[getMenuIndex(target) + 1];
|
|
16979
|
-
const firstNode = nextMenu
|
|
17030
|
+
const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
16980
17031
|
focusNode(firstNode);
|
|
16981
17032
|
break;
|
|
16982
17033
|
}
|
|
@@ -17286,7 +17337,10 @@ const _sfc_main$1w = defineComponent({
|
|
|
17286
17337
|
const multiple = computed(() => !!props.props.multiple);
|
|
17287
17338
|
const readonly = computed(() => !props.filterable || multiple.value);
|
|
17288
17339
|
const searchKeyword = computed(() => multiple.value ? searchInputValue.value : inputValue.value);
|
|
17289
|
-
const checkedNodes = computed(() =>
|
|
17340
|
+
const checkedNodes = computed(() => {
|
|
17341
|
+
var _a;
|
|
17342
|
+
return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
|
|
17343
|
+
});
|
|
17290
17344
|
const clearBtnVisible = computed(() => {
|
|
17291
17345
|
if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
|
|
17292
17346
|
return false;
|
|
@@ -17302,24 +17356,27 @@ const _sfc_main$1w = defineComponent({
|
|
|
17302
17356
|
return props.modelValue;
|
|
17303
17357
|
},
|
|
17304
17358
|
set(val) {
|
|
17359
|
+
var _a;
|
|
17305
17360
|
emit(UPDATE_MODEL_EVENT, val);
|
|
17306
17361
|
emit(CHANGE_EVENT, val);
|
|
17307
|
-
elFormItem.validate
|
|
17362
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
17308
17363
|
}
|
|
17309
17364
|
});
|
|
17310
17365
|
const popperPaneRef = computed(() => {
|
|
17311
|
-
|
|
17366
|
+
var _a, _b;
|
|
17367
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
17312
17368
|
});
|
|
17313
17369
|
const togglePopperVisible = (visible) => {
|
|
17370
|
+
var _a, _b, _c;
|
|
17314
17371
|
if (isDisabled.value)
|
|
17315
17372
|
return;
|
|
17316
|
-
visible = visible
|
|
17373
|
+
visible = visible != null ? visible : !popperVisible.value;
|
|
17317
17374
|
if (visible !== popperVisible.value) {
|
|
17318
17375
|
popperVisible.value = visible;
|
|
17319
|
-
input.value
|
|
17376
|
+
(_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
|
|
17320
17377
|
if (visible) {
|
|
17321
17378
|
updatePopperPosition();
|
|
17322
|
-
nextTick(panel.value
|
|
17379
|
+
nextTick((_c = panel.value) == null ? void 0 : _c.scrollToExpandingNode);
|
|
17323
17380
|
} else if (props.filterable) {
|
|
17324
17381
|
const { value } = presentText;
|
|
17325
17382
|
inputValue.value = value;
|
|
@@ -17330,7 +17387,8 @@ const _sfc_main$1w = defineComponent({
|
|
|
17330
17387
|
};
|
|
17331
17388
|
const updatePopperPosition = () => {
|
|
17332
17389
|
nextTick(() => {
|
|
17333
|
-
|
|
17390
|
+
var _a;
|
|
17391
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
|
|
17334
17392
|
});
|
|
17335
17393
|
};
|
|
17336
17394
|
const hideSuggestionPanel = () => {
|
|
@@ -17347,9 +17405,10 @@ const _sfc_main$1w = defineComponent({
|
|
|
17347
17405
|
};
|
|
17348
17406
|
};
|
|
17349
17407
|
const deleteTag = (tag) => {
|
|
17408
|
+
var _a;
|
|
17350
17409
|
const node = tag.node;
|
|
17351
17410
|
node.doCheck(false);
|
|
17352
|
-
panel.value
|
|
17411
|
+
(_a = panel.value) == null ? void 0 : _a.calculateCheckedValue();
|
|
17353
17412
|
emit("remove-tag", node.valueByOption);
|
|
17354
17413
|
};
|
|
17355
17414
|
const calculatePresentTags = () => {
|
|
@@ -17376,8 +17435,9 @@ const _sfc_main$1w = defineComponent({
|
|
|
17376
17435
|
presentTags.value = tags;
|
|
17377
17436
|
};
|
|
17378
17437
|
const calculateSuggestions = () => {
|
|
17438
|
+
var _a, _b;
|
|
17379
17439
|
const { filterMethod, showAllLevels, separator } = props;
|
|
17380
|
-
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) => {
|
|
17381
17441
|
if (node.isDisabled)
|
|
17382
17442
|
return false;
|
|
17383
17443
|
node.calcText(showAllLevels, separator);
|
|
@@ -17393,11 +17453,12 @@ const _sfc_main$1w = defineComponent({
|
|
|
17393
17453
|
updatePopperPosition();
|
|
17394
17454
|
};
|
|
17395
17455
|
const focusFirstNode = () => {
|
|
17456
|
+
var _a;
|
|
17396
17457
|
let firstNode;
|
|
17397
17458
|
if (filtering.value && suggestionPanel.value) {
|
|
17398
17459
|
firstNode = suggestionPanel.value.$el.querySelector(".el-cascader__suggestion-item");
|
|
17399
17460
|
} else {
|
|
17400
|
-
firstNode = panel.value
|
|
17461
|
+
firstNode = (_a = panel.value) == null ? void 0 : _a.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
17401
17462
|
}
|
|
17402
17463
|
if (firstNode) {
|
|
17403
17464
|
firstNode.focus();
|
|
@@ -17405,9 +17466,10 @@ const _sfc_main$1w = defineComponent({
|
|
|
17405
17466
|
}
|
|
17406
17467
|
};
|
|
17407
17468
|
const updateStyle = () => {
|
|
17408
|
-
|
|
17469
|
+
var _a, _b;
|
|
17470
|
+
const inputInner = (_a = input.value) == null ? void 0 : _a.input;
|
|
17409
17471
|
const tagWrapperEl = tagWrapper.value;
|
|
17410
|
-
const suggestionPanelEl = suggestionPanel.value
|
|
17472
|
+
const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
|
|
17411
17473
|
if (!isClient || !inputInner)
|
|
17412
17474
|
return;
|
|
17413
17475
|
if (suggestionPanelEl) {
|
|
@@ -17422,14 +17484,16 @@ const _sfc_main$1w = defineComponent({
|
|
|
17422
17484
|
}
|
|
17423
17485
|
};
|
|
17424
17486
|
const getCheckedNodes = (leafOnly) => {
|
|
17425
|
-
|
|
17487
|
+
var _a;
|
|
17488
|
+
return (_a = panel.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
|
|
17426
17489
|
};
|
|
17427
17490
|
const handleExpandChange = (value) => {
|
|
17428
17491
|
updatePopperPosition();
|
|
17429
17492
|
emit("expand-change", value);
|
|
17430
17493
|
};
|
|
17431
17494
|
const handleComposition = (event) => {
|
|
17432
|
-
|
|
17495
|
+
var _a;
|
|
17496
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
17433
17497
|
if (event.type === "compositionend") {
|
|
17434
17498
|
isOnComposition.value = false;
|
|
17435
17499
|
nextTick(() => handleInput(text));
|
|
@@ -17457,15 +17521,17 @@ const _sfc_main$1w = defineComponent({
|
|
|
17457
17521
|
}
|
|
17458
17522
|
};
|
|
17459
17523
|
const handleClear = () => {
|
|
17460
|
-
|
|
17524
|
+
var _a;
|
|
17525
|
+
(_a = panel.value) == null ? void 0 : _a.clearCheckedNodes();
|
|
17461
17526
|
togglePopperVisible(false);
|
|
17462
17527
|
};
|
|
17463
17528
|
const handleSuggestionClick = (node) => {
|
|
17529
|
+
var _a, _b;
|
|
17464
17530
|
const { checked } = node;
|
|
17465
17531
|
if (multiple.value) {
|
|
17466
|
-
panel.value
|
|
17532
|
+
(_a = panel.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
|
|
17467
17533
|
} else {
|
|
17468
|
-
!checked && panel.value
|
|
17534
|
+
!checked && ((_b = panel.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
|
|
17469
17535
|
togglePopperVisible(false);
|
|
17470
17536
|
}
|
|
17471
17537
|
};
|
|
@@ -17516,7 +17582,7 @@ const _sfc_main$1w = defineComponent({
|
|
|
17516
17582
|
}, props.debounce);
|
|
17517
17583
|
const handleInput = (val, e) => {
|
|
17518
17584
|
!popperVisible.value && togglePopperVisible(true);
|
|
17519
|
-
if (e
|
|
17585
|
+
if (e == null ? void 0 : e.isComposing)
|
|
17520
17586
|
return;
|
|
17521
17587
|
val ? handleFilter() : hideSuggestionPanel();
|
|
17522
17588
|
};
|
|
@@ -17527,12 +17593,14 @@ const _sfc_main$1w = defineComponent({
|
|
|
17527
17593
|
});
|
|
17528
17594
|
watch(presentText, (val) => inputValue.value = val, { immediate: true });
|
|
17529
17595
|
onMounted(() => {
|
|
17530
|
-
|
|
17531
|
-
|
|
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;
|
|
17532
17599
|
addResizeListener(inputEl, updateStyle);
|
|
17533
17600
|
});
|
|
17534
17601
|
onBeforeUnmount(() => {
|
|
17535
|
-
|
|
17602
|
+
var _a;
|
|
17603
|
+
removeResizeListener((_a = input.value) == null ? void 0 : _a.$el, updateStyle);
|
|
17536
17604
|
});
|
|
17537
17605
|
return {
|
|
17538
17606
|
popperOptions,
|
|
@@ -18074,7 +18142,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
18074
18142
|
const isClick = ref(false);
|
|
18075
18143
|
const id = ref(generateId());
|
|
18076
18144
|
const isActive = computed(() => {
|
|
18077
|
-
return collapse
|
|
18145
|
+
return (collapse == null ? void 0 : collapse.activeNames.value.indexOf(props.name)) > -1;
|
|
18078
18146
|
});
|
|
18079
18147
|
const handleFocus = () => {
|
|
18080
18148
|
setTimeout(() => {
|
|
@@ -18088,12 +18156,12 @@ const _sfc_main$1s = defineComponent({
|
|
|
18088
18156
|
const handleHeaderClick = () => {
|
|
18089
18157
|
if (props.disabled)
|
|
18090
18158
|
return;
|
|
18091
|
-
collapse
|
|
18159
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18092
18160
|
focusing.value = false;
|
|
18093
18161
|
isClick.value = true;
|
|
18094
18162
|
};
|
|
18095
18163
|
const handleEnterClick = () => {
|
|
18096
|
-
collapse
|
|
18164
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18097
18165
|
};
|
|
18098
18166
|
return {
|
|
18099
18167
|
isActive,
|
|
@@ -18993,10 +19061,11 @@ const _sfc_main$1n = defineComponent({
|
|
|
18993
19061
|
color.fromString(customInput.value);
|
|
18994
19062
|
}
|
|
18995
19063
|
function confirmValue() {
|
|
19064
|
+
var _a;
|
|
18996
19065
|
const value = color.value;
|
|
18997
19066
|
emit(UPDATE_MODEL_EVENT, value);
|
|
18998
19067
|
emit("change", value);
|
|
18999
|
-
elFormItem.validate
|
|
19068
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
19000
19069
|
debounceSetShowPicker(false);
|
|
19001
19070
|
nextTick(() => {
|
|
19002
19071
|
const newColor = new Color({
|
|
@@ -19010,11 +19079,12 @@ const _sfc_main$1n = defineComponent({
|
|
|
19010
19079
|
});
|
|
19011
19080
|
}
|
|
19012
19081
|
function clear() {
|
|
19082
|
+
var _a;
|
|
19013
19083
|
debounceSetShowPicker(false);
|
|
19014
19084
|
emit(UPDATE_MODEL_EVENT, null);
|
|
19015
19085
|
emit("change", null);
|
|
19016
19086
|
if (props.modelValue !== null) {
|
|
19017
|
-
elFormItem.validate
|
|
19087
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
19018
19088
|
}
|
|
19019
19089
|
resetColor();
|
|
19020
19090
|
}
|
|
@@ -19025,9 +19095,10 @@ const _sfc_main$1n = defineComponent({
|
|
|
19025
19095
|
});
|
|
19026
19096
|
watch(() => showPicker.value, () => {
|
|
19027
19097
|
nextTick(() => {
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
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();
|
|
19031
19102
|
});
|
|
19032
19103
|
});
|
|
19033
19104
|
provide(OPTIONS_KEY, {
|
|
@@ -19535,6 +19606,7 @@ const _sfc_main$1h = defineComponent({
|
|
|
19535
19606
|
return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
|
|
19536
19607
|
});
|
|
19537
19608
|
const rows = computed(() => {
|
|
19609
|
+
var _a;
|
|
19538
19610
|
const startOfMonth = props.date.startOf("month");
|
|
19539
19611
|
const startOfMonthDay = startOfMonth.day() || 7;
|
|
19540
19612
|
const dateCountOfMonth = startOfMonth.daysInMonth();
|
|
@@ -19574,7 +19646,7 @@ const _sfc_main$1h = defineComponent({
|
|
|
19574
19646
|
cell.type = "normal";
|
|
19575
19647
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19576
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");
|
|
19577
|
-
if (props.minDate
|
|
19649
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19578
19650
|
cell.start = calEndDate && calTime.isSame(calEndDate, "day");
|
|
19579
19651
|
cell.end = props.minDate && calTime.isSame(props.minDate, "day");
|
|
19580
19652
|
} else {
|
|
@@ -19843,6 +19915,7 @@ const _sfc_main$1g = defineComponent({
|
|
|
19843
19915
|
const lastRow = ref(null);
|
|
19844
19916
|
const lastColumn = ref(null);
|
|
19845
19917
|
const rows = computed(() => {
|
|
19918
|
+
var _a;
|
|
19846
19919
|
const rows2 = tableRows.value;
|
|
19847
19920
|
const now = dayjs().locale(lang.value).startOf("month");
|
|
19848
19921
|
for (let i = 0; i < 3; i++) {
|
|
@@ -19864,7 +19937,7 @@ const _sfc_main$1g = defineComponent({
|
|
|
19864
19937
|
const calTime = props.date.startOf("year").month(index);
|
|
19865
19938
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19866
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");
|
|
19867
|
-
if (props.minDate
|
|
19940
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19868
19941
|
cell.start = calEndDate && calTime.isSame(calEndDate, "month");
|
|
19869
19942
|
cell.end = props.minDate && calTime.isSame(props.minDate, "month");
|
|
19870
19943
|
} else {
|
|
@@ -20282,7 +20355,7 @@ const _sfc_main$1e = defineComponent({
|
|
|
20282
20355
|
currentView.value = "date";
|
|
20283
20356
|
}, { immediate: true });
|
|
20284
20357
|
watch(() => currentView.value, () => {
|
|
20285
|
-
popper
|
|
20358
|
+
popper == null ? void 0 : popper.updatePopper();
|
|
20286
20359
|
});
|
|
20287
20360
|
const hasShortcuts = computed(() => !!shortcuts.length);
|
|
20288
20361
|
const handleMonthPick = (month2) => {
|
|
@@ -22116,13 +22189,18 @@ const _sfc_main$1a = defineComponent({
|
|
|
22116
22189
|
return node;
|
|
22117
22190
|
};
|
|
22118
22191
|
const getRows = () => {
|
|
22119
|
-
|
|
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
|
+
});
|
|
22120
22197
|
const rows = [];
|
|
22121
22198
|
let temp = [];
|
|
22122
22199
|
let count = props.column;
|
|
22123
22200
|
let totalSpan = 0;
|
|
22124
22201
|
children.forEach((node, index) => {
|
|
22125
|
-
|
|
22202
|
+
var _a2;
|
|
22203
|
+
const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
|
|
22126
22204
|
if (index < children.length - 1) {
|
|
22127
22205
|
totalSpan += span > count ? count : span;
|
|
22128
22206
|
}
|
|
@@ -22365,8 +22443,7 @@ const dialogProps = buildProps({
|
|
|
22365
22443
|
},
|
|
22366
22444
|
modalClass: String,
|
|
22367
22445
|
width: {
|
|
22368
|
-
type: [String, Number]
|
|
22369
|
-
validator: isValidWidthUnit
|
|
22446
|
+
type: [String, Number]
|
|
22370
22447
|
},
|
|
22371
22448
|
zIndex: {
|
|
22372
22449
|
type: Number
|
|
@@ -23035,7 +23112,7 @@ const _sfc_main$16 = defineComponent({
|
|
|
23035
23112
|
on(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23036
23113
|
trapContainer.dispatchEvent(unmountEvent);
|
|
23037
23114
|
if (!unmountEvent.defaultPrevented) {
|
|
23038
|
-
tryFocus(lastFocusBeforeMounted
|
|
23115
|
+
tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
|
|
23039
23116
|
}
|
|
23040
23117
|
off(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23041
23118
|
focusableStack.remove(focusLayer);
|
|
@@ -23212,7 +23289,8 @@ const _sfc_main$13 = defineComponent({
|
|
|
23212
23289
|
props: rovingFocusGroupProps,
|
|
23213
23290
|
emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
|
|
23214
23291
|
setup(props, { emit }) {
|
|
23215
|
-
|
|
23292
|
+
var _a;
|
|
23293
|
+
const currentTabbedId = ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);
|
|
23216
23294
|
const isBackingOut = ref(false);
|
|
23217
23295
|
const isClickFocus = ref(false);
|
|
23218
23296
|
const rovingFocusGroupRef = ref(null);
|
|
@@ -23232,18 +23310,20 @@ const _sfc_main$13 = defineComponent({
|
|
|
23232
23310
|
isBackingOut.value = true;
|
|
23233
23311
|
};
|
|
23234
23312
|
const onMousedown = composeEventHandlers((e) => {
|
|
23235
|
-
|
|
23313
|
+
var _a2;
|
|
23314
|
+
(_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);
|
|
23236
23315
|
}, () => {
|
|
23237
23316
|
isClickFocus.value = true;
|
|
23238
23317
|
});
|
|
23239
23318
|
const onFocus = composeEventHandlers((e) => {
|
|
23240
|
-
|
|
23319
|
+
var _a2;
|
|
23320
|
+
(_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);
|
|
23241
23321
|
}, (e) => {
|
|
23242
23322
|
const isKeyboardFocus = !unref(isClickFocus);
|
|
23243
23323
|
const { target, currentTarget } = e;
|
|
23244
23324
|
if (target === currentTarget && isKeyboardFocus && !unref(isBackingOut)) {
|
|
23245
23325
|
const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
|
|
23246
|
-
currentTarget
|
|
23326
|
+
currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
|
|
23247
23327
|
if (!entryFocusEvt.defaultPrevented) {
|
|
23248
23328
|
const items = getItems().filter((item) => item.focusable);
|
|
23249
23329
|
const activeItem = items.find((item) => item.active);
|
|
@@ -23256,7 +23336,8 @@ const _sfc_main$13 = defineComponent({
|
|
|
23256
23336
|
isClickFocus.value = false;
|
|
23257
23337
|
});
|
|
23258
23338
|
const onBlur = composeEventHandlers((e) => {
|
|
23259
|
-
|
|
23339
|
+
var _a2;
|
|
23340
|
+
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
23260
23341
|
}, () => {
|
|
23261
23342
|
isBackingOut.value = false;
|
|
23262
23343
|
});
|
|
@@ -23280,7 +23361,7 @@ const _sfc_main$13 = defineComponent({
|
|
|
23280
23361
|
onMousedown
|
|
23281
23362
|
});
|
|
23282
23363
|
watch(() => props.currentTabId, (val) => {
|
|
23283
|
-
currentTabbedId.value = val
|
|
23364
|
+
currentTabbedId.value = val != null ? val : null;
|
|
23284
23365
|
});
|
|
23285
23366
|
onMounted(() => {
|
|
23286
23367
|
const rovingFocusGroupEl = unref(rovingFocusGroupRef);
|
|
@@ -23539,10 +23620,12 @@ const _sfc_main$10 = defineComponent({
|
|
|
23539
23620
|
handleClose();
|
|
23540
23621
|
}
|
|
23541
23622
|
function handleClose() {
|
|
23542
|
-
|
|
23623
|
+
var _a;
|
|
23624
|
+
(_a = popperRef.value) == null ? void 0 : _a.onClose();
|
|
23543
23625
|
}
|
|
23544
23626
|
function handleOpen() {
|
|
23545
|
-
|
|
23627
|
+
var _a;
|
|
23628
|
+
(_a = popperRef.value) == null ? void 0 : _a.onOpen();
|
|
23546
23629
|
}
|
|
23547
23630
|
const dropdownSize = useSize();
|
|
23548
23631
|
function commandHandler(...args) {
|
|
@@ -23552,7 +23635,7 @@ const _sfc_main$10 = defineComponent({
|
|
|
23552
23635
|
}
|
|
23553
23636
|
function onItemLeave() {
|
|
23554
23637
|
const contentEl = unref(contentRef);
|
|
23555
|
-
contentEl
|
|
23638
|
+
contentEl == null ? void 0 : contentEl.focus();
|
|
23556
23639
|
currentTabId.value = null;
|
|
23557
23640
|
}
|
|
23558
23641
|
function handleCurrentTabIdChange(id) {
|
|
@@ -23579,8 +23662,9 @@ const _sfc_main$10 = defineComponent({
|
|
|
23579
23662
|
hideOnClick: toRef(props, "hideOnClick")
|
|
23580
23663
|
});
|
|
23581
23664
|
const onMountOnFocus = (e) => {
|
|
23665
|
+
var _a, _b;
|
|
23582
23666
|
e.preventDefault();
|
|
23583
|
-
contentRef.value
|
|
23667
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {
|
|
23584
23668
|
preventScroll: true
|
|
23585
23669
|
});
|
|
23586
23670
|
};
|
|
@@ -23607,6 +23691,7 @@ const _sfc_main$10 = defineComponent({
|
|
|
23607
23691
|
});
|
|
23608
23692
|
const _hoisted_1$G = { class: "el-dropdown" };
|
|
23609
23693
|
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23694
|
+
var _a;
|
|
23610
23695
|
const _component_el_dropdown_collection = resolveComponent("el-dropdown-collection");
|
|
23611
23696
|
const _component_el_roving_focus_group = resolveComponent("el-roving-focus-group");
|
|
23612
23697
|
const _component_el_focus_trap = resolveComponent("el-focus-trap");
|
|
@@ -23627,7 +23712,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23627
23712
|
"manual-mode": true,
|
|
23628
23713
|
placement: _ctx.placement,
|
|
23629
23714
|
"popper-class": `el-dropdown__popper ${_ctx.popperClass}`,
|
|
23630
|
-
"reference-element": _ctx.referenceElementRef
|
|
23715
|
+
"reference-element": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,
|
|
23631
23716
|
trigger: _ctx.trigger,
|
|
23632
23717
|
"show-after": _ctx.showTimeout,
|
|
23633
23718
|
"stop-popper-mouse-event": false,
|
|
@@ -23823,18 +23908,22 @@ const _sfc_main$_ = defineComponent({
|
|
|
23823
23908
|
const { elDropdown } = useDropdown();
|
|
23824
23909
|
const _instance = getCurrentInstance();
|
|
23825
23910
|
const itemRef = ref(null);
|
|
23826
|
-
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
|
+
});
|
|
23827
23915
|
const { onItemEnter, onItemLeave } = inject(DROPDOWN_INJECTION_KEY, void 0);
|
|
23828
23916
|
const handlePointerMove = composeEventHandlers((e) => {
|
|
23829
23917
|
emit("pointermove", e);
|
|
23830
23918
|
return e.defaultPrevented;
|
|
23831
23919
|
}, whenMouse((e) => {
|
|
23920
|
+
var _a;
|
|
23832
23921
|
if (props.disabled) {
|
|
23833
23922
|
onItemLeave(e);
|
|
23834
23923
|
} else {
|
|
23835
23924
|
onItemEnter(e);
|
|
23836
23925
|
if (!e.defaultPrevented) {
|
|
23837
|
-
e.currentTarget
|
|
23926
|
+
(_a = e.currentTarget) == null ? void 0 : _a.focus();
|
|
23838
23927
|
}
|
|
23839
23928
|
}
|
|
23840
23929
|
}));
|
|
@@ -23848,14 +23937,15 @@ const _sfc_main$_ = defineComponent({
|
|
|
23848
23937
|
emit("click", e);
|
|
23849
23938
|
return e.defaultPrevented;
|
|
23850
23939
|
}, (e) => {
|
|
23940
|
+
var _a, _b, _c;
|
|
23851
23941
|
if (props.disabled) {
|
|
23852
23942
|
e.stopImmediatePropagation();
|
|
23853
23943
|
return;
|
|
23854
23944
|
}
|
|
23855
|
-
if (elDropdown
|
|
23856
|
-
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);
|
|
23857
23947
|
}
|
|
23858
|
-
elDropdown.commandHandler
|
|
23948
|
+
(_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);
|
|
23859
23949
|
});
|
|
23860
23950
|
return {
|
|
23861
23951
|
handleClick,
|
|
@@ -23866,12 +23956,13 @@ const _sfc_main$_ = defineComponent({
|
|
|
23866
23956
|
}
|
|
23867
23957
|
});
|
|
23868
23958
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23959
|
+
var _a;
|
|
23869
23960
|
const _component_el_dropdown_item_impl = resolveComponent("el-dropdown-item-impl");
|
|
23870
23961
|
const _component_el_roving_focus_item = resolveComponent("el-roving-focus-item");
|
|
23871
23962
|
const _component_el_dropdown_collection_item = resolveComponent("el-dropdown-collection-item");
|
|
23872
23963
|
return openBlock(), createBlock(_component_el_dropdown_collection_item, {
|
|
23873
23964
|
disabled: _ctx.disabled,
|
|
23874
|
-
"text-value": _ctx.textValue
|
|
23965
|
+
"text-value": (_a = _ctx.textValue) != null ? _a : _ctx.textContent
|
|
23875
23966
|
}, {
|
|
23876
23967
|
default: withCtx(() => [
|
|
23877
23968
|
createVNode(_component_el_roving_focus_item, {
|
|
@@ -23923,7 +24014,8 @@ const _sfc_main$Z = defineComponent({
|
|
|
23923
24014
|
});
|
|
23924
24015
|
const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
|
23925
24016
|
const composedKeydown = composeEventHandlers((e) => {
|
|
23926
|
-
|
|
24017
|
+
var _a;
|
|
24018
|
+
(_a = props.onKeydown) == null ? void 0 : _a.call(props, e);
|
|
23927
24019
|
}, (e) => {
|
|
23928
24020
|
const { currentTarget, code, target } = e;
|
|
23929
24021
|
currentTarget.contains(target);
|
|
@@ -25912,10 +26004,11 @@ const _sfc_main$V = defineComponent({
|
|
|
25912
26004
|
const model = {};
|
|
25913
26005
|
model[props.prop] = fieldValue.value;
|
|
25914
26006
|
validator.validate(model, { firstFields: true }, (errors, fields) => {
|
|
26007
|
+
var _a;
|
|
25915
26008
|
validateState.value = !errors ? "success" : "error";
|
|
25916
26009
|
validateMessage.value = errors ? errors[0].message || `${props.prop} is required` : "";
|
|
25917
26010
|
callback(validateMessage.value, errors ? fields : {});
|
|
25918
|
-
elForm.emit
|
|
26011
|
+
(_a = elForm.emit) == null ? void 0 : _a.call(elForm, "validate", props.prop, !errors, validateMessage.value || null);
|
|
25919
26012
|
});
|
|
25920
26013
|
};
|
|
25921
26014
|
const clearValidate = () => {
|
|
@@ -25960,7 +26053,8 @@ const _sfc_main$V = defineComponent({
|
|
|
25960
26053
|
}).map((rule) => ({ ...rule }));
|
|
25961
26054
|
};
|
|
25962
26055
|
const evaluateValidationEnabled = () => {
|
|
25963
|
-
|
|
26056
|
+
var _a;
|
|
26057
|
+
isValidationEnabled.value = !!((_a = getRules()) == null ? void 0 : _a.length);
|
|
25964
26058
|
};
|
|
25965
26059
|
const updateComputedLabelWidth = (width) => {
|
|
25966
26060
|
computedLabelWidth.value = width ? `${width}px` : "";
|
|
@@ -25978,14 +26072,14 @@ const _sfc_main$V = defineComponent({
|
|
|
25978
26072
|
});
|
|
25979
26073
|
onMounted(() => {
|
|
25980
26074
|
if (props.prop) {
|
|
25981
|
-
elForm
|
|
26075
|
+
elForm == null ? void 0 : elForm.addField(elFormItem);
|
|
25982
26076
|
const value = fieldValue.value;
|
|
25983
26077
|
initialValue = Array.isArray(value) ? [...value] : value;
|
|
25984
26078
|
evaluateValidationEnabled();
|
|
25985
26079
|
}
|
|
25986
26080
|
});
|
|
25987
26081
|
onBeforeUnmount(() => {
|
|
25988
|
-
elForm
|
|
26082
|
+
elForm == null ? void 0 : elForm.removeField(elFormItem);
|
|
25989
26083
|
});
|
|
25990
26084
|
provide(elFormItemKey, elFormItem);
|
|
25991
26085
|
const formItemClass = computed(() => [
|
|
@@ -26313,7 +26407,7 @@ const _sfc_main$U = defineComponent({
|
|
|
26313
26407
|
watch(currentImg, () => {
|
|
26314
26408
|
nextTick(() => {
|
|
26315
26409
|
const $img = img.value;
|
|
26316
|
-
if (
|
|
26410
|
+
if (!($img == null ? void 0 : $img.complete)) {
|
|
26317
26411
|
loading.value = true;
|
|
26318
26412
|
}
|
|
26319
26413
|
});
|
|
@@ -26323,8 +26417,9 @@ const _sfc_main$U = defineComponent({
|
|
|
26323
26417
|
emit("switch", val);
|
|
26324
26418
|
});
|
|
26325
26419
|
onMounted(() => {
|
|
26420
|
+
var _a, _b;
|
|
26326
26421
|
registerEventListener();
|
|
26327
|
-
wrapper.value
|
|
26422
|
+
(_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26328
26423
|
});
|
|
26329
26424
|
return {
|
|
26330
26425
|
index,
|
|
@@ -26631,6 +26726,7 @@ const _sfc_main$T = defineComponent({
|
|
|
26631
26726
|
}
|
|
26632
26727
|
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);
|
|
26633
26728
|
async function addLazyLoadListener() {
|
|
26729
|
+
var _a;
|
|
26634
26730
|
if (!isClient)
|
|
26635
26731
|
return;
|
|
26636
26732
|
await nextTick();
|
|
@@ -26638,7 +26734,7 @@ const _sfc_main$T = defineComponent({
|
|
|
26638
26734
|
if (isHtmlElement(scrollContainer)) {
|
|
26639
26735
|
_scrollContainer.value = scrollContainer;
|
|
26640
26736
|
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
26641
|
-
_scrollContainer.value = document.querySelector(scrollContainer)
|
|
26737
|
+
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
26642
26738
|
} else if (container.value) {
|
|
26643
26739
|
_scrollContainer.value = getScrollContainer(container.value);
|
|
26644
26740
|
}
|
|
@@ -26675,7 +26771,7 @@ const _sfc_main$T = defineComponent({
|
|
|
26675
26771
|
showViewer.value = true;
|
|
26676
26772
|
}
|
|
26677
26773
|
function closeViewer() {
|
|
26678
|
-
stopWheelListener
|
|
26774
|
+
stopWheelListener == null ? void 0 : stopWheelListener();
|
|
26679
26775
|
document.body.style.overflow = prevOverflow;
|
|
26680
26776
|
showViewer.value = false;
|
|
26681
26777
|
emit("close");
|
|
@@ -26921,6 +27017,7 @@ const _sfc_main$S = defineComponent({
|
|
|
26921
27017
|
setCurrentValue(newVal);
|
|
26922
27018
|
};
|
|
26923
27019
|
const setCurrentValue = (newVal) => {
|
|
27020
|
+
var _a;
|
|
26924
27021
|
const oldVal = data.currentValue;
|
|
26925
27022
|
if (typeof newVal === "number" && props.precision !== void 0) {
|
|
26926
27023
|
newVal = toPrecision(newVal, props.precision);
|
|
@@ -26938,7 +27035,7 @@ const _sfc_main$S = defineComponent({
|
|
|
26938
27035
|
emit("update:modelValue", newVal);
|
|
26939
27036
|
emit("input", newVal);
|
|
26940
27037
|
emit("change", newVal, oldVal);
|
|
26941
|
-
formItem
|
|
27038
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
26942
27039
|
data.currentValue = newVal;
|
|
26943
27040
|
};
|
|
26944
27041
|
const handleInput = (value) => {
|
|
@@ -26952,17 +27049,20 @@ const _sfc_main$S = defineComponent({
|
|
|
26952
27049
|
data.userInput = null;
|
|
26953
27050
|
};
|
|
26954
27051
|
const focus = () => {
|
|
26955
|
-
|
|
27052
|
+
var _a, _b;
|
|
27053
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26956
27054
|
};
|
|
26957
27055
|
const blur = () => {
|
|
26958
|
-
|
|
27056
|
+
var _a, _b;
|
|
27057
|
+
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
26959
27058
|
};
|
|
26960
27059
|
const handleFocus = (event) => {
|
|
26961
27060
|
emit("focus", event);
|
|
26962
27061
|
};
|
|
26963
27062
|
const handleBlur = (event) => {
|
|
27063
|
+
var _a;
|
|
26964
27064
|
emit("blur", event);
|
|
26965
|
-
formItem
|
|
27065
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
26966
27066
|
};
|
|
26967
27067
|
watch(() => props.modelValue, (value) => {
|
|
26968
27068
|
let newVal = Number(value);
|
|
@@ -26991,7 +27091,8 @@ const _sfc_main$S = defineComponent({
|
|
|
26991
27091
|
data.userInput = null;
|
|
26992
27092
|
}, { immediate: true });
|
|
26993
27093
|
onMounted(() => {
|
|
26994
|
-
|
|
27094
|
+
var _a;
|
|
27095
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
26995
27096
|
innerInput.setAttribute("role", "spinbutton");
|
|
26996
27097
|
innerInput.setAttribute("aria-valuemax", String(props.max));
|
|
26997
27098
|
innerInput.setAttribute("aria-valuemin", String(props.min));
|
|
@@ -27006,7 +27107,8 @@ const _sfc_main$S = defineComponent({
|
|
|
27006
27107
|
}
|
|
27007
27108
|
});
|
|
27008
27109
|
onUpdated(() => {
|
|
27009
|
-
|
|
27110
|
+
var _a;
|
|
27111
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
27010
27112
|
innerInput.setAttribute("aria-valuenow", data.currentValue);
|
|
27011
27113
|
});
|
|
27012
27114
|
return {
|
|
@@ -28482,7 +28584,8 @@ const _sfc_main$J = defineComponent({
|
|
|
28482
28584
|
const isFitInputWidth = computed(() => select.props.fitInputWidth);
|
|
28483
28585
|
const minWidth = ref("");
|
|
28484
28586
|
function updateMinWidth() {
|
|
28485
|
-
|
|
28587
|
+
var _a;
|
|
28588
|
+
minWidth.value = `${(_a = select.selectWrapper) == null ? void 0 : _a.getBoundingClientRect().width}px`;
|
|
28486
28589
|
}
|
|
28487
28590
|
onMounted(() => {
|
|
28488
28591
|
updateMinWidth();
|
|
@@ -29406,7 +29509,8 @@ const _sfc_main$I = defineComponent({
|
|
|
29406
29509
|
ctx.emit(UPDATE_MODEL_EVENT, "");
|
|
29407
29510
|
}
|
|
29408
29511
|
const popperPaneRef = computed(() => {
|
|
29409
|
-
|
|
29512
|
+
var _a, _b;
|
|
29513
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
29410
29514
|
});
|
|
29411
29515
|
return {
|
|
29412
29516
|
tagInMultiLine,
|
|
@@ -29751,9 +29855,10 @@ const _sfc_main$H = defineComponent({
|
|
|
29751
29855
|
const children2 = [];
|
|
29752
29856
|
if (Array.isArray(node.children)) {
|
|
29753
29857
|
node.children.forEach((child) => {
|
|
29858
|
+
var _a;
|
|
29754
29859
|
if (child.type && child.type.name === "ElOption" && child.component && child.component.proxy) {
|
|
29755
29860
|
children2.push(child.component.proxy);
|
|
29756
|
-
} else if (child.children
|
|
29861
|
+
} else if ((_a = child.children) == null ? void 0 : _a.length) {
|
|
29757
29862
|
children2.push(...flattedChildren(child));
|
|
29758
29863
|
}
|
|
29759
29864
|
});
|
|
@@ -29835,9 +29940,10 @@ const _sfc_main$G = defineComponent({
|
|
|
29835
29940
|
});
|
|
29836
29941
|
const innerPagesizes = computed(() => props.pageSizes);
|
|
29837
29942
|
function handleChange(val) {
|
|
29943
|
+
var _a;
|
|
29838
29944
|
if (val !== innerPageSize.value) {
|
|
29839
29945
|
innerPageSize.value = val;
|
|
29840
|
-
pagination.handleSizeChange
|
|
29946
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
|
29841
29947
|
}
|
|
29842
29948
|
}
|
|
29843
29949
|
return {
|
|
@@ -29884,13 +29990,16 @@ const _sfc_main$F = defineComponent({
|
|
|
29884
29990
|
const { t } = useLocale();
|
|
29885
29991
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
29886
29992
|
const userInput = ref();
|
|
29887
|
-
const innerValue = computed(() =>
|
|
29993
|
+
const innerValue = computed(() => {
|
|
29994
|
+
var _a;
|
|
29995
|
+
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
29996
|
+
});
|
|
29888
29997
|
function handleInput(val) {
|
|
29889
29998
|
userInput.value = +val;
|
|
29890
29999
|
}
|
|
29891
30000
|
function handleChange(val) {
|
|
29892
30001
|
val = Math.trunc(+val);
|
|
29893
|
-
changeEvent
|
|
30002
|
+
changeEvent == null ? void 0 : changeEvent(+val);
|
|
29894
30003
|
userInput.value = void 0;
|
|
29895
30004
|
}
|
|
29896
30005
|
return {
|
|
@@ -30425,17 +30534,20 @@ const _sfc_main$C = defineComponent({
|
|
|
30425
30534
|
const { t } = useLocale();
|
|
30426
30535
|
const tooltipRef = ref();
|
|
30427
30536
|
const hidePopper = () => {
|
|
30428
|
-
|
|
30537
|
+
var _a, _b;
|
|
30538
|
+
(_b = (_a = unref(tooltipRef)) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
30429
30539
|
};
|
|
30430
30540
|
const handleCallback = () => {
|
|
30431
30541
|
hidePopper();
|
|
30432
30542
|
};
|
|
30433
30543
|
const confirm = (e) => {
|
|
30434
|
-
|
|
30544
|
+
var _a;
|
|
30545
|
+
(_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
|
|
30435
30546
|
handleCallback();
|
|
30436
30547
|
};
|
|
30437
30548
|
const cancel = (e) => {
|
|
30438
|
-
|
|
30549
|
+
var _a;
|
|
30550
|
+
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
30439
30551
|
handleCallback();
|
|
30440
30552
|
};
|
|
30441
30553
|
const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
@@ -30551,7 +30663,8 @@ const _sfc_main$B = defineComponent({
|
|
|
30551
30663
|
setup(props) {
|
|
30552
30664
|
const tooltipRef = ref(null);
|
|
30553
30665
|
const popperRef = computed(() => {
|
|
30554
|
-
|
|
30666
|
+
var _a;
|
|
30667
|
+
return (_a = unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
30555
30668
|
});
|
|
30556
30669
|
const width = computed(() => {
|
|
30557
30670
|
if (isString$1(props.width)) {
|
|
@@ -30575,7 +30688,8 @@ const _sfc_main$B = defineComponent({
|
|
|
30575
30688
|
];
|
|
30576
30689
|
});
|
|
30577
30690
|
const hide = () => {
|
|
30578
|
-
|
|
30691
|
+
var _a;
|
|
30692
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
30579
30693
|
};
|
|
30580
30694
|
return {
|
|
30581
30695
|
kls,
|
|
@@ -30788,6 +30902,7 @@ const _sfc_main$A = defineComponent({
|
|
|
30788
30902
|
});
|
|
30789
30903
|
const content = computed(() => props.format(props.percentage));
|
|
30790
30904
|
const getCurrentColor = (percentage) => {
|
|
30905
|
+
var _a;
|
|
30791
30906
|
const { color } = props;
|
|
30792
30907
|
if (typeof color === "function") {
|
|
30793
30908
|
return color(percentage);
|
|
@@ -30809,7 +30924,7 @@ const _sfc_main$A = defineComponent({
|
|
|
30809
30924
|
if (color2.percentage > percentage)
|
|
30810
30925
|
return color2.color;
|
|
30811
30926
|
}
|
|
30812
|
-
return colors[colors.length - 1]
|
|
30927
|
+
return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
|
|
30813
30928
|
}
|
|
30814
30929
|
};
|
|
30815
30930
|
const slotData = computed(() => {
|
|
@@ -33359,6 +33474,7 @@ const _sfc_main$v = defineComponent({
|
|
|
33359
33474
|
};
|
|
33360
33475
|
},
|
|
33361
33476
|
render(_ctx, _cache) {
|
|
33477
|
+
var _a;
|
|
33362
33478
|
const {
|
|
33363
33479
|
$slots,
|
|
33364
33480
|
data,
|
|
@@ -33385,7 +33501,7 @@ const _sfc_main$v = defineComponent({
|
|
|
33385
33501
|
style: {
|
|
33386
33502
|
width: `${width}px`
|
|
33387
33503
|
}
|
|
33388
|
-
}, $slots.empty
|
|
33504
|
+
}, (_a = $slots.empty) == null ? void 0 : _a.call($slots));
|
|
33389
33505
|
}
|
|
33390
33506
|
const ListItem = withCtx((scoped) => {
|
|
33391
33507
|
const { index, data: data2 } = scoped;
|
|
@@ -34260,67 +34376,49 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34260
34376
|
onShow: _ctx.handleMenuEnter,
|
|
34261
34377
|
onHide: _cache[23] || (_cache[23] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
34262
34378
|
}, {
|
|
34263
|
-
default: withCtx(() =>
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
|
|
34267
|
-
"
|
|
34268
|
-
"
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34280
|
-
|
|
34281
|
-
|
|
34282
|
-
"disable-transitions": "",
|
|
34283
|
-
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34284
|
-
}, {
|
|
34285
|
-
default: withCtx(() => [
|
|
34286
|
-
createElementVNode("span", {
|
|
34287
|
-
class: "el-select-v2__tags-text",
|
|
34288
|
-
style: normalizeStyle({
|
|
34289
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34290
|
-
})
|
|
34291
|
-
}, toDisplayString(_ctx.states.cachedOptions[0]?.label), 5)
|
|
34292
|
-
]),
|
|
34293
|
-
_: 1
|
|
34294
|
-
}, 8, ["closable", "size"]),
|
|
34295
|
-
_ctx.modelValue.length > 1 ? (openBlock(), createBlock(_component_el_tag, {
|
|
34296
|
-
key: 0,
|
|
34297
|
-
closable: false,
|
|
34298
|
-
size: _ctx.collapseTagSize,
|
|
34299
|
-
type: "info",
|
|
34300
|
-
"disable-transitions": ""
|
|
34301
|
-
}, {
|
|
34302
|
-
default: withCtx(() => [
|
|
34303
|
-
createElementVNode("span", {
|
|
34304
|
-
class: "el-select-v2__tags-text",
|
|
34305
|
-
style: normalizeStyle({
|
|
34306
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34307
|
-
})
|
|
34308
|
-
}, "+ " + toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34309
|
-
]),
|
|
34310
|
-
_: 1
|
|
34311
|
-
}, 8, ["size"])) : createCommentVNode("v-if", true)
|
|
34312
|
-
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34313
|
-
return openBlock(), createElementBlock("div", {
|
|
34314
|
-
key: idx,
|
|
34315
|
-
class: "el-select-v2__selected-item"
|
|
34316
|
-
}, [
|
|
34317
|
-
(openBlock(), createBlock(_component_el_tag, {
|
|
34318
|
-
key: _ctx.getValueKey(selected),
|
|
34319
|
-
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),
|
|
34320
34398
|
size: _ctx.collapseTagSize,
|
|
34321
34399
|
type: "info",
|
|
34322
34400
|
"disable-transitions": "",
|
|
34323
|
-
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": ""
|
|
34324
34422
|
}, {
|
|
34325
34423
|
default: withCtx(() => [
|
|
34326
34424
|
createElementVNode("span", {
|
|
@@ -34328,141 +34426,165 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34328
34426
|
style: normalizeStyle({
|
|
34329
34427
|
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34330
34428
|
})
|
|
34331
|
-
}, toDisplayString(_ctx.
|
|
34429
|
+
}, "+ " + toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34332
34430
|
]),
|
|
34333
|
-
_:
|
|
34334
|
-
},
|
|
34335
|
-
])
|
|
34336
|
-
|
|
34337
|
-
|
|
34338
|
-
|
|
34339
|
-
|
|
34340
|
-
|
|
34341
|
-
|
|
34342
|
-
|
|
34343
|
-
|
|
34344
|
-
|
|
34345
|
-
|
|
34346
|
-
|
|
34347
|
-
|
|
34348
|
-
|
|
34349
|
-
|
|
34350
|
-
|
|
34351
|
-
|
|
34352
|
-
|
|
34353
|
-
|
|
34354
|
-
|
|
34355
|
-
|
|
34356
|
-
|
|
34357
|
-
|
|
34358
|
-
|
|
34359
|
-
|
|
34360
|
-
|
|
34361
|
-
|
|
34362
|
-
|
|
34363
|
-
|
|
34364
|
-
|
|
34365
|
-
|
|
34366
|
-
|
|
34367
|
-
|
|
34368
|
-
|
|
34369
|
-
|
|
34370
|
-
|
|
34371
|
-
|
|
34372
|
-
|
|
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
|
+
])
|
|
34373
34537
|
]),
|
|
34374
34538
|
_ctx.filterable ? (openBlock(), createElementBlock("span", {
|
|
34375
34539
|
key: 0,
|
|
34376
34540
|
ref: "calculatorRef",
|
|
34377
34541
|
"aria-hidden": "true",
|
|
34378
|
-
class: "el-select-v2__input-calculator",
|
|
34542
|
+
class: "el-select-v2__selected-item el-select-v2__input-calculator",
|
|
34379
34543
|
textContent: toDisplayString(_ctx.states.displayInputValue)
|
|
34380
|
-
}, null, 8,
|
|
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
|
-
|
|
34420
|
-
|
|
34421
|
-
|
|
34422
|
-
|
|
34423
|
-
|
|
34424
|
-
], 64)),
|
|
34425
|
-
_ctx.shouldShowPlaceholder ? (openBlock(), createElementBlock("span", {
|
|
34426
|
-
key: 3,
|
|
34427
|
-
class: normalizeClass({
|
|
34428
|
-
"el-select-v2__placeholder": true,
|
|
34429
|
-
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34430
|
-
})
|
|
34431
|
-
}, toDisplayString(_ctx.currentPlaceholder), 3)) : createCommentVNode("v-if", true),
|
|
34432
|
-
createElementVNode("span", _hoisted_9$1, [
|
|
34433
|
-
_ctx.iconComponent ? withDirectives((openBlock(), createBlock(_component_el_icon, {
|
|
34434
|
-
key: 0,
|
|
34435
|
-
class: normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34436
|
-
}, {
|
|
34437
|
-
default: withCtx(() => [
|
|
34438
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
34439
|
-
]),
|
|
34440
|
-
_: 1
|
|
34441
|
-
}, 8, ["class"])), [
|
|
34442
|
-
[vShow, !_ctx.showClearBtn]
|
|
34443
|
-
]) : createCommentVNode("v-if", true),
|
|
34444
|
-
_ctx.showClearBtn && _ctx.clearIcon ? (openBlock(), createBlock(_component_el_icon, {
|
|
34445
|
-
key: 1,
|
|
34446
|
-
class: "el-select-v2__caret el-input__icon",
|
|
34447
|
-
onClick: withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34448
|
-
}, {
|
|
34449
|
-
default: withCtx(() => [
|
|
34450
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon)))
|
|
34451
|
-
]),
|
|
34452
|
-
_: 1
|
|
34453
|
-
}, 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
34454
|
-
_ctx.validateState && _ctx.validateIcon ? (openBlock(), createBlock(_component_el_icon, {
|
|
34455
|
-
key: 2,
|
|
34456
|
-
class: "el-input__icon el-input__validateIcon"
|
|
34457
|
-
}, {
|
|
34458
|
-
default: withCtx(() => [
|
|
34459
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.validateIcon)))
|
|
34460
|
-
]),
|
|
34461
|
-
_: 1
|
|
34462
|
-
})) : createCommentVNode("v-if", true)
|
|
34463
|
-
])
|
|
34464
|
-
], 2)
|
|
34465
|
-
]),
|
|
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
|
+
}),
|
|
34466
34588
|
content: withCtx(() => [
|
|
34467
34589
|
createVNode(_component_el_select_menu, {
|
|
34468
34590
|
ref: "menuRef",
|
|
@@ -34926,9 +35048,10 @@ const _sfc_main$p = defineComponent({
|
|
|
34926
35048
|
};
|
|
34927
35049
|
},
|
|
34928
35050
|
render() {
|
|
35051
|
+
var _a;
|
|
34929
35052
|
return h$1("div", {
|
|
34930
35053
|
class: "el-slider__marks-text",
|
|
34931
|
-
style: this.mark
|
|
35054
|
+
style: (_a = this.mark) == null ? void 0 : _a.style
|
|
34932
35055
|
}, this.label);
|
|
34933
35056
|
}
|
|
34934
35057
|
});
|
|
@@ -35260,6 +35383,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
35260
35383
|
}
|
|
35261
35384
|
};
|
|
35262
35385
|
const setValues = () => {
|
|
35386
|
+
var _a, _b;
|
|
35263
35387
|
if (props.min > props.max) {
|
|
35264
35388
|
throwError("Slider", "min should not be greater than max.");
|
|
35265
35389
|
return;
|
|
@@ -35278,7 +35402,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
35278
35402
|
initData.firstValue = val[0];
|
|
35279
35403
|
initData.secondValue = val[1];
|
|
35280
35404
|
if (valueChanged()) {
|
|
35281
|
-
elFormItem.validate
|
|
35405
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
35282
35406
|
initData.oldValue = val.slice();
|
|
35283
35407
|
}
|
|
35284
35408
|
}
|
|
@@ -35290,7 +35414,7 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
35290
35414
|
} else {
|
|
35291
35415
|
initData.firstValue = val;
|
|
35292
35416
|
if (valueChanged()) {
|
|
35293
|
-
elFormItem.validate
|
|
35417
|
+
(_b = elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change");
|
|
35294
35418
|
initData.oldValue = val;
|
|
35295
35419
|
}
|
|
35296
35420
|
}
|
|
@@ -35773,7 +35897,8 @@ const _sfc_main$l = defineComponent({
|
|
|
35773
35897
|
return parent.steps.value.length;
|
|
35774
35898
|
});
|
|
35775
35899
|
const isLast = computed(() => {
|
|
35776
|
-
|
|
35900
|
+
var _a;
|
|
35901
|
+
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === currentInstance.uid;
|
|
35777
35902
|
});
|
|
35778
35903
|
const space = computed(() => {
|
|
35779
35904
|
return isSimple.value ? "" : parent.props.space;
|
|
@@ -36050,12 +36175,13 @@ const _sfc_main$k = defineComponent({
|
|
|
36050
36175
|
emit(INPUT_EVENT, props.inactiveValue);
|
|
36051
36176
|
}
|
|
36052
36177
|
watch(checked, () => {
|
|
36178
|
+
var _a;
|
|
36053
36179
|
input.value.checked = checked.value;
|
|
36054
36180
|
if (props.activeColor || props.inactiveColor) {
|
|
36055
36181
|
setBackgroundColor();
|
|
36056
36182
|
}
|
|
36057
36183
|
if (props.validateEvent) {
|
|
36058
|
-
formItem
|
|
36184
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
36059
36185
|
}
|
|
36060
36186
|
});
|
|
36061
36187
|
const handleChange = () => {
|
|
@@ -36102,7 +36228,8 @@ const _sfc_main$k = defineComponent({
|
|
|
36102
36228
|
coreEl.children[0].style.color = newColor;
|
|
36103
36229
|
};
|
|
36104
36230
|
const focus = () => {
|
|
36105
|
-
|
|
36231
|
+
var _a, _b;
|
|
36232
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
36106
36233
|
};
|
|
36107
36234
|
onMounted(() => {
|
|
36108
36235
|
if (props.activeColor || props.inactiveColor || props.borderColor) {
|
|
@@ -37842,7 +37969,7 @@ const _sfc_main$j = defineComponent({
|
|
|
37842
37969
|
const instance = getCurrentInstance();
|
|
37843
37970
|
const { t } = useLocale();
|
|
37844
37971
|
const ns = useNamespace("table-filter");
|
|
37845
|
-
const parent = instance
|
|
37972
|
+
const parent = instance == null ? void 0 : instance.parent;
|
|
37846
37973
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
37847
37974
|
parent.filterPanels.value[props.column.id] = instance;
|
|
37848
37975
|
}
|
|
@@ -37852,7 +37979,10 @@ const _sfc_main$j = defineComponent({
|
|
|
37852
37979
|
return props.column && props.column.filters;
|
|
37853
37980
|
});
|
|
37854
37981
|
const filterValue = computed({
|
|
37855
|
-
get: () =>
|
|
37982
|
+
get: () => {
|
|
37983
|
+
var _a;
|
|
37984
|
+
return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
|
|
37985
|
+
},
|
|
37856
37986
|
set: (value) => {
|
|
37857
37987
|
if (filteredValue.value) {
|
|
37858
37988
|
if (typeof value !== "undefined" && value !== null) {
|
|
@@ -37928,7 +38058,8 @@ const _sfc_main$j = defineComponent({
|
|
|
37928
38058
|
immediate: true
|
|
37929
38059
|
});
|
|
37930
38060
|
const popperPaneRef = computed(() => {
|
|
37931
|
-
|
|
38061
|
+
var _a, _b;
|
|
38062
|
+
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
37932
38063
|
});
|
|
37933
38064
|
return {
|
|
37934
38065
|
tooltipVisible,
|
|
@@ -40519,7 +40650,8 @@ const _sfc_main$h = defineComponent({
|
|
|
40519
40650
|
const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
|
|
40520
40651
|
const sizeDir = sizeName === "width" ? "x" : "y";
|
|
40521
40652
|
props.tabs.every((tab) => {
|
|
40522
|
-
|
|
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}`];
|
|
40523
40655
|
if (!$el)
|
|
40524
40656
|
return false;
|
|
40525
40657
|
if (!tab.active) {
|
|
@@ -40527,7 +40659,7 @@ const _sfc_main$h = defineComponent({
|
|
|
40527
40659
|
}
|
|
40528
40660
|
tabSize = $el[`client${capitalize(sizeName)}`];
|
|
40529
40661
|
const position = sizeDir === "x" ? "left" : "top";
|
|
40530
|
-
offset = $el.getBoundingClientRect()[position] - ($el.parentElement
|
|
40662
|
+
offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
|
|
40531
40663
|
const tabStyles = window.getComputedStyle($el);
|
|
40532
40664
|
if (sizeName === "width") {
|
|
40533
40665
|
if (props.tabs.length > 1) {
|
|
@@ -41227,10 +41359,12 @@ const _sfc_main$f = defineComponent({
|
|
|
41227
41359
|
return result;
|
|
41228
41360
|
});
|
|
41229
41361
|
const blur = () => {
|
|
41230
|
-
|
|
41362
|
+
var _a, _b;
|
|
41363
|
+
(_b = (_a = select.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
41231
41364
|
};
|
|
41232
41365
|
const focus = () => {
|
|
41233
|
-
|
|
41366
|
+
var _a, _b;
|
|
41367
|
+
(_b = (_a = select.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
41234
41368
|
};
|
|
41235
41369
|
return {
|
|
41236
41370
|
select,
|
|
@@ -41833,7 +41967,8 @@ const _sfc_main$c = defineComponent({
|
|
|
41833
41967
|
const rightPanelTitle = computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
41834
41968
|
const panelFilterPlaceholder = computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
41835
41969
|
watch(() => props.modelValue, () => {
|
|
41836
|
-
|
|
41970
|
+
var _a;
|
|
41971
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
41837
41972
|
});
|
|
41838
41973
|
const optionRender = computed(() => (option) => {
|
|
41839
41974
|
if (props.renderContent)
|
|
@@ -43524,6 +43659,7 @@ const _hoisted_3$4 = {
|
|
|
43524
43659
|
class: "el-tree__drop-indicator"
|
|
43525
43660
|
};
|
|
43526
43661
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43662
|
+
var _a;
|
|
43527
43663
|
const _component_el_tree_node = resolveComponent("el-tree-node");
|
|
43528
43664
|
return openBlock(), createElementBlock("div", {
|
|
43529
43665
|
ref: "el$",
|
|
@@ -43548,7 +43684,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43548
43684
|
}, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
|
|
43549
43685
|
}), 128)),
|
|
43550
43686
|
_ctx.isEmpty ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
43551
|
-
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)
|
|
43552
43688
|
])) : createCommentVNode("v-if", true),
|
|
43553
43689
|
withDirectives(createElementVNode("div", _hoisted_3$4, null, 512), [
|
|
43554
43690
|
[vShow, _ctx.dragState.showDropIndicator]
|
|
@@ -44223,10 +44359,12 @@ const _sfc_main$8 = defineComponent({
|
|
|
44223
44359
|
setup(props, { emit }) {
|
|
44224
44360
|
const tree = inject(ROOT_TREE_INJECTION_KEY);
|
|
44225
44361
|
const indent = computed(() => {
|
|
44226
|
-
|
|
44362
|
+
var _a;
|
|
44363
|
+
return (_a = tree == null ? void 0 : tree.props.indent) != null ? _a : 16;
|
|
44227
44364
|
});
|
|
44228
44365
|
const icon = computed(() => {
|
|
44229
|
-
|
|
44366
|
+
var _a;
|
|
44367
|
+
return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
|
|
44230
44368
|
});
|
|
44231
44369
|
const handleClick = (e) => {
|
|
44232
44370
|
emit("click", props.node, e);
|
|
@@ -44238,11 +44376,12 @@ const _sfc_main$8 = defineComponent({
|
|
|
44238
44376
|
emit("check", props.node, value);
|
|
44239
44377
|
};
|
|
44240
44378
|
const handleContextMenu = (event) => {
|
|
44241
|
-
|
|
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"]) {
|
|
44242
44381
|
event.stopPropagation();
|
|
44243
44382
|
event.preventDefault();
|
|
44244
44383
|
}
|
|
44245
|
-
tree
|
|
44384
|
+
tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props.node) == null ? void 0 : _d.data, props.node);
|
|
44246
44385
|
};
|
|
44247
44386
|
return {
|
|
44248
44387
|
indent,
|
|
@@ -44256,6 +44395,7 @@ const _sfc_main$8 = defineComponent({
|
|
|
44256
44395
|
});
|
|
44257
44396
|
const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key"];
|
|
44258
44397
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44398
|
+
var _a, _b, _c;
|
|
44259
44399
|
const _component_el_icon = resolveComponent("el-icon");
|
|
44260
44400
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
44261
44401
|
const _component_el_node_content = resolveComponent("el-node-content");
|
|
@@ -44272,7 +44412,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44272
44412
|
"aria-expanded": _ctx.expanded,
|
|
44273
44413
|
"aria-disabled": _ctx.disabled,
|
|
44274
44414
|
"aria-checked": _ctx.checked,
|
|
44275
|
-
"data-key": _ctx.node
|
|
44415
|
+
"data-key": (_a = _ctx.node) == null ? void 0 : _a.key,
|
|
44276
44416
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
44277
44417
|
onContextmenu: _cache[2] || (_cache[2] = (...args) => _ctx.handleContextMenu && _ctx.handleContextMenu(...args))
|
|
44278
44418
|
}, [
|
|
@@ -44284,9 +44424,9 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44284
44424
|
key: 0,
|
|
44285
44425
|
class: normalizeClass([
|
|
44286
44426
|
{
|
|
44287
|
-
"is-leaf": _ctx.node
|
|
44427
|
+
"is-leaf": (_b = _ctx.node) == null ? void 0 : _b.isLeaf,
|
|
44288
44428
|
"is-hidden": _ctx.hiddenExpandIcon,
|
|
44289
|
-
expanded: !_ctx.node
|
|
44429
|
+
expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
|
|
44290
44430
|
},
|
|
44291
44431
|
"el-tree-node__expand-icon"
|
|
44292
44432
|
]),
|
|
@@ -44389,6 +44529,7 @@ const _hoisted_1$5 = {
|
|
|
44389
44529
|
};
|
|
44390
44530
|
const _hoisted_2$4 = { class: "el-tree__empty-text" };
|
|
44391
44531
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44532
|
+
var _a;
|
|
44392
44533
|
const _component_el_tree_node = resolveComponent("el-tree-node");
|
|
44393
44534
|
const _component_fixed_size_list = resolveComponent("fixed-size-list");
|
|
44394
44535
|
return openBlock(), createElementBlock("div", {
|
|
@@ -44425,7 +44566,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44425
44566
|
]),
|
|
44426
44567
|
_: 1
|
|
44427
44568
|
}, 8, ["data", "total", "height", "item-size", "perf-mode"])) : (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
44428
|
-
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)
|
|
44429
44570
|
]))
|
|
44430
44571
|
], 2);
|
|
44431
44572
|
}
|
|
@@ -44712,9 +44853,10 @@ const _sfc_main$5 = defineComponent({
|
|
|
44712
44853
|
const uploader = inject("uploader", {});
|
|
44713
44854
|
const dragover = ref(false);
|
|
44714
44855
|
function onDrop(e) {
|
|
44856
|
+
var _a;
|
|
44715
44857
|
if (props.disabled || !uploader)
|
|
44716
44858
|
return;
|
|
44717
|
-
const accept = uploader.props
|
|
44859
|
+
const accept = ((_a = uploader.props) == null ? void 0 : _a.accept) || uploader.accept;
|
|
44718
44860
|
dragover.value = false;
|
|
44719
44861
|
if (!accept) {
|
|
44720
44862
|
emit("file", e.dataTransfer.files);
|
|
@@ -46241,6 +46383,7 @@ const _sfc_main$3 = defineComponent({
|
|
|
46241
46383
|
};
|
|
46242
46384
|
},
|
|
46243
46385
|
render() {
|
|
46386
|
+
var _a, _b;
|
|
46244
46387
|
let uploadList;
|
|
46245
46388
|
if (this.showFileList) {
|
|
46246
46389
|
uploadList = h$1(UploadList, {
|
|
@@ -46288,12 +46431,12 @@ const _sfc_main$3 = defineComponent({
|
|
|
46288
46431
|
};
|
|
46289
46432
|
const trigger = this.$slots.trigger || this.$slots.default;
|
|
46290
46433
|
const uploadComponent = h$1(Upload$1, uploadData, {
|
|
46291
|
-
default: () => trigger
|
|
46434
|
+
default: () => trigger == null ? void 0 : trigger()
|
|
46292
46435
|
});
|
|
46293
46436
|
return h$1("div", [
|
|
46294
46437
|
this.listType === "picture-card" ? uploadList : null,
|
|
46295
46438
|
this.$slots.trigger ? [uploadComponent, this.$slots.default()] : uploadComponent,
|
|
46296
|
-
this.$slots.tip
|
|
46439
|
+
(_b = (_a = this.$slots).tip) == null ? void 0 : _b.call(_a),
|
|
46297
46440
|
this.listType !== "picture-card" ? uploadList : null
|
|
46298
46441
|
]);
|
|
46299
46442
|
}
|
|
@@ -46898,7 +47041,7 @@ const _sfc_main$2 = defineComponent({
|
|
|
46898
47041
|
}
|
|
46899
47042
|
}
|
|
46900
47043
|
function clearTimer() {
|
|
46901
|
-
stopTimer
|
|
47044
|
+
stopTimer == null ? void 0 : stopTimer();
|
|
46902
47045
|
}
|
|
46903
47046
|
function close() {
|
|
46904
47047
|
visible.value = false;
|
|
@@ -47226,7 +47369,8 @@ const _sfc_main$1 = defineComponent({
|
|
|
47226
47369
|
if (val) {
|
|
47227
47370
|
if (props.boxType === "alert" || props.boxType === "confirm") {
|
|
47228
47371
|
nextTick().then(() => {
|
|
47229
|
-
|
|
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);
|
|
47230
47374
|
});
|
|
47231
47375
|
}
|
|
47232
47376
|
state.zIndex = PopupManager.nextZIndex();
|
|
@@ -47275,12 +47419,13 @@ const _sfc_main$1 = defineComponent({
|
|
|
47275
47419
|
}
|
|
47276
47420
|
};
|
|
47277
47421
|
const handleAction = (action) => {
|
|
47422
|
+
var _a;
|
|
47278
47423
|
if (props.boxType === "prompt" && action === "confirm" && !validate()) {
|
|
47279
47424
|
return;
|
|
47280
47425
|
}
|
|
47281
47426
|
state.action = action;
|
|
47282
47427
|
if (state.beforeClose) {
|
|
47283
|
-
state.beforeClose
|
|
47428
|
+
(_a = state.beforeClose) == null ? void 0 : _a.call(state, action, state, doClose);
|
|
47284
47429
|
} else {
|
|
47285
47430
|
doClose();
|
|
47286
47431
|
}
|
|
@@ -47762,7 +47907,7 @@ const _sfc_main = defineComponent({
|
|
|
47762
47907
|
}
|
|
47763
47908
|
}
|
|
47764
47909
|
function clearTimer() {
|
|
47765
|
-
timer
|
|
47910
|
+
timer == null ? void 0 : timer();
|
|
47766
47911
|
}
|
|
47767
47912
|
function close() {
|
|
47768
47913
|
visible.value = false;
|