@element-plus/nightly 0.0.20260314 → 0.0.20260316
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/attributes.json +1 -1
- package/dist/index.full.js +614 -531
- package/dist/index.full.min.js +9 -9
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +614 -531
- 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/components/affix/src/affix.d.ts +2 -2
- package/es/components/affix/src/affix.vue.d.ts +3 -3
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +7 -7
- package/es/components/avatar/src/avatar.d.ts +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +2 -2
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +3 -3
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +3 -3
- package/es/components/cascader/src/cascader.vue.d.ts +8 -8
- 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 +3 -3
- package/es/components/checkbox/src/checkbox.d.ts +8 -8
- 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.vue.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +4 -4
- package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/countdown/src/countdown.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +9 -9
- package/es/components/date-picker/src/props.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +4 -4
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +12 -12
- package/es/components/dialog/src/dialog.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +2 -2
- 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 +52 -52
- package/es/components/form/src/form-item.d.ts +1 -1
- package/es/components/form/src/form.d.ts +1 -1
- package/es/components/input/src/input.d.ts +2 -2
- package/es/components/input/src/input.vue.d.ts +2 -2
- package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +3 -1
- package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/src/input-number.d.ts +2 -2
- package/es/components/input-number/src/input-number.vue.d.ts +5 -5
- package/es/components/input-tag/src/input-tag.d.ts +2 -2
- package/es/components/input-tag/src/input-tag.vue.d.ts +7 -7
- package/es/components/link/src/link.vue.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +3 -3
- package/es/components/mention/src/mention.vue.d.ts +8 -8
- 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 +3 -3
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +2 -2
- package/es/components/overlay/index.d.ts +2 -2
- package/es/components/overlay/src/overlay.d.ts +1 -1
- package/es/components/pagination/src/pagination.d.ts +3 -3
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/es/components/popover/src/popover.d.ts +1 -1
- package/es/components/popover/src/popover.vue.d.ts +9 -9
- package/es/components/popper/src/composables/use-content.d.ts +3 -3
- package/es/components/popper/src/composables/use-content.mjs +9 -0
- package/es/components/popper/src/composables/use-content.mjs.map +1 -1
- package/es/components/popper/src/content.vue.d.ts +4 -4
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/radio/src/radio-button.d.ts +3 -3
- package/es/components/radio/src/radio-button.vue.d.ts +2 -2
- package/es/components/radio/src/radio-group.vue.d.ts +5 -5
- package/es/components/radio/src/radio.d.ts +6 -6
- package/es/components/radio/src/radio.vue.d.ts +3 -3
- package/es/components/rate/src/rate.vue.d.ts +2 -2
- 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 +1 -1
- package/es/components/segmented/index.d.ts +34 -66
- package/es/components/segmented/src/segmented.d.ts +6 -5
- package/es/components/segmented/src/segmented.mjs.map +1 -1
- package/es/components/segmented/src/segmented.vue.d.ts +21 -26
- package/es/components/segmented/src/segmented.vue_vue_type_script_setup_true_lang.mjs +58 -4
- package/es/components/segmented/src/segmented.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/segmented/src/segmented2.mjs.map +1 -1
- 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 +4 -4
- package/es/components/select/src/select.vue.d.ts +59 -59
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs +3 -2
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.d.ts +2 -2
- package/es/components/select-v2/src/select.vue.d.ts +41 -41
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/es/components/slider/src/slider.vue.d.ts +5 -5
- package/es/components/space/src/space.d.ts +4 -4
- 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.vue.d.ts +2 -2
- package/es/components/table/src/table-body/events-helper.mjs +1 -3
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/index.d.ts +17 -17
- package/es/components/table/src/table-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +13 -13
- package/es/components/table/src/table.vue.d.ts +33 -33
- package/es/components/tabs/src/tab-nav.mjs +13 -10
- package/es/components/tabs/src/tab-nav.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +5 -5
- package/es/components/tag/src/tag.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.d.ts +9 -9
- package/es/components/time-select/src/time-select.vue.d.ts +3 -3
- package/es/components/timeline/src/timeline-item.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +7 -7
- package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs +0 -3
- package/es/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/tooltip/src/content2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/es/components/tour/src/content.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/transfer/src/transfer.vue.d.ts +3 -3
- package/es/components/tree/src/tree.vue.d.ts +12 -12
- package/es/components/tree-select/src/tree-select.vue.d.ts +22 -22
- package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- 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/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/hooks/use-floating/index.d.ts +8 -8
- package/es/hooks/use-popper/index.d.ts +3 -3
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.mjs +2 -1
- package/es/utils/numbers.d.ts +9 -0
- package/es/utils/numbers.mjs +13 -0
- package/es/utils/numbers.mjs.map +1 -0
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix.d.ts +2 -2
- package/lib/components/affix/src/affix.vue.d.ts +3 -3
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +7 -7
- package/lib/components/avatar/src/avatar.d.ts +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +2 -2
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +3 -3
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +3 -3
- package/lib/components/cascader/src/cascader.vue.d.ts +8 -8
- 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 +3 -3
- package/lib/components/checkbox/src/checkbox.d.ts +8 -8
- 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.vue.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +4 -4
- package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +9 -9
- package/lib/components/date-picker/src/props.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +4 -4
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +12 -12
- package/lib/components/dialog/src/dialog.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -2
- 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 +52 -52
- package/lib/components/form/src/form-item.d.ts +1 -1
- package/lib/components/form/src/form.d.ts +1 -1
- package/lib/components/input/src/input.d.ts +2 -2
- package/lib/components/input/src/input.vue.d.ts +2 -2
- package/lib/components/input/src/input.vue_vue_type_script_setup_true_lang.js +3 -1
- package/lib/components/input/src/input.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/src/input-number.d.ts +2 -2
- package/lib/components/input-number/src/input-number.vue.d.ts +5 -5
- package/lib/components/input-tag/src/input-tag.d.ts +2 -2
- package/lib/components/input-tag/src/input-tag.vue.d.ts +7 -7
- package/lib/components/link/src/link.vue.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +3 -3
- package/lib/components/mention/src/mention.vue.d.ts +8 -8
- 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 +3 -3
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +2 -2
- package/lib/components/overlay/index.d.ts +2 -2
- package/lib/components/overlay/src/overlay.d.ts +1 -1
- package/lib/components/pagination/src/pagination.d.ts +3 -3
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/lib/components/popover/src/popover.d.ts +1 -1
- package/lib/components/popover/src/popover.vue.d.ts +9 -9
- package/lib/components/popper/src/composables/use-content.d.ts +3 -3
- package/lib/components/popper/src/composables/use-content.js +9 -0
- package/lib/components/popper/src/composables/use-content.js.map +1 -1
- package/lib/components/popper/src/content.vue.d.ts +4 -4
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/radio/src/radio-button.d.ts +3 -3
- package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-group.vue.d.ts +5 -5
- package/lib/components/radio/src/radio.d.ts +6 -6
- package/lib/components/radio/src/radio.vue.d.ts +3 -3
- package/lib/components/rate/src/rate.vue.d.ts +2 -2
- 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 +1 -1
- package/lib/components/segmented/index.d.ts +34 -66
- package/lib/components/segmented/src/segmented.d.ts +6 -5
- package/lib/components/segmented/src/segmented.js.map +1 -1
- package/lib/components/segmented/src/segmented.vue.d.ts +21 -26
- package/lib/components/segmented/src/segmented.vue_vue_type_script_setup_true_lang.js +57 -3
- package/lib/components/segmented/src/segmented.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/segmented/src/segmented2.js.map +1 -1
- 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 +4 -4
- package/lib/components/select/src/select.vue.d.ts +59 -59
- package/lib/components/select/src/select.vue_vue_type_script_lang.js +3 -2
- package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +2 -2
- package/lib/components/select-v2/src/select.vue.d.ts +41 -41
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +5 -5
- package/lib/components/space/src/space.d.ts +4 -4
- 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.vue.d.ts +2 -2
- package/lib/components/table/src/table-body/events-helper.js +2 -4
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table-column/index.d.ts +17 -17
- package/lib/components/table/src/table-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +13 -13
- package/lib/components/table/src/table.vue.d.ts +33 -33
- package/lib/components/tabs/src/tab-nav.js +13 -10
- package/lib/components/tabs/src/tab-nav.js.map +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +5 -5
- package/lib/components/tag/src/tag.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.d.ts +9 -9
- package/lib/components/time-select/src/time-select.vue.d.ts +3 -3
- package/lib/components/timeline/src/timeline-item.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +7 -7
- package/lib/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js +0 -3
- package/lib/components/tooltip/src/content.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/tooltip/src/content2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +8 -8
- package/lib/components/tour/src/content.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/transfer/src/transfer.vue.d.ts +3 -3
- package/lib/components/tree/src/tree.vue.d.ts +12 -12
- package/lib/components/tree-select/src/tree-select.vue.d.ts +22 -22
- package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- 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/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/hooks/use-floating/index.d.ts +8 -8
- package/lib/hooks/use-popper/index.d.ts +3 -3
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +2 -0
- package/lib/utils/numbers.d.ts +9 -0
- package/lib/utils/numbers.js +15 -0
- package/lib/utils/numbers.js.map +1 -0
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +4 -3
- package/web-types.json +1 -1
|
@@ -9,7 +9,7 @@ declare const spaceProps: {
|
|
|
9
9
|
readonly direction: EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
10
10
|
readonly class: EpPropFinalized<(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, "", boolean>;
|
|
11
11
|
readonly style: EpPropFinalized<(new (...args: any[]) => string | false | vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
12
|
-
readonly alignment: EpPropFinalized<(new (...args: any[]) => "inherit" | "initial" | "revert" | "
|
|
12
|
+
readonly alignment: EpPropFinalized<(new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems) | (((new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems)) | null)[], unknown, unknown, "center", boolean>;
|
|
13
13
|
readonly prefixCls: {
|
|
14
14
|
readonly type: vue.PropType<string>;
|
|
15
15
|
readonly required: false;
|
|
@@ -35,7 +35,7 @@ declare const Space: vue.DefineComponent<ExtractPropTypes<{
|
|
|
35
35
|
readonly direction: EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
36
36
|
readonly class: EpPropFinalized<(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, "", boolean>;
|
|
37
37
|
readonly style: EpPropFinalized<(new (...args: any[]) => string | false | vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
38
|
-
readonly alignment: EpPropFinalized<(new (...args: any[]) => "inherit" | "initial" | "revert" | "
|
|
38
|
+
readonly alignment: EpPropFinalized<(new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems) | (((new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems)) | null)[], unknown, unknown, "center", boolean>;
|
|
39
39
|
readonly prefixCls: {
|
|
40
40
|
readonly type: vue.PropType<string>;
|
|
41
41
|
readonly required: false;
|
|
@@ -63,7 +63,7 @@ declare const Space: vue.DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
readonly direction: EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "horizontal", boolean>;
|
|
64
64
|
readonly class: EpPropFinalized<(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, "", boolean>;
|
|
65
65
|
readonly style: EpPropFinalized<(new (...args: any[]) => string | false | vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, "", boolean>;
|
|
66
|
-
readonly alignment: EpPropFinalized<(new (...args: any[]) => "inherit" | "initial" | "revert" | "
|
|
66
|
+
readonly alignment: EpPropFinalized<(new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems) | (((new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems)) | null)[], unknown, unknown, "center", boolean>;
|
|
67
67
|
readonly prefixCls: {
|
|
68
68
|
readonly type: vue.PropType<string>;
|
|
69
69
|
readonly required: false;
|
|
@@ -88,7 +88,7 @@ declare const Space: vue.DefineComponent<ExtractPropTypes<{
|
|
|
88
88
|
readonly wrap: boolean;
|
|
89
89
|
readonly direction: EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
90
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
|
-
readonly alignment: EpPropMergeType<(new (...args: any[]) => "inherit" | "initial" | "revert" | "
|
|
91
|
+
readonly alignment: EpPropMergeType<(new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems) | (((new (...args: any[]) => "inherit" | "initial" | "revert" | "unset" | "revert-layer" | "center" | "stretch" | "end" | "flex-end" | "flex-start" | "start" | "baseline" | "normal" | "self-end" | "self-start" | "anchor-center" | "first baseline" | "last baseline" | "safe center" | "unsafe center") | (() => AlignItems)) | 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;
|
|
94
94
|
}>>;
|
|
@@ -38,7 +38,7 @@ declare const stepProps: {
|
|
|
38
38
|
__epPropKey: true;
|
|
39
39
|
};
|
|
40
40
|
readonly description: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
41
|
-
readonly status: EpPropFinalized<StringConstructor, "" | "error" | "
|
|
41
|
+
readonly status: EpPropFinalized<StringConstructor, "" | "error" | "success" | "wait" | "finish" | "process", unknown, "", boolean>;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* @deprecated Removed after 3.0.0, Use `StepProps` instead.
|
|
@@ -15,8 +15,8 @@ type __VLS_Slots = {} & {
|
|
|
15
15
|
description?: (props: typeof __VLS_38) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: vue.DefineComponent<StepProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
18
|
-
description: string;
|
|
19
18
|
title: string;
|
|
19
|
+
description: string;
|
|
20
20
|
icon: IconPropType;
|
|
21
21
|
status: "" | "wait" | "process" | "finish" | "error" | "success";
|
|
22
22
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -60,8 +60,8 @@ declare const stepsProps: {
|
|
|
60
60
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
61
|
__epPropKey: true;
|
|
62
62
|
};
|
|
63
|
-
readonly finishStatus: EpPropFinalized<StringConstructor, "error" | "
|
|
64
|
-
readonly processStatus: EpPropFinalized<StringConstructor, "error" | "
|
|
63
|
+
readonly finishStatus: EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "finish", boolean>;
|
|
64
|
+
readonly processStatus: EpPropFinalized<StringConstructor, "error" | "success" | "wait" | "finish" | "process", unknown, "process", boolean>;
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* @deprecated Removed after 3.0.0, Use `StepsProps` instead.
|
|
@@ -26,8 +26,8 @@ declare const __VLS_base: vue.DefineComponent<SwitchProps, {
|
|
|
26
26
|
*/
|
|
27
27
|
checked: vue.ComputedRef<boolean>;
|
|
28
28
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
29
|
-
"update:modelValue": (val: string | number | boolean) => void;
|
|
30
29
|
change: (val: string | number | boolean) => void;
|
|
30
|
+
"update:modelValue": (val: string | number | boolean) => void;
|
|
31
31
|
input: (val: string | number | boolean) => void;
|
|
32
32
|
}, string, vue.PublicProps, Readonly<SwitchProps> & Readonly<{
|
|
33
33
|
onChange?: ((val: string | number | boolean) => any) | undefined;
|
|
@@ -36,8 +36,8 @@ declare const __VLS_base: vue.DefineComponent<SwitchProps, {
|
|
|
36
36
|
}>, {
|
|
37
37
|
modelValue: boolean | string | number;
|
|
38
38
|
disabled: boolean;
|
|
39
|
-
name: string;
|
|
40
39
|
validateEvent: boolean;
|
|
40
|
+
name: string;
|
|
41
41
|
width: string | number;
|
|
42
42
|
activeText: string;
|
|
43
43
|
inactiveText: string;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { addClass, hasClass, removeClass } from "../../../../utils/dom/style.mjs";
|
|
2
|
+
import { isGreaterThan } from "../../../../utils/numbers.mjs";
|
|
2
3
|
import { createTablePopper, getCell, getColumnByCell, removePopper } from "../util.mjs";
|
|
3
4
|
import { TABLE_INJECTION_KEY } from "../tokens.mjs";
|
|
4
5
|
import { debounce } from "lodash-unified";
|
|
5
6
|
import { h, inject, ref } from "vue";
|
|
6
7
|
|
|
7
8
|
//#region ../../packages/components/table/src/table-body/events-helper.ts
|
|
8
|
-
function isGreaterThan(a, b, epsilon = .03) {
|
|
9
|
-
return a - b > epsilon;
|
|
10
|
-
}
|
|
11
9
|
function useEvents(props) {
|
|
12
10
|
const parent = inject(TABLE_INJECTION_KEY);
|
|
13
11
|
const tooltipContent = ref("");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table-body/events-helper.ts"],"sourcesContent":["import { h, inject, ref } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport {
|
|
1
|
+
{"version":3,"file":"events-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table-body/events-helper.ts"],"sourcesContent":["import { h, inject, ref } from 'vue'\nimport { debounce } from 'lodash-unified'\nimport {\n addClass,\n hasClass,\n isGreaterThan,\n removeClass,\n} from '@element-plus/utils'\nimport {\n createTablePopper,\n getCell,\n getColumnByCell,\n removePopper,\n} from '../util'\nimport { TABLE_INJECTION_KEY } from '../tokens'\n\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { TableBodyProps } from './defaults'\nimport type { TableOverflowTooltipOptions } from '../util'\nimport type { DefaultRow } from '../table/defaults'\n\nfunction useEvents<T extends DefaultRow>(props: Partial<TableBodyProps<T>>) {\n const parent = inject(TABLE_INJECTION_KEY)\n const tooltipContent = ref('')\n const tooltipTrigger = ref(h('div'))\n const handleEvent = (event: Event, row: T, name: string) => {\n const table = parent\n const cell = getCell(event)\n let column: TableColumnCtx<T> | null = null\n const namespace = table?.vnode.el?.dataset.prefix\n if (cell) {\n column = getColumnByCell(\n {\n columns: props.store?.states.columns.value ?? [],\n },\n cell,\n namespace\n )\n if (column) {\n table?.emit(`cell-${name}`, row, column, cell, event)\n }\n }\n table?.emit(`row-${name}`, row, column, event)\n }\n const handleDoubleClick = (event: Event, row: T) => {\n handleEvent(event, row, 'dblclick')\n }\n const handleClick = (event: Event, row: T) => {\n props.store?.commit('setCurrentRow', row)\n handleEvent(event, row, 'click')\n }\n const handleContextMenu = (event: Event, row: T) => {\n handleEvent(event, row, 'contextmenu')\n }\n const handleMouseEnter = debounce((index: number) => {\n props.store?.commit('setHoverRow', index)\n }, 30)\n const handleMouseLeave = debounce(() => {\n props.store?.commit('setHoverRow', null)\n }, 30)\n const getPadding = (el: HTMLElement) => {\n const style = window.getComputedStyle(el, null)\n const paddingLeft = Number.parseInt(style.paddingLeft, 10) || 0\n const paddingRight = Number.parseInt(style.paddingRight, 10) || 0\n const paddingTop = Number.parseInt(style.paddingTop, 10) || 0\n const paddingBottom = Number.parseInt(style.paddingBottom, 10) || 0\n return {\n left: paddingLeft,\n right: paddingRight,\n top: paddingTop,\n bottom: paddingBottom,\n }\n }\n\n const toggleRowClassByCell = (\n rowSpan: number,\n event: MouseEvent,\n toggle: (el: Element, cls: string) => void\n ) => {\n let node: Node | null | undefined = (event?.target as Element | null)\n ?.parentNode\n while (rowSpan > 1) {\n node = node?.nextSibling\n if (!node || node.nodeName !== 'TR') break\n toggle(node as Element, 'hover-row hover-fixed-row')\n rowSpan--\n }\n }\n\n const handleCellMouseEnter = (\n event: MouseEvent,\n row: T,\n tooltipOptions: TableOverflowTooltipOptions\n ) => {\n if (!parent) return\n const table = parent\n const cell = getCell(event)\n const namespace = table?.vnode.el?.dataset.prefix\n let column: TableColumnCtx<T> | null = null\n if (cell) {\n column = getColumnByCell(\n {\n columns: props.store?.states.columns.value ?? [],\n },\n cell,\n namespace\n )\n if (!column) {\n return\n }\n if (cell.rowSpan > 1) {\n toggleRowClassByCell(cell.rowSpan, event, addClass)\n }\n const hoverState = (table.hoverState = {\n cell,\n column: column as any,\n row,\n })\n table?.emit(\n 'cell-mouse-enter',\n hoverState.row,\n hoverState.column,\n hoverState.cell,\n event\n )\n }\n\n if (!tooltipOptions) {\n if (removePopper?.trigger === cell) {\n removePopper?.()\n }\n return\n }\n\n // 判断是否text-overflow, 如果是就显示tooltip\n const cellChild = (event.target as HTMLElement).querySelector(\n '.cell'\n ) as HTMLElement\n if (\n !(\n hasClass(cellChild, `${namespace}-tooltip`) &&\n cellChild.childNodes.length &&\n cellChild.textContent?.trim()\n )\n ) {\n return\n }\n // use range width instead of scrollWidth to determine whether the text is overflowing\n // to address a potential FireFox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1074543#c3\n const range = document.createRange()\n range.setStart(cellChild, 0)\n range.setEnd(cellChild, cellChild.childNodes.length)\n /** detail: https://github.com/element-plus/element-plus/issues/10790\n * What went wrong?\n * UI > Browser > Zoom, In Blink/WebKit, getBoundingClientRect() sometimes returns inexact values, probably due to lost precision during internal calculations. In the example above:\n * - Expected: 188\n * - Actual: 188.00000762939453\n */\n const { width: rangeWidth, height: rangeHeight } =\n range.getBoundingClientRect()\n const { width: cellChildWidth, height: cellChildHeight } =\n cellChild.getBoundingClientRect()\n\n const { top, left, right, bottom } = getPadding(cellChild)\n const horizontalPadding = left + right\n const verticalPadding = top + bottom\n if (\n isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) ||\n isGreaterThan(rangeHeight + verticalPadding, cellChildHeight) ||\n // When using a high-resolution screen, it is possible that a returns cellChild.scrollWidth value of 1921 and\n // cellChildWidth returns a value of 1920.994140625. #16856 #16673\n isGreaterThan(cellChild.scrollWidth, cellChildWidth)\n ) {\n createTablePopper(\n tooltipOptions,\n (cell?.innerText || cell?.textContent) ?? '',\n row,\n column,\n cell,\n table\n )\n } else if (removePopper?.trigger === cell) {\n removePopper?.()\n }\n }\n const handleCellMouseLeave = (event: MouseEvent) => {\n const cell = getCell(event)\n if (!cell) return\n if (cell.rowSpan > 1) {\n toggleRowClassByCell(cell.rowSpan, event, removeClass)\n }\n const oldHoverState = parent?.hoverState\n parent?.emit(\n 'cell-mouse-leave',\n oldHoverState?.row,\n oldHoverState?.column,\n oldHoverState?.cell,\n event\n )\n }\n\n return {\n handleDoubleClick,\n handleClick,\n handleContextMenu,\n handleMouseEnter,\n handleMouseLeave,\n handleCellMouseEnter,\n handleCellMouseLeave,\n tooltipContent,\n tooltipTrigger,\n }\n}\n\nexport default useEvents\n"],"mappings":";;;;;;;;AAqBA,SAAS,UAAgC,OAAmC;CAC1E,MAAM,SAAS,OAAO,oBAAoB;CAC1C,MAAM,iBAAiB,IAAI,GAAG;CAC9B,MAAM,iBAAiB,IAAI,EAAE,MAAM,CAAC;CACpC,MAAM,eAAe,OAAc,KAAQ,SAAiB;EAC1D,MAAM,QAAQ;EACd,MAAM,OAAO,QAAQ,MAAM;EAC3B,IAAI,SAAmC;EACvC,MAAM,YAAY,OAAO,MAAM,IAAI,QAAQ;AAC3C,MAAI,MAAM;AACR,YAAS,gBACP,EACE,SAAS,MAAM,OAAO,OAAO,QAAQ,SAAS,EAAE,EACjD,EACD,MACA,UACD;AACD,OAAI,OACF,QAAO,KAAK,QAAQ,QAAQ,KAAK,QAAQ,MAAM,MAAM;;AAGzD,SAAO,KAAK,OAAO,QAAQ,KAAK,QAAQ,MAAM;;CAEhD,MAAM,qBAAqB,OAAc,QAAW;AAClD,cAAY,OAAO,KAAK,WAAW;;CAErC,MAAM,eAAe,OAAc,QAAW;AAC5C,QAAM,OAAO,OAAO,iBAAiB,IAAI;AACzC,cAAY,OAAO,KAAK,QAAQ;;CAElC,MAAM,qBAAqB,OAAc,QAAW;AAClD,cAAY,OAAO,KAAK,cAAc;;CAExC,MAAM,mBAAmB,UAAU,UAAkB;AACnD,QAAM,OAAO,OAAO,eAAe,MAAM;IACxC,GAAG;CACN,MAAM,mBAAmB,eAAe;AACtC,QAAM,OAAO,OAAO,eAAe,KAAK;IACvC,GAAG;CACN,MAAM,cAAc,OAAoB;EACtC,MAAM,QAAQ,OAAO,iBAAiB,IAAI,KAAK;AAK/C,SAAO;GACL,MALkB,OAAO,SAAS,MAAM,aAAa,GAAG,IAAI;GAM5D,OALmB,OAAO,SAAS,MAAM,cAAc,GAAG,IAAI;GAM9D,KALiB,OAAO,SAAS,MAAM,YAAY,GAAG,IAAI;GAM1D,QALoB,OAAO,SAAS,MAAM,eAAe,GAAG,IAAI;GAMjE;;CAGH,MAAM,wBACJ,SACA,OACA,WACG;EACH,IAAI,QAAiC,OAAO,SACxC;AACJ,SAAO,UAAU,GAAG;AAClB,UAAO,MAAM;AACb,OAAI,CAAC,QAAQ,KAAK,aAAa,KAAM;AACrC,UAAO,MAAiB,4BAA4B;AACpD;;;CAIJ,MAAM,wBACJ,OACA,KACA,mBACG;AACH,MAAI,CAAC,OAAQ;EACb,MAAM,QAAQ;EACd,MAAM,OAAO,QAAQ,MAAM;EAC3B,MAAM,YAAY,OAAO,MAAM,IAAI,QAAQ;EAC3C,IAAI,SAAmC;AACvC,MAAI,MAAM;AACR,YAAS,gBACP,EACE,SAAS,MAAM,OAAO,OAAO,QAAQ,SAAS,EAAE,EACjD,EACD,MACA,UACD;AACD,OAAI,CAAC,OACH;AAEF,OAAI,KAAK,UAAU,EACjB,sBAAqB,KAAK,SAAS,OAAO,SAAS;GAErD,MAAM,aAAc,MAAM,aAAa;IACrC;IACQ;IACR;IACD;AACD,UAAO,KACL,oBACA,WAAW,KACX,WAAW,QACX,WAAW,MACX,MACD;;AAGH,MAAI,CAAC,gBAAgB;AACnB,OAAI,cAAc,YAAY,KAC5B,iBAAgB;AAElB;;EAIF,MAAM,YAAa,MAAM,OAAuB,cAC9C,QACD;AACD,MACE,EACE,SAAS,WAAW,GAAG,UAAU,UAAU,IAC3C,UAAU,WAAW,UACrB,UAAU,aAAa,MAAM,EAG/B;EAIF,MAAM,QAAQ,SAAS,aAAa;AACpC,QAAM,SAAS,WAAW,EAAE;AAC5B,QAAM,OAAO,WAAW,UAAU,WAAW,OAAO;;;;;;;EAOpD,MAAM,EAAE,OAAO,YAAY,QAAQ,gBACjC,MAAM,uBAAuB;EAC/B,MAAM,EAAE,OAAO,gBAAgB,QAAQ,oBACrC,UAAU,uBAAuB;EAEnC,MAAM,EAAE,KAAK,MAAM,OAAO,WAAW,WAAW,UAAU;EAC1D,MAAM,oBAAoB,OAAO;EACjC,MAAM,kBAAkB,MAAM;AAC9B,MACE,cAAc,aAAa,mBAAmB,eAAe,IAC7D,cAAc,cAAc,iBAAiB,gBAAgB,IAG7D,cAAc,UAAU,aAAa,eAAe,CAEpD,mBACE,iBACC,MAAM,aAAa,MAAM,gBAAgB,IAC1C,KACA,QACA,MACA,MACD;WACQ,cAAc,YAAY,KACnC,iBAAgB;;CAGpB,MAAM,wBAAwB,UAAsB;EAClD,MAAM,OAAO,QAAQ,MAAM;AAC3B,MAAI,CAAC,KAAM;AACX,MAAI,KAAK,UAAU,EACjB,sBAAqB,KAAK,SAAS,OAAO,YAAY;EAExD,MAAM,gBAAgB,QAAQ;AAC9B,UAAQ,KACN,oBACA,eAAe,KACf,eAAe,QACf,eAAe,MACf,MACD;;AAGH,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -21,11 +21,11 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
21
21
|
property: StringConstructor;
|
|
22
22
|
prop: StringConstructor;
|
|
23
23
|
width: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
minWidth: {
|
|
28
|
-
type: (
|
|
28
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
renderHeader: vue.PropType<TableColumnCtx<any>["renderHeader"]>;
|
|
@@ -77,11 +77,11 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
77
77
|
property: StringConstructor;
|
|
78
78
|
prop: StringConstructor;
|
|
79
79
|
width: {
|
|
80
|
-
type: (
|
|
80
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
83
|
minWidth: {
|
|
84
|
-
type: (
|
|
84
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
85
85
|
default: string;
|
|
86
86
|
};
|
|
87
87
|
renderHeader: vue.PropType<TableColumnCtx<any>["renderHeader"]>;
|
|
@@ -127,7 +127,7 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
127
127
|
minWidth: string | number;
|
|
128
128
|
width: string | number;
|
|
129
129
|
resizable: boolean;
|
|
130
|
-
showOverflowTooltip: boolean | Partial<Pick<UseTooltipProps, "
|
|
130
|
+
showOverflowTooltip: boolean | Partial<Pick<UseTooltipProps, "offset" | "appendTo" | "effect" | "placement" | "popperClass" | "enterable" | "popperOptions" | "showArrow" | "transition" | "showAfter" | "hideAfter">> | undefined;
|
|
131
131
|
sortOrders: (TableSortOrder | null)[];
|
|
132
132
|
sortable: string | boolean;
|
|
133
133
|
reserveSelection: boolean;
|
|
@@ -141,17 +141,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
141
141
|
change: (val: CheckboxValueType) => void;
|
|
142
142
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
143
143
|
}, vue.PublicProps, {
|
|
144
|
-
modelValue: number | string | boolean;
|
|
145
|
-
label: string | boolean | number | object;
|
|
146
144
|
value: string | boolean | number | object;
|
|
145
|
+
modelValue: number | string | boolean;
|
|
146
|
+
id: string;
|
|
147
147
|
disabled: boolean;
|
|
148
|
+
validateEvent: boolean;
|
|
148
149
|
name: string;
|
|
150
|
+
label: string | boolean | number | object;
|
|
149
151
|
trueValue: string | number;
|
|
150
152
|
falseValue: string | number;
|
|
151
153
|
trueLabel: string | number;
|
|
152
154
|
falseLabel: string | number;
|
|
153
|
-
id: string;
|
|
154
|
-
validateEvent: boolean;
|
|
155
155
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
156
156
|
P: {};
|
|
157
157
|
B: {};
|
|
@@ -163,17 +163,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
163
163
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
164
164
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
165
165
|
}>, {}, {}, {}, {}, {
|
|
166
|
-
modelValue: number | string | boolean;
|
|
167
|
-
label: string | boolean | number | object;
|
|
168
166
|
value: string | boolean | number | object;
|
|
167
|
+
modelValue: number | string | boolean;
|
|
168
|
+
id: string;
|
|
169
169
|
disabled: boolean;
|
|
170
|
+
validateEvent: boolean;
|
|
170
171
|
name: string;
|
|
172
|
+
label: string | boolean | number | object;
|
|
171
173
|
trueValue: string | number;
|
|
172
174
|
falseValue: string | number;
|
|
173
175
|
trueLabel: string | number;
|
|
174
176
|
falseLabel: string | number;
|
|
175
|
-
id: string;
|
|
176
|
-
validateEvent: boolean;
|
|
177
177
|
}>;
|
|
178
178
|
__isFragment?: never;
|
|
179
179
|
__isTeleport?: never;
|
|
@@ -185,17 +185,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
185
185
|
change: (val: CheckboxValueType) => void;
|
|
186
186
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
187
187
|
}, string, {
|
|
188
|
-
modelValue: number | string | boolean;
|
|
189
|
-
label: string | boolean | number | object;
|
|
190
188
|
value: string | boolean | number | object;
|
|
189
|
+
modelValue: number | string | boolean;
|
|
190
|
+
id: string;
|
|
191
191
|
disabled: boolean;
|
|
192
|
+
validateEvent: boolean;
|
|
192
193
|
name: string;
|
|
194
|
+
label: string | boolean | number | object;
|
|
193
195
|
trueValue: string | number;
|
|
194
196
|
falseValue: string | number;
|
|
195
197
|
trueLabel: string | number;
|
|
196
198
|
falseLabel: string | number;
|
|
197
|
-
id: string;
|
|
198
|
-
validateEvent: boolean;
|
|
199
199
|
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new () => {
|
|
200
200
|
$slots: {
|
|
201
201
|
default?: (props: {}) => any;
|
|
@@ -77,9 +77,9 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
}>> & Readonly<{}>, {
|
|
80
|
+
fixed: string;
|
|
80
81
|
border: boolean;
|
|
81
82
|
defaultSort: Sort;
|
|
82
|
-
fixed: string;
|
|
83
83
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
84
84
|
//#endregion
|
|
85
85
|
export { TableFooter, _default as default };
|
|
@@ -116,9 +116,9 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
116
116
|
type: BooleanConstructor;
|
|
117
117
|
};
|
|
118
118
|
}>> & Readonly<{}>, {
|
|
119
|
+
fixed: string;
|
|
119
120
|
border: boolean;
|
|
120
121
|
defaultSort: Sort;
|
|
121
|
-
fixed: string;
|
|
122
122
|
allowDragLastColumn: boolean;
|
|
123
123
|
}, {}, {
|
|
124
124
|
ElCheckbox: {
|
|
@@ -129,17 +129,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
129
129
|
change: (val: CheckboxValueType) => void;
|
|
130
130
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
131
131
|
}, vue.PublicProps, {
|
|
132
|
-
modelValue: number | string | boolean;
|
|
133
|
-
label: string | boolean | number | object;
|
|
134
132
|
value: string | boolean | number | object;
|
|
133
|
+
modelValue: number | string | boolean;
|
|
134
|
+
id: string;
|
|
135
135
|
disabled: boolean;
|
|
136
|
+
validateEvent: boolean;
|
|
136
137
|
name: string;
|
|
138
|
+
label: string | boolean | number | object;
|
|
137
139
|
trueValue: string | number;
|
|
138
140
|
falseValue: string | number;
|
|
139
141
|
trueLabel: string | number;
|
|
140
142
|
falseLabel: string | number;
|
|
141
|
-
id: string;
|
|
142
|
-
validateEvent: boolean;
|
|
143
143
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
144
144
|
P: {};
|
|
145
145
|
B: {};
|
|
@@ -151,17 +151,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
151
151
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
152
152
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
153
153
|
}>, {}, {}, {}, {}, {
|
|
154
|
-
modelValue: number | string | boolean;
|
|
155
|
-
label: string | boolean | number | object;
|
|
156
154
|
value: string | boolean | number | object;
|
|
155
|
+
modelValue: number | string | boolean;
|
|
156
|
+
id: string;
|
|
157
157
|
disabled: boolean;
|
|
158
|
+
validateEvent: boolean;
|
|
158
159
|
name: string;
|
|
160
|
+
label: string | boolean | number | object;
|
|
159
161
|
trueValue: string | number;
|
|
160
162
|
falseValue: string | number;
|
|
161
163
|
trueLabel: string | number;
|
|
162
164
|
falseLabel: string | number;
|
|
163
|
-
id: string;
|
|
164
|
-
validateEvent: boolean;
|
|
165
165
|
}>;
|
|
166
166
|
__isFragment?: never;
|
|
167
167
|
__isTeleport?: never;
|
|
@@ -173,17 +173,17 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
173
173
|
change: (val: CheckboxValueType) => void;
|
|
174
174
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
175
175
|
}, string, {
|
|
176
|
-
modelValue: number | string | boolean;
|
|
177
|
-
label: string | boolean | number | object;
|
|
178
176
|
value: string | boolean | number | object;
|
|
177
|
+
modelValue: number | string | boolean;
|
|
178
|
+
id: string;
|
|
179
179
|
disabled: boolean;
|
|
180
|
+
validateEvent: boolean;
|
|
180
181
|
name: string;
|
|
182
|
+
label: string | boolean | number | object;
|
|
181
183
|
trueValue: string | number;
|
|
182
184
|
falseValue: string | number;
|
|
183
185
|
trueLabel: string | number;
|
|
184
186
|
falseLabel: string | number;
|
|
185
|
-
id: string;
|
|
186
|
-
validateEvent: boolean;
|
|
187
187
|
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new () => {
|
|
188
188
|
$slots: {
|
|
189
189
|
default?: (props: {}) => any;
|
|
@@ -37,9 +37,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
37
37
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
38
|
__epPropKey: true;
|
|
39
39
|
};
|
|
40
|
-
width: (
|
|
41
|
-
height: (
|
|
42
|
-
maxHeight: (
|
|
40
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
41
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
42
|
+
maxHeight: (NumberConstructor | StringConstructor)[];
|
|
43
43
|
fit: {
|
|
44
44
|
type: BooleanConstructor;
|
|
45
45
|
default: boolean;
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
63
63
|
headerCellClassName: vue.PropType<TableProps<any>["headerCellClassName"]>;
|
|
64
64
|
headerCellStyle: vue.PropType<TableProps<any>["headerCellStyle"]>;
|
|
65
65
|
highlightCurrentRow: BooleanConstructor;
|
|
66
|
-
currentRowKey: (
|
|
66
|
+
currentRowKey: (NumberConstructor | StringConstructor)[];
|
|
67
67
|
emptyText: StringConstructor;
|
|
68
68
|
expandRowKeys: vue.PropType<TableProps<any>["expandRowKeys"]>;
|
|
69
69
|
defaultExpandAll: BooleanConstructor;
|
|
@@ -113,7 +113,7 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
113
113
|
tooltipFormatter: vue.PropType<TableProps<any>["tooltipFormatter"]>;
|
|
114
114
|
appendFilterPanelTo: StringConstructor;
|
|
115
115
|
scrollbarTabindex: {
|
|
116
|
-
type: (
|
|
116
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
117
117
|
default: undefined;
|
|
118
118
|
};
|
|
119
119
|
allowDragLastColumn: {
|
|
@@ -754,7 +754,7 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
754
754
|
computedSumText: vue.ComputedRef<string>;
|
|
755
755
|
computedEmptyText: vue.ComputedRef<string>;
|
|
756
756
|
computedTooltipEffect: vue.ComputedRef<string | undefined>;
|
|
757
|
-
computedTooltipOptions: vue.ComputedRef<Partial<Pick<UseTooltipProps, "
|
|
757
|
+
computedTooltipOptions: vue.ComputedRef<Partial<Pick<UseTooltipProps, "offset" | "appendTo" | "effect" | "placement" | "popperClass" | "enterable" | "popperOptions" | "showArrow" | "transition" | "showAfter" | "hideAfter">> | undefined>;
|
|
758
758
|
tableLayout: vue.ComputedRef<"fixed" | "auto">;
|
|
759
759
|
scrollbarViewStyle: {
|
|
760
760
|
display: string;
|
|
@@ -798,9 +798,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
798
798
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
799
799
|
__epPropKey: true;
|
|
800
800
|
};
|
|
801
|
-
width: (
|
|
802
|
-
height: (
|
|
803
|
-
maxHeight: (
|
|
801
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
802
|
+
height: (NumberConstructor | StringConstructor)[];
|
|
803
|
+
maxHeight: (NumberConstructor | StringConstructor)[];
|
|
804
804
|
fit: {
|
|
805
805
|
type: BooleanConstructor;
|
|
806
806
|
default: boolean;
|
|
@@ -824,7 +824,7 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
824
824
|
headerCellClassName: vue.PropType<TableProps<any>["headerCellClassName"]>;
|
|
825
825
|
headerCellStyle: vue.PropType<TableProps<any>["headerCellStyle"]>;
|
|
826
826
|
highlightCurrentRow: BooleanConstructor;
|
|
827
|
-
currentRowKey: (
|
|
827
|
+
currentRowKey: (NumberConstructor | StringConstructor)[];
|
|
828
828
|
emptyText: StringConstructor;
|
|
829
829
|
expandRowKeys: vue.PropType<TableProps<any>["expandRowKeys"]>;
|
|
830
830
|
defaultExpandAll: BooleanConstructor;
|
|
@@ -874,7 +874,7 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
874
874
|
tooltipFormatter: vue.PropType<TableProps<any>["tooltipFormatter"]>;
|
|
875
875
|
appendFilterPanelTo: StringConstructor;
|
|
876
876
|
scrollbarTabindex: {
|
|
877
|
-
type: (
|
|
877
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
878
878
|
default: undefined;
|
|
879
879
|
};
|
|
880
880
|
allowDragLastColumn: {
|
|
@@ -905,17 +905,17 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
905
905
|
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
906
906
|
}>, {
|
|
907
907
|
lazy: boolean;
|
|
908
|
-
border: boolean;
|
|
909
|
-
allowDragLastColumn: boolean;
|
|
910
|
-
data: any[];
|
|
911
|
-
tableLayout: "fixed" | "auto";
|
|
912
908
|
style: vue.StyleValue;
|
|
909
|
+
border: boolean;
|
|
913
910
|
className: string;
|
|
911
|
+
tableLayout: "fixed" | "auto";
|
|
912
|
+
data: any[];
|
|
914
913
|
fit: boolean;
|
|
915
914
|
scrollbarAlwaysOn: boolean;
|
|
915
|
+
allowDragLastColumn: boolean;
|
|
916
916
|
stripe: boolean;
|
|
917
917
|
treeProps: TreeProps | undefined;
|
|
918
|
-
showOverflowTooltip: boolean | Partial<Pick<UseTooltipProps, "
|
|
918
|
+
showOverflowTooltip: boolean | Partial<Pick<UseTooltipProps, "offset" | "appendTo" | "effect" | "placement" | "popperClass" | "enterable" | "popperOptions" | "showArrow" | "transition" | "showAfter" | "hideAfter">> | undefined;
|
|
919
919
|
showHeader: boolean;
|
|
920
920
|
showSummary: boolean;
|
|
921
921
|
highlightCurrentRow: boolean;
|
|
@@ -1015,9 +1015,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1015
1015
|
type: BooleanConstructor;
|
|
1016
1016
|
};
|
|
1017
1017
|
}>> & Readonly<{}>, {
|
|
1018
|
+
fixed: string;
|
|
1018
1019
|
border: boolean;
|
|
1019
1020
|
defaultSort: Sort;
|
|
1020
|
-
fixed: string;
|
|
1021
1021
|
allowDragLastColumn: boolean;
|
|
1022
1022
|
}, {}, {
|
|
1023
1023
|
ElCheckbox: {
|
|
@@ -1028,17 +1028,17 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1028
1028
|
change: (val: CheckboxValueType) => void;
|
|
1029
1029
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
1030
1030
|
}, vue.PublicProps, {
|
|
1031
|
-
modelValue: number | string | boolean;
|
|
1032
|
-
label: string | boolean | number | object;
|
|
1033
1031
|
value: string | boolean | number | object;
|
|
1032
|
+
modelValue: number | string | boolean;
|
|
1033
|
+
id: string;
|
|
1034
1034
|
disabled: boolean;
|
|
1035
|
+
validateEvent: boolean;
|
|
1035
1036
|
name: string;
|
|
1037
|
+
label: string | boolean | number | object;
|
|
1036
1038
|
trueValue: string | number;
|
|
1037
1039
|
falseValue: string | number;
|
|
1038
1040
|
trueLabel: string | number;
|
|
1039
1041
|
falseLabel: string | number;
|
|
1040
|
-
id: string;
|
|
1041
|
-
validateEvent: boolean;
|
|
1042
1042
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1043
1043
|
P: {};
|
|
1044
1044
|
B: {};
|
|
@@ -1050,17 +1050,17 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1050
1050
|
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
1051
1051
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
1052
1052
|
}>, {}, {}, {}, {}, {
|
|
1053
|
-
modelValue: number | string | boolean;
|
|
1054
|
-
label: string | boolean | number | object;
|
|
1055
1053
|
value: string | boolean | number | object;
|
|
1054
|
+
modelValue: number | string | boolean;
|
|
1055
|
+
id: string;
|
|
1056
1056
|
disabled: boolean;
|
|
1057
|
+
validateEvent: boolean;
|
|
1057
1058
|
name: string;
|
|
1059
|
+
label: string | boolean | number | object;
|
|
1058
1060
|
trueValue: string | number;
|
|
1059
1061
|
falseValue: string | number;
|
|
1060
1062
|
trueLabel: string | number;
|
|
1061
1063
|
falseLabel: string | number;
|
|
1062
|
-
id: string;
|
|
1063
|
-
validateEvent: boolean;
|
|
1064
1064
|
}>;
|
|
1065
1065
|
__isFragment?: never;
|
|
1066
1066
|
__isTeleport?: never;
|
|
@@ -1072,17 +1072,17 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1072
1072
|
change: (val: CheckboxValueType) => void;
|
|
1073
1073
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
1074
1074
|
}, string, {
|
|
1075
|
-
modelValue: number | string | boolean;
|
|
1076
|
-
label: string | boolean | number | object;
|
|
1077
1075
|
value: string | boolean | number | object;
|
|
1076
|
+
modelValue: number | string | boolean;
|
|
1077
|
+
id: string;
|
|
1078
1078
|
disabled: boolean;
|
|
1079
|
+
validateEvent: boolean;
|
|
1079
1080
|
name: string;
|
|
1081
|
+
label: string | boolean | number | object;
|
|
1080
1082
|
trueValue: string | number;
|
|
1081
1083
|
falseValue: string | number;
|
|
1082
1084
|
trueLabel: string | number;
|
|
1083
1085
|
falseLabel: string | number;
|
|
1084
|
-
id: string;
|
|
1085
|
-
validateEvent: boolean;
|
|
1086
1086
|
}, {}, string, {}, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new () => {
|
|
1087
1087
|
$slots: {
|
|
1088
1088
|
default?: (props: {}) => any;
|
|
@@ -1260,9 +1260,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1260
1260
|
};
|
|
1261
1261
|
};
|
|
1262
1262
|
}>> & Readonly<{}>, {
|
|
1263
|
+
fixed: string;
|
|
1263
1264
|
border: boolean;
|
|
1264
1265
|
defaultSort: Sort;
|
|
1265
|
-
fixed: string;
|
|
1266
1266
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
1267
1267
|
ElScrollbar: SFCWithInstall<{
|
|
1268
1268
|
new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<Readonly<ScrollbarProps> & Readonly<{
|
|
@@ -1289,9 +1289,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1289
1289
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
1290
1290
|
}, vue.PublicProps, {
|
|
1291
1291
|
tabindex: number | string;
|
|
1292
|
-
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
1293
1292
|
height: number | string;
|
|
1294
1293
|
maxHeight: number | string;
|
|
1294
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
1295
1295
|
distance: number;
|
|
1296
1296
|
wrapStyle: string | false | vue.CSSProperties | vue.StyleValue[] | null;
|
|
1297
1297
|
wrapClass: string | string[];
|
|
@@ -1323,9 +1323,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1323
1323
|
handleScroll: () => void;
|
|
1324
1324
|
}, {}, {}, {}, {
|
|
1325
1325
|
tabindex: number | string;
|
|
1326
|
-
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
1327
1326
|
height: number | string;
|
|
1328
1327
|
maxHeight: number | string;
|
|
1328
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
1329
1329
|
distance: number;
|
|
1330
1330
|
wrapStyle: string | false | vue.CSSProperties | vue.StyleValue[] | null;
|
|
1331
1331
|
wrapClass: string | string[];
|
|
@@ -1360,9 +1360,9 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
1360
1360
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
1361
1361
|
}, string, {
|
|
1362
1362
|
tabindex: number | string;
|
|
1363
|
-
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
1364
1363
|
height: number | string;
|
|
1365
1364
|
maxHeight: number | string;
|
|
1365
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
1366
1366
|
distance: number;
|
|
1367
1367
|
wrapStyle: string | false | vue.CSSProperties | vue.StyleValue[] | null;
|
|
1368
1368
|
wrapClass: string | string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EVENT_CODE } from "../../../constants/aria.mjs";
|
|
2
2
|
import { getEventCode } from "../../../utils/dom/event.mjs";
|
|
3
3
|
import { rAF } from "../../../utils/raf.mjs";
|
|
4
|
-
import { capitalize } from "../../../utils/strings.mjs";
|
|
5
4
|
import { throwError } from "../../../utils/error.mjs";
|
|
6
5
|
import { buildProps, definePropType } from "../../../utils/vue/props/runtime.mjs";
|
|
7
6
|
import { mutable } from "../../../utils/typescript.mjs";
|
|
7
|
+
import { isGreaterThan } from "../../../utils/numbers.mjs";
|
|
8
8
|
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
|
|
9
9
|
import { ElIcon } from "../../icon/index.mjs";
|
|
10
10
|
import useWheel from "../../virtual-list/src/hooks/use-wheel.mjs";
|
|
@@ -99,17 +99,17 @@ const TabNav = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
};
|
|
100
100
|
const scrollPrev = () => {
|
|
101
101
|
if (!navScroll$.value) return;
|
|
102
|
-
const containerSize = navScroll$.value[
|
|
102
|
+
const containerSize = navScroll$.value.getBoundingClientRect()[sizeName.value];
|
|
103
103
|
const currentOffset = navOffset.value;
|
|
104
104
|
if (!currentOffset) return;
|
|
105
105
|
navOffset.value = currentOffset > containerSize ? currentOffset - containerSize : 0;
|
|
106
106
|
};
|
|
107
107
|
const scrollNext = () => {
|
|
108
108
|
if (!navScroll$.value || !nav$.value) return;
|
|
109
|
-
const navSize = nav$.value[
|
|
110
|
-
const containerSize = navScroll$.value[
|
|
109
|
+
const navSize = nav$.value.getBoundingClientRect()[sizeName.value];
|
|
110
|
+
const containerSize = navScroll$.value.getBoundingClientRect()[sizeName.value];
|
|
111
111
|
const currentOffset = navOffset.value;
|
|
112
|
-
if (navSize - currentOffset
|
|
112
|
+
if (!isGreaterThan(navSize - currentOffset, containerSize)) return;
|
|
113
113
|
navOffset.value = navSize - currentOffset > containerSize * 2 ? currentOffset + containerSize : navSize - containerSize;
|
|
114
114
|
};
|
|
115
115
|
const scrollToActiveTab = async () => {
|
|
@@ -121,12 +121,15 @@ const TabNav = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
const navScroll = navScroll$.value;
|
|
122
122
|
const activeTabBounding = activeTab.getBoundingClientRect();
|
|
123
123
|
const navScrollBounding = navScroll.getBoundingClientRect();
|
|
124
|
-
const
|
|
124
|
+
const navScrollLeft = navScrollBounding.left + 1;
|
|
125
|
+
const navScrollRight = navScrollBounding.right - 1;
|
|
126
|
+
const navBounding = nav.getBoundingClientRect();
|
|
127
|
+
const maxOffset = isHorizontal.value ? navBounding.width - navScrollBounding.width : navBounding.height - navScrollBounding.height;
|
|
125
128
|
const currentOffset = navOffset.value;
|
|
126
129
|
let newOffset = currentOffset;
|
|
127
130
|
if (isHorizontal.value) {
|
|
128
|
-
if (activeTabBounding.left <
|
|
129
|
-
if (activeTabBounding.right >
|
|
131
|
+
if (activeTabBounding.left < navScrollLeft) newOffset = currentOffset - (navScrollLeft - activeTabBounding.left);
|
|
132
|
+
if (activeTabBounding.right > navScrollRight) newOffset = currentOffset + activeTabBounding.right - navScrollRight;
|
|
130
133
|
} else {
|
|
131
134
|
if (activeTabBounding.top < navScrollBounding.top) newOffset = currentOffset - (navScrollBounding.top - activeTabBounding.top);
|
|
132
135
|
if (activeTabBounding.bottom > navScrollBounding.bottom) newOffset = currentOffset + (activeTabBounding.bottom - navScrollBounding.bottom);
|
|
@@ -143,8 +146,8 @@ const TabNav = /* @__PURE__ */ defineComponent({
|
|
|
143
146
|
if (containerSize < navSize) {
|
|
144
147
|
scrollable.value = scrollable.value || {};
|
|
145
148
|
scrollable.value.prev = currentOffset;
|
|
146
|
-
scrollable.value.next = currentOffset + containerSize
|
|
147
|
-
if (navSize - currentOffset
|
|
149
|
+
scrollable.value.next = isGreaterThan(navSize, currentOffset + containerSize);
|
|
150
|
+
if (isGreaterThan(containerSize, navSize - currentOffset)) navOffset.value = navSize - containerSize;
|
|
148
151
|
} else {
|
|
149
152
|
scrollable.value = false;
|
|
150
153
|
if (currentOffset > 0) navOffset.value = 0;
|