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.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v2.2.
|
|
1
|
+
/*! Element Plus v2.2.10 */
|
|
2
2
|
|
|
3
3
|
import { getCurrentScope, onScopeDispose, readonly, shallowRef, watchEffect, ref, watch, unref, getCurrentInstance, onMounted, nextTick, computed, openBlock, createElementBlock, createElementVNode, warn, isVNode, Fragment, Comment, inject, provide, onBeforeUnmount, toRef, onUnmounted, isRef, h as h$1, Teleport, onBeforeMount, defineComponent, normalizeClass, normalizeStyle, renderSlot, mergeProps, useSlots, createBlock, Transition, withCtx, withDirectives, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, vShow, useAttrs as useAttrs$1, onUpdated, withModifiers, reactive, cloneVNode, Text, toRefs, resolveComponent, onDeactivated, renderList, withKeys, createSlots, normalizeProps, guardReactiveProps, vModelCheckbox, vModelRadio, onBeforeUpdate, resolveDirective, vModelText, toHandlers, markRaw, effectScope, toRaw, triggerRef, TransitionGroup, createApp, shallowReactive, render } from 'vue';
|
|
4
4
|
|
|
@@ -4444,7 +4444,7 @@ function omitBy(object, predicate) {
|
|
|
4444
4444
|
return pickBy(object, negate(baseIteratee(predicate)));
|
|
4445
4445
|
}
|
|
4446
4446
|
|
|
4447
|
-
function once
|
|
4447
|
+
function once(func) {
|
|
4448
4448
|
return before(2, func);
|
|
4449
4449
|
}
|
|
4450
4450
|
|
|
@@ -5998,7 +5998,7 @@ var func = {
|
|
|
5998
5998
|
flip,
|
|
5999
5999
|
memoize,
|
|
6000
6000
|
negate,
|
|
6001
|
-
once
|
|
6001
|
+
once,
|
|
6002
6002
|
overArgs,
|
|
6003
6003
|
partial,
|
|
6004
6004
|
partialRight,
|
|
@@ -6884,15 +6884,6 @@ const off = (element, event, handler, useCapture = false) => {
|
|
|
6884
6884
|
element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
|
|
6885
6885
|
}
|
|
6886
6886
|
};
|
|
6887
|
-
const once = (el, event, fn) => {
|
|
6888
|
-
const listener = function(...args) {
|
|
6889
|
-
if (fn) {
|
|
6890
|
-
fn.apply(this, args);
|
|
6891
|
-
}
|
|
6892
|
-
off(el, event, listener);
|
|
6893
|
-
};
|
|
6894
|
-
on$1(el, event, listener);
|
|
6895
|
-
};
|
|
6896
6887
|
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
6897
6888
|
const handleEvent = (event) => {
|
|
6898
6889
|
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
@@ -7420,36 +7411,6 @@ const getClientXY = (event) => {
|
|
|
7420
7411
|
};
|
|
7421
7412
|
};
|
|
7422
7413
|
|
|
7423
|
-
const resizeHandler = function(entries) {
|
|
7424
|
-
for (const entry of entries) {
|
|
7425
|
-
const listeners = entry.target.__resizeListeners__ || [];
|
|
7426
|
-
if (listeners.length) {
|
|
7427
|
-
listeners.forEach((fn) => {
|
|
7428
|
-
fn();
|
|
7429
|
-
});
|
|
7430
|
-
}
|
|
7431
|
-
}
|
|
7432
|
-
};
|
|
7433
|
-
const addResizeListener = function(element, fn) {
|
|
7434
|
-
if (!isClient || !element)
|
|
7435
|
-
return;
|
|
7436
|
-
if (!element.__resizeListeners__) {
|
|
7437
|
-
element.__resizeListeners__ = [];
|
|
7438
|
-
element.__ro__ = new ResizeObserver(resizeHandler);
|
|
7439
|
-
element.__ro__.observe(element);
|
|
7440
|
-
}
|
|
7441
|
-
element.__resizeListeners__.push(fn);
|
|
7442
|
-
};
|
|
7443
|
-
const removeResizeListener = function(element, fn) {
|
|
7444
|
-
var _a;
|
|
7445
|
-
if (!element || !element.__resizeListeners__)
|
|
7446
|
-
return;
|
|
7447
|
-
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
|
|
7448
|
-
if (!element.__resizeListeners__.length) {
|
|
7449
|
-
(_a = element.__ro__) == null ? void 0 : _a.disconnect();
|
|
7450
|
-
}
|
|
7451
|
-
};
|
|
7452
|
-
|
|
7453
7414
|
const NOOP = () => {
|
|
7454
7415
|
};
|
|
7455
7416
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -9294,7 +9255,8 @@ const createModelToggleComposable = (name) => {
|
|
|
9294
9255
|
return {
|
|
9295
9256
|
hide,
|
|
9296
9257
|
show,
|
|
9297
|
-
toggle
|
|
9258
|
+
toggle,
|
|
9259
|
+
hasUpdateHandler
|
|
9298
9260
|
};
|
|
9299
9261
|
};
|
|
9300
9262
|
return {
|
|
@@ -10730,7 +10692,7 @@ function useCursor(input) {
|
|
|
10730
10692
|
return [recordCursor, setCursor];
|
|
10731
10693
|
}
|
|
10732
10694
|
|
|
10733
|
-
const version$1 = "2.2.
|
|
10695
|
+
const version$1 = "2.2.10";
|
|
10734
10696
|
|
|
10735
10697
|
const makeInstaller = (components = []) => {
|
|
10736
10698
|
const install = (app, options) => {
|
|
@@ -10779,11 +10741,11 @@ var _export_sfc = (sfc, props) => {
|
|
|
10779
10741
|
return target;
|
|
10780
10742
|
};
|
|
10781
10743
|
|
|
10782
|
-
const __default__$
|
|
10744
|
+
const __default__$1p = {
|
|
10783
10745
|
name: "ElAffix"
|
|
10784
10746
|
};
|
|
10785
10747
|
const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
10786
|
-
...__default__$
|
|
10748
|
+
...__default__$1p,
|
|
10787
10749
|
props: affixProps,
|
|
10788
10750
|
emits: affixEmits,
|
|
10789
10751
|
setup(__props, { expose, emit }) {
|
|
@@ -10898,12 +10860,12 @@ const iconProps = buildProps({
|
|
|
10898
10860
|
}
|
|
10899
10861
|
});
|
|
10900
10862
|
|
|
10901
|
-
const __default__$
|
|
10863
|
+
const __default__$1o = {
|
|
10902
10864
|
name: "ElIcon",
|
|
10903
10865
|
inheritAttrs: false
|
|
10904
10866
|
};
|
|
10905
10867
|
const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
10906
|
-
...__default__$
|
|
10868
|
+
...__default__$1o,
|
|
10907
10869
|
props: iconProps,
|
|
10908
10870
|
setup(__props) {
|
|
10909
10871
|
const props = __props;
|
|
@@ -10965,11 +10927,11 @@ const alertEmits = {
|
|
|
10965
10927
|
close: (evt) => evt instanceof MouseEvent
|
|
10966
10928
|
};
|
|
10967
10929
|
|
|
10968
|
-
const __default__$
|
|
10930
|
+
const __default__$1n = {
|
|
10969
10931
|
name: "ElAlert"
|
|
10970
10932
|
};
|
|
10971
10933
|
const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
10972
|
-
...__default__$
|
|
10934
|
+
...__default__$1n,
|
|
10973
10935
|
props: alertProps,
|
|
10974
10936
|
emits: alertEmits,
|
|
10975
10937
|
setup(__props, { emit }) {
|
|
@@ -11235,14 +11197,14 @@ const inputEmits = {
|
|
|
11235
11197
|
};
|
|
11236
11198
|
|
|
11237
11199
|
const _hoisted_1$12 = ["role"];
|
|
11238
|
-
const _hoisted_2$
|
|
11239
|
-
const _hoisted_3$
|
|
11240
|
-
const __default__$
|
|
11200
|
+
const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
|
|
11201
|
+
const _hoisted_3$m = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
|
|
11202
|
+
const __default__$1m = {
|
|
11241
11203
|
name: "ElInput",
|
|
11242
11204
|
inheritAttrs: false
|
|
11243
11205
|
};
|
|
11244
11206
|
const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
11245
|
-
...__default__$
|
|
11207
|
+
...__default__$1m,
|
|
11246
11208
|
props: inputProps,
|
|
11247
11209
|
emits: inputEmits,
|
|
11248
11210
|
setup(__props, { expose, emit }) {
|
|
@@ -11558,7 +11520,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
11558
11520
|
onBlur: handleBlur,
|
|
11559
11521
|
onChange: handleChange,
|
|
11560
11522
|
onKeydown: handleKeydown
|
|
11561
|
-
}), null, 16, _hoisted_2$
|
|
11523
|
+
}), null, 16, _hoisted_2$G),
|
|
11562
11524
|
createCommentVNode(" suffix slot "),
|
|
11563
11525
|
unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
|
|
11564
11526
|
key: 1,
|
|
@@ -11654,7 +11616,7 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
11654
11616
|
onBlur: handleBlur,
|
|
11655
11617
|
onChange: handleChange,
|
|
11656
11618
|
onKeydown: handleKeydown
|
|
11657
|
-
}), null, 16, _hoisted_3$
|
|
11619
|
+
}), null, 16, _hoisted_3$m),
|
|
11658
11620
|
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
11659
11621
|
key: 0,
|
|
11660
11622
|
style: normalizeStyle(countStyle.value),
|
|
@@ -11936,11 +11898,11 @@ const scrollbarEmits = {
|
|
|
11936
11898
|
}) => [scrollTop, scrollLeft].every(isNumber)
|
|
11937
11899
|
};
|
|
11938
11900
|
|
|
11939
|
-
const __default__$
|
|
11901
|
+
const __default__$1l = {
|
|
11940
11902
|
name: "ElScrollbar"
|
|
11941
11903
|
};
|
|
11942
11904
|
const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
11943
|
-
...__default__$
|
|
11905
|
+
...__default__$1l,
|
|
11944
11906
|
props: scrollbarProps,
|
|
11945
11907
|
emits: scrollbarEmits,
|
|
11946
11908
|
setup(__props, { expose, emit }) {
|
|
@@ -12032,7 +11994,9 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
12032
11994
|
}));
|
|
12033
11995
|
onMounted(() => {
|
|
12034
11996
|
if (!props.native)
|
|
12035
|
-
nextTick(() =>
|
|
11997
|
+
nextTick(() => {
|
|
11998
|
+
update();
|
|
11999
|
+
});
|
|
12036
12000
|
});
|
|
12037
12001
|
onUpdated(() => update());
|
|
12038
12002
|
expose({
|
|
@@ -12101,12 +12065,12 @@ const usePopperProps = buildProps({
|
|
|
12101
12065
|
}
|
|
12102
12066
|
});
|
|
12103
12067
|
|
|
12104
|
-
const __default__$
|
|
12068
|
+
const __default__$1k = {
|
|
12105
12069
|
name: "ElPopperRoot",
|
|
12106
12070
|
inheritAttrs: false
|
|
12107
12071
|
};
|
|
12108
12072
|
const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
12109
|
-
...__default__$
|
|
12073
|
+
...__default__$1k,
|
|
12110
12074
|
props: usePopperProps,
|
|
12111
12075
|
setup(__props, { expose }) {
|
|
12112
12076
|
const props = __props;
|
|
@@ -12138,12 +12102,12 @@ const usePopperArrowProps = buildProps({
|
|
|
12138
12102
|
}
|
|
12139
12103
|
});
|
|
12140
12104
|
|
|
12141
|
-
const __default__$
|
|
12105
|
+
const __default__$1j = {
|
|
12142
12106
|
name: "ElPopperArrow",
|
|
12143
12107
|
inheritAttrs: false
|
|
12144
12108
|
};
|
|
12145
12109
|
const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
12146
|
-
...__default__$
|
|
12110
|
+
...__default__$1j,
|
|
12147
12111
|
props: usePopperArrowProps,
|
|
12148
12112
|
setup(__props, { expose }) {
|
|
12149
12113
|
const props = __props;
|
|
@@ -12240,12 +12204,12 @@ const usePopperTriggerProps = buildProps({
|
|
|
12240
12204
|
open: Boolean
|
|
12241
12205
|
});
|
|
12242
12206
|
|
|
12243
|
-
const __default__$
|
|
12207
|
+
const __default__$1i = {
|
|
12244
12208
|
name: "ElPopperTrigger",
|
|
12245
12209
|
inheritAttrs: false
|
|
12246
12210
|
};
|
|
12247
12211
|
const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
12248
|
-
...__default__$
|
|
12212
|
+
...__default__$1i,
|
|
12249
12213
|
props: usePopperTriggerProps,
|
|
12250
12214
|
setup(__props, { expose }) {
|
|
12251
12215
|
const props = __props;
|
|
@@ -12647,10 +12611,10 @@ const _sfc_main$25 = defineComponent({
|
|
|
12647
12611
|
};
|
|
12648
12612
|
}
|
|
12649
12613
|
});
|
|
12650
|
-
function _sfc_render$
|
|
12614
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12651
12615
|
return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
12652
12616
|
}
|
|
12653
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$
|
|
12617
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc(_sfc_main$25, [["render", _sfc_render$F], ["__file", "focus-trap.vue"]]);
|
|
12654
12618
|
|
|
12655
12619
|
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
12656
12620
|
const usePopperCoreConfigProps = buildProps({
|
|
@@ -12807,11 +12771,11 @@ function deriveExtraModifiers(options, modifiers) {
|
|
|
12807
12771
|
}
|
|
12808
12772
|
}
|
|
12809
12773
|
|
|
12810
|
-
const __default__$
|
|
12774
|
+
const __default__$1h = {
|
|
12811
12775
|
name: "ElPopperContent"
|
|
12812
12776
|
};
|
|
12813
12777
|
const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
12814
|
-
...__default__$
|
|
12778
|
+
...__default__$1h,
|
|
12815
12779
|
props: usePopperContentProps,
|
|
12816
12780
|
emits: usePopperContentEmits,
|
|
12817
12781
|
setup(__props, { expose, emit }) {
|
|
@@ -12885,13 +12849,13 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
12885
12849
|
const onFocusInTrap = (event) => {
|
|
12886
12850
|
var _a;
|
|
12887
12851
|
if (props.visible && !trapped.value) {
|
|
12888
|
-
if (event.relatedTarget) {
|
|
12889
|
-
(_a = event.relatedTarget) == null ? void 0 : _a.focus();
|
|
12890
|
-
}
|
|
12891
12852
|
if (event.target) {
|
|
12892
12853
|
focusStartRef.value = event.target;
|
|
12893
12854
|
}
|
|
12894
12855
|
trapped.value = true;
|
|
12856
|
+
if (event.relatedTarget) {
|
|
12857
|
+
(_a = event.relatedTarget) == null ? void 0 : _a.focus();
|
|
12858
|
+
}
|
|
12895
12859
|
}
|
|
12896
12860
|
};
|
|
12897
12861
|
const onFocusoutPrevented = () => {
|
|
@@ -13182,7 +13146,7 @@ const _sfc_main$23 = defineComponent({
|
|
|
13182
13146
|
};
|
|
13183
13147
|
}
|
|
13184
13148
|
});
|
|
13185
|
-
function _sfc_render$
|
|
13149
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13186
13150
|
const _component_el_popper_content = resolveComponent("el-popper-content");
|
|
13187
13151
|
return openBlock(), createBlock(Teleport, {
|
|
13188
13152
|
disabled: !_ctx.teleported,
|
|
@@ -13237,7 +13201,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13237
13201
|
}, 8, ["name", "onAfterLeave", "onBeforeEnter", "onAfterEnter", "onBeforeLeave"])
|
|
13238
13202
|
], 8, ["disabled", "to"]);
|
|
13239
13203
|
}
|
|
13240
|
-
var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$
|
|
13204
|
+
var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$23, [["render", _sfc_render$E], ["__file", "content.vue"]]);
|
|
13241
13205
|
|
|
13242
13206
|
const isTriggerType = (trigger, type) => {
|
|
13243
13207
|
if (isArray(trigger)) {
|
|
@@ -13302,7 +13266,7 @@ const _sfc_main$22 = defineComponent({
|
|
|
13302
13266
|
};
|
|
13303
13267
|
}
|
|
13304
13268
|
});
|
|
13305
|
-
function _sfc_render$
|
|
13269
|
+
function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13306
13270
|
const _component_el_popper_trigger = resolveComponent("el-popper-trigger");
|
|
13307
13271
|
return openBlock(), createBlock(_component_el_popper_trigger, {
|
|
13308
13272
|
id: _ctx.id,
|
|
@@ -13324,7 +13288,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13324
13288
|
_: 3
|
|
13325
13289
|
}, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]);
|
|
13326
13290
|
}
|
|
13327
|
-
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$
|
|
13291
|
+
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["render", _sfc_render$D], ["__file", "trigger.vue"]]);
|
|
13328
13292
|
|
|
13329
13293
|
const { useModelToggleProps, useModelToggle, useModelToggleEmits } = createModelToggleComposable("visible");
|
|
13330
13294
|
const _sfc_main$21 = defineComponent({
|
|
@@ -13374,7 +13338,7 @@ const _sfc_main$21 = defineComponent({
|
|
|
13374
13338
|
};
|
|
13375
13339
|
const open = ref(false);
|
|
13376
13340
|
const toggleReason = ref(void 0);
|
|
13377
|
-
const { show, hide } = useModelToggle({
|
|
13341
|
+
const { show, hide, hasUpdateHandler } = useModelToggle({
|
|
13378
13342
|
indicator: open,
|
|
13379
13343
|
toggleReason
|
|
13380
13344
|
});
|
|
@@ -13384,7 +13348,7 @@ const _sfc_main$21 = defineComponent({
|
|
|
13384
13348
|
open: show,
|
|
13385
13349
|
close: hide
|
|
13386
13350
|
});
|
|
13387
|
-
const controlled = computed(() => isBoolean(props.visible));
|
|
13351
|
+
const controlled = computed(() => isBoolean(props.visible) && !hasUpdateHandler.value);
|
|
13388
13352
|
provide(TOOLTIP_INJECTION_KEY, {
|
|
13389
13353
|
controlled,
|
|
13390
13354
|
id,
|
|
@@ -13443,8 +13407,8 @@ const _sfc_main$21 = defineComponent({
|
|
|
13443
13407
|
}
|
|
13444
13408
|
});
|
|
13445
13409
|
const _hoisted_1$11 = ["innerHTML"];
|
|
13446
|
-
const _hoisted_2$
|
|
13447
|
-
function _sfc_render$
|
|
13410
|
+
const _hoisted_2$F = { key: 1 };
|
|
13411
|
+
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
13448
13412
|
const _component_el_tooltip_trigger = resolveComponent("el-tooltip-trigger");
|
|
13449
13413
|
const _component_el_popper_arrow = resolveComponent("el-popper-arrow");
|
|
13450
13414
|
const _component_el_tooltip_content = resolveComponent("el-tooltip-content");
|
|
@@ -13500,7 +13464,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13500
13464
|
_ctx.rawContent ? (openBlock(), createElementBlock("span", {
|
|
13501
13465
|
key: 0,
|
|
13502
13466
|
innerHTML: _ctx.content
|
|
13503
|
-
}, null, 8, _hoisted_1$11)) : (openBlock(), createElementBlock("span", _hoisted_2$
|
|
13467
|
+
}, null, 8, _hoisted_1$11)) : (openBlock(), createElementBlock("span", _hoisted_2$F, toDisplayString(_ctx.content), 1))
|
|
13504
13468
|
]),
|
|
13505
13469
|
_ctx.compatShowArrow ? (openBlock(), createBlock(_component_el_popper_arrow, {
|
|
13506
13470
|
key: 0,
|
|
@@ -13513,7 +13477,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13513
13477
|
_: 3
|
|
13514
13478
|
}, 8, ["role"]);
|
|
13515
13479
|
}
|
|
13516
|
-
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$
|
|
13480
|
+
var Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$21, [["render", _sfc_render$C], ["__file", "tooltip.vue"]]);
|
|
13517
13481
|
|
|
13518
13482
|
const ElTooltip = withInstall(Tooltip);
|
|
13519
13483
|
|
|
@@ -13569,6 +13533,10 @@ const autocompleteProps = buildProps({
|
|
|
13569
13533
|
highlightFirstItem: {
|
|
13570
13534
|
type: Boolean,
|
|
13571
13535
|
default: false
|
|
13536
|
+
},
|
|
13537
|
+
fitInputWidth: {
|
|
13538
|
+
type: Boolean,
|
|
13539
|
+
default: false
|
|
13572
13540
|
}
|
|
13573
13541
|
});
|
|
13574
13542
|
const autocompleteEmits = {
|
|
@@ -13582,14 +13550,14 @@ const autocompleteEmits = {
|
|
|
13582
13550
|
};
|
|
13583
13551
|
|
|
13584
13552
|
const _hoisted_1$10 = ["aria-expanded", "aria-owns"];
|
|
13585
|
-
const _hoisted_2$
|
|
13586
|
-
const _hoisted_3$
|
|
13587
|
-
const __default__$
|
|
13553
|
+
const _hoisted_2$E = { key: 0 };
|
|
13554
|
+
const _hoisted_3$l = ["id", "aria-selected", "onClick"];
|
|
13555
|
+
const __default__$1g = {
|
|
13588
13556
|
name: "ElAutocomplete",
|
|
13589
13557
|
inheritAttrs: false
|
|
13590
13558
|
};
|
|
13591
13559
|
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
13592
|
-
...__default__$
|
|
13560
|
+
...__default__$1g,
|
|
13593
13561
|
props: autocompleteProps,
|
|
13594
13562
|
emits: autocompleteEmits,
|
|
13595
13563
|
setup(__props, { expose, emit }) {
|
|
@@ -13789,7 +13757,6 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
13789
13757
|
ref_key: "popperRef",
|
|
13790
13758
|
ref: popperRef,
|
|
13791
13759
|
visible: unref(suggestionVisible),
|
|
13792
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => isRef(suggestionVisible) ? suggestionVisible.value = $event : null),
|
|
13793
13760
|
placement: _ctx.placement,
|
|
13794
13761
|
"fallback-placements": ["bottom-start", "top-start"],
|
|
13795
13762
|
"popper-class": [unref(ns).e("popper"), _ctx.popperClass],
|
|
@@ -13810,7 +13777,10 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
13810
13777
|
ref_key: "regionRef",
|
|
13811
13778
|
ref: regionRef,
|
|
13812
13779
|
class: normalizeClass([unref(ns).b("suggestion"), unref(ns).is("loading", unref(suggestionLoading))]),
|
|
13813
|
-
style: normalizeStyle({
|
|
13780
|
+
style: normalizeStyle({
|
|
13781
|
+
[_ctx.fitInputWidth ? "width" : "minWidth"]: dropdownWidth.value,
|
|
13782
|
+
outline: "none"
|
|
13783
|
+
}),
|
|
13814
13784
|
role: "region"
|
|
13815
13785
|
}, [
|
|
13816
13786
|
createVNode(unref(ElScrollbar), {
|
|
@@ -13821,7 +13791,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
13821
13791
|
role: "listbox"
|
|
13822
13792
|
}, {
|
|
13823
13793
|
default: withCtx(() => [
|
|
13824
|
-
unref(suggestionLoading) ? (openBlock(), createElementBlock("li", _hoisted_2$
|
|
13794
|
+
unref(suggestionLoading) ? (openBlock(), createElementBlock("li", _hoisted_2$E, [
|
|
13825
13795
|
createVNode(unref(ElIcon), {
|
|
13826
13796
|
class: normalizeClass(unref(ns).is("loading"))
|
|
13827
13797
|
}, {
|
|
@@ -13842,7 +13812,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
13842
13812
|
renderSlot(_ctx.$slots, "default", { item }, () => [
|
|
13843
13813
|
createTextVNode(toDisplayString(item[_ctx.valueKey]), 1)
|
|
13844
13814
|
])
|
|
13845
|
-
], 10, _hoisted_3$
|
|
13815
|
+
], 10, _hoisted_3$l);
|
|
13846
13816
|
}), 128))
|
|
13847
13817
|
]),
|
|
13848
13818
|
_: 3
|
|
@@ -13946,11 +13916,11 @@ const avatarEmits = {
|
|
|
13946
13916
|
};
|
|
13947
13917
|
|
|
13948
13918
|
const _hoisted_1$$ = ["src", "alt", "srcset"];
|
|
13949
|
-
const __default__$
|
|
13919
|
+
const __default__$1f = {
|
|
13950
13920
|
name: "ElAvatar"
|
|
13951
13921
|
};
|
|
13952
13922
|
const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
13953
|
-
...__default__$
|
|
13923
|
+
...__default__$1f,
|
|
13954
13924
|
props: avatarProps,
|
|
13955
13925
|
emits: avatarEmits,
|
|
13956
13926
|
setup(__props, { emit }) {
|
|
@@ -14031,11 +14001,11 @@ const backtopEmits = {
|
|
|
14031
14001
|
};
|
|
14032
14002
|
|
|
14033
14003
|
const _hoisted_1$_ = ["onClick"];
|
|
14034
|
-
const __default__$
|
|
14004
|
+
const __default__$1e = {
|
|
14035
14005
|
name: "ElBacktop"
|
|
14036
14006
|
};
|
|
14037
14007
|
const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
14038
|
-
...__default__$
|
|
14008
|
+
...__default__$1e,
|
|
14039
14009
|
props: backtopProps,
|
|
14040
14010
|
emits: backtopEmits,
|
|
14041
14011
|
setup(__props, { emit }) {
|
|
@@ -14140,11 +14110,11 @@ const badgeProps = buildProps({
|
|
|
14140
14110
|
});
|
|
14141
14111
|
|
|
14142
14112
|
const _hoisted_1$Z = ["textContent"];
|
|
14143
|
-
const __default__$
|
|
14113
|
+
const __default__$1d = {
|
|
14144
14114
|
name: "ElBadge"
|
|
14145
14115
|
};
|
|
14146
14116
|
const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
14147
|
-
...__default__$
|
|
14117
|
+
...__default__$1d,
|
|
14148
14118
|
props: badgeProps,
|
|
14149
14119
|
setup(__props, { expose }) {
|
|
14150
14120
|
const props = __props;
|
|
@@ -14203,11 +14173,11 @@ const breadcrumbProps = buildProps({
|
|
|
14203
14173
|
}
|
|
14204
14174
|
});
|
|
14205
14175
|
|
|
14206
|
-
const __default__$
|
|
14176
|
+
const __default__$1c = {
|
|
14207
14177
|
name: "ElBreadcrumb"
|
|
14208
14178
|
};
|
|
14209
14179
|
const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
14210
|
-
...__default__$
|
|
14180
|
+
...__default__$1c,
|
|
14211
14181
|
props: breadcrumbProps,
|
|
14212
14182
|
setup(__props) {
|
|
14213
14183
|
const props = __props;
|
|
@@ -14246,11 +14216,11 @@ const breadcrumbItemProps = buildProps({
|
|
|
14246
14216
|
}
|
|
14247
14217
|
});
|
|
14248
14218
|
|
|
14249
|
-
const __default__$
|
|
14219
|
+
const __default__$1b = {
|
|
14250
14220
|
name: "ElBreadcrumbItem"
|
|
14251
14221
|
};
|
|
14252
14222
|
const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
14253
|
-
...__default__$
|
|
14223
|
+
...__default__$1b,
|
|
14254
14224
|
props: breadcrumbItemProps,
|
|
14255
14225
|
setup(__props) {
|
|
14256
14226
|
const props = __props;
|
|
@@ -15281,11 +15251,11 @@ function useButtonCustomStyle(props) {
|
|
|
15281
15251
|
}
|
|
15282
15252
|
|
|
15283
15253
|
const _hoisted_1$Y = ["aria-disabled", "disabled", "autofocus", "type"];
|
|
15284
|
-
const __default__$
|
|
15254
|
+
const __default__$1a = {
|
|
15285
15255
|
name: "ElButton"
|
|
15286
15256
|
};
|
|
15287
15257
|
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
15288
|
-
...__default__$
|
|
15258
|
+
...__default__$1a,
|
|
15289
15259
|
props: buttonProps,
|
|
15290
15260
|
emits: buttonEmits,
|
|
15291
15261
|
setup(__props, { expose, emit }) {
|
|
@@ -15393,11 +15363,11 @@ const buttonGroupProps = {
|
|
|
15393
15363
|
type: buttonProps.type
|
|
15394
15364
|
};
|
|
15395
15365
|
|
|
15396
|
-
const __default__$
|
|
15366
|
+
const __default__$19 = {
|
|
15397
15367
|
name: "ElButtonGroup"
|
|
15398
15368
|
};
|
|
15399
15369
|
const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
15400
|
-
...__default__$
|
|
15370
|
+
...__default__$19,
|
|
15401
15371
|
props: buttonGroupProps,
|
|
15402
15372
|
setup(__props) {
|
|
15403
15373
|
const props = __props;
|
|
@@ -16048,12 +16018,12 @@ const timePickerDefaultProps = buildProps({
|
|
|
16048
16018
|
});
|
|
16049
16019
|
|
|
16050
16020
|
const _hoisted_1$X = ["id", "name", "placeholder", "value", "disabled", "readonly"];
|
|
16051
|
-
const _hoisted_2$
|
|
16052
|
-
const __default__$
|
|
16021
|
+
const _hoisted_2$D = ["id", "name", "placeholder", "value", "disabled", "readonly"];
|
|
16022
|
+
const __default__$18 = {
|
|
16053
16023
|
name: "Picker"
|
|
16054
16024
|
};
|
|
16055
16025
|
const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
16056
|
-
...__default__$
|
|
16026
|
+
...__default__$18,
|
|
16057
16027
|
props: timePickerDefaultProps,
|
|
16058
16028
|
emits: [
|
|
16059
16029
|
"update:modelValue",
|
|
@@ -16354,6 +16324,8 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16354
16324
|
return pickerOptions.value.isValidValue(value);
|
|
16355
16325
|
};
|
|
16356
16326
|
const handleKeydownInput = async (event) => {
|
|
16327
|
+
if (props.readonly || pickerDisabled.value)
|
|
16328
|
+
return;
|
|
16357
16329
|
const { code } = event;
|
|
16358
16330
|
emitKeydown(event);
|
|
16359
16331
|
if (code === EVENT_CODE.esc) {
|
|
@@ -16479,7 +16451,6 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16479
16451
|
ref_key: "refPopper",
|
|
16480
16452
|
ref: refPopper,
|
|
16481
16453
|
visible: pickerVisible.value,
|
|
16482
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => pickerVisible.value = $event),
|
|
16483
16454
|
effect: "light",
|
|
16484
16455
|
pure: "",
|
|
16485
16456
|
trigger: "click"
|
|
@@ -16619,7 +16590,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
16619
16590
|
onBlur: handleBlurInput,
|
|
16620
16591
|
onInput: handleEndInput,
|
|
16621
16592
|
onChange: handleEndChange
|
|
16622
|
-
}, null, 42, _hoisted_2$
|
|
16593
|
+
}, null, 42, _hoisted_2$D),
|
|
16623
16594
|
_ctx.clearIcon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
16624
16595
|
key: 1,
|
|
16625
16596
|
class: normalizeClass([
|
|
@@ -16835,25 +16806,28 @@ const ClickOutside = {
|
|
|
16835
16806
|
}
|
|
16836
16807
|
};
|
|
16837
16808
|
|
|
16838
|
-
|
|
16809
|
+
const RepeatClick = {
|
|
16839
16810
|
beforeMount(el, binding) {
|
|
16840
16811
|
let interval = null;
|
|
16841
|
-
let
|
|
16812
|
+
let isHandlerCalled = false;
|
|
16842
16813
|
const handler = () => binding.value && binding.value();
|
|
16843
16814
|
const clear = () => {
|
|
16844
|
-
if (Date.now() - startTime < 100) {
|
|
16845
|
-
handler();
|
|
16846
|
-
}
|
|
16847
16815
|
clearInterval(interval);
|
|
16848
16816
|
interval = null;
|
|
16817
|
+
if (!isHandlerCalled) {
|
|
16818
|
+
handler();
|
|
16819
|
+
}
|
|
16820
|
+
isHandlerCalled = false;
|
|
16849
16821
|
};
|
|
16850
|
-
|
|
16822
|
+
el.addEventListener("mousedown", (e) => {
|
|
16851
16823
|
if (e.button !== 0)
|
|
16852
16824
|
return;
|
|
16853
|
-
|
|
16854
|
-
once(document, "mouseup", clear);
|
|
16825
|
+
document.addEventListener("mouseup", clear, { once: true });
|
|
16855
16826
|
clearInterval(interval);
|
|
16856
|
-
interval = setInterval(
|
|
16827
|
+
interval = setInterval(() => {
|
|
16828
|
+
isHandlerCalled = true;
|
|
16829
|
+
handler();
|
|
16830
|
+
}, 100);
|
|
16857
16831
|
});
|
|
16858
16832
|
}
|
|
16859
16833
|
};
|
|
@@ -16890,7 +16864,7 @@ const TrapFocus = {
|
|
|
16890
16864
|
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
16891
16865
|
FOCUS_STACK.push(el);
|
|
16892
16866
|
if (FOCUS_STACK.length <= 1) {
|
|
16893
|
-
|
|
16867
|
+
document.addEventListener("keydown", FOCUS_HANDLER);
|
|
16894
16868
|
}
|
|
16895
16869
|
},
|
|
16896
16870
|
updated(el) {
|
|
@@ -16901,7 +16875,7 @@ const TrapFocus = {
|
|
|
16901
16875
|
unmounted() {
|
|
16902
16876
|
FOCUS_STACK.shift();
|
|
16903
16877
|
if (FOCUS_STACK.length === 0) {
|
|
16904
|
-
|
|
16878
|
+
document.removeEventListener("keydown", FOCUS_HANDLER);
|
|
16905
16879
|
}
|
|
16906
16880
|
}
|
|
16907
16881
|
};
|
|
@@ -16936,19 +16910,6 @@ const Mousewheel = {
|
|
|
16936
16910
|
}
|
|
16937
16911
|
};
|
|
16938
16912
|
|
|
16939
|
-
const Resize = {
|
|
16940
|
-
beforeMount(el, binding) {
|
|
16941
|
-
el._handleResize = () => {
|
|
16942
|
-
var _a;
|
|
16943
|
-
el && ((_a = binding.value) == null ? void 0 : _a.call(binding, el));
|
|
16944
|
-
};
|
|
16945
|
-
addResizeListener(el, el._handleResize);
|
|
16946
|
-
},
|
|
16947
|
-
beforeUnmount(el) {
|
|
16948
|
-
removeResizeListener(el, el._handleResize);
|
|
16949
|
-
}
|
|
16950
|
-
};
|
|
16951
|
-
|
|
16952
16913
|
const basicTimeSpinnerProps = buildProps({
|
|
16953
16914
|
role: {
|
|
16954
16915
|
type: String,
|
|
@@ -16971,7 +16932,7 @@ const basicTimeSpinnerProps = buildProps({
|
|
|
16971
16932
|
});
|
|
16972
16933
|
|
|
16973
16934
|
const _hoisted_1$W = ["onClick"];
|
|
16974
|
-
const _hoisted_2$
|
|
16935
|
+
const _hoisted_2$C = ["onMouseenter"];
|
|
16975
16936
|
const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
16976
16937
|
__name: "basic-time-spinner",
|
|
16977
16938
|
props: basicTimeSpinnerProps,
|
|
@@ -17206,7 +17167,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
17206
17167
|
]),
|
|
17207
17168
|
_: 1
|
|
17208
17169
|
}, 8, ["class"])), [
|
|
17209
|
-
[unref(
|
|
17170
|
+
[unref(RepeatClick), onDecrement]
|
|
17210
17171
|
]),
|
|
17211
17172
|
withDirectives((openBlock(), createBlock(unref(ElIcon), {
|
|
17212
17173
|
class: normalizeClass(["arrow-down", unref(ns).be("spinner", "arrow")])
|
|
@@ -17216,7 +17177,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
17216
17177
|
]),
|
|
17217
17178
|
_: 1
|
|
17218
17179
|
}, 8, ["class"])), [
|
|
17219
|
-
[unref(
|
|
17180
|
+
[unref(RepeatClick), onIncrement]
|
|
17220
17181
|
]),
|
|
17221
17182
|
createElementVNode("ul", {
|
|
17222
17183
|
class: normalizeClass(unref(ns).be("spinner", "list"))
|
|
@@ -17240,7 +17201,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
17240
17201
|
], 2);
|
|
17241
17202
|
}), 128))
|
|
17242
17203
|
], 2)
|
|
17243
|
-
], 42, _hoisted_2$
|
|
17204
|
+
], 42, _hoisted_2$C);
|
|
17244
17205
|
}), 128)) : createCommentVNode("v-if", true)
|
|
17245
17206
|
], 2);
|
|
17246
17207
|
};
|
|
@@ -17758,12 +17719,12 @@ const dateTableEmits = {
|
|
|
17758
17719
|
};
|
|
17759
17720
|
|
|
17760
17721
|
const _hoisted_1$U = { key: 0 };
|
|
17761
|
-
const _hoisted_2$
|
|
17762
|
-
const __default__$
|
|
17722
|
+
const _hoisted_2$B = ["onClick"];
|
|
17723
|
+
const __default__$17 = {
|
|
17763
17724
|
name: "DateTable"
|
|
17764
17725
|
};
|
|
17765
17726
|
const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
17766
|
-
...__default__$
|
|
17727
|
+
...__default__$17,
|
|
17767
17728
|
props: dateTableProps,
|
|
17768
17729
|
emits: dateTableEmits,
|
|
17769
17730
|
setup(__props, { expose, emit }) {
|
|
@@ -17892,7 +17853,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
17892
17853
|
createElementVNode("span", null, toDisplayString(cell.text), 1)
|
|
17893
17854
|
])
|
|
17894
17855
|
], 2)
|
|
17895
|
-
], 10, _hoisted_2$
|
|
17856
|
+
], 10, _hoisted_2$B);
|
|
17896
17857
|
}), 128))
|
|
17897
17858
|
], 2);
|
|
17898
17859
|
}), 128))
|
|
@@ -17918,11 +17879,11 @@ const calendarEmits = {
|
|
|
17918
17879
|
[INPUT_EVENT]: (value) => isDate(value)
|
|
17919
17880
|
};
|
|
17920
17881
|
|
|
17921
|
-
const __default__$
|
|
17882
|
+
const __default__$16 = {
|
|
17922
17883
|
name: "ElCalendar"
|
|
17923
17884
|
};
|
|
17924
17885
|
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
17925
|
-
...__default__$
|
|
17886
|
+
...__default__$16,
|
|
17926
17887
|
props: calendarProps,
|
|
17927
17888
|
emits: calendarEmits,
|
|
17928
17889
|
setup(__props, { expose, emit }) {
|
|
@@ -18153,11 +18114,11 @@ const cardProps = buildProps({
|
|
|
18153
18114
|
}
|
|
18154
18115
|
});
|
|
18155
18116
|
|
|
18156
|
-
const __default__$
|
|
18117
|
+
const __default__$15 = {
|
|
18157
18118
|
name: "ElCard"
|
|
18158
18119
|
};
|
|
18159
18120
|
const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
18160
|
-
...__default__$
|
|
18121
|
+
...__default__$15,
|
|
18161
18122
|
props: cardProps,
|
|
18162
18123
|
setup(__props) {
|
|
18163
18124
|
const ns = useNamespace("card");
|
|
@@ -18247,13 +18208,13 @@ const carouselEmits = {
|
|
|
18247
18208
|
};
|
|
18248
18209
|
|
|
18249
18210
|
const _hoisted_1$T = ["onMouseenter", "onMouseleave"];
|
|
18250
|
-
const _hoisted_2$
|
|
18251
|
-
const _hoisted_3$
|
|
18252
|
-
const __default__$
|
|
18211
|
+
const _hoisted_2$A = ["onMouseenter", "onClick"];
|
|
18212
|
+
const _hoisted_3$k = { key: 0 };
|
|
18213
|
+
const __default__$14 = {
|
|
18253
18214
|
name: "ElCarousel"
|
|
18254
18215
|
};
|
|
18255
18216
|
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
18256
|
-
...__default__$
|
|
18217
|
+
...__default__$14,
|
|
18257
18218
|
props: carouselProps,
|
|
18258
18219
|
emits: carouselEmits,
|
|
18259
18220
|
setup(__props, { expose, emit }) {
|
|
@@ -18543,9 +18504,9 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
18543
18504
|
createElementVNode("button", {
|
|
18544
18505
|
class: normalizeClass(unref(ns).e("button"))
|
|
18545
18506
|
}, [
|
|
18546
|
-
unref(hasLabel) ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
18507
|
+
unref(hasLabel) ? (openBlock(), createElementBlock("span", _hoisted_3$k, toDisplayString(item.props.label), 1)) : createCommentVNode("v-if", true)
|
|
18547
18508
|
], 2)
|
|
18548
|
-
], 42, _hoisted_2$
|
|
18509
|
+
], 42, _hoisted_2$A);
|
|
18549
18510
|
}), 128))
|
|
18550
18511
|
], 2)) : createCommentVNode("v-if", true)
|
|
18551
18512
|
], 42, _hoisted_1$T);
|
|
@@ -18562,11 +18523,11 @@ const carouselItemProps = buildProps({
|
|
|
18562
18523
|
}
|
|
18563
18524
|
});
|
|
18564
18525
|
|
|
18565
|
-
const __default__$
|
|
18526
|
+
const __default__$13 = {
|
|
18566
18527
|
name: "ElCarouselItem"
|
|
18567
18528
|
};
|
|
18568
18529
|
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
18569
|
-
...__default__$
|
|
18530
|
+
...__default__$13,
|
|
18570
18531
|
props: carouselItemProps,
|
|
18571
18532
|
setup(__props) {
|
|
18572
18533
|
const props = __props;
|
|
@@ -18739,6 +18700,10 @@ const useCheckboxGroupProps = {
|
|
|
18739
18700
|
tag: {
|
|
18740
18701
|
type: String,
|
|
18741
18702
|
default: "div"
|
|
18703
|
+
},
|
|
18704
|
+
validateEvent: {
|
|
18705
|
+
type: Boolean,
|
|
18706
|
+
default: true
|
|
18742
18707
|
}
|
|
18743
18708
|
};
|
|
18744
18709
|
const checkboxProps = {
|
|
@@ -18774,7 +18739,11 @@ const checkboxProps = {
|
|
|
18774
18739
|
},
|
|
18775
18740
|
border: Boolean,
|
|
18776
18741
|
size: useSizeProp,
|
|
18777
|
-
tabindex: [String, Number]
|
|
18742
|
+
tabindex: [String, Number],
|
|
18743
|
+
validateEvent: {
|
|
18744
|
+
type: Boolean,
|
|
18745
|
+
default: true
|
|
18746
|
+
}
|
|
18778
18747
|
};
|
|
18779
18748
|
const useCheckboxGroup = () => {
|
|
18780
18749
|
const elForm = inject(formContextKey, {});
|
|
@@ -18898,7 +18867,7 @@ const useEvent$1 = (props, {
|
|
|
18898
18867
|
isDisabled,
|
|
18899
18868
|
isLabeledByFormItem
|
|
18900
18869
|
}) => {
|
|
18901
|
-
const { elFormItem } = useCheckboxGroup();
|
|
18870
|
+
const { elFormItem, checkboxGroup } = useCheckboxGroup();
|
|
18902
18871
|
const { emit } = getCurrentInstance();
|
|
18903
18872
|
function getLabeledValue(value) {
|
|
18904
18873
|
var _a, _b;
|
|
@@ -18922,9 +18891,15 @@ const useEvent$1 = (props, {
|
|
|
18922
18891
|
emitChangeEvent(model.value, e);
|
|
18923
18892
|
}
|
|
18924
18893
|
}
|
|
18894
|
+
const validateEvent = computed(() => {
|
|
18895
|
+
var _a;
|
|
18896
|
+
return ((_a = checkboxGroup.validateEvent) == null ? void 0 : _a.value) || props.validateEvent;
|
|
18897
|
+
});
|
|
18925
18898
|
watch(() => props.modelValue, () => {
|
|
18926
18899
|
var _a;
|
|
18927
|
-
|
|
18900
|
+
if (validateEvent.value) {
|
|
18901
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
18902
|
+
}
|
|
18928
18903
|
});
|
|
18929
18904
|
return {
|
|
18930
18905
|
handleChange,
|
|
@@ -18976,13 +18951,13 @@ const useCheckbox = (props, slots) => {
|
|
|
18976
18951
|
};
|
|
18977
18952
|
|
|
18978
18953
|
const _hoisted_1$S = ["tabindex", "role", "aria-checked"];
|
|
18979
|
-
const _hoisted_2$
|
|
18980
|
-
const _hoisted_3$
|
|
18981
|
-
const __default__$
|
|
18954
|
+
const _hoisted_2$z = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
|
|
18955
|
+
const _hoisted_3$j = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
|
|
18956
|
+
const __default__$12 = {
|
|
18982
18957
|
name: "ElCheckbox"
|
|
18983
18958
|
};
|
|
18984
18959
|
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
18985
|
-
...__default__$
|
|
18960
|
+
...__default__$12,
|
|
18986
18961
|
props: checkboxProps,
|
|
18987
18962
|
emits: checkboxEmits,
|
|
18988
18963
|
setup(__props) {
|
|
@@ -19041,7 +19016,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
19041
19016
|
onChange: _cache[1] || (_cache[1] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
19042
19017
|
onFocus: _cache[2] || (_cache[2] = ($event) => focus.value = true),
|
|
19043
19018
|
onBlur: _cache[3] || (_cache[3] = ($event) => focus.value = false)
|
|
19044
|
-
}, null, 42, _hoisted_2$
|
|
19019
|
+
}, null, 42, _hoisted_2$z)), [
|
|
19045
19020
|
[vModelCheckbox, unref(model)]
|
|
19046
19021
|
]) : withDirectives((openBlock(), createElementBlock("input", {
|
|
19047
19022
|
key: 1,
|
|
@@ -19057,7 +19032,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
19057
19032
|
onChange: _cache[5] || (_cache[5] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
19058
19033
|
onFocus: _cache[6] || (_cache[6] = ($event) => focus.value = true),
|
|
19059
19034
|
onBlur: _cache[7] || (_cache[7] = ($event) => focus.value = false)
|
|
19060
|
-
}, null, 42, _hoisted_3$
|
|
19035
|
+
}, null, 42, _hoisted_3$j)), [
|
|
19061
19036
|
[vModelCheckbox, unref(model)]
|
|
19062
19037
|
]),
|
|
19063
19038
|
createElementVNode("span", {
|
|
@@ -19082,12 +19057,12 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
19082
19057
|
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["__file", "checkbox.vue"]]);
|
|
19083
19058
|
|
|
19084
19059
|
const _hoisted_1$R = ["name", "tabindex", "disabled", "true-value", "false-value"];
|
|
19085
|
-
const _hoisted_2$
|
|
19086
|
-
const __default__
|
|
19060
|
+
const _hoisted_2$y = ["name", "tabindex", "disabled", "value"];
|
|
19061
|
+
const __default__$11 = {
|
|
19087
19062
|
name: "ElCheckboxButton"
|
|
19088
19063
|
};
|
|
19089
19064
|
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
19090
|
-
...__default__
|
|
19065
|
+
...__default__$11,
|
|
19091
19066
|
props: checkboxProps,
|
|
19092
19067
|
emits: checkboxEmits,
|
|
19093
19068
|
setup(__props) {
|
|
@@ -19143,7 +19118,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
19143
19118
|
onChange: _cache[5] || (_cache[5] = (...args) => unref(handleChange) && unref(handleChange)(...args)),
|
|
19144
19119
|
onFocus: _cache[6] || (_cache[6] = ($event) => focus.value = true),
|
|
19145
19120
|
onBlur: _cache[7] || (_cache[7] = ($event) => focus.value = false)
|
|
19146
|
-
}, null, 42, _hoisted_2$
|
|
19121
|
+
}, null, 42, _hoisted_2$y)), [
|
|
19147
19122
|
[vModelCheckbox, unref(model)]
|
|
19148
19123
|
]),
|
|
19149
19124
|
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
|
|
@@ -19161,11 +19136,11 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
19161
19136
|
});
|
|
19162
19137
|
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["__file", "checkbox-button.vue"]]);
|
|
19163
19138
|
|
|
19164
|
-
const __default__$
|
|
19139
|
+
const __default__$10 = {
|
|
19165
19140
|
name: "ElCheckboxGroup"
|
|
19166
19141
|
};
|
|
19167
19142
|
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
19168
|
-
...__default__$
|
|
19143
|
+
...__default__$10,
|
|
19169
19144
|
props: useCheckboxGroupProps,
|
|
19170
19145
|
emits: checkboxGroupEmits,
|
|
19171
19146
|
setup(__props, { emit }) {
|
|
@@ -19199,7 +19174,9 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
|
19199
19174
|
});
|
|
19200
19175
|
watch(() => props.modelValue, () => {
|
|
19201
19176
|
var _a;
|
|
19202
|
-
|
|
19177
|
+
if (props.validateEvent) {
|
|
19178
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
19179
|
+
}
|
|
19203
19180
|
});
|
|
19204
19181
|
return (_ctx, _cache) => {
|
|
19205
19182
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
@@ -19287,24 +19264,15 @@ const useRadio = (props, emit) => {
|
|
|
19287
19264
|
};
|
|
19288
19265
|
|
|
19289
19266
|
const _hoisted_1$Q = ["value", "name", "disabled"];
|
|
19290
|
-
const __default__
|
|
19291
|
-
name: "ElRadio"
|
|
19292
|
-
inheritAttrs: false
|
|
19267
|
+
const __default__$$ = {
|
|
19268
|
+
name: "ElRadio"
|
|
19293
19269
|
};
|
|
19294
19270
|
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
19295
|
-
...__default__
|
|
19271
|
+
...__default__$$,
|
|
19296
19272
|
props: radioProps,
|
|
19297
19273
|
emits: radioEmits,
|
|
19298
19274
|
setup(__props, { emit }) {
|
|
19299
19275
|
const props = __props;
|
|
19300
|
-
const rawAttrs = useAttrs$1();
|
|
19301
|
-
const containerStyle = computed(() => rawAttrs.style);
|
|
19302
|
-
const inputAttrs = useAttrs({ excludeListeners: true });
|
|
19303
|
-
const labelListieners = useAttrs({
|
|
19304
|
-
excludeKeys: computed(() => {
|
|
19305
|
-
return Object.keys(inputAttrs.value);
|
|
19306
|
-
})
|
|
19307
|
-
});
|
|
19308
19276
|
const ns = useNamespace("radio");
|
|
19309
19277
|
const { radioRef, radioGroup, focus, size, disabled, modelValue } = useRadio(props, emit);
|
|
19310
19278
|
function handleChange() {
|
|
@@ -19312,18 +19280,16 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
19312
19280
|
}
|
|
19313
19281
|
return (_ctx, _cache) => {
|
|
19314
19282
|
var _a;
|
|
19315
|
-
return openBlock(), createElementBlock("label",
|
|
19316
|
-
class: [
|
|
19283
|
+
return openBlock(), createElementBlock("label", {
|
|
19284
|
+
class: normalizeClass([
|
|
19317
19285
|
unref(ns).b(),
|
|
19318
19286
|
unref(ns).is("disabled", unref(disabled)),
|
|
19319
19287
|
unref(ns).is("focus", unref(focus)),
|
|
19320
19288
|
unref(ns).is("bordered", _ctx.border),
|
|
19321
19289
|
unref(ns).is("checked", unref(modelValue) === _ctx.label),
|
|
19322
|
-
unref(ns).m(unref(size))
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
style: unref(containerStyle)
|
|
19326
|
-
}, unref(labelListieners)), [
|
|
19290
|
+
unref(ns).m(unref(size))
|
|
19291
|
+
])
|
|
19292
|
+
}, [
|
|
19327
19293
|
createElementVNode("span", {
|
|
19328
19294
|
class: normalizeClass([
|
|
19329
19295
|
unref(ns).e("input"),
|
|
@@ -19331,20 +19297,19 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
19331
19297
|
unref(ns).is("checked", unref(modelValue) === _ctx.label)
|
|
19332
19298
|
])
|
|
19333
19299
|
}, [
|
|
19334
|
-
withDirectives(createElementVNode("input",
|
|
19300
|
+
withDirectives(createElementVNode("input", {
|
|
19335
19301
|
ref_key: "radioRef",
|
|
19336
19302
|
ref: radioRef,
|
|
19337
19303
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
19338
|
-
class: unref(ns).e("original"),
|
|
19304
|
+
class: normalizeClass(unref(ns).e("original")),
|
|
19339
19305
|
value: _ctx.label,
|
|
19340
19306
|
name: _ctx.name || ((_a = unref(radioGroup)) == null ? void 0 : _a.name),
|
|
19341
19307
|
disabled: unref(disabled),
|
|
19342
|
-
type: "radio"
|
|
19343
|
-
}, unref(inputAttrs), {
|
|
19308
|
+
type: "radio",
|
|
19344
19309
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
19345
19310
|
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
19346
19311
|
onChange: handleChange
|
|
19347
|
-
}
|
|
19312
|
+
}, null, 42, _hoisted_1$Q), [
|
|
19348
19313
|
[vModelRadio, unref(modelValue)]
|
|
19349
19314
|
]),
|
|
19350
19315
|
createElementVNode("span", {
|
|
@@ -19360,7 +19325,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
19360
19325
|
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
19361
19326
|
])
|
|
19362
19327
|
], 34)
|
|
19363
|
-
],
|
|
19328
|
+
], 2);
|
|
19364
19329
|
};
|
|
19365
19330
|
}
|
|
19366
19331
|
});
|
|
@@ -19375,11 +19340,11 @@ const radioButtonProps = buildProps({
|
|
|
19375
19340
|
});
|
|
19376
19341
|
|
|
19377
19342
|
const _hoisted_1$P = ["value", "name", "disabled"];
|
|
19378
|
-
const __default__$
|
|
19343
|
+
const __default__$_ = {
|
|
19379
19344
|
name: "ElRadioButton"
|
|
19380
19345
|
};
|
|
19381
19346
|
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
19382
|
-
...__default__$
|
|
19347
|
+
...__default__$_,
|
|
19383
19348
|
props: radioButtonProps,
|
|
19384
19349
|
setup(__props) {
|
|
19385
19350
|
const props = __props;
|
|
@@ -19460,16 +19425,20 @@ const radioGroupProps = buildProps({
|
|
|
19460
19425
|
name: {
|
|
19461
19426
|
type: String,
|
|
19462
19427
|
default: void 0
|
|
19428
|
+
},
|
|
19429
|
+
validateEvent: {
|
|
19430
|
+
type: Boolean,
|
|
19431
|
+
default: true
|
|
19463
19432
|
}
|
|
19464
19433
|
});
|
|
19465
19434
|
const radioGroupEmits = radioEmits;
|
|
19466
19435
|
|
|
19467
19436
|
const _hoisted_1$O = ["id", "aria-label", "aria-labelledby"];
|
|
19468
|
-
const __default__$
|
|
19437
|
+
const __default__$Z = {
|
|
19469
19438
|
name: "ElRadioGroup"
|
|
19470
19439
|
};
|
|
19471
19440
|
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
19472
|
-
...__default__$
|
|
19441
|
+
...__default__$Z,
|
|
19473
19442
|
props: radioGroupProps,
|
|
19474
19443
|
emits: radioGroupEmits,
|
|
19475
19444
|
setup(__props, { emit }) {
|
|
@@ -19500,7 +19469,11 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
19500
19469
|
changeEvent,
|
|
19501
19470
|
name
|
|
19502
19471
|
}));
|
|
19503
|
-
watch(() => props.modelValue, () =>
|
|
19472
|
+
watch(() => props.modelValue, () => {
|
|
19473
|
+
if (props.validateEvent) {
|
|
19474
|
+
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
|
19475
|
+
}
|
|
19476
|
+
});
|
|
19504
19477
|
return (_ctx, _cache) => {
|
|
19505
19478
|
return openBlock(), createElementBlock("div", {
|
|
19506
19479
|
id: unref(groupId),
|
|
@@ -19665,8 +19638,8 @@ const _sfc_main$1F = defineComponent({
|
|
|
19665
19638
|
}
|
|
19666
19639
|
});
|
|
19667
19640
|
const _hoisted_1$N = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
|
|
19668
|
-
const _hoisted_2$
|
|
19669
|
-
function _sfc_render$
|
|
19641
|
+
const _hoisted_2$x = /* @__PURE__ */ createElementVNode("span", null, null, -1);
|
|
19642
|
+
function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19670
19643
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
19671
19644
|
const _component_el_radio = resolveComponent("el-radio");
|
|
19672
19645
|
const _component_check = resolveComponent("check");
|
|
@@ -19713,7 +19686,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19713
19686
|
}, {
|
|
19714
19687
|
default: withCtx(() => [
|
|
19715
19688
|
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 "),
|
|
19716
|
-
_hoisted_2$
|
|
19689
|
+
_hoisted_2$x
|
|
19717
19690
|
]),
|
|
19718
19691
|
_: 1
|
|
19719
19692
|
}, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : _ctx.isLeaf && _ctx.node.checked ? (openBlock(), createBlock(_component_el_icon, {
|
|
@@ -19749,7 +19722,7 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19749
19722
|
], 64)) : createCommentVNode("v-if", true)
|
|
19750
19723
|
], 42, _hoisted_1$N);
|
|
19751
19724
|
}
|
|
19752
|
-
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$
|
|
19725
|
+
var ElCascaderNode = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$B], ["__file", "node.vue"]]);
|
|
19753
19726
|
|
|
19754
19727
|
const _sfc_main$1E = defineComponent({
|
|
19755
19728
|
name: "ElCascaderMenu",
|
|
@@ -19829,7 +19802,7 @@ const _sfc_main$1E = defineComponent({
|
|
|
19829
19802
|
};
|
|
19830
19803
|
}
|
|
19831
19804
|
});
|
|
19832
|
-
function _sfc_render$
|
|
19805
|
+
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19833
19806
|
const _component_el_cascader_node = resolveComponent("el-cascader-node");
|
|
19834
19807
|
const _component_loading = resolveComponent("loading");
|
|
19835
19808
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -19882,7 +19855,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19882
19855
|
_: 1
|
|
19883
19856
|
}, 8, ["class", "wrap-class", "view-class", "onMousemove", "onMouseleave"]);
|
|
19884
19857
|
}
|
|
19885
|
-
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$
|
|
19858
|
+
var ElCascaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$A], ["__file", "menu.vue"]]);
|
|
19886
19859
|
|
|
19887
19860
|
var ExpandTrigger = /* @__PURE__ */ ((ExpandTrigger2) => {
|
|
19888
19861
|
ExpandTrigger2["CLICK"] = "click";
|
|
@@ -20357,7 +20330,7 @@ const _sfc_main$1D = defineComponent({
|
|
|
20357
20330
|
};
|
|
20358
20331
|
}
|
|
20359
20332
|
});
|
|
20360
|
-
function _sfc_render$
|
|
20333
|
+
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20361
20334
|
const _component_el_cascader_menu = resolveComponent("el-cascader-menu");
|
|
20362
20335
|
return openBlock(), createElementBlock("div", {
|
|
20363
20336
|
class: normalizeClass([_ctx.ns.b("panel"), _ctx.ns.is("bordered", _ctx.border)]),
|
|
@@ -20374,7 +20347,7 @@ function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20374
20347
|
}), 128))
|
|
20375
20348
|
], 34);
|
|
20376
20349
|
}
|
|
20377
|
-
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$
|
|
20350
|
+
var CascaderPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$z], ["__file", "index.vue"]]);
|
|
20378
20351
|
|
|
20379
20352
|
CascaderPanel.install = (app) => {
|
|
20380
20353
|
app.component(CascaderPanel.name, CascaderPanel);
|
|
@@ -20412,11 +20385,11 @@ const tagEmits = {
|
|
|
20412
20385
|
click: (evt) => evt instanceof MouseEvent
|
|
20413
20386
|
};
|
|
20414
20387
|
|
|
20415
|
-
const __default__$
|
|
20388
|
+
const __default__$Y = {
|
|
20416
20389
|
name: "ElTag"
|
|
20417
20390
|
};
|
|
20418
20391
|
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
20419
|
-
...__default__$
|
|
20392
|
+
...__default__$Y,
|
|
20420
20393
|
props: tagProps,
|
|
20421
20394
|
emits: tagEmits,
|
|
20422
20395
|
setup(__props, { emit }) {
|
|
@@ -20581,7 +20554,11 @@ const _sfc_main$1B = defineComponent({
|
|
|
20581
20554
|
default: ""
|
|
20582
20555
|
},
|
|
20583
20556
|
teleported: useTooltipContentProps.teleported,
|
|
20584
|
-
tagType: { ...tagProps.type, default: "info" }
|
|
20557
|
+
tagType: { ...tagProps.type, default: "info" },
|
|
20558
|
+
validateEvent: {
|
|
20559
|
+
type: Boolean,
|
|
20560
|
+
default: true
|
|
20561
|
+
}
|
|
20585
20562
|
},
|
|
20586
20563
|
emits: [
|
|
20587
20564
|
UPDATE_MODEL_EVENT,
|
|
@@ -20643,7 +20620,9 @@ const _sfc_main$1B = defineComponent({
|
|
|
20643
20620
|
var _a;
|
|
20644
20621
|
emit(UPDATE_MODEL_EVENT, val);
|
|
20645
20622
|
emit(CHANGE_EVENT, val);
|
|
20646
|
-
|
|
20623
|
+
if (props.validateEvent) {
|
|
20624
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
20625
|
+
}
|
|
20647
20626
|
}
|
|
20648
20627
|
});
|
|
20649
20628
|
const popperPaneRef = computed(() => {
|
|
@@ -20938,10 +20917,9 @@ const _sfc_main$1B = defineComponent({
|
|
|
20938
20917
|
}
|
|
20939
20918
|
});
|
|
20940
20919
|
const _hoisted_1$M = { key: 0 };
|
|
20941
|
-
const _hoisted_2$
|
|
20942
|
-
const _hoisted_3$
|
|
20943
|
-
|
|
20944
|
-
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20920
|
+
const _hoisted_2$w = ["placeholder"];
|
|
20921
|
+
const _hoisted_3$i = ["onClick"];
|
|
20922
|
+
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20945
20923
|
const _component_circle_close = resolveComponent("circle-close");
|
|
20946
20924
|
const _component_el_icon = resolveComponent("el-icon");
|
|
20947
20925
|
const _component_arrow_down = resolveComponent("arrow-down");
|
|
@@ -21062,11 +21040,13 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21062
21040
|
createElementVNode("span", null, toDisplayString(tag.text), 1)
|
|
21063
21041
|
]),
|
|
21064
21042
|
content: withCtx(() => [
|
|
21065
|
-
createElementVNode("div",
|
|
21043
|
+
createElementVNode("div", {
|
|
21044
|
+
class: normalizeClass(_ctx.nsCascader.e("collapse-tags"))
|
|
21045
|
+
}, [
|
|
21066
21046
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.allPresentTags, (tag2, idx) => {
|
|
21067
21047
|
return openBlock(), createElementBlock("div", {
|
|
21068
21048
|
key: idx,
|
|
21069
|
-
class: "
|
|
21049
|
+
class: normalizeClass(_ctx.nsCascader.e("collapse-tag"))
|
|
21070
21050
|
}, [
|
|
21071
21051
|
(openBlock(), createBlock(_component_el_tag, {
|
|
21072
21052
|
key: tag2.key,
|
|
@@ -21083,9 +21063,9 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21083
21063
|
]),
|
|
21084
21064
|
_: 2
|
|
21085
21065
|
}, 1032, ["type", "size", "hit", "closable", "onClose"]))
|
|
21086
|
-
]);
|
|
21066
|
+
], 2);
|
|
21087
21067
|
}), 128))
|
|
21088
|
-
])
|
|
21068
|
+
], 2)
|
|
21089
21069
|
]),
|
|
21090
21070
|
_: 2
|
|
21091
21071
|
}, 1032, ["disabled"]))
|
|
@@ -21105,7 +21085,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21105
21085
|
onCompositionstart: _cache[8] || (_cache[8] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
21106
21086
|
onCompositionupdate: _cache[9] || (_cache[9] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
21107
21087
|
onCompositionend: _cache[10] || (_cache[10] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args))
|
|
21108
|
-
}, null, 42,
|
|
21088
|
+
}, null, 42, _hoisted_2$w)), [
|
|
21109
21089
|
[vModelText, _ctx.searchInputValue]
|
|
21110
21090
|
]) : createCommentVNode("v-if", true)
|
|
21111
21091
|
], 2)) : createCommentVNode("v-if", true)
|
|
@@ -21153,7 +21133,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21153
21133
|
]),
|
|
21154
21134
|
_: 1
|
|
21155
21135
|
})) : createCommentVNode("v-if", true)
|
|
21156
|
-
], 10,
|
|
21136
|
+
], 10, _hoisted_3$i);
|
|
21157
21137
|
}), 128)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
21158
21138
|
createElementVNode("li", {
|
|
21159
21139
|
class: normalizeClass(_ctx.nsCascader.e("empty-text"))
|
|
@@ -21168,7 +21148,7 @@ function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21168
21148
|
_: 3
|
|
21169
21149
|
}, 8, ["visible", "teleported", "popper-class", "popper-options", "transition", "onHide"]);
|
|
21170
21150
|
}
|
|
21171
|
-
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$
|
|
21151
|
+
var Cascader = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$y], ["__file", "index.vue"]]);
|
|
21172
21152
|
|
|
21173
21153
|
Cascader.install = (app) => {
|
|
21174
21154
|
app.component(Cascader.name, Cascader);
|
|
@@ -21187,11 +21167,11 @@ const checkTagEmits = {
|
|
|
21187
21167
|
[CHANGE_EVENT]: (value) => isBoolean(value)
|
|
21188
21168
|
};
|
|
21189
21169
|
|
|
21190
|
-
const __default__$
|
|
21170
|
+
const __default__$X = {
|
|
21191
21171
|
name: "ElCheckTag"
|
|
21192
21172
|
};
|
|
21193
21173
|
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
21194
|
-
...__default__$
|
|
21174
|
+
...__default__$X,
|
|
21195
21175
|
props: checkTagProps,
|
|
21196
21176
|
emits: checkTagEmits,
|
|
21197
21177
|
setup(__props, { emit }) {
|
|
@@ -21259,11 +21239,11 @@ const colProps = buildProps({
|
|
|
21259
21239
|
}
|
|
21260
21240
|
});
|
|
21261
21241
|
|
|
21262
|
-
const __default__$
|
|
21242
|
+
const __default__$W = {
|
|
21263
21243
|
name: "ElCol"
|
|
21264
21244
|
};
|
|
21265
21245
|
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
21266
|
-
...__default__$
|
|
21246
|
+
...__default__$W,
|
|
21267
21247
|
props: colProps,
|
|
21268
21248
|
setup(__props) {
|
|
21269
21249
|
const props = __props;
|
|
@@ -21333,11 +21313,11 @@ const collapseEmits = {
|
|
|
21333
21313
|
[CHANGE_EVENT]: emitChangeFn
|
|
21334
21314
|
};
|
|
21335
21315
|
|
|
21336
|
-
const __default__$
|
|
21316
|
+
const __default__$V = {
|
|
21337
21317
|
name: "ElCollapse"
|
|
21338
21318
|
};
|
|
21339
21319
|
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
21340
|
-
...__default__$
|
|
21320
|
+
...__default__$V,
|
|
21341
21321
|
props: collapseProps,
|
|
21342
21322
|
emits: collapseEmits,
|
|
21343
21323
|
setup(__props, { expose, emit }) {
|
|
@@ -21388,11 +21368,11 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
21388
21368
|
});
|
|
21389
21369
|
var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["__file", "collapse.vue"]]);
|
|
21390
21370
|
|
|
21391
|
-
const __default__$
|
|
21371
|
+
const __default__$U = {
|
|
21392
21372
|
name: "ElCollapseTransition"
|
|
21393
21373
|
};
|
|
21394
21374
|
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
21395
|
-
...__default__$
|
|
21375
|
+
...__default__$U,
|
|
21396
21376
|
setup(__props) {
|
|
21397
21377
|
const ns = useNamespace("collapse-transition");
|
|
21398
21378
|
const on = {
|
|
@@ -21478,13 +21458,13 @@ const collapseItemProps = buildProps({
|
|
|
21478
21458
|
});
|
|
21479
21459
|
|
|
21480
21460
|
const _hoisted_1$L = ["aria-expanded", "aria-controls", "aria-describedby"];
|
|
21481
|
-
const _hoisted_2$
|
|
21482
|
-
const _hoisted_3$
|
|
21483
|
-
const __default__$
|
|
21461
|
+
const _hoisted_2$v = ["id", "tabindex", "onKeypress"];
|
|
21462
|
+
const _hoisted_3$h = ["id", "aria-hidden", "aria-labelledby"];
|
|
21463
|
+
const __default__$T = {
|
|
21484
21464
|
name: "ElCollapseItem"
|
|
21485
21465
|
};
|
|
21486
21466
|
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
21487
|
-
...__default__$
|
|
21467
|
+
...__default__$T,
|
|
21488
21468
|
props: collapseItemProps,
|
|
21489
21469
|
setup(__props, { expose }) {
|
|
21490
21470
|
const props = __props;
|
|
@@ -21555,7 +21535,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
21555
21535
|
]),
|
|
21556
21536
|
_: 1
|
|
21557
21537
|
}, 8, ["class"])
|
|
21558
|
-
], 42, _hoisted_2$
|
|
21538
|
+
], 42, _hoisted_2$v)
|
|
21559
21539
|
], 8, _hoisted_1$L),
|
|
21560
21540
|
createVNode(unref(_CollapseTransition), null, {
|
|
21561
21541
|
default: withCtx(() => [
|
|
@@ -21571,7 +21551,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
21571
21551
|
}, [
|
|
21572
21552
|
renderSlot(_ctx.$slots, "default")
|
|
21573
21553
|
], 2)
|
|
21574
|
-
], 10, _hoisted_3$
|
|
21554
|
+
], 10, _hoisted_3$h), [
|
|
21575
21555
|
[vShow, unref(isActive)]
|
|
21576
21556
|
])
|
|
21577
21557
|
]),
|
|
@@ -21638,6 +21618,7 @@ const _sfc_main$1v = defineComponent({
|
|
|
21638
21618
|
}
|
|
21639
21619
|
},
|
|
21640
21620
|
setup(props) {
|
|
21621
|
+
const ns = useNamespace("color-alpha-slider");
|
|
21641
21622
|
const instance = getCurrentInstance();
|
|
21642
21623
|
const thumb = shallowRef(null);
|
|
21643
21624
|
const bar = shallowRef(null);
|
|
@@ -21722,33 +21703,34 @@ const _sfc_main$1v = defineComponent({
|
|
|
21722
21703
|
thumbTop,
|
|
21723
21704
|
background,
|
|
21724
21705
|
handleClick,
|
|
21725
|
-
update
|
|
21706
|
+
update,
|
|
21707
|
+
ns
|
|
21726
21708
|
};
|
|
21727
21709
|
}
|
|
21728
21710
|
});
|
|
21729
|
-
function _sfc_render$
|
|
21711
|
+
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21730
21712
|
return openBlock(), createElementBlock("div", {
|
|
21731
|
-
class: normalizeClass([
|
|
21713
|
+
class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
|
|
21732
21714
|
}, [
|
|
21733
21715
|
createElementVNode("div", {
|
|
21734
21716
|
ref: "bar",
|
|
21735
|
-
class: "
|
|
21717
|
+
class: normalizeClass(_ctx.ns.e("bar")),
|
|
21736
21718
|
style: normalizeStyle({
|
|
21737
21719
|
background: _ctx.background
|
|
21738
21720
|
}),
|
|
21739
21721
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
21740
|
-
}, null,
|
|
21722
|
+
}, null, 6),
|
|
21741
21723
|
createElementVNode("div", {
|
|
21742
21724
|
ref: "thumb",
|
|
21743
|
-
class: "
|
|
21725
|
+
class: normalizeClass(_ctx.ns.e("thumb")),
|
|
21744
21726
|
style: normalizeStyle({
|
|
21745
21727
|
left: _ctx.thumbLeft + "px",
|
|
21746
21728
|
top: _ctx.thumbTop + "px"
|
|
21747
21729
|
})
|
|
21748
|
-
}, null,
|
|
21730
|
+
}, null, 6)
|
|
21749
21731
|
], 2);
|
|
21750
21732
|
}
|
|
21751
|
-
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$
|
|
21733
|
+
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1v, [["render", _sfc_render$x], ["__file", "alpha-slider.vue"]]);
|
|
21752
21734
|
|
|
21753
21735
|
const _sfc_main$1u = defineComponent({
|
|
21754
21736
|
name: "ElColorHueSlider",
|
|
@@ -21760,6 +21742,7 @@ const _sfc_main$1u = defineComponent({
|
|
|
21760
21742
|
vertical: Boolean
|
|
21761
21743
|
},
|
|
21762
21744
|
setup(props) {
|
|
21745
|
+
const ns = useNamespace("color-hue-slider");
|
|
21763
21746
|
const instance = getCurrentInstance();
|
|
21764
21747
|
const thumb = ref(null);
|
|
21765
21748
|
const bar = ref(null);
|
|
@@ -21837,30 +21820,31 @@ const _sfc_main$1u = defineComponent({
|
|
|
21837
21820
|
thumbTop,
|
|
21838
21821
|
hueValue,
|
|
21839
21822
|
handleClick,
|
|
21840
|
-
update
|
|
21823
|
+
update,
|
|
21824
|
+
ns
|
|
21841
21825
|
};
|
|
21842
21826
|
}
|
|
21843
21827
|
});
|
|
21844
|
-
function _sfc_render$
|
|
21828
|
+
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21845
21829
|
return openBlock(), createElementBlock("div", {
|
|
21846
|
-
class: normalizeClass([
|
|
21830
|
+
class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
|
|
21847
21831
|
}, [
|
|
21848
21832
|
createElementVNode("div", {
|
|
21849
21833
|
ref: "bar",
|
|
21850
|
-
class: "
|
|
21834
|
+
class: normalizeClass(_ctx.ns.e("bar")),
|
|
21851
21835
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
21852
|
-
}, null,
|
|
21836
|
+
}, null, 2),
|
|
21853
21837
|
createElementVNode("div", {
|
|
21854
21838
|
ref: "thumb",
|
|
21855
|
-
class: "
|
|
21839
|
+
class: normalizeClass(_ctx.ns.e("thumb")),
|
|
21856
21840
|
style: normalizeStyle({
|
|
21857
21841
|
left: _ctx.thumbLeft + "px",
|
|
21858
21842
|
top: _ctx.thumbTop + "px"
|
|
21859
21843
|
})
|
|
21860
|
-
}, null,
|
|
21844
|
+
}, null, 6)
|
|
21861
21845
|
], 2);
|
|
21862
21846
|
}
|
|
21863
|
-
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$
|
|
21847
|
+
var HueSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$w], ["__file", "hue-slider.vue"]]);
|
|
21864
21848
|
|
|
21865
21849
|
const OPTIONS_KEY = Symbol();
|
|
21866
21850
|
const useOptions = () => {
|
|
@@ -22147,6 +22131,7 @@ const _sfc_main$1t = defineComponent({
|
|
|
22147
22131
|
}
|
|
22148
22132
|
},
|
|
22149
22133
|
setup(props) {
|
|
22134
|
+
const ns = useNamespace("color-predefine");
|
|
22150
22135
|
const { currentColor } = useOptions();
|
|
22151
22136
|
const rgbaColors = ref(parseColors(props.colors, props.color));
|
|
22152
22137
|
watch(() => currentColor.value, (val) => {
|
|
@@ -22174,31 +22159,38 @@ const _sfc_main$1t = defineComponent({
|
|
|
22174
22159
|
}
|
|
22175
22160
|
return {
|
|
22176
22161
|
rgbaColors,
|
|
22177
|
-
handleSelect
|
|
22162
|
+
handleSelect,
|
|
22163
|
+
ns
|
|
22178
22164
|
};
|
|
22179
22165
|
}
|
|
22180
22166
|
});
|
|
22181
|
-
const _hoisted_1$K =
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
createElementVNode("div",
|
|
22167
|
+
const _hoisted_1$K = ["onClick"];
|
|
22168
|
+
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22169
|
+
return openBlock(), createElementBlock("div", {
|
|
22170
|
+
class: normalizeClass(_ctx.ns.b())
|
|
22171
|
+
}, [
|
|
22172
|
+
createElementVNode("div", {
|
|
22173
|
+
class: normalizeClass(_ctx.ns.e("colors"))
|
|
22174
|
+
}, [
|
|
22187
22175
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.rgbaColors, (item, index) => {
|
|
22188
22176
|
return openBlock(), createElementBlock("div", {
|
|
22189
22177
|
key: _ctx.colors[index],
|
|
22190
|
-
class: normalizeClass([
|
|
22178
|
+
class: normalizeClass([
|
|
22179
|
+
_ctx.ns.e("color-selector"),
|
|
22180
|
+
_ctx.ns.is("alpha", item._alpha < 100),
|
|
22181
|
+
{ selected: item.selected }
|
|
22182
|
+
]),
|
|
22191
22183
|
onClick: ($event) => _ctx.handleSelect(index)
|
|
22192
22184
|
}, [
|
|
22193
22185
|
createElementVNode("div", {
|
|
22194
22186
|
style: normalizeStyle({ backgroundColor: item.value })
|
|
22195
22187
|
}, null, 4)
|
|
22196
|
-
], 10,
|
|
22188
|
+
], 10, _hoisted_1$K);
|
|
22197
22189
|
}), 128))
|
|
22198
|
-
])
|
|
22199
|
-
]);
|
|
22190
|
+
], 2)
|
|
22191
|
+
], 2);
|
|
22200
22192
|
}
|
|
22201
|
-
var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$
|
|
22193
|
+
var Predefine = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$v], ["__file", "predefine.vue"]]);
|
|
22202
22194
|
|
|
22203
22195
|
const _sfc_main$1s = defineComponent({
|
|
22204
22196
|
name: "ElSlPanel",
|
|
@@ -22209,6 +22201,7 @@ const _sfc_main$1s = defineComponent({
|
|
|
22209
22201
|
}
|
|
22210
22202
|
},
|
|
22211
22203
|
setup(props) {
|
|
22204
|
+
const ns = useNamespace("color-svpanel");
|
|
22212
22205
|
const instance = getCurrentInstance();
|
|
22213
22206
|
const cursorTop = ref(0);
|
|
22214
22207
|
const cursorLeft = ref(0);
|
|
@@ -22264,35 +22257,38 @@ const _sfc_main$1s = defineComponent({
|
|
|
22264
22257
|
background,
|
|
22265
22258
|
colorValue,
|
|
22266
22259
|
handleDrag,
|
|
22267
|
-
update
|
|
22260
|
+
update,
|
|
22261
|
+
ns
|
|
22268
22262
|
};
|
|
22269
22263
|
}
|
|
22270
22264
|
});
|
|
22271
|
-
const _hoisted_1$J = /* @__PURE__ */ createElementVNode("div",
|
|
22272
|
-
const _hoisted_2$u =
|
|
22273
|
-
|
|
22274
|
-
const _hoisted_4$c = [
|
|
22275
|
-
_hoisted_3$h
|
|
22265
|
+
const _hoisted_1$J = /* @__PURE__ */ createElementVNode("div", null, null, -1);
|
|
22266
|
+
const _hoisted_2$u = [
|
|
22267
|
+
_hoisted_1$J
|
|
22276
22268
|
];
|
|
22277
|
-
function _sfc_render$
|
|
22269
|
+
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22278
22270
|
return openBlock(), createElementBlock("div", {
|
|
22279
|
-
class:
|
|
22271
|
+
class: normalizeClass(_ctx.ns.b()),
|
|
22280
22272
|
style: normalizeStyle({
|
|
22281
22273
|
backgroundColor: _ctx.background
|
|
22282
22274
|
})
|
|
22283
22275
|
}, [
|
|
22284
|
-
_hoisted_1$J,
|
|
22285
|
-
_hoisted_2$u,
|
|
22286
22276
|
createElementVNode("div", {
|
|
22287
|
-
class: "
|
|
22277
|
+
class: normalizeClass(_ctx.ns.e("white"))
|
|
22278
|
+
}, null, 2),
|
|
22279
|
+
createElementVNode("div", {
|
|
22280
|
+
class: normalizeClass(_ctx.ns.e("black"))
|
|
22281
|
+
}, null, 2),
|
|
22282
|
+
createElementVNode("div", {
|
|
22283
|
+
class: normalizeClass(_ctx.ns.e("cursor")),
|
|
22288
22284
|
style: normalizeStyle({
|
|
22289
22285
|
top: _ctx.cursorTop + "px",
|
|
22290
22286
|
left: _ctx.cursorLeft + "px"
|
|
22291
22287
|
})
|
|
22292
|
-
},
|
|
22293
|
-
],
|
|
22288
|
+
}, _hoisted_2$u, 6)
|
|
22289
|
+
], 6);
|
|
22294
22290
|
}
|
|
22295
|
-
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$
|
|
22291
|
+
var SvPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["render", _sfc_render$u], ["__file", "sv-panel.vue"]]);
|
|
22296
22292
|
|
|
22297
22293
|
const _sfc_main$1r = defineComponent({
|
|
22298
22294
|
name: "ElColorPicker",
|
|
@@ -22330,7 +22326,11 @@ const _sfc_main$1r = defineComponent({
|
|
|
22330
22326
|
type: [String, Number],
|
|
22331
22327
|
default: 0
|
|
22332
22328
|
},
|
|
22333
|
-
predefine: Array
|
|
22329
|
+
predefine: Array,
|
|
22330
|
+
validateEvent: {
|
|
22331
|
+
type: Boolean,
|
|
22332
|
+
default: true
|
|
22333
|
+
}
|
|
22334
22334
|
},
|
|
22335
22335
|
emits: ["change", "active-change", UPDATE_MODEL_EVENT],
|
|
22336
22336
|
setup(props, { emit }) {
|
|
@@ -22431,7 +22431,9 @@ const _sfc_main$1r = defineComponent({
|
|
|
22431
22431
|
const value = color.value;
|
|
22432
22432
|
emit(UPDATE_MODEL_EVENT, value);
|
|
22433
22433
|
emit("change", value);
|
|
22434
|
-
|
|
22434
|
+
if (props.validateEvent) {
|
|
22435
|
+
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
22436
|
+
}
|
|
22435
22437
|
debounceSetShowPicker(false);
|
|
22436
22438
|
nextTick(() => {
|
|
22437
22439
|
const newColor = new Color({
|
|
@@ -22449,7 +22451,7 @@ const _sfc_main$1r = defineComponent({
|
|
|
22449
22451
|
debounceSetShowPicker(false);
|
|
22450
22452
|
emit(UPDATE_MODEL_EVENT, null);
|
|
22451
22453
|
emit("change", null);
|
|
22452
|
-
if (props.modelValue !== null) {
|
|
22454
|
+
if (props.modelValue !== null && props.validateEvent) {
|
|
22453
22455
|
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
22454
22456
|
}
|
|
22455
22457
|
resetColor();
|
|
@@ -22496,7 +22498,7 @@ const _sfc_main$1r = defineComponent({
|
|
|
22496
22498
|
}
|
|
22497
22499
|
});
|
|
22498
22500
|
const _hoisted_1$I = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"];
|
|
22499
|
-
function _sfc_render$
|
|
22501
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22500
22502
|
const _component_hue_slider = resolveComponent("hue-slider");
|
|
22501
22503
|
const _component_sv_panel = resolveComponent("sv-panel");
|
|
22502
22504
|
const _component_alpha_slider = resolveComponent("alpha-slider");
|
|
@@ -22651,7 +22653,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22651
22653
|
_: 1
|
|
22652
22654
|
}, 8, ["visible", "popper-class"]);
|
|
22653
22655
|
}
|
|
22654
|
-
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$
|
|
22656
|
+
var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$t], ["__file", "index.vue"]]);
|
|
22655
22657
|
|
|
22656
22658
|
ColorPicker.install = (app) => {
|
|
22657
22659
|
app.component(ColorPicker.name, ColorPicker);
|
|
@@ -22702,11 +22704,11 @@ const ConfigProvider = defineComponent({
|
|
|
22702
22704
|
|
|
22703
22705
|
const ElConfigProvider = withInstall(ConfigProvider);
|
|
22704
22706
|
|
|
22705
|
-
const __default__$
|
|
22707
|
+
const __default__$S = {
|
|
22706
22708
|
name: "ElContainer"
|
|
22707
22709
|
};
|
|
22708
22710
|
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
22709
|
-
...__default__$
|
|
22711
|
+
...__default__$S,
|
|
22710
22712
|
props: {
|
|
22711
22713
|
direction: {
|
|
22712
22714
|
type: String
|
|
@@ -22743,11 +22745,11 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
22743
22745
|
});
|
|
22744
22746
|
var Container = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__file", "container.vue"]]);
|
|
22745
22747
|
|
|
22746
|
-
const __default__$
|
|
22748
|
+
const __default__$R = {
|
|
22747
22749
|
name: "ElAside"
|
|
22748
22750
|
};
|
|
22749
22751
|
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
22750
|
-
...__default__$
|
|
22752
|
+
...__default__$R,
|
|
22751
22753
|
props: {
|
|
22752
22754
|
width: {
|
|
22753
22755
|
type: String,
|
|
@@ -22770,11 +22772,11 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
22770
22772
|
});
|
|
22771
22773
|
var Aside = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__file", "aside.vue"]]);
|
|
22772
22774
|
|
|
22773
|
-
const __default__$
|
|
22775
|
+
const __default__$Q = {
|
|
22774
22776
|
name: "ElFooter"
|
|
22775
22777
|
};
|
|
22776
22778
|
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
22777
|
-
...__default__$
|
|
22779
|
+
...__default__$Q,
|
|
22778
22780
|
props: {
|
|
22779
22781
|
height: {
|
|
22780
22782
|
type: String,
|
|
@@ -22797,11 +22799,11 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
22797
22799
|
});
|
|
22798
22800
|
var Footer$2 = /* @__PURE__ */ _export_sfc(_sfc_main$1o, [["__file", "footer.vue"]]);
|
|
22799
22801
|
|
|
22800
|
-
const __default__$
|
|
22802
|
+
const __default__$P = {
|
|
22801
22803
|
name: "ElHeader"
|
|
22802
22804
|
};
|
|
22803
22805
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
22804
|
-
...__default__$
|
|
22806
|
+
...__default__$P,
|
|
22805
22807
|
props: {
|
|
22806
22808
|
height: {
|
|
22807
22809
|
type: String,
|
|
@@ -22828,11 +22830,11 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
22828
22830
|
});
|
|
22829
22831
|
var Header$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["__file", "header.vue"]]);
|
|
22830
22832
|
|
|
22831
|
-
const __default__$
|
|
22833
|
+
const __default__$O = {
|
|
22832
22834
|
name: "ElMain"
|
|
22833
22835
|
};
|
|
22834
22836
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
22835
|
-
...__default__$
|
|
22837
|
+
...__default__$O,
|
|
22836
22838
|
setup(__props) {
|
|
22837
22839
|
const ns = useNamespace("main");
|
|
22838
22840
|
return (_ctx, _cache) => {
|
|
@@ -23205,6 +23207,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23205
23207
|
const lastRow = ref();
|
|
23206
23208
|
const lastColumn = ref();
|
|
23207
23209
|
const tableRows = ref([[], [], [], [], [], []]);
|
|
23210
|
+
let focusWithClick = false;
|
|
23208
23211
|
const firstDayOfWeek = props.date.$locale().weekStart || 7;
|
|
23209
23212
|
const WEEKS_CONSTANT = props.date.locale("en").localeData().weekdaysShort().map((_) => _.toLowerCase());
|
|
23210
23213
|
const offsetDay = computed(() => {
|
|
@@ -23409,13 +23412,25 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23409
23412
|
return !hasCurrent.value && (cell == null ? void 0 : cell.text) === 1 && cell.type === "normal" || cell.isCurrent;
|
|
23410
23413
|
};
|
|
23411
23414
|
const handleFocus = (event) => {
|
|
23412
|
-
if (
|
|
23413
|
-
|
|
23414
|
-
|
|
23415
|
+
if (focusWithClick || hasCurrent.value || props.selectionMode !== "date")
|
|
23416
|
+
return;
|
|
23417
|
+
handlePickDate(event, true);
|
|
23418
|
+
};
|
|
23419
|
+
const handleMouseDown = (event) => {
|
|
23420
|
+
const target = event.target.closest("td");
|
|
23421
|
+
if (!target)
|
|
23422
|
+
return;
|
|
23423
|
+
focusWithClick = true;
|
|
23424
|
+
};
|
|
23425
|
+
const handleMouseUp = (event) => {
|
|
23426
|
+
const target = event.target.closest("td");
|
|
23427
|
+
if (!target)
|
|
23428
|
+
return;
|
|
23429
|
+
focusWithClick = false;
|
|
23415
23430
|
};
|
|
23416
23431
|
const handlePickDate = (event, isKeyboardMovement = false) => {
|
|
23417
23432
|
const target = event.target.closest("td");
|
|
23418
|
-
if (!target
|
|
23433
|
+
if (!target)
|
|
23419
23434
|
return;
|
|
23420
23435
|
const row = target.parentNode.rowIndex - 1;
|
|
23421
23436
|
const column = target.cellIndex;
|
|
@@ -23480,7 +23495,9 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23480
23495
|
cellpadding: "0",
|
|
23481
23496
|
class: normalizeClass([unref(ns).b(), { "is-week-mode": _ctx.selectionMode === "week" }]),
|
|
23482
23497
|
onClick: handlePickDate,
|
|
23483
|
-
onMousemove: handleMouseMove
|
|
23498
|
+
onMousemove: handleMouseMove,
|
|
23499
|
+
onMousedown: handleMouseDown,
|
|
23500
|
+
onMouseup: handleMouseUp
|
|
23484
23501
|
}, [
|
|
23485
23502
|
createElementVNode("tbody", {
|
|
23486
23503
|
ref_key: "tbodyRef",
|
|
@@ -23505,9 +23522,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
23505
23522
|
return openBlock(), createElementBlock("td", {
|
|
23506
23523
|
key: `${rowKey}.${columnKey}`,
|
|
23507
23524
|
ref_for: true,
|
|
23508
|
-
ref: (el) =>
|
|
23509
|
-
isSelectedCell(cell) && (currentCellRef.value = el);
|
|
23510
|
-
},
|
|
23525
|
+
ref: (el) => isSelectedCell(cell) && (currentCellRef.value = el),
|
|
23511
23526
|
class: normalizeClass(getCellClasses(cell)),
|
|
23512
23527
|
"aria-current": cell.isCurrent ? "date" : void 0,
|
|
23513
23528
|
"aria-selected": cell.isCurrent,
|
|
@@ -23778,7 +23793,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
23778
23793
|
const clickTarget = event.target;
|
|
23779
23794
|
const target = clickTarget.closest("td");
|
|
23780
23795
|
if (target) {
|
|
23781
|
-
if (hasClass(target
|
|
23796
|
+
if (hasClass(target, "disabled"))
|
|
23782
23797
|
return;
|
|
23783
23798
|
const year = target.textContent || target.innerText;
|
|
23784
23799
|
emit("pick", Number(year));
|
|
@@ -25260,11 +25275,11 @@ const useMonthRangeHeader = ({
|
|
|
25260
25275
|
const _hoisted_1$C = ["onClick"];
|
|
25261
25276
|
const _hoisted_2$o = ["disabled"];
|
|
25262
25277
|
const _hoisted_3$b = ["disabled"];
|
|
25263
|
-
const __default__$
|
|
25278
|
+
const __default__$N = {
|
|
25264
25279
|
name: "DatePickerMonthRange"
|
|
25265
25280
|
};
|
|
25266
25281
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
25267
|
-
...__default__$
|
|
25282
|
+
...__default__$N,
|
|
25268
25283
|
props: panelMonthRangeProps,
|
|
25269
25284
|
emits: panelMonthRangeEmits,
|
|
25270
25285
|
setup(__props, { emit }) {
|
|
@@ -25547,9 +25562,9 @@ _DatePicker.install = (app) => {
|
|
|
25547
25562
|
};
|
|
25548
25563
|
const ElDatePicker = _DatePicker;
|
|
25549
25564
|
|
|
25550
|
-
const
|
|
25565
|
+
const descriptionsKey = "elDescriptions";
|
|
25551
25566
|
|
|
25552
|
-
var
|
|
25567
|
+
var ElDescriptionsCell = defineComponent({
|
|
25553
25568
|
name: "ElDescriptionsCell",
|
|
25554
25569
|
props: {
|
|
25555
25570
|
cell: {
|
|
@@ -25563,7 +25578,7 @@ var DescriptionsCell = defineComponent({
|
|
|
25563
25578
|
}
|
|
25564
25579
|
},
|
|
25565
25580
|
setup() {
|
|
25566
|
-
const descriptions = inject(
|
|
25581
|
+
const descriptions = inject(descriptionsKey, {});
|
|
25567
25582
|
return {
|
|
25568
25583
|
descriptions
|
|
25569
25584
|
};
|
|
@@ -25629,114 +25644,112 @@ var DescriptionsCell = defineComponent({
|
|
|
25629
25644
|
}
|
|
25630
25645
|
});
|
|
25631
25646
|
|
|
25632
|
-
const
|
|
25633
|
-
|
|
25634
|
-
|
|
25635
|
-
[
|
|
25636
|
-
},
|
|
25637
|
-
props: {
|
|
25638
|
-
row: {
|
|
25639
|
-
type: Array
|
|
25640
|
-
}
|
|
25641
|
-
},
|
|
25642
|
-
setup() {
|
|
25643
|
-
const descriptions = inject(elDescriptionsKey, {});
|
|
25644
|
-
return {
|
|
25645
|
-
descriptions
|
|
25646
|
-
};
|
|
25647
|
+
const descriptionsRowProps = buildProps({
|
|
25648
|
+
row: {
|
|
25649
|
+
type: Array,
|
|
25650
|
+
default: () => []
|
|
25647
25651
|
}
|
|
25648
25652
|
});
|
|
25653
|
+
|
|
25649
25654
|
const _hoisted_1$B = { key: 1 };
|
|
25650
|
-
|
|
25651
|
-
|
|
25652
|
-
|
|
25653
|
-
|
|
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
|
-
|
|
25655
|
+
const __default__$M = {
|
|
25656
|
+
name: "ElDescriptionsRow"
|
|
25657
|
+
};
|
|
25658
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
25659
|
+
...__default__$M,
|
|
25660
|
+
props: descriptionsRowProps,
|
|
25661
|
+
setup(__props) {
|
|
25662
|
+
const descriptions = inject(descriptionsKey, {});
|
|
25663
|
+
return (_ctx, _cache) => {
|
|
25664
|
+
return unref(descriptions).direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
25665
|
+
createElementVNode("tr", null, [
|
|
25666
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
|
|
25667
|
+
return openBlock(), createBlock(unref(ElDescriptionsCell), {
|
|
25668
|
+
key: `tr1-${index}`,
|
|
25669
|
+
cell,
|
|
25670
|
+
tag: "th",
|
|
25671
|
+
type: "label"
|
|
25672
|
+
}, null, 8, ["cell"]);
|
|
25673
|
+
}), 128))
|
|
25674
|
+
]),
|
|
25675
|
+
createElementVNode("tr", null, [
|
|
25676
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
|
|
25677
|
+
return openBlock(), createBlock(unref(ElDescriptionsCell), {
|
|
25678
|
+
key: `tr2-${index}`,
|
|
25679
|
+
cell,
|
|
25680
|
+
tag: "td",
|
|
25681
|
+
type: "content"
|
|
25682
|
+
}, null, 8, ["cell"]);
|
|
25683
|
+
}), 128))
|
|
25684
|
+
])
|
|
25685
|
+
], 64)) : (openBlock(), createElementBlock("tr", _hoisted_1$B, [
|
|
25686
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, index) => {
|
|
25687
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
25688
|
+
key: `tr3-${index}`
|
|
25689
|
+
}, [
|
|
25690
|
+
unref(descriptions).border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
25691
|
+
createVNode(unref(ElDescriptionsCell), {
|
|
25692
|
+
cell,
|
|
25693
|
+
tag: "td",
|
|
25694
|
+
type: "label"
|
|
25695
|
+
}, null, 8, ["cell"]),
|
|
25696
|
+
createVNode(unref(ElDescriptionsCell), {
|
|
25697
|
+
cell,
|
|
25698
|
+
tag: "td",
|
|
25699
|
+
type: "content"
|
|
25700
|
+
}, null, 8, ["cell"])
|
|
25701
|
+
], 64)) : (openBlock(), createBlock(unref(ElDescriptionsCell), {
|
|
25702
|
+
key: 1,
|
|
25703
|
+
cell,
|
|
25704
|
+
tag: "td",
|
|
25705
|
+
type: "both"
|
|
25706
|
+
}, null, 8, ["cell"]))
|
|
25707
|
+
], 64);
|
|
25708
|
+
}), 128))
|
|
25709
|
+
]));
|
|
25710
|
+
};
|
|
25711
|
+
}
|
|
25712
|
+
});
|
|
25713
|
+
var ElDescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__file", "descriptions-row.vue"]]);
|
|
25700
25714
|
|
|
25701
|
-
const
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25715
|
+
const descriptionProps = buildProps({
|
|
25716
|
+
border: {
|
|
25717
|
+
type: Boolean,
|
|
25718
|
+
default: false
|
|
25705
25719
|
},
|
|
25706
|
-
|
|
25707
|
-
|
|
25708
|
-
|
|
25709
|
-
default: false
|
|
25710
|
-
},
|
|
25711
|
-
column: {
|
|
25712
|
-
type: Number,
|
|
25713
|
-
default: 3
|
|
25714
|
-
},
|
|
25715
|
-
direction: {
|
|
25716
|
-
type: String,
|
|
25717
|
-
default: "horizontal"
|
|
25718
|
-
},
|
|
25719
|
-
size: {
|
|
25720
|
-
type: String,
|
|
25721
|
-
validator: isValidComponentSize
|
|
25722
|
-
},
|
|
25723
|
-
title: {
|
|
25724
|
-
type: String,
|
|
25725
|
-
default: ""
|
|
25726
|
-
},
|
|
25727
|
-
extra: {
|
|
25728
|
-
type: String,
|
|
25729
|
-
default: ""
|
|
25730
|
-
}
|
|
25720
|
+
column: {
|
|
25721
|
+
type: Number,
|
|
25722
|
+
default: 3
|
|
25731
25723
|
},
|
|
25732
|
-
|
|
25733
|
-
|
|
25734
|
-
|
|
25724
|
+
direction: {
|
|
25725
|
+
type: String,
|
|
25726
|
+
values: ["horizontal", "vertical"],
|
|
25727
|
+
default: "horizontal"
|
|
25728
|
+
},
|
|
25729
|
+
size: useSizeProp,
|
|
25730
|
+
title: {
|
|
25731
|
+
type: String,
|
|
25732
|
+
default: ""
|
|
25733
|
+
},
|
|
25734
|
+
extra: {
|
|
25735
|
+
type: String,
|
|
25736
|
+
default: ""
|
|
25737
|
+
}
|
|
25738
|
+
});
|
|
25739
|
+
|
|
25740
|
+
const __default__$L = {
|
|
25741
|
+
name: "ElDescriptions"
|
|
25742
|
+
};
|
|
25743
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
25744
|
+
...__default__$L,
|
|
25745
|
+
props: descriptionProps,
|
|
25746
|
+
setup(__props) {
|
|
25747
|
+
const props = __props;
|
|
25735
25748
|
const ns = useNamespace("descriptions");
|
|
25736
|
-
const
|
|
25737
|
-
|
|
25738
|
-
|
|
25739
|
-
]);
|
|
25749
|
+
const descriptionsSize = useSize();
|
|
25750
|
+
const slots = useSlots();
|
|
25751
|
+
provide(descriptionsKey, props);
|
|
25752
|
+
const descriptionKls = computed(() => [ns.b(), ns.m(descriptionsSize.value)]);
|
|
25740
25753
|
const flattedChildren = (children) => {
|
|
25741
25754
|
const temp = Array.isArray(children) ? children : [children];
|
|
25742
25755
|
const res = [];
|
|
@@ -25795,56 +25808,50 @@ const _sfc_main$1e = defineComponent({
|
|
|
25795
25808
|
});
|
|
25796
25809
|
return rows;
|
|
25797
25810
|
};
|
|
25798
|
-
return {
|
|
25799
|
-
|
|
25800
|
-
|
|
25801
|
-
|
|
25811
|
+
return (_ctx, _cache) => {
|
|
25812
|
+
return openBlock(), createElementBlock("div", {
|
|
25813
|
+
class: normalizeClass(unref(descriptionKls))
|
|
25814
|
+
}, [
|
|
25815
|
+
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
|
|
25816
|
+
key: 0,
|
|
25817
|
+
class: normalizeClass(unref(ns).e("header"))
|
|
25818
|
+
}, [
|
|
25819
|
+
createElementVNode("div", {
|
|
25820
|
+
class: normalizeClass(unref(ns).e("title"))
|
|
25821
|
+
}, [
|
|
25822
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
25823
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
25824
|
+
])
|
|
25825
|
+
], 2),
|
|
25826
|
+
createElementVNode("div", {
|
|
25827
|
+
class: normalizeClass(unref(ns).e("extra"))
|
|
25828
|
+
}, [
|
|
25829
|
+
renderSlot(_ctx.$slots, "extra", {}, () => [
|
|
25830
|
+
createTextVNode(toDisplayString(_ctx.extra), 1)
|
|
25831
|
+
])
|
|
25832
|
+
], 2)
|
|
25833
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
25834
|
+
createElementVNode("div", {
|
|
25835
|
+
class: normalizeClass(unref(ns).e("body"))
|
|
25836
|
+
}, [
|
|
25837
|
+
createElementVNode("table", {
|
|
25838
|
+
class: normalizeClass([unref(ns).e("table"), unref(ns).is("bordered", _ctx.border)])
|
|
25839
|
+
}, [
|
|
25840
|
+
createElementVNode("tbody", null, [
|
|
25841
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(getRows(), (row, index) => {
|
|
25842
|
+
return openBlock(), createBlock(ElDescriptionsRow, {
|
|
25843
|
+
key: index,
|
|
25844
|
+
row
|
|
25845
|
+
}, null, 8, ["row"]);
|
|
25846
|
+
}), 128))
|
|
25847
|
+
])
|
|
25848
|
+
], 2)
|
|
25849
|
+
], 2)
|
|
25850
|
+
], 2);
|
|
25802
25851
|
};
|
|
25803
25852
|
}
|
|
25804
25853
|
});
|
|
25805
|
-
|
|
25806
|
-
const _component_el_descriptions_row = resolveComponent("el-descriptions-row");
|
|
25807
|
-
return openBlock(), createElementBlock("div", {
|
|
25808
|
-
class: normalizeClass(_ctx.descriptionKls)
|
|
25809
|
-
}, [
|
|
25810
|
-
_ctx.title || _ctx.extra || _ctx.$slots.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
|
|
25811
|
-
key: 0,
|
|
25812
|
-
class: normalizeClass(_ctx.ns.e("header"))
|
|
25813
|
-
}, [
|
|
25814
|
-
createElementVNode("div", {
|
|
25815
|
-
class: normalizeClass(_ctx.ns.e("title"))
|
|
25816
|
-
}, [
|
|
25817
|
-
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
25818
|
-
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
25819
|
-
])
|
|
25820
|
-
], 2),
|
|
25821
|
-
createElementVNode("div", {
|
|
25822
|
-
class: normalizeClass(_ctx.ns.e("extra"))
|
|
25823
|
-
}, [
|
|
25824
|
-
renderSlot(_ctx.$slots, "extra", {}, () => [
|
|
25825
|
-
createTextVNode(toDisplayString(_ctx.extra), 1)
|
|
25826
|
-
])
|
|
25827
|
-
], 2)
|
|
25828
|
-
], 2)) : createCommentVNode("v-if", true),
|
|
25829
|
-
createElementVNode("div", {
|
|
25830
|
-
class: normalizeClass(_ctx.ns.e("body"))
|
|
25831
|
-
}, [
|
|
25832
|
-
createElementVNode("table", {
|
|
25833
|
-
class: normalizeClass([_ctx.ns.e("table"), _ctx.ns.is("bordered", _ctx.border)])
|
|
25834
|
-
}, [
|
|
25835
|
-
createElementVNode("tbody", null, [
|
|
25836
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.getRows(), (row, index) => {
|
|
25837
|
-
return openBlock(), createBlock(_component_el_descriptions_row, {
|
|
25838
|
-
key: index,
|
|
25839
|
-
row
|
|
25840
|
-
}, null, 8, ["row"]);
|
|
25841
|
-
}), 128))
|
|
25842
|
-
])
|
|
25843
|
-
], 2)
|
|
25844
|
-
], 2)
|
|
25845
|
-
], 2);
|
|
25846
|
-
}
|
|
25847
|
-
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$t], ["__file", "index.vue"]]);
|
|
25854
|
+
var Descriptions = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__file", "description.vue"]]);
|
|
25848
25855
|
|
|
25849
25856
|
var DescriptionsItem = defineComponent({
|
|
25850
25857
|
name: "ElDescriptionsItem",
|
|
@@ -26101,7 +26108,7 @@ const dialogProps = buildProps({
|
|
|
26101
26108
|
},
|
|
26102
26109
|
modelValue: {
|
|
26103
26110
|
type: Boolean,
|
|
26104
|
-
|
|
26111
|
+
default: false
|
|
26105
26112
|
},
|
|
26106
26113
|
modalClass: String,
|
|
26107
26114
|
width: {
|
|
@@ -26381,7 +26388,6 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
26381
26388
|
draggable: unref(draggable),
|
|
26382
26389
|
fullscreen: _ctx.fullscreen,
|
|
26383
26390
|
"show-close": _ctx.showClose,
|
|
26384
|
-
style: normalizeStyle(unref(style)),
|
|
26385
26391
|
title: _ctx.title,
|
|
26386
26392
|
onClose: unref(handleClose)
|
|
26387
26393
|
}, createSlots({
|
|
@@ -26404,7 +26410,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
26404
26410
|
renderSlot(_ctx.$slots, "footer")
|
|
26405
26411
|
])
|
|
26406
26412
|
} : void 0
|
|
26407
|
-
]), 1032, ["custom-class", "center", "close-icon", "draggable", "fullscreen", "show-close", "
|
|
26413
|
+
]), 1032, ["custom-class", "center", "close-icon", "draggable", "fullscreen", "show-close", "title", "onClose"])) : createCommentVNode("v-if", true)
|
|
26408
26414
|
]),
|
|
26409
26415
|
_: 3
|
|
26410
26416
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onReleaseRequested"])
|
|
@@ -27185,13 +27191,15 @@ const _sfc_main$14 = defineComponent({
|
|
|
27185
27191
|
e.stopImmediatePropagation();
|
|
27186
27192
|
}
|
|
27187
27193
|
}
|
|
27194
|
+
function handleBeforeShowTooltip() {
|
|
27195
|
+
emit("visible-change", true);
|
|
27196
|
+
}
|
|
27188
27197
|
function handleShowTooltip(event) {
|
|
27189
27198
|
if ((event == null ? void 0 : event.type) === "keydown") {
|
|
27190
27199
|
contentRef.value.focus();
|
|
27191
27200
|
}
|
|
27192
|
-
emit("visible-change", true);
|
|
27193
27201
|
}
|
|
27194
|
-
function
|
|
27202
|
+
function handleBeforeHideTooltip() {
|
|
27195
27203
|
emit("visible-change", false);
|
|
27196
27204
|
}
|
|
27197
27205
|
provide(DROPDOWN_INJECTION_KEY, {
|
|
@@ -27235,8 +27243,9 @@ const _sfc_main$14 = defineComponent({
|
|
|
27235
27243
|
handleEntryFocus,
|
|
27236
27244
|
handleClose,
|
|
27237
27245
|
handleOpen,
|
|
27246
|
+
handleBeforeShowTooltip,
|
|
27238
27247
|
handleShowTooltip,
|
|
27239
|
-
|
|
27248
|
+
handleBeforeHideTooltip,
|
|
27240
27249
|
onFocusAfterTrapped,
|
|
27241
27250
|
popperRef,
|
|
27242
27251
|
contentRef,
|
|
@@ -27283,8 +27292,9 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27283
27292
|
teleported: "",
|
|
27284
27293
|
pure: "",
|
|
27285
27294
|
persistent: "",
|
|
27295
|
+
onBeforeShow: _ctx.handleBeforeShowTooltip,
|
|
27286
27296
|
onShow: _ctx.handleShowTooltip,
|
|
27287
|
-
|
|
27297
|
+
onBeforeHide: _ctx.handleBeforeHideTooltip
|
|
27288
27298
|
}, createSlots({
|
|
27289
27299
|
content: withCtx(() => [
|
|
27290
27300
|
createVNode(_component_el_scrollbar, {
|
|
@@ -27332,7 +27342,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27332
27342
|
}, 8, ["id", "tabindex"])
|
|
27333
27343
|
])
|
|
27334
27344
|
} : void 0
|
|
27335
|
-
]), 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", "
|
|
27345
|
+
]), 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"]),
|
|
27336
27346
|
_ctx.splitButton ? (openBlock(), createBlock(_component_el_button_group, { key: 0 }, {
|
|
27337
27347
|
default: withCtx(() => [
|
|
27338
27348
|
createVNode(_component_el_button, mergeProps({ ref: "referenceElementRef" }, _ctx.buttonProps, {
|
|
@@ -29468,8 +29478,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
29468
29478
|
const computedValue = getProp(model, props.prop);
|
|
29469
29479
|
if (!isEqual$1(computedValue.value, initialValue)) {
|
|
29470
29480
|
isResettingField = true;
|
|
29481
|
+
computedValue.value = clone(initialValue);
|
|
29471
29482
|
}
|
|
29472
|
-
computedValue.value = clone(initialValue);
|
|
29473
29483
|
await nextTick();
|
|
29474
29484
|
clearValidate();
|
|
29475
29485
|
};
|
|
@@ -30307,6 +30317,10 @@ const inputNumberProps = buildProps({
|
|
|
30307
30317
|
precision: {
|
|
30308
30318
|
type: Number,
|
|
30309
30319
|
validator: (val) => val >= 0 && val === Number.parseInt(`${val}`, 10)
|
|
30320
|
+
},
|
|
30321
|
+
validateEvent: {
|
|
30322
|
+
type: Boolean,
|
|
30323
|
+
default: true
|
|
30310
30324
|
}
|
|
30311
30325
|
});
|
|
30312
30326
|
const inputNumberEmits = {
|
|
@@ -30430,7 +30444,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30430
30444
|
newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear;
|
|
30431
30445
|
}
|
|
30432
30446
|
if (stepStrictly) {
|
|
30433
|
-
newVal = Math.round(newVal / step) * step;
|
|
30447
|
+
newVal = toPrecision(Math.round(newVal / step) * step, precision);
|
|
30434
30448
|
}
|
|
30435
30449
|
if (!isUndefined(precision)) {
|
|
30436
30450
|
newVal = toPrecision(newVal, precision);
|
|
@@ -30451,7 +30465,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30451
30465
|
emit("update:modelValue", newVal);
|
|
30452
30466
|
emit("input", newVal);
|
|
30453
30467
|
emit("change", newVal, oldVal);
|
|
30454
|
-
|
|
30468
|
+
if (props.validateEvent) {
|
|
30469
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
30470
|
+
}
|
|
30455
30471
|
data.currentValue = newVal;
|
|
30456
30472
|
};
|
|
30457
30473
|
const handleInput = (value) => {
|
|
@@ -30478,7 +30494,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30478
30494
|
const handleBlur = (event) => {
|
|
30479
30495
|
var _a;
|
|
30480
30496
|
emit("blur", event);
|
|
30481
|
-
|
|
30497
|
+
if (props.validateEvent) {
|
|
30498
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => debugWarn());
|
|
30499
|
+
}
|
|
30482
30500
|
};
|
|
30483
30501
|
watch(() => props.modelValue, (value) => {
|
|
30484
30502
|
data.currentValue = verifyValue(value, true);
|
|
@@ -30544,7 +30562,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30544
30562
|
_: 1
|
|
30545
30563
|
})
|
|
30546
30564
|
], 42, _hoisted_1$q)), [
|
|
30547
|
-
[unref(
|
|
30565
|
+
[unref(RepeatClick), decrease]
|
|
30548
30566
|
]) : createCommentVNode("v-if", true),
|
|
30549
30567
|
_ctx.controls ? withDirectives((openBlock(), createElementBlock("span", {
|
|
30550
30568
|
key: 1,
|
|
@@ -30560,7 +30578,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
30560
30578
|
_: 1
|
|
30561
30579
|
})
|
|
30562
30580
|
], 42, _hoisted_2$i)), [
|
|
30563
|
-
[unref(
|
|
30581
|
+
[unref(RepeatClick), increase]
|
|
30564
30582
|
]) : createCommentVNode("v-if", true),
|
|
30565
30583
|
createVNode(unref(ElInput), {
|
|
30566
30584
|
id: _ctx.id,
|
|
@@ -31017,7 +31035,7 @@ var SubMenu = defineComponent({
|
|
|
31017
31035
|
};
|
|
31018
31036
|
const handleMouseenter = (event, showTimeout = props.showTimeout) => {
|
|
31019
31037
|
var _a;
|
|
31020
|
-
if (event.type === "focus"
|
|
31038
|
+
if (event.type === "focus") {
|
|
31021
31039
|
return;
|
|
31022
31040
|
}
|
|
31023
31041
|
if (rootMenu.props.menuTrigger === "click" && rootMenu.props.mode === "horizontal" || !rootMenu.props.collapse && rootMenu.props.mode === "vertical" || props.disabled) {
|
|
@@ -31299,11 +31317,22 @@ var Menu = defineComponent({
|
|
|
31299
31317
|
}
|
|
31300
31318
|
updateActiveIndex(currentActive);
|
|
31301
31319
|
});
|
|
31302
|
-
watch(items.value, () =>
|
|
31320
|
+
watch(items.value, () => {
|
|
31321
|
+
initMenu();
|
|
31322
|
+
if (props.mode === "horizontal" && props.ellipsis)
|
|
31323
|
+
handleResize();
|
|
31324
|
+
});
|
|
31303
31325
|
watch(() => props.collapse, (value) => {
|
|
31304
31326
|
if (value)
|
|
31305
31327
|
openedMenus.value = [];
|
|
31306
31328
|
});
|
|
31329
|
+
let resizeStopper;
|
|
31330
|
+
watchEffect(() => {
|
|
31331
|
+
if (props.mode === "horizontal" && props.ellipsis)
|
|
31332
|
+
resizeStopper = useResizeObserver(menu, handleResize).stop;
|
|
31333
|
+
else
|
|
31334
|
+
resizeStopper == null ? void 0 : resizeStopper();
|
|
31335
|
+
});
|
|
31307
31336
|
{
|
|
31308
31337
|
const addSubMenu = (item) => {
|
|
31309
31338
|
subMenus.value[item.index] = item;
|
|
@@ -31369,7 +31398,6 @@ var Menu = defineComponent({
|
|
|
31369
31398
|
});
|
|
31370
31399
|
return result;
|
|
31371
31400
|
};
|
|
31372
|
-
const useVNodeResize = (vnode) => props.mode === "horizontal" ? withDirectives(vnode, [[Resize, handleResize]]) : vnode;
|
|
31373
31401
|
return () => {
|
|
31374
31402
|
var _a, _b, _c, _d;
|
|
31375
31403
|
let slot = (_b = (_a = slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : [];
|
|
@@ -31405,8 +31433,7 @@ var Menu = defineComponent({
|
|
|
31405
31433
|
}
|
|
31406
31434
|
}
|
|
31407
31435
|
const ulStyle = useMenuCssVar(props, 0);
|
|
31408
|
-
const
|
|
31409
|
-
const vMenu = resizeMenu(h$1("ul", {
|
|
31436
|
+
const vMenu = h$1("ul", {
|
|
31410
31437
|
key: String(props.collapse),
|
|
31411
31438
|
role: "menubar",
|
|
31412
31439
|
ref: menu,
|
|
@@ -31416,7 +31443,7 @@ var Menu = defineComponent({
|
|
|
31416
31443
|
[nsMenu.m(props.mode)]: true,
|
|
31417
31444
|
[nsMenu.m("collapse")]: props.collapse
|
|
31418
31445
|
}
|
|
31419
|
-
}, [...slot, ...vShowMore])
|
|
31446
|
+
}, [...slot, ...vShowMore]);
|
|
31420
31447
|
if (props.collapseTransition && props.mode === "vertical") {
|
|
31421
31448
|
return h$1(ElMenuCollapseTransition, () => vMenu);
|
|
31422
31449
|
}
|
|
@@ -31865,11 +31892,11 @@ const _sfc_main$O = defineComponent({
|
|
|
31865
31892
|
const doesSelected = selectedOptions.some((item) => {
|
|
31866
31893
|
return item.value === vm.value;
|
|
31867
31894
|
});
|
|
31868
|
-
|
|
31869
|
-
|
|
31895
|
+
nextTick(() => {
|
|
31896
|
+
if (select.cachedOptions.get(key) === vm && !doesSelected) {
|
|
31870
31897
|
select.cachedOptions.delete(key);
|
|
31871
|
-
}
|
|
31872
|
-
}
|
|
31898
|
+
}
|
|
31899
|
+
});
|
|
31873
31900
|
select.onOptionDestroy(key, vm);
|
|
31874
31901
|
});
|
|
31875
31902
|
function selectOptionClick() {
|
|
@@ -32063,7 +32090,7 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
32063
32090
|
if (props.filterable && !props.multiple) {
|
|
32064
32091
|
states.inputLength = 20;
|
|
32065
32092
|
}
|
|
32066
|
-
if (!isEqual$1(val, oldVal)) {
|
|
32093
|
+
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
32067
32094
|
(_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
32068
32095
|
}
|
|
32069
32096
|
}, {
|
|
@@ -32515,8 +32542,6 @@ const useSelect$3 = (props, states, ctx) => {
|
|
|
32515
32542
|
};
|
|
32516
32543
|
const toggleMenu = () => {
|
|
32517
32544
|
var _a;
|
|
32518
|
-
if (props.automaticDropdown)
|
|
32519
|
-
return;
|
|
32520
32545
|
if (!selectDisabled.value) {
|
|
32521
32546
|
if (states.menuVisibleOnFocus) {
|
|
32522
32547
|
states.menuVisibleOnFocus = false;
|
|
@@ -32707,7 +32732,11 @@ const _sfc_main$M = defineComponent({
|
|
|
32707
32732
|
type: [String, Object],
|
|
32708
32733
|
default: arrow_up_default
|
|
32709
32734
|
},
|
|
32710
|
-
tagType: { ...tagProps.type, default: "info" }
|
|
32735
|
+
tagType: { ...tagProps.type, default: "info" },
|
|
32736
|
+
validateEvent: {
|
|
32737
|
+
type: Boolean,
|
|
32738
|
+
default: true
|
|
32739
|
+
}
|
|
32711
32740
|
},
|
|
32712
32741
|
emits: [
|
|
32713
32742
|
UPDATE_MODEL_EVENT,
|
|
@@ -33001,7 +33030,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33001
33030
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
33002
33031
|
effect: _ctx.effect,
|
|
33003
33032
|
placement: "bottom",
|
|
33004
|
-
teleported:
|
|
33033
|
+
teleported: _ctx.teleported
|
|
33005
33034
|
}, {
|
|
33006
33035
|
default: withCtx(() => [
|
|
33007
33036
|
createElementVNode("span", {
|
|
@@ -33043,7 +33072,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33043
33072
|
], 2)
|
|
33044
33073
|
]),
|
|
33045
33074
|
_: 1
|
|
33046
|
-
}, 8, ["disabled", "effect"])) : (openBlock(), createElementBlock("span", {
|
|
33075
|
+
}, 8, ["disabled", "effect", "teleported"])) : (openBlock(), createElementBlock("span", {
|
|
33047
33076
|
key: 1,
|
|
33048
33077
|
class: normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
33049
33078
|
}, "+ " + toDisplayString(_ctx.selected.length - 1), 3))
|
|
@@ -33979,18 +34008,15 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
33979
34008
|
var _a, _b;
|
|
33980
34009
|
(_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
|
|
33981
34010
|
};
|
|
33982
|
-
const handleCallback = () => {
|
|
33983
|
-
hidePopper();
|
|
33984
|
-
};
|
|
33985
34011
|
const confirm = (e) => {
|
|
33986
34012
|
var _a;
|
|
33987
34013
|
(_a = props.onConfirm) == null ? void 0 : _a.call(props, e);
|
|
33988
|
-
|
|
34014
|
+
hidePopper();
|
|
33989
34015
|
};
|
|
33990
34016
|
const cancel = (e) => {
|
|
33991
34017
|
var _a;
|
|
33992
34018
|
(_a = props.onCancel) == null ? void 0 : _a.call(props, e);
|
|
33993
|
-
|
|
34019
|
+
hidePopper();
|
|
33994
34020
|
};
|
|
33995
34021
|
const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
|
|
33996
34022
|
const finalCancelButtonText = computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
|
|
@@ -34113,6 +34139,9 @@ const popoverProps = buildProps({
|
|
|
34113
34139
|
persistent: {
|
|
34114
34140
|
type: Boolean,
|
|
34115
34141
|
default: true
|
|
34142
|
+
},
|
|
34143
|
+
"onUpdate:visible": {
|
|
34144
|
+
type: Function
|
|
34116
34145
|
}
|
|
34117
34146
|
});
|
|
34118
34147
|
const popoverEmits = {
|
|
@@ -34132,6 +34161,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
34132
34161
|
emits: popoverEmits,
|
|
34133
34162
|
setup(__props, { expose, emit }) {
|
|
34134
34163
|
const props = __props;
|
|
34164
|
+
const updateEventKeyRaw = `onUpdate:visible`;
|
|
34165
|
+
const onUpdateVisible = computed(() => {
|
|
34166
|
+
return props[updateEventKeyRaw];
|
|
34167
|
+
});
|
|
34135
34168
|
const ns = useNamespace("popover");
|
|
34136
34169
|
const tooltipRef = ref();
|
|
34137
34170
|
const popperRef = computed(() => {
|
|
@@ -34199,6 +34232,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
34199
34232
|
teleported: _ctx.teleported,
|
|
34200
34233
|
persistent: _ctx.persistent,
|
|
34201
34234
|
"gpu-acceleration": unref(gpuAcceleration),
|
|
34235
|
+
"onUpdate:visible": unref(onUpdateVisible),
|
|
34202
34236
|
onBeforeShow: beforeEnter,
|
|
34203
34237
|
onBeforeHide: beforeLeave,
|
|
34204
34238
|
onShow: afterEnter,
|
|
@@ -34218,7 +34252,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
34218
34252
|
_ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
|
|
34219
34253
|
]),
|
|
34220
34254
|
_: 3
|
|
34221
|
-
}, 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"]);
|
|
34255
|
+
}, 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"]);
|
|
34222
34256
|
};
|
|
34223
34257
|
}
|
|
34224
34258
|
});
|
|
@@ -34771,12 +34805,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
34771
34805
|
resetCurrentValue
|
|
34772
34806
|
});
|
|
34773
34807
|
return (_ctx, _cache) => {
|
|
34808
|
+
var _a;
|
|
34774
34809
|
return openBlock(), createElementBlock("div", {
|
|
34775
34810
|
id: unref(inputId),
|
|
34776
34811
|
class: normalizeClass([unref(rateClasses), unref(ns).is("disabled", unref(rateDisabled))]),
|
|
34777
34812
|
role: "slider",
|
|
34778
34813
|
"aria-label": !unref(isLabeledByFormItem) ? _ctx.label || "rating" : void 0,
|
|
34779
|
-
"aria-labelledby": unref(isLabeledByFormItem) ? unref(formItemContext).labelId : void 0,
|
|
34814
|
+
"aria-labelledby": unref(isLabeledByFormItem) ? (_a = unref(formItemContext)) == null ? void 0 : _a.labelId : void 0,
|
|
34780
34815
|
"aria-valuenow": currentValue.value,
|
|
34781
34816
|
"aria-valuetext": unref(text) || void 0,
|
|
34782
34817
|
"aria-valuemin": "0",
|
|
@@ -36925,6 +36960,10 @@ const SelectProps = {
|
|
|
36925
36960
|
scrollbarAlwaysOn: {
|
|
36926
36961
|
type: Boolean,
|
|
36927
36962
|
default: false
|
|
36963
|
+
},
|
|
36964
|
+
validateEvent: {
|
|
36965
|
+
type: Boolean,
|
|
36966
|
+
default: true
|
|
36928
36967
|
}
|
|
36929
36968
|
};
|
|
36930
36969
|
const OptionProps = {
|
|
@@ -37403,8 +37442,9 @@ const useSelect$1 = (props, emit) => {
|
|
|
37403
37442
|
});
|
|
37404
37443
|
const filteredOptions = computed(() => {
|
|
37405
37444
|
const isValidOption = (o) => {
|
|
37445
|
+
var _a;
|
|
37406
37446
|
const query = states.inputValue;
|
|
37407
|
-
const containsQueryString = query ? o.label.includes(query) : true;
|
|
37447
|
+
const containsQueryString = query ? (_a = o.label) == null ? void 0 : _a.includes(query) : true;
|
|
37408
37448
|
return containsQueryString;
|
|
37409
37449
|
};
|
|
37410
37450
|
if (props.loading) {
|
|
@@ -37862,7 +37902,7 @@ const useSelect$1 = (props, emit) => {
|
|
|
37862
37902
|
if (!val || val.toString() !== states.previousValue) {
|
|
37863
37903
|
initStates();
|
|
37864
37904
|
}
|
|
37865
|
-
if (!isEqual$1(val, oldVal)) {
|
|
37905
|
+
if (!isEqual$1(val, oldVal) && props.validateEvent) {
|
|
37866
37906
|
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
37867
37907
|
}
|
|
37868
37908
|
}, {
|
|
@@ -38504,8 +38544,17 @@ const sliderProps = buildProps({
|
|
|
38504
38544
|
type: String,
|
|
38505
38545
|
default: void 0
|
|
38506
38546
|
},
|
|
38547
|
+
placement: {
|
|
38548
|
+
type: String,
|
|
38549
|
+
values: Ee,
|
|
38550
|
+
default: "top"
|
|
38551
|
+
},
|
|
38507
38552
|
marks: {
|
|
38508
38553
|
type: definePropType(Object)
|
|
38554
|
+
},
|
|
38555
|
+
validateEvent: {
|
|
38556
|
+
type: Boolean,
|
|
38557
|
+
default: true
|
|
38509
38558
|
}
|
|
38510
38559
|
});
|
|
38511
38560
|
const isValidValue$1 = (value) => isNumber(value) || isArray(value) && value.every(isNumber);
|
|
@@ -38888,7 +38937,9 @@ const useSliderButton = (props, initData, emit) => {
|
|
|
38888
38937
|
const steps = Math.round(newPosition / lengthPerStep);
|
|
38889
38938
|
let value = steps * lengthPerStep * (max.value - min.value) * 0.01 + min.value;
|
|
38890
38939
|
value = Number.parseFloat(value.toFixed(precision.value));
|
|
38891
|
-
|
|
38940
|
+
if (value !== props.modelValue) {
|
|
38941
|
+
emit(UPDATE_MODEL_EVENT, value);
|
|
38942
|
+
}
|
|
38892
38943
|
if (!initData.dragging && props.modelValue !== initData.oldValue) {
|
|
38893
38944
|
initData.oldValue = props.modelValue;
|
|
38894
38945
|
}
|
|
@@ -38973,7 +39024,9 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
38973
39024
|
initData.firstValue = val[0];
|
|
38974
39025
|
initData.secondValue = val[1];
|
|
38975
39026
|
if (valueChanged()) {
|
|
38976
|
-
|
|
39027
|
+
if (props.validateEvent) {
|
|
39028
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn());
|
|
39029
|
+
}
|
|
38977
39030
|
initData.oldValue = val.slice();
|
|
38978
39031
|
}
|
|
38979
39032
|
}
|
|
@@ -38985,7 +39038,9 @@ const useWatch = (props, initData, minValue, maxValue, emit, elFormItem) => {
|
|
|
38985
39038
|
} else {
|
|
38986
39039
|
initData.firstValue = val;
|
|
38987
39040
|
if (valueChanged()) {
|
|
38988
|
-
|
|
39041
|
+
if (props.validateEvent) {
|
|
39042
|
+
(_b = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _b.call(elFormItem, "change").catch((err) => debugWarn());
|
|
39043
|
+
}
|
|
38989
39044
|
initData.oldValue = val;
|
|
38990
39045
|
}
|
|
38991
39046
|
}
|
|
@@ -39016,7 +39071,12 @@ const sliderButtonProps = buildProps({
|
|
|
39016
39071
|
default: 0
|
|
39017
39072
|
},
|
|
39018
39073
|
vertical: Boolean,
|
|
39019
|
-
tooltipClass: String
|
|
39074
|
+
tooltipClass: String,
|
|
39075
|
+
placement: {
|
|
39076
|
+
type: String,
|
|
39077
|
+
values: Ee,
|
|
39078
|
+
default: "top"
|
|
39079
|
+
}
|
|
39020
39080
|
});
|
|
39021
39081
|
const sliderButtonEmits = {
|
|
39022
39082
|
[UPDATE_MODEL_EVENT]: (value) => isNumber(value)
|
|
@@ -39085,7 +39145,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
39085
39145
|
ref: tooltip,
|
|
39086
39146
|
visible: unref(tooltipVisible),
|
|
39087
39147
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => isRef(tooltipVisible) ? tooltipVisible.value = $event : null),
|
|
39088
|
-
placement:
|
|
39148
|
+
placement: _ctx.placement,
|
|
39149
|
+
"fallback-placements": ["top", "bottom", "right", "left"],
|
|
39089
39150
|
"stop-popper-mouse-event": false,
|
|
39090
39151
|
"popper-class": _ctx.tooltipClass,
|
|
39091
39152
|
disabled: !unref(showTooltip),
|
|
@@ -39100,7 +39161,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
39100
39161
|
}, null, 2)
|
|
39101
39162
|
]),
|
|
39102
39163
|
_: 1
|
|
39103
|
-
}, 8, ["visible", "popper-class", "disabled"])
|
|
39164
|
+
}, 8, ["visible", "placement", "popper-class", "disabled"])
|
|
39104
39165
|
], 38);
|
|
39105
39166
|
};
|
|
39106
39167
|
}
|
|
@@ -39124,7 +39185,7 @@ var SliderMarker = defineComponent({
|
|
|
39124
39185
|
const style = computed(() => isString(props.mark) ? void 0 : props.mark.style);
|
|
39125
39186
|
return () => h$1("div", {
|
|
39126
39187
|
class: ns.e("marks-text"),
|
|
39127
|
-
style
|
|
39188
|
+
style: style.value
|
|
39128
39189
|
}, label.value);
|
|
39129
39190
|
}
|
|
39130
39191
|
});
|
|
@@ -39263,6 +39324,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
39263
39324
|
"model-value": unref(firstValue),
|
|
39264
39325
|
vertical: _ctx.vertical,
|
|
39265
39326
|
"tooltip-class": _ctx.tooltipClass,
|
|
39327
|
+
placement: _ctx.placement,
|
|
39266
39328
|
role: "slider",
|
|
39267
39329
|
"aria-label": _ctx.range || !unref(isLabeledByFormItem) ? unref(firstButtonLabel) : void 0,
|
|
39268
39330
|
"aria-labelledby": !_ctx.range && unref(isLabeledByFormItem) ? (_b = unref(elFormItem)) == null ? void 0 : _b.labelId : void 0,
|
|
@@ -39273,7 +39335,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
39273
39335
|
"aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
|
|
39274
39336
|
"aria-disabled": unref(sliderDisabled),
|
|
39275
39337
|
"onUpdate:modelValue": unref(setFirstValue)
|
|
39276
|
-
}, 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"]),
|
|
39338
|
+
}, 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"]),
|
|
39277
39339
|
_ctx.range ? (openBlock(), createBlock(SliderButton, {
|
|
39278
39340
|
key: 0,
|
|
39279
39341
|
ref_key: "secondButton",
|
|
@@ -39281,6 +39343,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
39281
39343
|
"model-value": unref(secondValue),
|
|
39282
39344
|
vertical: _ctx.vertical,
|
|
39283
39345
|
"tooltip-class": _ctx.tooltipClass,
|
|
39346
|
+
placement: _ctx.placement,
|
|
39284
39347
|
role: "slider",
|
|
39285
39348
|
"aria-label": unref(secondButtonLabel),
|
|
39286
39349
|
"aria-valuemin": unref(firstValue),
|
|
@@ -39290,7 +39353,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
39290
39353
|
"aria-orientation": _ctx.vertical ? "vertical" : "horizontal",
|
|
39291
39354
|
"aria-disabled": unref(sliderDisabled),
|
|
39292
39355
|
"onUpdate:modelValue": unref(setSecondValue)
|
|
39293
|
-
}, null, 8, ["model-value", "vertical", "tooltip-class", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
|
|
39356
|
+
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
|
|
39294
39357
|
_ctx.showStops ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
39295
39358
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(stops), (item, key) => {
|
|
39296
39359
|
return openBlock(), createElementBlock("div", {
|
|
@@ -39738,7 +39801,7 @@ const _sfc_main$s = defineComponent({
|
|
|
39738
39801
|
}, null, 6)
|
|
39739
39802
|
], 2)) : createCommentVNode("v-if", true),
|
|
39740
39803
|
createElementVNode("div", {
|
|
39741
|
-
class: normalizeClass([unref(ns).e("icon"), unref(ns).is(_ctx.icon ? "icon" : "text")])
|
|
39804
|
+
class: normalizeClass([unref(ns).e("icon"), unref(ns).is(_ctx.icon || _ctx.$slots.icon ? "icon" : "text")])
|
|
39742
39805
|
}, [
|
|
39743
39806
|
unref(currentStatus) !== "success" && unref(currentStatus) !== "error" ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
39744
39807
|
_ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
@@ -40182,14 +40245,8 @@ function escapeHtml(string) {
|
|
|
40182
40245
|
*/
|
|
40183
40246
|
|
|
40184
40247
|
const getCell = function(event) {
|
|
40185
|
-
|
|
40186
|
-
|
|
40187
|
-
if (cell.tagName.toUpperCase() === "TD") {
|
|
40188
|
-
return cell;
|
|
40189
|
-
}
|
|
40190
|
-
cell = cell.parentNode;
|
|
40191
|
-
}
|
|
40192
|
-
return null;
|
|
40248
|
+
var _a;
|
|
40249
|
+
return (_a = event.target) == null ? void 0 : _a.closest("td");
|
|
40193
40250
|
};
|
|
40194
40251
|
const isObject = function(obj) {
|
|
40195
40252
|
return obj !== null && typeof obj === "object";
|
|
@@ -40441,11 +40498,9 @@ function createTablePopper(parentNode, trigger, popperContent, popperOptions, to
|
|
|
40441
40498
|
try {
|
|
40442
40499
|
popperInstance && popperInstance.destroy();
|
|
40443
40500
|
content && (parentNode == null ? void 0 : parentNode.removeChild(content));
|
|
40444
|
-
|
|
40445
|
-
|
|
40446
|
-
|
|
40447
|
-
off(scrollContainer, "scroll", removePopper);
|
|
40448
|
-
}
|
|
40501
|
+
trigger.removeEventListener("mouseenter", showPopper);
|
|
40502
|
+
trigger.removeEventListener("mouseleave", removePopper);
|
|
40503
|
+
scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
|
|
40449
40504
|
removePopper = void 0;
|
|
40450
40505
|
} catch (e) {
|
|
40451
40506
|
}
|
|
@@ -40473,11 +40528,9 @@ function createTablePopper(parentNode, trigger, popperContent, popperOptions, to
|
|
|
40473
40528
|
],
|
|
40474
40529
|
...popperOptions
|
|
40475
40530
|
});
|
|
40476
|
-
|
|
40477
|
-
|
|
40478
|
-
|
|
40479
|
-
on$1(scrollContainer, "scroll", removePopper);
|
|
40480
|
-
}
|
|
40531
|
+
trigger.addEventListener("mouseenter", showPopper);
|
|
40532
|
+
trigger.addEventListener("mouseleave", removePopper);
|
|
40533
|
+
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
|
40481
40534
|
return popperInstance;
|
|
40482
40535
|
}
|
|
40483
40536
|
const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
@@ -41535,14 +41588,6 @@ class TableLayout {
|
|
|
41535
41588
|
this.bodyWidth = ref(null);
|
|
41536
41589
|
this.fixedWidth = ref(null);
|
|
41537
41590
|
this.rightFixedWidth = ref(null);
|
|
41538
|
-
this.tableHeight = ref(null);
|
|
41539
|
-
this.headerHeight = ref(44);
|
|
41540
|
-
this.appendHeight = ref(0);
|
|
41541
|
-
this.footerHeight = ref(44);
|
|
41542
|
-
this.viewportHeight = ref(null);
|
|
41543
|
-
this.bodyHeight = ref(null);
|
|
41544
|
-
this.bodyScrollHeight = ref(0);
|
|
41545
|
-
this.fixedBodyHeight = ref(null);
|
|
41546
41591
|
this.gutterWidth = 0;
|
|
41547
41592
|
for (const name in options) {
|
|
41548
41593
|
if (hasOwn(options, name)) {
|
|
@@ -41564,15 +41609,11 @@ class TableLayout {
|
|
|
41564
41609
|
const height = this.height.value;
|
|
41565
41610
|
if (height === null)
|
|
41566
41611
|
return false;
|
|
41567
|
-
const
|
|
41568
|
-
if (this.table.vnode.el &&
|
|
41612
|
+
const scrollBarRef = this.table.refs.scrollBarRef;
|
|
41613
|
+
if (this.table.vnode.el && scrollBarRef) {
|
|
41569
41614
|
let scrollY = true;
|
|
41570
41615
|
const prevScrollY = this.scrollY.value;
|
|
41571
|
-
|
|
41572
|
-
scrollY = false;
|
|
41573
|
-
} else {
|
|
41574
|
-
scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
|
|
41575
|
-
}
|
|
41616
|
+
scrollY = scrollBarRef.wrap$.scrollHeight > scrollBarRef.wrap$.clientHeight;
|
|
41576
41617
|
this.scrollY.value = scrollY;
|
|
41577
41618
|
return prevScrollY !== scrollY;
|
|
41578
41619
|
}
|
|
@@ -41610,43 +41651,6 @@ class TableLayout {
|
|
|
41610
41651
|
return flattenColumns;
|
|
41611
41652
|
}
|
|
41612
41653
|
updateElsHeight() {
|
|
41613
|
-
var _a, _b;
|
|
41614
|
-
if (!this.table.$ready)
|
|
41615
|
-
return nextTick(() => this.updateElsHeight());
|
|
41616
|
-
const {
|
|
41617
|
-
tableWrapper,
|
|
41618
|
-
headerWrapper,
|
|
41619
|
-
appendWrapper,
|
|
41620
|
-
footerWrapper,
|
|
41621
|
-
tableHeader,
|
|
41622
|
-
tableBody
|
|
41623
|
-
} = this.table.refs;
|
|
41624
|
-
if (tableWrapper && tableWrapper.style.display === "none") {
|
|
41625
|
-
return;
|
|
41626
|
-
}
|
|
41627
|
-
const { tableLayout } = this.table.props;
|
|
41628
|
-
this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
|
|
41629
|
-
if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
|
|
41630
|
-
return;
|
|
41631
|
-
}
|
|
41632
|
-
const headerTrElm = tableHeader ? tableHeader : null;
|
|
41633
|
-
const noneHeader = this.headerDisplayNone(headerTrElm);
|
|
41634
|
-
const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
|
|
41635
|
-
const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
|
|
41636
|
-
if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
|
|
41637
|
-
return nextTick(() => this.updateElsHeight());
|
|
41638
|
-
}
|
|
41639
|
-
const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
|
|
41640
|
-
const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
|
|
41641
|
-
if (this.height.value !== null) {
|
|
41642
|
-
if (this.bodyHeight.value === null) {
|
|
41643
|
-
requestAnimationFrame(() => this.updateElsHeight());
|
|
41644
|
-
}
|
|
41645
|
-
this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
|
|
41646
|
-
this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
|
|
41647
|
-
}
|
|
41648
|
-
this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
|
|
41649
|
-
this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
|
|
41650
41654
|
this.updateScrollY();
|
|
41651
41655
|
this.notifyObservers("scrollable");
|
|
41652
41656
|
}
|
|
@@ -42173,12 +42177,10 @@ function useEvent(props, emit) {
|
|
|
42173
42177
|
}
|
|
42174
42178
|
};
|
|
42175
42179
|
const handleMouseMove = (event, column) => {
|
|
42180
|
+
var _a;
|
|
42176
42181
|
if (column.children && column.children.length > 0)
|
|
42177
42182
|
return;
|
|
42178
|
-
|
|
42179
|
-
while (target && target.tagName !== "TH") {
|
|
42180
|
-
target = target.parentNode;
|
|
42181
|
-
}
|
|
42183
|
+
const target = (_a = event.target) == null ? void 0 : _a.closest("th");
|
|
42182
42184
|
if (!column || !column.resizable)
|
|
42183
42185
|
return;
|
|
42184
42186
|
if (!dragging.value && props.border) {
|
|
@@ -42211,13 +42213,11 @@ function useEvent(props, emit) {
|
|
|
42211
42213
|
return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
|
|
42212
42214
|
};
|
|
42213
42215
|
const handleSortClick = (event, column, givenOrder) => {
|
|
42216
|
+
var _a;
|
|
42214
42217
|
event.stopPropagation();
|
|
42215
42218
|
const order = column.order === givenOrder ? null : givenOrder || toggleOrder(column);
|
|
42216
|
-
|
|
42217
|
-
|
|
42218
|
-
target = target.parentNode;
|
|
42219
|
-
}
|
|
42220
|
-
if (target && target.tagName === "TH") {
|
|
42219
|
+
const target = (_a = event.target) == null ? void 0 : _a.closest("th");
|
|
42220
|
+
if (target) {
|
|
42221
42221
|
if (hasClass(target, "noclick")) {
|
|
42222
42222
|
removeClass(target, "noclick");
|
|
42223
42223
|
return;
|
|
@@ -43282,14 +43282,18 @@ function useStyle(props, layout, store, table) {
|
|
|
43282
43282
|
};
|
|
43283
43283
|
const resizeState = ref({
|
|
43284
43284
|
width: null,
|
|
43285
|
-
height: null
|
|
43285
|
+
height: null,
|
|
43286
|
+
headerHeight: null
|
|
43286
43287
|
});
|
|
43287
43288
|
const isGroup = ref(false);
|
|
43288
43289
|
const scrollbarViewStyle = {
|
|
43289
|
-
display: "block",
|
|
43290
|
+
display: "inline-block",
|
|
43290
43291
|
verticalAlign: "middle"
|
|
43291
43292
|
};
|
|
43292
43293
|
const tableWidth = ref();
|
|
43294
|
+
const tableScrollHeight = ref(0);
|
|
43295
|
+
const bodyScrollHeight = ref(0);
|
|
43296
|
+
const headerScrollHeight = ref(0);
|
|
43293
43297
|
watchEffect(() => {
|
|
43294
43298
|
layout.setHeight(props.height);
|
|
43295
43299
|
});
|
|
@@ -43346,12 +43350,14 @@ function useStyle(props, layout, store, table) {
|
|
|
43346
43350
|
bindEvents();
|
|
43347
43351
|
requestAnimationFrame(doLayout);
|
|
43348
43352
|
const el = table.vnode.el;
|
|
43353
|
+
const tableHeader = table.refs.headerWrapper;
|
|
43349
43354
|
if (props.flexible && el && el.parentElement) {
|
|
43350
43355
|
el.parentElement.style.minWidth = "0";
|
|
43351
43356
|
}
|
|
43352
43357
|
resizeState.value = {
|
|
43353
43358
|
width: tableWidth.value = el.offsetWidth,
|
|
43354
|
-
height: el.offsetHeight
|
|
43359
|
+
height: el.offsetHeight,
|
|
43360
|
+
headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
|
|
43355
43361
|
};
|
|
43356
43362
|
store.states.columns.value.forEach((column) => {
|
|
43357
43363
|
if (column.filteredValue && column.filteredValue.length) {
|
|
@@ -43422,23 +43428,36 @@ function useStyle(props, layout, store, table) {
|
|
|
43422
43428
|
}
|
|
43423
43429
|
};
|
|
43424
43430
|
const resizeListener = () => {
|
|
43431
|
+
var _a;
|
|
43425
43432
|
if (!table.$ready)
|
|
43426
43433
|
return;
|
|
43427
43434
|
let shouldUpdateLayout = false;
|
|
43428
43435
|
const el = table.vnode.el;
|
|
43429
|
-
const {
|
|
43436
|
+
const {
|
|
43437
|
+
width: oldWidth,
|
|
43438
|
+
height: oldHeight,
|
|
43439
|
+
headerHeight: oldHeaderHeight
|
|
43440
|
+
} = resizeState.value;
|
|
43430
43441
|
const width = tableWidth.value = el.offsetWidth;
|
|
43431
43442
|
if (oldWidth !== width) {
|
|
43432
43443
|
shouldUpdateLayout = true;
|
|
43433
43444
|
}
|
|
43434
|
-
const
|
|
43435
|
-
if ((props.height || shouldUpdateHeight.value) && oldHeight !==
|
|
43445
|
+
const height = el.offsetHeight;
|
|
43446
|
+
if ((props.height || shouldUpdateHeight.value) && oldHeight !== height) {
|
|
43447
|
+
shouldUpdateLayout = true;
|
|
43448
|
+
}
|
|
43449
|
+
const tableHeader = table.refs.headerWrapper;
|
|
43450
|
+
if (props.showHeader && tableHeader.offsetHeight !== oldHeaderHeight) {
|
|
43436
43451
|
shouldUpdateLayout = true;
|
|
43437
43452
|
}
|
|
43453
|
+
tableScrollHeight.value = table.refs.tableWrapper.scrollHeight;
|
|
43454
|
+
headerScrollHeight.value = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43455
|
+
bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value;
|
|
43438
43456
|
if (shouldUpdateLayout) {
|
|
43439
43457
|
resizeState.value = {
|
|
43440
43458
|
width,
|
|
43441
|
-
height
|
|
43459
|
+
height,
|
|
43460
|
+
headerHeight: props.showHeader ? tableHeader.offsetHeight : null
|
|
43442
43461
|
};
|
|
43443
43462
|
doLayout();
|
|
43444
43463
|
}
|
|
@@ -43453,57 +43472,57 @@ function useStyle(props, layout, store, table) {
|
|
|
43453
43472
|
return "fixed";
|
|
43454
43473
|
return props.tableLayout;
|
|
43455
43474
|
});
|
|
43456
|
-
|
|
43457
|
-
|
|
43458
|
-
|
|
43459
|
-
|
|
43460
|
-
|
|
43461
|
-
|
|
43462
|
-
return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
|
|
43475
|
+
const emptyBlockStyle = computed(() => {
|
|
43476
|
+
if (props.data && props.data.length)
|
|
43477
|
+
return null;
|
|
43478
|
+
let height = "100%";
|
|
43479
|
+
if (bodyScrollHeight.value) {
|
|
43480
|
+
height = `${bodyScrollHeight.value}px`;
|
|
43463
43481
|
}
|
|
43464
|
-
|
|
43465
|
-
|
|
43466
|
-
|
|
43467
|
-
|
|
43468
|
-
|
|
43469
|
-
|
|
43482
|
+
const width = tableWidth.value;
|
|
43483
|
+
return {
|
|
43484
|
+
width: width ? `${width}px` : "",
|
|
43485
|
+
height
|
|
43486
|
+
};
|
|
43487
|
+
});
|
|
43488
|
+
const tableInnerStyle = computed(() => {
|
|
43470
43489
|
if (props.height) {
|
|
43471
|
-
return
|
|
43472
|
-
|
|
43473
|
-
|
|
43490
|
+
return {
|
|
43491
|
+
height: !Number.isNaN(Number(props.height)) ? `${props.height}px` : props.height
|
|
43492
|
+
};
|
|
43474
43493
|
}
|
|
43475
|
-
|
|
43494
|
+
if (props.maxHeight) {
|
|
43495
|
+
return {
|
|
43496
|
+
maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
|
|
43497
|
+
};
|
|
43498
|
+
}
|
|
43499
|
+
return {};
|
|
43476
43500
|
});
|
|
43477
|
-
const
|
|
43478
|
-
|
|
43479
|
-
const bodyHeight2 = layout.bodyHeight.value;
|
|
43480
|
-
const footerHeight = layout.footerHeight.value || 0;
|
|
43501
|
+
const scrollbarStyle = computed(() => {
|
|
43502
|
+
var _a;
|
|
43481
43503
|
if (props.height) {
|
|
43482
43504
|
return {
|
|
43483
|
-
height:
|
|
43505
|
+
height: "100%"
|
|
43484
43506
|
};
|
|
43485
|
-
}
|
|
43486
|
-
|
|
43487
|
-
if (maxHeight
|
|
43507
|
+
}
|
|
43508
|
+
if (props.maxHeight) {
|
|
43509
|
+
if (!Number.isNaN(Number(props.maxHeight))) {
|
|
43510
|
+
const headerHeight = ((_a = table.refs.headerWrapper) == null ? void 0 : _a.scrollHeight) || 0;
|
|
43511
|
+
const maxHeight = props.maxHeight;
|
|
43512
|
+
const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
|
|
43513
|
+
if (reachMaxHeight) {
|
|
43514
|
+
return {
|
|
43515
|
+
maxHeight: `${tableScrollHeight.value - headerHeight}px`
|
|
43516
|
+
};
|
|
43517
|
+
}
|
|
43518
|
+
} else {
|
|
43488
43519
|
return {
|
|
43489
|
-
|
|
43520
|
+
maxHeight: `calc(${props.maxHeight} - ${headerScrollHeight.value}px)`
|
|
43490
43521
|
};
|
|
43491
43522
|
}
|
|
43492
43523
|
}
|
|
43493
43524
|
return {};
|
|
43494
43525
|
});
|
|
43495
|
-
const emptyBlockStyle = computed(() => {
|
|
43496
|
-
if (props.data && props.data.length)
|
|
43497
|
-
return null;
|
|
43498
|
-
let height2 = "100%";
|
|
43499
|
-
if (layout.appendHeight.value) {
|
|
43500
|
-
height2 = `calc(100% - ${layout.appendHeight.value}px)`;
|
|
43501
|
-
}
|
|
43502
|
-
return {
|
|
43503
|
-
width: tableWidth.value ? `${tableWidth.value}px` : "",
|
|
43504
|
-
height: height2
|
|
43505
|
-
};
|
|
43506
|
-
});
|
|
43507
43526
|
const handleFixedMousewheel = (event, data) => {
|
|
43508
43527
|
const bodyWrapper = table.refs.bodyWrapper;
|
|
43509
43528
|
if (Math.abs(data.spinY) > 0) {
|
|
@@ -43519,47 +43538,6 @@ function useStyle(props, layout, store, table) {
|
|
|
43519
43538
|
bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
|
|
43520
43539
|
}
|
|
43521
43540
|
};
|
|
43522
|
-
const fixedHeight = computed(() => {
|
|
43523
|
-
if (props.maxHeight) {
|
|
43524
|
-
if (props.showSummary) {
|
|
43525
|
-
return {
|
|
43526
|
-
bottom: 0
|
|
43527
|
-
};
|
|
43528
|
-
}
|
|
43529
|
-
return {
|
|
43530
|
-
bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
|
|
43531
|
-
};
|
|
43532
|
-
} else {
|
|
43533
|
-
if (props.showSummary) {
|
|
43534
|
-
return {
|
|
43535
|
-
height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
|
|
43536
|
-
};
|
|
43537
|
-
}
|
|
43538
|
-
return {
|
|
43539
|
-
height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
|
|
43540
|
-
};
|
|
43541
|
-
}
|
|
43542
|
-
});
|
|
43543
|
-
const fixedBodyHeight = computed(() => {
|
|
43544
|
-
if (props.height) {
|
|
43545
|
-
return {
|
|
43546
|
-
height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
|
|
43547
|
-
};
|
|
43548
|
-
} else if (props.maxHeight) {
|
|
43549
|
-
let maxHeight = parseHeight(props.maxHeight);
|
|
43550
|
-
if (typeof maxHeight === "number") {
|
|
43551
|
-
maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
|
|
43552
|
-
if (props.showHeader) {
|
|
43553
|
-
maxHeight -= layout.headerHeight.value;
|
|
43554
|
-
}
|
|
43555
|
-
maxHeight -= layout.footerHeight.value;
|
|
43556
|
-
return {
|
|
43557
|
-
"max-height": `${maxHeight}px`
|
|
43558
|
-
};
|
|
43559
|
-
}
|
|
43560
|
-
}
|
|
43561
|
-
return {};
|
|
43562
|
-
});
|
|
43563
43541
|
return {
|
|
43564
43542
|
isHidden,
|
|
43565
43543
|
renderExpanded,
|
|
@@ -43568,19 +43546,17 @@ function useStyle(props, layout, store, table) {
|
|
|
43568
43546
|
handleMouseLeave,
|
|
43569
43547
|
handleHeaderFooterMousewheel,
|
|
43570
43548
|
tableSize,
|
|
43571
|
-
bodyHeight,
|
|
43572
|
-
height,
|
|
43573
43549
|
emptyBlockStyle,
|
|
43574
43550
|
handleFixedMousewheel,
|
|
43575
|
-
fixedHeight,
|
|
43576
|
-
fixedBodyHeight,
|
|
43577
43551
|
resizeProxyVisible,
|
|
43578
43552
|
bodyWidth,
|
|
43579
43553
|
resizeState,
|
|
43580
43554
|
doLayout,
|
|
43581
43555
|
tableBodyStyles,
|
|
43582
43556
|
tableLayout,
|
|
43583
|
-
scrollbarViewStyle
|
|
43557
|
+
scrollbarViewStyle,
|
|
43558
|
+
tableInnerStyle,
|
|
43559
|
+
scrollbarStyle
|
|
43584
43560
|
};
|
|
43585
43561
|
}
|
|
43586
43562
|
|
|
@@ -43755,19 +43731,17 @@ const _sfc_main$p = defineComponent({
|
|
|
43755
43731
|
handleMouseLeave,
|
|
43756
43732
|
handleHeaderFooterMousewheel,
|
|
43757
43733
|
tableSize,
|
|
43758
|
-
bodyHeight,
|
|
43759
|
-
height,
|
|
43760
43734
|
emptyBlockStyle,
|
|
43761
43735
|
handleFixedMousewheel,
|
|
43762
|
-
fixedHeight,
|
|
43763
|
-
fixedBodyHeight,
|
|
43764
43736
|
resizeProxyVisible,
|
|
43765
43737
|
bodyWidth,
|
|
43766
43738
|
resizeState,
|
|
43767
43739
|
doLayout,
|
|
43768
43740
|
tableBodyStyles,
|
|
43769
43741
|
tableLayout,
|
|
43770
|
-
scrollbarViewStyle
|
|
43742
|
+
scrollbarViewStyle,
|
|
43743
|
+
tableInnerStyle,
|
|
43744
|
+
scrollbarStyle
|
|
43771
43745
|
} = useStyle(props, layout, store, table);
|
|
43772
43746
|
const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar$1();
|
|
43773
43747
|
const debouncedUpdateLayout = debounce(doLayout, 50);
|
|
@@ -43798,14 +43772,10 @@ const _sfc_main$p = defineComponent({
|
|
|
43798
43772
|
resizeState,
|
|
43799
43773
|
isGroup,
|
|
43800
43774
|
bodyWidth,
|
|
43801
|
-
bodyHeight,
|
|
43802
|
-
height,
|
|
43803
43775
|
tableBodyStyles,
|
|
43804
43776
|
emptyBlockStyle,
|
|
43805
43777
|
debouncedUpdateLayout,
|
|
43806
43778
|
handleFixedMousewheel,
|
|
43807
|
-
fixedHeight,
|
|
43808
|
-
fixedBodyHeight,
|
|
43809
43779
|
setCurrentRow,
|
|
43810
43780
|
getSelectionRows,
|
|
43811
43781
|
toggleRowSelection,
|
|
@@ -43823,6 +43793,8 @@ const _sfc_main$p = defineComponent({
|
|
|
43823
43793
|
computedEmptyText,
|
|
43824
43794
|
tableLayout,
|
|
43825
43795
|
scrollbarViewStyle,
|
|
43796
|
+
tableInnerStyle,
|
|
43797
|
+
scrollbarStyle,
|
|
43826
43798
|
scrollBarRef,
|
|
43827
43799
|
scrollTo,
|
|
43828
43800
|
setScrollLeft,
|
|
@@ -43868,7 +43840,8 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43868
43840
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => _ctx.handleMouseLeave())
|
|
43869
43841
|
}, [
|
|
43870
43842
|
createElementVNode("div", {
|
|
43871
|
-
class: normalizeClass(_ctx.ns.e("inner-wrapper"))
|
|
43843
|
+
class: normalizeClass(_ctx.ns.e("inner-wrapper")),
|
|
43844
|
+
style: normalizeStyle(_ctx.tableInnerStyle)
|
|
43872
43845
|
}, [
|
|
43873
43846
|
createElementVNode("div", _hoisted_2$7, [
|
|
43874
43847
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -43903,14 +43876,12 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43903
43876
|
]) : createCommentVNode("v-if", true),
|
|
43904
43877
|
createElementVNode("div", {
|
|
43905
43878
|
ref: "bodyWrapper",
|
|
43906
|
-
style: normalizeStyle(_ctx.bodyHeight),
|
|
43907
43879
|
class: normalizeClass(_ctx.ns.e("body-wrapper"))
|
|
43908
43880
|
}, [
|
|
43909
43881
|
createVNode(_component_el_scrollbar, {
|
|
43910
43882
|
ref: "scrollBarRef",
|
|
43911
|
-
height: _ctx.maxHeight ? void 0 : _ctx.height,
|
|
43912
|
-
"max-height": _ctx.maxHeight ? _ctx.height : void 0,
|
|
43913
43883
|
"view-style": _ctx.scrollbarViewStyle,
|
|
43884
|
+
"wrap-style": _ctx.scrollbarStyle,
|
|
43914
43885
|
always: _ctx.scrollbarAlwaysOn
|
|
43915
43886
|
}, {
|
|
43916
43887
|
default: withCtx(() => [
|
|
@@ -43969,30 +43940,30 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43969
43940
|
], 2)) : createCommentVNode("v-if", true)
|
|
43970
43941
|
]),
|
|
43971
43942
|
_: 3
|
|
43972
|
-
}, 8, ["
|
|
43973
|
-
],
|
|
43974
|
-
_ctx.
|
|
43943
|
+
}, 8, ["view-style", "wrap-style", "always"])
|
|
43944
|
+
], 2),
|
|
43945
|
+
_ctx.showSummary ? withDirectives((openBlock(), createElementBlock("div", {
|
|
43975
43946
|
key: 1,
|
|
43947
|
+
ref: "footerWrapper",
|
|
43948
|
+
class: normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
43949
|
+
}, [
|
|
43950
|
+
createVNode(_component_table_footer, {
|
|
43951
|
+
border: _ctx.border,
|
|
43952
|
+
"default-sort": _ctx.defaultSort,
|
|
43953
|
+
store: _ctx.store,
|
|
43954
|
+
style: normalizeStyle(_ctx.tableBodyStyles),
|
|
43955
|
+
"sum-text": _ctx.computedSumText,
|
|
43956
|
+
"summary-method": _ctx.summaryMethod
|
|
43957
|
+
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
43958
|
+
], 2)), [
|
|
43959
|
+
[vShow, !_ctx.isEmpty],
|
|
43960
|
+
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
43961
|
+
]) : createCommentVNode("v-if", true),
|
|
43962
|
+
_ctx.border || _ctx.isGroup ? (openBlock(), createElementBlock("div", {
|
|
43963
|
+
key: 2,
|
|
43976
43964
|
class: normalizeClass(_ctx.ns.e("border-left-patch"))
|
|
43977
43965
|
}, null, 2)) : createCommentVNode("v-if", true)
|
|
43978
|
-
],
|
|
43979
|
-
_ctx.showSummary ? withDirectives((openBlock(), createElementBlock("div", {
|
|
43980
|
-
key: 0,
|
|
43981
|
-
ref: "footerWrapper",
|
|
43982
|
-
class: normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
43983
|
-
}, [
|
|
43984
|
-
createVNode(_component_table_footer, {
|
|
43985
|
-
border: _ctx.border,
|
|
43986
|
-
"default-sort": _ctx.defaultSort,
|
|
43987
|
-
store: _ctx.store,
|
|
43988
|
-
style: normalizeStyle(_ctx.tableBodyStyles),
|
|
43989
|
-
"sum-text": _ctx.computedSumText,
|
|
43990
|
-
"summary-method": _ctx.summaryMethod
|
|
43991
|
-
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
43992
|
-
], 2)), [
|
|
43993
|
-
[vShow, !_ctx.isEmpty],
|
|
43994
|
-
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
43995
|
-
]) : createCommentVNode("v-if", true),
|
|
43966
|
+
], 6),
|
|
43996
43967
|
withDirectives(createElementVNode("div", {
|
|
43997
43968
|
ref: "resizeProxy",
|
|
43998
43969
|
class: normalizeClass(_ctx.ns.e("column-resize-proxy"))
|
|
@@ -46888,7 +46859,7 @@ const TabNav = defineComponent({
|
|
|
46888
46859
|
} = EVENT_CODE;
|
|
46889
46860
|
if (![up, down, left, right].includes(code))
|
|
46890
46861
|
return;
|
|
46891
|
-
const tabList = Array.from(e.currentTarget.querySelectorAll("[role=tab]"));
|
|
46862
|
+
const tabList = Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));
|
|
46892
46863
|
const currentIndex = tabList.indexOf(e.target);
|
|
46893
46864
|
let nextIndex;
|
|
46894
46865
|
if (code === left || code === up) {
|
|
@@ -46951,8 +46922,9 @@ const TabNav = defineComponent({
|
|
|
46951
46922
|
})])] : null;
|
|
46952
46923
|
const tabs = props.panes.map((pane, index) => {
|
|
46953
46924
|
var _a, _b, _c, _d;
|
|
46925
|
+
const disabled = pane.props.disabled;
|
|
46954
46926
|
const tabName = (_b = (_a = pane.props.name) != null ? _a : pane.index) != null ? _b : `${index}`;
|
|
46955
|
-
const closable = pane.isClosable || props.editable;
|
|
46927
|
+
const closable = !disabled && (pane.isClosable || props.editable);
|
|
46956
46928
|
pane.index = `${index}`;
|
|
46957
46929
|
const btnClose = closable ? createVNode(ElIcon, {
|
|
46958
46930
|
"class": "is-icon-close",
|
|
@@ -46961,10 +46933,10 @@ const TabNav = defineComponent({
|
|
|
46961
46933
|
default: () => [createVNode(close_default, null, null)]
|
|
46962
46934
|
}) : null;
|
|
46963
46935
|
const tabLabelContent = ((_d = (_c = pane.slots).label) == null ? void 0 : _d.call(_c)) || pane.props.label;
|
|
46964
|
-
const tabindex = pane.active ? 0 : -1;
|
|
46936
|
+
const tabindex = !disabled && pane.active ? 0 : -1;
|
|
46965
46937
|
return createVNode("div", {
|
|
46966
46938
|
"ref": `tab-${tabName}`,
|
|
46967
|
-
"class": [ns.e("item"), ns.is(rootTabs.props.tabPosition), ns.is("active", pane.active), ns.is("disabled",
|
|
46939
|
+
"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)],
|
|
46968
46940
|
"id": `tab-${tabName}`,
|
|
46969
46941
|
"key": `tab-${tabName}`,
|
|
46970
46942
|
"aria-controls": `pane-${tabName}`,
|
|
@@ -47087,6 +47059,14 @@ var Tabs = defineComponent({
|
|
|
47087
47059
|
emit("edit", void 0, "add");
|
|
47088
47060
|
emit("tab-add");
|
|
47089
47061
|
};
|
|
47062
|
+
useDeprecated({
|
|
47063
|
+
from: '"activeName"',
|
|
47064
|
+
replacement: '"model-value" or "v-model"',
|
|
47065
|
+
scope: "ElTabs",
|
|
47066
|
+
version: "2.3.0",
|
|
47067
|
+
ref: "https://element-plus.org/en-US/component/tabs.html#attributes",
|
|
47068
|
+
type: "Attribute"
|
|
47069
|
+
}, computed(() => !!props.activeName));
|
|
47090
47070
|
watch(() => props.activeName, (modelValue) => setCurrentName(modelValue));
|
|
47091
47071
|
watch(() => props.modelValue, (modelValue) => setCurrentName(modelValue));
|
|
47092
47072
|
watch(currentName, async () => {
|
|
@@ -48186,6 +48166,10 @@ const transferProps = buildProps({
|
|
|
48186
48166
|
type: String,
|
|
48187
48167
|
values: ["original", "push", "unshift"],
|
|
48188
48168
|
default: "original"
|
|
48169
|
+
},
|
|
48170
|
+
validateEvent: {
|
|
48171
|
+
type: Boolean,
|
|
48172
|
+
default: true
|
|
48189
48173
|
}
|
|
48190
48174
|
});
|
|
48191
48175
|
const transferCheckedChangeFn = (value, movedKeys) => [value, movedKeys].every(isArray) || isArray(value) && isNil(movedKeys);
|
|
@@ -48541,7 +48525,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
48541
48525
|
const panelFilterPlaceholder = computed(() => props.filterPlaceholder || t("el.transfer.filterPlaceholder"));
|
|
48542
48526
|
watch(() => props.modelValue, () => {
|
|
48543
48527
|
var _a;
|
|
48544
|
-
|
|
48528
|
+
if (props.validateEvent) {
|
|
48529
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn());
|
|
48530
|
+
}
|
|
48545
48531
|
});
|
|
48546
48532
|
const optionRender = computed(() => (option) => {
|
|
48547
48533
|
if (props.renderContent)
|
|
@@ -50302,6 +50288,12 @@ const component = defineComponent({
|
|
|
50302
50288
|
setup(props, ctx) {
|
|
50303
50289
|
const result = ElOption.setup(props, ctx);
|
|
50304
50290
|
delete result.selectOptionClick;
|
|
50291
|
+
const vm = getCurrentInstance().proxy;
|
|
50292
|
+
nextTick(() => {
|
|
50293
|
+
if (!result.select.cachedOptions.get(vm.value)) {
|
|
50294
|
+
result.select.onOptionCreate(vm);
|
|
50295
|
+
}
|
|
50296
|
+
});
|
|
50305
50297
|
return result;
|
|
50306
50298
|
},
|
|
50307
50299
|
methods: {
|
|
@@ -50312,6 +50304,31 @@ const component = defineComponent({
|
|
|
50312
50304
|
});
|
|
50313
50305
|
var TreeSelectOption = component;
|
|
50314
50306
|
|
|
50307
|
+
function isValidValue(val) {
|
|
50308
|
+
return val || val === 0;
|
|
50309
|
+
}
|
|
50310
|
+
function isValidArray(val) {
|
|
50311
|
+
return Array.isArray(val) && val.length;
|
|
50312
|
+
}
|
|
50313
|
+
function toValidArray(val) {
|
|
50314
|
+
return Array.isArray(val) ? val : isValidValue(val) ? [val] : [];
|
|
50315
|
+
}
|
|
50316
|
+
function treeFind(treeData, findCallback, getChildren, resultCallback, parent) {
|
|
50317
|
+
for (let i = 0; i < treeData.length; i++) {
|
|
50318
|
+
const data = treeData[i];
|
|
50319
|
+
if (findCallback(data, i, treeData, parent)) {
|
|
50320
|
+
return resultCallback ? resultCallback(data, i, treeData, parent) : data;
|
|
50321
|
+
} else {
|
|
50322
|
+
const children = getChildren(data);
|
|
50323
|
+
if (isValidArray(children)) {
|
|
50324
|
+
const find = treeFind(children, findCallback, getChildren, resultCallback, data);
|
|
50325
|
+
if (find)
|
|
50326
|
+
return find;
|
|
50327
|
+
}
|
|
50328
|
+
}
|
|
50329
|
+
}
|
|
50330
|
+
}
|
|
50331
|
+
|
|
50315
50332
|
const useTree$1 = (props, { attrs, slots, emit }, {
|
|
50316
50333
|
select,
|
|
50317
50334
|
tree,
|
|
@@ -50343,6 +50360,9 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
50343
50360
|
return data[propVal];
|
|
50344
50361
|
}
|
|
50345
50362
|
};
|
|
50363
|
+
const defaultExpandedParentKeys = toValidArray(props.modelValue).map((value) => {
|
|
50364
|
+
return treeFind(props.data || [], (data) => getNodeValByProp("value", data) === value, (data) => getNodeValByProp("children", data), (data, index, array, parent) => parent && getNodeValByProp("value", parent));
|
|
50365
|
+
}).filter((item) => isValidValue(item));
|
|
50346
50366
|
return {
|
|
50347
50367
|
...pick(toRefs(props), Object.keys(_Tree.props)),
|
|
50348
50368
|
...attrs,
|
|
@@ -50351,12 +50371,7 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
50351
50371
|
return !props.checkStrictly;
|
|
50352
50372
|
}),
|
|
50353
50373
|
defaultExpandedKeys: computed(() => {
|
|
50354
|
-
|
|
50355
|
-
const parentKeys = tree.value ? values.map((item) => {
|
|
50356
|
-
var _a, _b, _c;
|
|
50357
|
-
return (_c = (_b = (_a = tree.value) == null ? void 0 : _a.getNode(item)) == null ? void 0 : _b.parent) == null ? void 0 : _c.key;
|
|
50358
|
-
}).filter((item) => isValidValue(item)) : values;
|
|
50359
|
-
return props.defaultExpandedKeys ? props.defaultExpandedKeys.concat(parentKeys) : parentKeys;
|
|
50374
|
+
return props.defaultExpandedKeys ? props.defaultExpandedKeys.concat(defaultExpandedParentKeys) : defaultExpandedParentKeys;
|
|
50360
50375
|
}),
|
|
50361
50376
|
renderContent: (h, { node, data, store }) => {
|
|
50362
50377
|
return h(TreeSelectOption, {
|
|
@@ -50376,7 +50391,9 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
50376
50391
|
onNodeClick: (data, node, e) => {
|
|
50377
50392
|
var _a, _b, _c;
|
|
50378
50393
|
(_a = attrs.onNodeClick) == null ? void 0 : _a.call(attrs, data, node, e);
|
|
50379
|
-
if (
|
|
50394
|
+
if (props.showCheckbox && props.checkOnClickNode)
|
|
50395
|
+
return;
|
|
50396
|
+
if (!props.showCheckbox && (props.checkStrictly || node.isLeaf)) {
|
|
50380
50397
|
if (!getNodeValByProp("disabled", data)) {
|
|
50381
50398
|
const option = (_b = select.value) == null ? void 0 : _b.options.get(getNodeValByProp("value", data));
|
|
50382
50399
|
(_c = select.value) == null ? void 0 : _c.handleOptionSelect(option, true);
|
|
@@ -50386,20 +50403,24 @@ const useTree$1 = (props, { attrs, slots, emit }, {
|
|
|
50386
50403
|
}
|
|
50387
50404
|
},
|
|
50388
50405
|
onCheck: (data, params) => {
|
|
50389
|
-
var _a
|
|
50406
|
+
var _a;
|
|
50390
50407
|
(_a = attrs.onCheck) == null ? void 0 : _a.call(attrs, data, params);
|
|
50391
|
-
const
|
|
50392
|
-
|
|
50393
|
-
|
|
50408
|
+
const dataValue = getNodeValByProp("value", data);
|
|
50409
|
+
if (props.checkStrictly) {
|
|
50410
|
+
emit(UPDATE_MODEL_EVENT, props.multiple ? params.checkedKeys : params.checkedKeys.includes(dataValue) ? dataValue : void 0);
|
|
50411
|
+
} else {
|
|
50412
|
+
if (props.multiple) {
|
|
50413
|
+
emit(UPDATE_MODEL_EVENT, tree.value.getCheckedKeys(true));
|
|
50414
|
+
} else {
|
|
50415
|
+
const firstLeaf = treeFind([data], (data2) => !isValidArray(getNodeValByProp("children", data2)) && !getNodeValByProp("disabled", data2), (data2) => getNodeValByProp("children", data2));
|
|
50416
|
+
const firstLeafKey = firstLeaf ? getNodeValByProp("value", firstLeaf) : void 0;
|
|
50417
|
+
const hasCheckedChild = isValidValue(props.modelValue) && !!treeFind([data], (data2) => getNodeValByProp("value", data2) === props.modelValue, (data2) => getNodeValByProp("children", data2));
|
|
50418
|
+
emit(UPDATE_MODEL_EVENT, firstLeafKey === props.modelValue || hasCheckedChild ? void 0 : firstLeafKey);
|
|
50419
|
+
}
|
|
50420
|
+
}
|
|
50394
50421
|
}
|
|
50395
50422
|
};
|
|
50396
50423
|
};
|
|
50397
|
-
function isValidValue(val) {
|
|
50398
|
-
return val || val === 0;
|
|
50399
|
-
}
|
|
50400
|
-
function toValidArray(val) {
|
|
50401
|
-
return Array.isArray(val) ? val : isValidValue(val) ? [val] : [];
|
|
50402
|
-
}
|
|
50403
50424
|
|
|
50404
50425
|
const _sfc_main$9 = defineComponent({
|
|
50405
50426
|
name: "ElTreeSelect",
|
|
@@ -52044,7 +52065,7 @@ const useHandlers = (props, uploadRef) => {
|
|
|
52044
52065
|
props.onError(err, uploadFile, uploadFiles.value);
|
|
52045
52066
|
}
|
|
52046
52067
|
}
|
|
52047
|
-
uploadFiles.value.
|
|
52068
|
+
uploadFiles.value = [...uploadFiles.value, uploadFile];
|
|
52048
52069
|
props.onChange(uploadFile, uploadFiles.value);
|
|
52049
52070
|
};
|
|
52050
52071
|
const handleRemove = async (file) => {
|
|
@@ -52822,7 +52843,7 @@ const getLastOffset = (id) => {
|
|
|
52822
52843
|
const { prev } = getInstance(id);
|
|
52823
52844
|
if (!prev)
|
|
52824
52845
|
return 0;
|
|
52825
|
-
return prev.vm.bottom;
|
|
52846
|
+
return prev.vm.exposeProxy.bottom;
|
|
52826
52847
|
};
|
|
52827
52848
|
|
|
52828
52849
|
const _hoisted_1$2 = ["id"];
|
|
@@ -52969,7 +52990,9 @@ const normalizeOptions = (params) => {
|
|
|
52969
52990
|
...messageDefaults,
|
|
52970
52991
|
...options
|
|
52971
52992
|
};
|
|
52972
|
-
if (
|
|
52993
|
+
if (!normalized.appendTo) {
|
|
52994
|
+
normalized.appendTo = document.body;
|
|
52995
|
+
} else if (isString(normalized.appendTo)) {
|
|
52973
52996
|
let appendTo = document.querySelector(normalized.appendTo);
|
|
52974
52997
|
if (!isElement$1(appendTo)) {
|
|
52975
52998
|
appendTo = document.body;
|
|
@@ -52987,14 +53010,13 @@ const closeMessage = (instance) => {
|
|
|
52987
53010
|
handler.close();
|
|
52988
53011
|
};
|
|
52989
53012
|
const createMessage = ({ appendTo, ...options }, context) => {
|
|
52990
|
-
var _a;
|
|
52991
53013
|
const { nextZIndex } = useZIndex();
|
|
52992
53014
|
const id = `message_${seed$1++}`;
|
|
52993
53015
|
const userOnClose = options.onClose;
|
|
52994
53016
|
const container = document.createElement("div");
|
|
52995
53017
|
const props = {
|
|
52996
53018
|
...options,
|
|
52997
|
-
zIndex: (
|
|
53019
|
+
zIndex: nextZIndex() + options.zIndex,
|
|
52998
53020
|
id,
|
|
52999
53021
|
onClose: () => {
|
|
53000
53022
|
userOnClose == null ? void 0 : userOnClose();
|
|
@@ -53008,10 +53030,10 @@ const createMessage = ({ appendTo, ...options }, context) => {
|
|
|
53008
53030
|
vnode.appContext = context || message._context;
|
|
53009
53031
|
render(vnode, container);
|
|
53010
53032
|
appendTo.appendChild(container.firstElementChild);
|
|
53011
|
-
const vm = vnode.component
|
|
53033
|
+
const vm = vnode.component;
|
|
53012
53034
|
const handler = {
|
|
53013
53035
|
close: () => {
|
|
53014
|
-
vm.visible = false;
|
|
53036
|
+
vm.exposeProxy.visible = false;
|
|
53015
53037
|
}
|
|
53016
53038
|
};
|
|
53017
53039
|
const instance = {
|
|
@@ -53997,4 +54019,4 @@ var installer = makeInstaller([...Components, ...Plugins]);
|
|
|
53997
54019
|
const install = installer.install;
|
|
53998
54020
|
const version = installer.version;
|
|
53999
54021
|
|
|
54000
|
-
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, DROPDOWN_INJECTION_KEY, DefaultProps, DynamicSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, EVENT_CODE, Effect, ElAffix, ElAlert, ElAside, ElAutoResizer, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElCollection, ElCollectionItem, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$1 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, GAP, ID_INJECTION_KEY, INPUT_EVENT, INSTALLED_KEY, IconComponentMap, IconMap, LAST_KEYS, LEFT_CHECK_CHANGE_EVENT, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RIGHT_CHECK_CHANGE_EVENT, ROOT_PICKER_INJECTION_KEY,
|
|
54022
|
+
export { BAR_MAP, CASCADER_PANEL_INJECTION_KEY, CHANGE_EVENT, ClickOutside, CommonPicker, CommonProps, DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, COLLECTION_INJECTION_KEY as DROPDOWN_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as DROPDOWN_COLLECTION_ITEM_INJECTION_KEY, DROPDOWN_INJECTION_KEY, DefaultProps, DynamicSizeGrid$1 as DynamicSizeGrid, DynamicSizeList$1 as DynamicSizeList, EVENT_CODE, Effect, ElAffix, ElAlert, ElAside, ElAutoResizer, ElAutocomplete, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup$1 as ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup$1 as ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElCollection, ElCollectionItem, ElColorPicker, ElConfigProvider, ElContainer, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElFooter, ElForm, ElFormItem, ElHeader, ElIcon, ElImage, ElImageViewer, ElInfiniteScroll, ElInput, ElInputNumber, ElLink, ElLoading, vLoading as ElLoadingDirective, Loading as ElLoadingService, ElMain, ElMenu, ElMenuItem, ElMenuItemGroup, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElOverlay, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopoverDirective, ElPopper, ElPopperArrow, ElPopperContent, ElPopperTrigger, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElStep, ElSteps, ElSubMenu, ElSwitch, ElTabPane, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload, ExpandTrigger$1 as ExpandTrigger, FIRST_KEYS, FIRST_LAST_KEYS, FORWARD_REF_INJECTION_KEY, FixedSizeGrid$1 as FixedSizeGrid, FixedSizeList$1 as FixedSizeList, GAP, ID_INJECTION_KEY, INPUT_EVENT, INSTALLED_KEY, IconComponentMap, IconMap, LAST_KEYS, LEFT_CHECK_CHANGE_EVENT, Mousewheel, POPPER_CONTAINER_ID, POPPER_CONTAINER_SELECTOR, POPPER_CONTENT_INJECTION_KEY, POPPER_INJECTION_KEY, RIGHT_CHECK_CHANGE_EVENT, ROOT_PICKER_INJECTION_KEY, RepeatClick, RowAlign, RowJustify, TOOLTIP_INJECTION_KEY, TOOLTIP_V2_OPEN, TableV2$1 as TableV2, Alignment as TableV2Alignment, FixedDir as TableV2FixedDir, placeholderSign as TableV2Placeholder, SortOrder as TableV2SortOrder, TimePickPanel, TrapFocus, UPDATE_MODEL_EVENT, WEEK_DAYS, affixEmits, affixProps, alertEffects, alertEmits, alertProps, arrowMiddleware, autoResizerProps, autocompleteEmits, autocompleteProps, avatarEmits, avatarProps, backtopEmits, backtopProps, badgeProps, breadcrumbItemProps, breadcrumbKey, breadcrumbProps, buildLocaleContext, buildTimeList, buildTranslator, buttonEmits, buttonGroupContextKey, buttonNativeTypes, buttonProps, buttonTypes, calendarEmits, calendarProps, cardProps, carouselContextKey, carouselEmits, carouselItemProps, carouselProps, checkTagEmits, checkTagProps, checkboxEmits, checkboxGroupEmits, checkboxProps, colProps, collapseContextKey, collapseEmits, collapseItemProps, collapseProps, componentSizeMap, componentSizes, configProviderContextKey, configProviderProps, createModelToggleComposable, dateEquals, datePickTypes, dayjs, installer as default, defaultNamespace, descriptionProps, dialogEmits, dialogInjectionKey, dialogProps, dividerProps, drawerEmits, drawerProps, dropdownItemProps, dropdownMenuProps, dropdownProps, elPaginationKey, emitChangeFn, emptyProps, extractDateFormat, extractTimeFormat, formContextKey, formEmits, formItemContextKey, formItemProps, formItemValidateStates, formProps, formatter, genFileId, getPositionDataWithUnit, iconProps, imageEmits, imageProps, imageViewerEmits, imageViewerProps, inputEmits, inputNumberEmits, inputNumberProps, inputProps, install, linkEmits, linkProps, makeInstaller, makeList, menuEmits, menuItemEmits, menuItemGroupProps, menuItemProps, menuProps, messageConfig, messageDefaults, messageEmits, messageProps, messageTypes, notificationEmits, notificationProps, notificationTypes, overlayEmits, overlayProps, pageHeaderEmits, pageHeaderProps, paginationEmits, paginationProps, parseDate, popconfirmProps, popoverEmits, popoverProps, progressProps, provideGlobalConfig, radioButtonProps, radioEmits, radioGroupEmits, radioGroupKey, radioGroupProps, radioProps, radioPropsBase, rangeArr, rateEmits, rateProps, renderThumbStyle$1 as renderThumbStyle, resultProps, rowContextKey, rowProps, scrollbarContextKey, scrollbarEmits, scrollbarProps, selectGroupKey, selectKey, selectV2InjectionKey, skeletonItemProps, skeletonProps, sliderContextKey, sliderEmits, sliderProps, spaceProps, stepProps, stepsEmits, stepsProps, subMenuProps, switchEmits, switchProps, tabBarProps, tabNavProps, tabPaneProps, tableV2Props, tableV2RowProps, tabsEmits, tabsProps, tabsRootContextKey, tagEmits, tagProps, thumbProps, timePickerDefaultProps, timeUnits, timelineItemProps, tooltipV2ContentKey, tooltipV2RootKey, transferCheckedChangeFn, transferEmits, transferProps, translate, uploadBaseProps, uploadContentProps, uploadContextKey, uploadDraggerEmits, uploadDraggerProps, uploadListEmits, uploadListProps, uploadListTypes, uploadProps, useAttrs, useCascaderConfig, useCheckbox, useCheckboxGroup, useCheckboxGroupId, useCheckboxGroupProps, useCursor, useDelayedRender, useDelayedToggle, useDelayedToggleProps, useDeprecated, useDialog, useDisabled$1 as useDisabled, useDraggable, useEscapeKeydown, useFloating, useFloatingProps, useFocus, useFormItem, useFormItemInputId, useForwardRef, useForwardRefDirective, useGlobalConfig, useId, useLocale, useLockscreen, useModal, useModelToggle$1 as useModelToggle, useModelToggleEmits$1 as useModelToggleEmits, useModelToggleProps$1 as useModelToggleProps, useNamespace, usePopperArrowProps, usePopperContainer, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps, usePopperProps, usePopperTriggerProps, usePreventGlobal, useProp, useRestoreActive, useSameTarget, useSize, useSizeProp, useSpace, useTeleport, useThrottleRender, useTimeout, useTooltipContentProps, useTooltipProps, useTooltipTriggerProps, useTransitionFallthrough, useTransitionFallthroughEmits, useZIndex, vLoading, valueEquals, version, virtualizedGridProps, virtualizedListProps, virtualizedProps, virtualizedScrollbarProps };
|