element-plus 2.2.7 → 2.2.10
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/README.md +5 -0
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +761 -739
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +760 -738
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +29 -4
- 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.min.mjs.map +1 -1
- package/dist/locale/ko.mjs +29 -4
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +19 -15
- package/es/components/autocomplete/src/autocomplete.d.ts +1 -0
- package/es/components/autocomplete/src/autocomplete.mjs +4 -0
- package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +19 -15
- package/es/components/autocomplete/src/autocomplete2.mjs +5 -3
- package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +100 -21
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +21 -100
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +66 -48
- package/es/components/cascader/src/index.mjs +18 -11
- package/es/components/cascader/src/index.mjs.map +1 -1
- package/es/components/cascader/src/index.vue.d.ts +33 -24
- package/es/components/checkbox/index.d.ts +65 -0
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +13 -0
- package/es/components/checkbox/src/checkbox-group.mjs +3 -1
- package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +13 -0
- package/es/components/checkbox/src/checkbox.d.ts +8 -0
- package/es/components/checkbox/src/checkbox.mjs +17 -3
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.type.d.ts +1 -0
- package/es/components/checkbox/src/checkbox.vue.d.ts +13 -0
- package/es/components/color-picker/index.d.ts +234 -0
- package/es/components/color-picker/src/components/alpha-slider.mjs +10 -6
- package/es/components/color-picker/src/components/alpha-slider.mjs.map +1 -1
- package/es/components/color-picker/src/components/alpha-slider.vue.d.ts +18 -0
- package/es/components/color-picker/src/components/hue-slider.mjs +10 -6
- package/es/components/color-picker/src/components/hue-slider.mjs.map +1 -1
- package/es/components/color-picker/src/components/hue-slider.vue.d.ts +18 -0
- package/es/components/color-picker/src/components/predefine.mjs +21 -11
- package/es/components/color-picker/src/components/predefine.mjs.map +1 -1
- package/es/components/color-picker/src/components/predefine.vue.d.ts +18 -0
- package/es/components/color-picker/src/components/sv-panel.mjs +19 -13
- package/es/components/color-picker/src/components/sv-panel.mjs.map +1 -1
- package/es/components/color-picker/src/components/sv-panel.vue.d.ts +18 -0
- package/es/components/color-picker/src/index.mjs +9 -3
- package/es/components/color-picker/src/index.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue.d.ts +117 -0
- package/es/components/date-picker/index.d.ts +2 -2
- package/es/components/date-picker/src/date-picker-com/basic-date-table.mjs +21 -8
- 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-date-table.vue.d.ts +5 -2
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs +1 -1
- package/es/components/date-picker/src/date-picker-com/basic-year-table.mjs.map +1 -1
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +6 -3
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +6 -3
- package/es/components/date-picker/src/date-picker.d.ts +1 -1
- package/es/components/date-picker/src/panel-utils.d.ts +12 -6
- package/es/components/descriptions/index.d.ts +82 -54
- package/es/components/descriptions/index.mjs +2 -1
- package/es/components/descriptions/index.mjs.map +1 -1
- package/es/components/descriptions/src/description.d.ts +15 -0
- package/es/components/descriptions/src/description.mjs +32 -0
- package/es/components/descriptions/src/description.mjs.map +1 -0
- package/es/components/descriptions/src/description.vue.d.ts +106 -0
- package/es/components/descriptions/src/description2.mjs +127 -0
- package/es/components/descriptions/src/description2.mjs.map +1 -0
- package/es/components/descriptions/src/descriptions-cell.mjs +4 -4
- package/es/components/descriptions/src/descriptions-cell.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.d.ts +3 -0
- package/es/components/descriptions/src/descriptions-row.mjs +7 -71
- package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
- package/es/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
- package/es/components/descriptions/src/descriptions-row2.mjs +69 -0
- package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -0
- package/es/components/descriptions/src/token.d.ts +1 -1
- package/es/components/descriptions/src/token.mjs +2 -2
- package/es/components/descriptions/src/token.mjs.map +1 -1
- package/es/components/dialog/index.d.ts +4 -18
- package/es/components/dialog/src/dialog.d.ts +1 -6
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +4 -18
- package/es/components/dialog/src/dialog2.mjs +2 -3
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/dialog/src/use-dialog.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +3 -12
- package/es/components/drawer/src/drawer.d.ts +1 -6
- package/es/components/drawer/src/drawer.vue.d.ts +3 -12
- package/es/components/dropdown/index.d.ts +24 -23
- package/es/components/dropdown/src/dropdown.vue.d.ts +24 -23
- package/es/components/dropdown/src/dropdown2.mjs +9 -5
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +1 -1
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/index.mjs +2 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +1 -1
- package/es/components/input-number/index.d.ts +8 -4
- package/es/components/input-number/src/input-number.d.ts +1 -0
- package/es/components/input-number/src/input-number.mjs +4 -0
- package/es/components/input-number/src/input-number.mjs.map +1 -1
- package/es/components/input-number/src/input-number.vue.d.ts +8 -4
- package/es/components/input-number/src/input-number2.mjs +10 -6
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/menu/src/menu.mjs +16 -8
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.mjs +1 -1
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/message/src/instance.d.ts +3 -3
- package/es/components/message/src/instance.mjs +1 -1
- package/es/components/message/src/instance.mjs.map +1 -1
- package/es/components/message/src/method.mjs +6 -5
- package/es/components/message/src/method.mjs.map +1 -1
- package/es/components/message/style/css.d.ts +1 -0
- package/es/components/message/style/css.mjs +1 -0
- package/es/components/message/style/css.mjs.map +1 -1
- package/es/components/message/style/index.d.ts +1 -0
- package/es/components/message/style/index.mjs +1 -0
- package/es/components/message/style/index.mjs.map +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +31 -22
- package/es/components/popconfirm/index.d.ts +10 -11
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +10 -11
- package/es/components/popconfirm/src/popconfirm2.mjs +2 -5
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.d.ts +31 -11
- package/es/components/popover/src/popover.d.ts +11 -5
- package/es/components/popover/src/popover.mjs +3 -0
- package/es/components/popover/src/popover.mjs.map +1 -1
- package/es/components/popover/src/popover.vue.d.ts +31 -11
- package/es/components/popover/src/popover2.mjs +7 -2
- package/es/components/popover/src/popover2.mjs.map +1 -1
- package/es/components/popper/src/content.vue.d.ts +1 -1
- package/es/components/popper/src/content2.mjs +4 -4
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/popper/src/utils.d.ts +1 -1
- package/es/components/radio/index.d.ts +8 -6
- package/es/components/radio/src/radio-group.d.ts +1 -0
- package/es/components/radio/src/radio-group.mjs +4 -0
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +4 -0
- package/es/components/radio/src/radio-group2.mjs +5 -1
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/radio/src/radio.vue.d.ts +0 -7
- package/es/components/radio/src/radio2.mjs +12 -25
- package/es/components/radio/src/radio2.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +2 -1
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +3 -1
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/select/index.d.ts +31 -22
- package/es/components/select/src/option.mjs +4 -4
- package/es/components/select/src/option.mjs.map +1 -1
- package/es/components/select/src/select.mjs +7 -3
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +31 -22
- package/es/components/select/src/useSelect.d.ts +21 -21
- package/es/components/select/src/useSelect.mjs +1 -3
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +60 -42
- package/es/components/select-v2/src/defaults.d.ts +4 -0
- package/es/components/select-v2/src/defaults.mjs +4 -0
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +30 -21
- package/es/components/select-v2/src/useSelect.d.ts +21 -21
- package/es/components/select-v2/src/useSelect.mjs +3 -2
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/index.d.ts +86 -56
- package/es/components/slider/src/button.d.ts +1 -0
- package/es/components/slider/src/button.mjs +7 -1
- package/es/components/slider/src/button.mjs.map +1 -1
- package/es/components/slider/src/button.vue.d.ts +14 -10
- package/es/components/slider/src/button2.mjs +3 -2
- package/es/components/slider/src/button2.mjs.map +1 -1
- package/es/components/slider/src/composables/use-slide.d.ts +56 -42
- package/es/components/slider/src/composables/use-slider-button.mjs +3 -1
- package/es/components/slider/src/composables/use-slider-button.mjs.map +1 -1
- package/es/components/slider/src/composables/use-watch.mjs +6 -2
- package/es/components/slider/src/composables/use-watch.mjs.map +1 -1
- package/es/components/slider/src/marker.mjs +1 -1
- package/es/components/slider/src/marker.mjs.map +1 -1
- package/es/components/slider/src/slider.d.ts +2 -0
- package/es/components/slider/src/slider.mjs +10 -0
- package/es/components/slider/src/slider.mjs.map +1 -1
- package/es/components/slider/src/slider.vue.d.ts +86 -56
- package/es/components/slider/src/slider2.mjs +4 -2
- package/es/components/slider/src/slider2.mjs.map +1 -1
- package/es/components/steps/index.d.ts +2 -2
- package/es/components/steps/src/item.vue.d.ts +3 -3
- package/es/components/steps/src/item2.mjs +1 -1
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/switch/index.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +1 -1
- package/es/components/table/index.d.ts +23 -33
- package/es/components/table/src/filter-panel.vue.d.ts +21 -21
- package/es/components/table/src/table/defaults.d.ts +2 -2
- package/es/components/table/src/table/defaults.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.d.ts +21 -31
- package/es/components/table/src/table/style-helper.mjs +68 -95
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/event-helper.mjs +5 -9
- package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
- package/es/components/table/src/table-layout.d.ts +1 -5
- package/es/components/table/src/table-layout.mjs +3 -52
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/table/src/table.mjs +29 -34
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +23 -33
- package/es/components/table/src/util.d.ts +1 -1
- package/es/components/table/src/util.mjs +8 -19
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/table-v2/index.d.ts +1 -1
- package/es/components/table-v2/src/components/header.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +1 -1
- package/es/components/table-v2/src/table-v2.d.ts +1 -1
- package/es/components/tabs/src/tab-nav.mjs +5 -4
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tabs.mjs +10 -1
- package/es/components/tabs/src/tabs.mjs.map +1 -1
- package/es/components/time-picker/index.d.ts +2 -2
- package/es/components/time-picker/src/common/picker.mjs +2 -1
- package/es/components/time-picker/src/common/picker.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +12 -12
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.mjs +3 -3
- package/es/components/time-picker/src/time-picker.d.ts +1 -1
- package/es/components/time-select/index.d.ts +124 -88
- package/es/components/time-select/src/time-select.vue.d.ts +62 -44
- package/es/components/timeline/index.d.ts +2 -2
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +10 -10
- package/es/components/tooltip/src/content.vue.d.ts +4 -4
- package/es/components/tooltip/src/tooltip.vue.d.ts +10 -10
- package/es/components/tooltip/src/tooltip2.mjs +2 -2
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip-v2/index.d.ts +6 -6
- package/es/components/tooltip-v2/src/content.vue.d.ts +1 -1
- package/es/components/tooltip-v2/src/tooltip.vue.d.ts +6 -6
- package/es/components/transfer/index.d.ts +272 -20
- package/es/components/transfer/src/transfer-panel.vue.d.ts +53 -1
- package/es/components/transfer/src/transfer.d.ts +3 -1
- package/es/components/transfer/src/transfer.mjs +4 -0
- package/es/components/transfer/src/transfer.mjs.map +1 -1
- package/es/components/transfer/src/transfer.vue.d.ts +367 -116
- package/es/components/transfer/src/transfer2.mjs +3 -1
- package/es/components/transfer/src/transfer2.mjs.map +1 -1
- package/es/components/tree/src/model/useDragNode.mjs.map +1 -1
- package/es/components/tree/src/tree.type.d.ts +3 -2
- package/es/components/tree-select/src/tree-select-option.d.ts +3 -2
- package/es/components/tree-select/src/tree-select-option.mjs +7 -1
- package/es/components/tree-select/src/tree-select-option.mjs.map +1 -1
- package/es/components/tree-select/src/tree.mjs +22 -17
- package/es/components/tree-select/src/tree.mjs.map +1 -1
- package/es/components/tree-select/src/utils.d.ts +9 -0
- package/es/components/tree-select/src/utils.mjs +27 -0
- package/es/components/tree-select/src/utils.mjs.map +1 -0
- package/es/components/upload/src/use-handlers.mjs +1 -1
- package/es/components/upload/src/use-handlers.mjs.map +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.mjs.map +1 -1
- package/es/directives/click-outside/index.mjs.map +1 -1
- package/es/directives/index.d.ts +0 -1
- package/es/directives/index.mjs +0 -1
- package/es/directives/index.mjs.map +1 -1
- package/es/directives/repeat-click/index.d.ts +2 -2
- package/es/directives/repeat-click/index.mjs +13 -13
- package/es/directives/repeat-click/index.mjs.map +1 -1
- package/es/directives/trap-focus/index.d.ts +1 -1
- package/es/directives/trap-focus/index.mjs +2 -3
- package/es/directives/trap-focus/index.mjs.map +1 -1
- package/es/hooks/use-floating/index.d.ts +1 -1
- package/es/hooks/use-floating/index.mjs.map +1 -1
- package/es/hooks/use-model-toggle/index.d.ts +2 -0
- package/es/hooks/use-model-toggle/index.mjs +2 -1
- package/es/hooks/use-model-toggle/index.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/locale/lang/ko.d.ts +25 -0
- package/es/locale/lang/ko.mjs +28 -3
- package/es/locale/lang/ko.mjs.map +1 -1
- package/es/utils/dom/aria.d.ts +2 -3
- package/es/utils/dom/aria.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/autocomplete/index.d.ts +19 -15
- package/lib/components/autocomplete/src/autocomplete.d.ts +1 -0
- package/lib/components/autocomplete/src/autocomplete.js +4 -0
- package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +19 -15
- package/lib/components/autocomplete/src/autocomplete2.js +4 -2
- package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +100 -22
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +22 -100
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/cascader/index.d.ts +66 -48
- package/lib/components/cascader/src/index.js +18 -11
- package/lib/components/cascader/src/index.js.map +1 -1
- package/lib/components/cascader/src/index.vue.d.ts +33 -24
- package/lib/components/checkbox/index.d.ts +65 -0
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +13 -0
- package/lib/components/checkbox/src/checkbox-group.js +3 -1
- package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +13 -0
- package/lib/components/checkbox/src/checkbox.d.ts +8 -0
- package/lib/components/checkbox/src/checkbox.js +17 -3
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.type.d.ts +1 -0
- package/lib/components/checkbox/src/checkbox.vue.d.ts +13 -0
- package/lib/components/color-picker/index.d.ts +234 -0
- package/lib/components/color-picker/src/components/alpha-slider.js +10 -6
- package/lib/components/color-picker/src/components/alpha-slider.js.map +1 -1
- package/lib/components/color-picker/src/components/alpha-slider.vue.d.ts +18 -0
- package/lib/components/color-picker/src/components/hue-slider.js +10 -6
- package/lib/components/color-picker/src/components/hue-slider.js.map +1 -1
- package/lib/components/color-picker/src/components/hue-slider.vue.d.ts +18 -0
- package/lib/components/color-picker/src/components/predefine.js +20 -10
- package/lib/components/color-picker/src/components/predefine.js.map +1 -1
- package/lib/components/color-picker/src/components/predefine.vue.d.ts +18 -0
- package/lib/components/color-picker/src/components/sv-panel.js +18 -12
- package/lib/components/color-picker/src/components/sv-panel.js.map +1 -1
- package/lib/components/color-picker/src/components/sv-panel.vue.d.ts +18 -0
- package/lib/components/color-picker/src/index.js +9 -3
- package/lib/components/color-picker/src/index.js.map +1 -1
- package/lib/components/color-picker/src/index.vue.d.ts +117 -0
- package/lib/components/date-picker/index.d.ts +2 -2
- package/lib/components/date-picker/src/date-picker-com/basic-date-table.js +21 -8
- 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-date-table.vue.d.ts +5 -2
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js +1 -1
- package/lib/components/date-picker/src/date-picker-com/basic-year-table.js.map +1 -1
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +6 -3
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +6 -3
- package/lib/components/date-picker/src/date-picker.d.ts +1 -1
- package/lib/components/date-picker/src/panel-utils.d.ts +12 -6
- package/lib/components/descriptions/index.d.ts +82 -54
- package/lib/components/descriptions/index.js +4 -2
- package/lib/components/descriptions/index.js.map +1 -1
- package/lib/components/descriptions/src/description.d.ts +15 -0
- package/lib/components/descriptions/src/description.js +36 -0
- package/lib/components/descriptions/src/description.js.map +1 -0
- package/lib/components/descriptions/src/description.vue.d.ts +106 -0
- package/lib/components/descriptions/src/description2.js +131 -0
- package/lib/components/descriptions/src/description2.js.map +1 -0
- package/lib/components/descriptions/src/descriptions-cell.js +3 -3
- package/lib/components/descriptions/src/descriptions-cell.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.d.ts +3 -0
- package/lib/components/descriptions/src/descriptions-row.js +7 -71
- package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
- package/lib/components/descriptions/src/descriptions-row.vue.d.ts +28 -7
- package/lib/components/descriptions/src/descriptions-row2.js +73 -0
- package/lib/components/descriptions/src/descriptions-row2.js.map +1 -0
- package/lib/components/descriptions/src/token.d.ts +1 -1
- package/lib/components/descriptions/src/token.js +2 -2
- package/lib/components/descriptions/src/token.js.map +1 -1
- package/lib/components/dialog/index.d.ts +4 -18
- package/lib/components/dialog/src/dialog.d.ts +1 -6
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -18
- package/lib/components/dialog/src/dialog2.js +1 -2
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/dialog/src/use-dialog.js.map +1 -1
- package/lib/components/drawer/index.d.ts +3 -12
- package/lib/components/drawer/src/drawer.d.ts +1 -6
- package/lib/components/drawer/src/drawer.vue.d.ts +3 -12
- package/lib/components/dropdown/index.d.ts +24 -23
- package/lib/components/dropdown/src/dropdown.vue.d.ts +24 -23
- package/lib/components/dropdown/src/dropdown2.js +9 -5
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/form/src/form-item2.js +1 -1
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/index.js +3 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +1 -1
- package/lib/components/input-number/index.d.ts +8 -4
- package/lib/components/input-number/src/input-number.d.ts +1 -0
- package/lib/components/input-number/src/input-number.js +4 -0
- package/lib/components/input-number/src/input-number.js.map +1 -1
- package/lib/components/input-number/src/input-number.vue.d.ts +8 -4
- package/lib/components/input-number/src/input-number2.js +7 -3
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/menu/src/menu.js +17 -9
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.js +1 -1
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/message/src/instance.d.ts +3 -3
- package/lib/components/message/src/instance.js +1 -1
- package/lib/components/message/src/instance.js.map +1 -1
- package/lib/components/message/src/method.js +6 -5
- package/lib/components/message/src/method.js.map +1 -1
- package/lib/components/message/style/css.d.ts +1 -0
- package/lib/components/message/style/css.js +1 -0
- package/lib/components/message/style/css.js.map +1 -1
- package/lib/components/message/style/index.d.ts +1 -0
- package/lib/components/message/style/index.js +1 -0
- package/lib/components/message/style/index.js.map +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +31 -22
- package/lib/components/popconfirm/index.d.ts +10 -11
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +10 -11
- package/lib/components/popconfirm/src/popconfirm2.js +2 -5
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.d.ts +31 -11
- package/lib/components/popover/src/popover.d.ts +11 -5
- package/lib/components/popover/src/popover.js +3 -0
- package/lib/components/popover/src/popover.js.map +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +31 -11
- package/lib/components/popover/src/popover2.js +6 -1
- package/lib/components/popover/src/popover2.js.map +1 -1
- package/lib/components/popper/src/content.vue.d.ts +1 -1
- package/lib/components/popper/src/content2.js +4 -4
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/popper/src/utils.d.ts +1 -1
- package/lib/components/radio/index.d.ts +8 -6
- package/lib/components/radio/src/radio-group.d.ts +1 -0
- package/lib/components/radio/src/radio-group.js +4 -0
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +4 -0
- package/lib/components/radio/src/radio-group2.js +5 -1
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/radio/src/radio.vue.d.ts +0 -7
- package/lib/components/radio/src/radio2.js +13 -26
- package/lib/components/radio/src/radio2.js.map +1 -1
- package/lib/components/rate/src/rate2.js +2 -1
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +3 -1
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/select/index.d.ts +31 -22
- package/lib/components/select/src/option.js +4 -4
- package/lib/components/select/src/option.js.map +1 -1
- package/lib/components/select/src/select.js +7 -3
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +31 -22
- package/lib/components/select/src/useSelect.d.ts +21 -21
- package/lib/components/select/src/useSelect.js +1 -3
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +60 -42
- package/lib/components/select-v2/src/defaults.d.ts +4 -0
- package/lib/components/select-v2/src/defaults.js +4 -0
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +30 -21
- package/lib/components/select-v2/src/useSelect.d.ts +21 -21
- package/lib/components/select-v2/src/useSelect.js +3 -2
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/index.d.ts +86 -56
- package/lib/components/slider/src/button.d.ts +1 -0
- package/lib/components/slider/src/button.js +9 -3
- package/lib/components/slider/src/button.js.map +1 -1
- package/lib/components/slider/src/button.vue.d.ts +14 -10
- package/lib/components/slider/src/button2.js +3 -2
- package/lib/components/slider/src/button2.js.map +1 -1
- package/lib/components/slider/src/composables/use-slide.d.ts +56 -42
- package/lib/components/slider/src/composables/use-slider-button.js +3 -1
- package/lib/components/slider/src/composables/use-slider-button.js.map +1 -1
- package/lib/components/slider/src/composables/use-watch.js +6 -2
- package/lib/components/slider/src/composables/use-watch.js.map +1 -1
- package/lib/components/slider/src/marker.js +1 -1
- package/lib/components/slider/src/marker.js.map +1 -1
- package/lib/components/slider/src/slider.d.ts +2 -0
- package/lib/components/slider/src/slider.js +12 -2
- package/lib/components/slider/src/slider.js.map +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +86 -56
- package/lib/components/slider/src/slider2.js +4 -2
- package/lib/components/slider/src/slider2.js.map +1 -1
- package/lib/components/steps/index.d.ts +2 -2
- package/lib/components/steps/src/item.vue.d.ts +3 -3
- package/lib/components/steps/src/item2.js +1 -1
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/switch/index.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +23 -33
- package/lib/components/table/src/filter-panel.vue.d.ts +21 -21
- package/lib/components/table/src/table/defaults.d.ts +2 -2
- package/lib/components/table/src/table/defaults.js.map +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +21 -31
- package/lib/components/table/src/table/style-helper.js +67 -94
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-header/event-helper.js +5 -9
- package/lib/components/table/src/table-header/event-helper.js.map +1 -1
- package/lib/components/table/src/table-layout.d.ts +1 -5
- package/lib/components/table/src/table-layout.js +3 -52
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/table/src/table.js +29 -34
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +23 -33
- package/lib/components/table/src/util.d.ts +1 -1
- package/lib/components/table/src/util.js +8 -19
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/table-v2/index.d.ts +1 -1
- package/lib/components/table-v2/src/components/header.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +1 -1
- package/lib/components/table-v2/src/table-v2.d.ts +1 -1
- package/lib/components/tabs/src/tab-nav.js +5 -4
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tabs.js +11 -2
- package/lib/components/tabs/src/tabs.js.map +1 -1
- package/lib/components/time-picker/index.d.ts +2 -2
- package/lib/components/time-picker/src/common/picker.js +2 -1
- package/lib/components/time-picker/src/common/picker.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +12 -12
- package/lib/components/time-picker/src/time-picker.d.ts +1 -1
- package/lib/components/time-select/index.d.ts +124 -88
- package/lib/components/time-select/src/time-select.vue.d.ts +62 -44
- package/lib/components/timeline/index.d.ts +2 -2
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/index.d.ts +10 -10
- package/lib/components/tooltip/src/content.vue.d.ts +4 -4
- package/lib/components/tooltip/src/tooltip.vue.d.ts +10 -10
- package/lib/components/tooltip/src/tooltip2.js +2 -2
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip-v2/index.d.ts +6 -6
- package/lib/components/tooltip-v2/src/content.vue.d.ts +1 -1
- package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +6 -6
- package/lib/components/transfer/index.d.ts +272 -20
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +53 -1
- package/lib/components/transfer/src/transfer.d.ts +3 -1
- package/lib/components/transfer/src/transfer.js +4 -0
- package/lib/components/transfer/src/transfer.js.map +1 -1
- package/lib/components/transfer/src/transfer.vue.d.ts +367 -116
- package/lib/components/transfer/src/transfer2.js +3 -1
- package/lib/components/transfer/src/transfer2.js.map +1 -1
- package/lib/components/tree/src/model/useDragNode.js.map +1 -1
- package/lib/components/tree/src/tree.type.d.ts +3 -2
- package/lib/components/tree-select/src/tree-select-option.d.ts +3 -2
- package/lib/components/tree-select/src/tree-select-option.js +6 -0
- package/lib/components/tree-select/src/tree-select-option.js.map +1 -1
- package/lib/components/tree-select/src/tree.js +24 -19
- package/lib/components/tree-select/src/tree.js.map +1 -1
- package/lib/components/tree-select/src/utils.d.ts +9 -0
- package/lib/components/tree-select/src/utils.js +34 -0
- package/lib/components/tree-select/src/utils.js.map +1 -0
- package/lib/components/upload/src/use-handlers.js +1 -1
- package/lib/components/upload/src/use-handlers.js.map +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.js.map +1 -1
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/index.d.ts +0 -1
- package/lib/directives/index.js +0 -2
- package/lib/directives/index.js.map +1 -1
- package/lib/directives/repeat-click/index.d.ts +2 -2
- package/lib/directives/repeat-click/index.js +13 -13
- package/lib/directives/repeat-click/index.js.map +1 -1
- package/lib/directives/trap-focus/index.d.ts +1 -1
- package/lib/directives/trap-focus/index.js +2 -3
- package/lib/directives/trap-focus/index.js.map +1 -1
- package/lib/hooks/use-floating/index.d.ts +1 -1
- package/lib/hooks/use-floating/index.js.map +1 -1
- package/lib/hooks/use-model-toggle/index.d.ts +2 -0
- package/lib/hooks/use-model-toggle/index.js +2 -1
- package/lib/hooks/use-model-toggle/index.js.map +1 -1
- package/lib/index.js +82 -82
- package/lib/locale/lang/ko.d.ts +25 -0
- package/lib/locale/lang/ko.js +28 -3
- package/lib/locale/lang/ko.js.map +1 -1
- package/lib/utils/dom/aria.d.ts +2 -3
- package/lib/utils/dom/aria.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/tags.json +1 -1
- package/theme-chalk/el-message-box.css +1 -1
- package/theme-chalk/el-message.css +1 -1
- package/theme-chalk/el-select-dropdown-v2.css +1 -1
- package/theme-chalk/el-select-dropdown.css +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-select.css +1 -1
- package/theme-chalk/el-slider.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-tabs.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/var.scss +1 -1
- package/theme-chalk/src/message-box.scss +3 -1
- package/theme-chalk/src/message.scss +2 -1
- package/theme-chalk/src/select-dropdown-v2.scss +21 -0
- package/theme-chalk/src/select-dropdown.scss +10 -0
- package/theme-chalk/src/slider.scss +2 -0
- package/theme-chalk/src/table.scss +38 -1
- package/theme-chalk/src/tabs.scss +1 -1
- package/web-types.json +1 -1
- package/es/components/descriptions/src/index.mjs +0 -160
- package/es/components/descriptions/src/index.mjs.map +0 -1
- package/es/components/descriptions/src/index.vue.d.ts +0 -80
- package/es/directives/resize/index.d.ts +0 -3
- package/es/directives/resize/index.mjs +0 -18
- package/es/directives/resize/index.mjs.map +0 -1
- package/lib/components/descriptions/src/index.js +0 -164
- package/lib/components/descriptions/src/index.js.map +0 -1
- package/lib/components/descriptions/src/index.vue.d.ts +0 -80
- package/lib/directives/resize/index.d.ts +0 -3
- package/lib/directives/resize/index.js +0 -22
- package/lib/directives/resize/index.js.map +0 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.2.
|
|
1
|
+
/*! Element Plus v2.2.10 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
|
|
@@ -4448,7 +4448,7 @@
|
|
|
4448
4448
|
return pickBy(object, negate(baseIteratee(predicate)));
|
|
4449
4449
|
}
|
|
4450
4450
|
|
|
4451
|
-
function once
|
|
4451
|
+
function once(func) {
|
|
4452
4452
|
return before(2, func);
|
|
4453
4453
|
}
|
|
4454
4454
|
|
|
@@ -6002,7 +6002,7 @@
|
|
|
6002
6002
|
flip,
|
|
6003
6003
|
memoize,
|
|
6004
6004
|
negate,
|
|
6005
|
-
once
|
|
6005
|
+
once,
|
|
6006
6006
|
overArgs,
|
|
6007
6007
|
partial,
|
|
6008
6008
|
partialRight,
|
|
@@ -6888,15 +6888,6 @@
|
|
|
6888
6888
|
element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
|
|
6889
6889
|
}
|
|
6890
6890
|
};
|
|
6891
|
-
const once = (el, event, fn) => {
|
|
6892
|
-
const listener = function(...args) {
|
|
6893
|
-
if (fn) {
|
|
6894
|
-
fn.apply(this, args);
|
|
6895
|
-
}
|
|
6896
|
-
off(el, event, listener);
|
|
6897
|
-
};
|
|
6898
|
-
on$1(el, event, listener);
|
|
6899
|
-
};
|
|
6900
6891
|
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
6901
6892
|
const handleEvent = (event) => {
|
|
6902
6893
|
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
@@ -7424,36 +7415,6 @@
|
|
|
7424
7415
|
};
|
|
7425
7416
|
};
|
|
7426
7417
|
|
|
7427
|
-
const resizeHandler = function(entries) {
|
|
7428
|
-
for (const entry of entries) {
|
|
7429
|
-
const listeners = entry.target.__resizeListeners__ || [];
|
|
7430
|
-
if (listeners.length) {
|
|
7431
|
-
listeners.forEach((fn) => {
|
|
7432
|
-
fn();
|
|
7433
|
-
});
|
|
7434
|
-
}
|
|
7435
|
-
}
|
|
7436
|
-
};
|
|
7437
|
-
const addResizeListener = function(element, fn) {
|
|
7438
|
-
if (!isClient || !element)
|
|
7439
|
-
return;
|
|
7440
|
-
if (!element.__resizeListeners__) {
|
|
7441
|
-
element.__resizeListeners__ = [];
|
|
7442
|
-
element.__ro__ = new ResizeObserver(resizeHandler);
|
|
7443
|
-
element.__ro__.observe(element);
|
|
7444
|
-
}
|
|
7445
|
-
element.__resizeListeners__.push(fn);
|
|
7446
|
-
};
|
|
7447
|
-
const removeResizeListener = function(element, fn) {
|
|
7448
|
-
var _a;
|
|
7449
|
-
if (!element || !element.__resizeListeners__)
|
|
7450
|
-
return;
|
|
7451
|
-
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
|
|
7452
|
-
if (!element.__resizeListeners__.length) {
|
|
7453
|
-
(_a = element.__ro__) == null ? void 0 : _a.disconnect();
|
|
7454
|
-
}
|
|
7455
|
-
};
|
|
7456
|
-
|
|
7457
7418
|
const NOOP = () => {
|
|
7458
7419
|
};
|
|
7459
7420
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -9298,7 +9259,8 @@
|
|
|
9298
9259
|
return {
|
|
9299
9260
|
hide,
|
|
9300
9261
|
show,
|
|
9301
|
-
toggle
|
|
9262
|
+
toggle,
|
|
9263
|
+
hasUpdateHandler
|
|
9302
9264
|
};
|
|
9303
9265
|
};
|
|
9304
9266
|
return {
|
|
@@ -10734,7 +10696,7 @@
|
|
|
10734
10696
|
return [recordCursor, setCursor];
|
|
10735
10697
|
}
|
|
10736
10698
|
|
|
10737
|
-
const version$1 = "2.2.
|
|
10699
|
+
const version$1 = "2.2.10";
|
|
10738
10700
|
|
|
10739
10701
|
const makeInstaller = (components = []) => {
|
|
10740
10702
|
const install = (app, options) => {
|
|
@@ -10783,11 +10745,11 @@
|
|
|
10783
10745
|
return target;
|
|
10784
10746
|
};
|
|
10785
10747
|
|
|
10786
|
-
const __default__$
|
|
10748
|
+
const __default__$1p = {
|
|
10787
10749
|
name: "ElAffix"
|
|
10788
10750
|
};
|
|
10789
10751
|
const _sfc_main$2f = /* @__PURE__ */ vue.defineComponent({
|
|
10790
|
-
...__default__$
|
|
10752
|
+
...__default__$1p,
|
|
10791
10753
|
props: affixProps,
|
|
10792
10754
|
emits: affixEmits,
|
|
10793
10755
|
setup(__props, { expose, emit }) {
|
|
@@ -10902,12 +10864,12 @@
|
|
|
10902
10864
|
}
|
|
10903
10865
|
});
|
|
10904
10866
|
|
|
10905
|
-
const __default__$
|
|
10867
|
+
const __default__$1o = {
|
|
10906
10868
|
name: "ElIcon",
|
|
10907
10869
|
inheritAttrs: false
|
|
10908
10870
|
};
|
|
10909
10871
|
const _sfc_main$2e = /* @__PURE__ */ vue.defineComponent({
|
|
10910
|
-
...__default__$
|
|
10872
|
+
...__default__$1o,
|
|
10911
10873
|
props: iconProps,
|
|
10912
10874
|
setup(__props) {
|
|
10913
10875
|
const props = __props;
|
|
@@ -10969,11 +10931,11 @@
|
|
|
10969
10931
|
close: (evt) => evt instanceof MouseEvent
|
|
10970
10932
|
};
|
|
10971
10933
|
|
|
10972
|
-
const __default__$
|
|
10934
|
+
const __default__$1n = {
|
|
10973
10935
|
name: "ElAlert"
|
|
10974
10936
|
};
|
|
10975
10937
|
const _sfc_main$2d = /* @__PURE__ */ vue.defineComponent({
|
|
10976
|
-
...__default__$
|
|
10938
|
+
...__default__$1n,
|
|
10977
10939
|
props: alertProps,
|
|
10978
10940
|
emits: alertEmits,
|
|
10979
10941
|
setup(__props, { emit }) {
|
|
@@ -11239,14 +11201,14 @@
|
|
|
11239
11201
|
};
|
|
11240
11202
|
|
|
11241
11203
|
const _hoisted_1$12 = ["role"];
|
|
11242
|
-
const _hoisted_2$
|
|
11243
|
-
const _hoisted_3$
|
|
11244
|
-
const __default__$
|
|
11204
|
+
const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
|
|
11205
|
+
const _hoisted_3$m = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
|
|
11206
|
+
const __default__$1m = {
|
|
11245
11207
|
name: "ElInput",
|
|
11246
11208
|
inheritAttrs: false
|
|
11247
11209
|
};
|
|
11248
11210
|
const _sfc_main$2c = /* @__PURE__ */ vue.defineComponent({
|
|
11249
|
-
...__default__$
|
|
11211
|
+
...__default__$1m,
|
|
11250
11212
|
props: inputProps,
|
|
11251
11213
|
emits: inputEmits,
|
|
11252
11214
|
setup(__props, { expose, emit }) {
|
|
@@ -11562,7 +11524,7 @@
|
|
|
11562
11524
|
onBlur: handleBlur,
|
|
11563
11525
|
onChange: handleChange,
|
|
11564
11526
|
onKeydown: handleKeydown
|
|
11565
|
-
}), null, 16, _hoisted_2$
|
|
11527
|
+
}), null, 16, _hoisted_2$G),
|
|
11566
11528
|
vue.createCommentVNode(" suffix slot "),
|
|
11567
11529
|
vue.unref(suffixVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
11568
11530
|
key: 1,
|
|
@@ -11658,7 +11620,7 @@
|
|
|
11658
11620
|
onBlur: handleBlur,
|
|
11659
11621
|
onChange: handleChange,
|
|
11660
11622
|
onKeydown: handleKeydown
|
|
11661
|
-
}), null, 16, _hoisted_3$
|
|
11623
|
+
}), null, 16, _hoisted_3$m),
|
|
11662
11624
|
vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
11663
11625
|
key: 0,
|
|
11664
11626
|
style: vue.normalizeStyle(countStyle.value),
|
|
@@ -11940,11 +11902,11 @@
|
|
|
11940
11902
|
}) => [scrollTop, scrollLeft].every(isNumber)
|
|
11941
11903
|
};
|
|
11942
11904
|
|
|
11943
|
-
const __default__$
|
|
11905
|
+
const __default__$1l = {
|
|
11944
11906
|
name: "ElScrollbar"
|
|
11945
11907
|
};
|
|
11946
11908
|
const _sfc_main$29 = /* @__PURE__ */ vue.defineComponent({
|
|
11947
|
-
...__default__$
|
|
11909
|
+
...__default__$1l,
|
|
11948
11910
|
props: scrollbarProps,
|
|
11949
11911
|
emits: scrollbarEmits,
|
|
11950
11912
|
setup(__props, { expose, emit }) {
|
|
@@ -12036,7 +11998,9 @@
|
|
|
12036
11998
|
}));
|
|
12037
11999
|
vue.onMounted(() => {
|
|
12038
12000
|
if (!props.native)
|
|
12039
|
-
vue.nextTick(() =>
|
|
12001
|
+
vue.nextTick(() => {
|
|
12002
|
+
update();
|
|
12003
|
+
});
|
|
12040
12004
|
});
|
|
12041
12005
|
vue.onUpdated(() => update());
|
|
12042
12006
|
expose({
|
|
@@ -12105,12 +12069,12 @@
|
|
|
12105
12069
|
}
|
|
12106
12070
|
});
|
|
12107
12071
|
|
|
12108
|
-
const __default__$
|
|
12072
|
+
const __default__$1k = {
|
|
12109
12073
|
name: "ElPopperRoot",
|
|
12110
12074
|
inheritAttrs: false
|
|
12111
12075
|
};
|
|
12112
12076
|
const _sfc_main$28 = /* @__PURE__ */ vue.defineComponent({
|
|
12113
|
-
...__default__$
|
|
12077
|
+
...__default__$1k,
|
|
12114
12078
|
props: usePopperProps,
|
|
12115
12079
|
setup(__props, { expose }) {
|
|
12116
12080
|
const props = __props;
|
|
@@ -12142,12 +12106,12 @@
|
|
|
12142
12106
|
}
|
|
12143
12107
|
});
|
|
12144
12108
|
|
|
12145
|
-
const __default__$
|
|
12109
|
+
const __default__$1j = {
|
|
12146
12110
|
name: "ElPopperArrow",
|
|
12147
12111
|
inheritAttrs: false
|
|
12148
12112
|
};
|
|
12149
12113
|
const _sfc_main$27 = /* @__PURE__ */ vue.defineComponent({
|
|
12150
|
-
...__default__$
|
|
12114
|
+
...__default__$1j,
|
|
12151
12115
|
props: usePopperArrowProps,
|
|
12152
12116
|
setup(__props, { expose }) {
|
|
12153
12117
|
const props = __props;
|
|
@@ -12244,12 +12208,12 @@
|
|
|
12244
12208
|
open: Boolean
|
|
12245
12209
|
});
|
|
12246
12210
|
|
|
12247
|
-
const __default__$
|
|
12211
|
+
const __default__$1i = {
|
|
12248
12212
|
name: "ElPopperTrigger",
|
|
12249
12213
|
inheritAttrs: false
|
|
12250
12214
|
};
|
|
12251
12215
|
const _sfc_main$26 = /* @__PURE__ */ vue.defineComponent({
|
|
12252
|
-
...__default__$
|
|
12216
|
+
...__default__$1i,
|
|
12253
12217
|
props: usePopperTriggerProps,
|
|
12254
12218
|
setup(__props, { expose }) {
|
|
12255
12219
|
const props = __props;
|
|
@@ -12651,10 +12615,10 @@
|
|
|
12651
12615
|
};
|
|
12652
12616
|
}
|
|
12653
12617
|
});
|
|
12654
|
-
function _sfc_render$
|
|
12618
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12655
12619
|
return vue.renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
12656
12620
|
}
|
|
12657
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$
|
|
12621
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$F], ["__file", "focus-trap.vue"]]);
|
|
12658
12622
|
|
|
12659
12623
|
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
12660
12624
|
const usePopperCoreConfigProps = buildProps({
|
|
@@ -12811,11 +12775,11 @@
|
|
|
12811
12775
|
}
|
|
12812
12776
|
}
|
|
12813
12777
|
|
|
12814
|
-
const __default__$
|
|
12778
|
+
const __default__$1h = {
|
|
12815
12779
|
name: "ElPopperContent"
|
|
12816
12780
|
};
|
|
12817
12781
|
const _sfc_main$24 = /* @__PURE__ */ vue.defineComponent({
|
|
12818
|
-
...__default__$
|
|
12782
|
+
...__default__$1h,
|
|
12819
12783
|
props: usePopperContentProps,
|
|
12820
12784
|
emits: usePopperContentEmits,
|
|
12821
12785
|
setup(__props, { expose, emit }) {
|
|
@@ -12889,13 +12853,13 @@
|
|
|
12889
12853
|
const onFocusInTrap = (event) => {
|
|
12890
12854
|
var _a;
|
|
12891
12855
|
if (props.visible && !trapped.value) {
|
|
12892
|
-
if (event.relatedTarget) {
|
|
12893
|
-
(_a = event.relatedTarget) == null ? void 0 : _a.focus();
|
|
12894
|
-
}
|
|
12895
12856
|
if (event.target) {
|
|
12896
12857
|
focusStartRef.value = event.target;
|
|
12897
12858
|
}
|
|
12898
12859
|
trapped.value = true;
|
|
12860
|
+
if (event.relatedTarget) {
|
|
12861
|
+
(_a = event.relatedTarget) == null ? void 0 : _a.focus();
|
|
12862
|
+
}
|
|
12899
12863
|
}
|
|
12900
12864
|
};
|
|
12901
12865
|
const onFocusoutPrevented = () => {
|
|
@@ -13186,7 +13150,7 @@
|
|
|
13186
13150
|
};
|
|
13187
13151
|
}
|
|
13188
13152
|
});
|
|
13189
|
-
function _sfc_render$
|
|
13153
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13190
13154
|
const _component_el_popper_content = vue.resolveComponent("el-popper-content");
|
|
13191
13155
|
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
13192
13156
|
disabled: !_ctx.teleported,
|
|
@@ -13241,7 +13205,7 @@
|
|
|
13241
13205
|
}, 8, ["name", "onAfterLeave", "onBeforeEnter", "onAfterEnter", "onBeforeLeave"])
|
|
13242
13206
|
], 8, ["disabled", "to"]);
|
|
13243
13207
|
}
|
|
13244
|
-
var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$
|
|
13208
|
+
var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$E], ["__file", "content.vue"]]);
|
|
13245
13209
|
|
|
13246
13210
|
const isTriggerType = (trigger, type) => {
|
|
13247
13211
|
if (isArray(trigger)) {
|
|
@@ -13306,7 +13270,7 @@
|
|
|
13306
13270
|
};
|
|
13307
13271
|
}
|
|
13308
13272
|
});
|
|
13309
|
-
function _sfc_render$
|
|
13273
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13310
13274
|
const _component_el_popper_trigger = vue.resolveComponent("el-popper-trigger");
|
|
13311
13275
|
return vue.openBlock(), vue.createBlock(_component_el_popper_trigger, {
|
|
13312
13276
|
id: _ctx.id,
|
|
@@ -13328,7 +13292,7 @@
|
|
|
13328
13292
|
_: 3
|
|
13329
13293
|
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
|
13330
13294
|
}
|
|
13331
|
-
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$
|
|
13295
|
+
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$D], ["__file", "trigger.vue"]]);
|
|
13332
13296
|
|
|
13333
13297
|
const { useModelToggleProps, useModelToggle, useModelToggleEmits } = createModelToggleComposable("visible");
|
|
13334
13298
|
const _sfc_main$21 = vue.defineComponent({
|
|
@@ -13378,7 +13342,7 @@
|
|
|
13378
13342
|
};
|
|
13379
13343
|
const open = vue.ref(false);
|
|
13380
13344
|
const toggleReason = vue.ref(void 0);
|
|
13381
|
-
const { show, hide } = useModelToggle({
|
|
13345
|
+
const { show, hide, hasUpdateHandler } = useModelToggle({
|
|
13382
13346
|
indicator: open,
|
|
13383
13347
|
toggleReason
|
|
13384
13348
|
});
|
|
@@ -13388,7 +13352,7 @@
|
|
|
13388
13352
|
open: show,
|
|
13389
13353
|
close: hide
|
|
13390
13354
|
});
|
|
13391
|
-
const controlled = vue.computed(() => isBoolean(props.visible));
|
|
13355
|
+
const controlled = vue.computed(() => isBoolean(props.visible) && !hasUpdateHandler.value);
|
|
13392
13356
|
vue.provide(TOOLTIP_INJECTION_KEY, {
|
|
13393
13357
|
controlled,
|
|
13394
13358
|
id,
|
|
@@ -13447,8 +13411,8 @@
|
|
|
13447
13411
|
}
|
|
13448
13412
|
});
|
|
13449
13413
|
const _hoisted_1$11 = ["innerHTML"];
|
|
13450
|
-
const _hoisted_2$
|
|
13451
|
-
function _sfc_render$
|
|
13414
|
+
const _hoisted_2$F = { key: 1 };
|
|
13415
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13452
13416
|
const _component_el_tooltip_trigger = vue.resolveComponent("el-tooltip-trigger");
|
|
13453
13417
|
const _component_el_popper_arrow = vue.resolveComponent("el-popper-arrow");
|
|
13454
13418
|
const _component_el_tooltip_content = vue.resolveComponent("el-tooltip-content");
|
|
@@ -13504,7 +13468,7 @@
|
|
|
13504
13468
|
_ctx.rawContent ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
13505
13469
|
key: 0,
|
|
13506
13470
|
innerHTML: _ctx.content
|
|
13507
|
-
}, null, 8, _hoisted_1$11)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
13471
|
+
}, null, 8, _hoisted_1$11)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$F, vue.toDisplayString(_ctx.content), 1))
|
|
13508
13472
|
]),
|
|
13509
13473
|
_ctx.compatShowArrow ? (vue.openBlock(), vue.createBlock(_component_el_popper_arrow, {
|
|
13510
13474
|
key: 0,
|
|
@@ -13517,7 +13481,7 @@
|
|
|
13517
13481
|
_: 3
|
|
13518
13482
|
}, 8, ["role"]);
|
|
13519
13483
|
}
|
|
13520
|
-
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$
|
|
13484
|
+
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$C], ["__file", "tooltip.vue"]]);
|
|
13521
13485
|
|
|
13522
13486
|
const ElTooltip = withInstall(Tooltip);
|
|
13523
13487
|
|
|
@@ -13573,6 +13537,10 @@
|
|
|
13573
13537
|
highlightFirstItem: {
|
|
13574
13538
|
type: Boolean,
|
|
13575
13539
|
default: false
|
|
13540
|
+
},
|
|
13541
|
+
fitInputWidth: {
|
|
13542
|
+
type: Boolean,
|
|
13543
|
+
default: false
|
|
13576
13544
|
}
|
|
13577
13545
|
});
|
|
13578
13546
|
const autocompleteEmits = {
|
|
@@ -13586,14 +13554,14 @@
|
|
|
13586
13554
|
};
|
|
13587
13555
|
|
|
13588
13556
|
const _hoisted_1$10 = ["aria-expanded", "aria-owns"];
|
|
13589
|
-
const _hoisted_2$
|
|
13590
|
-
const _hoisted_3$
|
|
13591
|
-
const __default__$
|
|
13557
|
+
const _hoisted_2$E = { key: 0 };
|
|
13558
|
+
const _hoisted_3$l = ["id", "aria-selected", "onClick"];
|
|
13559
|
+
const __default__$1g = {
|
|
13592
13560
|
name: "ElAutocomplete",
|
|
13593
13561
|
inheritAttrs: false
|
|
13594
13562
|
};
|
|
13595
13563
|
const _sfc_main$20 = /* @__PURE__ */ vue.defineComponent({
|
|
13596
|
-
...__default__$
|
|
13564
|
+
...__default__$1g,
|
|
13597
13565
|
props: autocompleteProps,
|
|
13598
13566
|
emits: autocompleteEmits,
|
|
13599
13567
|
setup(__props, { expose, emit }) {
|
|
@@ -13793,7 +13761,6 @@
|
|
|
13793
13761
|
ref_key: "popperRef",
|
|
13794
13762
|
ref: popperRef,
|
|
13795
13763
|
visible: vue.unref(suggestionVisible),
|
|
13796
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => vue.isRef(suggestionVisible) ? suggestionVisible.value = $event : null),
|
|
13797
13764
|
placement: _ctx.placement,
|
|
13798
13765
|
"fallback-placements": ["bottom-start", "top-start"],
|
|
13799
13766
|
"popper-class": [vue.unref(ns).e("popper"), _ctx.popperClass],
|
|
@@ -13814,7 +13781,10 @@
|
|
|
13814
13781
|
ref_key: "regionRef",
|
|
13815
13782
|
ref: regionRef,
|
|
13816
13783
|
class: vue.normalizeClass([vue.unref(ns).b("suggestion"), vue.unref(ns).is("loading", vue.unref(suggestionLoading))]),
|
|
13817
|
-
style: vue.normalizeStyle({
|
|
13784
|
+
style: vue.normalizeStyle({
|
|
13785
|
+
[_ctx.fitInputWidth ? "width" : "minWidth"]: dropdownWidth.value,
|
|
13786
|
+
outline: "none"
|
|
13787
|
+
}),
|
|
13818
13788
|
role: "region"
|
|
13819
13789
|
}, [
|
|
13820
13790
|
vue.createVNode(vue.unref(ElScrollbar), {
|
|
@@ -13825,7 +13795,7 @@
|
|
|
13825
13795
|
role: "listbox"
|
|
13826
13796
|
}, {
|
|
13827
13797
|
default: vue.withCtx(() => [
|
|
13828
|
-
vue.unref(suggestionLoading) ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$
|
|
13798
|
+
vue.unref(suggestionLoading) ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$E, [
|
|
13829
13799
|
vue.createVNode(vue.unref(ElIcon), {
|
|
13830
13800
|
class: vue.normalizeClass(vue.unref(ns).is("loading"))
|
|
13831
13801
|
}, {
|
|
@@ -13846,7 +13816,7 @@
|
|
|
13846
13816
|
vue.renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
13847
13817
|
vue.createTextVNode(vue.toDisplayString(item[_ctx.valueKey]), 1)
|
|
13848
13818
|
])
|
|
13849
|
-
], 10, _hoisted_3$
|
|
13819
|
+
], 10, _hoisted_3$l);
|
|
13850
13820
|
}), 128))
|
|
13851
13821
|
]),
|
|
13852
13822
|
_: 3
|
|
@@ -13950,11 +13920,11 @@
|
|
|
13950
13920
|
};
|
|
13951
13921
|
|
|
13952
13922
|
const _hoisted_1$$ = ["src", "alt", "srcset"];
|
|
13953
|
-
const __default__$
|
|
13923
|
+
const __default__$1f = {
|
|
13954
13924
|
name: "ElAvatar"
|
|
13955
13925
|
};
|
|
13956
13926
|
const _sfc_main$1$ = /* @__PURE__ */ vue.defineComponent({
|
|
13957
|
-
...__default__$
|
|
13927
|
+
...__default__$1f,
|
|
13958
13928
|
props: avatarProps,
|
|
13959
13929
|
emits: avatarEmits,
|
|
13960
13930
|
setup(__props, { emit }) {
|
|
@@ -14035,11 +14005,11 @@
|
|
|
14035
14005
|
};
|
|
14036
14006
|
|
|
14037
14007
|
const _hoisted_1$_ = ["onClick"];
|
|
14038
|
-
const __default__$
|
|
14008
|
+
const __default__$1e = {
|
|
14039
14009
|
name: "ElBacktop"
|
|
14040
14010
|
};
|
|
14041
14011
|
const _sfc_main$1_ = /* @__PURE__ */ vue.defineComponent({
|
|
14042
|
-
...__default__$
|
|
14012
|
+
...__default__$1e,
|
|
14043
14013
|
props: backtopProps,
|
|
14044
14014
|
emits: backtopEmits,
|
|
14045
14015
|
setup(__props, { emit }) {
|
|
@@ -14144,11 +14114,11 @@
|
|
|
14144
14114
|
});
|
|
14145
14115
|
|
|
14146
14116
|
const _hoisted_1$Z = ["textContent"];
|
|
14147
|
-
const __default__$
|
|
14117
|
+
const __default__$1d = {
|
|
14148
14118
|
name: "ElBadge"
|
|
14149
14119
|
};
|
|
14150
14120
|
const _sfc_main$1Z = /* @__PURE__ */ vue.defineComponent({
|
|
14151
|
-
...__default__$
|
|
14121
|
+
...__default__$1d,
|
|
14152
14122
|
props: badgeProps,
|
|
14153
14123
|
setup(__props, { expose }) {
|
|
14154
14124
|
const props = __props;
|
|
@@ -14207,11 +14177,11 @@
|
|
|
14207
14177
|
}
|
|
14208
14178
|
});
|
|
14209
14179
|
|
|
14210
|
-
const __default__$
|
|
14180
|
+
const __default__$1c = {
|
|
14211
14181
|
name: "ElBreadcrumb"
|
|
14212
14182
|
};
|
|
14213
14183
|
const _sfc_main$1Y = /* @__PURE__ */ vue.defineComponent({
|
|
14214
|
-
...__default__$
|
|
14184
|
+
...__default__$1c,
|
|
14215
14185
|
props: breadcrumbProps,
|
|
14216
14186
|
setup(__props) {
|
|
14217
14187
|
const props = __props;
|
|
@@ -14250,11 +14220,11 @@
|
|
|
14250
14220
|
}
|
|
14251
14221
|
});
|
|
14252
14222
|
|
|
14253
|
-
const __default__$
|
|
14223
|
+
const __default__$1b = {
|
|
14254
14224
|
name: "ElBreadcrumbItem"
|
|
14255
14225
|
};
|
|
14256
14226
|
const _sfc_main$1X = /* @__PURE__ */ vue.defineComponent({
|
|
14257
|
-
...__default__$
|
|
14227
|
+
...__default__$1b,
|
|
14258
14228
|
props: breadcrumbItemProps,
|
|
14259
14229
|
setup(__props) {
|
|
14260
14230
|
const props = __props;
|
|
@@ -15285,11 +15255,11 @@
|
|
|
15285
15255
|
}
|
|
15286
15256
|
|
|
15287
15257
|
const _hoisted_1$Y = ["aria-disabled", "disabled", "autofocus", "type"];
|
|
15288
|
-
const __default__$
|
|
15258
|
+
const __default__$1a = {
|
|
15289
15259
|
name: "ElButton"
|
|
15290
15260
|
};
|
|
15291
15261
|
const _sfc_main$1W = /* @__PURE__ */ vue.defineComponent({
|
|
15292
|
-
...__default__$
|
|
15262
|
+
...__default__$1a,
|
|
15293
15263
|
props: buttonProps,
|
|
15294
15264
|
emits: buttonEmits,
|
|
15295
15265
|
setup(__props, { expose, emit }) {
|
|
@@ -15397,11 +15367,11 @@
|
|
|
15397
15367
|
type: buttonProps.type
|
|
15398
15368
|
};
|
|
15399
15369
|
|
|
15400
|
-
const __default__$
|
|
15370
|
+
const __default__$19 = {
|
|
15401
15371
|
name: "ElButtonGroup"
|
|
15402
15372
|
};
|
|
15403
15373
|
const _sfc_main$1V = /* @__PURE__ */ vue.defineComponent({
|
|
15404
|
-
...__default__$
|
|
15374
|
+
...__default__$19,
|
|
15405
15375
|
props: buttonGroupProps,
|
|
15406
15376
|
setup(__props) {
|
|
15407
15377
|
const props = __props;
|
|
@@ -16052,12 +16022,12 @@
|
|
|
16052
16022
|
});
|
|
16053
16023
|
|
|
16054
16024
|
const _hoisted_1$X = ["id", "name", "placeholder", "value", "disabled", "readonly"];
|
|
16055
|
-
const _hoisted_2$
|
|
16056
|
-
const __default__$
|
|
16025
|
+
const _hoisted_2$D = ["id", "name", "placeholder", "value", "disabled", "readonly"];
|
|
16026
|
+
const __default__$18 = {
|
|
16057
16027
|
name: "Picker"
|
|
16058
16028
|
};
|
|
16059
16029
|
const _sfc_main$1U = /* @__PURE__ */ vue.defineComponent({
|
|
16060
|
-
...__default__$
|
|
16030
|
+
...__default__$18,
|
|
16061
16031
|
props: timePickerDefaultProps,
|
|
16062
16032
|
emits: [
|
|
16063
16033
|
"update:modelValue",
|
|
@@ -16358,6 +16328,8 @@
|
|
|
16358
16328
|
return pickerOptions.value.isValidValue(value);
|
|
16359
16329
|
};
|
|
16360
16330
|
const handleKeydownInput = async (event) => {
|
|
16331
|
+
if (props.readonly || pickerDisabled.value)
|
|
16332
|
+
return;
|
|
16361
16333
|
const { code } = event;
|
|
16362
16334
|
emitKeydown(event);
|
|
16363
16335
|
if (code === EVENT_CODE.esc) {
|
|
@@ -16483,7 +16455,6 @@
|
|
|
16483
16455
|
ref_key: "refPopper",
|
|
16484
16456
|
ref: refPopper,
|
|
16485
16457
|
visible: pickerVisible.value,
|
|
16486
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => pickerVisible.value = $event),
|
|
16487
16458
|
effect: "light",
|
|
16488
16459
|
pure: "",
|
|
16489
16460
|
trigger: "click"
|
|
@@ -16623,7 +16594,7 @@
|
|
|
16623
16594
|
onBlur: handleBlurInput,
|
|
16624
16595
|
onInput: handleEndInput,
|
|
16625
16596
|
onChange: handleEndChange
|
|
16626
|
-
}, null, 42, _hoisted_2$
|
|
16597
|
+
}, null, 42, _hoisted_2$D),
|
|
16627
16598
|
_ctx.clearIcon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
|
|
16628
16599
|
key: 1,
|
|
16629
16600
|
class: vue.normalizeClass([
|
|
@@ -16839,25 +16810,28 @@
|
|
|
16839
16810
|
}
|
|
16840
16811
|
};
|
|
16841
16812
|
|
|
16842
|
-
|
|
16813
|
+
const RepeatClick = {
|
|
16843
16814
|
beforeMount(el, binding) {
|
|
16844
16815
|
let interval = null;
|
|
16845
|
-
let
|
|
16816
|
+
let isHandlerCalled = false;
|
|
16846
16817
|
const handler = () => binding.value && binding.value();
|
|
16847
16818
|
const clear = () => {
|
|
16848
|
-
if (Date.now() - startTime < 100) {
|
|
16849
|
-
handler();
|
|
16850
|
-
}
|
|
16851
16819
|
clearInterval(interval);
|
|
16852
16820
|
interval = null;
|
|
16821
|
+
if (!isHandlerCalled) {
|
|
16822
|
+
handler();
|
|
16823
|
+
}
|
|
16824
|
+
isHandlerCalled = false;
|
|
16853
16825
|
};
|
|
16854
|
-
|
|
16826
|
+
el.addEventListener("mousedown", (e) => {
|
|
16855
16827
|
if (e.button !== 0)
|
|
16856
16828
|
return;
|
|
16857
|
-
|
|
16858
|
-
once(document, "mouseup", clear);
|
|
16829
|
+
document.addEventListener("mouseup", clear, { once: true });
|
|
16859
16830
|
clearInterval(interval);
|
|
16860
|
-
interval = setInterval(
|
|
16831
|
+
interval = setInterval(() => {
|
|
16832
|
+
isHandlerCalled = true;
|
|
16833
|
+
handler();
|
|
16834
|
+
}, 100);
|
|
16861
16835
|
});
|
|
16862
16836
|
}
|
|
16863
16837
|
};
|
|
@@ -16894,7 +16868,7 @@
|
|
|
16894
16868
|
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
16895
16869
|
FOCUS_STACK.push(el);
|
|
16896
16870
|
if (FOCUS_STACK.length <= 1) {
|
|
16897
|
-
|
|
16871
|
+
document.addEventListener("keydown", FOCUS_HANDLER);
|
|
16898
16872
|
}
|
|
16899
16873
|
},
|
|
16900
16874
|
updated(el) {
|
|
@@ -16905,7 +16879,7 @@
|
|
|
16905
16879
|
unmounted() {
|
|
16906
16880
|
FOCUS_STACK.shift();
|
|
16907
16881
|
if (FOCUS_STACK.length === 0) {
|
|
16908
|
-
|
|
16882
|
+
document.removeEventListener("keydown", FOCUS_HANDLER);
|
|
16909
16883
|
}
|
|
16910
16884
|
}
|
|
16911
16885
|
};
|
|
@@ -16940,19 +16914,6 @@
|
|
|
16940
16914
|
}
|
|
16941
16915
|
};
|
|
16942
16916
|
|
|
16943
|
-
const Resize = {
|
|
16944
|
-
beforeMount(el, binding) {
|
|
16945
|
-
el._handleResize = () => {
|
|
16946
|
-
var _a;
|
|
16947
|
-
el && ((_a = binding.value) == null ? void 0 : _a.call(binding, el));
|
|
16948
|
-
};
|
|
16949
|
-
addResizeListener(el, el._handleResize);
|
|
16950
|
-
},
|
|
16951
|
-
beforeUnmount(el) {
|
|
16952
|
-
removeResizeListener(el, el._handleResize);
|
|
16953
|
-
}
|
|
16954
|
-
};
|
|
16955
|
-
|
|
16956
16917
|
const basicTimeSpinnerProps = buildProps({
|
|
16957
16918
|
role: {
|
|
16958
16919
|
type: String,
|
|
@@ -16975,7 +16936,7 @@
|
|
|
16975
16936
|
});
|
|
16976
16937
|
|
|
16977
16938
|
const _hoisted_1$W = ["onClick"];
|
|
16978
|
-
const _hoisted_2$
|
|
16939
|
+
const _hoisted_2$C = ["onMouseenter"];
|
|
16979
16940
|
const _sfc_main$1T = /* @__PURE__ */ vue.defineComponent({
|
|
16980
16941
|
__name: "basic-time-spinner",
|
|
16981
16942
|
props: basicTimeSpinnerProps,
|
|
@@ -17210,7 +17171,7 @@
|
|
|
17210
17171
|
]),
|
|
17211
17172
|
_: 1
|
|
17212
17173
|
}, 8, ["class"])), [
|
|
17213
|
-
[vue.unref(
|
|
17174
|
+
[vue.unref(RepeatClick), onDecrement]
|
|
17214
17175
|
]),
|
|
17215
17176
|
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
|
|
17216
17177
|
class: vue.normalizeClass(["arrow-down", vue.unref(ns).be("spinner", "arrow")])
|
|
@@ -17220,7 +17181,7 @@
|
|
|
17220
17181
|
]),
|
|
17221
17182
|
_: 1
|
|
17222
17183
|
}, 8, ["class"])), [
|
|
17223
|
-
[vue.unref(
|
|
17184
|
+
[vue.unref(RepeatClick), onIncrement]
|
|
17224
17185
|
]),
|
|
17225
17186
|
vue.createElementVNode("ul", {
|
|
17226
17187
|
class: vue.normalizeClass(vue.unref(ns).be("spinner", "list"))
|
|
@@ -17244,7 +17205,7 @@
|
|
|
17244
17205
|
], 2);
|
|
17245
17206
|
}), 128))
|
|
17246
17207
|
], 2)
|
|
17247
|
-
], 42, _hoisted_2$
|
|
17208
|
+
], 42, _hoisted_2$C);
|
|
17248
17209
|
}), 128)) : vue.createCommentVNode("v-if", true)
|
|
17249
17210
|
], 2);
|
|
17250
17211
|
};
|
|
@@ -17762,12 +17723,12 @@
|
|
|
17762
17723
|
};
|
|
17763
17724
|
|
|
17764
17725
|
const _hoisted_1$U = { key: 0 };
|
|
17765
|
-
const _hoisted_2$
|
|
17766
|
-
const __default__$
|
|
17726
|
+
const _hoisted_2$B = ["onClick"];
|
|
17727
|
+
const __default__$17 = {
|
|
17767
17728
|
name: "DateTable"
|
|
17768
17729
|
};
|
|
17769
17730
|
const _sfc_main$1Q = /* @__PURE__ */ vue.defineComponent({
|
|
17770
|
-
...__default__$
|
|
17731
|
+
...__default__$17,
|
|
17771
17732
|
props: dateTableProps,
|
|
17772
17733
|
emits: dateTableEmits,
|
|
17773
17734
|
setup(__props, { expose, emit }) {
|
|
@@ -17896,7 +17857,7 @@
|
|
|
17896
17857
|
vue.createElementVNode("span", null, vue.toDisplayString(cell.text), 1)
|
|
17897
17858
|
])
|
|
17898
17859
|
], 2)
|
|
17899
|
-
], 10, _hoisted_2$
|
|
17860
|
+
], 10, _hoisted_2$B);
|
|
17900
17861
|
}), 128))
|
|
17901
17862
|
], 2);
|
|
17902
17863
|
}), 128))
|
|
@@ -17922,11 +17883,11 @@
|
|
|
17922
17883
|
[INPUT_EVENT]: (value) => isDate(value)
|
|
17923
17884
|
};
|
|
17924
17885
|
|
|
17925
|
-
const __default__$
|
|
17886
|
+
const __default__$16 = {
|
|
17926
17887
|
name: "ElCalendar"
|
|
17927
17888
|
};
|
|
17928
17889
|
const _sfc_main$1P = /* @__PURE__ */ vue.defineComponent({
|
|
17929
|
-
...__default__$
|
|
17890
|
+
...__default__$16,
|
|
17930
17891
|
props: calendarProps,
|
|
17931
17892
|
emits: calendarEmits,
|
|
17932
17893
|
setup(__props, { expose, emit }) {
|
|
@@ -18157,11 +18118,11 @@
|
|
|
18157
18118
|
}
|
|
18158
18119
|
});
|
|
18159
18120
|
|
|
18160
|
-
const __default__$
|
|
18121
|
+
const __default__$15 = {
|
|
18161
18122
|
name: "ElCard"
|
|
18162
18123
|
};
|
|
18163
18124
|
const _sfc_main$1O = /* @__PURE__ */ vue.defineComponent({
|
|
18164
|
-
...__default__$
|
|
18125
|
+
...__default__$15,
|
|
18165
18126
|
props: cardProps,
|
|
18166
18127
|
setup(__props) {
|
|
18167
18128
|
const ns = useNamespace("card");
|
|
@@ -18251,13 +18212,13 @@
|
|
|
18251
18212
|
};
|
|
18252
18213
|
|
|
18253
18214
|
const _hoisted_1$T = ["onMouseenter", "onMouseleave"];
|
|
18254
|
-
const _hoisted_2$
|
|
18255
|
-
const _hoisted_3$
|
|
18256
|
-
const __default__$
|
|
18215
|
+
const _hoisted_2$A = ["onMouseenter", "onClick"];
|
|
18216
|
+
const _hoisted_3$k = { key: 0 };
|
|
18217
|
+
const __default__$14 = {
|
|
18257
18218
|
name: "ElCarousel"
|
|
18258
18219
|
};
|
|
18259
18220
|
const _sfc_main$1N = /* @__PURE__ */ vue.defineComponent({
|
|
18260
|
-
...__default__$
|
|
18221
|
+
...__default__$14,
|
|
18261
18222
|
props: carouselProps,
|
|
18262
18223
|
emits: carouselEmits,
|
|
18263
18224
|
setup(__props, { expose, emit }) {
|
|
@@ -18547,9 +18508,9 @@
|
|
|
18547
18508
|
vue.createElementVNode("button", {
|
|
18548
18509
|
class: vue.normalizeClass(vue.unref(ns).e("button"))
|
|
18549
18510
|
}, [
|
|
18550
|
-
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
18511
|
+
vue.unref(hasLabel) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$k, vue.toDisplayString(item.props.label), 1)) : vue.createCommentVNode("v-if", true)
|
|
18551
18512
|
], 2)
|
|
18552
|
-
], 42, _hoisted_2$
|
|
18513
|
+
], 42, _hoisted_2$A);
|
|
18553
18514
|
}), 128))
|
|
18554
18515
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
18555
18516
|
], 42, _hoisted_1$T);
|
|
@@ -18566,11 +18527,11 @@
|
|
|
18566
18527
|
}
|
|
18567
18528
|
});
|
|
18568
18529
|
|
|
18569
|
-
const __default__$
|
|
18530
|
+
const __default__$13 = {
|
|
18570
18531
|
name: "ElCarouselItem"
|
|
18571
18532
|
};
|
|
18572
18533
|
const _sfc_main$1M = /* @__PURE__ */ vue.defineComponent({
|
|
18573
|
-
...__default__$
|
|
18534
|
+
...__default__$13,
|
|
18574
18535
|
props: carouselItemProps,
|
|
18575
18536
|
setup(__props) {
|
|
18576
18537
|
const props = __props;
|
|
@@ -18743,6 +18704,10 @@
|
|
|
18743
18704
|
tag: {
|
|
18744
18705
|
type: String,
|
|
18745
18706
|
default: "div"
|
|
18707
|
+
},
|
|
18708
|
+
validateEvent: {
|
|
18709
|
+
type: Boolean,
|
|
18710
|
+
default: true
|
|
18746
18711
|
}
|
|
18747
18712
|
};
|
|
18748
18713
|
const checkboxProps = {
|
|
@@ -18778,7 +18743,11 @@
|
|
|
18778
18743
|
},
|
|
18779
18744
|
border: Boolean,
|
|
18780
18745
|
size: useSizeProp,
|
|
18781
|
-
tabindex: [String, Number]
|
|
18746
|
+
tabindex: [String, Number],
|
|
18747
|
+
validateEvent: {
|
|
18748
|
+
type: Boolean,
|
|
18749
|
+
default: true
|
|
18750
|
+
}
|
|
18782
18751
|
};
|
|
18783
18752
|
const useCheckboxGroup = () => {
|
|
18784
18753
|
const elForm = vue.inject(formContextKey, {});
|
|
@@ -18902,7 +18871,7 @@
|
|
|
18902
18871
|
isDisabled,
|
|
18903
18872
|
isLabeledByFormItem
|
|
18904
18873
|
}) => {
|
|
18905
|
-
const { elFormItem } = useCheckboxGroup();
|
|
18874
|
+
const { elFormItem, checkboxGroup } = useCheckboxGroup();
|
|
18906
18875
|
const { emit } = vue.getCurrentInstance();
|
|
18907
18876
|
function getLabeledValue(value) {
|
|
18908
18877
|
var _a, _b;
|
|
@@ -18926,9 +18895,15 @@
|
|
|
18926
18895
|
emitChangeEvent(model.value, e);
|
|
18927
18896
|
}
|
|
18928
18897
|
}
|
|
18898
|
+
const validateEvent = vue.computed(() => {
|
|
18899
|
+
var _a;
|
|
18900
|
+
return ((_a = checkboxGroup.validateEvent) == null ? void 0 : _a.value) || props.validateEvent;
|
|
18901
|
+
});
|
|
18929
18902
|
vue.watch(() => props.modelValue, () => {
|
|
18930
18903
|
var _a;
|
|
18931
|
-
|
|
18904
|
+
if (validateEvent.value) {
|
|
18905
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
18906
|
+
}
|
|
18932
18907
|
});
|
|
18933
18908
|
return {
|
|
18934
18909
|
handleChange,
|
|
@@ -18980,13 +18955,13 @@
|
|
|
18980
18955
|
};
|
|
18981
18956
|
|
|
18982
18957
|
const _hoisted_1$S = ["tabindex", "role", "aria-checked"];
|
|
18983
|
-
const _hoisted_2$
|
|
18984
|
-
const _hoisted_3$
|
|
18985
|
-
const __default__$
|
|
18958
|
+
const _hoisted_2$z = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
18959
|
+
const _hoisted_3$j = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
18960
|
+
const __default__$12 = {
|
|
18986
18961
|
name: "ElCheckbox"
|
|
18987
18962
|
};
|
|
18988
18963
|
const _sfc_main$1L = /* @__PURE__ */ vue.defineComponent({
|
|
18989
|
-
...__default__$
|
|
18964
|
+
...__default__$12,
|
|
18990
18965
|
props: checkboxProps,
|
|
18991
18966
|
emits: checkboxEmits,
|
|
18992
18967
|
setup(__props) {
|
|
@@ -19045,7 +19020,7 @@
|
|
|
19045
19020
|
onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
19046
19021
|
onFocus: _cache[2] || (_cache[2] = ($event) => focus.value = true),
|
|
19047
19022
|
onBlur: _cache[3] || (_cache[3] = ($event) => focus.value = false)
|
|
19048
|
-
}, null, 42, _hoisted_2$
|
|
19023
|
+
}, null, 42, _hoisted_2$z)), [
|
|
19049
19024
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
19050
19025
|
]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
19051
19026
|
key: 1,
|
|
@@ -19061,7 +19036,7 @@
|
|
|
19061
19036
|
onChange: _cache[5] || (_cache[5] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
19062
19037
|
onFocus: _cache[6] || (_cache[6] = ($event) => focus.value = true),
|
|
19063
19038
|
onBlur: _cache[7] || (_cache[7] = ($event) => focus.value = false)
|
|
19064
|
-
}, null, 42, _hoisted_3$
|
|
19039
|
+
}, null, 42, _hoisted_3$j)), [
|
|
19065
19040
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
19066
19041
|
]),
|
|
19067
19042
|
vue.createElementVNode("span", {
|
|
@@ -19086,12 +19061,12 @@
|
|
|
19086
19061
|
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["__file", "checkbox.vue"]]);
|
|
19087
19062
|
|
|
19088
19063
|
const _hoisted_1$R = ["name", "tabindex", "disabled", "true-value", "false-value"];
|
|
19089
|
-
const _hoisted_2$
|
|
19090
|
-
const __default__
|
|
19064
|
+
const _hoisted_2$y = ["name", "tabindex", "disabled", "value"];
|
|
19065
|
+
const __default__$11 = {
|
|
19091
19066
|
name: "ElCheckboxButton"
|
|
19092
19067
|
};
|
|
19093
19068
|
const _sfc_main$1K = /* @__PURE__ */ vue.defineComponent({
|
|
19094
|
-
...__default__
|
|
19069
|
+
...__default__$11,
|
|
19095
19070
|
props: checkboxProps,
|
|
19096
19071
|
emits: checkboxEmits,
|
|
19097
19072
|
setup(__props) {
|
|
@@ -19147,7 +19122,7 @@
|
|
|
19147
19122
|
onChange: _cache[5] || (_cache[5] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
|
|
19148
19123
|
onFocus: _cache[6] || (_cache[6] = ($event) => focus.value = true),
|
|
19149
19124
|
onBlur: _cache[7] || (_cache[7] = ($event) => focus.value = false)
|
|
19150
|
-
}, null, 42, _hoisted_2$
|
|
19125
|
+
}, null, 42, _hoisted_2$y)), [
|
|
19151
19126
|
[vue.vModelCheckbox, vue.unref(model)]
|
|
19152
19127
|
]),
|
|
19153
19128
|
_ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -19165,11 +19140,11 @@
|
|
|
19165
19140
|
});
|
|
19166
19141
|
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["__file", "checkbox-button.vue"]]);
|
|
19167
19142
|
|
|
19168
|
-
const __default__$
|
|
19143
|
+
const __default__$10 = {
|
|
19169
19144
|
name: "ElCheckboxGroup"
|
|
19170
19145
|
};
|
|
19171
19146
|
const _sfc_main$1J = /* @__PURE__ */ vue.defineComponent({
|
|
19172
|
-
...__default__$
|
|
19147
|
+
...__default__$10,
|
|
19173
19148
|
props: useCheckboxGroupProps,
|
|
19174
19149
|
emits: checkboxGroupEmits,
|
|
19175
19150
|
setup(__props, { emit }) {
|
|
@@ -19203,7 +19178,9 @@
|
|
|
19203
19178
|
});
|
|
19204
19179
|
vue.watch(() => props.modelValue, () => {
|
|
19205
19180
|
var _a;
|
|
19206
|
-
|
|
19181
|
+
if (props.validateEvent) {
|
|
19182
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
19183
|
+
}
|
|
19207
19184
|
});
|
|
19208
19185
|
return (_ctx, _cache) => {
|
|
19209
19186
|
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
@@ -19291,24 +19268,15 @@
|
|
|
19291
19268
|
};
|
|
19292
19269
|
|
|
19293
19270
|
const _hoisted_1$Q = ["value", "name", "disabled"];
|
|
19294
|
-
const __default__
|
|
19295
|
-
name: "ElRadio"
|
|
19296
|
-
inheritAttrs: false
|
|
19271
|
+
const __default__$$ = {
|
|
19272
|
+
name: "ElRadio"
|
|
19297
19273
|
};
|
|
19298
19274
|
const _sfc_main$1I = /* @__PURE__ */ vue.defineComponent({
|
|
19299
|
-
...__default__
|
|
19275
|
+
...__default__$$,
|
|
19300
19276
|
props: radioProps,
|
|
19301
19277
|
emits: radioEmits,
|
|
19302
19278
|
setup(__props, { emit }) {
|
|
19303
19279
|
const props = __props;
|
|
19304
|
-
const rawAttrs = vue.useAttrs();
|
|
19305
|
-
const containerStyle = vue.computed(() => rawAttrs.style);
|
|
19306
|
-
const inputAttrs = useAttrs({ excludeListeners: true });
|
|
19307
|
-
const labelListieners = useAttrs({
|
|
19308
|
-
excludeKeys: vue.computed(() => {
|
|
19309
|
-
return Object.keys(inputAttrs.value);
|
|
19310
|
-
})
|
|
19311
|
-
});
|
|
19312
19280
|
const ns = useNamespace("radio");
|
|
19313
19281
|
const { radioRef, radioGroup, focus, size, disabled, modelValue } = useRadio(props, emit);
|
|
19314
19282
|
function handleChange() {
|
|
@@ -19316,18 +19284,16 @@
|
|
|
19316
19284
|
}
|
|
19317
19285
|
return (_ctx, _cache) => {
|
|
19318
19286
|
var _a;
|
|
19319
|
-
return vue.openBlock(), vue.createElementBlock("label",
|
|
19320
|
-
class: [
|
|
19287
|
+
return vue.openBlock(), vue.createElementBlock("label", {
|
|
19288
|
+
class: vue.normalizeClass([
|
|
19321
19289
|
vue.unref(ns).b(),
|
|
19322
19290
|
vue.unref(ns).is("disabled", vue.unref(disabled)),
|
|
19323
19291
|
vue.unref(ns).is("focus", vue.unref(focus)),
|
|
19324
19292
|
vue.unref(ns).is("bordered", _ctx.border),
|
|
19325
19293
|
vue.unref(ns).is("checked", vue.unref(modelValue) === _ctx.label),
|
|
19326
|
-
vue.unref(ns).m(vue.unref(size))
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
style: vue.unref(containerStyle)
|
|
19330
|
-
}, vue.unref(labelListieners)), [
|
|
19294
|
+
vue.unref(ns).m(vue.unref(size))
|
|
19295
|
+
])
|
|
19296
|
+
}, [
|
|
19331
19297
|
vue.createElementVNode("span", {
|
|
19332
19298
|
class: vue.normalizeClass([
|
|
19333
19299
|
vue.unref(ns).e("input"),
|
|
@@ -19335,20 +19301,19 @@
|
|
|
19335
19301
|
vue.unref(ns).is("checked", vue.unref(modelValue) === _ctx.label)
|
|
19336
19302
|
])
|
|
19337
19303
|
}, [
|
|
19338
|
-
vue.withDirectives(vue.createElementVNode("input",
|
|
19304
|
+
vue.withDirectives(vue.createElementVNode("input", {
|
|
19339
19305
|
ref_key: "radioRef",
|
|
19340
19306
|
ref: radioRef,
|
|
19341
19307
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
|
|
19342
|
-
class: vue.unref(ns).e("original"),
|
|
19308
|
+
class: vue.normalizeClass(vue.unref(ns).e("original")),
|
|
19343
19309
|
value: _ctx.label,
|
|
19344
19310
|
name: _ctx.name || ((_a = vue.unref(radioGroup)) == null ? void 0 : _a.name),
|
|
19345
19311
|
disabled: vue.unref(disabled),
|
|
19346
|
-
type: "radio"
|
|
19347
|
-
}, vue.unref(inputAttrs), {
|
|
19312
|
+
type: "radio",
|
|
19348
19313
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
19349
19314
|
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
19350
19315
|
onChange: handleChange
|
|
19351
|
-
}
|
|
19316
|
+
}, null, 42, _hoisted_1$Q), [
|
|
19352
19317
|
[vue.vModelRadio, vue.unref(modelValue)]
|
|
19353
19318
|
]),
|
|
19354
19319
|
vue.createElementVNode("span", {
|
|
@@ -19364,7 +19329,7 @@
|
|
|
19364
19329
|
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
19365
19330
|
])
|
|
19366
19331
|
], 34)
|
|
19367
|
-
],
|
|
19332
|
+
], 2);
|
|
19368
19333
|
};
|
|
19369
19334
|
}
|
|
19370
19335
|
});
|
|
@@ -19379,11 +19344,11 @@
|
|
|
19379
19344
|
});
|
|
19380
19345
|
|
|
19381
19346
|
const _hoisted_1$P = ["value", "name", "disabled"];
|
|
19382
|
-
const __default__$
|
|
19347
|
+
const __default__$_ = {
|
|
19383
19348
|
name: "ElRadioButton"
|
|
19384
19349
|
};
|
|
19385
19350
|
const _sfc_main$1H = /* @__PURE__ */ vue.defineComponent({
|
|
19386
|
-
...__default__$
|
|
19351
|
+
...__default__$_,
|
|
19387
19352
|
props: radioButtonProps,
|
|
19388
19353
|
setup(__props) {
|
|
19389
19354
|
const props = __props;
|
|
@@ -19464,16 +19429,20 @@
|
|
|
19464
19429
|
name: {
|
|
19465
19430
|
type: String,
|
|
19466
19431
|
default: void 0
|
|
19432
|
+
},
|
|
19433
|
+
validateEvent: {
|
|
19434
|
+
type: Boolean,
|
|
19435
|
+
default: true
|
|
19467
19436
|
}
|
|
19468
19437
|
});
|
|
19469
19438
|
const radioGroupEmits = radioEmits;
|
|
19470
19439
|
|
|
19471
19440
|
const _hoisted_1$O = ["id", "aria-label", "aria-labelledby"];
|
|
19472
|
-
const __default__$
|
|
19441
|
+
const __default__$Z = {
|
|
19473
19442
|
name: "ElRadioGroup"
|
|
19474
19443
|
};
|
|
19475
19444
|
const _sfc_main$1G = /* @__PURE__ */ vue.defineComponent({
|
|
19476
|
-
...__default__$
|
|
19445
|
+
...__default__$Z,
|
|
19477
19446
|
props: radioGroupProps,
|
|
19478
19447
|
emits: radioGroupEmits,
|
|
19479
19448
|
setup(__props, { emit }) {
|
|
@@ -19504,7 +19473,11 @@
|
|
|
19504
19473
|
changeEvent,
|
|
19505
19474
|
name
|
|
19506
19475
|
}));
|
|
19507
|
-
vue.watch(() => props.modelValue, () =>
|
|
19476
|
+
vue.watch(() => props.modelValue, () => {
|
|
19477
|
+
if (props.validateEvent) {
|
|
19478
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
19479
|
+
}
|
|
19480
|
+
});
|
|
19508
19481
|
return (_ctx, _cache) => {
|
|
19509
19482
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19510
19483
|
id: vue.unref(groupId),
|
|
@@ -19669,8 +19642,8 @@
|
|
|
19669
19642
|
}
|
|
19670
19643
|
});
|
|
19671
19644
|
const _hoisted_1$N = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
|
|
19672
|
-
const _hoisted_2$
|
|
19673
|
-
function _sfc_render$
|
|
19645
|
+
const _hoisted_2$x = /* @__PURE__ */ vue.createElementVNode("span", null, null, -1);
|
|
19646
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19674
19647
|
const _component_el_checkbox = vue.resolveComponent("el-checkbox");
|
|
19675
19648
|
const _component_el_radio = vue.resolveComponent("el-radio");
|
|
19676
19649
|
const _component_check = vue.resolveComponent("check");
|
|
@@ -19717,7 +19690,7 @@
|
|
|
19717
19690
|
}, {
|
|
19718
19691
|
default: vue.withCtx(() => [
|
|
19719
19692
|
vue.createCommentVNode("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "),
|
|
19720
|
-
_hoisted_2$
|
|
19693
|
+
_hoisted_2$x
|
|
19721
19694
|
]),
|
|
19722
19695
|
_: 1
|
|
19723
19696
|
}, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : _ctx.isLeaf && _ctx.node.checked ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
@@ -19753,7 +19726,7 @@
|
|
|
19753
19726
|
], 64)) : vue.createCommentVNode("v-if", true)
|
|
19754
19727
|
], 42, _hoisted_1$N);
|
|
19755
19728
|
}
|
|
19756
|
-
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$
|
|
19729
|
+
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$B], ["__file", "node.vue"]]);
|
|
19757
19730
|
|
|
19758
19731
|
const _sfc_main$1E = vue.defineComponent({
|
|
19759
19732
|
name: "ElCascaderMenu",
|
|
@@ -19833,7 +19806,7 @@
|
|
|
19833
19806
|
};
|
|
19834
19807
|
}
|
|
19835
19808
|
});
|
|
19836
|
-
function _sfc_render$
|
|
19809
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19837
19810
|
const _component_el_cascader_node = vue.resolveComponent("el-cascader-node");
|
|
19838
19811
|
const _component_loading = vue.resolveComponent("loading");
|
|
19839
19812
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
@@ -19886,7 +19859,7 @@
|
|
|
19886
19859
|
_: 1
|
|
19887
19860
|
}, 8, ["class", "wrap-class", "view-class", "onMousemove", "onMouseleave"]);
|
|
19888
19861
|
}
|
|
19889
|
-
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$
|
|
19862
|
+
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$A], ["__file", "menu.vue"]]);
|
|
19890
19863
|
|
|
19891
19864
|
var ExpandTrigger = /* @__PURE__ */ ((ExpandTrigger2) => {
|
|
19892
19865
|
ExpandTrigger2["CLICK"] = "click";
|
|
@@ -20361,7 +20334,7 @@
|
|
|
20361
20334
|
};
|
|
20362
20335
|
}
|
|
20363
20336
|
});
|
|
20364
|
-
function _sfc_render$
|
|
20337
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20365
20338
|
const _component_el_cascader_menu = vue.resolveComponent("el-cascader-menu");
|
|
20366
20339
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20367
20340
|
class: vue.normalizeClass([_ctx.ns.b("panel"), _ctx.ns.is("bordered", _ctx.border)]),
|
|
@@ -20378,7 +20351,7 @@
|
|
|
20378
20351
|
}), 128))
|
|
20379
20352
|
], 34);
|
|
20380
20353
|
}
|
|
20381
|
-
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$
|
|
20354
|
+
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$z], ["__file", "index.vue"]]);
|
|
20382
20355
|
|
|
20383
20356
|
CascaderPanel.install = (app) => {
|
|
20384
20357
|
app.component(CascaderPanel.name, CascaderPanel);
|
|
@@ -20416,11 +20389,11 @@
|
|
|
20416
20389
|
click: (evt) => evt instanceof MouseEvent
|
|
20417
20390
|
};
|
|
20418
20391
|
|
|
20419
|
-
const __default__$
|
|
20392
|
+
const __default__$Y = {
|
|
20420
20393
|
name: "ElTag"
|
|
20421
20394
|
};
|
|
20422
20395
|
const _sfc_main$1C = /* @__PURE__ */ vue.defineComponent({
|
|
20423
|
-
...__default__$
|
|
20396
|
+
...__default__$Y,
|
|
20424
20397
|
props: tagProps,
|
|
20425
20398
|
emits: tagEmits,
|
|
20426
20399
|
setup(__props, { emit }) {
|
|
@@ -20585,7 +20558,11 @@
|
|
|
20585
20558
|
default: ""
|
|
20586
20559
|
},
|
|
20587
20560
|
teleported: useTooltipContentProps.teleported,
|
|
20588
|
-
tagType: { ...tagProps.type, default: "info" }
|
|
20561
|
+
tagType: { ...tagProps.type, default: "info" },
|
|
20562
|
+
validateEvent: {
|
|
20563
|
+
type: Boolean,
|
|
20564
|
+
default: true
|
|
20565
|
+
}
|
|
20589
20566
|
},
|
|
20590
20567
|
emits: [
|
|
20591
20568
|
UPDATE_MODEL_EVENT,
|
|
@@ -20647,7 +20624,9 @@
|
|
|
20647
20624
|
var _a;
|
|
20648
20625
|
emit(UPDATE_MODEL_EVENT, val);
|
|
20649
20626
|
emit(CHANGE_EVENT, val);
|
|
20650
|
-
|
|
20627
|
+
if (props.validateEvent) {
|
|
20628
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
20629
|
+
}
|
|
20651
20630
|
}
|
|
20652
20631
|
});
|
|
20653
20632
|
const popperPaneRef = vue.computed(() => {
|
|
@@ -20942,10 +20921,9 @@
|
|
|
20942
20921
|
}
|
|
20943
20922
|
});
|
|
20944
20923
|
const _hoisted_1$M = { key: 0 };
|
|
20945
|
-
const _hoisted_2$
|
|
20946
|
-
const _hoisted_3$
|
|
20947
|
-
|
|
20948
|
-
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20924
|
+
const _hoisted_2$w = ["placeholder"];
|
|
20925
|
+
const _hoisted_3$i = ["onClick"];
|
|
20926
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20949
20927
|
const _component_circle_close = vue.resolveComponent("circle-close");
|
|
20950
20928
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
20951
20929
|
const _component_arrow_down = vue.resolveComponent("arrow-down");
|
|
@@ -21066,11 +21044,13 @@
|
|
|
21066
21044
|
vue.createElementVNode("span", null, vue.toDisplayString(tag.text), 1)
|
|
21067
21045
|
]),
|
|
21068
21046
|
content: vue.withCtx(() => [
|
|
21069
|
-
vue.createElementVNode("div",
|
|
21047
|
+
vue.createElementVNode("div", {
|
|
21048
|
+
class: vue.normalizeClass(_ctx.nsCascader.e("collapse-tags"))
|
|
21049
|
+
}, [
|
|
21070
21050
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.allPresentTags, (tag2, idx) => {
|
|
21071
21051
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21072
21052
|
key: idx,
|
|
21073
|
-
class: "
|
|
21053
|
+
class: vue.normalizeClass(_ctx.nsCascader.e("collapse-tag"))
|
|
21074
21054
|
}, [
|
|
21075
21055
|
(vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
21076
21056
|
key: tag2.key,
|
|
@@ -21087,9 +21067,9 @@
|
|
|
21087
21067
|
]),
|
|
21088
21068
|
_: 2
|
|
21089
21069
|
}, 1032, ["type", "size", "hit", "closable", "onClose"]))
|
|
21090
|
-
]);
|
|
21070
|
+
], 2);
|
|
21091
21071
|
}), 128))
|
|
21092
|
-
])
|
|
21072
|
+
], 2)
|
|
21093
21073
|
]),
|
|
21094
21074
|
_: 2
|
|
21095
21075
|
}, 1032, ["disabled"]))
|
|
@@ -21109,7 +21089,7 @@
|
|
|
21109
21089
|
onCompositionstart: _cache[8] || (_cache[8] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
21110
21090
|
onCompositionupdate: _cache[9] || (_cache[9] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
21111
21091
|
onCompositionend: _cache[10] || (_cache[10] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args))
|
|
21112
|
-
}, null, 42,
|
|
21092
|
+
}, null, 42, _hoisted_2$w)), [
|
|
21113
21093
|
[vue.vModelText, _ctx.searchInputValue]
|
|
21114
21094
|
]) : vue.createCommentVNode("v-if", true)
|
|
21115
21095
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
@@ -21157,7 +21137,7 @@
|
|
|
21157
21137
|
]),
|
|
21158
21138
|
_: 1
|
|
21159
21139
|
})) : vue.createCommentVNode("v-if", true)
|
|
21160
|
-
], 10,
|
|
21140
|
+
], 10, _hoisted_3$i);
|
|
21161
21141
|
}), 128)) : vue.renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
21162
21142
|
vue.createElementVNode("li", {
|
|
21163
21143
|
class: vue.normalizeClass(_ctx.nsCascader.e("empty-text"))
|
|
@@ -21172,7 +21152,7 @@
|
|
|
21172
21152
|
_: 3
|
|
21173
21153
|
}, 8, ["visible", "teleported", "popper-class", "popper-options", "transition", "onHide"]);
|
|
21174
21154
|
}
|
|
21175
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$
|
|
21155
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$y], ["__file", "index.vue"]]);
|
|
21176
21156
|
|
|
21177
21157
|
Cascader.install = (app) => {
|
|
21178
21158
|
app.component(Cascader.name, Cascader);
|
|
@@ -21191,11 +21171,11 @@
|
|
|
21191
21171
|
[CHANGE_EVENT]: (value) => isBoolean(value)
|
|
21192
21172
|
};
|
|
21193
21173
|
|
|
21194
|
-
const __default__$
|
|
21174
|
+
const __default__$X = {
|
|
21195
21175
|
name: "ElCheckTag"
|
|
21196
21176
|
};
|
|
21197
21177
|
const _sfc_main$1A = /* @__PURE__ */ vue.defineComponent({
|
|
21198
|
-
...__default__$
|
|
21178
|
+
...__default__$X,
|
|
21199
21179
|
props: checkTagProps,
|
|
21200
21180
|
emits: checkTagEmits,
|
|
21201
21181
|
setup(__props, { emit }) {
|
|
@@ -21263,11 +21243,11 @@
|
|
|
21263
21243
|
}
|
|
21264
21244
|
});
|
|
21265
21245
|
|
|
21266
|
-
const __default__$
|
|
21246
|
+
const __default__$W = {
|
|
21267
21247
|
name: "ElCol"
|
|
21268
21248
|
};
|
|
21269
21249
|
const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
|
|
21270
|
-
...__default__$
|
|
21250
|
+
...__default__$W,
|
|
21271
21251
|
props: colProps,
|
|
21272
21252
|
setup(__props) {
|
|
21273
21253
|
const props = __props;
|
|
@@ -21337,11 +21317,11 @@
|
|
|
21337
21317
|
[CHANGE_EVENT]: emitChangeFn
|
|
21338
21318
|
};
|
|
21339
21319
|
|
|
21340
|
-
const __default__$
|
|
21320
|
+
const __default__$V = {
|
|
21341
21321
|
name: "ElCollapse"
|
|
21342
21322
|
};
|
|
21343
21323
|
const _sfc_main$1y = /* @__PURE__ */ vue.defineComponent({
|
|
21344
|
-
...__default__$
|
|
21324
|
+
...__default__$V,
|
|
21345
21325
|
props: collapseProps,
|
|
21346
21326
|
emits: collapseEmits,
|
|
21347
21327
|
setup(__props, { expose, emit }) {
|
|
@@ -21392,11 +21372,11 @@
|
|
|
21392
21372
|
});
|
|
21393
21373
|
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["__file", "collapse.vue"]]);
|
|
21394
21374
|
|
|
21395
|
-
const __default__$
|
|
21375
|
+
const __default__$U = {
|
|
21396
21376
|
name: "ElCollapseTransition"
|
|
21397
21377
|
};
|
|
21398
21378
|
const _sfc_main$1x = /* @__PURE__ */ vue.defineComponent({
|
|
21399
|
-
...__default__$
|
|
21379
|
+
...__default__$U,
|
|
21400
21380
|
setup(__props) {
|
|
21401
21381
|
const ns = useNamespace("collapse-transition");
|
|
21402
21382
|
const on = {
|
|
@@ -21482,13 +21462,13 @@
|
|
|
21482
21462
|
});
|
|
21483
21463
|
|
|
21484
21464
|
const _hoisted_1$L = ["aria-expanded", "aria-controls", "aria-describedby"];
|
|
21485
|
-
const _hoisted_2$
|
|
21486
|
-
const _hoisted_3$
|
|
21487
|
-
const __default__$
|
|
21465
|
+
const _hoisted_2$v = ["id", "tabindex", "onKeypress"];
|
|
21466
|
+
const _hoisted_3$h = ["id", "aria-hidden", "aria-labelledby"];
|
|
21467
|
+
const __default__$T = {
|
|
21488
21468
|
name: "ElCollapseItem"
|
|
21489
21469
|
};
|
|
21490
21470
|
const _sfc_main$1w = /* @__PURE__ */ vue.defineComponent({
|
|
21491
|
-
...__default__$
|
|
21471
|
+
...__default__$T,
|
|
21492
21472
|
props: collapseItemProps,
|
|
21493
21473
|
setup(__props, { expose }) {
|
|
21494
21474
|
const props = __props;
|
|
@@ -21559,7 +21539,7 @@
|
|
|
21559
21539
|
]),
|
|
21560
21540
|
_: 1
|
|
21561
21541
|
}, 8, ["class"])
|
|
21562
|
-
], 42, _hoisted_2$
|
|
21542
|
+
], 42, _hoisted_2$v)
|
|
21563
21543
|
], 8, _hoisted_1$L),
|
|
21564
21544
|
vue.createVNode(vue.unref(_CollapseTransition), null, {
|
|
21565
21545
|
default: vue.withCtx(() => [
|
|
@@ -21575,7 +21555,7 @@
|
|
|
21575
21555
|
}, [
|
|
21576
21556
|
vue.renderSlot(_ctx.$slots, "default")
|
|
21577
21557
|
], 2)
|
|
21578
|
-
], 10, _hoisted_3$
|
|
21558
|
+
], 10, _hoisted_3$h), [
|
|
21579
21559
|
[vue.vShow, vue.unref(isActive)]
|
|
21580
21560
|
])
|
|
21581
21561
|
]),
|
|
@@ -21642,6 +21622,7 @@
|
|
|
21642
21622
|
}
|
|
21643
21623
|
},
|
|
21644
21624
|
setup(props) {
|
|
21625
|
+
const ns = useNamespace("color-alpha-slider");
|
|
21645
21626
|
const instance = vue.getCurrentInstance();
|
|
21646
21627
|
const thumb = vue.shallowRef(null);
|
|
21647
21628
|
const bar = vue.shallowRef(null);
|
|
@@ -21726,33 +21707,34 @@
|
|
|
21726
21707
|
thumbTop,
|
|
21727
21708
|
background,
|
|
21728
21709
|
handleClick,
|
|
21729
|
-
update
|
|
21710
|
+
update,
|
|
21711
|
+
ns
|
|
21730
21712
|
};
|
|
21731
21713
|
}
|
|
21732
21714
|
});
|
|
21733
|
-
function _sfc_render$
|
|
21715
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21734
21716
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21735
|
-
class: vue.normalizeClass([
|
|
21717
|
+
class: vue.normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
|
|
21736
21718
|
}, [
|
|
21737
21719
|
vue.createElementVNode("div", {
|
|
21738
21720
|
ref: "bar",
|
|
21739
|
-
class: "
|
|
21721
|
+
class: vue.normalizeClass(_ctx.ns.e("bar")),
|
|
21740
21722
|
style: vue.normalizeStyle({
|
|
21741
21723
|
background: _ctx.background
|
|
21742
21724
|
}),
|
|
21743
21725
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
21744
|
-
}, null,
|
|
21726
|
+
}, null, 6),
|
|
21745
21727
|
vue.createElementVNode("div", {
|
|
21746
21728
|
ref: "thumb",
|
|
21747
|
-
class: "
|
|
21729
|
+
class: vue.normalizeClass(_ctx.ns.e("thumb")),
|
|
21748
21730
|
style: vue.normalizeStyle({
|
|
21749
21731
|
left: _ctx.thumbLeft + "px",
|
|
21750
21732
|
top: _ctx.thumbTop + "px"
|
|
21751
21733
|
})
|
|
21752
|
-
}, null,
|
|
21734
|
+
}, null, 6)
|
|
21753
21735
|
], 2);
|
|
21754
21736
|
}
|
|
21755
|
-
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$
|
|
21737
|
+
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$x], ["__file", "alpha-slider.vue"]]);
|
|
21756
21738
|
|
|
21757
21739
|
const _sfc_main$1u = vue.defineComponent({
|
|
21758
21740
|
name: "ElColorHueSlider",
|
|
@@ -21764,6 +21746,7 @@
|
|
|
21764
21746
|
vertical: Boolean
|
|
21765
21747
|
},
|
|
21766
21748
|
setup(props) {
|
|
21749
|
+
const ns = useNamespace("color-hue-slider");
|
|
21767
21750
|
const instance = vue.getCurrentInstance();
|
|
21768
21751
|
const thumb = vue.ref(null);
|
|
21769
21752
|
const bar = vue.ref(null);
|
|
@@ -21841,30 +21824,31 @@
|
|
|
21841
21824
|
thumbTop,
|
|
21842
21825
|
hueValue,
|
|
21843
21826
|
handleClick,
|
|
21844
|
-
update
|
|
21827
|
+
update,
|
|
21828
|
+
ns
|
|
21845
21829
|
};
|
|
21846
21830
|
}
|
|
21847
21831
|
});
|
|
21848
|
-
function _sfc_render$
|
|
21832
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21849
21833
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
21850
|
-
class: vue.normalizeClass([
|
|
21834
|
+
class: vue.normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
|
|
21851
21835
|
}, [
|
|
21852
21836
|
vue.createElementVNode("div", {
|
|
21853
21837
|
ref: "bar",
|
|
21854
|
-
class: "
|
|
21838
|
+
class: vue.normalizeClass(_ctx.ns.e("bar")),
|
|
21855
21839
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
21856
|
-
}, null,
|
|
21840
|
+
}, null, 2),
|
|
21857
21841
|
vue.createElementVNode("div", {
|
|
21858
21842
|
ref: "thumb",
|
|
21859
|
-
class: "
|
|
21843
|
+
class: vue.normalizeClass(_ctx.ns.e("thumb")),
|
|
21860
21844
|
style: vue.normalizeStyle({
|
|
21861
21845
|
left: _ctx.thumbLeft + "px",
|
|
21862
21846
|
top: _ctx.thumbTop + "px"
|
|
21863
21847
|
})
|
|
21864
|
-
}, null,
|
|
21848
|
+
}, null, 6)
|
|
21865
21849
|
], 2);
|
|
21866
21850
|
}
|
|
21867
|
-
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$
|
|
21851
|
+
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$w], ["__file", "hue-slider.vue"]]);
|
|
21868
21852
|
|
|
21869
21853
|
const OPTIONS_KEY = Symbol();
|
|
21870
21854
|
const useOptions = () => {
|
|
@@ -22151,6 +22135,7 @@
|
|
|
22151
22135
|
}
|
|
22152
22136
|
},
|
|
22153
22137
|
setup(props) {
|
|
22138
|
+
const ns = useNamespace("color-predefine");
|
|
22154
22139
|
const { currentColor } = useOptions();
|
|
22155
22140
|
const rgbaColors = vue.ref(parseColors(props.colors, props.color));
|
|
22156
22141
|
vue.watch(() => currentColor.value, (val) => {
|
|
@@ -22178,31 +22163,38 @@
|
|
|
22178
22163
|
}
|
|
22179
22164
|
return {
|
|
22180
22165
|
rgbaColors,
|
|
22181
|
-
handleSelect
|
|
22166
|
+
handleSelect,
|
|
22167
|
+
ns
|
|
22182
22168
|
};
|
|
22183
22169
|
}
|
|
22184
22170
|
});
|
|
22185
|
-
const _hoisted_1$K =
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
|
|
22190
|
-
vue.createElementVNode("div",
|
|
22171
|
+
const _hoisted_1$K = ["onClick"];
|
|
22172
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22173
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22174
|
+
class: vue.normalizeClass(_ctx.ns.b())
|
|
22175
|
+
}, [
|
|
22176
|
+
vue.createElementVNode("div", {
|
|
22177
|
+
class: vue.normalizeClass(_ctx.ns.e("colors"))
|
|
22178
|
+
}, [
|
|
22191
22179
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.rgbaColors, (item, index) => {
|
|
22192
22180
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22193
22181
|
key: _ctx.colors[index],
|
|
22194
|
-
class: vue.normalizeClass([
|
|
22182
|
+
class: vue.normalizeClass([
|
|
22183
|
+
_ctx.ns.e("color-selector"),
|
|
22184
|
+
_ctx.ns.is("alpha", item._alpha < 100),
|
|
22185
|
+
{ selected: item.selected }
|
|
22186
|
+
]),
|
|
22195
22187
|
onClick: ($event) => _ctx.handleSelect(index)
|
|
22196
22188
|
}, [
|
|
22197
22189
|
vue.createElementVNode("div", {
|
|
22198
22190
|
style: vue.normalizeStyle({ backgroundColor: item.value })
|
|
22199
22191
|
}, null, 4)
|
|
22200
|
-
], 10,
|
|
22192
|
+
], 10, _hoisted_1$K);
|
|
22201
22193
|
}), 128))
|
|
22202
|
-
])
|
|
22203
|
-
]);
|
|
22194
|
+
], 2)
|
|
22195
|
+
], 2);
|
|
22204
22196
|
}
|
|
22205
|
-
var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$
|
|
22197
|
+
var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$v], ["__file", "predefine.vue"]]);
|
|
22206
22198
|
|
|
22207
22199
|
const _sfc_main$1s = vue.defineComponent({
|
|
22208
22200
|
name: "ElSlPanel",
|
|
@@ -22213,6 +22205,7 @@
|
|
|
22213
22205
|
}
|
|
22214
22206
|
},
|
|
22215
22207
|
setup(props) {
|
|
22208
|
+
const ns = useNamespace("color-svpanel");
|
|
22216
22209
|
const instance = vue.getCurrentInstance();
|
|
22217
22210
|
const cursorTop = vue.ref(0);
|
|
22218
22211
|
const cursorLeft = vue.ref(0);
|
|
@@ -22268,35 +22261,38 @@
|
|
|
22268
22261
|
background,
|
|
22269
22262
|
colorValue,
|
|
22270
22263
|
handleDrag,
|
|
22271
|
-
update
|
|
22264
|
+
update,
|
|
22265
|
+
ns
|
|
22272
22266
|
};
|
|
22273
22267
|
}
|
|
22274
22268
|
});
|
|
22275
|
-
const _hoisted_1$J = /* @__PURE__ */ vue.createElementVNode("div",
|
|
22276
|
-
const _hoisted_2$u =
|
|
22277
|
-
|
|
22278
|
-
const _hoisted_4$c = [
|
|
22279
|
-
_hoisted_3$h
|
|
22269
|
+
const _hoisted_1$J = /* @__PURE__ */ vue.createElementVNode("div", null, null, -1);
|
|
22270
|
+
const _hoisted_2$u = [
|
|
22271
|
+
_hoisted_1$J
|
|
22280
22272
|
];
|
|
22281
|
-
function _sfc_render$
|
|
22273
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22282
22274
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
22283
|
-
class:
|
|
22275
|
+
class: vue.normalizeClass(_ctx.ns.b()),
|
|
22284
22276
|
style: vue.normalizeStyle({
|
|
22285
22277
|
backgroundColor: _ctx.background
|
|
22286
22278
|
})
|
|
22287
22279
|
}, [
|
|
22288
|
-
_hoisted_1$J,
|
|
22289
|
-
_hoisted_2$u,
|
|
22290
22280
|
vue.createElementVNode("div", {
|
|
22291
|
-
class: "
|
|
22281
|
+
class: vue.normalizeClass(_ctx.ns.e("white"))
|
|
22282
|
+
}, null, 2),
|
|
22283
|
+
vue.createElementVNode("div", {
|
|
22284
|
+
class: vue.normalizeClass(_ctx.ns.e("black"))
|
|
22285
|
+
}, null, 2),
|
|
22286
|
+
vue.createElementVNode("div", {
|
|
22287
|
+
class: vue.normalizeClass(_ctx.ns.e("cursor")),
|
|
22292
22288
|
style: vue.normalizeStyle({
|
|
22293
22289
|
top: _ctx.cursorTop + "px",
|
|
22294
22290
|
left: _ctx.cursorLeft + "px"
|
|
22295
22291
|
})
|
|
22296
|
-
},
|
|
22297
|
-
],
|
|
22292
|
+
}, _hoisted_2$u, 6)
|
|
22293
|
+
], 6);
|
|
22298
22294
|
}
|
|
22299
|
-
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$
|
|
22295
|
+
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$u], ["__file", "sv-panel.vue"]]);
|
|
22300
22296
|
|
|
22301
22297
|
const _sfc_main$1r = vue.defineComponent({
|
|
22302
22298
|
name: "ElColorPicker",
|
|
@@ -22334,7 +22330,11 @@
|
|
|
22334
22330
|
type: [String, Number],
|
|
22335
22331
|
default: 0
|
|
22336
22332
|
},
|
|
22337
|
-
predefine: Array
|
|
22333
|
+
predefine: Array,
|
|
22334
|
+
validateEvent: {
|
|
22335
|
+
type: Boolean,
|
|
22336
|
+
default: true
|
|
22337
|
+
}
|
|
22338
22338
|
},
|
|
22339
22339
|
emits: ["change", "active-change", UPDATE_MODEL_EVENT],
|
|
22340
22340
|
setup(props, { emit }) {
|
|
@@ -22435,7 +22435,9 @@
|
|
|
22435
22435
|
const value = color.value;
|
|
22436
22436
|
emit(UPDATE_MODEL_EVENT, value);
|
|
22437
22437
|
emit("change", value);
|
|
22438
|
-
|
|
22438
|
+
if (props.validateEvent) {
|
|
22439
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
22440
|
+
}
|
|
22439
22441
|
debounceSetShowPicker(false);
|
|
22440
22442
|
vue.nextTick(() => {
|
|
22441
22443
|
const newColor = new Color({
|
|
@@ -22453,7 +22455,7 @@
|
|
|
22453
22455
|
debounceSetShowPicker(false);
|
|
22454
22456
|
emit(UPDATE_MODEL_EVENT, null);
|
|
22455
22457
|
emit("change", null);
|
|
22456
|
-
if (props.modelValue !== null) {
|
|
22458
|
+
if (props.modelValue !== null && props.validateEvent) {
|
|
22457
22459
|
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
22458
22460
|
}
|
|
22459
22461
|
resetColor();
|
|
@@ -22500,7 +22502,7 @@
|
|
|
22500
22502
|
}
|
|
22501
22503
|
});
|
|
22502
22504
|
const _hoisted_1$I = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"];
|
|
22503
|
-
function _sfc_render$
|
|
22505
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22504
22506
|
const _component_hue_slider = vue.resolveComponent("hue-slider");
|
|
22505
22507
|
const _component_sv_panel = vue.resolveComponent("sv-panel");
|
|
22506
22508
|
const _component_alpha_slider = vue.resolveComponent("alpha-slider");
|
|
@@ -22655,7 +22657,7 @@
|
|
|
22655
22657
|
_: 1
|
|
22656
22658
|
}, 8, ["visible", "popper-class"]);
|
|
22657
22659
|
}
|
|
22658
|
-
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$
|
|
22660
|
+
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$t], ["__file", "index.vue"]]);
|
|
22659
22661
|
|
|
22660
22662
|
ColorPicker.install = (app) => {
|
|
22661
22663
|
app.component(ColorPicker.name, ColorPicker);
|
|
@@ -22706,11 +22708,11 @@
|
|
|
22706
22708
|
|
|
22707
22709
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
22708
22710
|
|
|
22709
|
-
const __default__$
|
|
22711
|
+
const __default__$S = {
|
|
22710
22712
|
name: "ElContainer"
|
|
22711
22713
|
};
|
|
22712
22714
|
const _sfc_main$1q = /* @__PURE__ */ vue.defineComponent({
|
|
22713
|
-
...__default__$
|
|
22715
|
+
...__default__$S,
|
|
22714
22716
|
props: {
|
|
22715
22717
|
direction: {
|
|
22716
22718
|
type: String
|
|
@@ -22747,11 +22749,11 @@
|
|
|
22747
22749
|
});
|
|
22748
22750
|
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__file", "container.vue"]]);
|
|
22749
22751
|
|
|
22750
|
-
const __default__$
|
|
22752
|
+
const __default__$R = {
|
|
22751
22753
|
name: "ElAside"
|
|
22752
22754
|
};
|
|
22753
22755
|
const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
|
|
22754
|
-
...__default__$
|
|
22756
|
+
...__default__$R,
|
|
22755
22757
|
props: {
|
|
22756
22758
|
width: {
|
|
22757
22759
|
type: String,
|
|
@@ -22774,11 +22776,11 @@
|
|
|
22774
22776
|
});
|
|
22775
22777
|
var Aside = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__file", "aside.vue"]]);
|
|
22776
22778
|
|
|
22777
|
-
const __default__$
|
|
22779
|
+
const __default__$Q = {
|
|
22778
22780
|
name: "ElFooter"
|
|
22779
22781
|
};
|
|
22780
22782
|
const _sfc_main$1o = /* @__PURE__ */ vue.defineComponent({
|
|
22781
|
-
...__default__$
|
|
22783
|
+
...__default__$Q,
|
|
22782
22784
|
props: {
|
|
22783
22785
|
height: {
|
|
22784
22786
|
type: String,
|
|
@@ -22801,11 +22803,11 @@
|
|
|
22801
22803
|
});
|
|
22802
22804
|
var Footer$2 = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__file", "footer.vue"]]);
|
|
22803
22805
|
|
|
22804
|
-
const __default__$
|
|
22806
|
+
const __default__$P = {
|
|
22805
22807
|
name: "ElHeader"
|
|
22806
22808
|
};
|
|
22807
22809
|
const _sfc_main$1n = /* @__PURE__ */ vue.defineComponent({
|
|
22808
|
-
...__default__$
|
|
22810
|
+
...__default__$P,
|
|
22809
22811
|
props: {
|
|
22810
22812
|
height: {
|
|
22811
22813
|
type: String,
|
|
@@ -22832,11 +22834,11 @@
|
|
|
22832
22834
|
});
|
|
22833
22835
|
var Header$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__file", "header.vue"]]);
|
|
22834
22836
|
|
|
22835
|
-
const __default__$
|
|
22837
|
+
const __default__$O = {
|
|
22836
22838
|
name: "ElMain"
|
|
22837
22839
|
};
|
|
22838
22840
|
const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
|
|
22839
|
-
...__default__$
|
|
22841
|
+
...__default__$O,
|
|
22840
22842
|
setup(__props) {
|
|
22841
22843
|
const ns = useNamespace("main");
|
|
22842
22844
|
return (_ctx, _cache) => {
|
|
@@ -23209,6 +23211,7 @@
|
|
|
23209
23211
|
const lastRow = vue.ref();
|
|
23210
23212
|
const lastColumn = vue.ref();
|
|
23211
23213
|
const tableRows = vue.ref([[], [], [], [], [], []]);
|
|
23214
|
+
let focusWithClick = false;
|
|
23212
23215
|
const firstDayOfWeek = props.date.$locale().weekStart || 7;
|
|
23213
23216
|
const WEEKS_CONSTANT = props.date.locale("en").localeData().weekdaysShort().map((_) => _.toLowerCase());
|
|
23214
23217
|
const offsetDay = vue.computed(() => {
|
|
@@ -23413,13 +23416,25 @@
|
|
|
23413
23416
|
return !hasCurrent.value && (cell == null ? void 0 : cell.text) === 1 && cell.type === "normal" || cell.isCurrent;
|
|
23414
23417
|
};
|
|
23415
23418
|
const handleFocus = (event) => {
|
|
23416
|
-
if (
|
|
23417
|
-
|
|
23418
|
-
|
|
23419
|
+
if (focusWithClick || hasCurrent.value || props.selectionMode !== "date")
|
|
23420
|
+
return;
|
|
23421
|
+
handlePickDate(event, true);
|
|
23422
|
+
};
|
|
23423
|
+
const handleMouseDown = (event) => {
|
|
23424
|
+
const target = event.target.closest("td");
|
|
23425
|
+
if (!target)
|
|
23426
|
+
return;
|
|
23427
|
+
focusWithClick = true;
|
|
23428
|
+
};
|
|
23429
|
+
const handleMouseUp = (event) => {
|
|
23430
|
+
const target = event.target.closest("td");
|
|
23431
|
+
if (!target)
|
|
23432
|
+
return;
|
|
23433
|
+
focusWithClick = false;
|
|
23419
23434
|
};
|
|
23420
23435
|
const handlePickDate = (event, isKeyboardMovement = false) => {
|
|
23421
23436
|
const target = event.target.closest("td");
|
|
23422
|
-
if (!target
|
|
23437
|
+
if (!target)
|
|
23423
23438
|
return;
|
|
23424
23439
|
const row = target.parentNode.rowIndex - 1;
|
|
23425
23440
|
const column = target.cellIndex;
|
|
@@ -23484,7 +23499,9 @@
|
|
|
23484
23499
|
cellpadding: "0",
|
|
23485
23500
|
class: vue.normalizeClass([vue.unref(ns).b(), { "is-week-mode": _ctx.selectionMode === "week" }]),
|
|
23486
23501
|
onClick: handlePickDate,
|
|
23487
|
-
onMousemove: handleMouseMove
|
|
23502
|
+
onMousemove: handleMouseMove,
|
|
23503
|
+
onMousedown: handleMouseDown,
|
|
23504
|
+
onMouseup: handleMouseUp
|
|
23488
23505
|
}, [
|
|
23489
23506
|
vue.createElementVNode("tbody", {
|
|
23490
23507
|
ref_key: "tbodyRef",
|
|
@@ -23509,9 +23526,7 @@
|
|
|
23509
23526
|
return vue.openBlock(), vue.createElementBlock("td", {
|
|
23510
23527
|
key: `${rowKey}.${columnKey}`,
|
|
23511
23528
|
ref_for: true,
|
|
23512
|
-
ref: (el) =>
|
|
23513
|
-
isSelectedCell(cell) && (currentCellRef.value = el);
|
|
23514
|
-
},
|
|
23529
|
+
ref: (el) => isSelectedCell(cell) && (currentCellRef.value = el),
|
|
23515
23530
|
class: vue.normalizeClass(getCellClasses(cell)),
|
|
23516
23531
|
"aria-current": cell.isCurrent ? "date" : void 0,
|
|
23517
23532
|
"aria-selected": cell.isCurrent,
|
|
@@ -23782,7 +23797,7 @@
|
|
|
23782
23797
|
const clickTarget = event.target;
|
|
23783
23798
|
const target = clickTarget.closest("td");
|
|
23784
23799
|
if (target) {
|
|
23785
|
-
if (hasClass(target
|
|
23800
|
+
if (hasClass(target, "disabled"))
|
|
23786
23801
|
return;
|
|
23787
23802
|
const year = target.textContent || target.innerText;
|
|
23788
23803
|
emit("pick", Number(year));
|
|
@@ -25264,11 +25279,11 @@
|
|
|
25264
25279
|
const _hoisted_1$C = ["onClick"];
|
|
25265
25280
|
const _hoisted_2$o = ["disabled"];
|
|
25266
25281
|
const _hoisted_3$b = ["disabled"];
|
|
25267
|
-
const __default__$
|
|
25282
|
+
const __default__$N = {
|
|
25268
25283
|
name: "DatePickerMonthRange"
|
|
25269
25284
|
};
|
|
25270
25285
|
const _sfc_main$1g = /* @__PURE__ */ vue.defineComponent({
|
|
25271
|
-
...__default__$
|
|
25286
|
+
...__default__$N,
|
|
25272
25287
|
props: panelMonthRangeProps,
|
|
25273
25288
|
emits: panelMonthRangeEmits,
|
|
25274
25289
|
setup(__props, { emit }) {
|
|
@@ -25551,9 +25566,9 @@
|
|
|
25551
25566
|
};
|
|
25552
25567
|
const ElDatePicker = _DatePicker;
|
|
25553
25568
|
|
|
25554
|
-
const
|
|
25569
|
+
const descriptionsKey = "elDescriptions";
|
|
25555
25570
|
|
|
25556
|
-
var
|
|
25571
|
+
var ElDescriptionsCell = vue.defineComponent({
|
|
25557
25572
|
name: "ElDescriptionsCell",
|
|
25558
25573
|
props: {
|
|
25559
25574
|
cell: {
|
|
@@ -25567,7 +25582,7 @@
|
|
|
25567
25582
|
}
|
|
25568
25583
|
},
|
|
25569
25584
|
setup() {
|
|
25570
|
-
const descriptions = vue.inject(
|
|
25585
|
+
const descriptions = vue.inject(descriptionsKey, {});
|
|
25571
25586
|
return {
|
|
25572
25587
|
descriptions
|
|
25573
25588
|
};
|
|
@@ -25633,114 +25648,112 @@
|
|
|
25633
25648
|
}
|
|
25634
25649
|
});
|
|
25635
25650
|
|
|
25636
|
-
const
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
[
|
|
25640
|
-
},
|
|
25641
|
-
props: {
|
|
25642
|
-
row: {
|
|
25643
|
-
type: Array
|
|
25644
|
-
}
|
|
25645
|
-
},
|
|
25646
|
-
setup() {
|
|
25647
|
-
const descriptions = vue.inject(elDescriptionsKey, {});
|
|
25648
|
-
return {
|
|
25649
|
-
descriptions
|
|
25650
|
-
};
|
|
25651
|
+
const descriptionsRowProps = buildProps({
|
|
25652
|
+
row: {
|
|
25653
|
+
type: Array,
|
|
25654
|
+
default: () => []
|
|
25651
25655
|
}
|
|
25652
25656
|
});
|
|
25657
|
+
|
|
25653
25658
|
const _hoisted_1$B = { key: 1 };
|
|
25654
|
-
|
|
25655
|
-
|
|
25656
|
-
|
|
25657
|
-
|
|
25658
|
-
|
|
25659
|
-
|
|
25660
|
-
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25664
|
-
|
|
25665
|
-
|
|
25666
|
-
|
|
25667
|
-
|
|
25668
|
-
|
|
25669
|
-
|
|
25670
|
-
|
|
25671
|
-
|
|
25672
|
-
|
|
25673
|
-
|
|
25674
|
-
|
|
25675
|
-
|
|
25676
|
-
|
|
25677
|
-
|
|
25678
|
-
|
|
25679
|
-
|
|
25680
|
-
|
|
25681
|
-
|
|
25682
|
-
|
|
25683
|
-
|
|
25684
|
-
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
|
|
25688
|
-
|
|
25689
|
-
|
|
25690
|
-
|
|
25691
|
-
|
|
25692
|
-
|
|
25693
|
-
|
|
25694
|
-
|
|
25695
|
-
|
|
25696
|
-
|
|
25697
|
-
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25659
|
+
const __default__$M = {
|
|
25660
|
+
name: "ElDescriptionsRow"
|
|
25661
|
+
};
|
|
25662
|
+
const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
|
|
25663
|
+
...__default__$M,
|
|
25664
|
+
props: descriptionsRowProps,
|
|
25665
|
+
setup(__props) {
|
|
25666
|
+
const descriptions = vue.inject(descriptionsKey, {});
|
|
25667
|
+
return (_ctx, _cache) => {
|
|
25668
|
+
return vue.unref(descriptions).direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
25669
|
+
vue.createElementVNode("tr", null, [
|
|
25670
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
25671
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ElDescriptionsCell), {
|
|
25672
|
+
key: `tr1-${index}`,
|
|
25673
|
+
cell,
|
|
25674
|
+
tag: "th",
|
|
25675
|
+
type: "label"
|
|
25676
|
+
}, null, 8, ["cell"]);
|
|
25677
|
+
}), 128))
|
|
25678
|
+
]),
|
|
25679
|
+
vue.createElementVNode("tr", null, [
|
|
25680
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
25681
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ElDescriptionsCell), {
|
|
25682
|
+
key: `tr2-${index}`,
|
|
25683
|
+
cell,
|
|
25684
|
+
tag: "td",
|
|
25685
|
+
type: "content"
|
|
25686
|
+
}, null, 8, ["cell"]);
|
|
25687
|
+
}), 128))
|
|
25688
|
+
])
|
|
25689
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1$B, [
|
|
25690
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
|
|
25691
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
25692
|
+
key: `tr3-${index}`
|
|
25693
|
+
}, [
|
|
25694
|
+
vue.unref(descriptions).border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
25695
|
+
vue.createVNode(vue.unref(ElDescriptionsCell), {
|
|
25696
|
+
cell,
|
|
25697
|
+
tag: "td",
|
|
25698
|
+
type: "label"
|
|
25699
|
+
}, null, 8, ["cell"]),
|
|
25700
|
+
vue.createVNode(vue.unref(ElDescriptionsCell), {
|
|
25701
|
+
cell,
|
|
25702
|
+
tag: "td",
|
|
25703
|
+
type: "content"
|
|
25704
|
+
}, null, 8, ["cell"])
|
|
25705
|
+
], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(ElDescriptionsCell), {
|
|
25706
|
+
key: 1,
|
|
25707
|
+
cell,
|
|
25708
|
+
tag: "td",
|
|
25709
|
+
type: "both"
|
|
25710
|
+
}, null, 8, ["cell"]))
|
|
25711
|
+
], 64);
|
|
25712
|
+
}), 128))
|
|
25713
|
+
]));
|
|
25714
|
+
};
|
|
25715
|
+
}
|
|
25716
|
+
});
|
|
25717
|
+
var ElDescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__file", "descriptions-row.vue"]]);
|
|
25704
25718
|
|
|
25705
|
-
const
|
|
25706
|
-
|
|
25707
|
-
|
|
25708
|
-
|
|
25719
|
+
const descriptionProps = buildProps({
|
|
25720
|
+
border: {
|
|
25721
|
+
type: Boolean,
|
|
25722
|
+
default: false
|
|
25709
25723
|
},
|
|
25710
|
-
|
|
25711
|
-
|
|
25712
|
-
|
|
25713
|
-
default: false
|
|
25714
|
-
},
|
|
25715
|
-
column: {
|
|
25716
|
-
type: Number,
|
|
25717
|
-
default: 3
|
|
25718
|
-
},
|
|
25719
|
-
direction: {
|
|
25720
|
-
type: String,
|
|
25721
|
-
default: "horizontal"
|
|
25722
|
-
},
|
|
25723
|
-
size: {
|
|
25724
|
-
type: String,
|
|
25725
|
-
validator: isValidComponentSize
|
|
25726
|
-
},
|
|
25727
|
-
title: {
|
|
25728
|
-
type: String,
|
|
25729
|
-
default: ""
|
|
25730
|
-
},
|
|
25731
|
-
extra: {
|
|
25732
|
-
type: String,
|
|
25733
|
-
default: ""
|
|
25734
|
-
}
|
|
25724
|
+
column: {
|
|
25725
|
+
type: Number,
|
|
25726
|
+
default: 3
|
|
25735
25727
|
},
|
|
25736
|
-
|
|
25737
|
-
|
|
25738
|
-
|
|
25728
|
+
direction: {
|
|
25729
|
+
type: String,
|
|
25730
|
+
values: ["horizontal", "vertical"],
|
|
25731
|
+
default: "horizontal"
|
|
25732
|
+
},
|
|
25733
|
+
size: useSizeProp,
|
|
25734
|
+
title: {
|
|
25735
|
+
type: String,
|
|
25736
|
+
default: ""
|
|
25737
|
+
},
|
|
25738
|
+
extra: {
|
|
25739
|
+
type: String,
|
|
25740
|
+
default: ""
|
|
25741
|
+
}
|
|
25742
|
+
});
|
|
25743
|
+
|
|
25744
|
+
const __default__$L = {
|
|
25745
|
+
name: "ElDescriptions"
|
|
25746
|
+
};
|
|
25747
|
+
const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
|
|
25748
|
+
...__default__$L,
|
|
25749
|
+
props: descriptionProps,
|
|
25750
|
+
setup(__props) {
|
|
25751
|
+
const props = __props;
|
|
25739
25752
|
const ns = useNamespace("descriptions");
|
|
25740
|
-
const
|
|
25741
|
-
|
|
25742
|
-
|
|
25743
|
-
]);
|
|
25753
|
+
const descriptionsSize = useSize();
|
|
25754
|
+
const slots = vue.useSlots();
|
|
25755
|
+
vue.provide(descriptionsKey, props);
|
|
25756
|
+
const descriptionKls = vue.computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
|
|
25744
25757
|
const flattedChildren = (children) => {
|
|
25745
25758
|
const temp = Array.isArray(children) ? children : [children];
|
|
25746
25759
|
const res = [];
|
|
@@ -25799,56 +25812,50 @@
|
|
|
25799
25812
|
});
|
|
25800
25813
|
return rows;
|
|
25801
25814
|
};
|
|
25802
|
-
return {
|
|
25803
|
-
|
|
25804
|
-
|
|
25805
|
-
|
|
25815
|
+
return (_ctx, _cache) => {
|
|
25816
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
25817
|
+
class: vue.normalizeClass(vue.unref(descriptionKls))
|
|
25818
|
+
}, [
|
|
25819
|
+
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
25820
|
+
key: 0,
|
|
25821
|
+
class: vue.normalizeClass(vue.unref(ns).e("header"))
|
|
25822
|
+
}, [
|
|
25823
|
+
vue.createElementVNode("div", {
|
|
25824
|
+
class: vue.normalizeClass(vue.unref(ns).e("title"))
|
|
25825
|
+
}, [
|
|
25826
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
25827
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
25828
|
+
])
|
|
25829
|
+
], 2),
|
|
25830
|
+
vue.createElementVNode("div", {
|
|
25831
|
+
class: vue.normalizeClass(vue.unref(ns).e("extra"))
|
|
25832
|
+
}, [
|
|
25833
|
+
vue.renderSlot(_ctx.$slots, "extra", {}, () => [
|
|
25834
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.extra), 1)
|
|
25835
|
+
])
|
|
25836
|
+
], 2)
|
|
25837
|
+
], 2)) : vue.createCommentVNode("v-if", true),
|
|
25838
|
+
vue.createElementVNode("div", {
|
|
25839
|
+
class: vue.normalizeClass(vue.unref(ns).e("body"))
|
|
25840
|
+
}, [
|
|
25841
|
+
vue.createElementVNode("table", {
|
|
25842
|
+
class: vue.normalizeClass([vue.unref(ns).e("table"), vue.unref(ns).is("bordered", _ctx.border)])
|
|
25843
|
+
}, [
|
|
25844
|
+
vue.createElementVNode("tbody", null, [
|
|
25845
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getRows(), (row, index) => {
|
|
25846
|
+
return vue.openBlock(), vue.createBlock(ElDescriptionsRow, {
|
|
25847
|
+
key: index,
|
|
25848
|
+
row
|
|
25849
|
+
}, null, 8, ["row"]);
|
|
25850
|
+
}), 128))
|
|
25851
|
+
])
|
|
25852
|
+
], 2)
|
|
25853
|
+
], 2)
|
|
25854
|
+
], 2);
|
|
25806
25855
|
};
|
|
25807
25856
|
}
|
|
25808
25857
|
});
|
|
25809
|
-
|
|
25810
|
-
const _component_el_descriptions_row = vue.resolveComponent("el-descriptions-row");
|
|
25811
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
25812
|
-
class: vue.normalizeClass(_ctx.descriptionKls)
|
|
25813
|
-
}, [
|
|
25814
|
-
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
25815
|
-
key: 0,
|
|
25816
|
-
class: vue.normalizeClass(_ctx.ns.e("header"))
|
|
25817
|
-
}, [
|
|
25818
|
-
vue.createElementVNode("div", {
|
|
25819
|
-
class: vue.normalizeClass(_ctx.ns.e("title"))
|
|
25820
|
-
}, [
|
|
25821
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
25822
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
25823
|
-
])
|
|
25824
|
-
], 2),
|
|
25825
|
-
vue.createElementVNode("div", {
|
|
25826
|
-
class: vue.normalizeClass(_ctx.ns.e("extra"))
|
|
25827
|
-
}, [
|
|
25828
|
-
vue.renderSlot(_ctx.$slots, "extra", {}, () => [
|
|
25829
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.extra), 1)
|
|
25830
|
-
])
|
|
25831
|
-
], 2)
|
|
25832
|
-
], 2)) : vue.createCommentVNode("v-if", true),
|
|
25833
|
-
vue.createElementVNode("div", {
|
|
25834
|
-
class: vue.normalizeClass(_ctx.ns.e("body"))
|
|
25835
|
-
}, [
|
|
25836
|
-
vue.createElementVNode("table", {
|
|
25837
|
-
class: vue.normalizeClass([_ctx.ns.e("table"), _ctx.ns.is("bordered", _ctx.border)])
|
|
25838
|
-
}, [
|
|
25839
|
-
vue.createElementVNode("tbody", null, [
|
|
25840
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.getRows(), (row, index) => {
|
|
25841
|
-
return vue.openBlock(), vue.createBlock(_component_el_descriptions_row, {
|
|
25842
|
-
key: index,
|
|
25843
|
-
row
|
|
25844
|
-
}, null, 8, ["row"]);
|
|
25845
|
-
}), 128))
|
|
25846
|
-
])
|
|
25847
|
-
], 2)
|
|
25848
|
-
], 2)
|
|
25849
|
-
], 2);
|
|
25850
|
-
}
|
|
25851
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$t], ["__file", "index.vue"]]);
|
|
25858
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__file", "description.vue"]]);
|
|
25852
25859
|
|
|
25853
25860
|
var DescriptionsItem = vue.defineComponent({
|
|
25854
25861
|
name: "ElDescriptionsItem",
|
|
@@ -26105,7 +26112,7 @@
|
|
|
26105
26112
|
},
|
|
26106
26113
|
modelValue: {
|
|
26107
26114
|
type: Boolean,
|
|
26108
|
-
|
|
26115
|
+
default: false
|
|
26109
26116
|
},
|
|
26110
26117
|
modalClass: String,
|
|
26111
26118
|
width: {
|
|
@@ -26385,7 +26392,6 @@
|
|
|
26385
26392
|
draggable: vue.unref(draggable),
|
|
26386
26393
|
fullscreen: _ctx.fullscreen,
|
|
26387
26394
|
"show-close": _ctx.showClose,
|
|
26388
|
-
style: vue.normalizeStyle(vue.unref(style)),
|
|
26389
26395
|
title: _ctx.title,
|
|
26390
26396
|
onClose: vue.unref(handleClose)
|
|
26391
26397
|
}, vue.createSlots({
|
|
@@ -26408,7 +26414,7 @@
|
|
|
26408
26414
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
26409
26415
|
])
|
|
26410
26416
|
} : void 0
|
|
26411
|
-
]), 1032, ["custom-class", "center", "close-icon", "draggable", "fullscreen", "show-close", "
|
|
26417
|
+
]), 1032, ["custom-class", "center", "close-icon", "draggable", "fullscreen", "show-close", "title", "onClose"])) : vue.createCommentVNode("v-if", true)
|
|
26412
26418
|
]),
|
|
26413
26419
|
_: 3
|
|
26414
26420
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onReleaseRequested"])
|
|
@@ -27189,13 +27195,15 @@
|
|
|
27189
27195
|
e.stopImmediatePropagation();
|
|
27190
27196
|
}
|
|
27191
27197
|
}
|
|
27198
|
+
function handleBeforeShowTooltip() {
|
|
27199
|
+
emit("visible-change", true);
|
|
27200
|
+
}
|
|
27192
27201
|
function handleShowTooltip(event) {
|
|
27193
27202
|
if ((event == null ? void 0 : event.type) === "keydown") {
|
|
27194
27203
|
contentRef.value.focus();
|
|
27195
27204
|
}
|
|
27196
|
-
emit("visible-change", true);
|
|
27197
27205
|
}
|
|
27198
|
-
function
|
|
27206
|
+
function handleBeforeHideTooltip() {
|
|
27199
27207
|
emit("visible-change", false);
|
|
27200
27208
|
}
|
|
27201
27209
|
vue.provide(DROPDOWN_INJECTION_KEY, {
|
|
@@ -27239,8 +27247,9 @@
|
|
|
27239
27247
|
handleEntryFocus,
|
|
27240
27248
|
handleClose,
|
|
27241
27249
|
handleOpen,
|
|
27250
|
+
handleBeforeShowTooltip,
|
|
27242
27251
|
handleShowTooltip,
|
|
27243
|
-
|
|
27252
|
+
handleBeforeHideTooltip,
|
|
27244
27253
|
onFocusAfterTrapped,
|
|
27245
27254
|
popperRef,
|
|
27246
27255
|
contentRef,
|
|
@@ -27287,8 +27296,9 @@
|
|
|
27287
27296
|
teleported: "",
|
|
27288
27297
|
pure: "",
|
|
27289
27298
|
persistent: "",
|
|
27299
|
+
onBeforeShow: _ctx.handleBeforeShowTooltip,
|
|
27290
27300
|
onShow: _ctx.handleShowTooltip,
|
|
27291
|
-
|
|
27301
|
+
onBeforeHide: _ctx.handleBeforeHideTooltip
|
|
27292
27302
|
}, vue.createSlots({
|
|
27293
27303
|
content: vue.withCtx(() => [
|
|
27294
27304
|
vue.createVNode(_component_el_scrollbar, {
|
|
@@ -27336,7 +27346,7 @@
|
|
|
27336
27346
|
}, 8, ["id", "tabindex"])
|
|
27337
27347
|
])
|
|
27338
27348
|
} : void 0
|
|
27339
|
-
]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "onShow", "
|
|
27349
|
+
]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "onBeforeShow", "onShow", "onBeforeHide"]),
|
|
27340
27350
|
_ctx.splitButton ? (vue.openBlock(), vue.createBlock(_component_el_button_group, { key: 0 }, {
|
|
27341
27351
|
default: vue.withCtx(() => [
|
|
27342
27352
|
vue.createVNode(_component_el_button, vue.mergeProps({ ref: "referenceElementRef" }, _ctx.buttonProps, {
|
|
@@ -29472,8 +29482,8 @@
|
|
|
29472
29482
|
const computedValue = getProp(model, props.prop);
|
|
29473
29483
|
if (!isEqual$1(computedValue.value, initialValue)) {
|
|
29474
29484
|
isResettingField = true;
|
|
29485
|
+
computedValue.value = clone(initialValue);
|
|
29475
29486
|
}
|
|
29476
|
-
computedValue.value = clone(initialValue);
|
|
29477
29487
|
await vue.nextTick();
|
|
29478
29488
|
clearValidate();
|
|
29479
29489
|
};
|
|
@@ -30311,6 +30321,10 @@
|
|
|
30311
30321
|
precision: {
|
|
30312
30322
|
type: Number,
|
|
30313
30323
|
validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
|
|
30324
|
+
},
|
|
30325
|
+
validateEvent: {
|
|
30326
|
+
type: Boolean,
|
|
30327
|
+
default: true
|
|
30314
30328
|
}
|
|
30315
30329
|
});
|
|
30316
30330
|
const inputNumberEmits = {
|
|
@@ -30434,7 +30448,7 @@
|
|
|
30434
30448
|
newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
30435
30449
|
}
|
|
30436
30450
|
if (stepStrictly) {
|
|
30437
|
-
newVal = Math.round(newVal / step) * step;
|
|
30451
|
+
newVal = toPrecision(Math.round(newVal / step) * step, precision);
|
|
30438
30452
|
}
|
|
30439
30453
|
if (!isUndefined(precision)) {
|
|
30440
30454
|
newVal = toPrecision(newVal, precision);
|
|
@@ -30455,7 +30469,9 @@
|
|
|
30455
30469
|
emit("update:modelValue", newVal);
|
|
30456
30470
|
emit("input", newVal);
|
|
30457
30471
|
emit("change", newVal, oldVal);
|
|
30458
|
-
|
|
30472
|
+
if (props.validateEvent) {
|
|
30473
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
30474
|
+
}
|
|
30459
30475
|
data.currentValue = newVal;
|
|
30460
30476
|
};
|
|
30461
30477
|
const handleInput = (value) => {
|
|
@@ -30482,7 +30498,9 @@
|
|
|
30482
30498
|
const handleBlur = (event) => {
|
|
30483
30499
|
var _a;
|
|
30484
30500
|
emit("blur", event);
|
|
30485
|
-
|
|
30501
|
+
if (props.validateEvent) {
|
|
30502
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
30503
|
+
}
|
|
30486
30504
|
};
|
|
30487
30505
|
vue.watch(() => props.modelValue, (value) => {
|
|
30488
30506
|
data.currentValue = verifyValue(value, true);
|
|
@@ -30548,7 +30566,7 @@
|
|
|
30548
30566
|
_: 1
|
|
30549
30567
|
})
|
|
30550
30568
|
], 42, _hoisted_1$q)), [
|
|
30551
|
-
[vue.unref(
|
|
30569
|
+
[vue.unref(RepeatClick), decrease]
|
|
30552
30570
|
]) : vue.createCommentVNode("v-if", true),
|
|
30553
30571
|
_ctx.controls ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
|
|
30554
30572
|
key: 1,
|
|
@@ -30564,7 +30582,7 @@
|
|
|
30564
30582
|
_: 1
|
|
30565
30583
|
})
|
|
30566
30584
|
], 42, _hoisted_2$i)), [
|
|
30567
|
-
[vue.unref(
|
|
30585
|
+
[vue.unref(RepeatClick), increase]
|
|
30568
30586
|
]) : vue.createCommentVNode("v-if", true),
|
|
30569
30587
|
vue.createVNode(vue.unref(ElInput), {
|
|
30570
30588
|
id: _ctx.id,
|
|
@@ -31021,7 +31039,7 @@
|
|
|
31021
31039
|
};
|
|
31022
31040
|
const handleMouseenter = (event, showTimeout = props.showTimeout) => {
|
|
31023
31041
|
var _a;
|
|
31024
|
-
if (event.type === "focus"
|
|
31042
|
+
if (event.type === "focus") {
|
|
31025
31043
|
return;
|
|
31026
31044
|
}
|
|
31027
31045
|
if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props.disabled) {
|
|
@@ -31303,11 +31321,22 @@
|
|
|
31303
31321
|
}
|
|
31304
31322
|
updateActiveIndex(currentActive);
|
|
31305
31323
|
});
|
|
31306
|
-
vue.watch(items.value, () =>
|
|
31324
|
+
vue.watch(items.value, () => {
|
|
31325
|
+
initMenu();
|
|
31326
|
+
if (props.mode === "horizontal" && props.ellipsis)
|
|
31327
|
+
handleResize();
|
|
31328
|
+
});
|
|
31307
31329
|
vue.watch(() => props.collapse, (value) => {
|
|
31308
31330
|
if (value)
|
|
31309
31331
|
openedMenus.value = [];
|
|
31310
31332
|
});
|
|
31333
|
+
let resizeStopper;
|
|
31334
|
+
vue.watchEffect(() => {
|
|
31335
|
+
if (props.mode === "horizontal" && props.ellipsis)
|
|
31336
|
+
resizeStopper = useResizeObserver(menu, handleResize).stop;
|
|
31337
|
+
else
|
|
31338
|
+
resizeStopper == null ? void 0 : resizeStopper();
|
|
31339
|
+
});
|
|
31311
31340
|
{
|
|
31312
31341
|
const addSubMenu = (item) => {
|
|
31313
31342
|
subMenus.value[item.index] = item;
|
|
@@ -31373,7 +31402,6 @@
|
|
|
31373
31402
|
});
|
|
31374
31403
|
return result;
|
|
31375
31404
|
};
|
|
31376
|
-
const useVNodeResize = (vnode) => props.mode === "horizontal" ? vue.withDirectives(vnode, [[Resize, handleResize]]) : vnode;
|
|
31377
31405
|
return () => {
|
|
31378
31406
|
var _a, _b, _c, _d;
|
|
31379
31407
|
let slot = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : [];
|
|
@@ -31409,8 +31437,7 @@
|
|
|
31409
31437
|
}
|
|
31410
31438
|
}
|
|
31411
31439
|
const ulStyle = useMenuCssVar(props, 0);
|
|
31412
|
-
const
|
|
31413
|
-
const vMenu = resizeMenu(vue.h("ul", {
|
|
31440
|
+
const vMenu = vue.h("ul", {
|
|
31414
31441
|
key: String(props.collapse),
|
|
31415
31442
|
role: "menubar",
|
|
31416
31443
|
ref: menu,
|
|
@@ -31420,7 +31447,7 @@
|
|
|
31420
31447
|
[nsMenu.m(props.mode)]: true,
|
|
31421
31448
|
[nsMenu.m("collapse")]: props.collapse
|
|
31422
31449
|
}
|
|
31423
|
-
}, [...slot, ...vShowMore])
|
|
31450
|
+
}, [...slot, ...vShowMore]);
|
|
31424
31451
|
if (props.collapseTransition && props.mode === "vertical") {
|
|
31425
31452
|
return vue.h(ElMenuCollapseTransition, () => vMenu);
|
|
31426
31453
|
}
|
|
@@ -31869,11 +31896,11 @@
|
|
|
31869
31896
|
const doesSelected = selectedOptions.some((item) => {
|
|
31870
31897
|
return item.value === vm.value;
|
|
31871
31898
|
});
|
|
31872
|
-
|
|
31873
|
-
|
|
31899
|
+
vue.nextTick(() => {
|
|
31900
|
+
if (select.cachedOptions.get(key) === vm && !doesSelected) {
|
|
31874
31901
|
select.cachedOptions.delete(key);
|
|
31875
|
-
}
|
|
31876
|
-
}
|
|
31902
|
+
}
|
|
31903
|
+
});
|
|
31877
31904
|
select.onOptionDestroy(key, vm);
|
|
31878
31905
|
});
|
|
31879
31906
|
function selectOptionClick() {
|
|
@@ -32067,7 +32094,7 @@
|
|
|
32067
32094
|
if (props.filterable && !props.multiple) {
|
|
32068
32095
|
states.inputLength = 20;
|
|
32069
32096
|
}
|
|
32070
|
-
if (!isEqual$1(val, oldVal)) {
|
|
32097
|
+
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
32071
32098
|
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
32072
32099
|
}
|
|
32073
32100
|
}, {
|
|
@@ -32519,8 +32546,6 @@
|
|
|
32519
32546
|
};
|
|
32520
32547
|
const toggleMenu = () => {
|
|
32521
32548
|
var _a;
|
|
32522
|
-
if (props.automaticDropdown)
|
|
32523
|
-
return;
|
|
32524
32549
|
if (!selectDisabled.value) {
|
|
32525
32550
|
if (states.menuVisibleOnFocus) {
|
|
32526
32551
|
states.menuVisibleOnFocus = false;
|
|
@@ -32711,7 +32736,11 @@
|
|
|
32711
32736
|
type: [String, Object],
|
|
32712
32737
|
default: arrow_up_default
|
|
32713
32738
|
},
|
|
32714
|
-
tagType: { ...tagProps.type, default: "info" }
|
|
32739
|
+
tagType: { ...tagProps.type, default: "info" },
|
|
32740
|
+
validateEvent: {
|
|
32741
|
+
type: Boolean,
|
|
32742
|
+
default: true
|
|
32743
|
+
}
|
|
32715
32744
|
},
|
|
32716
32745
|
emits: [
|
|
32717
32746
|
UPDATE_MODEL_EVENT,
|
|
@@ -33005,7 +33034,7 @@
|
|
|
33005
33034
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
33006
33035
|
effect: _ctx.effect,
|
|
33007
33036
|
placement: "bottom",
|
|
33008
|
-
teleported:
|
|
33037
|
+
teleported: _ctx.teleported
|
|
33009
33038
|
}, {
|
|
33010
33039
|
default: vue.withCtx(() => [
|
|
33011
33040
|
vue.createElementVNode("span", {
|
|
@@ -33047,7 +33076,7 @@
|
|
|
33047
33076
|
], 2)
|
|
33048
33077
|
]),
|
|
33049
33078
|
_: 1
|
|
33050
|
-
}, 8, ["disabled", "effect"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
33079
|
+
}, 8, ["disabled", "effect", "teleported"])) : (vue.openBlock(), vue.createElementBlock("span", {
|
|
33051
33080
|
key: 1,
|
|
33052
33081
|
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
33053
33082
|
}, "+ " + vue.toDisplayString(_ctx.selected.length - 1), 3))
|
|
@@ -33983,18 +34012,15 @@
|
|
|
33983
34012
|
var _a, _b;
|
|
33984
34013
|
(_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
33985
34014
|
};
|
|
33986
|
-
const handleCallback = () => {
|
|
33987
|
-
hidePopper();
|
|
33988
|
-
};
|
|
33989
34015
|
const confirm = (e) => {
|
|
33990
34016
|
var _a;
|
|
33991
34017
|
(_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
|
|
33992
|
-
|
|
34018
|
+
hidePopper();
|
|
33993
34019
|
};
|
|
33994
34020
|
const cancel = (e) => {
|
|
33995
34021
|
var _a;
|
|
33996
34022
|
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
33997
|
-
|
|
34023
|
+
hidePopper();
|
|
33998
34024
|
};
|
|
33999
34025
|
const finalConfirmButtonText = vue.computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
34000
34026
|
const finalCancelButtonText = vue.computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
|
@@ -34117,6 +34143,9 @@
|
|
|
34117
34143
|
persistent: {
|
|
34118
34144
|
type: Boolean,
|
|
34119
34145
|
default: true
|
|
34146
|
+
},
|
|
34147
|
+
"onUpdate:visible": {
|
|
34148
|
+
type: Function
|
|
34120
34149
|
}
|
|
34121
34150
|
});
|
|
34122
34151
|
const popoverEmits = {
|
|
@@ -34136,6 +34165,10 @@
|
|
|
34136
34165
|
emits: popoverEmits,
|
|
34137
34166
|
setup(__props, { expose, emit }) {
|
|
34138
34167
|
const props = __props;
|
|
34168
|
+
const updateEventKeyRaw = `onUpdate:visible`;
|
|
34169
|
+
const onUpdateVisible = vue.computed(() => {
|
|
34170
|
+
return props[updateEventKeyRaw];
|
|
34171
|
+
});
|
|
34139
34172
|
const ns = useNamespace("popover");
|
|
34140
34173
|
const tooltipRef = vue.ref();
|
|
34141
34174
|
const popperRef = vue.computed(() => {
|
|
@@ -34203,6 +34236,7 @@
|
|
|
34203
34236
|
teleported: _ctx.teleported,
|
|
34204
34237
|
persistent: _ctx.persistent,
|
|
34205
34238
|
"gpu-acceleration": vue.unref(gpuAcceleration),
|
|
34239
|
+
"onUpdate:visible": vue.unref(onUpdateVisible),
|
|
34206
34240
|
onBeforeShow: beforeEnter,
|
|
34207
34241
|
onBeforeHide: beforeLeave,
|
|
34208
34242
|
onShow: afterEnter,
|
|
@@ -34222,7 +34256,7 @@
|
|
|
34222
34256
|
_ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
|
34223
34257
|
]),
|
|
34224
34258
|
_: 3
|
|
34225
|
-
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration"]);
|
|
34259
|
+
}, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]);
|
|
34226
34260
|
};
|
|
34227
34261
|
}
|
|
34228
34262
|
});
|
|
@@ -34775,12 +34809,13 @@
|
|
|
34775
34809
|
resetCurrentValue
|
|
34776
34810
|
});
|
|
34777
34811
|
return (_ctx, _cache) => {
|
|
34812
|
+
var _a;
|
|
34778
34813
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34779
34814
|
id: vue.unref(inputId),
|
|
34780
34815
|
class: vue.normalizeClass([vue.unref(rateClasses), vue.unref(ns).is("disabled", vue.unref(rateDisabled))]),
|
|
34781
34816
|
role: "slider",
|
|
34782
34817
|
"aria-label": !vue.unref(isLabeledByFormItem) ? _ctx.label || "rating" : void 0,
|
|
34783
|
-
"aria-labelledby": vue.unref(isLabeledByFormItem) ? vue.unref(formItemContext).labelId : void 0,
|
|
34818
|
+
"aria-labelledby": vue.unref(isLabeledByFormItem) ? (_a = vue.unref(formItemContext)) == null ? void 0 : _a.labelId : void 0,
|
|
34784
34819
|
"aria-valuenow": currentValue.value,
|
|
34785
34820
|
"aria-valuetext": vue.unref(text) || void 0,
|
|
34786
34821
|
"aria-valuemin": "0",
|
|
@@ -36929,6 +36964,10 @@
|
|
|
36929
36964
|
scrollbarAlwaysOn: {
|
|
36930
36965
|
type: Boolean,
|
|
36931
36966
|
default: false
|
|
36967
|
+
},
|
|
36968
|
+
validateEvent: {
|
|
36969
|
+
type: Boolean,
|
|
36970
|
+
default: true
|
|
36932
36971
|
}
|
|
36933
36972
|
};
|
|
36934
36973
|
const OptionProps = {
|
|
@@ -37407,8 +37446,9 @@
|
|
|
37407
37446
|
});
|
|
37408
37447
|
const filteredOptions = vue.computed(() => {
|
|
37409
37448
|
const isValidOption = (o) => {
|
|
37449
|
+
var _a;
|
|
37410
37450
|
const query = states.inputValue;
|
|
37411
|
-
const containsQueryString = query ? o.label.includes(query) : true;
|
|
37451
|
+
const containsQueryString = query ? (_a = o.label) == null ? void 0 : _a.includes(query) : true;
|
|
37412
37452
|
return containsQueryString;
|
|
37413
37453
|
};
|
|
37414
37454
|
if (props.loading) {
|
|
@@ -37866,7 +37906,7 @@
|
|
|
37866
37906
|
if (!val || val.toString() !== states.previousValue) {
|
|
37867
37907
|
initStates();
|
|
37868
37908
|
}
|
|
37869
|
-
if (!isEqual$1(val, oldVal)) {
|
|
37909
|
+
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
37870
37910
|
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
37871
37911
|
}
|
|
37872
37912
|
}, {
|
|
@@ -38508,8 +38548,17 @@
|
|
|
38508
38548
|
type: String,
|
|
38509
38549
|
default: void 0
|
|
38510
38550
|
},
|
|
38551
|
+
placement: {
|
|
38552
|
+
type: String,
|
|
38553
|
+
values: Ee,
|
|
38554
|
+
default: "top"
|
|
38555
|
+
},
|
|
38511
38556
|
marks: {
|
|
38512
38557
|
type: definePropType(Object)
|
|
38558
|
+
},
|
|
38559
|
+
validateEvent: {
|
|
38560
|
+
type: Boolean,
|
|
38561
|
+
default: true
|
|
38513
38562
|
}
|
|
38514
38563
|
});
|
|
38515
38564
|
const isValidValue$1 = (value) => isNumber(value) || isArray(value) && value.every(isNumber);
|
|
@@ -38892,7 +38941,9 @@
|
|
|
38892
38941
|
const steps = Math.round(newPosition / lengthPerStep);
|
|
38893
38942
|
let value = steps * lengthPerStep * (max.value - min.value) * 0.01 + min.value;
|
|
38894
38943
|
value = Number.parseFloat(value.toFixed(precision.value));
|
|
38895
|
-
|
|
38944
|
+
if (value !== props.modelValue) {
|
|
38945
|
+
emit(UPDATE_MODEL_EVENT, value);
|
|
38946
|
+
}
|
|
38896
38947
|
if (!initData.dragging && props.modelValue !== initData.oldValue) {
|
|
38897
38948
|
initData.oldValue = props.modelValue;
|
|
38898
38949
|
}
|
|
@@ -38977,7 +39028,9 @@
|
|
|
38977
39028
|
initData.firstValue = val[0];
|
|
38978
39029
|
initData.secondValue = val[1];
|
|
38979
39030
|
if (valueChanged()) {
|
|
38980
|
-
|
|
39031
|
+
if (props.validateEvent) {
|
|
39032
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
39033
|
+
}
|
|
38981
39034
|
initData.oldValue = val.slice();
|
|
38982
39035
|
}
|
|
38983
39036
|
}
|
|
@@ -38989,7 +39042,9 @@
|
|
|
38989
39042
|
} else {
|
|
38990
39043
|
initData.firstValue = val;
|
|
38991
39044
|
if (valueChanged()) {
|
|
38992
|
-
|
|
39045
|
+
if (props.validateEvent) {
|
|
39046
|
+
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn());
|
|
39047
|
+
}
|
|
38993
39048
|
initData.oldValue = val;
|
|
38994
39049
|
}
|
|
38995
39050
|
}
|
|
@@ -39020,7 +39075,12 @@
|
|
|
39020
39075
|
default: 0
|
|
39021
39076
|
},
|
|
39022
39077
|
vertical: Boolean,
|
|
39023
|
-
tooltipClass: String
|
|
39078
|
+
tooltipClass: String,
|
|
39079
|
+
placement: {
|
|
39080
|
+
type: String,
|
|
39081
|
+
values: Ee,
|
|
39082
|
+
default: "top"
|
|
39083
|
+
}
|
|
39024
39084
|
});
|
|
39025
39085
|
const sliderButtonEmits = {
|
|
39026
39086
|
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
@@ -39089,7 +39149,8 @@
|
|
|
39089
39149
|
ref: tooltip,
|
|
39090
39150
|
visible: vue.unref(tooltipVisible),
|
|
39091
39151
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vue.isRef(tooltipVisible) ? tooltipVisible.value = $event : null),
|
|
39092
|
-
placement:
|
|
39152
|
+
placement: _ctx.placement,
|
|
39153
|
+
"fallback-placements": ["top", "bottom", "right", "left"],
|
|
39093
39154
|
"stop-popper-mouse-event": false,
|
|
39094
39155
|
"popper-class": _ctx.tooltipClass,
|
|
39095
39156
|
disabled: !vue.unref(showTooltip),
|
|
@@ -39104,7 +39165,7 @@
|
|
|
39104
39165
|
}, null, 2)
|
|
39105
39166
|
]),
|
|
39106
39167
|
_: 1
|
|
39107
|
-
}, 8, ["visible", "popper-class", "disabled"])
|
|
39168
|
+
}, 8, ["visible", "placement", "popper-class", "disabled"])
|
|
39108
39169
|
], 38);
|
|
39109
39170
|
};
|
|
39110
39171
|
}
|
|
@@ -39128,7 +39189,7 @@
|
|
|
39128
39189
|
const style = vue.computed(() => isString(props.mark) ? void 0 : props.mark.style);
|
|
39129
39190
|
return () => vue.h("div", {
|
|
39130
39191
|
class: ns.e("marks-text"),
|
|
39131
|
-
style
|
|
39192
|
+
style: style.value
|
|
39132
39193
|
}, label.value);
|
|
39133
39194
|
}
|
|
39134
39195
|
});
|
|
@@ -39267,6 +39328,7 @@
|
|
|
39267
39328
|
"model-value": vue.unref(firstValue),
|
|
39268
39329
|
vertical: _ctx.vertical,
|
|
39269
39330
|
"tooltip-class": _ctx.tooltipClass,
|
|
39331
|
+
placement: _ctx.placement,
|
|
39270
39332
|
role: "slider",
|
|
39271
39333
|
"aria-label": _ctx.range || !vue.unref(isLabeledByFormItem) ? vue.unref(firstButtonLabel) : void 0,
|
|
39272
39334
|
"aria-labelledby": !_ctx.range && vue.unref(isLabeledByFormItem) ? (_b = vue.unref(elFormItem)) == null ? void 0 : _b.labelId : void 0,
|
|
@@ -39277,7 +39339,7 @@
|
|
|
39277
39339
|
"aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
|
|
39278
39340
|
"aria-disabled": vue.unref(sliderDisabled),
|
|
39279
39341
|
"onUpdate:modelValue": vue.unref(setFirstValue)
|
|
39280
|
-
}, null, 8, ["id", "model-value", "vertical", "tooltip-class", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
|
|
39342
|
+
}, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
|
|
39281
39343
|
_ctx.range ? (vue.openBlock(), vue.createBlock(SliderButton, {
|
|
39282
39344
|
key: 0,
|
|
39283
39345
|
ref_key: "secondButton",
|
|
@@ -39285,6 +39347,7 @@
|
|
|
39285
39347
|
"model-value": vue.unref(secondValue),
|
|
39286
39348
|
vertical: _ctx.vertical,
|
|
39287
39349
|
"tooltip-class": _ctx.tooltipClass,
|
|
39350
|
+
placement: _ctx.placement,
|
|
39288
39351
|
role: "slider",
|
|
39289
39352
|
"aria-label": vue.unref(secondButtonLabel),
|
|
39290
39353
|
"aria-valuemin": vue.unref(firstValue),
|
|
@@ -39294,7 +39357,7 @@
|
|
|
39294
39357
|
"aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
|
|
39295
39358
|
"aria-disabled": vue.unref(sliderDisabled),
|
|
39296
39359
|
"onUpdate:modelValue": vue.unref(setSecondValue)
|
|
39297
|
-
}, null, 8, ["model-value", "vertical", "tooltip-class", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true),
|
|
39360
|
+
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true),
|
|
39298
39361
|
_ctx.showStops ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
|
|
39299
39362
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(stops), (item, key) => {
|
|
39300
39363
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -39742,7 +39805,7 @@
|
|
|
39742
39805
|
}, null, 6)
|
|
39743
39806
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
39744
39807
|
vue.createElementVNode("div", {
|
|
39745
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon ? "icon" : "text")])
|
|
39808
|
+
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
|
|
39746
39809
|
}, [
|
|
39747
39810
|
vue.unref(currentStatus) !== "success" && vue.unref(currentStatus) !== "error" ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
39748
39811
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
|
|
@@ -40186,14 +40249,8 @@
|
|
|
40186
40249
|
*/
|
|
40187
40250
|
|
|
40188
40251
|
const getCell = function(event) {
|
|
40189
|
-
|
|
40190
|
-
|
|
40191
|
-
if (cell.tagName.toUpperCase() === "TD") {
|
|
40192
|
-
return cell;
|
|
40193
|
-
}
|
|
40194
|
-
cell = cell.parentNode;
|
|
40195
|
-
}
|
|
40196
|
-
return null;
|
|
40252
|
+
var _a;
|
|
40253
|
+
return (_a = event.target) == null ? void 0 : _a.closest("td");
|
|
40197
40254
|
};
|
|
40198
40255
|
const isObject = function(obj) {
|
|
40199
40256
|
return obj !== null && typeof obj === "object";
|
|
@@ -40445,11 +40502,9 @@
|
|
|
40445
40502
|
try {
|
|
40446
40503
|
popperInstance && popperInstance.destroy();
|
|
40447
40504
|
content && (parentNode == null ? void 0 : parentNode.removeChild(content));
|
|
40448
|
-
|
|
40449
|
-
|
|
40450
|
-
|
|
40451
|
-
off(scrollContainer, "scroll", removePopper);
|
|
40452
|
-
}
|
|
40505
|
+
trigger.removeEventListener("mouseenter", showPopper);
|
|
40506
|
+
trigger.removeEventListener("mouseleave", removePopper);
|
|
40507
|
+
scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
|
|
40453
40508
|
removePopper = void 0;
|
|
40454
40509
|
} catch (e) {
|
|
40455
40510
|
}
|
|
@@ -40477,11 +40532,9 @@
|
|
|
40477
40532
|
],
|
|
40478
40533
|
...popperOptions
|
|
40479
40534
|
});
|
|
40480
|
-
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
on$1(scrollContainer, "scroll", removePopper);
|
|
40484
|
-
}
|
|
40535
|
+
trigger.addEventListener("mouseenter", showPopper);
|
|
40536
|
+
trigger.addEventListener("mouseleave", removePopper);
|
|
40537
|
+
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
|
40485
40538
|
return popperInstance;
|
|
40486
40539
|
}
|
|
40487
40540
|
const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
@@ -41539,14 +41592,6 @@
|
|
|
41539
41592
|
this.bodyWidth = vue.ref(null);
|
|
41540
41593
|
this.fixedWidth = vue.ref(null);
|
|
41541
41594
|
this.rightFixedWidth = vue.ref(null);
|
|
41542
|
-
this.tableHeight = vue.ref(null);
|
|
41543
|
-
this.headerHeight = vue.ref(44);
|
|
41544
|
-
this.appendHeight = vue.ref(0);
|
|
41545
|
-
this.footerHeight = vue.ref(44);
|
|
41546
|
-
this.viewportHeight = vue.ref(null);
|
|
41547
|
-
this.bodyHeight = vue.ref(null);
|
|
41548
|
-
this.bodyScrollHeight = vue.ref(0);
|
|
41549
|
-
this.fixedBodyHeight = vue.ref(null);
|
|
41550
41595
|
this.gutterWidth = 0;
|
|
41551
41596
|
for (const name in options) {
|
|
41552
41597
|
if (hasOwn(options, name)) {
|
|
@@ -41568,15 +41613,11 @@
|
|
|
41568
41613
|
const height = this.height.value;
|
|
41569
41614
|
if (height === null)
|
|
41570
41615
|
return false;
|
|
41571
|
-
const
|
|
41572
|
-
if (this.table.vnode.el &&
|
|
41616
|
+
const scrollBarRef = this.table.refs.scrollBarRef;
|
|
41617
|
+
if (this.table.vnode.el && scrollBarRef) {
|
|
41573
41618
|
let scrollY = true;
|
|
41574
41619
|
const prevScrollY = this.scrollY.value;
|
|
41575
|
-
|
|
41576
|
-
scrollY = false;
|
|
41577
|
-
} else {
|
|
41578
|
-
scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
|
|
41579
|
-
}
|
|
41620
|
+
scrollY = scrollBarRef.wrap$.scrollHeight > scrollBarRef.wrap$.clientHeight;
|
|
41580
41621
|
this.scrollY.value = scrollY;
|
|
41581
41622
|
return prevScrollY !== scrollY;
|
|
41582
41623
|
}
|
|
@@ -41614,43 +41655,6 @@
|
|
|
41614
41655
|
return flattenColumns;
|
|
41615
41656
|
}
|
|
41616
41657
|
updateElsHeight() {
|
|
41617
|
-
var _a, _b;
|
|
41618
|
-
if (!this.table.$ready)
|
|
41619
|
-
return vue.nextTick(() => this.updateElsHeight());
|
|
41620
|
-
const {
|
|
41621
|
-
tableWrapper,
|
|
41622
|
-
headerWrapper,
|
|
41623
|
-
appendWrapper,
|
|
41624
|
-
footerWrapper,
|
|
41625
|
-
tableHeader,
|
|
41626
|
-
tableBody
|
|
41627
|
-
} = this.table.refs;
|
|
41628
|
-
if (tableWrapper && tableWrapper.style.display === "none") {
|
|
41629
|
-
return;
|
|
41630
|
-
}
|
|
41631
|
-
const { tableLayout } = this.table.props;
|
|
41632
|
-
this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
|
|
41633
|
-
if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
|
|
41634
|
-
return;
|
|
41635
|
-
}
|
|
41636
|
-
const headerTrElm = tableHeader ? tableHeader : null;
|
|
41637
|
-
const noneHeader = this.headerDisplayNone(headerTrElm);
|
|
41638
|
-
const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
|
|
41639
|
-
const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
|
|
41640
|
-
if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
|
|
41641
|
-
return vue.nextTick(() => this.updateElsHeight());
|
|
41642
|
-
}
|
|
41643
|
-
const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
|
|
41644
|
-
const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
|
|
41645
|
-
if (this.height.value !== null) {
|
|
41646
|
-
if (this.bodyHeight.value === null) {
|
|
41647
|
-
requestAnimationFrame(() => this.updateElsHeight());
|
|
41648
|
-
}
|
|
41649
|
-
this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
|
|
41650
|
-
this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
|
|
41651
|
-
}
|
|
41652
|
-
this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
|
|
41653
|
-
this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
|
|
41654
41658
|
this.updateScrollY();
|
|
41655
41659
|
this.notifyObservers("scrollable");
|
|
41656
41660
|
}
|
|
@@ -42177,12 +42181,10 @@
|
|
|
42177
42181
|
}
|
|
42178
42182
|
};
|
|
42179
42183
|
const handleMouseMove = (event, column) => {
|
|
42184
|
+
var _a;
|
|
42180
42185
|
if (column.children && column.children.length > 0)
|
|
42181
42186
|
return;
|
|
42182
|
-
|
|
42183
|
-
while (target && target.tagName !== "TH") {
|
|
42184
|
-
target = target.parentNode;
|
|
42185
|
-
}
|
|
42187
|
+
const target = (_a = event.target) == null ? void 0 : _a.closest("th");
|
|
42186
42188
|
if (!column || !column.resizable)
|
|
42187
42189
|
return;
|
|
42188
42190
|
if (!dragging.value && props.border) {
|
|
@@ -42215,13 +42217,11 @@
|
|
|
42215
42217
|
return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
|
|
42216
42218
|
};
|
|
42217
42219
|
const handleSortClick = (event, column, givenOrder) => {
|
|
42220
|
+
var _a;
|
|
42218
42221
|
event.stopPropagation();
|
|
42219
42222
|
const order = column.order === givenOrder ? null : givenOrder || toggleOrder(column);
|
|
42220
|
-
|
|
42221
|
-
|
|
42222
|
-
target = target.parentNode;
|
|
42223
|
-
}
|
|
42224
|
-
if (target && target.tagName === "TH") {
|
|
42223
|
+
const target = (_a = event.target) == null ? void 0 : _a.closest("th");
|
|
42224
|
+
if (target) {
|
|
42225
42225
|
if (hasClass(target, "noclick")) {
|
|
42226
42226
|
removeClass(target, "noclick");
|
|
42227
42227
|
return;
|
|
@@ -43286,14 +43286,18 @@
|
|
|
43286
43286
|
};
|
|
43287
43287
|
const resizeState = vue.ref({
|
|
43288
43288
|
width: null,
|
|
43289
|
-
height: null
|
|
43289
|
+
height: null,
|
|
43290
|
+
headerHeight: null
|
|
43290
43291
|
});
|
|
43291
43292
|
const isGroup = vue.ref(false);
|
|
43292
43293
|
const scrollbarViewStyle = {
|
|
43293
|
-
display: "block",
|
|
43294
|
+
display: "inline-block",
|
|
43294
43295
|
verticalAlign: "middle"
|
|
43295
43296
|
};
|
|
43296
43297
|
const tableWidth = vue.ref();
|
|
43298
|
+
const tableScrollHeight = vue.ref(0);
|
|
43299
|
+
const bodyScrollHeight = vue.ref(0);
|
|
43300
|
+
const headerScrollHeight = vue.ref(0);
|
|
43297
43301
|
vue.watchEffect(() => {
|
|
43298
43302
|
layout.setHeight(props.height);
|
|
43299
43303
|
});
|
|
@@ -43350,12 +43354,14 @@
|
|
|
43350
43354
|
bindEvents();
|
|
43351
43355
|
requestAnimationFrame(doLayout);
|
|
43352
43356
|
const el = table.vnode.el;
|
|
43357
|
+
const tableHeader = table.refs.headerWrapper;
|
|
43353
43358
|
if (props.flexible && el && el.parentElement) {
|
|
43354
43359
|
el.parentElement.style.minWidth = "0";
|
|
43355
43360
|
}
|
|
43356
43361
|
resizeState.value = {
|
|
43357
43362
|
width: tableWidth.value = el.offsetWidth,
|
|
43358
|
-
height: el.offsetHeight
|
|
43363
|
+
height: el.offsetHeight,
|
|
43364
|
+
headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
|
|
43359
43365
|
};
|
|
43360
43366
|
store.states.columns.value.forEach((column) => {
|
|
43361
43367
|
if (column.filteredValue && column.filteredValue.length) {
|
|
@@ -43426,23 +43432,36 @@
|
|
|
43426
43432
|
}
|
|
43427
43433
|
};
|
|
43428
43434
|
const resizeListener = () => {
|
|
43435
|
+
var _a;
|
|
43429
43436
|
if (!table.$ready)
|
|
43430
43437
|
return;
|
|
43431
43438
|
let shouldUpdateLayout = false;
|
|
43432
43439
|
const el = table.vnode.el;
|
|
43433
|
-
const {
|
|
43440
|
+
const {
|
|
43441
|
+
width: oldWidth,
|
|
43442
|
+
height: oldHeight,
|
|
43443
|
+
headerHeight: oldHeaderHeight
|
|
43444
|
+
} = resizeState.value;
|
|
43434
43445
|
const width = tableWidth.value = el.offsetWidth;
|
|
43435
43446
|
if (oldWidth !== width) {
|
|
43436
43447
|
shouldUpdateLayout = true;
|
|
43437
43448
|
}
|
|
43438
|
-
const
|
|
43439
|
-
if ((props.height || shouldUpdateHeight.value) && oldHeight !==
|
|
43449
|
+
const height = el.offsetHeight;
|
|
43450
|
+
if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {
|
|
43451
|
+
shouldUpdateLayout = true;
|
|
43452
|
+
}
|
|
43453
|
+
const tableHeader = table.refs.headerWrapper;
|
|
43454
|
+
if (props.showHeader && tableHeader.offsetHeight !== oldHeaderHeight) {
|
|
43440
43455
|
shouldUpdateLayout = true;
|
|
43441
43456
|
}
|
|
43457
|
+
tableScrollHeight.value = table.refs.tableWrapper.scrollHeight;
|
|
43458
|
+
headerScrollHeight.value = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43459
|
+
bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value;
|
|
43442
43460
|
if (shouldUpdateLayout) {
|
|
43443
43461
|
resizeState.value = {
|
|
43444
43462
|
width,
|
|
43445
|
-
height
|
|
43463
|
+
height,
|
|
43464
|
+
headerHeight: props.showHeader ? tableHeader.offsetHeight : null
|
|
43446
43465
|
};
|
|
43447
43466
|
doLayout();
|
|
43448
43467
|
}
|
|
@@ -43457,57 +43476,57 @@
|
|
|
43457
43476
|
return "fixed";
|
|
43458
43477
|
return props.tableLayout;
|
|
43459
43478
|
});
|
|
43460
|
-
|
|
43461
|
-
|
|
43462
|
-
|
|
43463
|
-
|
|
43464
|
-
|
|
43465
|
-
|
|
43466
|
-
return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
|
|
43479
|
+
const emptyBlockStyle = vue.computed(() => {
|
|
43480
|
+
if (props.data && props.data.length)
|
|
43481
|
+
return null;
|
|
43482
|
+
let height = "100%";
|
|
43483
|
+
if (bodyScrollHeight.value) {
|
|
43484
|
+
height = `${bodyScrollHeight.value}px`;
|
|
43467
43485
|
}
|
|
43468
|
-
|
|
43469
|
-
|
|
43470
|
-
|
|
43471
|
-
|
|
43472
|
-
|
|
43473
|
-
|
|
43486
|
+
const width = tableWidth.value;
|
|
43487
|
+
return {
|
|
43488
|
+
width: width ? `${width}px` : "",
|
|
43489
|
+
height
|
|
43490
|
+
};
|
|
43491
|
+
});
|
|
43492
|
+
const tableInnerStyle = vue.computed(() => {
|
|
43474
43493
|
if (props.height) {
|
|
43475
|
-
return
|
|
43476
|
-
|
|
43477
|
-
|
|
43494
|
+
return {
|
|
43495
|
+
height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
|
|
43496
|
+
};
|
|
43478
43497
|
}
|
|
43479
|
-
|
|
43498
|
+
if (props.maxHeight) {
|
|
43499
|
+
return {
|
|
43500
|
+
maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
|
|
43501
|
+
};
|
|
43502
|
+
}
|
|
43503
|
+
return {};
|
|
43480
43504
|
});
|
|
43481
|
-
const
|
|
43482
|
-
|
|
43483
|
-
const bodyHeight2 = layout.bodyHeight.value;
|
|
43484
|
-
const footerHeight = layout.footerHeight.value || 0;
|
|
43505
|
+
const scrollbarStyle = vue.computed(() => {
|
|
43506
|
+
var _a;
|
|
43485
43507
|
if (props.height) {
|
|
43486
43508
|
return {
|
|
43487
|
-
height:
|
|
43509
|
+
height: "100%"
|
|
43488
43510
|
};
|
|
43489
|
-
}
|
|
43490
|
-
|
|
43491
|
-
if (maxHeight
|
|
43511
|
+
}
|
|
43512
|
+
if (props.maxHeight) {
|
|
43513
|
+
if (!Number.isNaN(Number(props.maxHeight))) {
|
|
43514
|
+
const headerHeight = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43515
|
+
const maxHeight = props.maxHeight;
|
|
43516
|
+
const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
|
|
43517
|
+
if (reachMaxHeight) {
|
|
43518
|
+
return {
|
|
43519
|
+
maxHeight: `${tableScrollHeight.value - headerHeight}px`
|
|
43520
|
+
};
|
|
43521
|
+
}
|
|
43522
|
+
} else {
|
|
43492
43523
|
return {
|
|
43493
|
-
|
|
43524
|
+
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value}px)`
|
|
43494
43525
|
};
|
|
43495
43526
|
}
|
|
43496
43527
|
}
|
|
43497
43528
|
return {};
|
|
43498
43529
|
});
|
|
43499
|
-
const emptyBlockStyle = vue.computed(() => {
|
|
43500
|
-
if (props.data && props.data.length)
|
|
43501
|
-
return null;
|
|
43502
|
-
let height2 = "100%";
|
|
43503
|
-
if (layout.appendHeight.value) {
|
|
43504
|
-
height2 = `calc(100% - ${layout.appendHeight.value}px)`;
|
|
43505
|
-
}
|
|
43506
|
-
return {
|
|
43507
|
-
width: tableWidth.value ? `${tableWidth.value}px` : "",
|
|
43508
|
-
height: height2
|
|
43509
|
-
};
|
|
43510
|
-
});
|
|
43511
43530
|
const handleFixedMousewheel = (event, data) => {
|
|
43512
43531
|
const bodyWrapper = table.refs.bodyWrapper;
|
|
43513
43532
|
if (Math.abs(data.spinY) > 0) {
|
|
@@ -43523,47 +43542,6 @@
|
|
|
43523
43542
|
bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
|
|
43524
43543
|
}
|
|
43525
43544
|
};
|
|
43526
|
-
const fixedHeight = vue.computed(() => {
|
|
43527
|
-
if (props.maxHeight) {
|
|
43528
|
-
if (props.showSummary) {
|
|
43529
|
-
return {
|
|
43530
|
-
bottom: 0
|
|
43531
|
-
};
|
|
43532
|
-
}
|
|
43533
|
-
return {
|
|
43534
|
-
bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
|
|
43535
|
-
};
|
|
43536
|
-
} else {
|
|
43537
|
-
if (props.showSummary) {
|
|
43538
|
-
return {
|
|
43539
|
-
height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
|
|
43540
|
-
};
|
|
43541
|
-
}
|
|
43542
|
-
return {
|
|
43543
|
-
height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
|
|
43544
|
-
};
|
|
43545
|
-
}
|
|
43546
|
-
});
|
|
43547
|
-
const fixedBodyHeight = vue.computed(() => {
|
|
43548
|
-
if (props.height) {
|
|
43549
|
-
return {
|
|
43550
|
-
height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
|
|
43551
|
-
};
|
|
43552
|
-
} else if (props.maxHeight) {
|
|
43553
|
-
let maxHeight = parseHeight(props.maxHeight);
|
|
43554
|
-
if (typeof maxHeight === "number") {
|
|
43555
|
-
maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
|
|
43556
|
-
if (props.showHeader) {
|
|
43557
|
-
maxHeight -= layout.headerHeight.value;
|
|
43558
|
-
}
|
|
43559
|
-
maxHeight -= layout.footerHeight.value;
|
|
43560
|
-
return {
|
|
43561
|
-
"max-height": `${maxHeight}px`
|
|
43562
|
-
};
|
|
43563
|
-
}
|
|
43564
|
-
}
|
|
43565
|
-
return {};
|
|
43566
|
-
});
|
|
43567
43545
|
return {
|
|
43568
43546
|
isHidden,
|
|
43569
43547
|
renderExpanded,
|
|
@@ -43572,19 +43550,17 @@
|
|
|
43572
43550
|
handleMouseLeave,
|
|
43573
43551
|
handleHeaderFooterMousewheel,
|
|
43574
43552
|
tableSize,
|
|
43575
|
-
bodyHeight,
|
|
43576
|
-
height,
|
|
43577
43553
|
emptyBlockStyle,
|
|
43578
43554
|
handleFixedMousewheel,
|
|
43579
|
-
fixedHeight,
|
|
43580
|
-
fixedBodyHeight,
|
|
43581
43555
|
resizeProxyVisible,
|
|
43582
43556
|
bodyWidth,
|
|
43583
43557
|
resizeState,
|
|
43584
43558
|
doLayout,
|
|
43585
43559
|
tableBodyStyles,
|
|
43586
43560
|
tableLayout,
|
|
43587
|
-
scrollbarViewStyle
|
|
43561
|
+
scrollbarViewStyle,
|
|
43562
|
+
tableInnerStyle,
|
|
43563
|
+
scrollbarStyle
|
|
43588
43564
|
};
|
|
43589
43565
|
}
|
|
43590
43566
|
|
|
@@ -43759,19 +43735,17 @@
|
|
|
43759
43735
|
handleMouseLeave,
|
|
43760
43736
|
handleHeaderFooterMousewheel,
|
|
43761
43737
|
tableSize,
|
|
43762
|
-
bodyHeight,
|
|
43763
|
-
height,
|
|
43764
43738
|
emptyBlockStyle,
|
|
43765
43739
|
handleFixedMousewheel,
|
|
43766
|
-
fixedHeight,
|
|
43767
|
-
fixedBodyHeight,
|
|
43768
43740
|
resizeProxyVisible,
|
|
43769
43741
|
bodyWidth,
|
|
43770
43742
|
resizeState,
|
|
43771
43743
|
doLayout,
|
|
43772
43744
|
tableBodyStyles,
|
|
43773
43745
|
tableLayout,
|
|
43774
|
-
scrollbarViewStyle
|
|
43746
|
+
scrollbarViewStyle,
|
|
43747
|
+
tableInnerStyle,
|
|
43748
|
+
scrollbarStyle
|
|
43775
43749
|
} = useStyle(props, layout, store, table);
|
|
43776
43750
|
const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar$1();
|
|
43777
43751
|
const debouncedUpdateLayout = debounce(doLayout, 50);
|
|
@@ -43802,14 +43776,10 @@
|
|
|
43802
43776
|
resizeState,
|
|
43803
43777
|
isGroup,
|
|
43804
43778
|
bodyWidth,
|
|
43805
|
-
bodyHeight,
|
|
43806
|
-
height,
|
|
43807
43779
|
tableBodyStyles,
|
|
43808
43780
|
emptyBlockStyle,
|
|
43809
43781
|
debouncedUpdateLayout,
|
|
43810
43782
|
handleFixedMousewheel,
|
|
43811
|
-
fixedHeight,
|
|
43812
|
-
fixedBodyHeight,
|
|
43813
43783
|
setCurrentRow,
|
|
43814
43784
|
getSelectionRows,
|
|
43815
43785
|
toggleRowSelection,
|
|
@@ -43827,6 +43797,8 @@
|
|
|
43827
43797
|
computedEmptyText,
|
|
43828
43798
|
tableLayout,
|
|
43829
43799
|
scrollbarViewStyle,
|
|
43800
|
+
tableInnerStyle,
|
|
43801
|
+
scrollbarStyle,
|
|
43830
43802
|
scrollBarRef,
|
|
43831
43803
|
scrollTo,
|
|
43832
43804
|
setScrollLeft,
|
|
@@ -43872,7 +43844,8 @@
|
|
|
43872
43844
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => _ctx.handleMouseLeave())
|
|
43873
43845
|
}, [
|
|
43874
43846
|
vue.createElementVNode("div", {
|
|
43875
|
-
class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
|
|
43847
|
+
class: vue.normalizeClass(_ctx.ns.e("inner-wrapper")),
|
|
43848
|
+
style: vue.normalizeStyle(_ctx.tableInnerStyle)
|
|
43876
43849
|
}, [
|
|
43877
43850
|
vue.createElementVNode("div", _hoisted_2$7, [
|
|
43878
43851
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -43907,14 +43880,12 @@
|
|
|
43907
43880
|
]) : vue.createCommentVNode("v-if", true),
|
|
43908
43881
|
vue.createElementVNode("div", {
|
|
43909
43882
|
ref: "bodyWrapper",
|
|
43910
|
-
style: vue.normalizeStyle(_ctx.bodyHeight),
|
|
43911
43883
|
class: vue.normalizeClass(_ctx.ns.e("body-wrapper"))
|
|
43912
43884
|
}, [
|
|
43913
43885
|
vue.createVNode(_component_el_scrollbar, {
|
|
43914
43886
|
ref: "scrollBarRef",
|
|
43915
|
-
height: _ctx.maxHeight ? void 0 : _ctx.height,
|
|
43916
|
-
"max-height": _ctx.maxHeight ? _ctx.height : void 0,
|
|
43917
43887
|
"view-style": _ctx.scrollbarViewStyle,
|
|
43888
|
+
"wrap-style": _ctx.scrollbarStyle,
|
|
43918
43889
|
always: _ctx.scrollbarAlwaysOn
|
|
43919
43890
|
}, {
|
|
43920
43891
|
default: vue.withCtx(() => [
|
|
@@ -43973,30 +43944,30 @@
|
|
|
43973
43944
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
43974
43945
|
]),
|
|
43975
43946
|
_: 3
|
|
43976
|
-
}, 8, ["
|
|
43977
|
-
],
|
|
43978
|
-
_ctx.
|
|
43947
|
+
}, 8, ["view-style", "wrap-style", "always"])
|
|
43948
|
+
], 2),
|
|
43949
|
+
_ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
43979
43950
|
key: 1,
|
|
43951
|
+
ref: "footerWrapper",
|
|
43952
|
+
class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
43953
|
+
}, [
|
|
43954
|
+
vue.createVNode(_component_table_footer, {
|
|
43955
|
+
border: _ctx.border,
|
|
43956
|
+
"default-sort": _ctx.defaultSort,
|
|
43957
|
+
store: _ctx.store,
|
|
43958
|
+
style: vue.normalizeStyle(_ctx.tableBodyStyles),
|
|
43959
|
+
"sum-text": _ctx.computedSumText,
|
|
43960
|
+
"summary-method": _ctx.summaryMethod
|
|
43961
|
+
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
43962
|
+
], 2)), [
|
|
43963
|
+
[vue.vShow, !_ctx.isEmpty],
|
|
43964
|
+
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
43965
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
43966
|
+
_ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
43967
|
+
key: 2,
|
|
43980
43968
|
class: vue.normalizeClass(_ctx.ns.e("border-left-patch"))
|
|
43981
43969
|
}, null, 2)) : vue.createCommentVNode("v-if", true)
|
|
43982
|
-
],
|
|
43983
|
-
_ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
43984
|
-
key: 0,
|
|
43985
|
-
ref: "footerWrapper",
|
|
43986
|
-
class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
43987
|
-
}, [
|
|
43988
|
-
vue.createVNode(_component_table_footer, {
|
|
43989
|
-
border: _ctx.border,
|
|
43990
|
-
"default-sort": _ctx.defaultSort,
|
|
43991
|
-
store: _ctx.store,
|
|
43992
|
-
style: vue.normalizeStyle(_ctx.tableBodyStyles),
|
|
43993
|
-
"sum-text": _ctx.computedSumText,
|
|
43994
|
-
"summary-method": _ctx.summaryMethod
|
|
43995
|
-
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
43996
|
-
], 2)), [
|
|
43997
|
-
[vue.vShow, !_ctx.isEmpty],
|
|
43998
|
-
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
43999
|
-
]) : vue.createCommentVNode("v-if", true),
|
|
43970
|
+
], 6),
|
|
44000
43971
|
vue.withDirectives(vue.createElementVNode("div", {
|
|
44001
43972
|
ref: "resizeProxy",
|
|
44002
43973
|
class: vue.normalizeClass(_ctx.ns.e("column-resize-proxy"))
|
|
@@ -46892,7 +46863,7 @@
|
|
|
46892
46863
|
} = EVENT_CODE;
|
|
46893
46864
|
if (![up, down, left, right].includes(code))
|
|
46894
46865
|
return;
|
|
46895
|
-
const tabList = Array.from(e.currentTarget.querySelectorAll("[role=tab]"));
|
|
46866
|
+
const tabList = Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));
|
|
46896
46867
|
const currentIndex = tabList.indexOf(e.target);
|
|
46897
46868
|
let nextIndex;
|
|
46898
46869
|
if (code === left || code === up) {
|
|
@@ -46955,8 +46926,9 @@
|
|
|
46955
46926
|
})])] : null;
|
|
46956
46927
|
const tabs = props.panes.map((pane, index) => {
|
|
46957
46928
|
var _a, _b, _c, _d;
|
|
46929
|
+
const disabled = pane.props.disabled;
|
|
46958
46930
|
const tabName = (_b = (_a = pane.props.name) != null ? _a : pane.index) != null ? _b : `${index}`;
|
|
46959
|
-
const closable = pane.isClosable || props.editable;
|
|
46931
|
+
const closable = !disabled && (pane.isClosable || props.editable);
|
|
46960
46932
|
pane.index = `${index}`;
|
|
46961
46933
|
const btnClose = closable ? vue.createVNode(ElIcon, {
|
|
46962
46934
|
"class": "is-icon-close",
|
|
@@ -46965,10 +46937,10 @@
|
|
|
46965
46937
|
default: () => [vue.createVNode(close_default, null, null)]
|
|
46966
46938
|
}) : null;
|
|
46967
46939
|
const tabLabelContent = ((_d = (_c = pane.slots).label) == null ? void 0 : _d.call(_c)) || pane.props.label;
|
|
46968
|
-
const tabindex = pane.active ? 0 : -1;
|
|
46940
|
+
const tabindex = !disabled && pane.active ? 0 : -1;
|
|
46969
46941
|
return vue.createVNode("div", {
|
|
46970
46942
|
"ref": `tab-${tabName}`,
|
|
46971
|
-
"class": [ns.e("item"), ns.is(rootTabs.props.tabPosition), ns.is("active", pane.active), ns.is("disabled",
|
|
46943
|
+
"class": [ns.e("item"), ns.is(rootTabs.props.tabPosition), ns.is("active", pane.active), ns.is("disabled", disabled), ns.is("closable", closable), ns.is("focus", isFocus.value)],
|
|
46972
46944
|
"id": `tab-${tabName}`,
|
|
46973
46945
|
"key": `tab-${tabName}`,
|
|
46974
46946
|
"aria-controls": `pane-${tabName}`,
|
|
@@ -47091,6 +47063,14 @@
|
|
|
47091
47063
|
emit("edit", void 0, "add");
|
|
47092
47064
|
emit("tab-add");
|
|
47093
47065
|
};
|
|
47066
|
+
useDeprecated({
|
|
47067
|
+
from: '"activeName"',
|
|
47068
|
+
replacement: '"model-value" or "v-model"',
|
|
47069
|
+
scope: "ElTabs",
|
|
47070
|
+
version: "2.3.0",
|
|
47071
|
+
ref: "https://element-plus.org/en-US/component/tabs.html#attributes",
|
|
47072
|
+
type: "Attribute"
|
|
47073
|
+
}, vue.computed(() => !!props.activeName));
|
|
47094
47074
|
vue.watch(() => props.activeName, (modelValue) => setCurrentName(modelValue));
|
|
47095
47075
|
vue.watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
47096
47076
|
vue.watch(currentName, async () => {
|
|
@@ -48190,6 +48170,10 @@
|
|
|
48190
48170
|
type: String,
|
|
48191
48171
|
values: ["original", "push", "unshift"],
|
|
48192
48172
|
default: "original"
|
|
48173
|
+
},
|
|
48174
|
+
validateEvent: {
|
|
48175
|
+
type: Boolean,
|
|
48176
|
+
default: true
|
|
48193
48177
|
}
|
|
48194
48178
|
});
|
|
48195
48179
|
const transferCheckedChangeFn = (value, movedKeys) => [value, movedKeys].every(isArray) || isArray(value) && isNil(movedKeys);
|
|
@@ -48545,7 +48529,9 @@
|
|
|
48545
48529
|
const panelFilterPlaceholder = vue.computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
48546
48530
|
vue.watch(() => props.modelValue, () => {
|
|
48547
48531
|
var _a;
|
|
48548
|
-
|
|
48532
|
+
if (props.validateEvent) {
|
|
48533
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
48534
|
+
}
|
|
48549
48535
|
});
|
|
48550
48536
|
const optionRender = vue.computed(() => (option) => {
|
|
48551
48537
|
if (props.renderContent)
|
|
@@ -50306,6 +50292,12 @@
|
|
|
50306
50292
|
setup(props, ctx) {
|
|
50307
50293
|
const result = ElOption.setup(props, ctx);
|
|
50308
50294
|
delete result.selectOptionClick;
|
|
50295
|
+
const vm = vue.getCurrentInstance().proxy;
|
|
50296
|
+
vue.nextTick(() => {
|
|
50297
|
+
if (!result.select.cachedOptions.get(vm.value)) {
|
|
50298
|
+
result.select.onOptionCreate(vm);
|
|
50299
|
+
}
|
|
50300
|
+
});
|
|
50309
50301
|
return result;
|
|
50310
50302
|
},
|
|
50311
50303
|
methods: {
|
|
@@ -50316,6 +50308,31 @@
|
|
|
50316
50308
|
});
|
|
50317
50309
|
var TreeSelectOption = component;
|
|
50318
50310
|
|
|
50311
|
+
function isValidValue(val) {
|
|
50312
|
+
return val || val === 0;
|
|
50313
|
+
}
|
|
50314
|
+
function isValidArray(val) {
|
|
50315
|
+
return Array.isArray(val) && val.length;
|
|
50316
|
+
}
|
|
50317
|
+
function toValidArray(val) {
|
|
50318
|
+
return Array.isArray(val) ? val : isValidValue(val) ? [val] : [];
|
|
50319
|
+
}
|
|
50320
|
+
function treeFind(treeData, findCallback, getChildren, resultCallback, parent) {
|
|
50321
|
+
for (let i = 0; i < treeData.length; i++) {
|
|
50322
|
+
const data = treeData[i];
|
|
50323
|
+
if (findCallback(data, i, treeData, parent)) {
|
|
50324
|
+
return resultCallback ? resultCallback(data, i, treeData, parent) : data;
|
|
50325
|
+
} else {
|
|
50326
|
+
const children = getChildren(data);
|
|
50327
|
+
if (isValidArray(children)) {
|
|
50328
|
+
const find = treeFind(children, findCallback, getChildren, resultCallback, data);
|
|
50329
|
+
if (find)
|
|
50330
|
+
return find;
|
|
50331
|
+
}
|
|
50332
|
+
}
|
|
50333
|
+
}
|
|
50334
|
+
}
|
|
50335
|
+
|
|
50319
50336
|
const useTree$1 = (props, { attrs, slots, emit }, {
|
|
50320
50337
|
select,
|
|
50321
50338
|
tree,
|
|
@@ -50347,6 +50364,9 @@
|
|
|
50347
50364
|
return data[propVal];
|
|
50348
50365
|
}
|
|
50349
50366
|
};
|
|
50367
|
+
const defaultExpandedParentKeys = toValidArray(props.modelValue).map((value) => {
|
|
50368
|
+
return treeFind(props.data || [], (data) => getNodeValByProp("value", data) === value, (data) => getNodeValByProp("children", data), (data, index, array, parent) => parent && getNodeValByProp("value", parent));
|
|
50369
|
+
}).filter((item) => isValidValue(item));
|
|
50350
50370
|
return {
|
|
50351
50371
|
...pick(vue.toRefs(props), Object.keys(_Tree.props)),
|
|
50352
50372
|
...attrs,
|
|
@@ -50355,12 +50375,7 @@
|
|
|
50355
50375
|
return !props.checkStrictly;
|
|
50356
50376
|
}),
|
|
50357
50377
|
defaultExpandedKeys: vue.computed(() => {
|
|
50358
|
-
|
|
50359
|
-
const parentKeys = tree.value ? values.map((item) => {
|
|
50360
|
-
var _a, _b, _c;
|
|
50361
|
-
return (_c = (_b = (_a = tree.value) == null ? void 0 : _a.getNode(item)) == null ? void 0 : _b.parent) == null ? void 0 : _c.key;
|
|
50362
|
-
}).filter((item) => isValidValue(item)) : values;
|
|
50363
|
-
return props.defaultExpandedKeys ? props.defaultExpandedKeys.concat(parentKeys) : parentKeys;
|
|
50378
|
+
return props.defaultExpandedKeys ? props.defaultExpandedKeys.concat(defaultExpandedParentKeys) : defaultExpandedParentKeys;
|
|
50364
50379
|
}),
|
|
50365
50380
|
renderContent: (h, { node, data, store }) => {
|
|
50366
50381
|
return h(TreeSelectOption, {
|
|
@@ -50380,7 +50395,9 @@
|
|
|
50380
50395
|
onNodeClick: (data, node, e) => {
|
|
50381
50396
|
var _a, _b, _c;
|
|
50382
50397
|
(_a = attrs.onNodeClick) == null ? void 0 : _a.call(attrs, data, node, e);
|
|
50383
|
-
if (
|
|
50398
|
+
if (props.showCheckbox && props.checkOnClickNode)
|
|
50399
|
+
return;
|
|
50400
|
+
if (!props.showCheckbox && (props.checkStrictly || node.isLeaf)) {
|
|
50384
50401
|
if (!getNodeValByProp("disabled", data)) {
|
|
50385
50402
|
const option = (_b = select.value) == null ? void 0 : _b.options.get(getNodeValByProp("value", data));
|
|
50386
50403
|
(_c = select.value) == null ? void 0 : _c.handleOptionSelect(option, true);
|
|
@@ -50390,20 +50407,24 @@
|
|
|
50390
50407
|
}
|
|
50391
50408
|
},
|
|
50392
50409
|
onCheck: (data, params) => {
|
|
50393
|
-
var _a
|
|
50410
|
+
var _a;
|
|
50394
50411
|
(_a = attrs.onCheck) == null ? void 0 : _a.call(attrs, data, params);
|
|
50395
|
-
const
|
|
50396
|
-
|
|
50397
|
-
|
|
50412
|
+
const dataValue = getNodeValByProp("value", data);
|
|
50413
|
+
if (props.checkStrictly) {
|
|
50414
|
+
emit(UPDATE_MODEL_EVENT, props.multiple ? params.checkedKeys : params.checkedKeys.includes(dataValue) ? dataValue : void 0);
|
|
50415
|
+
} else {
|
|
50416
|
+
if (props.multiple) {
|
|
50417
|
+
emit(UPDATE_MODEL_EVENT, tree.value.getCheckedKeys(true));
|
|
50418
|
+
} else {
|
|
50419
|
+
const firstLeaf = treeFind([data], (data2) => !isValidArray(getNodeValByProp("children", data2)) && !getNodeValByProp("disabled", data2), (data2) => getNodeValByProp("children", data2));
|
|
50420
|
+
const firstLeafKey = firstLeaf ? getNodeValByProp("value", firstLeaf) : void 0;
|
|
50421
|
+
const hasCheckedChild = isValidValue(props.modelValue) && !!treeFind([data], (data2) => getNodeValByProp("value", data2) === props.modelValue, (data2) => getNodeValByProp("children", data2));
|
|
50422
|
+
emit(UPDATE_MODEL_EVENT, firstLeafKey === props.modelValue || hasCheckedChild ? void 0 : firstLeafKey);
|
|
50423
|
+
}
|
|
50424
|
+
}
|
|
50398
50425
|
}
|
|
50399
50426
|
};
|
|
50400
50427
|
};
|
|
50401
|
-
function isValidValue(val) {
|
|
50402
|
-
return val || val === 0;
|
|
50403
|
-
}
|
|
50404
|
-
function toValidArray(val) {
|
|
50405
|
-
return Array.isArray(val) ? val : isValidValue(val) ? [val] : [];
|
|
50406
|
-
}
|
|
50407
50428
|
|
|
50408
50429
|
const _sfc_main$9 = vue.defineComponent({
|
|
50409
50430
|
name: "ElTreeSelect",
|
|
@@ -52048,7 +52069,7 @@
|
|
|
52048
52069
|
props.onError(err, uploadFile, uploadFiles.value);
|
|
52049
52070
|
}
|
|
52050
52071
|
}
|
|
52051
|
-
uploadFiles.value.
|
|
52072
|
+
uploadFiles.value = [...uploadFiles.value, uploadFile];
|
|
52052
52073
|
props.onChange(uploadFile, uploadFiles.value);
|
|
52053
52074
|
};
|
|
52054
52075
|
const handleRemove = async (file) => {
|
|
@@ -52826,7 +52847,7 @@
|
|
|
52826
52847
|
const { prev } = getInstance(id);
|
|
52827
52848
|
if (!prev)
|
|
52828
52849
|
return 0;
|
|
52829
|
-
return prev.vm.bottom;
|
|
52850
|
+
return prev.vm.exposeProxy.bottom;
|
|
52830
52851
|
};
|
|
52831
52852
|
|
|
52832
52853
|
const _hoisted_1$2 = ["id"];
|
|
@@ -52973,7 +52994,9 @@
|
|
|
52973
52994
|
...messageDefaults,
|
|
52974
52995
|
...options
|
|
52975
52996
|
};
|
|
52976
|
-
if (
|
|
52997
|
+
if (!normalized.appendTo) {
|
|
52998
|
+
normalized.appendTo = document.body;
|
|
52999
|
+
} else if (isString(normalized.appendTo)) {
|
|
52977
53000
|
let appendTo = document.querySelector(normalized.appendTo);
|
|
52978
53001
|
if (!isElement$1(appendTo)) {
|
|
52979
53002
|
appendTo = document.body;
|
|
@@ -52991,14 +53014,13 @@
|
|
|
52991
53014
|
handler.close();
|
|
52992
53015
|
};
|
|
52993
53016
|
const createMessage = ({ appendTo, ...options }, context) => {
|
|
52994
|
-
var _a;
|
|
52995
53017
|
const { nextZIndex } = useZIndex();
|
|
52996
53018
|
const id = `message_${seed$1++}`;
|
|
52997
53019
|
const userOnClose = options.onClose;
|
|
52998
53020
|
const container = document.createElement("div");
|
|
52999
53021
|
const props = {
|
|
53000
53022
|
...options,
|
|
53001
|
-
zIndex: (
|
|
53023
|
+
zIndex: nextZIndex() + options.zIndex,
|
|
53002
53024
|
id,
|
|
53003
53025
|
onClose: () => {
|
|
53004
53026
|
userOnClose == null ? void 0 : userOnClose();
|
|
@@ -53012,10 +53034,10 @@
|
|
|
53012
53034
|
vnode.appContext = context || message._context;
|
|
53013
53035
|
vue.render(vnode, container);
|
|
53014
53036
|
appendTo.appendChild(container.firstElementChild);
|
|
53015
|
-
const vm = vnode.component
|
|
53037
|
+
const vm = vnode.component;
|
|
53016
53038
|
const handler = {
|
|
53017
53039
|
close: () => {
|
|
53018
|
-
vm.visible = false;
|
|
53040
|
+
vm.exposeProxy.visible = false;
|
|
53019
53041
|
}
|
|
53020
53042
|
};
|
|
53021
53043
|
const instance = {
|
|
@@ -54147,8 +54169,7 @@
|
|
|
54147
54169
|
exports.POPPER_INJECTION_KEY = POPPER_INJECTION_KEY;
|
|
54148
54170
|
exports.RIGHT_CHECK_CHANGE_EVENT = RIGHT_CHECK_CHANGE_EVENT;
|
|
54149
54171
|
exports.ROOT_PICKER_INJECTION_KEY = ROOT_PICKER_INJECTION_KEY;
|
|
54150
|
-
exports.RepeatClick =
|
|
54151
|
-
exports.Resize = Resize;
|
|
54172
|
+
exports.RepeatClick = RepeatClick;
|
|
54152
54173
|
exports.RowAlign = RowAlign;
|
|
54153
54174
|
exports.RowJustify = RowJustify;
|
|
54154
54175
|
exports.TOOLTIP_INJECTION_KEY = TOOLTIP_INJECTION_KEY;
|
|
@@ -54214,6 +54235,7 @@
|
|
|
54214
54235
|
exports.dayjs = dayjs;
|
|
54215
54236
|
exports["default"] = installer;
|
|
54216
54237
|
exports.defaultNamespace = defaultNamespace;
|
|
54238
|
+
exports.descriptionProps = descriptionProps;
|
|
54217
54239
|
exports.dialogEmits = dialogEmits;
|
|
54218
54240
|
exports.dialogInjectionKey = dialogInjectionKey;
|
|
54219
54241
|
exports.dialogProps = dialogProps;
|