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
|
@@ -45,6 +45,10 @@ const useCheckboxGroupProps = {
|
|
|
45
45
|
tag: {
|
|
46
46
|
type: String,
|
|
47
47
|
default: "div"
|
|
48
|
+
},
|
|
49
|
+
validateEvent: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: true
|
|
48
52
|
}
|
|
49
53
|
};
|
|
50
54
|
const checkboxProps = {
|
|
@@ -80,7 +84,11 @@ const checkboxProps = {
|
|
|
80
84
|
},
|
|
81
85
|
border: Boolean,
|
|
82
86
|
size: useSizeProp,
|
|
83
|
-
tabindex: [String, Number]
|
|
87
|
+
tabindex: [String, Number],
|
|
88
|
+
validateEvent: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
}
|
|
84
92
|
};
|
|
85
93
|
const useCheckboxGroup = () => {
|
|
86
94
|
const elForm = inject(formContextKey, {});
|
|
@@ -204,7 +212,7 @@ const useEvent = (props, {
|
|
|
204
212
|
isDisabled,
|
|
205
213
|
isLabeledByFormItem
|
|
206
214
|
}) => {
|
|
207
|
-
const { elFormItem } = useCheckboxGroup();
|
|
215
|
+
const { elFormItem, checkboxGroup } = useCheckboxGroup();
|
|
208
216
|
const { emit } = getCurrentInstance();
|
|
209
217
|
function getLabeledValue(value) {
|
|
210
218
|
var _a, _b;
|
|
@@ -228,9 +236,15 @@ const useEvent = (props, {
|
|
|
228
236
|
emitChangeEvent(model.value, e);
|
|
229
237
|
}
|
|
230
238
|
}
|
|
239
|
+
const validateEvent = computed(() => {
|
|
240
|
+
var _a;
|
|
241
|
+
return ((_a = checkboxGroup.validateEvent) == null ? void 0 : _a.value) || props.validateEvent;
|
|
242
|
+
});
|
|
231
243
|
watch(() => props.modelValue, () => {
|
|
232
244
|
var _a;
|
|
233
|
-
|
|
245
|
+
if (validateEvent.value) {
|
|
246
|
+
(_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change").catch((err) => debugWarn(err));
|
|
247
|
+
}
|
|
234
248
|
});
|
|
235
249
|
return {
|
|
236
250
|
handleChange,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, nextTick, ref, watch } from 'vue'\nimport { toTypeString } from '@vue/shared'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { formContextKey, formItemContextKey } from '@element-plus/tokens'\nimport { useFormItemInputId, useSize, useSizeProp } from '@element-plus/hooks'\nimport {\n debugWarn,\n isArray,\n isBoolean,\n isNumber,\n isString,\n} from '@element-plus/utils'\nimport type { ComponentInternalInstance, ExtractPropTypes, PropType } from 'vue'\nimport type { FormContext, FormItemContext } from '@element-plus/tokens'\nimport type { ICheckboxGroupInstance } from './checkbox.type'\nimport type Checkbox from './checkbox.vue'\n\nexport const useCheckboxGroupProps = {\n modelValue: {\n type: Array as PropType<Array<string | number>>,\n default: () => [],\n },\n disabled: Boolean,\n min: {\n type: Number,\n default: undefined,\n },\n max: {\n type: Number,\n default: undefined,\n },\n size: useSizeProp,\n id: {\n type: String,\n default: undefined,\n },\n label: {\n type: String,\n default: undefined,\n },\n fill: {\n type: String,\n default: undefined,\n },\n textColor: {\n type: String,\n default: undefined,\n },\n tag: {\n type: String,\n default: 'div',\n },\n}\n\nexport type IUseCheckboxGroupProps = ExtractPropTypes<\n typeof useCheckboxGroupProps\n>\n\nexport const checkboxProps = {\n modelValue: {\n type: [Number, String, Boolean],\n default: () => undefined,\n },\n label: {\n type: [String, Boolean, Number, Object],\n },\n indeterminate: Boolean,\n disabled: Boolean,\n checked: Boolean,\n name: {\n type: String,\n default: undefined,\n },\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n id: {\n type: String,\n default: undefined,\n },\n controls: {\n type: String,\n default: undefined,\n },\n border: Boolean,\n size: useSizeProp,\n tabindex: [String, Number],\n}\n\nexport const useCheckboxGroup = () => {\n const elForm = inject(formContextKey, {} as FormContext)\n const elFormItem = inject(formItemContextKey, {} as FormItemContext)\n const checkboxGroup = inject<ICheckboxGroupInstance>('CheckboxGroup', {})\n const isGroup = computed(\n () => checkboxGroup && checkboxGroup?.name === 'ElCheckboxGroup'\n )\n const elFormItemSize = computed(() => {\n return elFormItem.size\n })\n return {\n isGroup,\n checkboxGroup,\n elForm,\n elFormItemSize,\n elFormItem,\n }\n}\n\nexport const useCheckboxGroupId = (\n props: IUseCheckboxGroupProps,\n { elFormItem }: Partial<ReturnType<typeof useCheckboxGroup>>\n) => {\n const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n })\n\n return {\n isLabeledByFormItem,\n groupId,\n }\n}\n\nconst useModel = (props: CheckboxProps) => {\n const selfModel = ref<any>(false)\n const { emit } = getCurrentInstance()!\n const { isGroup, checkboxGroup, elFormItem } = useCheckboxGroup()\n const isLimitExceeded = ref(false)\n const model = computed({\n get() {\n return isGroup.value\n ? checkboxGroup.modelValue?.value\n : props.modelValue ?? selfModel.value\n },\n\n set(val: unknown) {\n if (isGroup.value && Array.isArray(val)) {\n isLimitExceeded.value =\n checkboxGroup.max !== undefined &&\n val.length > checkboxGroup.max.value\n isLimitExceeded.value === false && checkboxGroup?.changeEvent?.(val)\n } else {\n emit(UPDATE_MODEL_EVENT, val)\n selfModel.value = val\n }\n },\n })\n\n return {\n model,\n isGroup,\n isLimitExceeded,\n elFormItem,\n }\n}\n\nconst useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Partial<ReturnType<typeof useModel>>\n) => {\n const { isGroup, checkboxGroup } = useCheckboxGroup()\n const focus = ref(false)\n const size = useSize(checkboxGroup?.checkboxGroupSize, { prop: true })\n const isChecked = computed<boolean>(() => {\n const value = model!.value\n if (toTypeString(value) === '[object Boolean]') {\n return value\n } else if (Array.isArray(value)) {\n return value.includes(props.label)\n } else if (value !== null && value !== undefined) {\n return value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxSize = useSize(\n computed(() =>\n isGroup.value ? checkboxGroup?.checkboxGroupSize?.value : undefined\n )\n )\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!(slots.default || props.label)\n })\n\n return {\n isChecked,\n focus,\n size,\n checkboxSize,\n hasOwnLabel,\n }\n}\n\nconst useDisabled = (\n props: CheckboxProps,\n {\n model,\n isChecked,\n }: Partial<ReturnType<typeof useModel>> &\n Partial<ReturnType<typeof useCheckboxStatus>>\n) => {\n const { elForm, isGroup, checkboxGroup } = useCheckboxGroup()\n const isLimitDisabled = computed(() => {\n const max = checkboxGroup.max?.value!\n const min = checkboxGroup.min?.value!\n return (\n (!!(max || min) && model!.value.length >= max && !isChecked!.value) ||\n (model!.value.length <= min && isChecked!.value)\n )\n })\n const isDisabled = computed(() => {\n const disabled = props.disabled || elForm?.disabled\n return (\n (isGroup.value\n ? checkboxGroup.disabled?.value || disabled || isLimitDisabled.value\n : disabled) ?? false\n )\n })\n\n return {\n isDisabled,\n isLimitDisabled,\n }\n}\n\nconst setStoreValue = (\n props: CheckboxProps,\n { model }: Partial<ReturnType<typeof useModel>>\n) => {\n function addToStore() {\n if (Array.isArray(model!.value) && !model!.value.includes(props.label)) {\n model!.value.push(props.label)\n } else {\n model!.value = props.trueLabel || true\n }\n }\n props.checked && addToStore()\n}\n\nconst useEvent = (\n props: CheckboxProps,\n {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n }: Partial<\n ReturnType<typeof useModel> &\n ReturnType<typeof useCheckboxStatus> &\n ReturnType<typeof useDisabled> &\n ReturnType<typeof useFormItemInputId>\n >\n) => {\n const { elFormItem } = useCheckboxGroup()\n const { emit } = getCurrentInstance()!\n\n function getLabeledValue(value: string | number | boolean) {\n return value === props.trueLabel || value === true\n ? props.trueLabel ?? true\n : props.falseLabel ?? false\n }\n\n function emitChangeEvent(\n checked: string | number | boolean,\n e: InputEvent | MouseEvent\n ) {\n emit('change', getLabeledValue(checked), e)\n }\n\n function handleChange(e: Event) {\n if (isLimitExceeded!.value) return\n const target = e.target as HTMLInputElement\n emit('change', getLabeledValue(target.checked), e)\n }\n\n async function onClickRoot(e: MouseEvent) {\n if (isLimitExceeded!.value) return\n if (\n !hasOwnLabel!.value &&\n !isDisabled!.value &&\n isLabeledByFormItem!.value\n ) {\n model!.value = getLabeledValue(\n [false, props.falseLabel].includes(model!.value)\n )\n await nextTick()\n emitChangeEvent(model!.value, e)\n }\n }\n\n watch(\n () => props.modelValue,\n () => {\n elFormItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n )\n\n return {\n handleChange,\n onClickRoot,\n }\n}\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport const checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType[]) => isArray(val),\n change: (val: CheckboxValueType[]) => isArray(val),\n}\n\nexport const useCheckbox = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots']\n) => {\n const { model, isGroup, isLimitExceeded, elFormItem } = useModel(props)\n const { focus, size, isChecked, checkboxSize, hasOwnLabel } =\n useCheckboxStatus(props, slots, {\n model,\n })\n const { isDisabled } = useDisabled(props, { model, isChecked })\n const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n disableIdGeneration: hasOwnLabel,\n disableIdManagement: isGroup,\n })\n const { handleChange, onClickRoot } = useEvent(props, {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n })\n\n setStoreValue(props, { model })\n\n return {\n elFormItem,\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isGroup,\n checkboxSize,\n hasOwnLabel,\n model,\n handleChange,\n onClickRoot,\n focus,\n size,\n }\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAYY,MAAC,qBAAqB,GAAG;AACrC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAA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M,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC1E,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE;AAChG,IAAI,KAAK;AACT,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAClE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,GAAG,kBAAkB,CAAC,KAAK,EAAE;AACrE,IAAI,eAAe,EAAE,UAAU;AAC/B,IAAI,mBAAmB,EAAE,WAAW;AACpC,IAAI,mBAAmB,EAAE,OAAO;AAChC,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE;AACxD,IAAI,KAAK;AACT,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,UAAU;AACd,IAAI,mBAAmB;AACvB,GAAG,CAAC,CAAC;AACL,EAAE,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;AAClC,EAAE,OAAO;AACT,IAAI,UAAU;AACd,IAAI,OAAO;AACX,IAAI,mBAAmB;AACvB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,OAAO;AACX,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,KAAK;AACT,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,KAAK;AACT,IAAI,IAAI;AACR,GAAG,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"checkbox.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, nextTick, ref, watch } from 'vue'\nimport { toTypeString } from '@vue/shared'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { formContextKey, formItemContextKey } from '@element-plus/tokens'\nimport { useFormItemInputId, useSize, useSizeProp } from '@element-plus/hooks'\nimport {\n debugWarn,\n isArray,\n isBoolean,\n isNumber,\n isString,\n} from '@element-plus/utils'\nimport type { ComponentInternalInstance, ExtractPropTypes, PropType } from 'vue'\nimport type { FormContext, FormItemContext } from '@element-plus/tokens'\nimport type { ICheckboxGroupInstance } from './checkbox.type'\nimport type Checkbox from './checkbox.vue'\n\nexport const useCheckboxGroupProps = {\n modelValue: {\n type: Array as PropType<Array<string | number>>,\n default: () => [],\n },\n disabled: Boolean,\n min: {\n type: Number,\n default: undefined,\n },\n max: {\n type: Number,\n default: undefined,\n },\n size: useSizeProp,\n id: {\n type: String,\n default: undefined,\n },\n label: {\n type: String,\n default: undefined,\n },\n fill: {\n type: String,\n default: undefined,\n },\n textColor: {\n type: String,\n default: undefined,\n },\n tag: {\n type: String,\n default: 'div',\n },\n validateEvent: {\n type: Boolean,\n default: true,\n },\n}\n\nexport type IUseCheckboxGroupProps = ExtractPropTypes<\n typeof useCheckboxGroupProps\n>\n\nexport const checkboxProps = {\n modelValue: {\n type: [Number, String, Boolean],\n default: () => undefined,\n },\n label: {\n type: [String, Boolean, Number, Object],\n },\n indeterminate: Boolean,\n disabled: Boolean,\n checked: Boolean,\n name: {\n type: String,\n default: undefined,\n },\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n id: {\n type: String,\n default: undefined,\n },\n controls: {\n type: String,\n default: undefined,\n },\n border: Boolean,\n size: useSizeProp,\n tabindex: [String, Number],\n validateEvent: {\n type: Boolean,\n default: true,\n },\n}\n\nexport const useCheckboxGroup = () => {\n const elForm = inject(formContextKey, {} as FormContext)\n const elFormItem = inject(formItemContextKey, {} as FormItemContext)\n const checkboxGroup = inject<ICheckboxGroupInstance>('CheckboxGroup', {})\n const isGroup = computed(\n () => checkboxGroup && checkboxGroup?.name === 'ElCheckboxGroup'\n )\n const elFormItemSize = computed(() => {\n return elFormItem.size\n })\n return {\n isGroup,\n checkboxGroup,\n elForm,\n elFormItemSize,\n elFormItem,\n }\n}\n\nexport const useCheckboxGroupId = (\n props: IUseCheckboxGroupProps,\n { elFormItem }: Partial<ReturnType<typeof useCheckboxGroup>>\n) => {\n const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n })\n\n return {\n isLabeledByFormItem,\n groupId,\n }\n}\n\nconst useModel = (props: CheckboxProps) => {\n const selfModel = ref<any>(false)\n const { emit } = getCurrentInstance()!\n const { isGroup, checkboxGroup, elFormItem } = useCheckboxGroup()\n const isLimitExceeded = ref(false)\n const model = computed({\n get() {\n return isGroup.value\n ? checkboxGroup.modelValue?.value\n : props.modelValue ?? selfModel.value\n },\n\n set(val: unknown) {\n if (isGroup.value && Array.isArray(val)) {\n isLimitExceeded.value =\n checkboxGroup.max !== undefined &&\n val.length > checkboxGroup.max.value\n isLimitExceeded.value === false && checkboxGroup?.changeEvent?.(val)\n } else {\n emit(UPDATE_MODEL_EVENT, val)\n selfModel.value = val\n }\n },\n })\n\n return {\n model,\n isGroup,\n isLimitExceeded,\n elFormItem,\n }\n}\n\nconst useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Partial<ReturnType<typeof useModel>>\n) => {\n const { isGroup, checkboxGroup } = useCheckboxGroup()\n const focus = ref(false)\n const size = useSize(checkboxGroup?.checkboxGroupSize, { prop: true })\n const isChecked = computed<boolean>(() => {\n const value = model!.value\n if (toTypeString(value) === '[object Boolean]') {\n return value\n } else if (Array.isArray(value)) {\n return value.includes(props.label)\n } else if (value !== null && value !== undefined) {\n return value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxSize = useSize(\n computed(() =>\n isGroup.value ? checkboxGroup?.checkboxGroupSize?.value : undefined\n )\n )\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!(slots.default || props.label)\n })\n\n return {\n isChecked,\n focus,\n size,\n checkboxSize,\n hasOwnLabel,\n }\n}\n\nconst useDisabled = (\n props: CheckboxProps,\n {\n model,\n isChecked,\n }: Partial<ReturnType<typeof useModel>> &\n Partial<ReturnType<typeof useCheckboxStatus>>\n) => {\n const { elForm, isGroup, checkboxGroup } = useCheckboxGroup()\n const isLimitDisabled = computed(() => {\n const max = checkboxGroup.max?.value!\n const min = checkboxGroup.min?.value!\n return (\n (!!(max || min) && model!.value.length >= max && !isChecked!.value) ||\n (model!.value.length <= min && isChecked!.value)\n )\n })\n const isDisabled = computed(() => {\n const disabled = props.disabled || elForm?.disabled\n return (\n (isGroup.value\n ? checkboxGroup.disabled?.value || disabled || isLimitDisabled.value\n : disabled) ?? false\n )\n })\n\n return {\n isDisabled,\n isLimitDisabled,\n }\n}\n\nconst setStoreValue = (\n props: CheckboxProps,\n { model }: Partial<ReturnType<typeof useModel>>\n) => {\n function addToStore() {\n if (Array.isArray(model!.value) && !model!.value.includes(props.label)) {\n model!.value.push(props.label)\n } else {\n model!.value = props.trueLabel || true\n }\n }\n props.checked && addToStore()\n}\n\nconst useEvent = (\n props: CheckboxProps,\n {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n }: Partial<\n ReturnType<typeof useModel> &\n ReturnType<typeof useCheckboxStatus> &\n ReturnType<typeof useDisabled> &\n ReturnType<typeof useFormItemInputId>\n >\n) => {\n const { elFormItem, checkboxGroup } = useCheckboxGroup()\n const { emit } = getCurrentInstance()!\n\n function getLabeledValue(value: string | number | boolean) {\n return value === props.trueLabel || value === true\n ? props.trueLabel ?? true\n : props.falseLabel ?? false\n }\n\n function emitChangeEvent(\n checked: string | number | boolean,\n e: InputEvent | MouseEvent\n ) {\n emit('change', getLabeledValue(checked), e)\n }\n\n function handleChange(e: Event) {\n if (isLimitExceeded!.value) return\n const target = e.target as HTMLInputElement\n emit('change', getLabeledValue(target.checked), e)\n }\n\n async function onClickRoot(e: MouseEvent) {\n if (isLimitExceeded!.value) return\n if (\n !hasOwnLabel!.value &&\n !isDisabled!.value &&\n isLabeledByFormItem!.value\n ) {\n model!.value = getLabeledValue(\n [false, props.falseLabel].includes(model!.value)\n )\n await nextTick()\n emitChangeEvent(model!.value, e)\n }\n }\n\n const validateEvent = computed(\n () => checkboxGroup.validateEvent?.value || props.validateEvent\n )\n\n watch(\n () => props.modelValue,\n () => {\n if (validateEvent.value) {\n elFormItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n }\n )\n\n return {\n handleChange,\n onClickRoot,\n }\n}\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport const checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType[]) => isArray(val),\n change: (val: CheckboxValueType[]) => isArray(val),\n}\n\nexport const useCheckbox = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots']\n) => {\n const { model, isGroup, isLimitExceeded, elFormItem } = useModel(props)\n const { focus, size, isChecked, checkboxSize, hasOwnLabel } =\n useCheckboxStatus(props, slots, {\n model,\n })\n const { isDisabled } = useDisabled(props, { model, isChecked })\n const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {\n formItemContext: elFormItem,\n disableIdGeneration: hasOwnLabel,\n disableIdManagement: isGroup,\n })\n const { handleChange, onClickRoot } = useEvent(props, {\n model,\n isLimitExceeded,\n hasOwnLabel,\n isDisabled,\n isLabeledByFormItem,\n })\n\n setStoreValue(props, { model })\n\n return {\n elFormItem,\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isGroup,\n checkboxSize,\n hasOwnLabel,\n model,\n handleChange,\n onClickRoot,\n focus,\n size,\n }\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAYY,MAAC,qBAAqB,GAAG;AACrC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EA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;AAChG,IAAI,KAAK;AACT,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AAClE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAE,GAAG,kBAAkB,CAAC,KAAK,EAAE;AACrE,IAAI,eAAe,EAAE,UAAU;AAC/B,IAAI,mBAAmB,EAAE,WAAW;AACpC,IAAI,mBAAmB,EAAE,OAAO;AAChC,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE;AACxD,IAAI,KAAK;AACT,IAAI,eAAe;AACnB,IAAI,WAAW;AACf,IAAI,UAAU;AACd,IAAI,mBAAmB;AACvB,GAAG,CAAC,CAAC;AACL,EAAE,aAAa,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;AAClC,EAAE,OAAO;AACT,IAAI,UAAU;AACd,IAAI,OAAO;AACX,IAAI,mBAAmB;AACvB,IAAI,SAAS;AACb,IAAI,UAAU;AACd,IAAI,OAAO;AACX,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,KAAK;AACT,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,KAAK;AACT,IAAI,IAAI;AACR,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -37,6 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
__epPropKey: true;
|
|
38
38
|
};
|
|
39
39
|
tabindex: (StringConstructor | NumberConstructor)[];
|
|
40
|
+
validateEvent: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
40
44
|
}, {
|
|
41
45
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
42
46
|
modelValue: {
|
|
@@ -77,6 +81,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
81
|
__epPropKey: true;
|
|
78
82
|
};
|
|
79
83
|
tabindex: (StringConstructor | NumberConstructor)[];
|
|
84
|
+
validateEvent: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
80
88
|
}>> & {
|
|
81
89
|
onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
|
82
90
|
"onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
|
@@ -154,6 +162,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
154
162
|
__epPropKey: true;
|
|
155
163
|
};
|
|
156
164
|
tabindex: (StringConstructor | NumberConstructor)[];
|
|
165
|
+
validateEvent: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
157
169
|
}>> & {
|
|
158
170
|
onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
|
159
171
|
"onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
|
@@ -162,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
174
|
name: string;
|
|
163
175
|
id: string;
|
|
164
176
|
modelValue: string | number | boolean;
|
|
177
|
+
validateEvent: boolean;
|
|
165
178
|
border: boolean;
|
|
166
179
|
indeterminate: boolean;
|
|
167
180
|
checked: boolean;
|
|
@@ -19,6 +19,10 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
19
19
|
default: number;
|
|
20
20
|
};
|
|
21
21
|
predefine: ArrayConstructor;
|
|
22
|
+
validateEvent: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
22
26
|
}, {
|
|
23
27
|
color: import("./src/color").default;
|
|
24
28
|
colorDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -93,6 +97,24 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
93
97
|
hueValue: import("vue").ComputedRef<any>;
|
|
94
98
|
handleClick: (event: Event) => void;
|
|
95
99
|
update: () => void;
|
|
100
|
+
ns: {
|
|
101
|
+
namespace: import("vue").ComputedRef<string>;
|
|
102
|
+
b: (blockSuffix?: string) => string;
|
|
103
|
+
e: (element?: string | undefined) => string;
|
|
104
|
+
m: (modifier?: string | undefined) => string;
|
|
105
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
106
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
107
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
108
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
109
|
+
is: {
|
|
110
|
+
(name: string, state: boolean | undefined): string;
|
|
111
|
+
(name: string): string;
|
|
112
|
+
};
|
|
113
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
114
|
+
cssVarName: (name: string) => string;
|
|
115
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
116
|
+
cssVarBlockName: (name: string) => string;
|
|
117
|
+
};
|
|
96
118
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
97
119
|
vertical: boolean;
|
|
98
120
|
}> & {
|
|
@@ -129,6 +151,24 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
129
151
|
hueValue: import("vue").ComputedRef<any>;
|
|
130
152
|
handleClick: (event: Event) => void;
|
|
131
153
|
update: () => void;
|
|
154
|
+
ns: {
|
|
155
|
+
namespace: import("vue").ComputedRef<string>;
|
|
156
|
+
b: (blockSuffix?: string) => string;
|
|
157
|
+
e: (element?: string | undefined) => string;
|
|
158
|
+
m: (modifier?: string | undefined) => string;
|
|
159
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
160
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
161
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
162
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
163
|
+
is: {
|
|
164
|
+
(name: string, state: boolean | undefined): string;
|
|
165
|
+
(name: string): string;
|
|
166
|
+
};
|
|
167
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
168
|
+
cssVarName: (name: string) => string;
|
|
169
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
170
|
+
cssVarBlockName: (name: string) => string;
|
|
171
|
+
};
|
|
132
172
|
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
133
173
|
svPanel: import("vue").Ref<({
|
|
134
174
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -167,6 +207,24 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
167
207
|
}>;
|
|
168
208
|
handleDrag: (event: any) => void;
|
|
169
209
|
update: () => void;
|
|
210
|
+
ns: {
|
|
211
|
+
namespace: import("vue").ComputedRef<string>;
|
|
212
|
+
b: (blockSuffix?: string) => string;
|
|
213
|
+
e: (element?: string | undefined) => string;
|
|
214
|
+
m: (modifier?: string | undefined) => string;
|
|
215
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
216
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
217
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
218
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
219
|
+
is: {
|
|
220
|
+
(name: string, state: boolean | undefined): string;
|
|
221
|
+
(name: string): string;
|
|
222
|
+
};
|
|
223
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
224
|
+
cssVarName: (name: string) => string;
|
|
225
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
226
|
+
cssVarBlockName: (name: string) => string;
|
|
227
|
+
};
|
|
170
228
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
171
229
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
172
230
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -202,6 +260,24 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
202
260
|
}>;
|
|
203
261
|
handleDrag: (event: any) => void;
|
|
204
262
|
update: () => void;
|
|
263
|
+
ns: {
|
|
264
|
+
namespace: import("vue").ComputedRef<string>;
|
|
265
|
+
b: (blockSuffix?: string) => string;
|
|
266
|
+
e: (element?: string | undefined) => string;
|
|
267
|
+
m: (modifier?: string | undefined) => string;
|
|
268
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
269
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
270
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
271
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
272
|
+
is: {
|
|
273
|
+
(name: string, state: boolean | undefined): string;
|
|
274
|
+
(name: string): string;
|
|
275
|
+
};
|
|
276
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
277
|
+
cssVarName: (name: string) => string;
|
|
278
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
279
|
+
cssVarBlockName: (name: string) => string;
|
|
280
|
+
};
|
|
205
281
|
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
206
282
|
alpha: import("vue").Ref<({
|
|
207
283
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -248,6 +324,24 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
248
324
|
background: import("vue").Ref<import("element-plus/es/utils").Nullable<string>>;
|
|
249
325
|
handleClick: (event: Event) => void;
|
|
250
326
|
update: () => void;
|
|
327
|
+
ns: {
|
|
328
|
+
namespace: import("vue").ComputedRef<string>;
|
|
329
|
+
b: (blockSuffix?: string) => string;
|
|
330
|
+
e: (element?: string | undefined) => string;
|
|
331
|
+
m: (modifier?: string | undefined) => string;
|
|
332
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
333
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
334
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
335
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
336
|
+
is: {
|
|
337
|
+
(name: string, state: boolean | undefined): string;
|
|
338
|
+
(name: string): string;
|
|
339
|
+
};
|
|
340
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
341
|
+
cssVarName: (name: string) => string;
|
|
342
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
343
|
+
cssVarBlockName: (name: string) => string;
|
|
344
|
+
};
|
|
251
345
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
252
346
|
vertical: boolean;
|
|
253
347
|
}> & {
|
|
@@ -287,6 +381,24 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
287
381
|
background: import("vue").Ref<import("element-plus/es/utils").Nullable<string>>;
|
|
288
382
|
handleClick: (event: Event) => void;
|
|
289
383
|
update: () => void;
|
|
384
|
+
ns: {
|
|
385
|
+
namespace: import("vue").ComputedRef<string>;
|
|
386
|
+
b: (blockSuffix?: string) => string;
|
|
387
|
+
e: (element?: string | undefined) => string;
|
|
388
|
+
m: (modifier?: string | undefined) => string;
|
|
389
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
390
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
391
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
392
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
393
|
+
is: {
|
|
394
|
+
(name: string, state: boolean | undefined): string;
|
|
395
|
+
(name: string): string;
|
|
396
|
+
};
|
|
397
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
398
|
+
cssVarName: (name: string) => string;
|
|
399
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
400
|
+
cssVarBlockName: (name: string) => string;
|
|
401
|
+
};
|
|
290
402
|
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
291
403
|
popper: import("vue").Ref<null>;
|
|
292
404
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "active-change")[], "update:modelValue" | "change" | "active-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -309,6 +421,10 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
309
421
|
default: number;
|
|
310
422
|
};
|
|
311
423
|
predefine: ArrayConstructor;
|
|
424
|
+
validateEvent: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
default: boolean;
|
|
427
|
+
};
|
|
312
428
|
}>> & {
|
|
313
429
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
314
430
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -316,6 +432,7 @@ declare const _ColorPicker: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
316
432
|
}, {
|
|
317
433
|
disabled: boolean;
|
|
318
434
|
label: string;
|
|
435
|
+
validateEvent: boolean;
|
|
319
436
|
tabindex: string | number;
|
|
320
437
|
showAlpha: boolean;
|
|
321
438
|
}>>;
|
|
@@ -340,6 +457,10 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
340
457
|
default: number;
|
|
341
458
|
};
|
|
342
459
|
predefine: ArrayConstructor;
|
|
460
|
+
validateEvent: {
|
|
461
|
+
type: BooleanConstructor;
|
|
462
|
+
default: boolean;
|
|
463
|
+
};
|
|
343
464
|
}, {
|
|
344
465
|
color: import("./src/color").default;
|
|
345
466
|
colorDisabled: import("vue").ComputedRef<boolean>;
|
|
@@ -414,6 +535,24 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
414
535
|
hueValue: import("vue").ComputedRef<any>;
|
|
415
536
|
handleClick: (event: Event) => void;
|
|
416
537
|
update: () => void;
|
|
538
|
+
ns: {
|
|
539
|
+
namespace: import("vue").ComputedRef<string>;
|
|
540
|
+
b: (blockSuffix?: string) => string;
|
|
541
|
+
e: (element?: string | undefined) => string;
|
|
542
|
+
m: (modifier?: string | undefined) => string;
|
|
543
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
544
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
545
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
546
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
547
|
+
is: {
|
|
548
|
+
(name: string, state: boolean | undefined): string;
|
|
549
|
+
(name: string): string;
|
|
550
|
+
};
|
|
551
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
552
|
+
cssVarName: (name: string) => string;
|
|
553
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
554
|
+
cssVarBlockName: (name: string) => string;
|
|
555
|
+
};
|
|
417
556
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
418
557
|
vertical: boolean;
|
|
419
558
|
}> & {
|
|
@@ -450,6 +589,24 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
450
589
|
hueValue: import("vue").ComputedRef<any>;
|
|
451
590
|
handleClick: (event: Event) => void;
|
|
452
591
|
update: () => void;
|
|
592
|
+
ns: {
|
|
593
|
+
namespace: import("vue").ComputedRef<string>;
|
|
594
|
+
b: (blockSuffix?: string) => string;
|
|
595
|
+
e: (element?: string | undefined) => string;
|
|
596
|
+
m: (modifier?: string | undefined) => string;
|
|
597
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
598
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
599
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
600
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
601
|
+
is: {
|
|
602
|
+
(name: string, state: boolean | undefined): string;
|
|
603
|
+
(name: string): string;
|
|
604
|
+
};
|
|
605
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
606
|
+
cssVarName: (name: string) => string;
|
|
607
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
608
|
+
cssVarBlockName: (name: string) => string;
|
|
609
|
+
};
|
|
453
610
|
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
454
611
|
svPanel: import("vue").Ref<({
|
|
455
612
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -488,6 +645,24 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
488
645
|
}>;
|
|
489
646
|
handleDrag: (event: any) => void;
|
|
490
647
|
update: () => void;
|
|
648
|
+
ns: {
|
|
649
|
+
namespace: import("vue").ComputedRef<string>;
|
|
650
|
+
b: (blockSuffix?: string) => string;
|
|
651
|
+
e: (element?: string | undefined) => string;
|
|
652
|
+
m: (modifier?: string | undefined) => string;
|
|
653
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
654
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
655
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
656
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
657
|
+
is: {
|
|
658
|
+
(name: string, state: boolean | undefined): string;
|
|
659
|
+
(name: string): string;
|
|
660
|
+
};
|
|
661
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
662
|
+
cssVarName: (name: string) => string;
|
|
663
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
664
|
+
cssVarBlockName: (name: string) => string;
|
|
665
|
+
};
|
|
491
666
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
492
667
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
493
668
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -523,6 +698,24 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
523
698
|
}>;
|
|
524
699
|
handleDrag: (event: any) => void;
|
|
525
700
|
update: () => void;
|
|
701
|
+
ns: {
|
|
702
|
+
namespace: import("vue").ComputedRef<string>;
|
|
703
|
+
b: (blockSuffix?: string) => string;
|
|
704
|
+
e: (element?: string | undefined) => string;
|
|
705
|
+
m: (modifier?: string | undefined) => string;
|
|
706
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
707
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
708
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
709
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
710
|
+
is: {
|
|
711
|
+
(name: string, state: boolean | undefined): string;
|
|
712
|
+
(name: string): string;
|
|
713
|
+
};
|
|
714
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
715
|
+
cssVarName: (name: string) => string;
|
|
716
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
717
|
+
cssVarBlockName: (name: string) => string;
|
|
718
|
+
};
|
|
526
719
|
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
527
720
|
alpha: import("vue").Ref<({
|
|
528
721
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -569,6 +762,24 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
569
762
|
background: import("vue").Ref<import("element-plus/es/utils").Nullable<string>>;
|
|
570
763
|
handleClick: (event: Event) => void;
|
|
571
764
|
update: () => void;
|
|
765
|
+
ns: {
|
|
766
|
+
namespace: import("vue").ComputedRef<string>;
|
|
767
|
+
b: (blockSuffix?: string) => string;
|
|
768
|
+
e: (element?: string | undefined) => string;
|
|
769
|
+
m: (modifier?: string | undefined) => string;
|
|
770
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
771
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
772
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
773
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
774
|
+
is: {
|
|
775
|
+
(name: string, state: boolean | undefined): string;
|
|
776
|
+
(name: string): string;
|
|
777
|
+
};
|
|
778
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
779
|
+
cssVarName: (name: string) => string;
|
|
780
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
781
|
+
cssVarBlockName: (name: string) => string;
|
|
782
|
+
};
|
|
572
783
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
573
784
|
vertical: boolean;
|
|
574
785
|
}> & {
|
|
@@ -608,6 +819,24 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
608
819
|
background: import("vue").Ref<import("element-plus/es/utils").Nullable<string>>;
|
|
609
820
|
handleClick: (event: Event) => void;
|
|
610
821
|
update: () => void;
|
|
822
|
+
ns: {
|
|
823
|
+
namespace: import("vue").ComputedRef<string>;
|
|
824
|
+
b: (blockSuffix?: string) => string;
|
|
825
|
+
e: (element?: string | undefined) => string;
|
|
826
|
+
m: (modifier?: string | undefined) => string;
|
|
827
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
828
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
829
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
830
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
831
|
+
is: {
|
|
832
|
+
(name: string, state: boolean | undefined): string;
|
|
833
|
+
(name: string): string;
|
|
834
|
+
};
|
|
835
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
836
|
+
cssVarName: (name: string) => string;
|
|
837
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
838
|
+
cssVarBlockName: (name: string) => string;
|
|
839
|
+
};
|
|
611
840
|
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
612
841
|
popper: import("vue").Ref<null>;
|
|
613
842
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "active-change")[], "update:modelValue" | "change" | "active-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -630,6 +859,10 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
630
859
|
default: number;
|
|
631
860
|
};
|
|
632
861
|
predefine: ArrayConstructor;
|
|
862
|
+
validateEvent: {
|
|
863
|
+
type: BooleanConstructor;
|
|
864
|
+
default: boolean;
|
|
865
|
+
};
|
|
633
866
|
}>> & {
|
|
634
867
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
635
868
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -637,6 +870,7 @@ export declare const ElColorPicker: SFCWithInstall<import("vue").DefineComponent
|
|
|
637
870
|
}, {
|
|
638
871
|
disabled: boolean;
|
|
639
872
|
label: string;
|
|
873
|
+
validateEvent: boolean;
|
|
640
874
|
tabindex: string | number;
|
|
641
875
|
showAlpha: boolean;
|
|
642
876
|
}>>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, shallowRef, ref, watch, onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle } from 'vue';
|
|
2
2
|
import '../../../../utils/index.mjs';
|
|
3
|
+
import '../../../../hooks/index.mjs';
|
|
3
4
|
import draggable from '../draggable.mjs';
|
|
4
5
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
|
|
6
|
+
import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
|
|
5
7
|
import { getClientXY } from '../../../../utils/dom/position.mjs';
|
|
6
8
|
|
|
7
9
|
const _sfc_main = defineComponent({
|
|
@@ -17,6 +19,7 @@ const _sfc_main = defineComponent({
|
|
|
17
19
|
}
|
|
18
20
|
},
|
|
19
21
|
setup(props) {
|
|
22
|
+
const ns = useNamespace("color-alpha-slider");
|
|
20
23
|
const instance = getCurrentInstance();
|
|
21
24
|
const thumb = shallowRef(null);
|
|
22
25
|
const bar = shallowRef(null);
|
|
@@ -101,30 +104,31 @@ const _sfc_main = defineComponent({
|
|
|
101
104
|
thumbTop,
|
|
102
105
|
background,
|
|
103
106
|
handleClick,
|
|
104
|
-
update
|
|
107
|
+
update,
|
|
108
|
+
ns
|
|
105
109
|
};
|
|
106
110
|
}
|
|
107
111
|
});
|
|
108
112
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
109
113
|
return openBlock(), createElementBlock("div", {
|
|
110
|
-
class: normalizeClass([
|
|
114
|
+
class: normalizeClass([_ctx.ns.b(), _ctx.ns.is("vertical", _ctx.vertical)])
|
|
111
115
|
}, [
|
|
112
116
|
createElementVNode("div", {
|
|
113
117
|
ref: "bar",
|
|
114
|
-
class: "
|
|
118
|
+
class: normalizeClass(_ctx.ns.e("bar")),
|
|
115
119
|
style: normalizeStyle({
|
|
116
120
|
background: _ctx.background
|
|
117
121
|
}),
|
|
118
122
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
119
|
-
}, null,
|
|
123
|
+
}, null, 6),
|
|
120
124
|
createElementVNode("div", {
|
|
121
125
|
ref: "thumb",
|
|
122
|
-
class: "
|
|
126
|
+
class: normalizeClass(_ctx.ns.e("thumb")),
|
|
123
127
|
style: normalizeStyle({
|
|
124
128
|
left: _ctx.thumbLeft + "px",
|
|
125
129
|
top: _ctx.thumbTop + "px"
|
|
126
130
|
})
|
|
127
|
-
}, null,
|
|
131
|
+
}, null, 6)
|
|
128
132
|
], 2);
|
|
129
133
|
}
|
|
130
134
|
var AlphaSlider = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);
|