@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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.
|
|
1
|
+
/*! Element Plus v0.0.20220124 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -4544,7 +4544,7 @@
|
|
|
4544
4544
|
});
|
|
4545
4545
|
}
|
|
4546
4546
|
|
|
4547
|
-
const version$1 = "0.0.
|
|
4547
|
+
const version$1 = "0.0.20220124";
|
|
4548
4548
|
|
|
4549
4549
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
4550
4550
|
const makeInstaller = (components = []) => {
|
|
@@ -4697,8 +4697,9 @@
|
|
|
4697
4697
|
emit("change", state.fixed);
|
|
4698
4698
|
});
|
|
4699
4699
|
vue.onMounted(() => {
|
|
4700
|
+
var _a;
|
|
4700
4701
|
if (props.target) {
|
|
4701
|
-
target.value = document.querySelector(props.target)
|
|
4702
|
+
target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
4702
4703
|
if (!target.value) {
|
|
4703
4704
|
throw new Error(`Target is not existed: ${props.target}`);
|
|
4704
4705
|
}
|
|
@@ -5110,13 +5111,13 @@
|
|
|
5110
5111
|
fill: "currentColor",
|
|
5111
5112
|
d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
|
|
5112
5113
|
}, null, -1);
|
|
5113
|
-
const _hoisted_5$
|
|
5114
|
+
const _hoisted_5$f = [
|
|
5114
5115
|
_hoisted_2$1g,
|
|
5115
5116
|
_hoisted_3$10,
|
|
5116
5117
|
_hoisted_4$n
|
|
5117
5118
|
];
|
|
5118
5119
|
function _sfc_render$2r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5119
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1E, _hoisted_5$
|
|
5120
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$1E, _hoisted_5$f);
|
|
5120
5121
|
}
|
|
5121
5122
|
var clock = /* @__PURE__ */ _export_sfc(_sfc_main$2w, [["render", _sfc_render$2r]]);
|
|
5122
5123
|
|
|
@@ -6527,8 +6528,11 @@
|
|
|
6527
6528
|
const passwordVisible = vue.ref(false);
|
|
6528
6529
|
const _textareaCalcStyle = vue.shallowRef(props.inputStyle);
|
|
6529
6530
|
const inputOrTextarea = vue.computed(() => input.value || textarea.value);
|
|
6530
|
-
const needStatusIcon = vue.computed(() =>
|
|
6531
|
-
|
|
6531
|
+
const needStatusIcon = vue.computed(() => {
|
|
6532
|
+
var _a;
|
|
6533
|
+
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
6534
|
+
});
|
|
6535
|
+
const validateState = vue.computed(() => (formItem == null ? void 0 : formItem.validateState) || "");
|
|
6532
6536
|
const validateIcon = vue.computed(() => ValidateComponentsMap[validateState.value]);
|
|
6533
6537
|
const containerStyle = vue.computed(() => rawAttrs.style);
|
|
6534
6538
|
const computedTextareaStyle = vue.computed(() => [
|
|
@@ -6598,33 +6602,38 @@
|
|
|
6598
6602
|
};
|
|
6599
6603
|
const focus = () => {
|
|
6600
6604
|
vue.nextTick(() => {
|
|
6601
|
-
|
|
6605
|
+
var _a;
|
|
6606
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
|
|
6602
6607
|
});
|
|
6603
6608
|
};
|
|
6604
6609
|
const blur = () => {
|
|
6605
|
-
|
|
6610
|
+
var _a;
|
|
6611
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
|
|
6606
6612
|
};
|
|
6607
6613
|
const handleFocus = (event) => {
|
|
6608
6614
|
focused.value = true;
|
|
6609
6615
|
emit("focus", event);
|
|
6610
6616
|
};
|
|
6611
6617
|
const handleBlur = (event) => {
|
|
6618
|
+
var _a;
|
|
6612
6619
|
focused.value = false;
|
|
6613
6620
|
emit("blur", event);
|
|
6614
6621
|
if (props.validateEvent) {
|
|
6615
|
-
formItem
|
|
6622
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
6616
6623
|
}
|
|
6617
6624
|
};
|
|
6618
6625
|
const select = () => {
|
|
6619
|
-
|
|
6626
|
+
var _a;
|
|
6627
|
+
(_a = inputOrTextarea.value) == null ? void 0 : _a.select();
|
|
6620
6628
|
};
|
|
6621
6629
|
const handleCompositionStart = (event) => {
|
|
6622
6630
|
emit("compositionstart", event);
|
|
6623
6631
|
isComposing.value = true;
|
|
6624
6632
|
};
|
|
6625
6633
|
const handleCompositionUpdate = (event) => {
|
|
6634
|
+
var _a;
|
|
6626
6635
|
emit("compositionupdate", event);
|
|
6627
|
-
const text = event.target
|
|
6636
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
6628
6637
|
const lastCharacter = text[text.length - 1] || "";
|
|
6629
6638
|
isComposing.value = !isKorean(lastCharacter);
|
|
6630
6639
|
};
|
|
@@ -6647,9 +6656,10 @@
|
|
|
6647
6656
|
};
|
|
6648
6657
|
const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
6649
6658
|
vue.watch(() => props.modelValue, () => {
|
|
6659
|
+
var _a;
|
|
6650
6660
|
vue.nextTick(resizeTextarea);
|
|
6651
6661
|
if (props.validateEvent) {
|
|
6652
|
-
formItem
|
|
6662
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
6653
6663
|
}
|
|
6654
6664
|
});
|
|
6655
6665
|
vue.watch(nativeInputValue, () => setNativeInputValue());
|
|
@@ -6960,10 +6970,11 @@
|
|
|
6960
6970
|
}));
|
|
6961
6971
|
const offsetRatio = vue.computed(() => instance.value[bar.value.offset] ** 2 / scrollbar.wrapElement[bar.value.scrollSize] / props.ratio / thumb.value[bar.value.offset]);
|
|
6962
6972
|
const clickThumbHandler = (e) => {
|
|
6973
|
+
var _a;
|
|
6963
6974
|
e.stopPropagation();
|
|
6964
6975
|
if (e.ctrlKey || [1, 2].includes(e.button))
|
|
6965
6976
|
return;
|
|
6966
|
-
window.getSelection()
|
|
6977
|
+
(_a = window.getSelection()) == null ? void 0 : _a.removeAllRanges();
|
|
6967
6978
|
startDrag(e);
|
|
6968
6979
|
const el = e.currentTarget;
|
|
6969
6980
|
if (!el)
|
|
@@ -7178,8 +7189,8 @@
|
|
|
7178
7189
|
};
|
|
7179
7190
|
vue.watch(() => props.noresize, (noresize) => {
|
|
7180
7191
|
if (noresize) {
|
|
7181
|
-
stopResizeObserver
|
|
7182
|
-
stopResizeListener
|
|
7192
|
+
stopResizeObserver == null ? void 0 : stopResizeObserver();
|
|
7193
|
+
stopResizeListener == null ? void 0 : stopResizeListener();
|
|
7183
7194
|
} else {
|
|
7184
7195
|
({ stop: stopResizeObserver } = useResizeObserver(resize$, update));
|
|
7185
7196
|
stopResizeListener = useEventListener("resize", update);
|
|
@@ -9351,7 +9362,7 @@
|
|
|
9351
9362
|
const handler = props[eventName];
|
|
9352
9363
|
if (handler) {
|
|
9353
9364
|
el.addEventListener(eventName.slice(2).toLowerCase(), handler);
|
|
9354
|
-
prevEl
|
|
9365
|
+
prevEl == null ? void 0 : prevEl.removeEventListener(eventName.slice(2).toLowerCase(), handler);
|
|
9355
9366
|
}
|
|
9356
9367
|
});
|
|
9357
9368
|
}
|
|
@@ -9411,15 +9422,17 @@
|
|
|
9411
9422
|
return createPopper(referenceEl, popperContentEl, options);
|
|
9412
9423
|
};
|
|
9413
9424
|
const updatePopper = () => {
|
|
9414
|
-
|
|
9425
|
+
var _a;
|
|
9426
|
+
(_a = vue.unref(popperInstanceRef)) == null ? void 0 : _a.update();
|
|
9415
9427
|
contentZIndex.value = props.zIndex || PopupManager.nextZIndex();
|
|
9416
9428
|
};
|
|
9417
9429
|
vue.onMounted(() => {
|
|
9418
9430
|
let updateHandle;
|
|
9419
9431
|
vue.watch(() => unwrapMeasurableEl(props.referenceEl) || vue.unref(triggerRef), (val) => {
|
|
9420
|
-
|
|
9432
|
+
var _a;
|
|
9433
|
+
updateHandle == null ? void 0 : updateHandle();
|
|
9421
9434
|
if (val) {
|
|
9422
|
-
popperInstanceRef.value
|
|
9435
|
+
(_a = popperInstanceRef.value) == null ? void 0 : _a.destroy();
|
|
9423
9436
|
const popperContentEl = vue.unref(popperContentRef);
|
|
9424
9437
|
contentRef.value = popperContentEl;
|
|
9425
9438
|
const arrowEl = vue.unref(arrowRef);
|
|
@@ -9586,7 +9599,10 @@
|
|
|
9586
9599
|
const shouldShow = vue.computed(() => {
|
|
9587
9600
|
return props.disabled ? false : vue.unref(open);
|
|
9588
9601
|
});
|
|
9589
|
-
const contentStyle = vue.computed(() =>
|
|
9602
|
+
const contentStyle = vue.computed(() => {
|
|
9603
|
+
var _a;
|
|
9604
|
+
return (_a = props.style) != null ? _a : {};
|
|
9605
|
+
});
|
|
9590
9606
|
const ariaHidden = vue.computed(() => !vue.unref(open));
|
|
9591
9607
|
useEscapeKeydown(onClose);
|
|
9592
9608
|
const onTransitionLeave = () => {
|
|
@@ -9607,7 +9623,8 @@
|
|
|
9607
9623
|
}
|
|
9608
9624
|
});
|
|
9609
9625
|
const onBeforeEnter = () => {
|
|
9610
|
-
|
|
9626
|
+
var _a, _b;
|
|
9627
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
|
|
9611
9628
|
};
|
|
9612
9629
|
const onAfterShow = () => {
|
|
9613
9630
|
onShow();
|
|
@@ -9616,7 +9633,8 @@
|
|
|
9616
9633
|
vue.watch(() => vue.unref(open), (val) => {
|
|
9617
9634
|
if (val) {
|
|
9618
9635
|
stopHandle = onClickOutside(vue.computed(() => {
|
|
9619
|
-
|
|
9636
|
+
var _a;
|
|
9637
|
+
return (_a = contentRef.value) == null ? void 0 : _a.popperContentRef;
|
|
9620
9638
|
}), () => {
|
|
9621
9639
|
if (vue.unref(controlled))
|
|
9622
9640
|
return;
|
|
@@ -9626,7 +9644,7 @@
|
|
|
9626
9644
|
}
|
|
9627
9645
|
});
|
|
9628
9646
|
} else {
|
|
9629
|
-
stopHandle
|
|
9647
|
+
stopHandle == null ? void 0 : stopHandle();
|
|
9630
9648
|
}
|
|
9631
9649
|
}, {
|
|
9632
9650
|
flush: "post"
|
|
@@ -9823,9 +9841,10 @@
|
|
|
9823
9841
|
const id = useId();
|
|
9824
9842
|
const popperRef = vue.ref(null);
|
|
9825
9843
|
const updatePopper = () => {
|
|
9844
|
+
var _a;
|
|
9826
9845
|
const popperComponent = vue.unref(popperRef);
|
|
9827
9846
|
if (popperComponent) {
|
|
9828
|
-
popperComponent.popperInstanceRef
|
|
9847
|
+
(_a = popperComponent.popperInstanceRef) == null ? void 0 : _a.update();
|
|
9829
9848
|
}
|
|
9830
9849
|
};
|
|
9831
9850
|
const open = vue.ref(false);
|
|
@@ -10116,7 +10135,8 @@
|
|
|
10116
10135
|
activated.value = false;
|
|
10117
10136
|
};
|
|
10118
10137
|
const focus = () => {
|
|
10119
|
-
|
|
10138
|
+
var _a;
|
|
10139
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
10120
10140
|
};
|
|
10121
10141
|
const select = (item) => {
|
|
10122
10142
|
ctx.emit("input", item[props.valueKey]);
|
|
@@ -10482,8 +10502,9 @@
|
|
|
10482
10502
|
};
|
|
10483
10503
|
const handleScrollThrottled = useThrottleFn(handleScroll, 300);
|
|
10484
10504
|
vue.onMounted(() => {
|
|
10505
|
+
var _a;
|
|
10485
10506
|
if (props.target) {
|
|
10486
|
-
el.value = document.querySelector(props.target)
|
|
10507
|
+
el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
|
|
10487
10508
|
if (!el.value) {
|
|
10488
10509
|
throwError(COMPONENT_NAME$8, `target is not existed: ${props.target}`);
|
|
10489
10510
|
}
|
|
@@ -10677,8 +10698,8 @@
|
|
|
10677
10698
|
return {
|
|
10678
10699
|
ns,
|
|
10679
10700
|
link,
|
|
10680
|
-
separator: parent
|
|
10681
|
-
separatorIcon: parent
|
|
10701
|
+
separator: parent == null ? void 0 : parent.separator,
|
|
10702
|
+
separatorIcon: parent == null ? void 0 : parent.separatorIcon
|
|
10682
10703
|
};
|
|
10683
10704
|
}
|
|
10684
10705
|
});
|
|
@@ -11893,12 +11914,16 @@
|
|
|
11893
11914
|
const buttonGroupContext = vue.inject(buttonGroupContextKey, void 0);
|
|
11894
11915
|
const globalConfig = useGlobalConfig("button");
|
|
11895
11916
|
const ns = useNamespace("button");
|
|
11896
|
-
const autoInsertSpace = vue.computed(() =>
|
|
11917
|
+
const autoInsertSpace = vue.computed(() => {
|
|
11918
|
+
var _a, _b, _c;
|
|
11919
|
+
return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
|
|
11920
|
+
});
|
|
11897
11921
|
const shouldAddSpace = vue.computed(() => {
|
|
11898
|
-
|
|
11899
|
-
|
|
11922
|
+
var _a;
|
|
11923
|
+
const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
11924
|
+
if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
|
|
11900
11925
|
const slot = defaultSlot[0];
|
|
11901
|
-
if (slot
|
|
11926
|
+
if ((slot == null ? void 0 : slot.type) === vue.Text) {
|
|
11902
11927
|
const text = slot.children;
|
|
11903
11928
|
return /^\p{Unified_Ideograph}{2}$/u.test(text);
|
|
11904
11929
|
}
|
|
@@ -11906,9 +11931,9 @@
|
|
|
11906
11931
|
return false;
|
|
11907
11932
|
});
|
|
11908
11933
|
const { form } = useFormItem();
|
|
11909
|
-
const buttonSize = useSize(vue.computed(() => buttonGroupContext
|
|
11934
|
+
const buttonSize = useSize(vue.computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
|
|
11910
11935
|
const buttonDisabled = useDisabled$1();
|
|
11911
|
-
const buttonType = vue.computed(() => props.type || buttonGroupContext
|
|
11936
|
+
const buttonType = vue.computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
|
|
11912
11937
|
const typeColor = vue.computed(() => useCssVar(`--el-color-${props.type}`).value);
|
|
11913
11938
|
const buttonStyle = vue.computed(() => {
|
|
11914
11939
|
let styles = {};
|
|
@@ -11947,7 +11972,7 @@
|
|
|
11947
11972
|
});
|
|
11948
11973
|
const handleClick = (evt) => {
|
|
11949
11974
|
if (props.nativeType === "reset") {
|
|
11950
|
-
form
|
|
11975
|
+
form == null ? void 0 : form.resetFields();
|
|
11951
11976
|
}
|
|
11952
11977
|
emit("click", evt);
|
|
11953
11978
|
};
|
|
@@ -12116,12 +12141,6 @@
|
|
|
12116
12141
|
|
|
12117
12142
|
var isEqual_1 = isEqual$1;
|
|
12118
12143
|
|
|
12119
|
-
const isValidWidthUnit = (val) => {
|
|
12120
|
-
if (isNumber(val)) {
|
|
12121
|
-
return true;
|
|
12122
|
-
}
|
|
12123
|
-
return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
|
|
12124
|
-
};
|
|
12125
12144
|
const isValidComponentSize = (val) => ["", "large", "default", "small"].includes(val);
|
|
12126
12145
|
const isValidDatePickType = (val) => [
|
|
12127
12146
|
"year",
|
|
@@ -12306,6 +12325,7 @@
|
|
|
12306
12325
|
const pickerActualVisible = vue.ref(false);
|
|
12307
12326
|
const valueOnOpen = vue.ref(null);
|
|
12308
12327
|
vue.watch(pickerVisible, (val) => {
|
|
12328
|
+
var _a;
|
|
12309
12329
|
if (!val) {
|
|
12310
12330
|
userInput.value = null;
|
|
12311
12331
|
vue.nextTick(() => {
|
|
@@ -12313,15 +12333,16 @@
|
|
|
12313
12333
|
});
|
|
12314
12334
|
ctx.emit("blur");
|
|
12315
12335
|
blurInput();
|
|
12316
|
-
props.validateEvent && elFormItem.validate
|
|
12336
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur"));
|
|
12317
12337
|
} else {
|
|
12318
12338
|
valueOnOpen.value = props.modelValue;
|
|
12319
12339
|
}
|
|
12320
12340
|
});
|
|
12321
12341
|
const emitChange = (val, isClear) => {
|
|
12342
|
+
var _a;
|
|
12322
12343
|
if (isClear || !valueEquals(val, valueOnOpen.value)) {
|
|
12323
12344
|
ctx.emit("change", val);
|
|
12324
|
-
props.validateEvent && elFormItem.validate
|
|
12345
|
+
props.validateEvent && ((_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change"));
|
|
12325
12346
|
}
|
|
12326
12347
|
};
|
|
12327
12348
|
const emitInput = (val) => {
|
|
@@ -12343,10 +12364,10 @@
|
|
|
12343
12364
|
return [];
|
|
12344
12365
|
});
|
|
12345
12366
|
const refStartInput = vue.computed(() => {
|
|
12346
|
-
return refInput
|
|
12367
|
+
return refInput == null ? void 0 : refInput.value[0];
|
|
12347
12368
|
});
|
|
12348
12369
|
const refEndInput = vue.computed(() => {
|
|
12349
|
-
return refInput
|
|
12370
|
+
return refInput == null ? void 0 : refInput.value[1];
|
|
12350
12371
|
});
|
|
12351
12372
|
const setSelectionRange = (start, end, pos) => {
|
|
12352
12373
|
const _inputs = refInput.value;
|
|
@@ -12387,7 +12408,8 @@
|
|
|
12387
12408
|
ctx.emit("focus", e);
|
|
12388
12409
|
};
|
|
12389
12410
|
const handleBlur = () => {
|
|
12390
|
-
|
|
12411
|
+
var _a;
|
|
12412
|
+
(_a = refPopper.value) == null ? void 0 : _a.onClose();
|
|
12391
12413
|
blurInput();
|
|
12392
12414
|
};
|
|
12393
12415
|
const pickerDisabled = vue.computed(() => {
|
|
@@ -12474,14 +12496,19 @@
|
|
|
12474
12496
|
});
|
|
12475
12497
|
const pickerSize = useSize();
|
|
12476
12498
|
const popperPaneRef = vue.computed(() => {
|
|
12477
|
-
|
|
12499
|
+
var _a, _b;
|
|
12500
|
+
return (_b = (_a = refPopper.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
12501
|
+
});
|
|
12502
|
+
const popperEl = vue.computed(() => {
|
|
12503
|
+
var _a, _b;
|
|
12504
|
+
return (_b = (_a = vue.unref(refPopper)) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
12478
12505
|
});
|
|
12479
|
-
const popperEl = vue.computed(() => vue.unref(refPopper)?.popperRef?.contentRef);
|
|
12480
12506
|
const actualInputRef = vue.computed(() => {
|
|
12507
|
+
var _a;
|
|
12481
12508
|
if (vue.unref(isRangeInput)) {
|
|
12482
12509
|
return vue.unref(inputRef);
|
|
12483
12510
|
}
|
|
12484
|
-
return vue.unref(inputRef)
|
|
12511
|
+
return (_a = vue.unref(inputRef)) == null ? void 0 : _a.$el;
|
|
12485
12512
|
});
|
|
12486
12513
|
onClickOutside(actualInputRef, (e) => {
|
|
12487
12514
|
const unrefedPopperEl = vue.unref(popperEl);
|
|
@@ -14253,8 +14280,8 @@
|
|
|
14253
14280
|
const _hoisted_2$N = { class: "el-time-range-picker__content" };
|
|
14254
14281
|
const _hoisted_3$A = { class: "el-time-range-picker__cell" };
|
|
14255
14282
|
const _hoisted_4$m = { class: "el-time-range-picker__header" };
|
|
14256
|
-
const _hoisted_5$
|
|
14257
|
-
const _hoisted_6$
|
|
14283
|
+
const _hoisted_5$e = { class: "el-time-range-picker__cell" };
|
|
14284
|
+
const _hoisted_6$c = { class: "el-time-range-picker__header" };
|
|
14258
14285
|
const _hoisted_7$9 = { class: "el-time-panel__footer" };
|
|
14259
14286
|
const _hoisted_8$8 = ["disabled"];
|
|
14260
14287
|
function _sfc_render$1H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -14282,8 +14309,8 @@
|
|
|
14282
14309
|
}, null, 8, ["show-seconds", "am-pm-mode", "arrow-control", "spinner-date", "disabled-hours", "disabled-minutes", "disabled-seconds", "onChange", "onSetOption", "onSelectRange"])
|
|
14283
14310
|
], 2)
|
|
14284
14311
|
]),
|
|
14285
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
14286
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
14312
|
+
vue.createElementVNode("div", _hoisted_5$e, [
|
|
14313
|
+
vue.createElementVNode("div", _hoisted_6$c, vue.toDisplayString(_ctx.t("el.datepicker.endTime")), 1),
|
|
14287
14314
|
vue.createElementVNode("div", {
|
|
14288
14315
|
class: vue.normalizeClass([{ "has-seconds": _ctx.showSeconds, "is-arrow": _ctx.arrowControl }, "el-time-range-picker__body el-time-panel__content"])
|
|
14289
14316
|
}, [
|
|
@@ -15332,7 +15359,8 @@
|
|
|
15332
15359
|
return index;
|
|
15333
15360
|
}
|
|
15334
15361
|
function calcCardTranslate(index, activeIndex) {
|
|
15335
|
-
|
|
15362
|
+
var _a;
|
|
15363
|
+
const parentWidth = ((_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetWidth) || 0;
|
|
15336
15364
|
if (data.inStage) {
|
|
15337
15365
|
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
|
15338
15366
|
} else if (index < activeIndex) {
|
|
@@ -15342,7 +15370,8 @@
|
|
|
15342
15370
|
}
|
|
15343
15371
|
}
|
|
15344
15372
|
function calcTranslate(index, activeIndex, isVertical) {
|
|
15345
|
-
|
|
15373
|
+
var _a, _b;
|
|
15374
|
+
const distance = (isVertical ? (_a = injectCarouselScope.root.value) == null ? void 0 : _a.offsetHeight : (_b = injectCarouselScope.root.value) == null ? void 0 : _b.offsetWidth) || 0;
|
|
15346
15375
|
return distance * (index - activeIndex);
|
|
15347
15376
|
}
|
|
15348
15377
|
const translateItem = (index, activeIndex, oldIndex) => {
|
|
@@ -15658,45 +15687,48 @@
|
|
|
15658
15687
|
},
|
|
15659
15688
|
emits: [UPDATE_MODEL_EVENT, "change"],
|
|
15660
15689
|
setup(props) {
|
|
15661
|
-
|
|
15690
|
+
const ns = useNamespace("checkbox");
|
|
15691
|
+
return {
|
|
15692
|
+
ns,
|
|
15693
|
+
...useCheckbox(props)
|
|
15694
|
+
};
|
|
15662
15695
|
}
|
|
15663
15696
|
});
|
|
15664
15697
|
const _hoisted_1$10 = ["id", "aria-controls"];
|
|
15665
15698
|
const _hoisted_2$K = ["tabindex", "role", "aria-checked"];
|
|
15666
|
-
const _hoisted_3$y =
|
|
15667
|
-
const _hoisted_4$l = ["aria-hidden", "
|
|
15668
|
-
const _hoisted_5$e = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15669
|
-
const _hoisted_6$c = {
|
|
15670
|
-
key: 0,
|
|
15671
|
-
class: "el-checkbox__label"
|
|
15672
|
-
};
|
|
15699
|
+
const _hoisted_3$y = ["aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
15700
|
+
const _hoisted_4$l = ["aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
15673
15701
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15674
15702
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
15675
15703
|
id: _ctx.id,
|
|
15676
|
-
class: vue.normalizeClass([
|
|
15677
|
-
_ctx.
|
|
15678
|
-
|
|
15679
|
-
|
|
15680
|
-
|
|
15681
|
-
|
|
15704
|
+
class: vue.normalizeClass([
|
|
15705
|
+
_ctx.ns.b(),
|
|
15706
|
+
_ctx.ns.m(_ctx.checkboxSize),
|
|
15707
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15708
|
+
_ctx.ns.is("bordered", _ctx.border),
|
|
15709
|
+
_ctx.ns.is("checked", _ctx.isChecked)
|
|
15710
|
+
]),
|
|
15682
15711
|
"aria-controls": _ctx.indeterminate ? _ctx.controls : null
|
|
15683
15712
|
}, [
|
|
15684
15713
|
vue.createElementVNode("span", {
|
|
15685
|
-
class: vue.normalizeClass([
|
|
15686
|
-
"
|
|
15687
|
-
|
|
15688
|
-
|
|
15689
|
-
|
|
15690
|
-
|
|
15714
|
+
class: vue.normalizeClass([
|
|
15715
|
+
_ctx.ns.e("input"),
|
|
15716
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15717
|
+
_ctx.ns.is("checked", _ctx.isChecked),
|
|
15718
|
+
_ctx.ns.is("indeterminate", _ctx.indeterminate),
|
|
15719
|
+
_ctx.ns.is("focus", _ctx.focus)
|
|
15720
|
+
]),
|
|
15691
15721
|
tabindex: _ctx.indeterminate ? 0 : void 0,
|
|
15692
15722
|
role: _ctx.indeterminate ? "checkbox" : void 0,
|
|
15693
15723
|
"aria-checked": _ctx.indeterminate ? "mixed" : false
|
|
15694
15724
|
}, [
|
|
15695
|
-
|
|
15725
|
+
vue.createElementVNode("span", {
|
|
15726
|
+
class: vue.normalizeClass(_ctx.ns.e("inner"))
|
|
15727
|
+
}, null, 2),
|
|
15696
15728
|
_ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15697
15729
|
key: 0,
|
|
15698
15730
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15699
|
-
class: "
|
|
15731
|
+
class: vue.normalizeClass(_ctx.ns.e("original")),
|
|
15700
15732
|
type: "checkbox",
|
|
15701
15733
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15702
15734
|
name: _ctx.name,
|
|
@@ -15707,12 +15739,12 @@
|
|
|
15707
15739
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15708
15740
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15709
15741
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15710
|
-
}, null,
|
|
15742
|
+
}, null, 42, _hoisted_3$y)), [
|
|
15711
15743
|
[vue.vModelCheckbox, _ctx.model]
|
|
15712
15744
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15713
15745
|
key: 1,
|
|
15714
15746
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15715
|
-
class: "
|
|
15747
|
+
class: vue.normalizeClass(_ctx.ns.e("original")),
|
|
15716
15748
|
type: "checkbox",
|
|
15717
15749
|
"aria-hidden": _ctx.indeterminate ? "true" : "false",
|
|
15718
15750
|
disabled: _ctx.isDisabled,
|
|
@@ -15722,16 +15754,19 @@
|
|
|
15722
15754
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15723
15755
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15724
15756
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15725
|
-
}, null,
|
|
15757
|
+
}, null, 42, _hoisted_4$l)), [
|
|
15726
15758
|
[vue.vModelCheckbox, _ctx.model]
|
|
15727
15759
|
])
|
|
15728
15760
|
], 10, _hoisted_2$K),
|
|
15729
|
-
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span",
|
|
15761
|
+
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
15762
|
+
key: 0,
|
|
15763
|
+
class: vue.normalizeClass(_ctx.ns.e("label"))
|
|
15764
|
+
}, [
|
|
15730
15765
|
vue.renderSlot(_ctx.$slots, "default"),
|
|
15731
15766
|
!_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
15732
15767
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
15733
15768
|
], 2112)) : vue.createCommentVNode("v-if", true)
|
|
15734
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
15769
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
15735
15770
|
], 10, _hoisted_1$10);
|
|
15736
15771
|
}
|
|
15737
15772
|
var Checkbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1B]]);
|
|
@@ -15743,12 +15778,14 @@
|
|
|
15743
15778
|
setup(props) {
|
|
15744
15779
|
const { focus, isChecked, isDisabled, size, model, handleChange } = useCheckbox(props);
|
|
15745
15780
|
const { checkboxGroup } = useCheckboxGroup();
|
|
15781
|
+
const ns = useNamespace("checkbox");
|
|
15746
15782
|
const activeStyle = vue.computed(() => {
|
|
15747
|
-
|
|
15783
|
+
var _a, _b, _c, _d;
|
|
15784
|
+
const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
|
|
15748
15785
|
return {
|
|
15749
15786
|
backgroundColor: fillValue,
|
|
15750
15787
|
borderColor: fillValue,
|
|
15751
|
-
color: checkboxGroup
|
|
15788
|
+
color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
|
|
15752
15789
|
boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : null
|
|
15753
15790
|
};
|
|
15754
15791
|
});
|
|
@@ -15759,7 +15796,8 @@
|
|
|
15759
15796
|
model,
|
|
15760
15797
|
handleChange,
|
|
15761
15798
|
activeStyle,
|
|
15762
|
-
size
|
|
15799
|
+
size,
|
|
15800
|
+
ns
|
|
15763
15801
|
};
|
|
15764
15802
|
}
|
|
15765
15803
|
});
|
|
@@ -15768,12 +15806,13 @@
|
|
|
15768
15806
|
const _hoisted_3$x = ["name", "tabindex", "disabled", "value"];
|
|
15769
15807
|
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15770
15808
|
return vue.openBlock(), vue.createElementBlock("label", {
|
|
15771
|
-
class: vue.normalizeClass([
|
|
15772
|
-
_ctx.
|
|
15773
|
-
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
15809
|
+
class: vue.normalizeClass([
|
|
15810
|
+
_ctx.ns.b("button"),
|
|
15811
|
+
_ctx.ns.bm("button", _ctx.size),
|
|
15812
|
+
_ctx.ns.is("disabled", _ctx.isDisabled),
|
|
15813
|
+
_ctx.ns.is("checked", _ctx.isChecked),
|
|
15814
|
+
_ctx.ns.is("focus", _ctx.focus)
|
|
15815
|
+
]),
|
|
15777
15816
|
role: "checkbox",
|
|
15778
15817
|
"aria-checked": _ctx.isChecked,
|
|
15779
15818
|
"aria-disabled": _ctx.isDisabled
|
|
@@ -15781,7 +15820,7 @@
|
|
|
15781
15820
|
_ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15782
15821
|
key: 0,
|
|
15783
15822
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model = $event),
|
|
15784
|
-
class: "
|
|
15823
|
+
class: vue.normalizeClass(_ctx.ns.be("button", "original")),
|
|
15785
15824
|
type: "checkbox",
|
|
15786
15825
|
name: _ctx.name,
|
|
15787
15826
|
tabindex: _ctx.tabindex,
|
|
@@ -15791,12 +15830,12 @@
|
|
|
15791
15830
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15792
15831
|
onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.focus = true),
|
|
15793
15832
|
onBlur: _cache[3] || (_cache[3] = ($event) => _ctx.focus = false)
|
|
15794
|
-
}, null,
|
|
15833
|
+
}, null, 42, _hoisted_2$J)), [
|
|
15795
15834
|
[vue.vModelCheckbox, _ctx.model]
|
|
15796
15835
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
15797
15836
|
key: 1,
|
|
15798
15837
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.model = $event),
|
|
15799
|
-
class: "
|
|
15838
|
+
class: vue.normalizeClass(_ctx.ns.be("button", "original")),
|
|
15800
15839
|
type: "checkbox",
|
|
15801
15840
|
name: _ctx.name,
|
|
15802
15841
|
tabindex: _ctx.tabindex,
|
|
@@ -15805,18 +15844,18 @@
|
|
|
15805
15844
|
onChange: _cache[5] || (_cache[5] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
15806
15845
|
onFocus: _cache[6] || (_cache[6] = ($event) => _ctx.focus = true),
|
|
15807
15846
|
onBlur: _cache[7] || (_cache[7] = ($event) => _ctx.focus = false)
|
|
15808
|
-
}, null,
|
|
15847
|
+
}, null, 42, _hoisted_3$x)), [
|
|
15809
15848
|
[vue.vModelCheckbox, _ctx.model]
|
|
15810
15849
|
]),
|
|
15811
15850
|
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
15812
15851
|
key: 2,
|
|
15813
|
-
class: "
|
|
15852
|
+
class: vue.normalizeClass(_ctx.ns.be("button", "inner")),
|
|
15814
15853
|
style: vue.normalizeStyle(_ctx.isChecked ? _ctx.activeStyle : null)
|
|
15815
15854
|
}, [
|
|
15816
15855
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15817
15856
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
15818
15857
|
])
|
|
15819
|
-
],
|
|
15858
|
+
], 6)) : vue.createCommentVNode("v-if", true)
|
|
15820
15859
|
], 10, _hoisted_1$$);
|
|
15821
15860
|
}
|
|
15822
15861
|
var CheckboxButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1F, [["render", _sfc_render$1A]]);
|
|
@@ -15858,6 +15897,7 @@
|
|
|
15858
15897
|
setup(props, { emit, slots }) {
|
|
15859
15898
|
const { elFormItem } = useCheckboxGroup();
|
|
15860
15899
|
const checkboxGroupSize = useSize();
|
|
15900
|
+
const ns = useNamespace("checkbox");
|
|
15861
15901
|
const changeEvent = (value) => {
|
|
15862
15902
|
emit(UPDATE_MODEL_EVENT, value);
|
|
15863
15903
|
vue.nextTick(() => {
|
|
@@ -15880,11 +15920,12 @@
|
|
|
15880
15920
|
changeEvent
|
|
15881
15921
|
});
|
|
15882
15922
|
vue.watch(() => props.modelValue, () => {
|
|
15883
|
-
|
|
15923
|
+
var _a;
|
|
15924
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
15884
15925
|
});
|
|
15885
15926
|
return () => {
|
|
15886
15927
|
return vue.h(props.tag, {
|
|
15887
|
-
class: "
|
|
15928
|
+
class: ns.b("group"),
|
|
15888
15929
|
role: "group",
|
|
15889
15930
|
"aria-label": "checkbox-group"
|
|
15890
15931
|
}, [vue.renderSlot(slots, "default")]);
|
|
@@ -16059,10 +16100,10 @@
|
|
|
16059
16100
|
} = useRadio(props, emit);
|
|
16060
16101
|
const activeStyle = vue.computed(() => {
|
|
16061
16102
|
return {
|
|
16062
|
-
backgroundColor: radioGroup
|
|
16063
|
-
borderColor: radioGroup
|
|
16064
|
-
boxShadow: radioGroup
|
|
16065
|
-
color: radioGroup
|
|
16103
|
+
backgroundColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
16104
|
+
borderColor: (radioGroup == null ? void 0 : radioGroup.fill) || "",
|
|
16105
|
+
boxShadow: (radioGroup == null ? void 0 : radioGroup.fill) ? `-1px 0 0 0 ${radioGroup.fill}` : "",
|
|
16106
|
+
color: (radioGroup == null ? void 0 : radioGroup.textColor) || ""
|
|
16066
16107
|
};
|
|
16067
16108
|
});
|
|
16068
16109
|
return {
|
|
@@ -16192,7 +16233,7 @@
|
|
|
16192
16233
|
...vue.toRefs(props),
|
|
16193
16234
|
changeEvent
|
|
16194
16235
|
}));
|
|
16195
|
-
vue.watch(() => props.modelValue, () => formItem
|
|
16236
|
+
vue.watch(() => props.modelValue, () => formItem == null ? void 0 : formItem.validate("change"));
|
|
16196
16237
|
return {
|
|
16197
16238
|
radioGroupRef,
|
|
16198
16239
|
handleKeydown
|
|
@@ -16259,15 +16300,19 @@
|
|
|
16259
16300
|
const isHoverMenu = vue.computed(() => panel.isHoverMenu);
|
|
16260
16301
|
const multiple = vue.computed(() => panel.config.multiple);
|
|
16261
16302
|
const checkStrictly = vue.computed(() => panel.config.checkStrictly);
|
|
16262
|
-
const checkedNodeId = vue.computed(() =>
|
|
16303
|
+
const checkedNodeId = vue.computed(() => {
|
|
16304
|
+
var _a;
|
|
16305
|
+
return (_a = panel.checkedNodes[0]) == null ? void 0 : _a.uid;
|
|
16306
|
+
});
|
|
16263
16307
|
const isDisabled = vue.computed(() => props.node.isDisabled);
|
|
16264
16308
|
const isLeaf = vue.computed(() => props.node.isLeaf);
|
|
16265
16309
|
const expandable = vue.computed(() => checkStrictly.value && !isLeaf.value || !isDisabled.value);
|
|
16266
16310
|
const inExpandingPath = vue.computed(() => isInPath(panel.expandingNode));
|
|
16267
16311
|
const inCheckedPath = vue.computed(() => checkStrictly.value && panel.checkedNodes.some(isInPath));
|
|
16268
16312
|
const isInPath = (node) => {
|
|
16313
|
+
var _a;
|
|
16269
16314
|
const { level, uid } = props.node;
|
|
16270
|
-
return node
|
|
16315
|
+
return ((_a = node == null ? void 0 : node.pathNodes[level - 1]) == null ? void 0 : _a.uid) === uid;
|
|
16271
16316
|
};
|
|
16272
16317
|
const doExpand = () => {
|
|
16273
16318
|
if (inExpandingPath.value)
|
|
@@ -16535,28 +16580,31 @@
|
|
|
16535
16580
|
onMousemove: _ctx.handleMouseMove,
|
|
16536
16581
|
onMouseleave: _ctx.clearHoverZone
|
|
16537
16582
|
}, {
|
|
16538
|
-
default: vue.withCtx(() =>
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16583
|
+
default: vue.withCtx(() => {
|
|
16584
|
+
var _a;
|
|
16585
|
+
return [
|
|
16586
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.nodes, (node) => {
|
|
16587
|
+
return vue.openBlock(), vue.createBlock(_component_el_cascader_node, {
|
|
16588
|
+
key: node.uid,
|
|
16589
|
+
node,
|
|
16590
|
+
"menu-id": _ctx.menuId,
|
|
16591
|
+
onExpand: _ctx.handleExpand
|
|
16592
|
+
}, null, 8, ["node", "menu-id", "onExpand"]);
|
|
16593
|
+
}), 128)),
|
|
16594
|
+
_ctx.isLoading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
|
|
16595
|
+
vue.createVNode(_component_el_icon, {
|
|
16596
|
+
size: "14",
|
|
16597
|
+
class: "is-loading"
|
|
16598
|
+
}, {
|
|
16599
|
+
default: vue.withCtx(() => [
|
|
16600
|
+
vue.createVNode(_component_loading)
|
|
16601
|
+
]),
|
|
16602
|
+
_: 1
|
|
16603
|
+
}),
|
|
16604
|
+
vue.createTextVNode(" " + vue.toDisplayString(_ctx.t("el.cascader.loading")), 1)
|
|
16605
|
+
])) : _ctx.isEmpty ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, vue.toDisplayString(_ctx.t("el.cascader.noData")), 1)) : ((_a = _ctx.panel) == null ? void 0 : _a.isHoverMenu) ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_3$v, null, 512)) : vue.createCommentVNode("v-if", true)
|
|
16606
|
+
];
|
|
16607
|
+
}),
|
|
16560
16608
|
_: 1
|
|
16561
16609
|
}, 8, ["view-class", "onMousemove", "onMouseleave"]);
|
|
16562
16610
|
}
|
|
@@ -16848,7 +16896,7 @@
|
|
|
16848
16896
|
const resolve = (dataList) => {
|
|
16849
16897
|
const _node = node;
|
|
16850
16898
|
const parent = _node.root ? null : _node;
|
|
16851
|
-
dataList && store
|
|
16899
|
+
dataList && (store == null ? void 0 : store.appendNodes(dataList, parent));
|
|
16852
16900
|
_node.loading = false;
|
|
16853
16901
|
_node.loaded = true;
|
|
16854
16902
|
_node.childrenData = _node.childrenData || [];
|
|
@@ -16857,6 +16905,7 @@
|
|
|
16857
16905
|
cfg.lazyLoad(node, resolve);
|
|
16858
16906
|
};
|
|
16859
16907
|
const expandNode = (node, silent) => {
|
|
16908
|
+
var _a;
|
|
16860
16909
|
const { level } = node;
|
|
16861
16910
|
const newMenus = menus.value.slice(0, level);
|
|
16862
16911
|
let newExpandingNode;
|
|
@@ -16866,17 +16915,17 @@
|
|
|
16866
16915
|
newExpandingNode = node;
|
|
16867
16916
|
newMenus.push(node.children);
|
|
16868
16917
|
}
|
|
16869
|
-
if (expandingNode.value
|
|
16918
|
+
if (((_a = expandingNode.value) == null ? void 0 : _a.uid) !== (newExpandingNode == null ? void 0 : newExpandingNode.uid)) {
|
|
16870
16919
|
expandingNode.value = node;
|
|
16871
16920
|
menus.value = newMenus;
|
|
16872
|
-
!silent && emit("expand-change", node
|
|
16921
|
+
!silent && emit("expand-change", (node == null ? void 0 : node.pathValues) || []);
|
|
16873
16922
|
}
|
|
16874
16923
|
};
|
|
16875
16924
|
const handleCheckChange = (node, checked, emitClose = true) => {
|
|
16876
16925
|
const { checkStrictly, multiple } = config.value;
|
|
16877
16926
|
const oldNode = checkedNodes.value[0];
|
|
16878
16927
|
manualChecked = true;
|
|
16879
|
-
!multiple && oldNode
|
|
16928
|
+
!multiple && (oldNode == null ? void 0 : oldNode.doCheck(false));
|
|
16880
16929
|
node.doCheck(checked);
|
|
16881
16930
|
calculateCheckedValue();
|
|
16882
16931
|
emitClose && !multiple && !checkStrictly && emit("close");
|
|
@@ -16890,23 +16939,25 @@
|
|
|
16890
16939
|
node && expandNode(node);
|
|
16891
16940
|
};
|
|
16892
16941
|
const getFlattedNodes = (leafOnly) => {
|
|
16893
|
-
return store
|
|
16942
|
+
return store == null ? void 0 : store.getFlattedNodes(leafOnly);
|
|
16894
16943
|
};
|
|
16895
16944
|
const getCheckedNodes = (leafOnly) => {
|
|
16896
|
-
|
|
16945
|
+
var _a;
|
|
16946
|
+
return (_a = getFlattedNodes(leafOnly)) == null ? void 0 : _a.filter((node) => node.checked !== false);
|
|
16897
16947
|
};
|
|
16898
16948
|
const clearCheckedNodes = () => {
|
|
16899
16949
|
checkedNodes.value.forEach((node) => node.doCheck(false));
|
|
16900
16950
|
calculateCheckedValue();
|
|
16901
16951
|
};
|
|
16902
16952
|
const calculateCheckedValue = () => {
|
|
16953
|
+
var _a;
|
|
16903
16954
|
const { checkStrictly, multiple } = config.value;
|
|
16904
16955
|
const oldNodes = checkedNodes.value;
|
|
16905
16956
|
const newNodes = getCheckedNodes(!checkStrictly);
|
|
16906
16957
|
const nodes = sortByOriginalOrder(oldNodes, newNodes);
|
|
16907
16958
|
const values = nodes.map((node) => node.valueByOption);
|
|
16908
16959
|
checkedNodes.value = nodes;
|
|
16909
|
-
checkedValue.value = multiple ? values : values[0]
|
|
16960
|
+
checkedValue.value = multiple ? values : (_a = values[0]) != null ? _a : null;
|
|
16910
16961
|
};
|
|
16911
16962
|
const syncCheckedValue = (loaded = false, forced = false) => {
|
|
16912
16963
|
const { modelValue } = props;
|
|
@@ -16916,7 +16967,7 @@
|
|
|
16916
16967
|
return;
|
|
16917
16968
|
if (lazy && !loaded) {
|
|
16918
16969
|
const values = deduplicate(arrayFlat(coerceTruthyValueToArray(modelValue)));
|
|
16919
|
-
const nodes = values.map((val) => store
|
|
16970
|
+
const nodes = values.map((val) => store == null ? void 0 : store.getNodeByValue(val)).filter((node) => !!node && !node.loaded && !node.loading);
|
|
16920
16971
|
if (nodes.length) {
|
|
16921
16972
|
nodes.forEach((node) => {
|
|
16922
16973
|
lazyLoad(node, () => syncCheckedValue(false, forced));
|
|
@@ -16926,7 +16977,7 @@
|
|
|
16926
16977
|
}
|
|
16927
16978
|
} else {
|
|
16928
16979
|
const values = multiple ? coerceTruthyValueToArray(modelValue) : [modelValue];
|
|
16929
|
-
const nodes = deduplicate(values.map((val) => store
|
|
16980
|
+
const nodes = deduplicate(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
|
|
16930
16981
|
syncMenuState(nodes, false);
|
|
16931
16982
|
checkedValue.value = modelValue;
|
|
16932
16983
|
}
|
|
@@ -16935,7 +16986,7 @@
|
|
|
16935
16986
|
const { checkStrictly } = config.value;
|
|
16936
16987
|
const oldNodes = checkedNodes.value;
|
|
16937
16988
|
const newNodes = newCheckedNodes.filter((node) => !!node && (checkStrictly || node.isLeaf));
|
|
16938
|
-
const oldExpandingNode = store
|
|
16989
|
+
const oldExpandingNode = store == null ? void 0 : store.getSameNode(expandingNode.value);
|
|
16939
16990
|
const newExpandingNode = reserveExpandingState && oldExpandingNode || newNodes[0];
|
|
16940
16991
|
if (newExpandingNode) {
|
|
16941
16992
|
newExpandingNode.pathNodes.forEach((node) => expandNode(node, true));
|
|
@@ -16951,7 +17002,7 @@
|
|
|
16951
17002
|
if (!isClient)
|
|
16952
17003
|
return;
|
|
16953
17004
|
menuList.value.forEach((menu) => {
|
|
16954
|
-
const menuElement = menu
|
|
17005
|
+
const menuElement = menu == null ? void 0 : menu.$el;
|
|
16955
17006
|
if (menuElement) {
|
|
16956
17007
|
const container = menuElement.querySelector(".el-scrollbar__wrap");
|
|
16957
17008
|
const activeNode = menuElement.querySelector(".el-cascader-node.is-active") || menuElement.querySelector(".el-cascader-node.in-active-path");
|
|
@@ -16973,14 +17024,14 @@
|
|
|
16973
17024
|
case EVENT_CODE.left: {
|
|
16974
17025
|
e.preventDefault();
|
|
16975
17026
|
const preMenu = menuList.value[getMenuIndex(target) - 1];
|
|
16976
|
-
const expandedNode = preMenu
|
|
17027
|
+
const expandedNode = preMenu == null ? void 0 : preMenu.$el.querySelector('.el-cascader-node[aria-expanded="true"]');
|
|
16977
17028
|
focusNode(expandedNode);
|
|
16978
17029
|
break;
|
|
16979
17030
|
}
|
|
16980
17031
|
case EVENT_CODE.right: {
|
|
16981
17032
|
e.preventDefault();
|
|
16982
17033
|
const nextMenu = menuList.value[getMenuIndex(target) + 1];
|
|
16983
|
-
const firstNode = nextMenu
|
|
17034
|
+
const firstNode = nextMenu == null ? void 0 : nextMenu.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
16984
17035
|
focusNode(firstNode);
|
|
16985
17036
|
break;
|
|
16986
17037
|
}
|
|
@@ -17290,7 +17341,10 @@
|
|
|
17290
17341
|
const multiple = vue.computed(() => !!props.props.multiple);
|
|
17291
17342
|
const readonly = vue.computed(() => !props.filterable || multiple.value);
|
|
17292
17343
|
const searchKeyword = vue.computed(() => multiple.value ? searchInputValue.value : inputValue.value);
|
|
17293
|
-
const checkedNodes = vue.computed(() =>
|
|
17344
|
+
const checkedNodes = vue.computed(() => {
|
|
17345
|
+
var _a;
|
|
17346
|
+
return ((_a = panel.value) == null ? void 0 : _a.checkedNodes) || [];
|
|
17347
|
+
});
|
|
17294
17348
|
const clearBtnVisible = vue.computed(() => {
|
|
17295
17349
|
if (!props.clearable || isDisabled.value || filtering.value || !inputHover.value)
|
|
17296
17350
|
return false;
|
|
@@ -17306,24 +17360,27 @@
|
|
|
17306
17360
|
return props.modelValue;
|
|
17307
17361
|
},
|
|
17308
17362
|
set(val) {
|
|
17363
|
+
var _a;
|
|
17309
17364
|
emit(UPDATE_MODEL_EVENT, val);
|
|
17310
17365
|
emit(CHANGE_EVENT, val);
|
|
17311
|
-
elFormItem.validate
|
|
17366
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
17312
17367
|
}
|
|
17313
17368
|
});
|
|
17314
17369
|
const popperPaneRef = vue.computed(() => {
|
|
17315
|
-
|
|
17370
|
+
var _a, _b;
|
|
17371
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
17316
17372
|
});
|
|
17317
17373
|
const togglePopperVisible = (visible) => {
|
|
17374
|
+
var _a, _b, _c;
|
|
17318
17375
|
if (isDisabled.value)
|
|
17319
17376
|
return;
|
|
17320
|
-
visible = visible
|
|
17377
|
+
visible = visible != null ? visible : !popperVisible.value;
|
|
17321
17378
|
if (visible !== popperVisible.value) {
|
|
17322
17379
|
popperVisible.value = visible;
|
|
17323
|
-
input.value
|
|
17380
|
+
(_b = (_a = input.value) == null ? void 0 : _a.input) == null ? void 0 : _b.setAttribute("aria-expanded", `${visible}`);
|
|
17324
17381
|
if (visible) {
|
|
17325
17382
|
updatePopperPosition();
|
|
17326
|
-
vue.nextTick(panel.value
|
|
17383
|
+
vue.nextTick((_c = panel.value) == null ? void 0 : _c.scrollToExpandingNode);
|
|
17327
17384
|
} else if (props.filterable) {
|
|
17328
17385
|
const { value } = presentText;
|
|
17329
17386
|
inputValue.value = value;
|
|
@@ -17334,7 +17391,8 @@
|
|
|
17334
17391
|
};
|
|
17335
17392
|
const updatePopperPosition = () => {
|
|
17336
17393
|
vue.nextTick(() => {
|
|
17337
|
-
|
|
17394
|
+
var _a;
|
|
17395
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.updatePopper();
|
|
17338
17396
|
});
|
|
17339
17397
|
};
|
|
17340
17398
|
const hideSuggestionPanel = () => {
|
|
@@ -17351,9 +17409,10 @@
|
|
|
17351
17409
|
};
|
|
17352
17410
|
};
|
|
17353
17411
|
const deleteTag = (tag) => {
|
|
17412
|
+
var _a;
|
|
17354
17413
|
const node = tag.node;
|
|
17355
17414
|
node.doCheck(false);
|
|
17356
|
-
panel.value
|
|
17415
|
+
(_a = panel.value) == null ? void 0 : _a.calculateCheckedValue();
|
|
17357
17416
|
emit("remove-tag", node.valueByOption);
|
|
17358
17417
|
};
|
|
17359
17418
|
const calculatePresentTags = () => {
|
|
@@ -17380,8 +17439,9 @@
|
|
|
17380
17439
|
presentTags.value = tags;
|
|
17381
17440
|
};
|
|
17382
17441
|
const calculateSuggestions = () => {
|
|
17442
|
+
var _a, _b;
|
|
17383
17443
|
const { filterMethod, showAllLevels, separator } = props;
|
|
17384
|
-
const res = panel.value
|
|
17444
|
+
const res = (_b = (_a = panel.value) == null ? void 0 : _a.getFlattedNodes(!props.props.checkStrictly)) == null ? void 0 : _b.filter((node) => {
|
|
17385
17445
|
if (node.isDisabled)
|
|
17386
17446
|
return false;
|
|
17387
17447
|
node.calcText(showAllLevels, separator);
|
|
@@ -17397,11 +17457,12 @@
|
|
|
17397
17457
|
updatePopperPosition();
|
|
17398
17458
|
};
|
|
17399
17459
|
const focusFirstNode = () => {
|
|
17460
|
+
var _a;
|
|
17400
17461
|
let firstNode;
|
|
17401
17462
|
if (filtering.value && suggestionPanel.value) {
|
|
17402
17463
|
firstNode = suggestionPanel.value.$el.querySelector(".el-cascader__suggestion-item");
|
|
17403
17464
|
} else {
|
|
17404
|
-
firstNode = panel.value
|
|
17465
|
+
firstNode = (_a = panel.value) == null ? void 0 : _a.$el.querySelector('.el-cascader-node[tabindex="-1"]');
|
|
17405
17466
|
}
|
|
17406
17467
|
if (firstNode) {
|
|
17407
17468
|
firstNode.focus();
|
|
@@ -17409,9 +17470,10 @@
|
|
|
17409
17470
|
}
|
|
17410
17471
|
};
|
|
17411
17472
|
const updateStyle = () => {
|
|
17412
|
-
|
|
17473
|
+
var _a, _b;
|
|
17474
|
+
const inputInner = (_a = input.value) == null ? void 0 : _a.input;
|
|
17413
17475
|
const tagWrapperEl = tagWrapper.value;
|
|
17414
|
-
const suggestionPanelEl = suggestionPanel.value
|
|
17476
|
+
const suggestionPanelEl = (_b = suggestionPanel.value) == null ? void 0 : _b.$el;
|
|
17415
17477
|
if (!isClient || !inputInner)
|
|
17416
17478
|
return;
|
|
17417
17479
|
if (suggestionPanelEl) {
|
|
@@ -17426,14 +17488,16 @@
|
|
|
17426
17488
|
}
|
|
17427
17489
|
};
|
|
17428
17490
|
const getCheckedNodes = (leafOnly) => {
|
|
17429
|
-
|
|
17491
|
+
var _a;
|
|
17492
|
+
return (_a = panel.value) == null ? void 0 : _a.getCheckedNodes(leafOnly);
|
|
17430
17493
|
};
|
|
17431
17494
|
const handleExpandChange = (value) => {
|
|
17432
17495
|
updatePopperPosition();
|
|
17433
17496
|
emit("expand-change", value);
|
|
17434
17497
|
};
|
|
17435
17498
|
const handleComposition = (event) => {
|
|
17436
|
-
|
|
17499
|
+
var _a;
|
|
17500
|
+
const text = (_a = event.target) == null ? void 0 : _a.value;
|
|
17437
17501
|
if (event.type === "compositionend") {
|
|
17438
17502
|
isOnComposition.value = false;
|
|
17439
17503
|
vue.nextTick(() => handleInput(text));
|
|
@@ -17461,15 +17525,17 @@
|
|
|
17461
17525
|
}
|
|
17462
17526
|
};
|
|
17463
17527
|
const handleClear = () => {
|
|
17464
|
-
|
|
17528
|
+
var _a;
|
|
17529
|
+
(_a = panel.value) == null ? void 0 : _a.clearCheckedNodes();
|
|
17465
17530
|
togglePopperVisible(false);
|
|
17466
17531
|
};
|
|
17467
17532
|
const handleSuggestionClick = (node) => {
|
|
17533
|
+
var _a, _b;
|
|
17468
17534
|
const { checked } = node;
|
|
17469
17535
|
if (multiple.value) {
|
|
17470
|
-
panel.value
|
|
17536
|
+
(_a = panel.value) == null ? void 0 : _a.handleCheckChange(node, !checked, false);
|
|
17471
17537
|
} else {
|
|
17472
|
-
!checked && panel.value
|
|
17538
|
+
!checked && ((_b = panel.value) == null ? void 0 : _b.handleCheckChange(node, true, false));
|
|
17473
17539
|
togglePopperVisible(false);
|
|
17474
17540
|
}
|
|
17475
17541
|
};
|
|
@@ -17520,7 +17586,7 @@
|
|
|
17520
17586
|
}, props.debounce);
|
|
17521
17587
|
const handleInput = (val, e) => {
|
|
17522
17588
|
!popperVisible.value && togglePopperVisible(true);
|
|
17523
|
-
if (e
|
|
17589
|
+
if (e == null ? void 0 : e.isComposing)
|
|
17524
17590
|
return;
|
|
17525
17591
|
val ? handleFilter() : hideSuggestionPanel();
|
|
17526
17592
|
};
|
|
@@ -17531,12 +17597,14 @@
|
|
|
17531
17597
|
});
|
|
17532
17598
|
vue.watch(presentText, (val) => inputValue.value = val, { immediate: true });
|
|
17533
17599
|
vue.onMounted(() => {
|
|
17534
|
-
|
|
17535
|
-
|
|
17600
|
+
var _a;
|
|
17601
|
+
const inputEl = (_a = input.value) == null ? void 0 : _a.$el;
|
|
17602
|
+
inputInitialHeight = (inputEl == null ? void 0 : inputEl.offsetHeight) || INPUT_HEIGHT_MAP[realSize.value] || DEFAULT_INPUT_HEIGHT;
|
|
17536
17603
|
addResizeListener(inputEl, updateStyle);
|
|
17537
17604
|
});
|
|
17538
17605
|
vue.onBeforeUnmount(() => {
|
|
17539
|
-
|
|
17606
|
+
var _a;
|
|
17607
|
+
removeResizeListener((_a = input.value) == null ? void 0 : _a.$el, updateStyle);
|
|
17540
17608
|
});
|
|
17541
17609
|
return {
|
|
17542
17610
|
popperOptions,
|
|
@@ -18078,7 +18146,7 @@
|
|
|
18078
18146
|
const isClick = vue.ref(false);
|
|
18079
18147
|
const id = vue.ref(generateId());
|
|
18080
18148
|
const isActive = vue.computed(() => {
|
|
18081
|
-
return collapse
|
|
18149
|
+
return (collapse == null ? void 0 : collapse.activeNames.value.indexOf(props.name)) > -1;
|
|
18082
18150
|
});
|
|
18083
18151
|
const handleFocus = () => {
|
|
18084
18152
|
setTimeout(() => {
|
|
@@ -18092,12 +18160,12 @@
|
|
|
18092
18160
|
const handleHeaderClick = () => {
|
|
18093
18161
|
if (props.disabled)
|
|
18094
18162
|
return;
|
|
18095
|
-
collapse
|
|
18163
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18096
18164
|
focusing.value = false;
|
|
18097
18165
|
isClick.value = true;
|
|
18098
18166
|
};
|
|
18099
18167
|
const handleEnterClick = () => {
|
|
18100
|
-
collapse
|
|
18168
|
+
collapse == null ? void 0 : collapse.handleItemClick(props.name);
|
|
18101
18169
|
};
|
|
18102
18170
|
return {
|
|
18103
18171
|
isActive,
|
|
@@ -18997,10 +19065,11 @@
|
|
|
18997
19065
|
color.fromString(customInput.value);
|
|
18998
19066
|
}
|
|
18999
19067
|
function confirmValue() {
|
|
19068
|
+
var _a;
|
|
19000
19069
|
const value = color.value;
|
|
19001
19070
|
emit(UPDATE_MODEL_EVENT, value);
|
|
19002
19071
|
emit("change", value);
|
|
19003
|
-
elFormItem.validate
|
|
19072
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
19004
19073
|
debounceSetShowPicker(false);
|
|
19005
19074
|
vue.nextTick(() => {
|
|
19006
19075
|
const newColor = new Color({
|
|
@@ -19014,11 +19083,12 @@
|
|
|
19014
19083
|
});
|
|
19015
19084
|
}
|
|
19016
19085
|
function clear() {
|
|
19086
|
+
var _a;
|
|
19017
19087
|
debounceSetShowPicker(false);
|
|
19018
19088
|
emit(UPDATE_MODEL_EVENT, null);
|
|
19019
19089
|
emit("change", null);
|
|
19020
19090
|
if (props.modelValue !== null) {
|
|
19021
|
-
elFormItem.validate
|
|
19091
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
19022
19092
|
}
|
|
19023
19093
|
resetColor();
|
|
19024
19094
|
}
|
|
@@ -19029,9 +19099,10 @@
|
|
|
19029
19099
|
});
|
|
19030
19100
|
vue.watch(() => showPicker.value, () => {
|
|
19031
19101
|
vue.nextTick(() => {
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19102
|
+
var _a, _b, _c;
|
|
19103
|
+
(_a = hue.value) == null ? void 0 : _a.update();
|
|
19104
|
+
(_b = svPanel.value) == null ? void 0 : _b.update();
|
|
19105
|
+
(_c = alpha.value) == null ? void 0 : _c.update();
|
|
19035
19106
|
});
|
|
19036
19107
|
});
|
|
19037
19108
|
vue.provide(OPTIONS_KEY, {
|
|
@@ -19539,6 +19610,7 @@
|
|
|
19539
19610
|
return WEEKS_CONSTANT.concat(WEEKS_CONSTANT).slice(firstDayOfWeek, firstDayOfWeek + 7);
|
|
19540
19611
|
});
|
|
19541
19612
|
const rows = vue.computed(() => {
|
|
19613
|
+
var _a;
|
|
19542
19614
|
const startOfMonth = props.date.startOf("month");
|
|
19543
19615
|
const startOfMonthDay = startOfMonth.day() || 7;
|
|
19544
19616
|
const dateCountOfMonth = startOfMonth.daysInMonth();
|
|
@@ -19578,7 +19650,7 @@
|
|
|
19578
19650
|
cell.type = "normal";
|
|
19579
19651
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19580
19652
|
cell.inRange = props.minDate && calTime.isSameOrAfter(props.minDate, "day") && calEndDate && calTime.isSameOrBefore(calEndDate, "day") || props.minDate && calTime.isSameOrBefore(props.minDate, "day") && calEndDate && calTime.isSameOrAfter(calEndDate, "day");
|
|
19581
|
-
if (props.minDate
|
|
19653
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19582
19654
|
cell.start = calEndDate && calTime.isSame(calEndDate, "day");
|
|
19583
19655
|
cell.end = props.minDate && calTime.isSame(props.minDate, "day");
|
|
19584
19656
|
} else {
|
|
@@ -19847,6 +19919,7 @@
|
|
|
19847
19919
|
const lastRow = vue.ref(null);
|
|
19848
19920
|
const lastColumn = vue.ref(null);
|
|
19849
19921
|
const rows = vue.computed(() => {
|
|
19922
|
+
var _a;
|
|
19850
19923
|
const rows2 = tableRows.value;
|
|
19851
19924
|
const now = dayjs().locale(lang.value).startOf("month");
|
|
19852
19925
|
for (let i = 0; i < 3; i++) {
|
|
@@ -19868,7 +19941,7 @@
|
|
|
19868
19941
|
const calTime = props.date.startOf("year").month(index);
|
|
19869
19942
|
const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate;
|
|
19870
19943
|
cell.inRange = props.minDate && calTime.isSameOrAfter(props.minDate, "month") && calEndDate && calTime.isSameOrBefore(calEndDate, "month") || props.minDate && calTime.isSameOrBefore(props.minDate, "month") && calEndDate && calTime.isSameOrAfter(calEndDate, "month");
|
|
19871
|
-
if (props.minDate
|
|
19944
|
+
if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {
|
|
19872
19945
|
cell.start = calEndDate && calTime.isSame(calEndDate, "month");
|
|
19873
19946
|
cell.end = props.minDate && calTime.isSame(props.minDate, "month");
|
|
19874
19947
|
} else {
|
|
@@ -20286,7 +20359,7 @@
|
|
|
20286
20359
|
currentView.value = "date";
|
|
20287
20360
|
}, { immediate: true });
|
|
20288
20361
|
vue.watch(() => currentView.value, () => {
|
|
20289
|
-
popper
|
|
20362
|
+
popper == null ? void 0 : popper.updatePopper();
|
|
20290
20363
|
});
|
|
20291
20364
|
const hasShortcuts = vue.computed(() => !!shortcuts.length);
|
|
20292
20365
|
const handleMonthPick = (month2) => {
|
|
@@ -22120,13 +22193,18 @@
|
|
|
22120
22193
|
return node;
|
|
22121
22194
|
};
|
|
22122
22195
|
const getRows = () => {
|
|
22123
|
-
|
|
22196
|
+
var _a;
|
|
22197
|
+
const children = flattedChildren((_a = slots.default) == null ? void 0 : _a.call(slots)).filter((node) => {
|
|
22198
|
+
var _a2;
|
|
22199
|
+
return ((_a2 = node == null ? void 0 : node.type) == null ? void 0 : _a2.name) === "ElDescriptionsItem";
|
|
22200
|
+
});
|
|
22124
22201
|
const rows = [];
|
|
22125
22202
|
let temp = [];
|
|
22126
22203
|
let count = props.column;
|
|
22127
22204
|
let totalSpan = 0;
|
|
22128
22205
|
children.forEach((node, index) => {
|
|
22129
|
-
|
|
22206
|
+
var _a2;
|
|
22207
|
+
const span = ((_a2 = node.props) == null ? void 0 : _a2.span) || 1;
|
|
22130
22208
|
if (index < children.length - 1) {
|
|
22131
22209
|
totalSpan += span > count ? count : span;
|
|
22132
22210
|
}
|
|
@@ -22369,8 +22447,7 @@
|
|
|
22369
22447
|
},
|
|
22370
22448
|
modalClass: String,
|
|
22371
22449
|
width: {
|
|
22372
|
-
type: [String, Number]
|
|
22373
|
-
validator: isValidWidthUnit
|
|
22450
|
+
type: [String, Number]
|
|
22374
22451
|
},
|
|
22375
22452
|
zIndex: {
|
|
22376
22453
|
type: Number
|
|
@@ -23039,7 +23116,7 @@
|
|
|
23039
23116
|
on(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23040
23117
|
trapContainer.dispatchEvent(unmountEvent);
|
|
23041
23118
|
if (!unmountEvent.defaultPrevented) {
|
|
23042
|
-
tryFocus(lastFocusBeforeMounted
|
|
23119
|
+
tryFocus(lastFocusBeforeMounted != null ? lastFocusBeforeMounted : document.body, true);
|
|
23043
23120
|
}
|
|
23044
23121
|
off(trapContainer, FOCUS_ON_UNMOUNT, focusOnUnmount);
|
|
23045
23122
|
focusableStack.remove(focusLayer);
|
|
@@ -23216,7 +23293,8 @@
|
|
|
23216
23293
|
props: rovingFocusGroupProps,
|
|
23217
23294
|
emits: [CURRENT_TAB_ID_CHANGE_EVT, "entryFocus"],
|
|
23218
23295
|
setup(props, { emit }) {
|
|
23219
|
-
|
|
23296
|
+
var _a;
|
|
23297
|
+
const currentTabbedId = vue.ref((_a = props.currentTabId || props.defaultCurrentTabId) != null ? _a : null);
|
|
23220
23298
|
const isBackingOut = vue.ref(false);
|
|
23221
23299
|
const isClickFocus = vue.ref(false);
|
|
23222
23300
|
const rovingFocusGroupRef = vue.ref(null);
|
|
@@ -23236,18 +23314,20 @@
|
|
|
23236
23314
|
isBackingOut.value = true;
|
|
23237
23315
|
};
|
|
23238
23316
|
const onMousedown = composeEventHandlers((e) => {
|
|
23239
|
-
|
|
23317
|
+
var _a2;
|
|
23318
|
+
(_a2 = props.onMousedown) == null ? void 0 : _a2.call(props, e);
|
|
23240
23319
|
}, () => {
|
|
23241
23320
|
isClickFocus.value = true;
|
|
23242
23321
|
});
|
|
23243
23322
|
const onFocus = composeEventHandlers((e) => {
|
|
23244
|
-
|
|
23323
|
+
var _a2;
|
|
23324
|
+
(_a2 = props.onFocus) == null ? void 0 : _a2.call(props, e);
|
|
23245
23325
|
}, (e) => {
|
|
23246
23326
|
const isKeyboardFocus = !vue.unref(isClickFocus);
|
|
23247
23327
|
const { target, currentTarget } = e;
|
|
23248
23328
|
if (target === currentTarget && isKeyboardFocus && !vue.unref(isBackingOut)) {
|
|
23249
23329
|
const entryFocusEvt = new Event(ENTRY_FOCUS_EVT, EVT_OPTS);
|
|
23250
|
-
currentTarget
|
|
23330
|
+
currentTarget == null ? void 0 : currentTarget.dispatchEvent(entryFocusEvt);
|
|
23251
23331
|
if (!entryFocusEvt.defaultPrevented) {
|
|
23252
23332
|
const items = getItems().filter((item) => item.focusable);
|
|
23253
23333
|
const activeItem = items.find((item) => item.active);
|
|
@@ -23260,7 +23340,8 @@
|
|
|
23260
23340
|
isClickFocus.value = false;
|
|
23261
23341
|
});
|
|
23262
23342
|
const onBlur = composeEventHandlers((e) => {
|
|
23263
|
-
|
|
23343
|
+
var _a2;
|
|
23344
|
+
(_a2 = props.onBlur) == null ? void 0 : _a2.call(props, e);
|
|
23264
23345
|
}, () => {
|
|
23265
23346
|
isBackingOut.value = false;
|
|
23266
23347
|
});
|
|
@@ -23284,7 +23365,7 @@
|
|
|
23284
23365
|
onMousedown
|
|
23285
23366
|
});
|
|
23286
23367
|
vue.watch(() => props.currentTabId, (val) => {
|
|
23287
|
-
currentTabbedId.value = val
|
|
23368
|
+
currentTabbedId.value = val != null ? val : null;
|
|
23288
23369
|
});
|
|
23289
23370
|
vue.onMounted(() => {
|
|
23290
23371
|
const rovingFocusGroupEl = vue.unref(rovingFocusGroupRef);
|
|
@@ -23543,10 +23624,12 @@
|
|
|
23543
23624
|
handleClose();
|
|
23544
23625
|
}
|
|
23545
23626
|
function handleClose() {
|
|
23546
|
-
|
|
23627
|
+
var _a;
|
|
23628
|
+
(_a = popperRef.value) == null ? void 0 : _a.onClose();
|
|
23547
23629
|
}
|
|
23548
23630
|
function handleOpen() {
|
|
23549
|
-
|
|
23631
|
+
var _a;
|
|
23632
|
+
(_a = popperRef.value) == null ? void 0 : _a.onOpen();
|
|
23550
23633
|
}
|
|
23551
23634
|
const dropdownSize = useSize();
|
|
23552
23635
|
function commandHandler(...args) {
|
|
@@ -23556,7 +23639,7 @@
|
|
|
23556
23639
|
}
|
|
23557
23640
|
function onItemLeave() {
|
|
23558
23641
|
const contentEl = vue.unref(contentRef);
|
|
23559
|
-
contentEl
|
|
23642
|
+
contentEl == null ? void 0 : contentEl.focus();
|
|
23560
23643
|
currentTabId.value = null;
|
|
23561
23644
|
}
|
|
23562
23645
|
function handleCurrentTabIdChange(id) {
|
|
@@ -23583,8 +23666,9 @@
|
|
|
23583
23666
|
hideOnClick: vue.toRef(props, "hideOnClick")
|
|
23584
23667
|
});
|
|
23585
23668
|
const onMountOnFocus = (e) => {
|
|
23669
|
+
var _a, _b;
|
|
23586
23670
|
e.preventDefault();
|
|
23587
|
-
contentRef.value
|
|
23671
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a, {
|
|
23588
23672
|
preventScroll: true
|
|
23589
23673
|
});
|
|
23590
23674
|
};
|
|
@@ -23611,6 +23695,7 @@
|
|
|
23611
23695
|
});
|
|
23612
23696
|
const _hoisted_1$G = { class: "el-dropdown" };
|
|
23613
23697
|
function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23698
|
+
var _a;
|
|
23614
23699
|
const _component_el_dropdown_collection = vue.resolveComponent("el-dropdown-collection");
|
|
23615
23700
|
const _component_el_roving_focus_group = vue.resolveComponent("el-roving-focus-group");
|
|
23616
23701
|
const _component_el_focus_trap = vue.resolveComponent("el-focus-trap");
|
|
@@ -23631,7 +23716,7 @@
|
|
|
23631
23716
|
"manual-mode": true,
|
|
23632
23717
|
placement: _ctx.placement,
|
|
23633
23718
|
"popper-class": `el-dropdown__popper ${_ctx.popperClass}`,
|
|
23634
|
-
"reference-element": _ctx.referenceElementRef
|
|
23719
|
+
"reference-element": (_a = _ctx.referenceElementRef) == null ? void 0 : _a.$el,
|
|
23635
23720
|
trigger: _ctx.trigger,
|
|
23636
23721
|
"show-after": _ctx.showTimeout,
|
|
23637
23722
|
"stop-popper-mouse-event": false,
|
|
@@ -23827,18 +23912,22 @@
|
|
|
23827
23912
|
const { elDropdown } = useDropdown();
|
|
23828
23913
|
const _instance = vue.getCurrentInstance();
|
|
23829
23914
|
const itemRef = vue.ref(null);
|
|
23830
|
-
const textContent = vue.computed(() =>
|
|
23915
|
+
const textContent = vue.computed(() => {
|
|
23916
|
+
var _a, _b;
|
|
23917
|
+
return (_b = (_a = vue.unref(itemRef)) == null ? void 0 : _a.textContent) != null ? _b : "";
|
|
23918
|
+
});
|
|
23831
23919
|
const { onItemEnter, onItemLeave } = vue.inject(DROPDOWN_INJECTION_KEY, void 0);
|
|
23832
23920
|
const handlePointerMove = composeEventHandlers((e) => {
|
|
23833
23921
|
emit("pointermove", e);
|
|
23834
23922
|
return e.defaultPrevented;
|
|
23835
23923
|
}, whenMouse((e) => {
|
|
23924
|
+
var _a;
|
|
23836
23925
|
if (props.disabled) {
|
|
23837
23926
|
onItemLeave(e);
|
|
23838
23927
|
} else {
|
|
23839
23928
|
onItemEnter(e);
|
|
23840
23929
|
if (!e.defaultPrevented) {
|
|
23841
|
-
e.currentTarget
|
|
23930
|
+
(_a = e.currentTarget) == null ? void 0 : _a.focus();
|
|
23842
23931
|
}
|
|
23843
23932
|
}
|
|
23844
23933
|
}));
|
|
@@ -23852,14 +23941,15 @@
|
|
|
23852
23941
|
emit("click", e);
|
|
23853
23942
|
return e.defaultPrevented;
|
|
23854
23943
|
}, (e) => {
|
|
23944
|
+
var _a, _b, _c;
|
|
23855
23945
|
if (props.disabled) {
|
|
23856
23946
|
e.stopImmediatePropagation();
|
|
23857
23947
|
return;
|
|
23858
23948
|
}
|
|
23859
|
-
if (elDropdown
|
|
23860
|
-
elDropdown.handleClick
|
|
23949
|
+
if ((_a = elDropdown == null ? void 0 : elDropdown.hideOnClick) == null ? void 0 : _a.value) {
|
|
23950
|
+
(_b = elDropdown.handleClick) == null ? void 0 : _b.call(elDropdown);
|
|
23861
23951
|
}
|
|
23862
|
-
elDropdown.commandHandler
|
|
23952
|
+
(_c = elDropdown.commandHandler) == null ? void 0 : _c.call(elDropdown, props.command, _instance, e);
|
|
23863
23953
|
});
|
|
23864
23954
|
return {
|
|
23865
23955
|
handleClick,
|
|
@@ -23870,12 +23960,13 @@
|
|
|
23870
23960
|
}
|
|
23871
23961
|
});
|
|
23872
23962
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23963
|
+
var _a;
|
|
23873
23964
|
const _component_el_dropdown_item_impl = vue.resolveComponent("el-dropdown-item-impl");
|
|
23874
23965
|
const _component_el_roving_focus_item = vue.resolveComponent("el-roving-focus-item");
|
|
23875
23966
|
const _component_el_dropdown_collection_item = vue.resolveComponent("el-dropdown-collection-item");
|
|
23876
23967
|
return vue.openBlock(), vue.createBlock(_component_el_dropdown_collection_item, {
|
|
23877
23968
|
disabled: _ctx.disabled,
|
|
23878
|
-
"text-value": _ctx.textValue
|
|
23969
|
+
"text-value": (_a = _ctx.textValue) != null ? _a : _ctx.textContent
|
|
23879
23970
|
}, {
|
|
23880
23971
|
default: vue.withCtx(() => [
|
|
23881
23972
|
vue.createVNode(_component_el_roving_focus_item, {
|
|
@@ -23927,7 +24018,8 @@
|
|
|
23927
24018
|
});
|
|
23928
24019
|
const dropdownListWrapperRef = composeRefs(contentRef, dropdownCollectionRef, focusTrapRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
|
23929
24020
|
const composedKeydown = composeEventHandlers((e) => {
|
|
23930
|
-
|
|
24021
|
+
var _a;
|
|
24022
|
+
(_a = props.onKeydown) == null ? void 0 : _a.call(props, e);
|
|
23931
24023
|
}, (e) => {
|
|
23932
24024
|
const { currentTarget, code, target } = e;
|
|
23933
24025
|
currentTarget.contains(target);
|
|
@@ -25916,10 +26008,11 @@
|
|
|
25916
26008
|
const model = {};
|
|
25917
26009
|
model[props.prop] = fieldValue.value;
|
|
25918
26010
|
validator.validate(model, { firstFields: true }, (errors, fields) => {
|
|
26011
|
+
var _a;
|
|
25919
26012
|
validateState.value = !errors ? "success" : "error";
|
|
25920
26013
|
validateMessage.value = errors ? errors[0].message || `${props.prop} is required` : "";
|
|
25921
26014
|
callback(validateMessage.value, errors ? fields : {});
|
|
25922
|
-
elForm.emit
|
|
26015
|
+
(_a = elForm.emit) == null ? void 0 : _a.call(elForm, "validate", props.prop, !errors, validateMessage.value || null);
|
|
25923
26016
|
});
|
|
25924
26017
|
};
|
|
25925
26018
|
const clearValidate = () => {
|
|
@@ -25964,7 +26057,8 @@
|
|
|
25964
26057
|
}).map((rule) => ({ ...rule }));
|
|
25965
26058
|
};
|
|
25966
26059
|
const evaluateValidationEnabled = () => {
|
|
25967
|
-
|
|
26060
|
+
var _a;
|
|
26061
|
+
isValidationEnabled.value = !!((_a = getRules()) == null ? void 0 : _a.length);
|
|
25968
26062
|
};
|
|
25969
26063
|
const updateComputedLabelWidth = (width) => {
|
|
25970
26064
|
computedLabelWidth.value = width ? `${width}px` : "";
|
|
@@ -25982,14 +26076,14 @@
|
|
|
25982
26076
|
});
|
|
25983
26077
|
vue.onMounted(() => {
|
|
25984
26078
|
if (props.prop) {
|
|
25985
|
-
elForm
|
|
26079
|
+
elForm == null ? void 0 : elForm.addField(elFormItem);
|
|
25986
26080
|
const value = fieldValue.value;
|
|
25987
26081
|
initialValue = Array.isArray(value) ? [...value] : value;
|
|
25988
26082
|
evaluateValidationEnabled();
|
|
25989
26083
|
}
|
|
25990
26084
|
});
|
|
25991
26085
|
vue.onBeforeUnmount(() => {
|
|
25992
|
-
elForm
|
|
26086
|
+
elForm == null ? void 0 : elForm.removeField(elFormItem);
|
|
25993
26087
|
});
|
|
25994
26088
|
vue.provide(elFormItemKey, elFormItem);
|
|
25995
26089
|
const formItemClass = vue.computed(() => [
|
|
@@ -26317,7 +26411,7 @@
|
|
|
26317
26411
|
vue.watch(currentImg, () => {
|
|
26318
26412
|
vue.nextTick(() => {
|
|
26319
26413
|
const $img = img.value;
|
|
26320
|
-
if (
|
|
26414
|
+
if (!($img == null ? void 0 : $img.complete)) {
|
|
26321
26415
|
loading.value = true;
|
|
26322
26416
|
}
|
|
26323
26417
|
});
|
|
@@ -26327,8 +26421,9 @@
|
|
|
26327
26421
|
emit("switch", val);
|
|
26328
26422
|
});
|
|
26329
26423
|
vue.onMounted(() => {
|
|
26424
|
+
var _a, _b;
|
|
26330
26425
|
registerEventListener();
|
|
26331
|
-
wrapper.value
|
|
26426
|
+
(_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26332
26427
|
});
|
|
26333
26428
|
return {
|
|
26334
26429
|
index,
|
|
@@ -26635,6 +26730,7 @@
|
|
|
26635
26730
|
}
|
|
26636
26731
|
const lazyLoadHandler = useThrottleFn(handleLazyLoad, 200);
|
|
26637
26732
|
async function addLazyLoadListener() {
|
|
26733
|
+
var _a;
|
|
26638
26734
|
if (!isClient)
|
|
26639
26735
|
return;
|
|
26640
26736
|
await vue.nextTick();
|
|
@@ -26642,7 +26738,7 @@
|
|
|
26642
26738
|
if (isHtmlElement(scrollContainer)) {
|
|
26643
26739
|
_scrollContainer.value = scrollContainer;
|
|
26644
26740
|
} else if (isString$1(scrollContainer) && scrollContainer !== "") {
|
|
26645
|
-
_scrollContainer.value = document.querySelector(scrollContainer)
|
|
26741
|
+
_scrollContainer.value = (_a = document.querySelector(scrollContainer)) != null ? _a : void 0;
|
|
26646
26742
|
} else if (container.value) {
|
|
26647
26743
|
_scrollContainer.value = getScrollContainer(container.value);
|
|
26648
26744
|
}
|
|
@@ -26679,7 +26775,7 @@
|
|
|
26679
26775
|
showViewer.value = true;
|
|
26680
26776
|
}
|
|
26681
26777
|
function closeViewer() {
|
|
26682
|
-
stopWheelListener
|
|
26778
|
+
stopWheelListener == null ? void 0 : stopWheelListener();
|
|
26683
26779
|
document.body.style.overflow = prevOverflow;
|
|
26684
26780
|
showViewer.value = false;
|
|
26685
26781
|
emit("close");
|
|
@@ -26925,6 +27021,7 @@
|
|
|
26925
27021
|
setCurrentValue(newVal);
|
|
26926
27022
|
};
|
|
26927
27023
|
const setCurrentValue = (newVal) => {
|
|
27024
|
+
var _a;
|
|
26928
27025
|
const oldVal = data.currentValue;
|
|
26929
27026
|
if (typeof newVal === "number" && props.precision !== void 0) {
|
|
26930
27027
|
newVal = toPrecision(newVal, props.precision);
|
|
@@ -26942,7 +27039,7 @@
|
|
|
26942
27039
|
emit("update:modelValue", newVal);
|
|
26943
27040
|
emit("input", newVal);
|
|
26944
27041
|
emit("change", newVal, oldVal);
|
|
26945
|
-
formItem
|
|
27042
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
26946
27043
|
data.currentValue = newVal;
|
|
26947
27044
|
};
|
|
26948
27045
|
const handleInput = (value) => {
|
|
@@ -26956,17 +27053,20 @@
|
|
|
26956
27053
|
data.userInput = null;
|
|
26957
27054
|
};
|
|
26958
27055
|
const focus = () => {
|
|
26959
|
-
|
|
27056
|
+
var _a, _b;
|
|
27057
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
26960
27058
|
};
|
|
26961
27059
|
const blur = () => {
|
|
26962
|
-
|
|
27060
|
+
var _a, _b;
|
|
27061
|
+
(_b = (_a = input.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
26963
27062
|
};
|
|
26964
27063
|
const handleFocus = (event) => {
|
|
26965
27064
|
emit("focus", event);
|
|
26966
27065
|
};
|
|
26967
27066
|
const handleBlur = (event) => {
|
|
27067
|
+
var _a;
|
|
26968
27068
|
emit("blur", event);
|
|
26969
|
-
formItem
|
|
27069
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur");
|
|
26970
27070
|
};
|
|
26971
27071
|
vue.watch(() => props.modelValue, (value) => {
|
|
26972
27072
|
let newVal = Number(value);
|
|
@@ -26995,7 +27095,8 @@
|
|
|
26995
27095
|
data.userInput = null;
|
|
26996
27096
|
}, { immediate: true });
|
|
26997
27097
|
vue.onMounted(() => {
|
|
26998
|
-
|
|
27098
|
+
var _a;
|
|
27099
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
26999
27100
|
innerInput.setAttribute("role", "spinbutton");
|
|
27000
27101
|
innerInput.setAttribute("aria-valuemax", String(props.max));
|
|
27001
27102
|
innerInput.setAttribute("aria-valuemin", String(props.min));
|
|
@@ -27010,7 +27111,8 @@
|
|
|
27010
27111
|
}
|
|
27011
27112
|
});
|
|
27012
27113
|
vue.onUpdated(() => {
|
|
27013
|
-
|
|
27114
|
+
var _a;
|
|
27115
|
+
const innerInput = (_a = input.value) == null ? void 0 : _a.input;
|
|
27014
27116
|
innerInput.setAttribute("aria-valuenow", data.currentValue);
|
|
27015
27117
|
});
|
|
27016
27118
|
return {
|
|
@@ -28486,7 +28588,8 @@
|
|
|
28486
28588
|
const isFitInputWidth = vue.computed(() => select.props.fitInputWidth);
|
|
28487
28589
|
const minWidth = vue.ref("");
|
|
28488
28590
|
function updateMinWidth() {
|
|
28489
|
-
|
|
28591
|
+
var _a;
|
|
28592
|
+
minWidth.value = `${(_a = select.selectWrapper) == null ? void 0 : _a.getBoundingClientRect().width}px`;
|
|
28490
28593
|
}
|
|
28491
28594
|
vue.onMounted(() => {
|
|
28492
28595
|
updateMinWidth();
|
|
@@ -29410,7 +29513,8 @@
|
|
|
29410
29513
|
ctx.emit(UPDATE_MODEL_EVENT, "");
|
|
29411
29514
|
}
|
|
29412
29515
|
const popperPaneRef = vue.computed(() => {
|
|
29413
|
-
|
|
29516
|
+
var _a, _b;
|
|
29517
|
+
return (_b = (_a = tooltipRef.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
29414
29518
|
});
|
|
29415
29519
|
return {
|
|
29416
29520
|
tagInMultiLine,
|
|
@@ -29755,9 +29859,10 @@
|
|
|
29755
29859
|
const children2 = [];
|
|
29756
29860
|
if (Array.isArray(node.children)) {
|
|
29757
29861
|
node.children.forEach((child) => {
|
|
29862
|
+
var _a;
|
|
29758
29863
|
if (child.type && child.type.name === "ElOption" && child.component && child.component.proxy) {
|
|
29759
29864
|
children2.push(child.component.proxy);
|
|
29760
|
-
} else if (child.children
|
|
29865
|
+
} else if ((_a = child.children) == null ? void 0 : _a.length) {
|
|
29761
29866
|
children2.push(...flattedChildren(child));
|
|
29762
29867
|
}
|
|
29763
29868
|
});
|
|
@@ -29839,9 +29944,10 @@
|
|
|
29839
29944
|
});
|
|
29840
29945
|
const innerPagesizes = vue.computed(() => props.pageSizes);
|
|
29841
29946
|
function handleChange(val) {
|
|
29947
|
+
var _a;
|
|
29842
29948
|
if (val !== innerPageSize.value) {
|
|
29843
29949
|
innerPageSize.value = val;
|
|
29844
|
-
pagination.handleSizeChange
|
|
29950
|
+
(_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
|
|
29845
29951
|
}
|
|
29846
29952
|
}
|
|
29847
29953
|
return {
|
|
@@ -29888,13 +29994,16 @@
|
|
|
29888
29994
|
const { t } = useLocale();
|
|
29889
29995
|
const { pageCount, disabled, currentPage, changeEvent } = usePagination();
|
|
29890
29996
|
const userInput = vue.ref();
|
|
29891
|
-
const innerValue = vue.computed(() =>
|
|
29997
|
+
const innerValue = vue.computed(() => {
|
|
29998
|
+
var _a;
|
|
29999
|
+
return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
|
|
30000
|
+
});
|
|
29892
30001
|
function handleInput(val) {
|
|
29893
30002
|
userInput.value = +val;
|
|
29894
30003
|
}
|
|
29895
30004
|
function handleChange(val) {
|
|
29896
30005
|
val = Math.trunc(+val);
|
|
29897
|
-
changeEvent
|
|
30006
|
+
changeEvent == null ? void 0 : changeEvent(+val);
|
|
29898
30007
|
userInput.value = void 0;
|
|
29899
30008
|
}
|
|
29900
30009
|
return {
|
|
@@ -30429,17 +30538,20 @@
|
|
|
30429
30538
|
const { t } = useLocale();
|
|
30430
30539
|
const tooltipRef = vue.ref();
|
|
30431
30540
|
const hidePopper = () => {
|
|
30432
|
-
|
|
30541
|
+
var _a, _b;
|
|
30542
|
+
(_b = (_a = vue.unref(tooltipRef)) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
30433
30543
|
};
|
|
30434
30544
|
const handleCallback = () => {
|
|
30435
30545
|
hidePopper();
|
|
30436
30546
|
};
|
|
30437
30547
|
const confirm = (e) => {
|
|
30438
|
-
|
|
30548
|
+
var _a;
|
|
30549
|
+
(_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
|
|
30439
30550
|
handleCallback();
|
|
30440
30551
|
};
|
|
30441
30552
|
const cancel = (e) => {
|
|
30442
|
-
|
|
30553
|
+
var _a;
|
|
30554
|
+
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
30443
30555
|
handleCallback();
|
|
30444
30556
|
};
|
|
30445
30557
|
const finalConfirmButtonText = vue.computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
@@ -30555,7 +30667,8 @@
|
|
|
30555
30667
|
setup(props) {
|
|
30556
30668
|
const tooltipRef = vue.ref(null);
|
|
30557
30669
|
const popperRef = vue.computed(() => {
|
|
30558
|
-
|
|
30670
|
+
var _a;
|
|
30671
|
+
return (_a = vue.unref(tooltipRef)) == null ? void 0 : _a.popperRef;
|
|
30559
30672
|
});
|
|
30560
30673
|
const width = vue.computed(() => {
|
|
30561
30674
|
if (isString$1(props.width)) {
|
|
@@ -30579,7 +30692,8 @@
|
|
|
30579
30692
|
];
|
|
30580
30693
|
});
|
|
30581
30694
|
const hide = () => {
|
|
30582
|
-
|
|
30695
|
+
var _a;
|
|
30696
|
+
(_a = tooltipRef.value) == null ? void 0 : _a.hide();
|
|
30583
30697
|
};
|
|
30584
30698
|
return {
|
|
30585
30699
|
kls,
|
|
@@ -30792,6 +30906,7 @@
|
|
|
30792
30906
|
});
|
|
30793
30907
|
const content = vue.computed(() => props.format(props.percentage));
|
|
30794
30908
|
const getCurrentColor = (percentage) => {
|
|
30909
|
+
var _a;
|
|
30795
30910
|
const { color } = props;
|
|
30796
30911
|
if (typeof color === "function") {
|
|
30797
30912
|
return color(percentage);
|
|
@@ -30813,7 +30928,7 @@
|
|
|
30813
30928
|
if (color2.percentage > percentage)
|
|
30814
30929
|
return color2.color;
|
|
30815
30930
|
}
|
|
30816
|
-
return colors[colors.length - 1]
|
|
30931
|
+
return (_a = colors[colors.length - 1]) == null ? void 0 : _a.color;
|
|
30817
30932
|
}
|
|
30818
30933
|
};
|
|
30819
30934
|
const slotData = vue.computed(() => {
|
|
@@ -33363,6 +33478,7 @@
|
|
|
33363
33478
|
};
|
|
33364
33479
|
},
|
|
33365
33480
|
render(_ctx, _cache) {
|
|
33481
|
+
var _a;
|
|
33366
33482
|
const {
|
|
33367
33483
|
$slots,
|
|
33368
33484
|
data,
|
|
@@ -33389,7 +33505,7 @@
|
|
|
33389
33505
|
style: {
|
|
33390
33506
|
width: `${width}px`
|
|
33391
33507
|
}
|
|
33392
|
-
}, $slots.empty
|
|
33508
|
+
}, (_a = $slots.empty) == null ? void 0 : _a.call($slots));
|
|
33393
33509
|
}
|
|
33394
33510
|
const ListItem = vue.withCtx((scoped) => {
|
|
33395
33511
|
const { index, data: data2 } = scoped;
|
|
@@ -34264,67 +34380,49 @@
|
|
|
34264
34380
|
onShow: _ctx.handleMenuEnter,
|
|
34265
34381
|
onHide: _cache[23] || (_cache[23] = ($event) => _ctx.states.inputValue = _ctx.states.displayInputValue)
|
|
34266
34382
|
}, {
|
|
34267
|
-
default: vue.withCtx(() =>
|
|
34268
|
-
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
"
|
|
34272
|
-
"
|
|
34273
|
-
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
|
|
34278
|
-
|
|
34279
|
-
|
|
34280
|
-
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
|
|
34284
|
-
|
|
34285
|
-
|
|
34286
|
-
"disable-transitions": "",
|
|
34287
|
-
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34288
|
-
}, {
|
|
34289
|
-
default: vue.withCtx(() => [
|
|
34290
|
-
vue.createElementVNode("span", {
|
|
34291
|
-
class: "el-select-v2__tags-text",
|
|
34292
|
-
style: vue.normalizeStyle({
|
|
34293
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34294
|
-
})
|
|
34295
|
-
}, vue.toDisplayString(_ctx.states.cachedOptions[0]?.label), 5)
|
|
34296
|
-
]),
|
|
34297
|
-
_: 1
|
|
34298
|
-
}, 8, ["closable", "size"]),
|
|
34299
|
-
_ctx.modelValue.length > 1 ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34300
|
-
key: 0,
|
|
34301
|
-
closable: false,
|
|
34302
|
-
size: _ctx.collapseTagSize,
|
|
34303
|
-
type: "info",
|
|
34304
|
-
"disable-transitions": ""
|
|
34305
|
-
}, {
|
|
34306
|
-
default: vue.withCtx(() => [
|
|
34307
|
-
vue.createElementVNode("span", {
|
|
34308
|
-
class: "el-select-v2__tags-text",
|
|
34309
|
-
style: vue.normalizeStyle({
|
|
34310
|
-
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34311
|
-
})
|
|
34312
|
-
}, "+ " + vue.toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34313
|
-
]),
|
|
34314
|
-
_: 1
|
|
34315
|
-
}, 8, ["size"])) : vue.createCommentVNode("v-if", true)
|
|
34316
|
-
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34317
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34318
|
-
key: idx,
|
|
34319
|
-
class: "el-select-v2__selected-item"
|
|
34320
|
-
}, [
|
|
34321
|
-
(vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34322
|
-
key: _ctx.getValueKey(selected),
|
|
34323
|
-
closable: !_ctx.selectDisabled && !selected.disabled,
|
|
34383
|
+
default: vue.withCtx(() => {
|
|
34384
|
+
var _a;
|
|
34385
|
+
return [
|
|
34386
|
+
vue.createElementVNode("div", {
|
|
34387
|
+
ref: "selectionRef",
|
|
34388
|
+
class: vue.normalizeClass(["el-select-v2__wrapper", {
|
|
34389
|
+
"is-focused": _ctx.states.isComposing,
|
|
34390
|
+
"is-hovering": _ctx.states.comboBoxHovering,
|
|
34391
|
+
"is-filterable": _ctx.filterable,
|
|
34392
|
+
"is-disabled": _ctx.disabled
|
|
34393
|
+
}])
|
|
34394
|
+
}, [
|
|
34395
|
+
_ctx.$slots.prefix ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$i, [
|
|
34396
|
+
vue.renderSlot(_ctx.$slots, "prefix")
|
|
34397
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
34398
|
+
_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
|
|
34399
|
+
_ctx.collapseTags && _ctx.modelValue.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
|
|
34400
|
+
vue.createVNode(_component_el_tag, {
|
|
34401
|
+
closable: !_ctx.selectDisabled && !((_a = _ctx.states.cachedOptions[0]) == null ? void 0 : _a.disable),
|
|
34324
34402
|
size: _ctx.collapseTagSize,
|
|
34325
34403
|
type: "info",
|
|
34326
34404
|
"disable-transitions": "",
|
|
34327
|
-
onClose: ($event) => _ctx.deleteTag($event,
|
|
34405
|
+
onClose: _cache[0] || (_cache[0] = ($event) => _ctx.deleteTag($event, _ctx.states.cachedOptions[0]))
|
|
34406
|
+
}, {
|
|
34407
|
+
default: vue.withCtx(() => {
|
|
34408
|
+
var _a2;
|
|
34409
|
+
return [
|
|
34410
|
+
vue.createElementVNode("span", {
|
|
34411
|
+
class: "el-select-v2__tags-text",
|
|
34412
|
+
style: vue.normalizeStyle({
|
|
34413
|
+
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34414
|
+
})
|
|
34415
|
+
}, vue.toDisplayString((_a2 = _ctx.states.cachedOptions[0]) == null ? void 0 : _a2.label), 5)
|
|
34416
|
+
];
|
|
34417
|
+
}),
|
|
34418
|
+
_: 1
|
|
34419
|
+
}, 8, ["closable", "size"]),
|
|
34420
|
+
_ctx.modelValue.length > 1 ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34421
|
+
key: 0,
|
|
34422
|
+
closable: false,
|
|
34423
|
+
size: _ctx.collapseTagSize,
|
|
34424
|
+
type: "info",
|
|
34425
|
+
"disable-transitions": ""
|
|
34328
34426
|
}, {
|
|
34329
34427
|
default: vue.withCtx(() => [
|
|
34330
34428
|
vue.createElementVNode("span", {
|
|
@@ -34332,141 +34430,165 @@
|
|
|
34332
34430
|
style: vue.normalizeStyle({
|
|
34333
34431
|
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34334
34432
|
})
|
|
34335
|
-
}, vue.toDisplayString(_ctx.
|
|
34433
|
+
}, "+ " + vue.toDisplayString(_ctx.modelValue.length - 1), 5)
|
|
34336
34434
|
]),
|
|
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
|
-
|
|
34373
|
-
|
|
34374
|
-
|
|
34375
|
-
|
|
34376
|
-
|
|
34435
|
+
_: 1
|
|
34436
|
+
}, 8, ["size"])) : vue.createCommentVNode("v-if", true)
|
|
34437
|
+
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(_ctx.states.cachedOptions, (selected, idx) => {
|
|
34438
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34439
|
+
key: idx,
|
|
34440
|
+
class: "el-select-v2__selected-item"
|
|
34441
|
+
}, [
|
|
34442
|
+
(vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
34443
|
+
key: _ctx.getValueKey(selected),
|
|
34444
|
+
closable: !_ctx.selectDisabled && !selected.disabled,
|
|
34445
|
+
size: _ctx.collapseTagSize,
|
|
34446
|
+
type: "info",
|
|
34447
|
+
"disable-transitions": "",
|
|
34448
|
+
onClose: ($event) => _ctx.deleteTag($event, selected)
|
|
34449
|
+
}, {
|
|
34450
|
+
default: vue.withCtx(() => [
|
|
34451
|
+
vue.createElementVNode("span", {
|
|
34452
|
+
class: "el-select-v2__tags-text",
|
|
34453
|
+
style: vue.normalizeStyle({
|
|
34454
|
+
maxWidth: `${_ctx.tagMaxWidth}px`
|
|
34455
|
+
})
|
|
34456
|
+
}, vue.toDisplayString(_ctx.getLabel(selected)), 5)
|
|
34457
|
+
]),
|
|
34458
|
+
_: 2
|
|
34459
|
+
}, 1032, ["closable", "size", "onClose"]))
|
|
34460
|
+
]);
|
|
34461
|
+
}), 128)),
|
|
34462
|
+
vue.createElementVNode("div", {
|
|
34463
|
+
class: "el-select-v2__selected-item el-select-v2__input-wrapper",
|
|
34464
|
+
style: vue.normalizeStyle(_ctx.inputWrapperStyle)
|
|
34465
|
+
}, [
|
|
34466
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
34467
|
+
id: _ctx.id,
|
|
34468
|
+
ref: "inputRef",
|
|
34469
|
+
autocomplete: _ctx.autocomplete,
|
|
34470
|
+
"aria-autocomplete": "list",
|
|
34471
|
+
"aria-haspopup": "listbox",
|
|
34472
|
+
autocapitalize: "off",
|
|
34473
|
+
"aria-expanded": _ctx.expanded,
|
|
34474
|
+
"aria-labelledby": _ctx.label,
|
|
34475
|
+
class: vue.normalizeClass(["el-select-v2__combobox-input", [_ctx.selectSize ? `is-${_ctx.selectSize}` : ""]]),
|
|
34476
|
+
disabled: _ctx.disabled,
|
|
34477
|
+
role: "combobox",
|
|
34478
|
+
readonly: !_ctx.filterable,
|
|
34479
|
+
spellcheck: "false",
|
|
34480
|
+
type: "text",
|
|
34481
|
+
name: _ctx.name,
|
|
34482
|
+
unselectable: _ctx.expanded ? "on" : void 0,
|
|
34483
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args)),
|
|
34484
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34485
|
+
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
34486
|
+
onCompositionstart: _cache[4] || (_cache[4] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
34487
|
+
onCompositionupdate: _cache[5] || (_cache[5] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
|
|
34488
|
+
onCompositionend: _cache[6] || (_cache[6] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
|
|
34489
|
+
onKeydown: [
|
|
34490
|
+
_cache[7] || (_cache[7] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
|
|
34491
|
+
_cache[8] || (_cache[8] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
|
|
34492
|
+
_cache[9] || (_cache[9] = vue.withKeys(vue.withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
|
|
34493
|
+
_cache[10] || (_cache[10] = vue.withKeys(vue.withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"])),
|
|
34494
|
+
_cache[11] || (_cache[11] = vue.withKeys(vue.withModifiers((...args) => _ctx.handleDel && _ctx.handleDel(...args), ["stop"]), ["delete"]))
|
|
34495
|
+
]
|
|
34496
|
+
}, null, 42, _hoisted_4$6), [
|
|
34497
|
+
[_directive_model_text, _ctx.states.displayInputValue]
|
|
34498
|
+
]),
|
|
34499
|
+
_ctx.filterable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34500
|
+
key: 0,
|
|
34501
|
+
ref: "calculatorRef",
|
|
34502
|
+
"aria-hidden": "true",
|
|
34503
|
+
class: "el-select-v2__input-calculator",
|
|
34504
|
+
textContent: vue.toDisplayString(_ctx.states.displayInputValue)
|
|
34505
|
+
}, null, 8, _hoisted_5$4)) : vue.createCommentVNode("v-if", true)
|
|
34506
|
+
], 4)
|
|
34507
|
+
])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
34508
|
+
vue.createElementVNode("div", _hoisted_6$3, [
|
|
34509
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
34510
|
+
id: _ctx.id,
|
|
34511
|
+
ref: "inputRef",
|
|
34512
|
+
"aria-autocomplete": "list",
|
|
34513
|
+
"aria-haspopup": "listbox",
|
|
34514
|
+
"aria-labelledby": _ctx.label,
|
|
34515
|
+
"aria-expanded": _ctx.expanded,
|
|
34516
|
+
autocapitalize: "off",
|
|
34517
|
+
autocomplete: _ctx.autocomplete,
|
|
34518
|
+
class: "el-select-v2__combobox-input",
|
|
34519
|
+
disabled: _ctx.disabled,
|
|
34520
|
+
name: _ctx.name,
|
|
34521
|
+
role: "combobox",
|
|
34522
|
+
readonly: !_ctx.filterable,
|
|
34523
|
+
spellcheck: "false",
|
|
34524
|
+
type: "text",
|
|
34525
|
+
unselectable: _ctx.expanded ? "on" : void 0,
|
|
34526
|
+
onCompositionstart: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
|
|
34527
|
+
onCompositionupdate: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
|
|
34528
|
+
onCompositionend: _cache[14] || (_cache[14] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
|
|
34529
|
+
onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
34530
|
+
onInput: _cache[16] || (_cache[16] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
34531
|
+
onKeydown: [
|
|
34532
|
+
_cache[17] || (_cache[17] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("backward"), ["stop", "prevent"]), ["up"])),
|
|
34533
|
+
_cache[18] || (_cache[18] = vue.withKeys(vue.withModifiers(($event) => _ctx.onKeyboardNavigate("forward"), ["stop", "prevent"]), ["down"])),
|
|
34534
|
+
_cache[19] || (_cache[19] = vue.withKeys(vue.withModifiers((...args) => _ctx.onKeyboardSelect && _ctx.onKeyboardSelect(...args), ["stop", "prevent"]), ["enter"])),
|
|
34535
|
+
_cache[20] || (_cache[20] = vue.withKeys(vue.withModifiers((...args) => _ctx.handleEsc && _ctx.handleEsc(...args), ["stop", "prevent"]), ["esc"]))
|
|
34536
|
+
],
|
|
34537
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = (...args) => _ctx.onUpdateInputValue && _ctx.onUpdateInputValue(...args))
|
|
34538
|
+
}, null, 40, _hoisted_7$2), [
|
|
34539
|
+
[_directive_model_text, _ctx.states.displayInputValue]
|
|
34540
|
+
])
|
|
34377
34541
|
]),
|
|
34378
34542
|
_ctx.filterable ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34379
34543
|
key: 0,
|
|
34380
34544
|
ref: "calculatorRef",
|
|
34381
34545
|
"aria-hidden": "true",
|
|
34382
|
-
class: "el-select-v2__input-calculator",
|
|
34546
|
+
class: "el-select-v2__selected-item el-select-v2__input-calculator",
|
|
34383
34547
|
textContent: vue.toDisplayString(_ctx.states.displayInputValue)
|
|
34384
|
-
}, null, 8,
|
|
34385
|
-
],
|
|
34386
|
-
|
|
34387
|
-
|
|
34388
|
-
vue.
|
|
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
|
-
|
|
34425
|
-
|
|
34426
|
-
|
|
34427
|
-
|
|
34428
|
-
], 64)),
|
|
34429
|
-
_ctx.shouldShowPlaceholder ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34430
|
-
key: 3,
|
|
34431
|
-
class: vue.normalizeClass({
|
|
34432
|
-
"el-select-v2__placeholder": true,
|
|
34433
|
-
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34434
|
-
})
|
|
34435
|
-
}, vue.toDisplayString(_ctx.currentPlaceholder), 3)) : vue.createCommentVNode("v-if", true),
|
|
34436
|
-
vue.createElementVNode("span", _hoisted_9$1, [
|
|
34437
|
-
_ctx.iconComponent ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34438
|
-
key: 0,
|
|
34439
|
-
class: vue.normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34440
|
-
}, {
|
|
34441
|
-
default: vue.withCtx(() => [
|
|
34442
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
34443
|
-
]),
|
|
34444
|
-
_: 1
|
|
34445
|
-
}, 8, ["class"])), [
|
|
34446
|
-
[vue.vShow, !_ctx.showClearBtn]
|
|
34447
|
-
]) : vue.createCommentVNode("v-if", true),
|
|
34448
|
-
_ctx.showClearBtn && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34449
|
-
key: 1,
|
|
34450
|
-
class: "el-select-v2__caret el-input__icon",
|
|
34451
|
-
onClick: vue.withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34452
|
-
}, {
|
|
34453
|
-
default: vue.withCtx(() => [
|
|
34454
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
34455
|
-
]),
|
|
34456
|
-
_: 1
|
|
34457
|
-
}, 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
34458
|
-
_ctx.validateState && _ctx.validateIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34459
|
-
key: 2,
|
|
34460
|
-
class: "el-input__icon el-input__validateIcon"
|
|
34461
|
-
}, {
|
|
34462
|
-
default: vue.withCtx(() => [
|
|
34463
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
|
|
34464
|
-
]),
|
|
34465
|
-
_: 1
|
|
34466
|
-
})) : vue.createCommentVNode("v-if", true)
|
|
34467
|
-
])
|
|
34468
|
-
], 2)
|
|
34469
|
-
]),
|
|
34548
|
+
}, null, 8, _hoisted_8$2)) : vue.createCommentVNode("v-if", true)
|
|
34549
|
+
], 64)),
|
|
34550
|
+
_ctx.shouldShowPlaceholder ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
34551
|
+
key: 3,
|
|
34552
|
+
class: vue.normalizeClass({
|
|
34553
|
+
"el-select-v2__placeholder": true,
|
|
34554
|
+
"is-transparent": _ctx.states.isComposing || (_ctx.placeholder && _ctx.multiple ? _ctx.modelValue.length === 0 : !_ctx.hasModelValue)
|
|
34555
|
+
})
|
|
34556
|
+
}, vue.toDisplayString(_ctx.currentPlaceholder), 3)) : vue.createCommentVNode("v-if", true),
|
|
34557
|
+
vue.createElementVNode("span", _hoisted_9$1, [
|
|
34558
|
+
_ctx.iconComponent ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34559
|
+
key: 0,
|
|
34560
|
+
class: vue.normalizeClass(["el-select-v2__caret", "el-input__icon", _ctx.iconReverse])
|
|
34561
|
+
}, {
|
|
34562
|
+
default: vue.withCtx(() => [
|
|
34563
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconComponent)))
|
|
34564
|
+
]),
|
|
34565
|
+
_: 1
|
|
34566
|
+
}, 8, ["class"])), [
|
|
34567
|
+
[vue.vShow, !_ctx.showClearBtn]
|
|
34568
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
34569
|
+
_ctx.showClearBtn && _ctx.clearIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34570
|
+
key: 1,
|
|
34571
|
+
class: "el-select-v2__caret el-input__icon",
|
|
34572
|
+
onClick: vue.withModifiers(_ctx.handleClear, ["prevent", "stop"])
|
|
34573
|
+
}, {
|
|
34574
|
+
default: vue.withCtx(() => [
|
|
34575
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.clearIcon)))
|
|
34576
|
+
]),
|
|
34577
|
+
_: 1
|
|
34578
|
+
}, 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
|
|
34579
|
+
_ctx.validateState && _ctx.validateIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
34580
|
+
key: 2,
|
|
34581
|
+
class: "el-input__icon el-input__validateIcon"
|
|
34582
|
+
}, {
|
|
34583
|
+
default: vue.withCtx(() => [
|
|
34584
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.validateIcon)))
|
|
34585
|
+
]),
|
|
34586
|
+
_: 1
|
|
34587
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
34588
|
+
])
|
|
34589
|
+
], 2)
|
|
34590
|
+
];
|
|
34591
|
+
}),
|
|
34470
34592
|
content: vue.withCtx(() => [
|
|
34471
34593
|
vue.createVNode(_component_el_select_menu, {
|
|
34472
34594
|
ref: "menuRef",
|
|
@@ -34930,9 +35052,10 @@
|
|
|
34930
35052
|
};
|
|
34931
35053
|
},
|
|
34932
35054
|
render() {
|
|
35055
|
+
var _a;
|
|
34933
35056
|
return vue.h("div", {
|
|
34934
35057
|
class: "el-slider__marks-text",
|
|
34935
|
-
style: this.mark
|
|
35058
|
+
style: (_a = this.mark) == null ? void 0 : _a.style
|
|
34936
35059
|
}, this.label);
|
|
34937
35060
|
}
|
|
34938
35061
|
});
|
|
@@ -35264,6 +35387,7 @@
|
|
|
35264
35387
|
}
|
|
35265
35388
|
};
|
|
35266
35389
|
const setValues = () => {
|
|
35390
|
+
var _a, _b;
|
|
35267
35391
|
if (props.min > props.max) {
|
|
35268
35392
|
throwError("Slider", "min should not be greater than max.");
|
|
35269
35393
|
return;
|
|
@@ -35282,7 +35406,7 @@
|
|
|
35282
35406
|
initData.firstValue = val[0];
|
|
35283
35407
|
initData.secondValue = val[1];
|
|
35284
35408
|
if (valueChanged()) {
|
|
35285
|
-
elFormItem.validate
|
|
35409
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
35286
35410
|
initData.oldValue = val.slice();
|
|
35287
35411
|
}
|
|
35288
35412
|
}
|
|
@@ -35294,7 +35418,7 @@
|
|
|
35294
35418
|
} else {
|
|
35295
35419
|
initData.firstValue = val;
|
|
35296
35420
|
if (valueChanged()) {
|
|
35297
|
-
elFormItem.validate
|
|
35421
|
+
(_b = elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change");
|
|
35298
35422
|
initData.oldValue = val;
|
|
35299
35423
|
}
|
|
35300
35424
|
}
|
|
@@ -35777,7 +35901,8 @@
|
|
|
35777
35901
|
return parent.steps.value.length;
|
|
35778
35902
|
});
|
|
35779
35903
|
const isLast = vue.computed(() => {
|
|
35780
|
-
|
|
35904
|
+
var _a;
|
|
35905
|
+
return ((_a = parent.steps.value[stepsCount.value - 1]) == null ? void 0 : _a.uid) === currentInstance.uid;
|
|
35781
35906
|
});
|
|
35782
35907
|
const space = vue.computed(() => {
|
|
35783
35908
|
return isSimple.value ? "" : parent.props.space;
|
|
@@ -36054,12 +36179,13 @@
|
|
|
36054
36179
|
emit(INPUT_EVENT, props.inactiveValue);
|
|
36055
36180
|
}
|
|
36056
36181
|
vue.watch(checked, () => {
|
|
36182
|
+
var _a;
|
|
36057
36183
|
input.value.checked = checked.value;
|
|
36058
36184
|
if (props.activeColor || props.inactiveColor) {
|
|
36059
36185
|
setBackgroundColor();
|
|
36060
36186
|
}
|
|
36061
36187
|
if (props.validateEvent) {
|
|
36062
|
-
formItem
|
|
36188
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change");
|
|
36063
36189
|
}
|
|
36064
36190
|
});
|
|
36065
36191
|
const handleChange = () => {
|
|
@@ -36106,7 +36232,8 @@
|
|
|
36106
36232
|
coreEl.children[0].style.color = newColor;
|
|
36107
36233
|
};
|
|
36108
36234
|
const focus = () => {
|
|
36109
|
-
|
|
36235
|
+
var _a, _b;
|
|
36236
|
+
(_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
36110
36237
|
};
|
|
36111
36238
|
vue.onMounted(() => {
|
|
36112
36239
|
if (props.activeColor || props.inactiveColor || props.borderColor) {
|
|
@@ -37846,7 +37973,7 @@
|
|
|
37846
37973
|
const instance = vue.getCurrentInstance();
|
|
37847
37974
|
const { t } = useLocale();
|
|
37848
37975
|
const ns = useNamespace("table-filter");
|
|
37849
|
-
const parent = instance
|
|
37976
|
+
const parent = instance == null ? void 0 : instance.parent;
|
|
37850
37977
|
if (!parent.filterPanels.value[props.column.id]) {
|
|
37851
37978
|
parent.filterPanels.value[props.column.id] = instance;
|
|
37852
37979
|
}
|
|
@@ -37856,7 +37983,10 @@
|
|
|
37856
37983
|
return props.column && props.column.filters;
|
|
37857
37984
|
});
|
|
37858
37985
|
const filterValue = vue.computed({
|
|
37859
|
-
get: () =>
|
|
37986
|
+
get: () => {
|
|
37987
|
+
var _a;
|
|
37988
|
+
return (((_a = props.column) == null ? void 0 : _a.filteredValue) || [])[0];
|
|
37989
|
+
},
|
|
37860
37990
|
set: (value) => {
|
|
37861
37991
|
if (filteredValue.value) {
|
|
37862
37992
|
if (typeof value !== "undefined" && value !== null) {
|
|
@@ -37932,7 +38062,8 @@
|
|
|
37932
38062
|
immediate: true
|
|
37933
38063
|
});
|
|
37934
38064
|
const popperPaneRef = vue.computed(() => {
|
|
37935
|
-
|
|
38065
|
+
var _a, _b;
|
|
38066
|
+
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
37936
38067
|
});
|
|
37937
38068
|
return {
|
|
37938
38069
|
tooltipVisible,
|
|
@@ -40523,7 +40654,8 @@
|
|
|
40523
40654
|
const sizeName = ["top", "bottom"].includes(rootTabs.props.tabPosition) ? "width" : "height";
|
|
40524
40655
|
const sizeDir = sizeName === "width" ? "x" : "y";
|
|
40525
40656
|
props.tabs.every((tab) => {
|
|
40526
|
-
|
|
40657
|
+
var _a, _b, _c, _d;
|
|
40658
|
+
const $el = (_b = (_a = instance.parent) == null ? void 0 : _a.refs) == null ? void 0 : _b[`tab-${tab.paneName}`];
|
|
40527
40659
|
if (!$el)
|
|
40528
40660
|
return false;
|
|
40529
40661
|
if (!tab.active) {
|
|
@@ -40531,7 +40663,7 @@
|
|
|
40531
40663
|
}
|
|
40532
40664
|
tabSize = $el[`client${capitalize(sizeName)}`];
|
|
40533
40665
|
const position = sizeDir === "x" ? "left" : "top";
|
|
40534
|
-
offset = $el.getBoundingClientRect()[position] - ($el.parentElement
|
|
40666
|
+
offset = $el.getBoundingClientRect()[position] - ((_d = (_c = $el.parentElement) == null ? void 0 : _c.getBoundingClientRect()[position]) != null ? _d : 0);
|
|
40535
40667
|
const tabStyles = window.getComputedStyle($el);
|
|
40536
40668
|
if (sizeName === "width") {
|
|
40537
40669
|
if (props.tabs.length > 1) {
|
|
@@ -41231,10 +41363,12 @@
|
|
|
41231
41363
|
return result;
|
|
41232
41364
|
});
|
|
41233
41365
|
const blur = () => {
|
|
41234
|
-
|
|
41366
|
+
var _a, _b;
|
|
41367
|
+
(_b = (_a = select.value) == null ? void 0 : _a.blur) == null ? void 0 : _b.call(_a);
|
|
41235
41368
|
};
|
|
41236
41369
|
const focus = () => {
|
|
41237
|
-
|
|
41370
|
+
var _a, _b;
|
|
41371
|
+
(_b = (_a = select.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
|
|
41238
41372
|
};
|
|
41239
41373
|
return {
|
|
41240
41374
|
select,
|
|
@@ -41837,7 +41971,8 @@
|
|
|
41837
41971
|
const rightPanelTitle = vue.computed(() => props.titles[1] || t("el.transfer.titles.1"));
|
|
41838
41972
|
const panelFilterPlaceholder = vue.computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
41839
41973
|
vue.watch(() => props.modelValue, () => {
|
|
41840
|
-
|
|
41974
|
+
var _a;
|
|
41975
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
|
|
41841
41976
|
});
|
|
41842
41977
|
const optionRender = vue.computed(() => (option) => {
|
|
41843
41978
|
if (props.renderContent)
|
|
@@ -43528,6 +43663,7 @@
|
|
|
43528
43663
|
class: "el-tree__drop-indicator"
|
|
43529
43664
|
};
|
|
43530
43665
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43666
|
+
var _a;
|
|
43531
43667
|
const _component_el_tree_node = vue.resolveComponent("el-tree-node");
|
|
43532
43668
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
43533
43669
|
ref: "el$",
|
|
@@ -43552,7 +43688,7 @@
|
|
|
43552
43688
|
}, null, 8, ["node", "props", "accordion", "render-after-expand", "show-checkbox", "render-content", "onNodeExpand"]);
|
|
43553
43689
|
}), 128)),
|
|
43554
43690
|
_ctx.isEmpty ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
|
|
43555
|
-
vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString(_ctx.emptyText
|
|
43691
|
+
vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
|
|
43556
43692
|
])) : vue.createCommentVNode("v-if", true),
|
|
43557
43693
|
vue.withDirectives(vue.createElementVNode("div", _hoisted_3$4, null, 512), [
|
|
43558
43694
|
[vue.vShow, _ctx.dragState.showDropIndicator]
|
|
@@ -44227,10 +44363,12 @@
|
|
|
44227
44363
|
setup(props, { emit }) {
|
|
44228
44364
|
const tree = vue.inject(ROOT_TREE_INJECTION_KEY);
|
|
44229
44365
|
const indent = vue.computed(() => {
|
|
44230
|
-
|
|
44366
|
+
var _a;
|
|
44367
|
+
return (_a = tree == null ? void 0 : tree.props.indent) != null ? _a : 16;
|
|
44231
44368
|
});
|
|
44232
44369
|
const icon = vue.computed(() => {
|
|
44233
|
-
|
|
44370
|
+
var _a;
|
|
44371
|
+
return (_a = tree == null ? void 0 : tree.props.icon) != null ? _a : DEFAULT_ICON;
|
|
44234
44372
|
});
|
|
44235
44373
|
const handleClick = (e) => {
|
|
44236
44374
|
emit("click", props.node, e);
|
|
@@ -44242,11 +44380,12 @@
|
|
|
44242
44380
|
emit("check", props.node, value);
|
|
44243
44381
|
};
|
|
44244
44382
|
const handleContextMenu = (event) => {
|
|
44245
|
-
|
|
44383
|
+
var _a, _b, _c, _d;
|
|
44384
|
+
if ((_c = (_b = (_a = tree == null ? void 0 : tree.instance) == null ? void 0 : _a.vnode) == null ? void 0 : _b.props) == null ? void 0 : _c["onNodeContextmenu"]) {
|
|
44246
44385
|
event.stopPropagation();
|
|
44247
44386
|
event.preventDefault();
|
|
44248
44387
|
}
|
|
44249
|
-
tree
|
|
44388
|
+
tree == null ? void 0 : tree.ctx.emit(NODE_CONTEXTMENU, event, (_d = props.node) == null ? void 0 : _d.data, props.node);
|
|
44250
44389
|
};
|
|
44251
44390
|
return {
|
|
44252
44391
|
indent,
|
|
@@ -44260,6 +44399,7 @@
|
|
|
44260
44399
|
});
|
|
44261
44400
|
const _hoisted_1$6 = ["aria-expanded", "aria-disabled", "aria-checked", "data-key"];
|
|
44262
44401
|
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44402
|
+
var _a, _b, _c;
|
|
44263
44403
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
44264
44404
|
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
44265
44405
|
const _component_el_node_content = vue.resolveComponent("el-node-content");
|
|
@@ -44276,7 +44416,7 @@
|
|
|
44276
44416
|
"aria-expanded": _ctx.expanded,
|
|
44277
44417
|
"aria-disabled": _ctx.disabled,
|
|
44278
44418
|
"aria-checked": _ctx.checked,
|
|
44279
|
-
"data-key": _ctx.node
|
|
44419
|
+
"data-key": (_a = _ctx.node) == null ? void 0 : _a.key,
|
|
44280
44420
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
44281
44421
|
onContextmenu: _cache[2] || (_cache[2] = (...args) => _ctx.handleContextMenu && _ctx.handleContextMenu(...args))
|
|
44282
44422
|
}, [
|
|
@@ -44288,9 +44428,9 @@
|
|
|
44288
44428
|
key: 0,
|
|
44289
44429
|
class: vue.normalizeClass([
|
|
44290
44430
|
{
|
|
44291
|
-
"is-leaf": _ctx.node
|
|
44431
|
+
"is-leaf": (_b = _ctx.node) == null ? void 0 : _b.isLeaf,
|
|
44292
44432
|
"is-hidden": _ctx.hiddenExpandIcon,
|
|
44293
|
-
expanded: !_ctx.node
|
|
44433
|
+
expanded: !((_c = _ctx.node) == null ? void 0 : _c.isLeaf) && _ctx.expanded
|
|
44294
44434
|
},
|
|
44295
44435
|
"el-tree-node__expand-icon"
|
|
44296
44436
|
]),
|
|
@@ -44393,6 +44533,7 @@
|
|
|
44393
44533
|
};
|
|
44394
44534
|
const _hoisted_2$4 = { class: "el-tree__empty-text" };
|
|
44395
44535
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44536
|
+
var _a;
|
|
44396
44537
|
const _component_el_tree_node = vue.resolveComponent("el-tree-node");
|
|
44397
44538
|
const _component_fixed_size_list = vue.resolveComponent("fixed-size-list");
|
|
44398
44539
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -44429,7 +44570,7 @@
|
|
|
44429
44570
|
]),
|
|
44430
44571
|
_: 1
|
|
44431
44572
|
}, 8, ["data", "total", "height", "item-size", "perf-mode"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
|
|
44432
|
-
vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString(_ctx.emptyText
|
|
44573
|
+
vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString((_a = _ctx.emptyText) != null ? _a : _ctx.t("el.tree.emptyText")), 1)
|
|
44433
44574
|
]))
|
|
44434
44575
|
], 2);
|
|
44435
44576
|
}
|
|
@@ -44716,9 +44857,10 @@
|
|
|
44716
44857
|
const uploader = vue.inject("uploader", {});
|
|
44717
44858
|
const dragover = vue.ref(false);
|
|
44718
44859
|
function onDrop(e) {
|
|
44860
|
+
var _a;
|
|
44719
44861
|
if (props.disabled || !uploader)
|
|
44720
44862
|
return;
|
|
44721
|
-
const accept = uploader.props
|
|
44863
|
+
const accept = ((_a = uploader.props) == null ? void 0 : _a.accept) || uploader.accept;
|
|
44722
44864
|
dragover.value = false;
|
|
44723
44865
|
if (!accept) {
|
|
44724
44866
|
emit("file", e.dataTransfer.files);
|
|
@@ -46245,6 +46387,7 @@
|
|
|
46245
46387
|
};
|
|
46246
46388
|
},
|
|
46247
46389
|
render() {
|
|
46390
|
+
var _a, _b;
|
|
46248
46391
|
let uploadList;
|
|
46249
46392
|
if (this.showFileList) {
|
|
46250
46393
|
uploadList = vue.h(UploadList, {
|
|
@@ -46292,12 +46435,12 @@
|
|
|
46292
46435
|
};
|
|
46293
46436
|
const trigger = this.$slots.trigger || this.$slots.default;
|
|
46294
46437
|
const uploadComponent = vue.h(Upload$1, uploadData, {
|
|
46295
|
-
default: () => trigger
|
|
46438
|
+
default: () => trigger == null ? void 0 : trigger()
|
|
46296
46439
|
});
|
|
46297
46440
|
return vue.h("div", [
|
|
46298
46441
|
this.listType === "picture-card" ? uploadList : null,
|
|
46299
46442
|
this.$slots.trigger ? [uploadComponent, this.$slots.default()] : uploadComponent,
|
|
46300
|
-
this.$slots.tip
|
|
46443
|
+
(_b = (_a = this.$slots).tip) == null ? void 0 : _b.call(_a),
|
|
46301
46444
|
this.listType !== "picture-card" ? uploadList : null
|
|
46302
46445
|
]);
|
|
46303
46446
|
}
|
|
@@ -46902,7 +47045,7 @@
|
|
|
46902
47045
|
}
|
|
46903
47046
|
}
|
|
46904
47047
|
function clearTimer() {
|
|
46905
|
-
stopTimer
|
|
47048
|
+
stopTimer == null ? void 0 : stopTimer();
|
|
46906
47049
|
}
|
|
46907
47050
|
function close() {
|
|
46908
47051
|
visible.value = false;
|
|
@@ -47230,7 +47373,8 @@
|
|
|
47230
47373
|
if (val) {
|
|
47231
47374
|
if (props.boxType === "alert" || props.boxType === "confirm") {
|
|
47232
47375
|
vue.nextTick().then(() => {
|
|
47233
|
-
|
|
47376
|
+
var _a, _b, _c;
|
|
47377
|
+
(_c = (_b = (_a = confirmRef.value) == null ? void 0 : _a.$el) == null ? void 0 : _b.focus) == null ? void 0 : _c.call(_b);
|
|
47234
47378
|
});
|
|
47235
47379
|
}
|
|
47236
47380
|
state.zIndex = PopupManager.nextZIndex();
|
|
@@ -47279,12 +47423,13 @@
|
|
|
47279
47423
|
}
|
|
47280
47424
|
};
|
|
47281
47425
|
const handleAction = (action) => {
|
|
47426
|
+
var _a;
|
|
47282
47427
|
if (props.boxType === "prompt" && action === "confirm" && !validate()) {
|
|
47283
47428
|
return;
|
|
47284
47429
|
}
|
|
47285
47430
|
state.action = action;
|
|
47286
47431
|
if (state.beforeClose) {
|
|
47287
|
-
state.beforeClose
|
|
47432
|
+
(_a = state.beforeClose) == null ? void 0 : _a.call(state, action, state, doClose);
|
|
47288
47433
|
} else {
|
|
47289
47434
|
doClose();
|
|
47290
47435
|
}
|
|
@@ -47766,7 +47911,7 @@
|
|
|
47766
47911
|
}
|
|
47767
47912
|
}
|
|
47768
47913
|
function clearTimer() {
|
|
47769
|
-
timer
|
|
47914
|
+
timer == null ? void 0 : timer();
|
|
47770
47915
|
}
|
|
47771
47916
|
function close() {
|
|
47772
47917
|
visible.value = false;
|