@element-plus/nightly 0.0.20261029 → 0.0.20261031
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +16 -10
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +16 -10
- 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/gl.js +1 -1
- package/dist/locale/gl.min.js +1 -1
- package/dist/locale/gl.min.mjs +1 -1
- package/dist/locale/gl.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/components/alert/src/alert.d.ts +2 -2
- package/es/components/alert/src/alert.vue.d.ts +2 -2
- package/es/components/anchor/src/anchor.vue.d.ts +4 -4
- package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/es/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/es/components/avatar/src/avatar-group.d.ts +2 -2
- package/es/components/avatar/src/avatar.d.ts +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/button/src/button-group.d.ts +1 -1
- 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 +5 -5
- package/es/components/button/src/use-button.d.ts +2 -2
- package/es/components/calendar/src/calendar.d.ts +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +2 -2
- package/es/components/cascader/src/cascader.vue.d.ts +6 -6
- package/es/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +4 -4
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +5 -5
- package/es/components/checkbox/src/checkbox.d.ts +2 -2
- package/es/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/es/components/col/src/col.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +2 -2
- package/es/components/color-picker/src/color-picker.vue.d.ts +4 -4
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +7 -7
- package/es/components/date-picker/src/props.d.ts +2 -2
- 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-panel.d.ts +5 -5
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +7 -7
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +2 -2
- 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 +3 -3
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.vue.d.ts +35 -35
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form-item.vue.d.ts +1 -1
- package/es/components/form/src/form.d.ts +1 -1
- package/es/components/form/src/form.vue.d.ts +1 -1
- package/es/components/input/src/input.d.ts +1 -1
- package/es/components/input/src/input.vue.d.ts +4 -4
- package/es/components/input-number/src/input-number.d.ts +2 -2
- package/es/components/input-number/src/input-number.vue.d.ts +6 -6
- package/es/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +14 -8
- package/es/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/input-number/src/input-number2.mjs.map +1 -1
- package/es/components/input-otp/src/input-otp.vue.d.ts +4 -4
- package/es/components/input-tag/src/input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.vue.d.ts +6 -6
- 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 +2 -2
- package/es/components/menu/src/sub-menu.d.ts +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +7 -7
- package/es/components/message-box/src/index.vue.d.ts +32 -32
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +6 -6
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
- package/es/components/pagination/src/pagination.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
- package/es/components/popover/src/popover.d.ts +8 -8
- 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/popper.d.ts +2 -2
- package/es/components/popper/src/popper.vue.d.ts +1 -1
- 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.vue.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +4 -4
- package/es/components/radio/src/radio.vue.d.ts +3 -3
- package/es/components/rate/src/rate.vue.d.ts +3 -3
- 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.vue.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/es/components/segmented/index.d.ts +3 -3
- package/es/components/segmented/src/segmented.vue.d.ts +2 -2
- package/es/components/select/src/option.d.ts +1 -1
- package/es/components/select/src/option.vue.d.ts +2 -2
- package/es/components/select/src/select.d.ts +3 -3
- package/es/components/select/src/select.vue.d.ts +34 -34
- package/es/components/select/src/useSelect.d.ts +4 -4
- package/es/components/select-v2/src/defaults.d.ts +2 -2
- package/es/components/select-v2/src/select.vue.d.ts +22 -22
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/es/components/slider/src/slider.vue.d.ts +3 -3
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +2 -2
- package/es/components/table/src/filter-panel.vue.d.ts +31 -31
- package/es/components/table/src/table-header/index.d.ts +11 -11
- package/es/components/tabs/src/tabs.d.ts +4 -4
- package/es/components/tag/src/tag.d.ts +1 -1
- package/es/components/tag/src/tag.vue.d.ts +3 -3
- package/es/components/text/src/text.vue.d.ts +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +9 -9
- package/es/components/time-picker/src/common/props.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +7 -7
- package/es/components/time-select/src/time-select.vue.d.ts +4 -4
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.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/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +2 -2
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree-node.vue.d.ts +11 -11
- package/es/components/tree/src/tree.vue.d.ts +11 -11
- package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/es/components/tree-select/src/tree-select.vue.d.ts +13 -13
- package/es/components/tree-v2/src/composables/useTree.d.ts +2 -2
- package/es/components/upload/src/upload.vue.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-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/es/hooks/use-floating/index.d.ts +8 -8
- package/es/hooks/use-popper/index.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/alert/src/alert.d.ts +2 -2
- package/lib/components/alert/src/alert.vue.d.ts +2 -2
- package/lib/components/anchor/src/anchor.vue.d.ts +4 -4
- package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/lib/components/avatar/src/avatar-group-props.d.ts +1 -1
- package/lib/components/avatar/src/avatar-group.d.ts +2 -2
- package/lib/components/avatar/src/avatar.d.ts +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/button/src/button-group.d.ts +1 -1
- 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 +5 -5
- package/lib/components/button/src/use-button.d.ts +2 -2
- package/lib/components/calendar/src/calendar.d.ts +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +2 -2
- package/lib/components/cascader/src/cascader.vue.d.ts +6 -6
- package/lib/components/cascader-panel/src/index.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +5 -5
- package/lib/components/checkbox/src/checkbox.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- package/lib/components/col/src/col.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
- package/lib/components/color-picker/src/color-picker.vue.d.ts +4 -4
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +7 -7
- package/lib/components/date-picker/src/props.d.ts +2 -2
- 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-panel.d.ts +5 -5
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +7 -7
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +2 -2
- 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 +3 -3
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.vue.d.ts +35 -35
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form-item.vue.d.ts +1 -1
- package/lib/components/form/src/form.d.ts +1 -1
- package/lib/components/form/src/form.vue.d.ts +1 -1
- package/lib/components/input/src/input.d.ts +1 -1
- package/lib/components/input/src/input.vue.d.ts +4 -4
- package/lib/components/input-number/src/input-number.d.ts +2 -2
- package/lib/components/input-number/src/input-number.vue.d.ts +6 -6
- package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js +14 -8
- package/lib/components/input-number/src/input-number.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/input-number/src/input-number2.js.map +1 -1
- package/lib/components/input-otp/src/input-otp.vue.d.ts +4 -4
- package/lib/components/input-tag/src/input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.vue.d.ts +6 -6
- 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 +2 -2
- package/lib/components/menu/src/sub-menu.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +7 -7
- package/lib/components/message-box/src/index.vue.d.ts +32 -32
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +6 -6
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
- package/lib/components/pagination/src/pagination.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -3
- package/lib/components/popover/src/popover.d.ts +8 -8
- 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/popper.d.ts +2 -2
- package/lib/components/popper/src/popper.vue.d.ts +1 -1
- 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.vue.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
- package/lib/components/radio/src/radio.vue.d.ts +3 -3
- package/lib/components/rate/src/rate.vue.d.ts +3 -3
- 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.vue.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/lib/components/segmented/index.d.ts +3 -3
- package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
- package/lib/components/select/src/option.d.ts +1 -1
- package/lib/components/select/src/option.vue.d.ts +2 -2
- package/lib/components/select/src/select.d.ts +3 -3
- package/lib/components/select/src/select.vue.d.ts +34 -34
- package/lib/components/select/src/useSelect.d.ts +4 -4
- package/lib/components/select-v2/src/defaults.d.ts +2 -2
- package/lib/components/select-v2/src/select.vue.d.ts +22 -22
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton-item.vue.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +3 -3
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +2 -2
- package/lib/components/table/src/filter-panel.vue.d.ts +31 -31
- package/lib/components/table/src/table-header/index.d.ts +11 -11
- package/lib/components/tabs/src/tabs.d.ts +4 -4
- package/lib/components/tag/src/tag.d.ts +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +3 -3
- package/lib/components/text/src/text.vue.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +9 -9
- package/lib/components/time-picker/src/common/props.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +7 -7
- package/lib/components/time-select/src/time-select.vue.d.ts +4 -4
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.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/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +2 -2
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree-node.vue.d.ts +11 -11
- package/lib/components/tree/src/tree.vue.d.ts +11 -11
- package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/lib/components/tree-select/src/tree-select.vue.d.ts +13 -13
- package/lib/components/tree-v2/src/composables/useTree.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.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-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/lib/hooks/use-floating/index.d.ts +8 -8
- package/lib/hooks/use-popper/index.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number2.js","names":["_sfc_main"],"sources":["../../../../../../packages/components/input-number/src/input-number.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.m(inputNumberSize),\n ns.is('disabled', inputNumberDisabled),\n ns.is('without-controls', !controls),\n ns.is('controls-right', controlsAtRight),\n ns.is(align, !!align),\n ]\"\n @dragstart.prevent\n >\n <span\n v-if=\"controls\"\n v-repeat-click=\"decrease\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.decrease')\"\n :class=\"[ns.e('decrease'), ns.is('disabled', minDisabled)]\"\n @keydown.enter=\"decrease\"\n >\n <slot name=\"decrease-icon\">\n <el-icon>\n <arrow-down v-if=\"controlsAtRight\" />\n <minus v-else />\n </el-icon>\n </slot>\n </span>\n <span\n v-if=\"controls\"\n v-repeat-click=\"increase\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.increase')\"\n :class=\"[ns.e('increase'), ns.is('disabled', maxDisabled)]\"\n @keydown.enter=\"increase\"\n >\n <slot name=\"increase-icon\">\n <el-icon>\n <arrow-up v-if=\"controlsAtRight\" />\n <plus v-else />\n </el-icon>\n </slot>\n </span>\n <el-input\n :id=\"id\"\n ref=\"input\"\n :type=\"formatter ? 'text' : 'number'\"\n :step=\"step\"\n :model-value=\"displayValue\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"inputNumberDisabled\"\n :size=\"inputNumberSize\"\n :max=\"max\"\n :min=\"min\"\n :name=\"name\"\n :aria-label=\"ariaLabel\"\n :validate-event=\"false\"\n :inputmode=\"inputmode\"\n :formatter=\"formatter\"\n :parser=\"parser\"\n :tabindex=\"tabindex\"\n @keydown=\"handleKeydown\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @change=\"handleInputChange\"\n >\n <template v-if=\"$slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"$slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n </el-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, reactive, ref, watch } from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { ElInput } from '@element-plus/components/input'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormSize,\n} from '@element-plus/components/form'\nimport { vRepeatClick } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n NOOP,\n debugWarn,\n getEventCode,\n getEventKey,\n isNumber,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport { ArrowDown, ArrowUp, Minus, Plus } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { inputNumberEmits } from './input-number'\n\nimport type { InputInstance } from '@element-plus/components/input'\nimport type { InputNumberProps } from './input-number'\n\ndefineOptions({\n name: 'ElInputNumber',\n})\n\nconst props = withDefaults(defineProps<InputNumberProps>(), {\n id: undefined,\n disabled: undefined,\n step: 1,\n max: Number.MAX_SAFE_INTEGER,\n min: Number.MIN_SAFE_INTEGER,\n stepStrictly: false,\n readonly: false,\n controls: true,\n controlsPosition: '',\n valueOnClear: null,\n validateEvent: true,\n inputmode: undefined,\n align: 'center',\n tabindex: 0,\n})\nconst emit = defineEmits(inputNumberEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('input-number')\nconst input = ref<InputInstance>()\n\ninterface Data {\n currentValue: number | null | undefined\n userInput: null | number | string\n}\nconst data = reactive<Data>({\n currentValue: props.modelValue,\n userInput: null,\n})\n\nconst { formItem } = useFormItem()\n\nconst minDisabled = computed(\n () => isNumber(props.modelValue) && props.modelValue <= props.min\n)\nconst maxDisabled = computed(\n () => isNumber(props.modelValue) && props.modelValue >= props.max\n)\n\nconst numPrecision = computed(() => {\n const stepPrecision = getPrecision(props.step)\n if (!isUndefined(props.precision)) {\n if (stepPrecision > props.precision) {\n debugWarn(\n 'InputNumber',\n 'precision should not be less than the decimal places of step'\n )\n }\n return props.precision\n } else {\n return Math.max(getPrecision(props.modelValue), stepPrecision)\n }\n})\nconst controlsAtRight = computed(() => {\n return props.controls && props.controlsPosition === 'right'\n})\n\nconst inputNumberSize = useFormSize()\nconst inputNumberDisabled = useFormDisabled()\n\nconst displayValue = computed(() => {\n if (data.userInput !== null) {\n return data.userInput\n }\n let currentValue: number | string | undefined | null = data.currentValue\n if (isNil(currentValue)) return ''\n if (isNumber(currentValue)) {\n if (Number.isNaN(currentValue)) return ''\n if (!isUndefined(props.precision)) {\n currentValue = currentValue.toFixed(props.precision)\n }\n }\n return currentValue\n})\nconst toPrecision = (num: number, pre?: number) => {\n if (isUndefined(pre)) pre = numPrecision.value\n if (pre === 0) return Math.round(num)\n let snum = String(num)\n const pointPos = snum.indexOf('.')\n if (pointPos === -1) return num\n const nums = snum.replace('.', '').split('')\n const datum = nums[pointPos + pre]\n if (!datum) return num\n const length = snum.length\n if (snum.charAt(length - 1) === '5') {\n snum = `${snum.slice(0, Math.max(0, length - 1))}6`\n }\n return Number.parseFloat(Number(snum).toFixed(pre))\n}\nconst getPrecision = (value: number | null | undefined) => {\n if (isNil(value)) return 0\n const valueString = value.toString()\n const dotPosition = valueString.indexOf('.')\n let precision = 0\n if (dotPosition !== -1) {\n precision = valueString.length - dotPosition - 1\n }\n return precision\n}\nconst ensurePrecision = (val: number, coefficient: 1 | -1 = 1) => {\n if (!isNumber(val)) return data.currentValue\n if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {\n debugWarn(\n 'InputNumber',\n 'The value has reached the maximum safe integer limit.'\n )\n return val\n } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {\n debugWarn(\n 'InputNumber',\n 'The value has reached the minimum safe integer limit.'\n )\n return val\n }\n\n // Solve the accuracy problem of JS decimal calculation by converting the value to integer.\n return toPrecision(val + props.step * coefficient)\n}\nconst handleKeydown = (event: KeyboardEvent | Event) => {\n const code = getEventCode(event as KeyboardEvent)\n const key = getEventKey(event as KeyboardEvent)\n\n if (props.disabledScientific && ['e', 'E'].includes(key)) {\n event.preventDefault()\n return\n }\n\n switch (code) {\n case EVENT_CODE.up: {\n event.preventDefault()\n increase()\n break\n }\n case EVENT_CODE.down: {\n event.preventDefault()\n decrease()\n break\n }\n }\n}\nconst increase = () => {\n if (props.readonly || inputNumberDisabled.value || maxDisabled.value) return\n const value = Number(displayValue.value) || 0\n const newVal = ensurePrecision(value)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n setCurrentValueToModelValue()\n}\nconst decrease = () => {\n if (props.readonly || inputNumberDisabled.value || minDisabled.value) return\n const value = Number(displayValue.value) || 0\n const newVal = ensurePrecision(value, -1)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n setCurrentValueToModelValue()\n}\nconst verifyValue = (\n value: number | string | null | undefined,\n update?: boolean\n): number | null | undefined => {\n const { max, min, step, precision, stepStrictly, valueOnClear } = props\n if (max < min) {\n throwError('InputNumber', 'min should not be greater than max.')\n }\n let newVal = !value ? Number(value) : Number.parseFloat(String(value))\n if (isNil(value) || Number.isNaN(newVal)) {\n return null\n }\n if (value === '') {\n if (valueOnClear === null) {\n return null\n }\n newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear\n }\n if (stepStrictly) {\n newVal = toPrecision(\n Math.round(toPrecision(newVal / step)) * step,\n precision\n )\n if (newVal !== value) {\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n }\n if (!isUndefined(precision)) {\n newVal = toPrecision(newVal, precision)\n }\n if (newVal > max || newVal < min) {\n newVal = newVal > max ? max : min\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n return newVal\n}\nconst setCurrentValue = (\n value: number | string | null | undefined,\n emitChange = true\n) => {\n const oldVal = data.currentValue\n const newVal = verifyValue(value)\n if (!emitChange) {\n emit(UPDATE_MODEL_EVENT, newVal!)\n return\n }\n data.userInput = null\n if (oldVal === newVal && value) return\n emit(UPDATE_MODEL_EVENT, newVal!)\n if (oldVal !== newVal) {\n emit(CHANGE_EVENT, newVal!, oldVal!)\n }\n if (props.validateEvent) {\n formItem?.validate?.('change').catch(NOOP)\n }\n data.currentValue = newVal\n}\nconst handleInput = (value: string) => {\n data.userInput = value\n let newVal = value === '' ? null : Number.parseFloat(value)\n if (Number.isNaN(newVal)) {\n newVal = null\n }\n emit(INPUT_EVENT, newVal)\n setCurrentValue(newVal, false)\n}\nconst handleInputChange = (value: string) => {\n const newVal = value !== '' ? Number.parseFloat(value) : ''\n if (\n (isNumber(newVal) && !Number.isNaN(newVal)) ||\n (props.formatter && Number.isNaN(newVal)) ||\n newVal === ''\n ) {\n setCurrentValue(newVal)\n }\n setCurrentValueToModelValue()\n data.userInput = null\n}\n\nconst focus = () => {\n input.value?.focus?.()\n}\n\nconst blur = () => {\n input.value?.blur?.()\n}\n\nconst handleFocus = (event: MouseEvent | FocusEvent) => {\n emit('focus', event)\n}\n\nconst handleBlur = (event: MouseEvent | FocusEvent) => {\n data.userInput = null\n // When non-numeric content is entered into a numeric input box,\n // the content displayed on the page is not cleared after the value is cleared. #18533\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1398528\n if (data.currentValue === null && input.value?.input) {\n input.value.input.value = props.formatter?.('') ?? ''\n }\n emit('blur', event)\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch(NOOP)\n }\n}\n\nconst setCurrentValueToModelValue = () => {\n if (data.currentValue !== props.modelValue) {\n data.currentValue = props.modelValue\n }\n}\nconst handleWheel = (e: WheelEvent) => {\n if (document.activeElement === e.target) e.preventDefault()\n}\n\nwatch(\n () => props.modelValue,\n (value, oldValue) => {\n const newValue = verifyValue(value, true)\n if (data.userInput === null && newValue !== oldValue) {\n data.currentValue = newValue\n }\n },\n { immediate: true }\n)\n\nwatch(\n () => props.precision,\n () => {\n data.currentValue = verifyValue(props.modelValue)\n }\n)\nonMounted(() => {\n const { min, max, modelValue } = props\n const innerInput = input.value?.input as HTMLInputElement\n innerInput.setAttribute('role', 'spinbutton')\n if (Number.isFinite(max)) {\n innerInput.setAttribute('aria-valuemax', String(max))\n } else {\n innerInput.removeAttribute('aria-valuemax')\n }\n if (Number.isFinite(min)) {\n innerInput.setAttribute('aria-valuemin', String(min))\n } else {\n innerInput.removeAttribute('aria-valuemin')\n }\n innerInput.setAttribute(\n 'aria-valuenow',\n data.currentValue || data.currentValue === 0\n ? String(data.currentValue)\n : ''\n )\n innerInput.setAttribute('aria-disabled', String(inputNumberDisabled.value))\n if (!isNumber(modelValue) && modelValue != null) {\n let val: number | null = Number(modelValue)\n if (Number.isNaN(val)) {\n val = null\n }\n emit(UPDATE_MODEL_EVENT, val!)\n }\n innerInput.addEventListener('wheel', handleWheel, { passive: false })\n})\nonUpdated(() => {\n const innerInput = input.value?.input\n innerInput?.setAttribute('aria-valuenow', `${data.currentValue ?? ''}`)\n})\ndefineExpose({\n /** @description get focus the input component */\n focus,\n /** @description remove focus the input component */\n blur,\n})\n</script>\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"input-number2.js","names":["_sfc_main"],"sources":["../../../../../../packages/components/input-number/src/input-number.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n ns.m(inputNumberSize),\n ns.is('disabled', inputNumberDisabled),\n ns.is('without-controls', !controls),\n ns.is('controls-right', controlsAtRight),\n ns.is(align, !!align),\n ]\"\n @dragstart.prevent\n >\n <span\n v-if=\"controls\"\n v-repeat-click=\"decrease\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.decrease')\"\n :class=\"[ns.e('decrease'), ns.is('disabled', minDisabled)]\"\n @keydown.enter=\"decrease\"\n >\n <slot name=\"decrease-icon\">\n <el-icon>\n <arrow-down v-if=\"controlsAtRight\" />\n <minus v-else />\n </el-icon>\n </slot>\n </span>\n <span\n v-if=\"controls\"\n v-repeat-click=\"increase\"\n role=\"button\"\n :aria-label=\"t('el.inputNumber.increase')\"\n :class=\"[ns.e('increase'), ns.is('disabled', maxDisabled)]\"\n @keydown.enter=\"increase\"\n >\n <slot name=\"increase-icon\">\n <el-icon>\n <arrow-up v-if=\"controlsAtRight\" />\n <plus v-else />\n </el-icon>\n </slot>\n </span>\n <el-input\n :id=\"id\"\n ref=\"input\"\n :type=\"formatter ? 'text' : 'number'\"\n :step=\"step\"\n :model-value=\"displayValue\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"inputNumberDisabled\"\n :size=\"inputNumberSize\"\n :max=\"max\"\n :min=\"min\"\n :name=\"name\"\n :aria-label=\"ariaLabel\"\n :validate-event=\"false\"\n :inputmode=\"inputmode\"\n :formatter=\"formatter\"\n :parser=\"parser\"\n :tabindex=\"tabindex\"\n @keydown=\"handleKeydown\"\n @blur=\"handleBlur\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @change=\"handleInputChange\"\n >\n <template v-if=\"$slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"$slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n </el-input>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, onMounted, onUpdated, reactive, ref, watch } from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { ElInput } from '@element-plus/components/input'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n useFormDisabled,\n useFormItem,\n useFormSize,\n} from '@element-plus/components/form'\nimport { vRepeatClick } from '@element-plus/directives'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport {\n NOOP,\n debugWarn,\n getEventCode,\n getEventKey,\n isNumber,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport { ArrowDown, ArrowUp, Minus, Plus } from '@element-plus/icons-vue'\nimport {\n CHANGE_EVENT,\n EVENT_CODE,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@element-plus/constants'\nimport { inputNumberEmits } from './input-number'\n\nimport type { InputInstance } from '@element-plus/components/input'\nimport type { InputNumberProps } from './input-number'\n\ndefineOptions({\n name: 'ElInputNumber',\n})\n\nconst props = withDefaults(defineProps<InputNumberProps>(), {\n id: undefined,\n disabled: undefined,\n step: 1,\n max: Number.MAX_SAFE_INTEGER,\n min: Number.MIN_SAFE_INTEGER,\n stepStrictly: false,\n readonly: false,\n controls: true,\n controlsPosition: '',\n valueOnClear: null,\n validateEvent: true,\n inputmode: undefined,\n align: 'center',\n tabindex: 0,\n})\nconst emit = defineEmits(inputNumberEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('input-number')\nconst input = ref<InputInstance>()\n\ninterface Data {\n currentValue: number | null | undefined\n userInput: null | number | string\n}\nconst data = reactive<Data>({\n currentValue: props.modelValue,\n userInput: null,\n})\n\nconst { formItem } = useFormItem()\n\nconst minDisabled = computed(\n () => isNumber(props.modelValue) && props.modelValue <= props.min\n)\nconst maxDisabled = computed(\n () => isNumber(props.modelValue) && props.modelValue >= props.max\n)\n\nconst numPrecision = computed(() => {\n const stepPrecision = getPrecision(props.step)\n if (!isUndefined(props.precision)) {\n if (stepPrecision > props.precision) {\n debugWarn(\n 'InputNumber',\n 'precision should not be less than the decimal places of step'\n )\n }\n return props.precision\n } else {\n return Math.max(getPrecision(props.modelValue), stepPrecision)\n }\n})\nconst controlsAtRight = computed(() => {\n return props.controls && props.controlsPosition === 'right'\n})\n\nconst inputNumberSize = useFormSize()\nconst inputNumberDisabled = useFormDisabled()\n\nconst displayValue = computed(() => {\n if (data.userInput !== null) {\n return data.userInput\n }\n let currentValue: number | string | undefined | null = data.currentValue\n if (isNil(currentValue)) return ''\n if (isNumber(currentValue)) {\n if (Number.isNaN(currentValue)) return ''\n if (!isUndefined(props.precision)) {\n currentValue = currentValue.toFixed(props.precision)\n }\n }\n return currentValue\n})\nconst toPrecision = (num: number, pre?: number) => {\n if (isUndefined(pre)) pre = numPrecision.value\n if (pre === 0) return Math.round(num)\n let snum = String(num)\n const pointPos = snum.indexOf('.')\n if (pointPos === -1) return num\n const nums = snum.replace('.', '').split('')\n const datum = nums[pointPos + pre]\n if (!datum) return num\n const length = snum.length\n if (snum.charAt(length - 1) === '5') {\n snum = `${snum.slice(0, Math.max(0, length - 1))}6`\n }\n return Number.parseFloat(Number(snum).toFixed(pre))\n}\nconst getPrecision = (value: number | null | undefined) => {\n if (isNil(value)) return 0\n const valueString = value.toString()\n const dotPosition = valueString.indexOf('.')\n let precision = 0\n if (dotPosition !== -1) {\n precision = valueString.length - dotPosition - 1\n }\n return precision\n}\nconst ensurePrecision = (val: number, coefficient: 1 | -1 = 1) => {\n if (!isNumber(val)) return data.currentValue\n if (val >= Number.MAX_SAFE_INTEGER && coefficient === 1) {\n debugWarn(\n 'InputNumber',\n 'The value has reached the maximum safe integer limit.'\n )\n return val\n } else if (val <= Number.MIN_SAFE_INTEGER && coefficient === -1) {\n debugWarn(\n 'InputNumber',\n 'The value has reached the minimum safe integer limit.'\n )\n return val\n }\n\n // Solve the accuracy problem of JS decimal calculation by converting the value to integer.\n return toPrecision(val + props.step * coefficient)\n}\nconst handleKeydown = (event: KeyboardEvent | Event) => {\n const code = getEventCode(event as KeyboardEvent)\n const key = getEventKey(event as KeyboardEvent)\n\n if (props.disabledScientific && ['e', 'E'].includes(key)) {\n event.preventDefault()\n return\n }\n\n switch (code) {\n case EVENT_CODE.up: {\n event.preventDefault()\n increase()\n break\n }\n case EVENT_CODE.down: {\n event.preventDefault()\n decrease()\n break\n }\n }\n}\nconst increase = () => {\n if (props.readonly || inputNumberDisabled.value || maxDisabled.value) return\n const value = Number(displayValue.value) || 0\n const newVal = ensurePrecision(value)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n setCurrentValueToModelValue()\n}\nconst decrease = () => {\n if (props.readonly || inputNumberDisabled.value || minDisabled.value) return\n const value = Number(displayValue.value) || 0\n const newVal = ensurePrecision(value, -1)\n setCurrentValue(newVal)\n emit(INPUT_EVENT, data.currentValue)\n setCurrentValueToModelValue()\n}\nconst verifyValue = (\n value: number | string | null | undefined,\n update?: boolean\n): number | null | undefined => {\n const { max, min, step, precision, stepStrictly, valueOnClear } = props\n if (max < min) {\n throwError('InputNumber', 'min should not be greater than max.')\n }\n let newVal = !value ? Number(value) : Number.parseFloat(String(value))\n if (isNil(value) || Number.isNaN(newVal)) {\n return null\n }\n if (value === '') {\n if (valueOnClear === null) {\n return null\n }\n newVal = isString(valueOnClear) ? { min, max }[valueOnClear] : valueOnClear\n }\n if (stepStrictly) {\n newVal = toPrecision(\n Math.round(toPrecision(newVal / step)) * step,\n precision\n )\n if (newVal !== value) {\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n }\n if (!isUndefined(precision)) {\n newVal = toPrecision(newVal, precision)\n }\n if (newVal > max || newVal < min) {\n newVal = newVal > max ? max : min\n update && emit(UPDATE_MODEL_EVENT, newVal)\n }\n return newVal\n}\nconst setCurrentValue = (\n value: number | string | null | undefined,\n emitChange = true\n) => {\n const oldVal = data.currentValue\n const newVal = verifyValue(value)\n if (!emitChange) {\n emit(UPDATE_MODEL_EVENT, newVal!)\n return\n }\n data.userInput = null\n if (oldVal === newVal && value) return\n emit(UPDATE_MODEL_EVENT, newVal!)\n if (oldVal !== newVal) {\n emit(CHANGE_EVENT, newVal!, oldVal!)\n }\n if (props.validateEvent) {\n formItem?.validate?.('change').catch(NOOP)\n }\n data.currentValue = newVal\n}\nconst handleInput = (value: string) => {\n data.userInput = value\n let newVal = value === '' ? null : Number.parseFloat(value)\n if (Number.isNaN(newVal)) {\n newVal = null\n }\n emit(INPUT_EVENT, newVal)\n setCurrentValue(newVal, false)\n}\nconst handleInputChange = (value: string) => {\n const newVal = value !== '' ? Number.parseFloat(value) : ''\n if (\n (isNumber(newVal) && !Number.isNaN(newVal)) ||\n (props.formatter && Number.isNaN(newVal)) ||\n newVal === ''\n ) {\n setCurrentValue(newVal)\n }\n setCurrentValueToModelValue()\n data.userInput = null\n}\n\nconst focus = () => {\n input.value?.focus?.()\n}\n\nconst blur = () => {\n input.value?.blur?.()\n}\n\nconst handleFocus = (event: MouseEvent | FocusEvent) => {\n emit('focus', event)\n}\n\nconst handleBlur = (event: MouseEvent | FocusEvent) => {\n data.userInput = null\n // When non-numeric content is entered into a numeric input box,\n // the content displayed on the page is not cleared after the value is cleared. #18533\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1398528\n if (data.currentValue === null && input.value?.input) {\n input.value.input.value = props.formatter?.('') ?? ''\n }\n emit('blur', event)\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch(NOOP)\n }\n}\n\nconst setCurrentValueToModelValue = () => {\n if (data.currentValue !== props.modelValue) {\n data.currentValue = props.modelValue\n }\n}\nconst handleWheel = (e: WheelEvent) => {\n if (document.activeElement === e.target) e.preventDefault()\n}\n\nconst updateAriaAttributes = () => {\n const innerInput = input.value?.input as HTMLInputElement | undefined\n if (!innerInput) return\n\n const { min, max } = props\n if (Number.isFinite(max)) {\n innerInput.setAttribute('aria-valuemax', String(max))\n } else {\n innerInput.removeAttribute('aria-valuemax')\n }\n if (Number.isFinite(min)) {\n innerInput.setAttribute('aria-valuemin', String(min))\n } else {\n innerInput.removeAttribute('aria-valuemin')\n }\n innerInput.setAttribute(\n 'aria-valuenow',\n data.currentValue || data.currentValue === 0\n ? String(data.currentValue)\n : ''\n )\n innerInput.setAttribute('aria-disabled', String(inputNumberDisabled.value))\n}\n\nwatch(\n () => props.modelValue,\n (value, oldValue) => {\n const newValue = verifyValue(value, true)\n if (data.userInput === null && newValue !== oldValue) {\n data.currentValue = newValue\n }\n },\n { immediate: true }\n)\n\nwatch(\n () => props.precision,\n () => {\n data.currentValue = verifyValue(props.modelValue)\n }\n)\nonMounted(() => {\n const { modelValue } = props\n const innerInput = input.value?.input as HTMLInputElement\n innerInput.setAttribute('role', 'spinbutton')\n updateAriaAttributes()\n if (!isNumber(modelValue) && modelValue != null) {\n let val: number | null = Number(modelValue)\n if (Number.isNaN(val)) {\n val = null\n }\n emit(UPDATE_MODEL_EVENT, val!)\n }\n innerInput.addEventListener('wheel', handleWheel, { passive: false })\n})\nonUpdated(() => {\n updateAriaAttributes()\n})\ndefineExpose({\n /** @description get focus the input component */\n focus,\n /** @description remove focus the input component */\n blur,\n})\n</script>\n"],"mappings":""}
|
|
@@ -22,23 +22,23 @@ declare const __VLS_base: _$vue.DefineComponent<InputOtpProps, {
|
|
|
22
22
|
*/
|
|
23
23
|
blur: () => void;
|
|
24
24
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
25
|
-
change: (value: string) => void;
|
|
26
25
|
"update:modelValue": (value: string) => void;
|
|
26
|
+
change: (value: string) => void;
|
|
27
27
|
focus: (eve: FocusEvent) => void;
|
|
28
28
|
blur: (eve: FocusEvent) => void;
|
|
29
29
|
finish: (value: string) => void;
|
|
30
30
|
}, string, _$vue.PublicProps, Readonly<InputOtpProps> & Readonly<{
|
|
31
|
-
onChange?: ((value: string) => any) | undefined;
|
|
32
31
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
|
+
onChange?: ((value: string) => any) | undefined;
|
|
33
33
|
onFocus?: ((eve: FocusEvent) => any) | undefined;
|
|
34
34
|
onBlur?: ((eve: FocusEvent) => any) | undefined;
|
|
35
35
|
onFinish?: ((value: string) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
length: number;
|
|
38
37
|
type: "filled" | "outlined" | "underlined";
|
|
38
|
+
length: number;
|
|
39
|
+
validator: (char: string, index: number) => boolean;
|
|
39
40
|
disabled: boolean;
|
|
40
41
|
validateEvent: boolean;
|
|
41
|
-
validator: (char: string, index: number) => boolean;
|
|
42
42
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
43
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -132,7 +132,7 @@ declare const inputTagProps: {
|
|
|
132
132
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
133
133
|
readonly __epPropKey: true;
|
|
134
134
|
};
|
|
135
|
-
readonly tagEffect: EpPropFinalized<StringConstructor, "
|
|
135
|
+
readonly tagEffect: EpPropFinalized<StringConstructor, "plain" | "dark" | "light", unknown, "light", boolean>;
|
|
136
136
|
readonly effect: EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown, "light", boolean>;
|
|
137
137
|
readonly trigger: EpPropFinalized<(new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space") | (((new (...args: any[]) => "Enter" | "Space") | (() => "Enter" | "Space")) | null)[], unknown, unknown, string, boolean>;
|
|
138
138
|
readonly draggable: BooleanConstructor;
|
|
@@ -24,29 +24,29 @@ declare const __VLS_base: _$vue.DefineComponent<InputTagProps, {
|
|
|
24
24
|
focus: () => void;
|
|
25
25
|
blur: () => void;
|
|
26
26
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
27
|
-
change: (value?: string[] | undefined) => void;
|
|
28
|
-
clear: () => void;
|
|
29
27
|
"update:modelValue": (value?: string[] | undefined) => void;
|
|
28
|
+
change: (value?: string[] | undefined) => void;
|
|
30
29
|
input: (value: string) => void;
|
|
30
|
+
clear: () => void;
|
|
31
31
|
focus: (evt: FocusEvent) => void;
|
|
32
32
|
blur: (evt: FocusEvent) => void;
|
|
33
33
|
"add-tag": (value: string | string[]) => void;
|
|
34
34
|
"remove-tag": (value: string, index: number) => void;
|
|
35
35
|
"drag-tag": (oldIndex: number, newIndex: number, value: string) => void;
|
|
36
36
|
}, string, _$vue.PublicProps, Readonly<InputTagProps> & Readonly<{
|
|
37
|
-
onChange?: ((value?: string[] | undefined) => any) | undefined;
|
|
38
|
-
onClear?: (() => any) | undefined;
|
|
39
37
|
"onUpdate:modelValue"?: ((value?: string[] | undefined) => any) | undefined;
|
|
38
|
+
onChange?: ((value?: string[] | undefined) => any) | undefined;
|
|
40
39
|
onInput?: ((value: string) => any) | undefined;
|
|
40
|
+
onClear?: (() => any) | undefined;
|
|
41
41
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
42
42
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
43
43
|
"onAdd-tag"?: ((value: string | string[]) => any) | undefined;
|
|
44
44
|
"onRemove-tag"?: ((value: string, index: number) => any) | undefined;
|
|
45
45
|
"onDrag-tag"?: ((oldIndex: number, newIndex: number, value: string) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
|
+
disabled: boolean;
|
|
47
48
|
effect: PopperEffect;
|
|
48
49
|
id: string;
|
|
49
|
-
disabled: boolean;
|
|
50
50
|
autocomplete: string;
|
|
51
51
|
clearIcon: IconPropType;
|
|
52
52
|
tabindex: string | number;
|
|
@@ -54,7 +54,7 @@ declare const __VLS_base: _$vue.DefineComponent<InputTagProps, {
|
|
|
54
54
|
trigger: "Enter" | "Space";
|
|
55
55
|
maxCollapseTags: number;
|
|
56
56
|
tagType: "primary" | "success" | "warning" | "info" | "danger";
|
|
57
|
-
tagEffect: "
|
|
57
|
+
tagEffect: "plain" | "dark" | "light";
|
|
58
58
|
saveOnBlur: boolean;
|
|
59
59
|
delimiter: string | RegExp;
|
|
60
60
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: _$vue.DefineComponent<LinkProps, {}, {}, {}, {}, _$vue
|
|
|
13
13
|
}, string, _$vue.PublicProps, Readonly<LinkProps> & Readonly<{
|
|
14
14
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
target: (string & {}) | "_self" | "_blank" | "_parent" | "_top";
|
|
17
16
|
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
17
|
+
target: (string & {}) | "_self" | "_blank" | "_parent" | "_top";
|
|
18
18
|
underline: boolean | "always" | "never" | "hover";
|
|
19
19
|
href: string;
|
|
20
20
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -97,7 +97,7 @@ declare const mentionProps: {
|
|
|
97
97
|
popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
|
98
98
|
popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => Partial<Options>, boolean>;
|
|
99
99
|
props: EpPropFinalized<(new (...args: any[]) => MentionOptionProps) | (() => MentionOptionProps) | (((new (...args: any[]) => MentionOptionProps) | (() => MentionOptionProps)) | null)[], unknown, unknown, () => Required<MentionOptionProps>, boolean>;
|
|
100
|
-
inputmode: EpPropFinalized<(new (...args: any[]) => "
|
|
100
|
+
inputmode: EpPropFinalized<(new (...args: any[]) => "text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined) | (((new (...args: any[]) => "text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal") | (() => "text" | "search" | "email" | "tel" | "url" | "none" | "numeric" | "decimal" | undefined)) | null)[], unknown, unknown, undefined, boolean>;
|
|
101
101
|
name: StringConstructor;
|
|
102
102
|
ariaLabel: StringConstructor;
|
|
103
103
|
id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
@@ -7,9 +7,9 @@ import * as _$vue from "vue";
|
|
|
7
7
|
//#region ../../packages/components/mention/src/mention.vue.d.ts
|
|
8
8
|
declare const __VLS_export: <T extends MentionOption = MentionOption>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
9
9
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<MentionProps<T> & {
|
|
10
|
-
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
11
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
11
|
onInput?: ((value: string) => any) | undefined;
|
|
12
|
+
onSearch?: ((pattern: string, prefix: string) => any) | undefined;
|
|
13
13
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
14
14
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
15
15
|
onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
|
|
@@ -46,7 +46,7 @@ declare const __VLS_export: <T extends MentionOption = MentionOption>(__VLS_prop
|
|
|
46
46
|
index: number;
|
|
47
47
|
}) => any;
|
|
48
48
|
};
|
|
49
|
-
emit: ((event: "
|
|
49
|
+
emit: ((event: "update:modelValue", value: string) => void) & ((event: "input", value: string) => void) & ((event: "search", pattern: string, prefix: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "select", option: MentionOption, prefix: string) => void) & ((event: "whole-remove", pattern: string, prefix: string) => void);
|
|
50
50
|
}>) => _$vue.VNode & {
|
|
51
51
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
52
52
|
};
|
|
@@ -124,8 +124,8 @@ declare const _default: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
124
124
|
__epPropKey: true;
|
|
125
125
|
};
|
|
126
126
|
}>> & Readonly<{}>, {
|
|
127
|
-
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
128
127
|
readonly disabled: boolean;
|
|
128
|
+
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
129
129
|
readonly popperClass: ClassValue;
|
|
130
130
|
readonly popperStyle: StyleValue;
|
|
131
131
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -130,7 +130,7 @@ declare const messageProps: {
|
|
|
130
130
|
readonly prototype: any;
|
|
131
131
|
}) | null)[], unknown, unknown, undefined, boolean>;
|
|
132
132
|
readonly showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
133
|
-
readonly type: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "
|
|
133
|
+
readonly type: EpPropFinalized<StringConstructor, "primary" | "success" | "warning" | "info" | "error", unknown, "info", boolean>;
|
|
134
134
|
readonly plain: EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
135
135
|
readonly offset: EpPropFinalized<NumberConstructor, unknown, unknown, 16, boolean>;
|
|
136
136
|
readonly placement: EpPropFinalized<StringConstructor, "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right", unknown, undefined, boolean>;
|
|
@@ -18,19 +18,19 @@ declare const __VLS_base: _$vue.DefineComponent<MessageProps, {
|
|
|
18
18
|
}, string, _$vue.PublicProps, Readonly<MessageProps> & Readonly<{
|
|
19
19
|
onDestroy?: (() => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
+
type: "primary" | "success" | "warning" | "info" | "error";
|
|
22
|
+
message: string | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}> | (() => _$vue.VNode);
|
|
21
25
|
zIndex: number;
|
|
26
|
+
icon: IconPropType;
|
|
27
|
+
plain: boolean;
|
|
22
28
|
offset: number;
|
|
23
|
-
type: "primary" | "success" | "warning" | "error" | "info";
|
|
24
29
|
onClose: () => void;
|
|
25
|
-
duration: number;
|
|
26
30
|
id: string;
|
|
27
|
-
icon: IconPropType;
|
|
28
31
|
placement: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
29
|
-
message: string | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
}> | (() => _$vue.VNode);
|
|
32
|
-
plain: boolean;
|
|
33
32
|
showClose: boolean;
|
|
33
|
+
duration: number;
|
|
34
34
|
customClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
35
35
|
dangerouslyUseHTMLString: boolean;
|
|
36
36
|
grouping: boolean;
|
|
@@ -90,7 +90,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
90
90
|
}>;
|
|
91
91
|
contentId: _$vue.Ref<string, string>;
|
|
92
92
|
inputId: _$vue.Ref<string, string>;
|
|
93
|
-
btnSize: _$vue.ComputedRef<"" | "
|
|
93
|
+
btnSize: _$vue.ComputedRef<"default" | "" | "small" | "large">;
|
|
94
94
|
iconComponent: _$vue.ComputedRef<string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
|
95
95
|
new (...args: any[]): any;
|
|
96
96
|
__isFragment?: never;
|
|
@@ -230,7 +230,7 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
230
230
|
autofocus: _$vue.Ref<boolean, boolean>;
|
|
231
231
|
title: _$vue.Ref<string | undefined, string | undefined>;
|
|
232
232
|
message: _$vue.Ref<string, string>;
|
|
233
|
-
type: _$vue.Ref<"" | "primary" | "success" | "warning" | "
|
|
233
|
+
type: _$vue.Ref<"" | "primary" | "success" | "warning" | "info" | "error", "" | "primary" | "success" | "warning" | "info" | "error">;
|
|
234
234
|
icon: _$vue.Ref<string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
|
235
235
|
new (...args: any[]): any;
|
|
236
236
|
__isFragment?: never;
|
|
@@ -4032,8 +4032,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4032
4032
|
dangerouslyUseHTMLString: _$vue.Ref<boolean, boolean>;
|
|
4033
4033
|
confirmButtonText: _$vue.Ref<string, string>;
|
|
4034
4034
|
cancelButtonText: _$vue.Ref<string, string>;
|
|
4035
|
-
confirmButtonType: _$vue.Ref<"" | "default" | "
|
|
4036
|
-
cancelButtonType: _$vue.Ref<"" | "default" | "
|
|
4035
|
+
confirmButtonType: _$vue.Ref<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
4036
|
+
cancelButtonType: _$vue.Ref<"" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
4037
4037
|
confirmButtonLoading: _$vue.Ref<boolean, boolean>;
|
|
4038
4038
|
cancelButtonLoading: _$vue.Ref<boolean, boolean>;
|
|
4039
4039
|
confirmButtonLoadingIcon: _$vue.Ref<string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
|
@@ -4602,20 +4602,20 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4602
4602
|
}>, {
|
|
4603
4603
|
ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
4604
4604
|
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
4605
|
-
type: _$vue.ComputedRef<"" | "
|
|
4605
|
+
type: _$vue.ComputedRef<"default" | "" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
4606
4606
|
disabled: _$vue.ComputedRef<boolean>;
|
|
4607
4607
|
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
|
4608
4608
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
4609
4609
|
click: (evt: MouseEvent) => void;
|
|
4610
4610
|
}, _$vue.PublicProps, {
|
|
4611
|
-
type: "" | "default" | "
|
|
4611
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
4612
4612
|
disabled: boolean;
|
|
4613
|
+
nativeType: "button" | "submit" | "reset";
|
|
4614
|
+
loadingIcon: IconPropType;
|
|
4615
|
+
plain: boolean;
|
|
4613
4616
|
text: boolean;
|
|
4614
4617
|
round: boolean;
|
|
4615
4618
|
dashed: boolean;
|
|
4616
|
-
nativeType: "button" | "reset" | "submit";
|
|
4617
|
-
loadingIcon: IconPropType;
|
|
4618
|
-
plain: boolean;
|
|
4619
4619
|
autoInsertSpace: boolean;
|
|
4620
4620
|
tag: string | _$vue.Component;
|
|
4621
4621
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
@@ -4630,18 +4630,18 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4630
4630
|
}>, {
|
|
4631
4631
|
ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
4632
4632
|
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
4633
|
-
type: _$vue.ComputedRef<"" | "
|
|
4633
|
+
type: _$vue.ComputedRef<"default" | "" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
4634
4634
|
disabled: _$vue.ComputedRef<boolean>;
|
|
4635
4635
|
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
|
4636
4636
|
}, {}, {}, {}, {
|
|
4637
|
-
type: "" | "default" | "
|
|
4637
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
4638
4638
|
disabled: boolean;
|
|
4639
|
+
nativeType: "button" | "submit" | "reset";
|
|
4640
|
+
loadingIcon: IconPropType;
|
|
4641
|
+
plain: boolean;
|
|
4639
4642
|
text: boolean;
|
|
4640
4643
|
round: boolean;
|
|
4641
4644
|
dashed: boolean;
|
|
4642
|
-
nativeType: "button" | "reset" | "submit";
|
|
4643
|
-
loadingIcon: IconPropType;
|
|
4644
|
-
plain: boolean;
|
|
4645
4645
|
autoInsertSpace: boolean;
|
|
4646
4646
|
tag: string | _$vue.Component;
|
|
4647
4647
|
}>;
|
|
@@ -4653,20 +4653,20 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4653
4653
|
}>, {
|
|
4654
4654
|
ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
4655
4655
|
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
4656
|
-
type: _$vue.ComputedRef<"" | "
|
|
4656
|
+
type: _$vue.ComputedRef<"default" | "" | "text" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
4657
4657
|
disabled: _$vue.ComputedRef<boolean>;
|
|
4658
4658
|
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
|
4659
4659
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
4660
4660
|
click: (evt: MouseEvent) => void;
|
|
4661
4661
|
}, string, {
|
|
4662
|
-
type: "" | "default" | "
|
|
4662
|
+
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
4663
4663
|
disabled: boolean;
|
|
4664
|
+
nativeType: "button" | "submit" | "reset";
|
|
4665
|
+
loadingIcon: IconPropType;
|
|
4666
|
+
plain: boolean;
|
|
4664
4667
|
text: boolean;
|
|
4665
4668
|
round: boolean;
|
|
4666
4669
|
dashed: boolean;
|
|
4667
|
-
nativeType: "button" | "reset" | "submit";
|
|
4668
|
-
loadingIcon: IconPropType;
|
|
4669
|
-
plain: boolean;
|
|
4670
4670
|
autoInsertSpace: boolean;
|
|
4671
4671
|
tag: string | _$vue.Component;
|
|
4672
4672
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
@@ -4681,14 +4681,14 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4681
4681
|
setPropsDefaults: (defaults: {
|
|
4682
4682
|
readonly size?: "" | "default" | "small" | "large" | (() => "" | "default" | "small" | "large") | undefined;
|
|
4683
4683
|
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
4684
|
-
readonly type?: "" | "default" | "
|
|
4684
|
+
readonly type?: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger" | (() => "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
|
|
4685
4685
|
readonly icon?: string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
|
4686
4686
|
new (...args: any[]): any;
|
|
4687
4687
|
__isFragment?: never;
|
|
4688
4688
|
__isTeleport?: never;
|
|
4689
4689
|
__isSuspense?: never;
|
|
4690
4690
|
} | (() => (IconPropType | undefined) & {}) | undefined;
|
|
4691
|
-
readonly nativeType?: "button" | "
|
|
4691
|
+
readonly nativeType?: "button" | "submit" | "reset" | (() => "button" | "submit" | "reset") | undefined;
|
|
4692
4692
|
readonly loading?: boolean | (() => boolean) | undefined;
|
|
4693
4693
|
readonly loadingIcon?: string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
|
4694
4694
|
new (...args: any[]): any;
|
|
@@ -4745,14 +4745,14 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4745
4745
|
}>, {
|
|
4746
4746
|
loop: boolean;
|
|
4747
4747
|
trapped: boolean;
|
|
4748
|
-
focusStartEl: HTMLElement | "
|
|
4748
|
+
focusStartEl: HTMLElement | "first" | "container";
|
|
4749
4749
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
4750
4750
|
ElInput: SFCWithInstall<{
|
|
4751
4751
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<InputProps> & Readonly<{
|
|
4752
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4753
|
-
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4754
4752
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4753
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4755
4754
|
onInput?: ((value: string) => any) | undefined;
|
|
4755
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4756
4756
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
4757
4757
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
4758
4758
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -4775,10 +4775,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4775
4775
|
clear: (evt?: MouseEvent) => void;
|
|
4776
4776
|
resizeTextarea: () => void;
|
|
4777
4777
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
4778
|
-
change: (value: string, evt?: Event | undefined) => void;
|
|
4779
|
-
clear: (evt: MouseEvent | undefined) => void;
|
|
4780
4778
|
"update:modelValue": (value: string) => void;
|
|
4779
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
4781
4780
|
input: (value: string) => void;
|
|
4781
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
4782
4782
|
focus: (evt: FocusEvent) => void;
|
|
4783
4783
|
blur: (evt: FocusEvent) => void;
|
|
4784
4784
|
mouseleave: (evt: MouseEvent) => void;
|
|
@@ -4807,10 +4807,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4807
4807
|
M: {};
|
|
4808
4808
|
Defaults: {};
|
|
4809
4809
|
}, Readonly<InputProps> & Readonly<{
|
|
4810
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4811
|
-
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4812
4810
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4811
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4813
4812
|
onInput?: ((value: string) => any) | undefined;
|
|
4813
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4814
4814
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
4815
4815
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
4816
4816
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -4849,10 +4849,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4849
4849
|
__isTeleport?: never;
|
|
4850
4850
|
__isSuspense?: never;
|
|
4851
4851
|
} & _$vue.ComponentOptionsBase<Readonly<InputProps> & Readonly<{
|
|
4852
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4853
|
-
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4854
4852
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
4853
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
4855
4854
|
onInput?: ((value: string) => any) | undefined;
|
|
4855
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
4856
4856
|
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
4857
4857
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
4858
4858
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
@@ -4875,10 +4875,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
4875
4875
|
clear: (evt?: MouseEvent) => void;
|
|
4876
4876
|
resizeTextarea: () => void;
|
|
4877
4877
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
4878
|
-
change: (value: string, evt?: Event | undefined) => void;
|
|
4879
|
-
clear: (evt: MouseEvent | undefined) => void;
|
|
4880
4878
|
"update:modelValue": (value: string) => void;
|
|
4879
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
4881
4880
|
input: (value: string) => void;
|
|
4881
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
4882
4882
|
focus: (evt: FocusEvent) => void;
|
|
4883
4883
|
blur: (evt: FocusEvent) => void;
|
|
4884
4884
|
mouseleave: (evt: MouseEvent) => void;
|
|
@@ -127,7 +127,7 @@ declare const notificationProps: {
|
|
|
127
127
|
readonly position: EpPropFinalized<StringConstructor, "top-left" | "top-right" | "bottom-left" | "bottom-right", unknown, "top-right", boolean>;
|
|
128
128
|
readonly showClose: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
129
129
|
readonly title: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
130
|
-
readonly type: EpPropFinalized<StringConstructor, "" | "primary" | "success" | "warning" | "
|
|
130
|
+
readonly type: EpPropFinalized<StringConstructor, "" | "primary" | "success" | "warning" | "info" | "error", unknown, "", boolean>;
|
|
131
131
|
readonly zIndex: NumberConstructor;
|
|
132
132
|
readonly closeIcon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>, boolean>;
|
|
133
133
|
readonly progress: EpPropFinalized<(new (...args: any[]) => boolean | NotificationProgress) | (() => boolean | NotificationProgress) | (((new (...args: any[]) => boolean | NotificationProgress) | (() => boolean | NotificationProgress)) | null)[], unknown, unknown, false, boolean>;
|
|
@@ -17,20 +17,20 @@ declare const __VLS_base: _$vue.DefineComponent<NotificationProps, {
|
|
|
17
17
|
}, string, _$vue.PublicProps, Readonly<NotificationProps> & Readonly<{
|
|
18
18
|
onDestroy?: (() => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
+
type: NotificationType;
|
|
21
|
+
message: string | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}> | (() => _$vue.VNode);
|
|
24
|
+
onClick: () => void;
|
|
20
25
|
offset: number;
|
|
21
26
|
position: NotificationPosition;
|
|
22
|
-
type: NotificationType;
|
|
23
27
|
title: string;
|
|
24
|
-
duration: number;
|
|
25
|
-
onClick: () => void;
|
|
26
28
|
id: string;
|
|
27
29
|
progress: boolean | NotificationProgress;
|
|
28
|
-
message: string | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}> | (() => _$vue.VNode);
|
|
31
30
|
pauseOnHover: boolean;
|
|
32
31
|
closeIcon: IconPropType;
|
|
33
32
|
showClose: boolean;
|
|
33
|
+
duration: number;
|
|
34
34
|
customClass: string | false | Record<string, any> | ClassValue[] | null;
|
|
35
35
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_base: _$vue.DefineComponent<PageHeaderProps, {}, {}, {}, {},
|
|
|
22
22
|
}, string, _$vue.PublicProps, Readonly<PageHeaderProps> & Readonly<{
|
|
23
23
|
onBack?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
content: string;
|
|
26
25
|
icon: IconPropType;
|
|
26
|
+
content: string;
|
|
27
27
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
@@ -46,8 +46,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
46
46
|
}>> & Readonly<{
|
|
47
47
|
"onPage-size-change"?: ((...args: any[]) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
|
-
readonly teleported: boolean;
|
|
50
49
|
readonly disabled: boolean;
|
|
50
|
+
readonly teleported: boolean;
|
|
51
51
|
readonly popperClass: ClassValue;
|
|
52
52
|
readonly popperStyle: _$vue.StyleValue;
|
|
53
53
|
readonly pageSizes: number[];
|
|
@@ -120,10 +120,10 @@ declare const _default: _$vue.DefineComponent<ExtractPropTypes<{
|
|
|
120
120
|
"onPrev-click"?: ((val: number) => any) | undefined;
|
|
121
121
|
"onNext-click"?: ((val: number) => any) | undefined;
|
|
122
122
|
}>, {
|
|
123
|
-
readonly layout: string;
|
|
124
|
-
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
125
123
|
readonly small: boolean;
|
|
126
124
|
readonly disabled: boolean;
|
|
125
|
+
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
126
|
+
readonly layout: string;
|
|
127
127
|
readonly popperClass: ClassValue;
|
|
128
128
|
readonly popperStyle: StyleValue;
|
|
129
129
|
readonly background: boolean;
|
|
@@ -79,8 +79,8 @@ declare const popconfirmProps: {
|
|
|
79
79
|
readonly title: StringConstructor;
|
|
80
80
|
readonly confirmButtonText: StringConstructor;
|
|
81
81
|
readonly cancelButtonText: StringConstructor;
|
|
82
|
-
readonly confirmButtonType: EpPropFinalized<StringConstructor, "" | "default" | "
|
|
83
|
-
readonly cancelButtonType: EpPropFinalized<StringConstructor, "" | "default" | "
|
|
82
|
+
readonly confirmButtonType: EpPropFinalized<StringConstructor, "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
|
|
83
|
+
readonly cancelButtonType: EpPropFinalized<StringConstructor, "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger", unknown, "text", boolean>;
|
|
84
84
|
readonly icon: EpPropFinalized<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown, () => _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>, boolean>;
|
|
85
85
|
readonly iconColor: EpPropFinalized<StringConstructor, unknown, unknown, "#f90", boolean>;
|
|
86
86
|
readonly hideIcon: BooleanConstructor;
|
|
@@ -23,13 +23,13 @@ declare const __VLS_base: _$vue.DefineComponent<PopconfirmProps, {
|
|
|
23
23
|
onConfirm?: ((e: MouseEvent) => any) | undefined;
|
|
24
24
|
onCancel?: ((e: MouseEvent) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
+
icon: IconPropType;
|
|
26
27
|
teleported: boolean;
|
|
27
28
|
effect: PopperEffect;
|
|
28
|
-
icon: IconPropType;
|
|
29
29
|
hideAfter: number;
|
|
30
30
|
width: string | number;
|
|
31
|
-
confirmButtonType: "" | "default" | "
|
|
32
|
-
cancelButtonType: "" | "default" | "
|
|
31
|
+
confirmButtonType: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
32
|
+
cancelButtonType: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
33
33
|
iconColor: string;
|
|
34
34
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -28,7 +28,7 @@ interface PopoverProps extends Omit<UseTooltipProps, 'ariaLabel' | 'gpuAccelerat
|
|
|
28
28
|
* @deprecated Removed after 3.0.0, Use `PopoverProps` instead.
|
|
29
29
|
*/
|
|
30
30
|
declare const popoverProps: {
|
|
31
|
-
readonly placement: EpPropFinalized<(new (...args: any[]) => "
|
|
31
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "auto" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "left" | "right" | "top" | "auto" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], unknown, unknown, "bottom", boolean>;
|
|
32
32
|
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
|
33
33
|
readonly effect: {
|
|
34
34
|
readonly default: "light";
|
|
@@ -48,15 +48,16 @@ declare const popoverProps: {
|
|
|
48
48
|
};
|
|
49
49
|
readonly persistent: EpPropFinalized<unknown, unknown, unknown, true, boolean>;
|
|
50
50
|
readonly zIndex: NumberConstructor;
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly type: _$vue.PropType<
|
|
51
|
+
readonly disabled: BooleanConstructor;
|
|
52
|
+
readonly onClick: {
|
|
53
|
+
readonly type: _$vue.PropType<(e: PointerEvent) => void>;
|
|
54
54
|
readonly required: false;
|
|
55
55
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
56
56
|
__epPropKey: true;
|
|
57
57
|
};
|
|
58
|
-
readonly
|
|
59
|
-
|
|
58
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
59
|
+
readonly appendTo: {
|
|
60
|
+
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
|
60
61
|
readonly required: false;
|
|
61
62
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
63
|
__epPropKey: true;
|
|
@@ -74,7 +75,6 @@ declare const popoverProps: {
|
|
|
74
75
|
__epPropKey: true;
|
|
75
76
|
};
|
|
76
77
|
readonly id: StringConstructor;
|
|
77
|
-
readonly disabled: BooleanConstructor;
|
|
78
78
|
readonly onKeydown: {
|
|
79
79
|
readonly type: _$vue.PropType<(e: KeyboardEvent) => void>;
|
|
80
80
|
readonly required: false;
|
|
@@ -142,7 +142,7 @@ declare const popoverProps: {
|
|
|
142
142
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
143
143
|
__epPropKey: true;
|
|
144
144
|
};
|
|
145
|
-
readonly role: EpPropFinalized<StringConstructor, "
|
|
145
|
+
readonly role: EpPropFinalized<StringConstructor, "dialog" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | "tree", unknown, "tooltip", boolean>;
|
|
146
146
|
readonly transition: StringConstructor;
|
|
147
147
|
readonly showAfter: EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
148
148
|
readonly hideAfter: EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|