@element-plus/nightly 0.0.20260602 → 0.0.20260604
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.full.js +5 -4
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5 -4
- 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-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.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/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.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/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.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 +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- 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/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.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/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.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/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.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/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.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/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.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-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.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/component.mjs +3 -3
- package/es/components/affix/src/affix.vue.d.ts +2 -2
- package/es/components/alert/src/alert.d.ts +2 -2
- package/es/components/anchor/src/anchor.vue.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/es/components/avatar/src/avatar-group.d.ts +3 -3
- package/es/components/avatar/src/avatar.d.ts +2 -2
- package/es/components/backtop/src/backtop.vue.d.ts +2 -2
- package/es/components/button/src/button-group.d.ts +2 -2
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +2 -2
- package/es/components/button/src/button.vue.d.ts +6 -6
- package/es/components/button/src/use-button.d.ts +2 -2
- package/es/components/carousel/src/carousel.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +4 -4
- package/es/components/cascader/src/cascader.vue.d.ts +18 -18
- package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/cascader-panel/src/index.vue.d.ts +6 -6
- package/es/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/cascader-panel/src/menu.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +6 -6
- package/es/components/checkbox/src/checkbox.d.ts +9 -9
- package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
- package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/es/components/col/src/col.vue.d.ts +2 -2
- package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse.d.ts +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +2 -2
- package/es/components/color-picker/src/color-picker.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +9 -9
- package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +2 -2
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/countdown/src/countdown.vue.d.ts +3 -3
- package/es/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +13 -13
- package/es/components/date-picker/src/props.d.ts +3 -3
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +6 -6
- package/es/components/date-picker-panel/src/panel-utils.d.ts +21 -21
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +18 -18
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +6 -6
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/divider/src/divider.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +7 -7
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +4 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +100 -100
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/es/components/form/src/form-item.d.ts +3 -3
- package/es/components/form/src/form-item.vue.d.ts +2 -2
- package/es/components/form/src/form.d.ts +4 -4
- package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/image/src/image.d.ts +1 -1
- package/es/components/image/src/image.vue.d.ts +6 -6
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +3 -3
- package/es/components/index.mjs +6 -6
- package/es/components/input/src/input.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +16 -16
- package/es/components/input-number/src/input-number.d.ts +3 -3
- package/es/components/input-number/src/input-number.vue.d.ts +9 -9
- package/es/components/input-otp/src/input-otp.vue.d.ts +9 -9
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +2 -2
- package/es/components/input-tag/src/input-tag.vue.d.ts +14 -14
- package/es/components/link/src/link.vue.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +1 -1
- package/es/components/mention/src/mention.vue.d.ts +3 -3
- package/es/components/menu/src/menu.d.ts +3 -3
- package/es/components/menu/src/utils/menu-item.mjs +1 -1
- package/es/components/menu/src/utils/submenu.mjs +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/src/index.vue.d.ts +68 -68
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +4 -4
- package/es/components/pagination/src/components/jumper.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/es/components/pagination/src/components/next.vue.d.ts +1 -1
- package/es/components/pagination/src/components/pager.vue.d.ts +1 -1
- package/es/components/pagination/src/components/prev.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +2 -2
- package/es/components/pagination/src/pagination.d.ts +5 -5
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +4 -4
- package/es/components/popover/src/popover.d.ts +2 -2
- package/es/components/popover/src/popover.vue.d.ts +10 -10
- package/es/components/popper/src/composables/use-content.d.ts +2 -2
- package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
- package/es/components/popper/src/content.vue.d.ts +15 -15
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/progress/src/progress.d.ts +1 -1
- package/es/components/progress/src/progress.vue.d.ts +2 -2
- package/es/components/radio/src/radio-button.d.ts +4 -4
- package/es/components/radio/src/radio-button.vue.d.ts +1 -1
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +7 -7
- package/es/components/radio/src/radio.d.ts +8 -8
- package/es/components/radio/src/radio.vue.d.ts +4 -4
- package/es/components/radio/src/use-radio.d.ts +1 -1
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.vue.d.ts +2 -2
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/row/src/row.d.ts +2 -2
- package/es/components/row/src/row.vue.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/es/components/segmented/index.d.ts +4 -4
- package/es/components/segmented/src/segmented.d.ts +2 -2
- package/es/components/segmented/src/segmented.vue.d.ts +2 -2
- package/es/components/select/src/option.d.ts +2 -2
- package/es/components/select/src/option.vue.d.ts +5 -5
- package/es/components/select/src/select.d.ts +5 -5
- package/es/components/select/src/select.vue.d.ts +111 -111
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +1 -1
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select/src/useOption.d.ts +2 -2
- package/es/components/select/src/useSelect.d.ts +6 -6
- package/es/components/select-v2/src/defaults.d.ts +3 -3
- package/es/components/select-v2/src/select.mjs +1 -1
- package/es/components/select-v2/src/select.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +90 -90
- package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.d.ts +2 -2
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/slider/src/slider.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +11 -11
- package/es/components/space/src/space.d.ts +4 -4
- package/es/components/statistic/src/statistic.vue.d.ts +1 -1
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +4 -4
- package/es/components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs +1 -0
- package/es/components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/switch/src/switch2.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +91 -91
- package/es/components/table/src/store/helper.d.ts +1 -1
- package/es/components/table/src/store/index.d.ts +2 -2
- package/es/components/table/src/table/defaults.d.ts +6 -6
- package/es/components/table/src/table/style-helper.d.ts +1 -1
- package/es/components/table/src/table-body/index.d.ts +1 -1
- package/es/components/table/src/table-body/td-wrapper.vue.d.ts +1 -1
- package/es/components/table/src/table-column/defaults.d.ts +2 -2
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +16 -16
- package/es/components/table/src/table.vue.d.ts +6 -6
- package/es/components/table-v2/src/components/header.d.ts +1 -1
- package/es/components/table-v2/src/components/row.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +2 -2
- package/es/components/table-v2/src/table-v2.d.ts +4 -4
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +6 -6
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/tag/src/tag.vue.d.ts +2 -2
- package/es/components/text/src/text.d.ts +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +4 -4
- package/es/components/time-picker/src/common/picker.vue.d.ts +21 -21
- package/es/components/time-picker/src/common/props.d.ts +3 -3
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +3 -3
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +3 -3
- package/es/components/time-picker/src/time-picker.d.ts +13 -13
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +10 -10
- package/es/components/timeline/src/timeline-item.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +15 -15
- package/es/components/tooltip/src/tooltip.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/es/components/tooltip/src/trigger.d.ts +1 -1
- package/es/components/tour/src/content.d.ts +1 -1
- package/es/components/tour/src/mask.vue.d.ts +1 -1
- package/es/components/tour/src/step.d.ts +1 -1
- package/es/components/tour/src/step.vue.d.ts +1 -1
- package/es/components/tour/src/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +7 -7
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree-node.vue.d.ts +17 -17
- package/es/components/tree/src/tree.vue.d.ts +27 -27
- package/es/components/tree-select/src/tree-select-option.d.ts +5 -5
- package/es/components/tree-select/src/tree-select.vue.d.ts +43 -43
- package/es/components/tree-v2/src/composables/useTree.d.ts +2 -2
- package/es/components/tree-v2/src/tree-node.vue.d.ts +3 -3
- package/es/components/tree-v2/src/tree.vue.d.ts +10 -10
- package/es/components/upload/src/upload-content.vue.d.ts +2 -2
- package/es/components/upload/src/upload.vue.d.ts +2 -2
- package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/es/components/watermark/src/watermark.vue.d.ts +1 -1
- package/es/constants/index.mjs +2 -2
- package/es/directives/trap-focus/index.mjs +1 -1
- package/es/hooks/use-floating/index.d.ts +12 -12
- package/es/hooks/use-popper/index.d.ts +2 -2
- package/es/hooks/use-size/index.d.ts +3 -3
- package/es/index.mjs +9 -9
- package/es/plugin.mjs +1 -1
- package/es/utils/vue/size.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/component.js +109 -109
- package/lib/components/affix/src/affix.vue.d.ts +2 -2
- package/lib/components/alert/src/alert.d.ts +2 -2
- package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/lib/components/avatar/src/avatar-group.d.ts +3 -3
- package/lib/components/avatar/src/avatar.d.ts +2 -2
- package/lib/components/backtop/src/backtop.vue.d.ts +2 -2
- package/lib/components/button/src/button-group.d.ts +2 -2
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +2 -2
- package/lib/components/button/src/button.vue.d.ts +6 -6
- package/lib/components/button/src/use-button.d.ts +2 -2
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +4 -4
- package/lib/components/cascader/src/cascader.vue.d.ts +18 -18
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +14 -14
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue.d.ts +6 -6
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js +12 -12
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/menu.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +6 -6
- package/lib/components/checkbox/src/checkbox.d.ts +9 -9
- package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
- package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/lib/components/col/src/col.vue.d.ts +2 -2
- package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse.d.ts +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
- package/lib/components/color-picker/src/color-picker.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +9 -9
- package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +2 -2
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/countdown/src/countdown.vue.d.ts +3 -3
- package/lib/components/countdown/src/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +13 -13
- package/lib/components/date-picker/src/props.d.ts +3 -3
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +6 -6
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +21 -21
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +18 -18
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +6 -6
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +7 -7
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +100 -100
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/lib/components/form/src/form-item.d.ts +3 -3
- package/lib/components/form/src/form-item.vue.d.ts +2 -2
- package/lib/components/form/src/form.d.ts +4 -4
- package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/image/src/image.d.ts +1 -1
- package/lib/components/image/src/image.vue.d.ts +6 -6
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +3 -3
- package/lib/components/index.js +125 -125
- package/lib/components/input/src/input.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +16 -16
- package/lib/components/input-number/src/input-number.d.ts +3 -3
- package/lib/components/input-number/src/input-number.vue.d.ts +9 -9
- package/lib/components/input-otp/src/input-otp.vue.d.ts +9 -9
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +2 -2
- package/lib/components/input-tag/src/input-tag.vue.d.ts +14 -14
- package/lib/components/link/src/link.vue.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +1 -1
- package/lib/components/mention/src/mention.vue.d.ts +3 -3
- package/lib/components/menu/src/menu.d.ts +3 -3
- package/lib/components/menu/src/utils/menu-item.js +11 -11
- package/lib/components/menu/src/utils/menu-item.js.map +1 -1
- package/lib/components/menu/src/utils/submenu.js +9 -9
- package/lib/components/menu/src/utils/submenu.js.map +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/src/index.vue.d.ts +68 -68
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +4 -4
- package/lib/components/pagination/src/components/jumper.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/lib/components/pagination/src/components/next.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/pager.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/prev.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +2 -2
- package/lib/components/pagination/src/pagination.d.ts +5 -5
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +4 -4
- package/lib/components/popover/src/popover.d.ts +2 -2
- package/lib/components/popover/src/popover.vue.d.ts +10 -10
- package/lib/components/popper/src/composables/use-content.d.ts +2 -2
- package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
- package/lib/components/popper/src/content.vue.d.ts +15 -15
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/progress/src/progress.d.ts +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-button.d.ts +4 -4
- package/lib/components/radio/src/radio-button.vue.d.ts +1 -1
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +7 -7
- package/lib/components/radio/src/radio.d.ts +8 -8
- package/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/lib/components/radio/src/use-radio.d.ts +1 -1
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +2 -2
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +2 -2
- package/lib/components/row/src/row.vue.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/lib/components/segmented/index.d.ts +4 -4
- package/lib/components/segmented/src/segmented.d.ts +2 -2
- package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
- package/lib/components/select/src/option.d.ts +2 -2
- package/lib/components/select/src/option.vue.d.ts +5 -5
- package/lib/components/select/src/select.d.ts +5 -5
- package/lib/components/select/src/select.vue.d.ts +111 -111
- package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/select2.js +1 -1
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select/src/useOption.d.ts +2 -2
- package/lib/components/select/src/useSelect.d.ts +6 -6
- package/lib/components/select-v2/src/defaults.d.ts +3 -3
- package/lib/components/select-v2/src/select.js +1 -1
- package/lib/components/select-v2/src/select.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +90 -90
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.d.ts +2 -2
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/slider/src/slider.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +11 -11
- package/lib/components/space/src/space.d.ts +4 -4
- package/lib/components/statistic/src/statistic.vue.d.ts +1 -1
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +4 -4
- package/lib/components/switch/src/switch.vue_vue_type_script_setup_true_lang.js +1 -0
- package/lib/components/switch/src/switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/switch/src/switch2.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +91 -91
- package/lib/components/table/src/store/helper.d.ts +1 -1
- package/lib/components/table/src/store/index.d.ts +2 -2
- package/lib/components/table/src/table/defaults.d.ts +6 -6
- package/lib/components/table/src/table/style-helper.d.ts +1 -1
- package/lib/components/table/src/table-body/index.d.ts +1 -1
- package/lib/components/table/src/table-body/td-wrapper.vue.d.ts +1 -1
- package/lib/components/table/src/table-column/defaults.d.ts +2 -2
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +16 -16
- package/lib/components/table/src/table.vue.d.ts +6 -6
- package/lib/components/table-v2/src/components/header.d.ts +1 -1
- package/lib/components/table-v2/src/components/row.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +2 -2
- package/lib/components/table-v2/src/table-v2.d.ts +4 -4
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +6 -6
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/tag/src/tag.vue.d.ts +2 -2
- package/lib/components/text/src/text.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +4 -4
- package/lib/components/time-picker/src/common/picker.vue.d.ts +21 -21
- package/lib/components/time-picker/src/common/props.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker.d.ts +13 -13
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +10 -10
- package/lib/components/timeline/src/timeline-item.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +15 -15
- package/lib/components/tooltip/src/tooltip.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/lib/components/tooltip/src/trigger.d.ts +1 -1
- package/lib/components/tour/src/content.d.ts +1 -1
- package/lib/components/tour/src/mask.vue.d.ts +1 -1
- package/lib/components/tour/src/step.d.ts +1 -1
- package/lib/components/tour/src/step.vue.d.ts +1 -1
- package/lib/components/tour/src/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +7 -7
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree-node.vue.d.ts +17 -17
- package/lib/components/tree/src/tree.vue.d.ts +27 -27
- package/lib/components/tree-select/src/tree-select-option.d.ts +5 -5
- package/lib/components/tree-select/src/tree-select.vue.d.ts +43 -43
- package/lib/components/tree-v2/src/composables/useTree.d.ts +2 -2
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +3 -3
- package/lib/components/tree-v2/src/tree.vue.d.ts +10 -10
- package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.d.ts +2 -2
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/lib/components/watermark/src/watermark.vue.d.ts +1 -1
- package/lib/constants/index.js +2 -2
- package/lib/directives/trap-focus/index.js +5 -5
- package/lib/directives/trap-focus/index.js.map +1 -1
- package/lib/hooks/use-floating/index.d.ts +12 -12
- package/lib/hooks/use-popper/index.d.ts +2 -2
- package/lib/hooks/use-size/index.d.ts +3 -3
- package/lib/index.js +128 -128
- package/lib/plugin.js +12 -12
- package/lib/plugin.js.map +1 -1
- package/lib/utils/vue/size.d.ts +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/theme-chalk/el-input-otp.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/input-otp.scss +30 -12
- package/web-types.json +1 -1
|
@@ -23,7 +23,7 @@ declare const spaceProps: {
|
|
|
23
23
|
readonly fill: BooleanConstructor;
|
|
24
24
|
readonly fillRatio: EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
25
25
|
readonly size: {
|
|
26
|
-
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "default" | "
|
|
26
|
+
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "default" | "large" | "small", number | [number, number]>>;
|
|
27
27
|
readonly required: false;
|
|
28
28
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
29
|
__epPropKey: true;
|
|
@@ -49,7 +49,7 @@ declare const Space: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
readonly fill: BooleanConstructor;
|
|
50
50
|
readonly fillRatio: EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
51
51
|
readonly size: {
|
|
52
|
-
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "default" | "
|
|
52
|
+
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "default" | "large" | "small", number | [number, number]>>;
|
|
53
53
|
readonly required: false;
|
|
54
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
55
|
__epPropKey: true;
|
|
@@ -77,17 +77,17 @@ declare const Space: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
77
77
|
readonly fill: BooleanConstructor;
|
|
78
78
|
readonly fillRatio: EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
79
79
|
readonly size: {
|
|
80
|
-
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "default" | "
|
|
80
|
+
readonly type: _$vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "default" | "large" | "small", number | [number, number]>>;
|
|
81
81
|
readonly required: false;
|
|
82
82
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
83
83
|
__epPropKey: true;
|
|
84
84
|
};
|
|
85
85
|
}>> & Readonly<{}>, {
|
|
86
86
|
readonly fill: boolean;
|
|
87
|
+
readonly class: EpPropMergeType<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown>;
|
|
87
88
|
readonly style: StyleValue;
|
|
88
89
|
readonly direction: EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
89
90
|
readonly wrap: boolean;
|
|
90
|
-
readonly class: EpPropMergeType<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown>;
|
|
91
91
|
readonly alignment: EpPropMergeType<(new (...args: any[]) => string) | (() => _$csstype.Property.AlignItems | undefined) | (((new (...args: any[]) => string) | (() => _$csstype.Property.AlignItems | undefined)) | null)[], unknown, unknown>;
|
|
92
92
|
readonly spacer: EpPropMergeType<(new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild) | (((new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild)) | null)[], unknown, string | number | VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
93
93
|
[key: string]: any;
|
|
@@ -19,9 +19,9 @@ declare const __VLS_base: _$vue.DefineComponent<StatisticProps, {
|
|
|
19
19
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<StatisticProps> & Readonly<{}>, {
|
|
20
20
|
value: number | _$dayjs.Dayjs;
|
|
21
21
|
precision: number;
|
|
22
|
-
valueStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
23
22
|
decimalSeparator: string;
|
|
24
23
|
groupSeparator: string;
|
|
24
|
+
valueStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
25
25
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,7 +37,7 @@ declare const stepProps: {
|
|
|
37
37
|
__epPropKey: true;
|
|
38
38
|
};
|
|
39
39
|
readonly description: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
40
|
-
readonly status: EpPropFinalized<StringConstructor, "" | "
|
|
40
|
+
readonly status: EpPropFinalized<StringConstructor, "" | "wait" | "error" | "success" | "finish" | "process", unknown, "", boolean>;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* @deprecated Removed after 3.0.0, Use `StepProps` instead.
|
|
@@ -28,9 +28,9 @@ type __VLS_Slots = {} & {
|
|
|
28
28
|
description?: (props: typeof __VLS_38) => any;
|
|
29
29
|
};
|
|
30
30
|
declare const __VLS_base: _$vue.DefineComponent<StepProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
31
|
+
icon: IconPropType;
|
|
31
32
|
title: string;
|
|
32
33
|
description: string;
|
|
33
|
-
icon: IconPropType;
|
|
34
34
|
status: "" | "wait" | "process" | "finish" | "error" | "success";
|
|
35
35
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -59,8 +59,8 @@ declare const stepsProps: {
|
|
|
59
59
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
60
|
__epPropKey: true;
|
|
61
61
|
};
|
|
62
|
-
readonly finishStatus: EpPropFinalized<StringConstructor, "
|
|
63
|
-
readonly processStatus: EpPropFinalized<StringConstructor, "
|
|
62
|
+
readonly finishStatus: EpPropFinalized<StringConstructor, "wait" | "error" | "success" | "finish" | "process", unknown, "finish", boolean>;
|
|
63
|
+
readonly processStatus: EpPropFinalized<StringConstructor, "wait" | "error" | "success" | "finish" | "process", unknown, "process", boolean>;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* @deprecated Removed after 3.0.0, Use `StepsProps` instead.
|
|
@@ -97,7 +97,7 @@ declare const switchProps: {
|
|
|
97
97
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
98
98
|
readonly loading: BooleanConstructor;
|
|
99
99
|
readonly size: {
|
|
100
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "
|
|
100
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "large" | "small") | (() => "" | "default" | "large" | "small") | (((new (...args: any[]) => "" | "default" | "large" | "small") | (() => "" | "default" | "large" | "small")) | null)[], unknown, "" | "default" | "large" | "small">>;
|
|
101
101
|
readonly required: false;
|
|
102
102
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
103
|
__epPropKey: true;
|
|
@@ -26,19 +26,19 @@ declare const __VLS_base: _$vue.DefineComponent<SwitchProps, {
|
|
|
26
26
|
*/
|
|
27
27
|
checked: _$vue.ComputedRef<boolean>;
|
|
28
28
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
29
|
+
change: (val: string | number | boolean) => void;
|
|
29
30
|
"update:modelValue": (val: string | number | boolean) => void;
|
|
30
31
|
input: (val: string | number | boolean) => void;
|
|
31
|
-
change: (val: string | number | boolean) => void;
|
|
32
32
|
}, string, _$vue.PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
33
|
+
onChange?: ((val: string | number | boolean) => any) | undefined;
|
|
33
34
|
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
34
35
|
onInput?: ((val: string | number | boolean) => any) | undefined;
|
|
35
|
-
onChange?: ((val: string | number | boolean) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
modelValue: boolean | string | number;
|
|
38
|
+
validateEvent: boolean;
|
|
39
|
+
disabled: boolean;
|
|
38
40
|
width: string | number;
|
|
39
41
|
name: string;
|
|
40
|
-
disabled: boolean;
|
|
41
|
-
validateEvent: boolean;
|
|
42
42
|
activeText: string;
|
|
43
43
|
inactiveText: string;
|
|
44
44
|
activeValue: boolean | string | number;
|
|
@@ -69,6 +69,7 @@ var switch_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
69
69
|
});
|
|
70
70
|
const checked = computed(() => actualValue.value === props.activeValue);
|
|
71
71
|
if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
|
|
72
|
+
debugWarn(COMPONENT_NAME, "model-value must be active-value or inactive-value");
|
|
72
73
|
emit(UPDATE_MODEL_EVENT, props.inactiveValue);
|
|
73
74
|
emit(CHANGE_EVENT, props.inactiveValue);
|
|
74
75
|
emit(INPUT_EVENT, props.inactiveValue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../../../../packages/components/switch/src/switch.vue"],"sourcesContent":["<template>\n <div :class=\"switchKls\" @click.prevent=\"switchValue\">\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"ns.e('input')\"\n type=\"checkbox\"\n role=\"switch\"\n :aria-checked=\"checked\"\n :aria-disabled=\"switchDisabled\"\n :aria-label=\"ariaLabel\"\n :name=\"name\"\n :true-value=\"activeValue\"\n :false-value=\"inactiveValue\"\n :disabled=\"switchDisabled\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @keydown.enter=\"switchValue\"\n />\n <span\n v-if=\"!inlinePrompt && (inactiveIcon || inactiveText || $slots.inactive)\"\n :class=\"labelLeftKls\"\n >\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\" :aria-hidden=\"checked\">{{\n inactiveText\n }}</span>\n </slot>\n </span>\n <span :class=\"ns.e('core')\" :style=\"coreStyle\">\n <div v-if=\"inlinePrompt\" :class=\"ns.e('inner')\">\n <div v-if=\"!checked\" :class=\"ns.e('inner-wrapper')\">\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\">{{ inactiveText }}</span>\n </slot>\n </div>\n <div v-else :class=\"ns.e('inner-wrapper')\">\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\">{{ activeText }}</span>\n </slot>\n </div>\n </div>\n <div :class=\"ns.e('action')\">\n <el-icon v-if=\"loading\" :class=\"ns.is('loading')\">\n <loading />\n </el-icon>\n <slot v-else-if=\"checked\" name=\"active-action\">\n <el-icon v-if=\"activeActionIcon\">\n <component :is=\"activeActionIcon\" />\n </el-icon>\n </slot>\n <slot v-else-if=\"!checked\" name=\"inactive-action\">\n <el-icon v-if=\"inactiveActionIcon\">\n <component :is=\"inactiveActionIcon\" />\n </el-icon>\n </slot>\n </div>\n </span>\n <span\n v-if=\"!inlinePrompt && (activeIcon || activeText || $slots.active)\"\n :class=\"labelRightKls\"\n >\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\" :aria-hidden=\"!checked\">{{\n activeText\n }}</span>\n </slot>\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, onMounted, ref, shallowRef, watch } from 'vue'\nimport {\n NOOP,\n addUnit,\n debugWarn,\n isBoolean,\n isPromise,\n throwError,\n} from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { Loading } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useNamespace } from '@element-plus/hooks'\nimport { switchEmits } from './switch'\n\nimport type { CSSProperties } from 'vue'\nimport type { SwitchProps } from './switch'\n\nconst COMPONENT_NAME = 'ElSwitch'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = withDefaults(defineProps<SwitchProps>(), {\n modelValue: false,\n disabled: undefined,\n activeText: '',\n inactiveText: '',\n activeValue: true,\n inactiveValue: false,\n name: '',\n validateEvent: true,\n width: '',\n})\nconst emit = defineEmits(switchEmits)\n\nconst { formItem } = useFormItem()\nconst switchSize = useFormSize()\nconst ns = useNamespace('switch')\n\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst switchDisabled = useFormDisabled(\n computed(() => {\n if (props.loading) {\n return true\n }\n return undefined\n })\n)\nconst isControlled = ref(props.modelValue !== false)\nconst input = shallowRef<HTMLInputElement>()\n\nconst switchKls = computed(() => [\n ns.b(),\n ns.m(switchSize.value),\n ns.is('disabled', switchDisabled.value),\n ns.is('checked', checked.value),\n])\n\nconst labelLeftKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'left'),\n ns.is('active', !checked.value),\n])\n\nconst labelRightKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'right'),\n ns.is('active', checked.value),\n])\n\nconst coreStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.width),\n}))\n\nwatch(\n () => props.modelValue,\n () => {\n isControlled.value = true\n }\n)\n\nconst actualValue = computed(() => {\n return isControlled.value ? props.modelValue : false\n})\n\nconst checked = computed(() => actualValue.value === props.activeValue)\n\nif (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {\n emit(UPDATE_MODEL_EVENT, props.inactiveValue)\n emit(CHANGE_EVENT, props.inactiveValue)\n emit(INPUT_EVENT, props.inactiveValue)\n}\n\nwatch(checked, (val) => {\n input.value!.checked = val\n\n if (props.validateEvent) {\n formItem?.validate?.('change').catch(NOOP)\n }\n})\n\nconst handleChange = () => {\n const val = checked.value ? props.inactiveValue : props.activeValue\n emit(UPDATE_MODEL_EVENT, val)\n emit(CHANGE_EVENT, val)\n emit(INPUT_EVENT, val)\n nextTick(() => {\n input.value!.checked = checked.value\n })\n}\n\nconst switchValue = () => {\n if (switchDisabled.value) return\n\n const { beforeChange } = props\n if (!beforeChange) {\n handleChange()\n return\n }\n\n const shouldChange = beforeChange()\n\n const isPromiseOrBool = [\n isPromise(shouldChange),\n isBoolean(shouldChange),\n ].includes(true)\n if (!isPromiseOrBool) {\n throwError(\n COMPONENT_NAME,\n 'beforeChange must return type `Promise<boolean>` or `boolean`'\n )\n }\n\n if (isPromise(shouldChange)) {\n shouldChange\n .then((result) => {\n if (result) {\n handleChange()\n }\n })\n .catch((e) => {\n debugWarn(COMPONENT_NAME, `some error occurred: ${e}`)\n })\n } else if (shouldChange) {\n handleChange()\n }\n}\n\nconst focus = (): void => {\n input.value?.focus?.()\n}\n\nonMounted(() => {\n input.value!.checked = checked.value\n})\n\ndefineExpose({\n /**\n * @description manual focus to the switch component\n **/\n focus,\n /**\n * @description whether Switch is checked\n */\n checked,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHA,MAAM,iBAAiB;;;;;;;EAKvB,MAAM,QAAQ;EAWd,MAAM,OAAO;EAEb,MAAM,EAAE,aAAa,aAAY;EACjC,MAAM,aAAa,aAAY;EAC/B,MAAM,KAAK,aAAa,SAAQ;EAEhC,MAAM,EAAE,YAAY,mBAAmB,OAAO,EAC5C,iBAAiB,UAClB,CAAA;EAED,MAAM,iBAAiB,gBACrB,eAAe;GACb,IAAI,MAAM,SACR,OAAO;IAGV,CACH;EACA,MAAM,eAAe,IAAI,MAAM,eAAe,MAAK;EACnD,MAAM,QAAQ,YAA6B;EAE3C,MAAM,YAAY,eAAe;GAC/B,GAAG,GAAG;GACN,GAAG,EAAE,WAAW,MAAM;GACtB,GAAG,GAAG,YAAY,eAAe,MAAM;GACvC,GAAG,GAAG,WAAW,Q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true_lang.mjs","names":["$slots"],"sources":["../../../../../../packages/components/switch/src/switch.vue"],"sourcesContent":["<template>\n <div :class=\"switchKls\" @click.prevent=\"switchValue\">\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"ns.e('input')\"\n type=\"checkbox\"\n role=\"switch\"\n :aria-checked=\"checked\"\n :aria-disabled=\"switchDisabled\"\n :aria-label=\"ariaLabel\"\n :name=\"name\"\n :true-value=\"activeValue\"\n :false-value=\"inactiveValue\"\n :disabled=\"switchDisabled\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @keydown.enter=\"switchValue\"\n />\n <span\n v-if=\"!inlinePrompt && (inactiveIcon || inactiveText || $slots.inactive)\"\n :class=\"labelLeftKls\"\n >\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\" :aria-hidden=\"checked\">{{\n inactiveText\n }}</span>\n </slot>\n </span>\n <span :class=\"ns.e('core')\" :style=\"coreStyle\">\n <div v-if=\"inlinePrompt\" :class=\"ns.e('inner')\">\n <div v-if=\"!checked\" :class=\"ns.e('inner-wrapper')\">\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\">{{ inactiveText }}</span>\n </slot>\n </div>\n <div v-else :class=\"ns.e('inner-wrapper')\">\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\">{{ activeText }}</span>\n </slot>\n </div>\n </div>\n <div :class=\"ns.e('action')\">\n <el-icon v-if=\"loading\" :class=\"ns.is('loading')\">\n <loading />\n </el-icon>\n <slot v-else-if=\"checked\" name=\"active-action\">\n <el-icon v-if=\"activeActionIcon\">\n <component :is=\"activeActionIcon\" />\n </el-icon>\n </slot>\n <slot v-else-if=\"!checked\" name=\"inactive-action\">\n <el-icon v-if=\"inactiveActionIcon\">\n <component :is=\"inactiveActionIcon\" />\n </el-icon>\n </slot>\n </div>\n </span>\n <span\n v-if=\"!inlinePrompt && (activeIcon || activeText || $slots.active)\"\n :class=\"labelRightKls\"\n >\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\" :aria-hidden=\"!checked\">{{\n activeText\n }}</span>\n </slot>\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, onMounted, ref, shallowRef, watch } from 'vue'\nimport {\n NOOP,\n addUnit,\n debugWarn,\n isBoolean,\n isPromise,\n throwError,\n} from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { Loading } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useNamespace } from '@element-plus/hooks'\nimport { switchEmits } from './switch'\n\nimport type { CSSProperties } from 'vue'\nimport type { SwitchProps } from './switch'\n\nconst COMPONENT_NAME = 'ElSwitch'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = withDefaults(defineProps<SwitchProps>(), {\n modelValue: false,\n disabled: undefined,\n activeText: '',\n inactiveText: '',\n activeValue: true,\n inactiveValue: false,\n name: '',\n validateEvent: true,\n width: '',\n})\nconst emit = defineEmits(switchEmits)\n\nconst { formItem } = useFormItem()\nconst switchSize = useFormSize()\nconst ns = useNamespace('switch')\n\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst switchDisabled = useFormDisabled(\n computed(() => {\n if (props.loading) {\n return true\n }\n return undefined\n })\n)\nconst isControlled = ref(props.modelValue !== false)\nconst input = shallowRef<HTMLInputElement>()\n\nconst switchKls = computed(() => [\n ns.b(),\n ns.m(switchSize.value),\n ns.is('disabled', switchDisabled.value),\n ns.is('checked', checked.value),\n])\n\nconst labelLeftKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'left'),\n ns.is('active', !checked.value),\n])\n\nconst labelRightKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'right'),\n ns.is('active', checked.value),\n])\n\nconst coreStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.width),\n}))\n\nwatch(\n () => props.modelValue,\n () => {\n isControlled.value = true\n }\n)\n\nconst actualValue = computed(() => {\n return isControlled.value ? props.modelValue : false\n})\n\nconst checked = computed(() => actualValue.value === props.activeValue)\n\nif (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {\n debugWarn(\n COMPONENT_NAME,\n 'model-value must be active-value or inactive-value'\n )\n emit(UPDATE_MODEL_EVENT, props.inactiveValue)\n emit(CHANGE_EVENT, props.inactiveValue)\n emit(INPUT_EVENT, props.inactiveValue)\n}\n\nwatch(checked, (val) => {\n input.value!.checked = val\n\n if (props.validateEvent) {\n formItem?.validate?.('change').catch(NOOP)\n }\n})\n\nconst handleChange = () => {\n const val = checked.value ? props.inactiveValue : props.activeValue\n emit(UPDATE_MODEL_EVENT, val)\n emit(CHANGE_EVENT, val)\n emit(INPUT_EVENT, val)\n nextTick(() => {\n input.value!.checked = checked.value\n })\n}\n\nconst switchValue = () => {\n if (switchDisabled.value) return\n\n const { beforeChange } = props\n if (!beforeChange) {\n handleChange()\n return\n }\n\n const shouldChange = beforeChange()\n\n const isPromiseOrBool = [\n isPromise(shouldChange),\n isBoolean(shouldChange),\n ].includes(true)\n if (!isPromiseOrBool) {\n throwError(\n COMPONENT_NAME,\n 'beforeChange must return type `Promise<boolean>` or `boolean`'\n )\n }\n\n if (isPromise(shouldChange)) {\n shouldChange\n .then((result) => {\n if (result) {\n handleChange()\n }\n })\n .catch((e) => {\n debugWarn(COMPONENT_NAME, `some error occurred: ${e}`)\n })\n } else if (shouldChange) {\n handleChange()\n }\n}\n\nconst focus = (): void => {\n input.value?.focus?.()\n}\n\nonMounted(() => {\n input.value!.checked = checked.value\n})\n\ndefineExpose({\n /**\n * @description manual focus to the switch component\n **/\n focus,\n /**\n * @description whether Switch is checked\n */\n checked,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgHA,MAAM,iBAAiB;;;;;;;EAKvB,MAAM,QAAQ;EAWd,MAAM,OAAO;EAEb,MAAM,EAAE,aAAa,aAAY;EACjC,MAAM,aAAa,aAAY;EAC/B,MAAM,KAAK,aAAa,SAAQ;EAEhC,MAAM,EAAE,YAAY,mBAAmB,OAAO,EAC5C,iBAAiB,UAClB,CAAA;EAED,MAAM,iBAAiB,gBACrB,eAAe;GACb,IAAI,MAAM,SACR,OAAO;IAGV,CACH;EACA,MAAM,eAAe,IAAI,MAAM,eAAe,MAAK;EACnD,MAAM,QAAQ,YAA6B;EAE3C,MAAM,YAAY,eAAe;GAC/B,GAAG,GAAG;GACN,GAAG,EAAE,WAAW,MAAM;GACtB,GAAG,GAAG,YAAY,eAAe,MAAM;GACvC,GAAG,GAAG,WAAW,QAAQ,MAAM;GAChC,CAAA;EAED,MAAM,eAAe,eAAe;GAClC,GAAG,EAAE,QAAQ;GACb,GAAG,GAAG,SAAS,OAAO;GACtB,GAAG,GAAG,UAAU,CAAC,QAAQ,MAAM;GAChC,CAAA;EAED,MAAM,gBAAgB,eAAe;GACnC,GAAG,EAAE,QAAQ;GACb,GAAG,GAAG,SAAS,QAAQ;GACvB,GAAG,GAAG,UAAU,QAAQ,MAAM;GAC/B,CAAA;EAED,MAAM,YAAY,gBAA+B,EAC/C,OAAO,QAAQ,MAAM,MAAM,EAC5B,EAAC;EAEF,YACQ,MAAM,kBACN;GACJ,aAAa,QAAQ;IAEzB;EAEA,MAAM,cAAc,eAAe;GACjC,OAAO,aAAa,QAAQ,MAAM,aAAa;IAChD;EAED,MAAM,UAAU,eAAe,YAAY,UAAU,MAAM,YAAW;EAEtE,IAAI,CAAC,CAAC,MAAM,aAAa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AAf,YAEU,MAAA,OAAA,EAAA,EAAA,KAAA,GAAA,EAAA;4BAD8B,EAAA,WAAA,EAAtC,YAAsC,wBAAtB,QAAA,mBAAkB,CAAA,EAAA,CAAA;;;KAMjC,QAAA,iBAAiB,QAAA,cAAc,QAAA,cAAcA,KAAAA,OAAO,WAAA,WAAA,EAD7D,mBAYO,QAAA;;KAVJ,OAAK,eAAE,cAAA,MAAa;QAErB,WAOO,KAAA,QAAA,UAAA,EAAA,QAAA,CANU,QAAA,cAAA,WAAA,EAAf,YAEU,MAAA,OAAA,EAAA,EAAA,KAAA,GAAA,EAAA;4BADsB,EAAA,WAAA,EAA9B,YAA8B,wBAAd,QAAA,WAAU,CAAA,EAAA,CAAA;;6CAEf,QAAA,cAAc,QAAA,cAAA,WAAA,EAA3B,mBAES,QAAA;;KAF+B,eAAW,CAAG,QAAA;uBACpD,QAAA,WAAU,EAAA,GAAA,WAAA,IAAA,mBAAA,QAAA,KAAA,CAAA,CAAA,CAAA,EAAA,EAAA,IAAA,mBAAA,QAAA,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch2.mjs","names":[],"sources":["../../../../../../packages/components/switch/src/switch.vue"],"sourcesContent":["<template>\n <div :class=\"switchKls\" @click.prevent=\"switchValue\">\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"ns.e('input')\"\n type=\"checkbox\"\n role=\"switch\"\n :aria-checked=\"checked\"\n :aria-disabled=\"switchDisabled\"\n :aria-label=\"ariaLabel\"\n :name=\"name\"\n :true-value=\"activeValue\"\n :false-value=\"inactiveValue\"\n :disabled=\"switchDisabled\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @keydown.enter=\"switchValue\"\n />\n <span\n v-if=\"!inlinePrompt && (inactiveIcon || inactiveText || $slots.inactive)\"\n :class=\"labelLeftKls\"\n >\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\" :aria-hidden=\"checked\">{{\n inactiveText\n }}</span>\n </slot>\n </span>\n <span :class=\"ns.e('core')\" :style=\"coreStyle\">\n <div v-if=\"inlinePrompt\" :class=\"ns.e('inner')\">\n <div v-if=\"!checked\" :class=\"ns.e('inner-wrapper')\">\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\">{{ inactiveText }}</span>\n </slot>\n </div>\n <div v-else :class=\"ns.e('inner-wrapper')\">\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\">{{ activeText }}</span>\n </slot>\n </div>\n </div>\n <div :class=\"ns.e('action')\">\n <el-icon v-if=\"loading\" :class=\"ns.is('loading')\">\n <loading />\n </el-icon>\n <slot v-else-if=\"checked\" name=\"active-action\">\n <el-icon v-if=\"activeActionIcon\">\n <component :is=\"activeActionIcon\" />\n </el-icon>\n </slot>\n <slot v-else-if=\"!checked\" name=\"inactive-action\">\n <el-icon v-if=\"inactiveActionIcon\">\n <component :is=\"inactiveActionIcon\" />\n </el-icon>\n </slot>\n </div>\n </span>\n <span\n v-if=\"!inlinePrompt && (activeIcon || activeText || $slots.active)\"\n :class=\"labelRightKls\"\n >\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\" :aria-hidden=\"!checked\">{{\n activeText\n }}</span>\n </slot>\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, onMounted, ref, shallowRef, watch } from 'vue'\nimport {\n NOOP,\n addUnit,\n debugWarn,\n isBoolean,\n isPromise,\n throwError,\n} from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { Loading } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useNamespace } from '@element-plus/hooks'\nimport { switchEmits } from './switch'\n\nimport type { CSSProperties } from 'vue'\nimport type { SwitchProps } from './switch'\n\nconst COMPONENT_NAME = 'ElSwitch'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = withDefaults(defineProps<SwitchProps>(), {\n modelValue: false,\n disabled: undefined,\n activeText: '',\n inactiveText: '',\n activeValue: true,\n inactiveValue: false,\n name: '',\n validateEvent: true,\n width: '',\n})\nconst emit = defineEmits(switchEmits)\n\nconst { formItem } = useFormItem()\nconst switchSize = useFormSize()\nconst ns = useNamespace('switch')\n\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst switchDisabled = useFormDisabled(\n computed(() => {\n if (props.loading) {\n return true\n }\n return undefined\n })\n)\nconst isControlled = ref(props.modelValue !== false)\nconst input = shallowRef<HTMLInputElement>()\n\nconst switchKls = computed(() => [\n ns.b(),\n ns.m(switchSize.value),\n ns.is('disabled', switchDisabled.value),\n ns.is('checked', checked.value),\n])\n\nconst labelLeftKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'left'),\n ns.is('active', !checked.value),\n])\n\nconst labelRightKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'right'),\n ns.is('active', checked.value),\n])\n\nconst coreStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.width),\n}))\n\nwatch(\n () => props.modelValue,\n () => {\n isControlled.value = true\n }\n)\n\nconst actualValue = computed(() => {\n return isControlled.value ? props.modelValue : false\n})\n\nconst checked = computed(() => actualValue.value === props.activeValue)\n\nif (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {\n emit(UPDATE_MODEL_EVENT, props.inactiveValue)\n emit(CHANGE_EVENT, props.inactiveValue)\n emit(INPUT_EVENT, props.inactiveValue)\n}\n\nwatch(checked, (val) => {\n input.value!.checked = val\n\n if (props.validateEvent) {\n formItem?.validate?.('change').catch(NOOP)\n }\n})\n\nconst handleChange = () => {\n const val = checked.value ? props.inactiveValue : props.activeValue\n emit(UPDATE_MODEL_EVENT, val)\n emit(CHANGE_EVENT, val)\n emit(INPUT_EVENT, val)\n nextTick(() => {\n input.value!.checked = checked.value\n })\n}\n\nconst switchValue = () => {\n if (switchDisabled.value) return\n\n const { beforeChange } = props\n if (!beforeChange) {\n handleChange()\n return\n }\n\n const shouldChange = beforeChange()\n\n const isPromiseOrBool = [\n isPromise(shouldChange),\n isBoolean(shouldChange),\n ].includes(true)\n if (!isPromiseOrBool) {\n throwError(\n COMPONENT_NAME,\n 'beforeChange must return type `Promise<boolean>` or `boolean`'\n )\n }\n\n if (isPromise(shouldChange)) {\n shouldChange\n .then((result) => {\n if (result) {\n handleChange()\n }\n })\n .catch((e) => {\n debugWarn(COMPONENT_NAME, `some error occurred: ${e}`)\n })\n } else if (shouldChange) {\n handleChange()\n }\n}\n\nconst focus = (): void => {\n input.value?.focus?.()\n}\n\nonMounted(() => {\n input.value!.checked = checked.value\n})\n\ndefineExpose({\n /**\n * @description manual focus to the switch component\n **/\n focus,\n /**\n * @description whether Switch is checked\n */\n checked,\n})\n</script>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"switch2.mjs","names":[],"sources":["../../../../../../packages/components/switch/src/switch.vue"],"sourcesContent":["<template>\n <div :class=\"switchKls\" @click.prevent=\"switchValue\">\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"ns.e('input')\"\n type=\"checkbox\"\n role=\"switch\"\n :aria-checked=\"checked\"\n :aria-disabled=\"switchDisabled\"\n :aria-label=\"ariaLabel\"\n :name=\"name\"\n :true-value=\"activeValue\"\n :false-value=\"inactiveValue\"\n :disabled=\"switchDisabled\"\n :tabindex=\"tabindex\"\n @change=\"handleChange\"\n @keydown.enter=\"switchValue\"\n />\n <span\n v-if=\"!inlinePrompt && (inactiveIcon || inactiveText || $slots.inactive)\"\n :class=\"labelLeftKls\"\n >\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\" :aria-hidden=\"checked\">{{\n inactiveText\n }}</span>\n </slot>\n </span>\n <span :class=\"ns.e('core')\" :style=\"coreStyle\">\n <div v-if=\"inlinePrompt\" :class=\"ns.e('inner')\">\n <div v-if=\"!checked\" :class=\"ns.e('inner-wrapper')\">\n <slot name=\"inactive\">\n <el-icon v-if=\"inactiveIcon\">\n <component :is=\"inactiveIcon\" />\n </el-icon>\n <span v-if=\"!inactiveIcon && inactiveText\">{{ inactiveText }}</span>\n </slot>\n </div>\n <div v-else :class=\"ns.e('inner-wrapper')\">\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\">{{ activeText }}</span>\n </slot>\n </div>\n </div>\n <div :class=\"ns.e('action')\">\n <el-icon v-if=\"loading\" :class=\"ns.is('loading')\">\n <loading />\n </el-icon>\n <slot v-else-if=\"checked\" name=\"active-action\">\n <el-icon v-if=\"activeActionIcon\">\n <component :is=\"activeActionIcon\" />\n </el-icon>\n </slot>\n <slot v-else-if=\"!checked\" name=\"inactive-action\">\n <el-icon v-if=\"inactiveActionIcon\">\n <component :is=\"inactiveActionIcon\" />\n </el-icon>\n </slot>\n </div>\n </span>\n <span\n v-if=\"!inlinePrompt && (activeIcon || activeText || $slots.active)\"\n :class=\"labelRightKls\"\n >\n <slot name=\"active\">\n <el-icon v-if=\"activeIcon\">\n <component :is=\"activeIcon\" />\n </el-icon>\n <span v-if=\"!activeIcon && activeText\" :aria-hidden=\"!checked\">{{\n activeText\n }}</span>\n </slot>\n </span>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, onMounted, ref, shallowRef, watch } from 'vue'\nimport {\n NOOP,\n addUnit,\n debugWarn,\n isBoolean,\n isPromise,\n throwError,\n} from '@element-plus/utils'\nimport ElIcon from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport { Loading } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { useNamespace } from '@element-plus/hooks'\nimport { switchEmits } from './switch'\n\nimport type { CSSProperties } from 'vue'\nimport type { SwitchProps } from './switch'\n\nconst COMPONENT_NAME = 'ElSwitch'\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = withDefaults(defineProps<SwitchProps>(), {\n modelValue: false,\n disabled: undefined,\n activeText: '',\n inactiveText: '',\n activeValue: true,\n inactiveValue: false,\n name: '',\n validateEvent: true,\n width: '',\n})\nconst emit = defineEmits(switchEmits)\n\nconst { formItem } = useFormItem()\nconst switchSize = useFormSize()\nconst ns = useNamespace('switch')\n\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\n\nconst switchDisabled = useFormDisabled(\n computed(() => {\n if (props.loading) {\n return true\n }\n return undefined\n })\n)\nconst isControlled = ref(props.modelValue !== false)\nconst input = shallowRef<HTMLInputElement>()\n\nconst switchKls = computed(() => [\n ns.b(),\n ns.m(switchSize.value),\n ns.is('disabled', switchDisabled.value),\n ns.is('checked', checked.value),\n])\n\nconst labelLeftKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'left'),\n ns.is('active', !checked.value),\n])\n\nconst labelRightKls = computed(() => [\n ns.e('label'),\n ns.em('label', 'right'),\n ns.is('active', checked.value),\n])\n\nconst coreStyle = computed<CSSProperties>(() => ({\n width: addUnit(props.width),\n}))\n\nwatch(\n () => props.modelValue,\n () => {\n isControlled.value = true\n }\n)\n\nconst actualValue = computed(() => {\n return isControlled.value ? props.modelValue : false\n})\n\nconst checked = computed(() => actualValue.value === props.activeValue)\n\nif (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {\n debugWarn(\n COMPONENT_NAME,\n 'model-value must be active-value or inactive-value'\n )\n emit(UPDATE_MODEL_EVENT, props.inactiveValue)\n emit(CHANGE_EVENT, props.inactiveValue)\n emit(INPUT_EVENT, props.inactiveValue)\n}\n\nwatch(checked, (val) => {\n input.value!.checked = val\n\n if (props.validateEvent) {\n formItem?.validate?.('change').catch(NOOP)\n }\n})\n\nconst handleChange = () => {\n const val = checked.value ? props.inactiveValue : props.activeValue\n emit(UPDATE_MODEL_EVENT, val)\n emit(CHANGE_EVENT, val)\n emit(INPUT_EVENT, val)\n nextTick(() => {\n input.value!.checked = checked.value\n })\n}\n\nconst switchValue = () => {\n if (switchDisabled.value) return\n\n const { beforeChange } = props\n if (!beforeChange) {\n handleChange()\n return\n }\n\n const shouldChange = beforeChange()\n\n const isPromiseOrBool = [\n isPromise(shouldChange),\n isBoolean(shouldChange),\n ].includes(true)\n if (!isPromiseOrBool) {\n throwError(\n COMPONENT_NAME,\n 'beforeChange must return type `Promise<boolean>` or `boolean`'\n )\n }\n\n if (isPromise(shouldChange)) {\n shouldChange\n .then((result) => {\n if (result) {\n handleChange()\n }\n })\n .catch((e) => {\n debugWarn(COMPONENT_NAME, `some error occurred: ${e}`)\n })\n } else if (shouldChange) {\n handleChange()\n }\n}\n\nconst focus = (): void => {\n input.value?.focus?.()\n}\n\nonMounted(() => {\n input.value!.checked = checked.value\n})\n\ndefineExpose({\n /**\n * @description manual focus to the switch component\n **/\n focus,\n /**\n * @description whether Switch is checked\n */\n checked,\n})\n</script>\n"],"mappings":""}
|
|
@@ -105,19 +105,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
105
105
|
}, {}, {
|
|
106
106
|
ElCheckbox: {
|
|
107
107
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
|
|
108
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
109
108
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
110
110
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
111
|
-
"update:modelValue": (val: CheckboxValueType) => void;
|
|
112
111
|
change: (val: CheckboxValueType) => void;
|
|
112
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
113
113
|
}, _$vue.PublicProps, {
|
|
114
114
|
modelValue: number | string | boolean;
|
|
115
|
+
validateEvent: boolean;
|
|
115
116
|
label: string | boolean | number | object;
|
|
116
|
-
name: string;
|
|
117
117
|
disabled: boolean;
|
|
118
|
-
value: string | boolean | number | object;
|
|
119
|
-
validateEvent: boolean;
|
|
120
118
|
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
value: string | boolean | number | object;
|
|
121
121
|
trueValue: string | number;
|
|
122
122
|
falseValue: string | number;
|
|
123
123
|
trueLabel: string | number;
|
|
@@ -130,16 +130,16 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
130
130
|
M: {};
|
|
131
131
|
Defaults: {};
|
|
132
132
|
}, Readonly<CheckboxProps> & Readonly<{
|
|
133
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
134
133
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
134
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
135
135
|
}>, {}, {}, {}, {}, {
|
|
136
136
|
modelValue: number | string | boolean;
|
|
137
|
+
validateEvent: boolean;
|
|
137
138
|
label: string | boolean | number | object;
|
|
138
|
-
name: string;
|
|
139
139
|
disabled: boolean;
|
|
140
|
-
value: string | boolean | number | object;
|
|
141
|
-
validateEvent: boolean;
|
|
142
140
|
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
value: string | boolean | number | object;
|
|
143
143
|
trueValue: string | number;
|
|
144
144
|
falseValue: string | number;
|
|
145
145
|
trueLabel: string | number;
|
|
@@ -149,19 +149,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
149
149
|
__isTeleport?: never;
|
|
150
150
|
__isSuspense?: never;
|
|
151
151
|
} & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
|
|
152
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
153
152
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
153
|
+
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
154
154
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
155
|
-
"update:modelValue": (val: CheckboxValueType) => void;
|
|
156
155
|
change: (val: CheckboxValueType) => void;
|
|
156
|
+
"update:modelValue": (val: CheckboxValueType) => void;
|
|
157
157
|
}, string, {
|
|
158
158
|
modelValue: number | string | boolean;
|
|
159
|
+
validateEvent: boolean;
|
|
159
160
|
label: string | boolean | number | object;
|
|
160
|
-
name: string;
|
|
161
161
|
disabled: boolean;
|
|
162
|
-
value: string | boolean | number | object;
|
|
163
|
-
validateEvent: boolean;
|
|
164
162
|
id: string;
|
|
163
|
+
name: string;
|
|
164
|
+
value: string | boolean | number | object;
|
|
165
165
|
trueValue: string | number;
|
|
166
166
|
falseValue: string | number;
|
|
167
167
|
trueLabel: string | number;
|
|
@@ -185,7 +185,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
185
185
|
readonly falseLabel?: string | number | (() => string | number) | undefined;
|
|
186
186
|
readonly id?: string | (() => string) | undefined;
|
|
187
187
|
readonly border?: boolean | (() => boolean) | undefined;
|
|
188
|
-
readonly size?: "" | "default" | "
|
|
188
|
+
readonly size?: "" | "default" | "large" | "small" | (() => "" | "default" | "large" | "small") | undefined;
|
|
189
189
|
readonly tabindex?: string | number | (() => string | number) | undefined;
|
|
190
190
|
readonly validateEvent?: boolean | (() => boolean) | undefined;
|
|
191
191
|
readonly ariaLabel?: string | (() => string) | undefined;
|
|
@@ -197,22 +197,22 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
197
197
|
};
|
|
198
198
|
ElCheckboxGroup: SFCWithInstall<{
|
|
199
199
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxGroupProps> & Readonly<{
|
|
200
|
-
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
201
200
|
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
201
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
202
202
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
203
|
-
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
204
203
|
change: (val: CheckboxValueType[]) => void;
|
|
204
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
205
205
|
}, _$vue.PublicProps, {
|
|
206
|
-
|
|
206
|
+
modelValue: CheckboxGroupValueType;
|
|
207
207
|
props: {
|
|
208
208
|
value?: string;
|
|
209
209
|
label?: string;
|
|
210
210
|
disabled?: string;
|
|
211
211
|
};
|
|
212
|
-
modelValue: CheckboxGroupValueType;
|
|
213
|
-
tag: string;
|
|
214
|
-
disabled: boolean;
|
|
215
212
|
validateEvent: boolean;
|
|
213
|
+
disabled: boolean;
|
|
214
|
+
type: "checkbox" | "button";
|
|
215
|
+
tag: string;
|
|
216
216
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
217
217
|
P: {};
|
|
218
218
|
B: {};
|
|
@@ -221,40 +221,40 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
221
221
|
M: {};
|
|
222
222
|
Defaults: {};
|
|
223
223
|
}, Readonly<CheckboxGroupProps> & Readonly<{
|
|
224
|
-
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
225
224
|
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
225
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
226
226
|
}>, {}, {}, {}, {}, {
|
|
227
|
-
|
|
227
|
+
modelValue: CheckboxGroupValueType;
|
|
228
228
|
props: {
|
|
229
229
|
value?: string;
|
|
230
230
|
label?: string;
|
|
231
231
|
disabled?: string;
|
|
232
232
|
};
|
|
233
|
-
modelValue: CheckboxGroupValueType;
|
|
234
|
-
tag: string;
|
|
235
|
-
disabled: boolean;
|
|
236
233
|
validateEvent: boolean;
|
|
234
|
+
disabled: boolean;
|
|
235
|
+
type: "checkbox" | "button";
|
|
236
|
+
tag: string;
|
|
237
237
|
}>;
|
|
238
238
|
__isFragment?: never;
|
|
239
239
|
__isTeleport?: never;
|
|
240
240
|
__isSuspense?: never;
|
|
241
241
|
} & _$vue.ComponentOptionsBase<Readonly<CheckboxGroupProps> & Readonly<{
|
|
242
|
-
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
243
242
|
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
243
|
+
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
244
244
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
245
|
-
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
246
245
|
change: (val: CheckboxValueType[]) => void;
|
|
246
|
+
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
247
247
|
}, string, {
|
|
248
|
-
|
|
248
|
+
modelValue: CheckboxGroupValueType;
|
|
249
249
|
props: {
|
|
250
250
|
value?: string;
|
|
251
251
|
label?: string;
|
|
252
252
|
disabled?: string;
|
|
253
253
|
};
|
|
254
|
-
modelValue: CheckboxGroupValueType;
|
|
255
|
-
tag: string;
|
|
256
|
-
disabled: boolean;
|
|
257
254
|
validateEvent: boolean;
|
|
255
|
+
disabled: boolean;
|
|
256
|
+
type: "checkbox" | "button";
|
|
257
|
+
tag: string;
|
|
258
258
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
259
259
|
$slots: {
|
|
260
260
|
default?: (props: {}) => any;
|
|
@@ -284,11 +284,11 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
284
284
|
}) => void;
|
|
285
285
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
286
286
|
}, _$vue.PublicProps, {
|
|
287
|
-
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
288
287
|
height: number | string;
|
|
289
288
|
tabindex: number | string;
|
|
290
|
-
distance: number;
|
|
291
289
|
maxHeight: number | string;
|
|
290
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
291
|
+
distance: number;
|
|
292
292
|
wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
293
293
|
wrapClass: string | string[];
|
|
294
294
|
viewClass: string | string[];
|
|
@@ -318,11 +318,11 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
318
318
|
setScrollLeft: (value: number) => void;
|
|
319
319
|
handleScroll: () => void;
|
|
320
320
|
}, {}, {}, {}, {
|
|
321
|
-
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
322
321
|
height: number | string;
|
|
323
322
|
tabindex: number | string;
|
|
324
|
-
distance: number;
|
|
325
323
|
maxHeight: number | string;
|
|
324
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
325
|
+
distance: number;
|
|
326
326
|
wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
327
327
|
wrapClass: string | string[];
|
|
328
328
|
viewClass: string | string[];
|
|
@@ -355,11 +355,11 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
355
355
|
}) => void;
|
|
356
356
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
357
357
|
}, string, {
|
|
358
|
-
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
359
358
|
height: number | string;
|
|
360
359
|
tabindex: number | string;
|
|
361
|
-
distance: number;
|
|
362
360
|
maxHeight: number | string;
|
|
361
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
362
|
+
distance: number;
|
|
363
363
|
wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
364
364
|
wrapClass: string | string[];
|
|
365
365
|
viewClass: string | string[];
|
|
@@ -372,10 +372,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
372
372
|
})>;
|
|
373
373
|
ElTooltip: SFCWithInstall<{
|
|
374
374
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<UseTooltipProps> & Readonly<{
|
|
375
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
376
375
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
377
376
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
378
377
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
378
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
379
379
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
380
380
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
381
381
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
@@ -388,39 +388,39 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
388
388
|
onClose: (event?: Event, delay?: number) => void;
|
|
389
389
|
hide: (event?: Event) => void;
|
|
390
390
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
391
|
-
close: (...args: any[]) => void;
|
|
392
391
|
hide: (...args: any[]) => void;
|
|
393
392
|
show: (...args: any[]) => void;
|
|
394
393
|
open: (...args: any[]) => void;
|
|
394
|
+
close: (...args: any[]) => void;
|
|
395
395
|
"update:visible": (...args: any[]) => void;
|
|
396
396
|
"before-show": (...args: any[]) => void;
|
|
397
397
|
"before-hide": (...args: any[]) => void;
|
|
398
398
|
}, _$vue.PublicProps, {
|
|
399
|
-
effect: PopperEffect;
|
|
400
|
-
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
401
399
|
visible: boolean | null;
|
|
400
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
402
401
|
content: string;
|
|
403
|
-
|
|
404
|
-
hideAfter: number;
|
|
405
|
-
autoClose: number;
|
|
406
|
-
boundariesPadding: number;
|
|
407
|
-
gpuAcceleration: boolean;
|
|
402
|
+
role: typeof roleTypes[number];
|
|
408
403
|
offset: number;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
strategy: "absolute" | "fixed";
|
|
412
|
-
arrowOffset: number;
|
|
404
|
+
teleported: boolean;
|
|
405
|
+
effect: PopperEffect;
|
|
413
406
|
enterable: boolean;
|
|
414
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
415
|
-
stopPopperMouseEvent: boolean;
|
|
416
|
-
loop: boolean;
|
|
417
407
|
pure: boolean;
|
|
418
408
|
focusOnShow: boolean;
|
|
419
409
|
trapping: boolean;
|
|
410
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
411
|
+
stopPopperMouseEvent: boolean;
|
|
420
412
|
virtualTriggering: boolean;
|
|
421
|
-
|
|
413
|
+
loop: boolean;
|
|
414
|
+
boundariesPadding: number;
|
|
415
|
+
gpuAcceleration: boolean;
|
|
416
|
+
placement: Placement;
|
|
417
|
+
popperOptions: Partial<Options>;
|
|
418
|
+
strategy: "absolute" | "fixed";
|
|
419
|
+
arrowOffset: number;
|
|
422
420
|
showArrow: boolean;
|
|
423
|
-
|
|
421
|
+
showAfter: number;
|
|
422
|
+
hideAfter: number;
|
|
423
|
+
autoClose: number;
|
|
424
424
|
trigger: Arrayable<TooltipTriggerType>;
|
|
425
425
|
triggerKeys: string[];
|
|
426
426
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
@@ -431,10 +431,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
431
431
|
M: {};
|
|
432
432
|
Defaults: {};
|
|
433
433
|
}, Readonly<UseTooltipProps> & Readonly<{
|
|
434
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
435
434
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
436
435
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
437
436
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
437
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
438
438
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
439
439
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
440
440
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
@@ -447,31 +447,31 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
447
447
|
onClose: (event?: Event, delay?: number) => void;
|
|
448
448
|
hide: (event?: Event) => void;
|
|
449
449
|
}, {}, {}, {}, {
|
|
450
|
-
effect: PopperEffect;
|
|
451
|
-
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
452
450
|
visible: boolean | null;
|
|
451
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
453
452
|
content: string;
|
|
454
|
-
|
|
455
|
-
hideAfter: number;
|
|
456
|
-
autoClose: number;
|
|
457
|
-
boundariesPadding: number;
|
|
458
|
-
gpuAcceleration: boolean;
|
|
453
|
+
role: typeof roleTypes[number];
|
|
459
454
|
offset: number;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
strategy: "absolute" | "fixed";
|
|
463
|
-
arrowOffset: number;
|
|
455
|
+
teleported: boolean;
|
|
456
|
+
effect: PopperEffect;
|
|
464
457
|
enterable: boolean;
|
|
465
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
466
|
-
stopPopperMouseEvent: boolean;
|
|
467
|
-
loop: boolean;
|
|
468
458
|
pure: boolean;
|
|
469
459
|
focusOnShow: boolean;
|
|
470
460
|
trapping: boolean;
|
|
461
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
462
|
+
stopPopperMouseEvent: boolean;
|
|
471
463
|
virtualTriggering: boolean;
|
|
472
|
-
|
|
464
|
+
loop: boolean;
|
|
465
|
+
boundariesPadding: number;
|
|
466
|
+
gpuAcceleration: boolean;
|
|
467
|
+
placement: Placement;
|
|
468
|
+
popperOptions: Partial<Options>;
|
|
469
|
+
strategy: "absolute" | "fixed";
|
|
470
|
+
arrowOffset: number;
|
|
473
471
|
showArrow: boolean;
|
|
474
|
-
|
|
472
|
+
showAfter: number;
|
|
473
|
+
hideAfter: number;
|
|
474
|
+
autoClose: number;
|
|
475
475
|
trigger: Arrayable<TooltipTriggerType>;
|
|
476
476
|
triggerKeys: string[];
|
|
477
477
|
}>;
|
|
@@ -479,10 +479,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
479
479
|
__isTeleport?: never;
|
|
480
480
|
__isSuspense?: never;
|
|
481
481
|
} & _$vue.ComponentOptionsBase<Readonly<UseTooltipProps> & Readonly<{
|
|
482
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
483
482
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
484
483
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
485
484
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
485
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
486
486
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
487
487
|
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
|
488
488
|
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
|
@@ -495,39 +495,39 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
495
495
|
onClose: (event?: Event, delay?: number) => void;
|
|
496
496
|
hide: (event?: Event) => void;
|
|
497
497
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
498
|
-
close: (...args: any[]) => void;
|
|
499
498
|
hide: (...args: any[]) => void;
|
|
500
499
|
show: (...args: any[]) => void;
|
|
501
500
|
open: (...args: any[]) => void;
|
|
501
|
+
close: (...args: any[]) => void;
|
|
502
502
|
"update:visible": (...args: any[]) => void;
|
|
503
503
|
"before-show": (...args: any[]) => void;
|
|
504
504
|
"before-hide": (...args: any[]) => void;
|
|
505
505
|
}, string, {
|
|
506
|
-
effect: PopperEffect;
|
|
507
|
-
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
508
506
|
visible: boolean | null;
|
|
507
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
509
508
|
content: string;
|
|
510
|
-
|
|
511
|
-
hideAfter: number;
|
|
512
|
-
autoClose: number;
|
|
513
|
-
boundariesPadding: number;
|
|
514
|
-
gpuAcceleration: boolean;
|
|
509
|
+
role: typeof roleTypes[number];
|
|
515
510
|
offset: number;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
strategy: "absolute" | "fixed";
|
|
519
|
-
arrowOffset: number;
|
|
511
|
+
teleported: boolean;
|
|
512
|
+
effect: PopperEffect;
|
|
520
513
|
enterable: boolean;
|
|
521
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
522
|
-
stopPopperMouseEvent: boolean;
|
|
523
|
-
loop: boolean;
|
|
524
514
|
pure: boolean;
|
|
525
515
|
focusOnShow: boolean;
|
|
526
516
|
trapping: boolean;
|
|
517
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
518
|
+
stopPopperMouseEvent: boolean;
|
|
527
519
|
virtualTriggering: boolean;
|
|
528
|
-
|
|
520
|
+
loop: boolean;
|
|
521
|
+
boundariesPadding: number;
|
|
522
|
+
gpuAcceleration: boolean;
|
|
523
|
+
placement: Placement;
|
|
524
|
+
popperOptions: Partial<Options>;
|
|
525
|
+
strategy: "absolute" | "fixed";
|
|
526
|
+
arrowOffset: number;
|
|
529
527
|
showArrow: boolean;
|
|
530
|
-
|
|
528
|
+
showAfter: number;
|
|
529
|
+
hideAfter: number;
|
|
530
|
+
autoClose: number;
|
|
531
531
|
trigger: Arrayable<TooltipTriggerType>;
|
|
532
532
|
triggerKeys: string[];
|
|
533
533
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|