@element-plus/nightly 0.0.20260520 → 0.0.20260521
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 +6 -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 +6 -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/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.vue.d.ts +4 -4
- package/es/components/alert/src/alert.d.ts +2 -2
- package/es/components/alert/src/alert.vue.d.ts +1 -1
- package/es/components/anchor/src/anchor.d.ts +1 -1
- package/es/components/anchor/src/anchor.vue.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.d.ts +4 -4
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
- package/es/components/avatar/src/avatar-group.d.ts +1 -1
- package/es/components/avatar/src/avatar.vue.d.ts +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +2 -2
- package/es/components/badge/src/badge.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 +1 -1
- package/es/components/button/src/button.vue.d.ts +4 -4
- package/es/components/button/src/use-button.d.ts +1 -1
- package/es/components/calendar/src/calendar.vue.d.ts +1 -1
- package/es/components/calendar/src/select-controller.vue.d.ts +2 -2
- package/es/components/card/src/card.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +3 -3
- package/es/components/cascader/src/cascader.vue.d.ts +18 -18
- package/es/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
- package/es/components/checkbox/src/checkbox.d.ts +2 -2
- package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
- package/es/components/col/src/col.vue.d.ts +2 -2
- package/es/components/collapse/src/collapse.vue.d.ts +1 -1
- package/es/components/color-picker/src/color-picker.vue.d.ts +10 -10
- package/es/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.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 +13 -13
- package/es/components/date-picker/src/props.d.ts +1 -1
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +3 -3
- package/es/components/date-picker-panel/src/panel-utils.d.ts +9 -9
- package/es/components/descriptions/src/description-item.d.ts +11 -11
- package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +9 -9
- 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 +10 -10
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +2 -2
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +6 -6
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +4 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +91 -91
- package/es/components/form/src/form-item.d.ts +2 -2
- 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/image/src/image.vue.d.ts +4 -4
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/es/components/input/src/input.d.ts +3 -3
- package/es/components/input/src/input.vue.d.ts +19 -19
- package/es/components/input-number/src/input-number.d.ts +3 -3
- package/es/components/input-number/src/input-number.vue.d.ts +11 -11
- package/es/components/input-otp/src/input-otp.vue.d.ts +4 -4
- package/es/components/input-tag/src/input-tag.d.ts +3 -3
- package/es/components/input-tag/src/input-tag.vue.d.ts +14 -14
- package/es/components/link/src/link.d.ts +1 -1
- 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 +5 -5
- package/es/components/menu/src/menu.d.ts +6 -6
- 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 +5 -5
- package/es/components/message-box/src/index.vue.d.ts +68 -68
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +6 -6
- package/es/components/pagination/src/components/sizes.vue.d.ts +1 -1
- package/es/components/pagination/src/pagination.d.ts +4 -4
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
- package/es/components/popover/src/popover.d.ts +2 -2
- package/es/components/popover/src/popover.vue.d.ts +15 -15
- package/es/components/popper/src/composables/use-content.d.ts +2 -2
- package/es/components/popper/src/content.d.ts +4 -4
- package/es/components/popper/src/content.vue.d.ts +15 -15
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/progress/src/progress.vue.d.ts +2 -2
- package/es/components/radio/src/radio-button.vue.d.ts +2 -2
- package/es/components/radio/src/radio-group.vue.d.ts +4 -4
- package/es/components/radio/src/radio.vue.d.ts +4 -4
- package/es/components/rate/src/rate.vue.d.ts +2 -2
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/row/src/row.d.ts +2 -2
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/es/components/segmented/index.d.ts +2 -2
- package/es/components/segmented/src/segmented.vue.d.ts +1 -1
- 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 +4 -4
- package/es/components/select/src/select.vue.d.ts +105 -105
- package/es/components/select/src/useSelect.d.ts +5 -5
- package/es/components/select-v2/src/defaults.d.ts +4 -4
- package/es/components/select-v2/src/select.vue.d.ts +93 -93
- package/es/components/select-v2/src/useSelect.d.ts +1 -1
- 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/button.vue.d.ts +1 -1
- package/es/components/slider/src/slider.vue.d.ts +7 -7
- package/es/components/space/src/space.d.ts +1 -1
- package/es/components/steps/src/item.d.ts +1 -1
- package/es/components/steps/src/item.vue.d.ts +1 -1
- package/es/components/steps/src/steps.d.ts +2 -2
- package/es/components/switch/src/switch.vue.d.ts +4 -4
- package/es/components/table/src/filter-panel.vue.d.ts +79 -79
- package/es/components/table/src/table-header/index.d.ts +14 -14
- package/es/components/table/src/table.vue.d.ts +2 -2
- package/es/components/table/src/util.d.ts +2 -2
- package/es/components/table/src/util.mjs +4 -8
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/table-v2/src/components/header.d.ts +1 -1
- package/es/components/table-v2/src/components/row.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +4 -4
- package/es/components/table-v2/src/table-v2.d.ts +5 -5
- package/es/components/tabs/src/tab-nav.d.ts +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +6 -6
- package/es/components/tag/src/tag.d.ts +2 -2
- package/es/components/tag/src/tag.vue.d.ts +2 -2
- package/es/components/text/src/text.d.ts +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
- package/es/components/time-picker/src/common/picker.vue.d.ts +19 -19
- package/es/components/time-picker/src/common/props.d.ts +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +13 -13
- package/es/components/time-select/src/time-select.vue.d.ts +12 -12
- package/es/components/timeline/src/timeline-item.d.ts +2 -2
- package/es/components/tooltip/src/content.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +16 -16
- package/es/components/tooltip/src/tooltip.d.ts +3 -3
- package/es/components/tooltip/src/tooltip.vue.d.ts +17 -17
- package/es/components/tooltip/src/trigger.d.ts +1 -1
- package/es/components/tour/src/content.d.ts +2 -2
- package/es/components/tour/src/mask.vue.d.ts +1 -1
- package/es/components/tour/src/step.d.ts +1 -1
- package/es/components/tour/src/step.vue.d.ts +1 -1
- package/es/components/tour/src/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +7 -7
- package/es/components/transfer/src/transfer.vue.d.ts +1 -1
- package/es/components/tree/src/tree-node.vue.d.ts +15 -15
- package/es/components/tree/src/tree.vue.d.ts +24 -24
- package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/es/components/tree-select/src/tree-select.vue.d.ts +41 -41
- package/es/components/tree-v2/src/composables/useTree.d.ts +4 -4
- package/es/components/tree-v2/src/tree.vue.d.ts +9 -9
- package/es/components/upload/src/upload-content.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +3 -3
- package/es/components/upload/src/upload-list.d.ts +1 -1
- package/es/components/upload/src/upload.d.ts +2 -2
- package/es/components/upload/src/upload.vue.d.ts +4 -4
- package/es/components/virtual-list/src/builders/build-grid.d.ts +3 -3
- package/es/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/es/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/es/components/watermark/src/watermark.vue.d.ts +2 -2
- 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/affix/src/affix.vue.d.ts +4 -4
- package/lib/components/alert/src/alert.d.ts +2 -2
- package/lib/components/alert/src/alert.vue.d.ts +1 -1
- package/lib/components/anchor/src/anchor.d.ts +1 -1
- package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.d.ts +4 -4
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +6 -6
- package/lib/components/avatar/src/avatar-group.d.ts +1 -1
- package/lib/components/avatar/src/avatar.vue.d.ts +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +2 -2
- package/lib/components/badge/src/badge.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 +1 -1
- package/lib/components/button/src/button.vue.d.ts +4 -4
- package/lib/components/button/src/use-button.d.ts +1 -1
- package/lib/components/calendar/src/calendar.vue.d.ts +1 -1
- package/lib/components/calendar/src/select-controller.vue.d.ts +2 -2
- package/lib/components/card/src/card.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +3 -3
- package/lib/components/cascader/src/cascader.vue.d.ts +18 -18
- package/lib/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
- package/lib/components/checkbox/src/checkbox.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
- package/lib/components/col/src/col.vue.d.ts +2 -2
- package/lib/components/collapse/src/collapse.vue.d.ts +1 -1
- package/lib/components/color-picker/src/color-picker.vue.d.ts +10 -10
- package/lib/components/color-picker-panel/src/color-picker-panel.vue.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.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 +13 -13
- package/lib/components/date-picker/src/props.d.ts +1 -1
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +3 -3
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +9 -9
- package/lib/components/descriptions/src/description-item.d.ts +11 -11
- package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +9 -9
- 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 +10 -10
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +2 -2
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +6 -6
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +91 -91
- package/lib/components/form/src/form-item.d.ts +2 -2
- 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/image/src/image.vue.d.ts +4 -4
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/lib/components/input/src/input.d.ts +3 -3
- package/lib/components/input/src/input.vue.d.ts +19 -19
- package/lib/components/input-number/src/input-number.d.ts +3 -3
- package/lib/components/input-number/src/input-number.vue.d.ts +11 -11
- package/lib/components/input-otp/src/input-otp.vue.d.ts +4 -4
- package/lib/components/input-tag/src/input-tag.d.ts +3 -3
- package/lib/components/input-tag/src/input-tag.vue.d.ts +14 -14
- package/lib/components/link/src/link.d.ts +1 -1
- 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 +5 -5
- package/lib/components/menu/src/menu.d.ts +6 -6
- 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 +5 -5
- package/lib/components/message-box/src/index.vue.d.ts +68 -68
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +6 -6
- package/lib/components/pagination/src/components/sizes.vue.d.ts +1 -1
- package/lib/components/pagination/src/pagination.d.ts +4 -4
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +5 -5
- package/lib/components/popover/src/popover.d.ts +2 -2
- package/lib/components/popover/src/popover.vue.d.ts +15 -15
- package/lib/components/popper/src/composables/use-content.d.ts +2 -2
- package/lib/components/popper/src/content.d.ts +4 -4
- package/lib/components/popper/src/content.vue.d.ts +15 -15
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/progress/src/progress.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
- package/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/lib/components/rate/src/rate.vue.d.ts +2 -2
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +2 -2
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/lib/components/segmented/index.d.ts +2 -2
- package/lib/components/segmented/src/segmented.vue.d.ts +1 -1
- 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 +4 -4
- package/lib/components/select/src/select.vue.d.ts +105 -105
- package/lib/components/select/src/useSelect.d.ts +5 -5
- package/lib/components/select-v2/src/defaults.d.ts +4 -4
- package/lib/components/select-v2/src/select.vue.d.ts +93 -93
- package/lib/components/select-v2/src/useSelect.d.ts +1 -1
- 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/button.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.vue.d.ts +7 -7
- package/lib/components/space/src/space.d.ts +1 -1
- package/lib/components/steps/src/item.d.ts +1 -1
- package/lib/components/steps/src/item.vue.d.ts +1 -1
- package/lib/components/steps/src/steps.d.ts +2 -2
- package/lib/components/switch/src/switch.vue.d.ts +4 -4
- package/lib/components/table/src/filter-panel.vue.d.ts +79 -79
- package/lib/components/table/src/table-header/index.d.ts +14 -14
- package/lib/components/table/src/table.vue.d.ts +2 -2
- package/lib/components/table/src/util.d.ts +2 -2
- package/lib/components/table/src/util.js +4 -8
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/table-v2/src/components/header.d.ts +1 -1
- package/lib/components/table-v2/src/components/row.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +4 -4
- package/lib/components/table-v2/src/table-v2.d.ts +5 -5
- package/lib/components/tabs/src/tab-nav.d.ts +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +6 -6
- package/lib/components/tag/src/tag.d.ts +2 -2
- package/lib/components/tag/src/tag.vue.d.ts +2 -2
- package/lib/components/text/src/text.d.ts +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.vue.d.ts +6 -6
- package/lib/components/time-picker/src/common/picker.vue.d.ts +19 -19
- package/lib/components/time-picker/src/common/props.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +13 -13
- package/lib/components/time-select/src/time-select.vue.d.ts +12 -12
- package/lib/components/timeline/src/timeline-item.d.ts +2 -2
- package/lib/components/tooltip/src/content.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +16 -16
- package/lib/components/tooltip/src/tooltip.d.ts +3 -3
- package/lib/components/tooltip/src/tooltip.vue.d.ts +17 -17
- package/lib/components/tooltip/src/trigger.d.ts +1 -1
- package/lib/components/tour/src/content.d.ts +2 -2
- package/lib/components/tour/src/mask.vue.d.ts +1 -1
- package/lib/components/tour/src/step.d.ts +1 -1
- package/lib/components/tour/src/step.vue.d.ts +1 -1
- package/lib/components/tour/src/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +7 -7
- package/lib/components/transfer/src/transfer.vue.d.ts +1 -1
- package/lib/components/tree/src/tree-node.vue.d.ts +15 -15
- package/lib/components/tree/src/tree.vue.d.ts +24 -24
- package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/lib/components/tree-select/src/tree-select.vue.d.ts +41 -41
- package/lib/components/tree-v2/src/composables/useTree.d.ts +4 -4
- package/lib/components/tree-v2/src/tree.vue.d.ts +9 -9
- package/lib/components/upload/src/upload-content.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +3 -3
- package/lib/components/upload/src/upload-list.d.ts +1 -1
- package/lib/components/upload/src/upload.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.d.ts +4 -4
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +3 -3
- package/lib/components/virtual-list/src/builders/build-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +2 -2
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +2 -2
- package/lib/components/watermark/src/watermark.vue.d.ts +2 -2
- 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 +3 -3
- package/web-types.json +1 -1
|
@@ -105,19 +105,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
105
105
|
}, {}, {
|
|
106
106
|
ElCheckbox: {
|
|
107
107
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
|
|
108
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
109
108
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
109
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
110
110
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
111
|
-
change: (val: CheckboxValueType) => void;
|
|
112
111
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
112
|
+
change: (val: CheckboxValueType) => void;
|
|
113
113
|
}, _$vue.PublicProps, {
|
|
114
|
-
name: string;
|
|
115
|
-
label: string | boolean | number | object;
|
|
116
|
-
disabled: boolean;
|
|
117
114
|
id: string;
|
|
115
|
+
disabled: boolean;
|
|
118
116
|
modelValue: number | string | boolean;
|
|
119
117
|
validateEvent: boolean;
|
|
118
|
+
name: string;
|
|
120
119
|
value: string | boolean | number | object;
|
|
120
|
+
label: string | boolean | number | object;
|
|
121
121
|
trueValue: string | number;
|
|
122
122
|
falseValue: string | number;
|
|
123
123
|
trueLabel: string | number;
|
|
@@ -130,16 +130,16 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
130
130
|
M: {};
|
|
131
131
|
Defaults: {};
|
|
132
132
|
}, Readonly<CheckboxProps> & Readonly<{
|
|
133
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
134
133
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
134
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
135
135
|
}>, {}, {}, {}, {}, {
|
|
136
|
-
name: string;
|
|
137
|
-
label: string | boolean | number | object;
|
|
138
|
-
disabled: boolean;
|
|
139
136
|
id: string;
|
|
137
|
+
disabled: boolean;
|
|
140
138
|
modelValue: number | string | boolean;
|
|
141
139
|
validateEvent: boolean;
|
|
140
|
+
name: string;
|
|
142
141
|
value: string | boolean | number | object;
|
|
142
|
+
label: string | boolean | number | object;
|
|
143
143
|
trueValue: string | number;
|
|
144
144
|
falseValue: string | number;
|
|
145
145
|
trueLabel: string | number;
|
|
@@ -149,19 +149,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
149
149
|
__isTeleport?: never;
|
|
150
150
|
__isSuspense?: never;
|
|
151
151
|
} & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
|
|
152
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
153
152
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
153
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
154
154
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
155
|
-
change: (val: CheckboxValueType) => void;
|
|
156
155
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
156
|
+
change: (val: CheckboxValueType) => void;
|
|
157
157
|
}, string, {
|
|
158
|
-
name: string;
|
|
159
|
-
label: string | boolean | number | object;
|
|
160
|
-
disabled: boolean;
|
|
161
158
|
id: string;
|
|
159
|
+
disabled: boolean;
|
|
162
160
|
modelValue: number | string | boolean;
|
|
163
161
|
validateEvent: boolean;
|
|
162
|
+
name: string;
|
|
164
163
|
value: string | boolean | number | object;
|
|
164
|
+
label: string | boolean | number | object;
|
|
165
165
|
trueValue: string | number;
|
|
166
166
|
falseValue: string | number;
|
|
167
167
|
trueLabel: string | number;
|
|
@@ -197,11 +197,11 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
197
197
|
};
|
|
198
198
|
ElCheckboxGroup: SFCWithInstall<{
|
|
199
199
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxGroupProps> & Readonly<{
|
|
200
|
-
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
201
200
|
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
201
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
202
202
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
203
|
-
change: (val: CheckboxValueType[]) => void;
|
|
204
203
|
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
204
|
+
change: (val: CheckboxValueType[]) => void;
|
|
205
205
|
}, _$vue.PublicProps, {
|
|
206
206
|
type: "checkbox" | "button";
|
|
207
207
|
props: {
|
|
@@ -210,9 +210,9 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
210
210
|
disabled?: string;
|
|
211
211
|
};
|
|
212
212
|
disabled: boolean;
|
|
213
|
-
tag: string;
|
|
214
213
|
modelValue: CheckboxGroupValueType;
|
|
215
214
|
validateEvent: boolean;
|
|
215
|
+
tag: string;
|
|
216
216
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
217
217
|
P: {};
|
|
218
218
|
B: {};
|
|
@@ -221,8 +221,8 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
221
221
|
M: {};
|
|
222
222
|
Defaults: {};
|
|
223
223
|
}, Readonly<CheckboxGroupProps> & Readonly<{
|
|
224
|
-
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
225
224
|
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
225
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
226
226
|
}>, {}, {}, {}, {}, {
|
|
227
227
|
type: "checkbox" | "button";
|
|
228
228
|
props: {
|
|
@@ -231,19 +231,19 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
231
231
|
disabled?: string;
|
|
232
232
|
};
|
|
233
233
|
disabled: boolean;
|
|
234
|
-
tag: string;
|
|
235
234
|
modelValue: CheckboxGroupValueType;
|
|
236
235
|
validateEvent: boolean;
|
|
236
|
+
tag: string;
|
|
237
237
|
}>;
|
|
238
238
|
__isFragment?: never;
|
|
239
239
|
__isTeleport?: never;
|
|
240
240
|
__isSuspense?: never;
|
|
241
241
|
} & _$vue.ComponentOptionsBase<Readonly<CheckboxGroupProps> & Readonly<{
|
|
242
|
-
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
243
242
|
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
|
243
|
+
onChange?: ((val: CheckboxValueType[]) => any) | undefined;
|
|
244
244
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
245
|
-
change: (val: CheckboxValueType[]) => void;
|
|
246
245
|
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
|
246
|
+
change: (val: CheckboxValueType[]) => void;
|
|
247
247
|
}, string, {
|
|
248
248
|
type: "checkbox" | "button";
|
|
249
249
|
props: {
|
|
@@ -252,9 +252,9 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
252
252
|
disabled?: string;
|
|
253
253
|
};
|
|
254
254
|
disabled: boolean;
|
|
255
|
-
tag: string;
|
|
256
255
|
modelValue: CheckboxGroupValueType;
|
|
257
256
|
validateEvent: boolean;
|
|
257
|
+
tag: string;
|
|
258
258
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
259
259
|
$slots: {
|
|
260
260
|
default?: (props: {}) => any;
|
|
@@ -284,10 +284,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
284
284
|
}) => void;
|
|
285
285
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
286
286
|
}, _$vue.PublicProps, {
|
|
287
|
-
|
|
287
|
+
tabindex: number | string;
|
|
288
288
|
height: number | string;
|
|
289
289
|
maxHeight: number | string;
|
|
290
|
-
|
|
290
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
291
291
|
distance: number;
|
|
292
292
|
wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
293
293
|
wrapClass: string | string[];
|
|
@@ -318,10 +318,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
318
318
|
setScrollLeft: (value: number) => void;
|
|
319
319
|
handleScroll: () => void;
|
|
320
320
|
}, {}, {}, {}, {
|
|
321
|
-
|
|
321
|
+
tabindex: number | string;
|
|
322
322
|
height: number | string;
|
|
323
323
|
maxHeight: number | string;
|
|
324
|
-
|
|
324
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
325
325
|
distance: number;
|
|
326
326
|
wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
327
327
|
wrapClass: string | string[];
|
|
@@ -355,10 +355,10 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
355
355
|
}) => void;
|
|
356
356
|
"end-reached": (direction: ScrollbarDirection) => void;
|
|
357
357
|
}, string, {
|
|
358
|
-
|
|
358
|
+
tabindex: number | string;
|
|
359
359
|
height: number | string;
|
|
360
360
|
maxHeight: number | string;
|
|
361
|
-
|
|
361
|
+
tag: keyof HTMLElementTagNameMap | (string & {});
|
|
362
362
|
distance: number;
|
|
363
363
|
wrapStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
364
364
|
wrapClass: string | string[];
|
|
@@ -396,31 +396,31 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
396
396
|
"before-show": (...args: any[]) => void;
|
|
397
397
|
"before-hide": (...args: any[]) => void;
|
|
398
398
|
}, _$vue.PublicProps, {
|
|
399
|
+
offset: number;
|
|
400
|
+
teleported: boolean;
|
|
401
|
+
effect: PopperEffect;
|
|
399
402
|
visible: boolean | null;
|
|
400
|
-
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
401
|
-
role: typeof roleTypes[number];
|
|
402
403
|
content: string;
|
|
403
|
-
|
|
404
|
-
offset: number;
|
|
405
|
-
showAfter: number;
|
|
406
|
-
hideAfter: number;
|
|
407
|
-
autoClose: number;
|
|
408
|
-
boundariesPadding: number;
|
|
409
|
-
gpuAcceleration: boolean;
|
|
410
|
-
placement: Placement;
|
|
411
|
-
popperOptions: Partial<Options>;
|
|
412
|
-
strategy: "absolute" | "fixed";
|
|
413
|
-
arrowOffset: number;
|
|
404
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
414
405
|
enterable: boolean;
|
|
415
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
416
|
-
stopPopperMouseEvent: boolean;
|
|
417
|
-
loop: boolean;
|
|
418
406
|
pure: boolean;
|
|
419
407
|
focusOnShow: boolean;
|
|
420
408
|
trapping: boolean;
|
|
409
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
410
|
+
stopPopperMouseEvent: boolean;
|
|
421
411
|
virtualTriggering: boolean;
|
|
422
|
-
|
|
412
|
+
loop: boolean;
|
|
413
|
+
boundariesPadding: number;
|
|
414
|
+
gpuAcceleration: boolean;
|
|
415
|
+
placement: Placement;
|
|
416
|
+
popperOptions: Partial<Options>;
|
|
417
|
+
strategy: "fixed" | "absolute";
|
|
418
|
+
arrowOffset: number;
|
|
423
419
|
showArrow: boolean;
|
|
420
|
+
role: typeof roleTypes[number];
|
|
421
|
+
showAfter: number;
|
|
422
|
+
hideAfter: number;
|
|
423
|
+
autoClose: number;
|
|
424
424
|
trigger: Arrayable<TooltipTriggerType>;
|
|
425
425
|
triggerKeys: string[];
|
|
426
426
|
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
@@ -447,31 +447,31 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
447
447
|
onClose: (event?: Event, delay?: number) => void;
|
|
448
448
|
hide: (event?: Event) => void;
|
|
449
449
|
}, {}, {}, {}, {
|
|
450
|
+
offset: number;
|
|
451
|
+
teleported: boolean;
|
|
452
|
+
effect: PopperEffect;
|
|
450
453
|
visible: boolean | null;
|
|
451
|
-
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
452
|
-
role: typeof roleTypes[number];
|
|
453
454
|
content: string;
|
|
454
|
-
|
|
455
|
-
offset: number;
|
|
456
|
-
showAfter: number;
|
|
457
|
-
hideAfter: number;
|
|
458
|
-
autoClose: number;
|
|
459
|
-
boundariesPadding: number;
|
|
460
|
-
gpuAcceleration: boolean;
|
|
461
|
-
placement: Placement;
|
|
462
|
-
popperOptions: Partial<Options>;
|
|
463
|
-
strategy: "absolute" | "fixed";
|
|
464
|
-
arrowOffset: number;
|
|
455
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
465
456
|
enterable: boolean;
|
|
466
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
467
|
-
stopPopperMouseEvent: boolean;
|
|
468
|
-
loop: boolean;
|
|
469
457
|
pure: boolean;
|
|
470
458
|
focusOnShow: boolean;
|
|
471
459
|
trapping: boolean;
|
|
460
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
461
|
+
stopPopperMouseEvent: boolean;
|
|
472
462
|
virtualTriggering: boolean;
|
|
473
|
-
|
|
463
|
+
loop: boolean;
|
|
464
|
+
boundariesPadding: number;
|
|
465
|
+
gpuAcceleration: boolean;
|
|
466
|
+
placement: Placement;
|
|
467
|
+
popperOptions: Partial<Options>;
|
|
468
|
+
strategy: "fixed" | "absolute";
|
|
469
|
+
arrowOffset: number;
|
|
474
470
|
showArrow: boolean;
|
|
471
|
+
role: typeof roleTypes[number];
|
|
472
|
+
showAfter: number;
|
|
473
|
+
hideAfter: number;
|
|
474
|
+
autoClose: number;
|
|
475
475
|
trigger: Arrayable<TooltipTriggerType>;
|
|
476
476
|
triggerKeys: string[];
|
|
477
477
|
}>;
|
|
@@ -503,31 +503,31 @@ declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
503
503
|
"before-show": (...args: any[]) => void;
|
|
504
504
|
"before-hide": (...args: any[]) => void;
|
|
505
505
|
}, string, {
|
|
506
|
+
offset: number;
|
|
507
|
+
teleported: boolean;
|
|
508
|
+
effect: PopperEffect;
|
|
506
509
|
visible: boolean | null;
|
|
507
|
-
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
508
|
-
role: typeof roleTypes[number];
|
|
509
510
|
content: string;
|
|
510
|
-
|
|
511
|
-
offset: number;
|
|
512
|
-
showAfter: number;
|
|
513
|
-
hideAfter: number;
|
|
514
|
-
autoClose: number;
|
|
515
|
-
boundariesPadding: number;
|
|
516
|
-
gpuAcceleration: boolean;
|
|
517
|
-
placement: Placement;
|
|
518
|
-
popperOptions: Partial<Options>;
|
|
519
|
-
strategy: "absolute" | "fixed";
|
|
520
|
-
arrowOffset: number;
|
|
511
|
+
style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
521
512
|
enterable: boolean;
|
|
522
|
-
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
523
|
-
stopPopperMouseEvent: boolean;
|
|
524
|
-
loop: boolean;
|
|
525
513
|
pure: boolean;
|
|
526
514
|
focusOnShow: boolean;
|
|
527
515
|
trapping: boolean;
|
|
516
|
+
popperStyle: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
|
|
517
|
+
stopPopperMouseEvent: boolean;
|
|
528
518
|
virtualTriggering: boolean;
|
|
529
|
-
|
|
519
|
+
loop: boolean;
|
|
520
|
+
boundariesPadding: number;
|
|
521
|
+
gpuAcceleration: boolean;
|
|
522
|
+
placement: Placement;
|
|
523
|
+
popperOptions: Partial<Options>;
|
|
524
|
+
strategy: "fixed" | "absolute";
|
|
525
|
+
arrowOffset: number;
|
|
530
526
|
showArrow: boolean;
|
|
527
|
+
role: typeof roleTypes[number];
|
|
528
|
+
showAfter: number;
|
|
529
|
+
hideAfter: number;
|
|
530
|
+
autoClose: number;
|
|
531
531
|
trigger: Arrayable<TooltipTriggerType>;
|
|
532
532
|
triggerKeys: string[];
|
|
533
533
|
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
@@ -119,19 +119,19 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
119
119
|
}, {}, {
|
|
120
120
|
ElCheckbox: {
|
|
121
121
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
|
|
122
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
123
122
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
123
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
124
124
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
125
|
-
change: (val: CheckboxValueType) => void;
|
|
126
125
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
126
|
+
change: (val: CheckboxValueType) => void;
|
|
127
127
|
}, _$vue.PublicProps, {
|
|
128
|
-
name: string;
|
|
129
|
-
label: string | boolean | number | object;
|
|
130
|
-
disabled: boolean;
|
|
131
128
|
id: string;
|
|
129
|
+
disabled: boolean;
|
|
132
130
|
modelValue: number | string | boolean;
|
|
133
131
|
validateEvent: boolean;
|
|
132
|
+
name: string;
|
|
134
133
|
value: string | boolean | number | object;
|
|
134
|
+
label: string | boolean | number | object;
|
|
135
135
|
trueValue: string | number;
|
|
136
136
|
falseValue: string | number;
|
|
137
137
|
trueLabel: string | number;
|
|
@@ -144,16 +144,16 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
144
144
|
M: {};
|
|
145
145
|
Defaults: {};
|
|
146
146
|
}, Readonly<CheckboxProps> & Readonly<{
|
|
147
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
148
147
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
148
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, {
|
|
150
|
-
name: string;
|
|
151
|
-
label: string | boolean | number | object;
|
|
152
|
-
disabled: boolean;
|
|
153
150
|
id: string;
|
|
151
|
+
disabled: boolean;
|
|
154
152
|
modelValue: number | string | boolean;
|
|
155
153
|
validateEvent: boolean;
|
|
154
|
+
name: string;
|
|
156
155
|
value: string | boolean | number | object;
|
|
156
|
+
label: string | boolean | number | object;
|
|
157
157
|
trueValue: string | number;
|
|
158
158
|
falseValue: string | number;
|
|
159
159
|
trueLabel: string | number;
|
|
@@ -163,19 +163,19 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
163
163
|
__isTeleport?: never;
|
|
164
164
|
__isSuspense?: never;
|
|
165
165
|
} & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
|
|
166
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
167
166
|
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
167
|
+
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
168
168
|
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
169
|
-
change: (val: CheckboxValueType) => void;
|
|
170
169
|
"update:modelValue": (val: CheckboxValueType) => void;
|
|
170
|
+
change: (val: CheckboxValueType) => void;
|
|
171
171
|
}, string, {
|
|
172
|
-
name: string;
|
|
173
|
-
label: string | boolean | number | object;
|
|
174
|
-
disabled: boolean;
|
|
175
172
|
id: string;
|
|
173
|
+
disabled: boolean;
|
|
176
174
|
modelValue: number | string | boolean;
|
|
177
175
|
validateEvent: boolean;
|
|
176
|
+
name: string;
|
|
178
177
|
value: string | boolean | number | object;
|
|
178
|
+
label: string | boolean | number | object;
|
|
179
179
|
trueValue: string | number;
|
|
180
180
|
falseValue: string | number;
|
|
181
181
|
trueLabel: string | number;
|
|
@@ -17,6 +17,7 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
|
|
|
17
17
|
}) => any) | undefined;
|
|
18
18
|
onSelect?: ((selection: T[], row: T) => any) | undefined;
|
|
19
19
|
"onSelect-all"?: ((selection: T[]) => any) | undefined;
|
|
20
|
+
"onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
|
|
20
21
|
"onCurrent-change"?: ((currentRow: T | null, oldCurrentRow: T | null) => any) | undefined;
|
|
21
22
|
"onSelection-change"?: ((newSelection: T[]) => any) | undefined;
|
|
22
23
|
"onCell-mouse-enter"?: ((row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent) => any) | undefined;
|
|
@@ -36,7 +37,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
|
|
|
36
37
|
}) => any) | undefined;
|
|
37
38
|
"onFilter-change"?: ((newFilters: Record<string, string[]>) => any) | undefined;
|
|
38
39
|
"onHeader-dragend"?: ((newWidth: number, oldWidth: number, column: TableColumnCtx<T>, event: MouseEvent) => any) | undefined;
|
|
39
|
-
"onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
|
|
40
40
|
}> & (typeof globalThis extends {
|
|
41
41
|
__VLS_PROPS_FALLBACK: infer P;
|
|
42
42
|
} ? P : {});
|
|
@@ -688,7 +688,7 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
|
|
|
688
688
|
computedSumText: _$vue.ComputedRef<string>;
|
|
689
689
|
computedEmptyText: _$vue.ComputedRef<string>;
|
|
690
690
|
computedTooltipEffect: _$vue.ComputedRef<string | undefined>;
|
|
691
|
-
computedTooltipOptions: _$vue.ComputedRef<Partial<
|
|
691
|
+
computedTooltipOptions: _$vue.ComputedRef<Partial<Omit<UseTooltipProps, "visible" | "content" | "referenceEl" | "triggerTargetEl" | "virtualTriggering" | "rawContent" | "persistent" | "autoClose" | "virtualRef">> | undefined>;
|
|
692
692
|
tableLayout: _$vue.ComputedRef<"fixed" | "auto">;
|
|
693
693
|
scrollbarViewStyle: {
|
|
694
694
|
display: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseTooltipProps } from "../../tooltip/src/tooltip.js";
|
|
2
2
|
import { TableColumnCtx } from "./table-column/defaults.js";
|
|
3
3
|
import { DefaultRow, Table, TreeProps } from "./table/defaults.js";
|
|
4
4
|
import { CSSProperties, VNode, VNodeArrayChildren } from "vue";
|
|
@@ -6,7 +6,7 @@ import { CSSProperties, VNode, VNodeArrayChildren } from "vue";
|
|
|
6
6
|
//#region ../../packages/components/table/src/util.d.ts
|
|
7
7
|
declare const createTableId: (namespace: string) => string;
|
|
8
8
|
declare const createTableColumnId: (parentId: string) => string;
|
|
9
|
-
type TableOverflowTooltipOptions = Partial<
|
|
9
|
+
type TableOverflowTooltipOptions = Partial<Omit<UseTooltipProps, 'content' | 'rawContent' | 'persistent' | 'visible' | 'autoClose' | 'referenceEl' | 'triggerTargetEl' | 'virtualRef' | 'virtualTriggering'>>;
|
|
10
10
|
type TableOverflowTooltipFormatter<T extends DefaultRow> = (data: {
|
|
11
11
|
row: T;
|
|
12
12
|
column: TableColumnCtx<T>;
|
|
@@ -195,10 +195,6 @@ function walkTreeNode(root, cb, childrenKey = "children", lazyKey = "hasChildren
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
const getTableOverflowTooltipProps = (props, innerText, row, column) => {
|
|
198
|
-
const popperOptions = {
|
|
199
|
-
strategy: "fixed",
|
|
200
|
-
...props.popperOptions
|
|
201
|
-
};
|
|
202
198
|
const tooltipFormatterContent = isFunction(column?.tooltipFormatter) ? column.tooltipFormatter({
|
|
203
199
|
row,
|
|
204
200
|
column,
|
|
@@ -207,14 +203,14 @@ const getTableOverflowTooltipProps = (props, innerText, row, column) => {
|
|
|
207
203
|
if (isVNode(tooltipFormatterContent)) return {
|
|
208
204
|
slotContent: tooltipFormatterContent,
|
|
209
205
|
content: null,
|
|
210
|
-
|
|
211
|
-
|
|
206
|
+
strategy: "fixed",
|
|
207
|
+
...props
|
|
212
208
|
};
|
|
213
209
|
return {
|
|
214
210
|
slotContent: null,
|
|
215
211
|
content: tooltipFormatterContent ?? innerText,
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
strategy: "fixed",
|
|
213
|
+
...props
|
|
218
214
|
};
|
|
219
215
|
};
|
|
220
216
|
let removePopper = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.mjs","names":["isUndefined"],"sources":["../../../../../../packages/components/table/src/util.ts"],"sourcesContent":["import { Comment, Fragment, createVNode, isVNode, render } from 'vue'\nimport { flatMap, get, isNull, merge } from 'lodash-unified'\nimport {\n ensureArray,\n getProp,\n hasOwn,\n isArray,\n isBoolean,\n isFunction,\n isNumber,\n isObject,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport ElTooltip, {\n type ElTooltipProps,\n} from '@element-plus/components/tooltip'\n\nimport type { DefaultRow, Table, TreeProps } from './table/defaults'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { CSSProperties, VNode, VNodeArrayChildren } from 'vue'\n\nlet tableIdSeed = 1\nlet columnIdSeed = 1\n\nexport const createTableId = (namespace: string) =>\n `${namespace}-table_${tableIdSeed++}`\n\nexport const createTableColumnId = (parentId: string) =>\n `${parentId}_column_${columnIdSeed++}`\n\nexport type TableOverflowTooltipOptions = Partial<\n Pick<\n ElTooltipProps,\n | 'appendTo'\n | 'effect'\n | 'enterable'\n | 'hideAfter'\n | 'offset'\n | 'placement'\n | 'popperClass'\n | 'popperOptions'\n | 'showAfter'\n | 'showArrow'\n | 'transition'\n >\n>\n\nexport type TableOverflowTooltipFormatter<T extends DefaultRow> = (data: {\n row: T\n column: TableColumnCtx<T>\n cellValue: any\n}) => VNode | string\n\ntype RemovePopperFn = (() => void) & {\n trigger?: HTMLElement\n vm?: VNode\n}\n\ntype CompareValue<T> = {\n value: T\n index: number\n key: any[] | null\n}\n\nexport const getCell = function (event: Event) {\n return (event.target as HTMLElement)?.closest('td')\n}\n\nexport const orderBy = function <T extends DefaultRow>(\n array: T[],\n sortKey: string | null,\n reverse: string | number | null,\n sortMethod: TableColumnCtx<T>['sortMethod'] | null,\n sortBy: string | string[] | ((a: T, index: number, array?: T[]) => string)\n) {\n if (\n !sortKey &&\n !sortMethod &&\n (!sortBy || (isArray(sortBy) && !sortBy.length))\n ) {\n return array\n }\n if (isString(reverse)) {\n reverse = reverse === 'descending' ? -1 : 1\n } else {\n reverse = reverse && reverse < 0 ? -1 : 1\n }\n const getKey = sortMethod\n ? null\n : function (value: T, index: number) {\n if (sortBy) {\n return flatMap(ensureArray(sortBy), (by) => {\n if (isString(by)) {\n return get(value, by)\n } else {\n return by(value, index, array)\n }\n })\n }\n if (sortKey !== '$key') {\n if (isObject(value) && '$value' in value) value = value.$value\n }\n return [\n isObject(value) ? (sortKey ? get(value, sortKey) : null) : value,\n ]\n }\n const compare = function (a: CompareValue<T>, b: CompareValue<T>) {\n if (sortMethod) {\n return sortMethod(a.value, b.value)\n }\n for (let i = 0, len = a.key?.length ?? 0; i < len; i++) {\n if (a.key?.[i] < b.key?.[i]) {\n return -1\n }\n if (a.key?.[i] > b.key?.[i]) {\n return 1\n }\n }\n return 0\n }\n return array\n .map<CompareValue<T>>((value: T, index) => {\n return {\n value,\n index,\n key: getKey ? getKey(value, index) : null,\n }\n })\n .sort((a, b) => {\n let order = compare(a, b)\n if (!order) {\n // make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\n order = a.index - b.index\n }\n return order * +reverse\n })\n .map((item) => item.value)\n}\n\nexport const getColumnById = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnId: string\n): null | TableColumnCtx<T> {\n let column = null\n table.columns.forEach((item) => {\n if (item.id === columnId) {\n column = item\n }\n })\n return column\n}\n\nexport const getColumnByKey = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnKey: string\n): TableColumnCtx<T> {\n let column = null\n for (let i = 0; i < table.columns.length; i++) {\n const item = table.columns[i]\n if (item.columnKey === columnKey) {\n column = item\n break\n }\n }\n if (!column)\n throwError('ElTable', `No column matching with column-key: ${columnKey}`)\n return column\n}\n\nexport const getColumnByCell = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n cell: HTMLElement,\n namespace: string\n): null | TableColumnCtx<T> {\n const matches = (cell.className || '').match(\n new RegExp(`${namespace}-table_[^\\\\s]+`, 'gm')\n )\n if (matches) {\n return getColumnById(table, matches[0])\n }\n return null\n}\n\nexport const getRowIdentity = <T extends DefaultRow>(\n row: T,\n rowKey: string | ((row: T) => string) | null\n): string => {\n if (!row) throw new Error('Row is required when get row identity')\n if (isString(rowKey)) {\n if (!rowKey.includes('.')) {\n return `${row[rowKey]}`\n }\n const key = rowKey.split('.')\n let current: any = row\n for (const element of key) {\n current = current[element]\n }\n //TODO: \"current\" is now any, we just satisfies typecheck here\n // but this function can actually return a number\n return `${current}`\n } else if (isFunction(rowKey)) {\n return rowKey.call(null, row)\n }\n return ''\n}\n\nexport const getKeysMap = function <T extends DefaultRow>(\n array: T[],\n rowKey: string | null,\n flatten = false,\n childrenKey = 'children'\n): Record<PropertyKey, { row: T; index: number }> {\n const data = array || []\n const arrayMap: Record<string, { row: T; index: number }> = {}\n\n data.forEach((row, index) => {\n arrayMap[getRowIdentity(row, rowKey)] = { row, index }\n\n if (flatten) {\n const children = row[childrenKey]\n if (isArray(children)) {\n Object.assign(arrayMap, getKeysMap(children, rowKey, true, childrenKey))\n }\n }\n })\n\n return arrayMap\n}\n\nexport function mergeOptions<T extends DefaultRow, K extends DefaultRow>(\n defaults: T,\n config: K\n): T & K {\n const options = {} as T & K\n let key: keyof T & keyof K\n for (key in defaults) {\n options[key] = defaults[key]\n }\n for (key in config) {\n if (hasOwn(config, key)) {\n const value = config[key]\n if (!isUndefined(value)) {\n options[key as keyof K] = value\n }\n }\n }\n return options\n}\n\nexport function parseWidth(width?: number | string): number | string {\n if (width === '') return width\n if (!isUndefined(width)) {\n width = Number.parseInt(width as string, 10)\n if (Number.isNaN(width)) {\n width = ''\n }\n }\n return width!\n}\n\nexport function parseMinWidth(minWidth: number | string): number | string {\n if (minWidth === '') return minWidth\n if (!isUndefined(minWidth)) {\n minWidth = parseWidth(minWidth)\n if (Number.isNaN(minWidth)) {\n minWidth = 80\n }\n }\n return minWidth\n}\n\nexport function parseHeight(height: number | string | null) {\n if (isNumber(height)) {\n return height\n }\n if (isString(height)) {\n if (/^\\d+(?:px)?$/.test(height)) {\n return Number.parseInt(height, 10)\n } else {\n return height\n }\n }\n return null\n}\n\n// https://github.com/reduxjs/redux/blob/master/src/compose.ts\nexport function compose(...funcs: ((...args: any[]) => void)[]) {\n if (funcs.length === 0) {\n return <T>(arg: T) => arg\n }\n if (funcs.length === 1) {\n return funcs[0]\n }\n return funcs.reduce(\n (a, b) =>\n (...args: any[]) =>\n a(b(...args))\n )\n}\n\nexport function toggleRowStatus<T extends DefaultRow>(\n statusArr: T[],\n row: T,\n newVal?: boolean,\n tableTreeProps?: TreeProps,\n selectable?: ((row: T, index: number) => boolean) | null,\n rowIndex?: number,\n rowKey?: string | null\n): boolean {\n let _rowIndex = rowIndex ?? 0\n let changed = false\n\n const getIndex = () => {\n if (!rowKey) {\n return statusArr.indexOf(row)\n }\n\n const id = getRowIdentity(row, rowKey)\n\n return statusArr.findIndex((item) => getRowIdentity(item, rowKey) === id)\n }\n\n const index = getIndex()\n\n const included = index !== -1\n const isRowSelectable = selectable?.call(null, row, _rowIndex)\n\n const toggleStatus = (type: 'add' | 'remove') => {\n if (type === 'add') {\n statusArr.push(row)\n } else {\n statusArr.splice(index, 1)\n }\n changed = true\n }\n const getChildrenCount = <T extends DefaultRow>(row: T) => {\n let count = 0\n const children = tableTreeProps?.children && row[tableTreeProps.children]\n if (children && isArray(children)) {\n count += children.length\n children.forEach((item) => {\n count += getChildrenCount(item)\n })\n }\n return count\n }\n\n if (!selectable || isRowSelectable) {\n if (isBoolean(newVal)) {\n if (newVal && !included) {\n toggleStatus('add')\n } else if (!newVal && included) {\n toggleStatus('remove')\n }\n } else {\n included ? toggleStatus('remove') : toggleStatus('add')\n }\n }\n\n if (\n !tableTreeProps?.checkStrictly &&\n tableTreeProps?.children &&\n isArray(row[tableTreeProps.children])\n ) {\n row[tableTreeProps.children].forEach((item: T) => {\n const childChanged = toggleRowStatus(\n statusArr,\n item,\n newVal ?? !included,\n tableTreeProps,\n selectable,\n _rowIndex + 1,\n rowKey\n )\n _rowIndex += getChildrenCount(item) + 1\n if (childChanged) {\n changed = childChanged\n }\n })\n }\n return changed\n}\n\nexport function walkTreeNode<T extends DefaultRow>(\n root: T[],\n cb: (parent: any, children: T | T[] | null, level: number) => void,\n childrenKey = 'children',\n lazyKey = 'hasChildren',\n lazy = false\n) {\n const isNil = (array: any): array is null => !(isArray(array) && array.length)\n\n function _walker(parent: any, children: T | T[], level: number) {\n cb(parent, children, level)\n children.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, level + 1)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, level + 1)\n }\n })\n }\n\n root.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, 0)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, 0)\n }\n })\n}\n\nconst getTableOverflowTooltipProps = <T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n innerText: string,\n row: T,\n column: TableColumnCtx<T> | null\n) => {\n // merge popperOptions\n const popperOptions = {\n strategy: 'fixed',\n ...props.popperOptions,\n }\n\n const tooltipFormatterContent = isFunction(column?.tooltipFormatter)\n ? column.tooltipFormatter({\n row,\n column,\n cellValue: getProp(row, column.property).value,\n })\n : undefined\n\n if (isVNode(tooltipFormatterContent)) {\n return {\n slotContent: tooltipFormatterContent,\n content: null,\n ...props,\n popperOptions,\n }\n }\n\n return {\n slotContent: null,\n content: tooltipFormatterContent ?? innerText,\n ...props,\n popperOptions,\n }\n}\n\nexport let removePopper: RemovePopperFn | null = null\n\nexport function createTablePopper<T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n popperContent: string,\n row: T,\n column: TableColumnCtx<T> | null,\n trigger: HTMLElement | null,\n table: Table<DefaultRow>\n) {\n const tableOverflowTooltipProps = getTableOverflowTooltipProps(\n props,\n popperContent,\n row,\n column\n )\n const mergedProps = {\n ...tableOverflowTooltipProps,\n slotContent: undefined,\n }\n if (removePopper?.trigger === trigger) {\n const comp = removePopper.vm?.component\n merge(comp?.props, mergedProps)\n if (comp && tableOverflowTooltipProps.slotContent) {\n comp.slots.content = () => [tableOverflowTooltipProps.slotContent]\n }\n return\n }\n removePopper?.()\n const parentNode = table?.refs.tableWrapper\n const ns = parentNode?.dataset.prefix\n const vm = createVNode(\n ElTooltip,\n {\n virtualTriggering: true,\n virtualRef: trigger,\n appendTo: parentNode,\n placement: 'top',\n transition: 'none', // Default does not require transition\n offset: 0,\n hideAfter: 0,\n ...mergedProps,\n },\n tableOverflowTooltipProps.slotContent\n ? {\n content: () => tableOverflowTooltipProps.slotContent,\n }\n : undefined\n )\n vm.appContext = { ...table.appContext, ...table }\n const container = document.createElement('div')\n render(vm, container)\n vm.component!.exposed!.onOpen()\n const scrollContainer = parentNode?.querySelector(`.${ns}-scrollbar__wrap`)\n removePopper = () => {\n if (vm.component?.exposed?.onClose) {\n vm.component.exposed.onClose()\n }\n render(null, container)\n const currentRemovePopper = removePopper as RemovePopperFn\n scrollContainer?.removeEventListener('scroll', currentRemovePopper)\n currentRemovePopper.trigger = undefined\n currentRemovePopper.vm = undefined\n removePopper = null\n }\n removePopper.trigger = trigger ?? undefined\n removePopper.vm = vm\n scrollContainer?.addEventListener('scroll', removePopper)\n}\n\nfunction getCurrentColumns<T extends DefaultRow>(\n column: TableColumnCtx<T>\n): TableColumnCtx<T>[] {\n if (column.children) {\n return flatMap(column.children, getCurrentColumns)\n } else {\n return [column]\n }\n}\n\nfunction getColSpan<T extends DefaultRow>(\n colSpan: number,\n column: TableColumnCtx<T>\n) {\n return colSpan + column.colSpan\n}\n\nexport const isFixedColumn = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n let start = 0\n let after = index\n const columns = store.states.columns.value\n if (realColumns) {\n // fixed column supported in grouped header\n const curColumns = getCurrentColumns(realColumns[index])\n const preColumns = columns.slice(0, columns.indexOf(curColumns[0]))\n\n start = preColumns.reduce(getColSpan, 0)\n after = start + curColumns.reduce(getColSpan, 0) - 1\n } else {\n start = index\n }\n let fixedLayout\n switch (fixed) {\n case 'left':\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n }\n break\n case 'right':\n if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n break\n default:\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n } else if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n }\n return fixedLayout\n ? {\n direction: fixedLayout,\n start,\n after,\n }\n : {}\n}\n\nexport const getFixedColumnsClass = <T extends DefaultRow>(\n namespace: string,\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[],\n offset = 0\n) => {\n const classes: string[] = []\n const { direction, start, after } = isFixedColumn(\n index,\n fixed,\n store,\n realColumns\n )\n if (direction) {\n const isLeft = direction === 'left'\n classes.push(`${namespace}-fixed-column--${direction}`)\n if (\n isLeft &&\n after + offset === store.states.fixedLeafColumnsLength.value - 1\n ) {\n classes.push('is-last-column')\n } else if (\n !isLeft &&\n start - offset ===\n store.states.columns.value.length -\n store.states.rightFixedLeafColumnsLength.value\n ) {\n classes.push('is-first-column')\n }\n }\n return classes\n}\n\nfunction getOffset<T extends DefaultRow>(\n offset: number,\n column: TableColumnCtx<T>\n) {\n return (\n offset +\n (isNull(column.realWidth) || Number.isNaN(column.realWidth)\n ? Number(column.width)\n : column.realWidth)\n )\n}\n\nexport const getFixedColumnOffset = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n const {\n direction,\n start = 0,\n after = 0,\n } = isFixedColumn(index, fixed, store, realColumns)\n if (!direction) {\n return\n }\n const styles: CSSProperties = {}\n const isLeft = direction === 'left'\n const columns = store.states.columns.value\n if (isLeft) {\n styles.left = columns.slice(0, start).reduce(getOffset, 0)\n } else {\n styles.right = columns\n .slice(after + 1)\n .reverse()\n .reduce(getOffset, 0)\n }\n return styles\n}\n\nexport const ensurePosition = <T extends CSSProperties>(\n style: T | undefined,\n key: keyof T\n) => {\n if (!style) return\n if (!Number.isNaN(style[key])) {\n style[key] = `${style[key]}px` as any\n }\n}\n\nexport function ensureValidVNode(\n vnodes: VNodeArrayChildren\n): VNodeArrayChildren | null {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true\n if (child.type === Comment) return false\n if (\n child.type === Fragment &&\n !ensureValidVNode(child.children as VNodeArrayChildren)\n ) {\n return false\n }\n return true\n })\n ? vnodes\n : null\n}\n"],"mappings":";;;;;;;;AAuBA,IAAI,cAAc;AAClB,IAAI,eAAe;AAEnB,MAAa,iBAAiB,cAC5B,GAAG,UAAU,SAAS;AAExB,MAAa,uBAAuB,aAClC,GAAG,SAAS,UAAU;AAoCxB,MAAa,UAAU,SAAU,OAAc;CAC7C,OAAQ,MAAM,QAAwB,QAAQ,KAAK;;AAGrD,MAAa,UAAU,SACrB,OACA,SACA,SACA,YACA,QACA;CACA,IACE,CAAC,WACD,CAAC,eACA,CAAC,UAAW,QAAQ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O;EAC5B,IAAI,MAAM,SAAS,SAAS,OAAO;EACnC,IACE,MAAM,SAAS,YACf,CAAC,iBAAiB,MAAM,SAA+B,EAEvD,OAAO;EAET,OAAO;GACP,GACE,SACA"}
|
|
1
|
+
{"version":3,"file":"util.mjs","names":["isUndefined"],"sources":["../../../../../../packages/components/table/src/util.ts"],"sourcesContent":["import { Comment, Fragment, createVNode, isVNode, render } from 'vue'\nimport { flatMap, get, isNull, merge } from 'lodash-unified'\nimport {\n ensureArray,\n getProp,\n hasOwn,\n isArray,\n isBoolean,\n isFunction,\n isNumber,\n isObject,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport ElTooltip from '@element-plus/components/tooltip'\n\nimport type { UseTooltipProps } from '@element-plus/components/tooltip'\nimport type { DefaultRow, Table, TreeProps } from './table/defaults'\nimport type { TableColumnCtx } from './table-column/defaults'\nimport type { CSSProperties, VNode, VNodeArrayChildren } from 'vue'\n\nlet tableIdSeed = 1\nlet columnIdSeed = 1\n\nexport const createTableId = (namespace: string) =>\n `${namespace}-table_${tableIdSeed++}`\n\nexport const createTableColumnId = (parentId: string) =>\n `${parentId}_column_${columnIdSeed++}`\n\nexport type TableOverflowTooltipOptions = Partial<\n Omit<\n UseTooltipProps,\n | 'content'\n | 'rawContent'\n | 'persistent'\n | 'visible'\n | 'autoClose'\n | 'referenceEl'\n | 'triggerTargetEl'\n | 'virtualRef'\n | 'virtualTriggering'\n >\n>\n\nexport type TableOverflowTooltipFormatter<T extends DefaultRow> = (data: {\n row: T\n column: TableColumnCtx<T>\n cellValue: any\n}) => VNode | string\n\ntype RemovePopperFn = (() => void) & {\n trigger?: HTMLElement\n vm?: VNode\n}\n\ntype CompareValue<T> = {\n value: T\n index: number\n key: any[] | null\n}\n\nexport const getCell = function (event: Event) {\n return (event.target as HTMLElement)?.closest('td')\n}\n\nexport const orderBy = function <T extends DefaultRow>(\n array: T[],\n sortKey: string | null,\n reverse: string | number | null,\n sortMethod: TableColumnCtx<T>['sortMethod'] | null,\n sortBy: string | string[] | ((a: T, index: number, array?: T[]) => string)\n) {\n if (\n !sortKey &&\n !sortMethod &&\n (!sortBy || (isArray(sortBy) && !sortBy.length))\n ) {\n return array\n }\n if (isString(reverse)) {\n reverse = reverse === 'descending' ? -1 : 1\n } else {\n reverse = reverse && reverse < 0 ? -1 : 1\n }\n const getKey = sortMethod\n ? null\n : function (value: T, index: number) {\n if (sortBy) {\n return flatMap(ensureArray(sortBy), (by) => {\n if (isString(by)) {\n return get(value, by)\n } else {\n return by(value, index, array)\n }\n })\n }\n if (sortKey !== '$key') {\n if (isObject(value) && '$value' in value) value = value.$value\n }\n return [\n isObject(value) ? (sortKey ? get(value, sortKey) : null) : value,\n ]\n }\n const compare = function (a: CompareValue<T>, b: CompareValue<T>) {\n if (sortMethod) {\n return sortMethod(a.value, b.value)\n }\n for (let i = 0, len = a.key?.length ?? 0; i < len; i++) {\n if (a.key?.[i] < b.key?.[i]) {\n return -1\n }\n if (a.key?.[i] > b.key?.[i]) {\n return 1\n }\n }\n return 0\n }\n return array\n .map<CompareValue<T>>((value: T, index) => {\n return {\n value,\n index,\n key: getKey ? getKey(value, index) : null,\n }\n })\n .sort((a, b) => {\n let order = compare(a, b)\n if (!order) {\n // make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability\n order = a.index - b.index\n }\n return order * +reverse\n })\n .map((item) => item.value)\n}\n\nexport const getColumnById = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnId: string\n): null | TableColumnCtx<T> {\n let column = null\n table.columns.forEach((item) => {\n if (item.id === columnId) {\n column = item\n }\n })\n return column\n}\n\nexport const getColumnByKey = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n columnKey: string\n): TableColumnCtx<T> {\n let column = null\n for (let i = 0; i < table.columns.length; i++) {\n const item = table.columns[i]\n if (item.columnKey === columnKey) {\n column = item\n break\n }\n }\n if (!column)\n throwError('ElTable', `No column matching with column-key: ${columnKey}`)\n return column\n}\n\nexport const getColumnByCell = function <T extends DefaultRow>(\n table: {\n columns: TableColumnCtx<T>[]\n },\n cell: HTMLElement,\n namespace: string\n): null | TableColumnCtx<T> {\n const matches = (cell.className || '').match(\n new RegExp(`${namespace}-table_[^\\\\s]+`, 'gm')\n )\n if (matches) {\n return getColumnById(table, matches[0])\n }\n return null\n}\n\nexport const getRowIdentity = <T extends DefaultRow>(\n row: T,\n rowKey: string | ((row: T) => string) | null\n): string => {\n if (!row) throw new Error('Row is required when get row identity')\n if (isString(rowKey)) {\n if (!rowKey.includes('.')) {\n return `${row[rowKey]}`\n }\n const key = rowKey.split('.')\n let current: any = row\n for (const element of key) {\n current = current[element]\n }\n //TODO: \"current\" is now any, we just satisfies typecheck here\n // but this function can actually return a number\n return `${current}`\n } else if (isFunction(rowKey)) {\n return rowKey.call(null, row)\n }\n return ''\n}\n\nexport const getKeysMap = function <T extends DefaultRow>(\n array: T[],\n rowKey: string | null,\n flatten = false,\n childrenKey = 'children'\n): Record<PropertyKey, { row: T; index: number }> {\n const data = array || []\n const arrayMap: Record<string, { row: T; index: number }> = {}\n\n data.forEach((row, index) => {\n arrayMap[getRowIdentity(row, rowKey)] = { row, index }\n\n if (flatten) {\n const children = row[childrenKey]\n if (isArray(children)) {\n Object.assign(arrayMap, getKeysMap(children, rowKey, true, childrenKey))\n }\n }\n })\n\n return arrayMap\n}\n\nexport function mergeOptions<T extends DefaultRow, K extends DefaultRow>(\n defaults: T,\n config: K\n): T & K {\n const options = {} as T & K\n let key: keyof T & keyof K\n for (key in defaults) {\n options[key] = defaults[key]\n }\n for (key in config) {\n if (hasOwn(config, key)) {\n const value = config[key]\n if (!isUndefined(value)) {\n options[key as keyof K] = value\n }\n }\n }\n return options\n}\n\nexport function parseWidth(width?: number | string): number | string {\n if (width === '') return width\n if (!isUndefined(width)) {\n width = Number.parseInt(width as string, 10)\n if (Number.isNaN(width)) {\n width = ''\n }\n }\n return width!\n}\n\nexport function parseMinWidth(minWidth: number | string): number | string {\n if (minWidth === '') return minWidth\n if (!isUndefined(minWidth)) {\n minWidth = parseWidth(minWidth)\n if (Number.isNaN(minWidth)) {\n minWidth = 80\n }\n }\n return minWidth\n}\n\nexport function parseHeight(height: number | string | null) {\n if (isNumber(height)) {\n return height\n }\n if (isString(height)) {\n if (/^\\d+(?:px)?$/.test(height)) {\n return Number.parseInt(height, 10)\n } else {\n return height\n }\n }\n return null\n}\n\n// https://github.com/reduxjs/redux/blob/master/src/compose.ts\nexport function compose(...funcs: ((...args: any[]) => void)[]) {\n if (funcs.length === 0) {\n return <T>(arg: T) => arg\n }\n if (funcs.length === 1) {\n return funcs[0]\n }\n return funcs.reduce(\n (a, b) =>\n (...args: any[]) =>\n a(b(...args))\n )\n}\n\nexport function toggleRowStatus<T extends DefaultRow>(\n statusArr: T[],\n row: T,\n newVal?: boolean,\n tableTreeProps?: TreeProps,\n selectable?: ((row: T, index: number) => boolean) | null,\n rowIndex?: number,\n rowKey?: string | null\n): boolean {\n let _rowIndex = rowIndex ?? 0\n let changed = false\n\n const getIndex = () => {\n if (!rowKey) {\n return statusArr.indexOf(row)\n }\n\n const id = getRowIdentity(row, rowKey)\n\n return statusArr.findIndex((item) => getRowIdentity(item, rowKey) === id)\n }\n\n const index = getIndex()\n\n const included = index !== -1\n const isRowSelectable = selectable?.call(null, row, _rowIndex)\n\n const toggleStatus = (type: 'add' | 'remove') => {\n if (type === 'add') {\n statusArr.push(row)\n } else {\n statusArr.splice(index, 1)\n }\n changed = true\n }\n const getChildrenCount = <T extends DefaultRow>(row: T) => {\n let count = 0\n const children = tableTreeProps?.children && row[tableTreeProps.children]\n if (children && isArray(children)) {\n count += children.length\n children.forEach((item) => {\n count += getChildrenCount(item)\n })\n }\n return count\n }\n\n if (!selectable || isRowSelectable) {\n if (isBoolean(newVal)) {\n if (newVal && !included) {\n toggleStatus('add')\n } else if (!newVal && included) {\n toggleStatus('remove')\n }\n } else {\n included ? toggleStatus('remove') : toggleStatus('add')\n }\n }\n\n if (\n !tableTreeProps?.checkStrictly &&\n tableTreeProps?.children &&\n isArray(row[tableTreeProps.children])\n ) {\n row[tableTreeProps.children].forEach((item: T) => {\n const childChanged = toggleRowStatus(\n statusArr,\n item,\n newVal ?? !included,\n tableTreeProps,\n selectable,\n _rowIndex + 1,\n rowKey\n )\n _rowIndex += getChildrenCount(item) + 1\n if (childChanged) {\n changed = childChanged\n }\n })\n }\n return changed\n}\n\nexport function walkTreeNode<T extends DefaultRow>(\n root: T[],\n cb: (parent: any, children: T | T[] | null, level: number) => void,\n childrenKey = 'children',\n lazyKey = 'hasChildren',\n lazy = false\n) {\n const isNil = (array: any): array is null => !(isArray(array) && array.length)\n\n function _walker(parent: any, children: T | T[], level: number) {\n cb(parent, children, level)\n children.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, level + 1)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, level + 1)\n }\n })\n }\n\n root.forEach((item: any) => {\n if (item[lazyKey] && lazy) {\n cb(item, null, 0)\n return\n }\n const children = item[childrenKey]\n if (!isNil(children)) {\n _walker(item, children, 0)\n }\n })\n}\n\nconst getTableOverflowTooltipProps = <T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n innerText: string,\n row: T,\n column: TableColumnCtx<T> | null\n) => {\n const tooltipFormatterContent = isFunction(column?.tooltipFormatter)\n ? column.tooltipFormatter({\n row,\n column,\n cellValue: getProp(row, column.property).value,\n })\n : undefined\n\n if (isVNode(tooltipFormatterContent)) {\n return {\n slotContent: tooltipFormatterContent,\n content: null,\n strategy: 'fixed',\n ...props,\n }\n }\n\n return {\n slotContent: null,\n content: tooltipFormatterContent ?? innerText,\n strategy: 'fixed',\n ...props,\n }\n}\n\nexport let removePopper: RemovePopperFn | null = null\n\nexport function createTablePopper<T extends DefaultRow>(\n props: TableOverflowTooltipOptions,\n popperContent: string,\n row: T,\n column: TableColumnCtx<T> | null,\n trigger: HTMLElement | null,\n table: Table<DefaultRow>\n) {\n const tableOverflowTooltipProps = getTableOverflowTooltipProps(\n props,\n popperContent,\n row,\n column\n )\n const mergedProps = {\n ...tableOverflowTooltipProps,\n slotContent: undefined,\n }\n if (removePopper?.trigger === trigger) {\n const comp = removePopper.vm?.component\n merge(comp?.props, mergedProps)\n if (comp && tableOverflowTooltipProps.slotContent) {\n comp.slots.content = () => [tableOverflowTooltipProps.slotContent]\n }\n return\n }\n removePopper?.()\n const parentNode = table?.refs.tableWrapper\n const ns = parentNode?.dataset.prefix\n const vm = createVNode(\n ElTooltip,\n {\n virtualTriggering: true,\n virtualRef: trigger,\n appendTo: parentNode,\n placement: 'top',\n transition: 'none', // Default does not require transition\n offset: 0,\n hideAfter: 0,\n ...mergedProps,\n },\n tableOverflowTooltipProps.slotContent\n ? {\n content: () => tableOverflowTooltipProps.slotContent,\n }\n : undefined\n )\n vm.appContext = { ...table.appContext, ...table }\n const container = document.createElement('div')\n render(vm, container)\n vm.component!.exposed!.onOpen()\n const scrollContainer = parentNode?.querySelector(`.${ns}-scrollbar__wrap`)\n removePopper = () => {\n if (vm.component?.exposed?.onClose) {\n vm.component.exposed.onClose()\n }\n render(null, container)\n const currentRemovePopper = removePopper as RemovePopperFn\n scrollContainer?.removeEventListener('scroll', currentRemovePopper)\n currentRemovePopper.trigger = undefined\n currentRemovePopper.vm = undefined\n removePopper = null\n }\n removePopper.trigger = trigger ?? undefined\n removePopper.vm = vm\n scrollContainer?.addEventListener('scroll', removePopper)\n}\n\nfunction getCurrentColumns<T extends DefaultRow>(\n column: TableColumnCtx<T>\n): TableColumnCtx<T>[] {\n if (column.children) {\n return flatMap(column.children, getCurrentColumns)\n } else {\n return [column]\n }\n}\n\nfunction getColSpan<T extends DefaultRow>(\n colSpan: number,\n column: TableColumnCtx<T>\n) {\n return colSpan + column.colSpan\n}\n\nexport const isFixedColumn = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n let start = 0\n let after = index\n const columns = store.states.columns.value\n if (realColumns) {\n // fixed column supported in grouped header\n const curColumns = getCurrentColumns(realColumns[index])\n const preColumns = columns.slice(0, columns.indexOf(curColumns[0]))\n\n start = preColumns.reduce(getColSpan, 0)\n after = start + curColumns.reduce(getColSpan, 0) - 1\n } else {\n start = index\n }\n let fixedLayout\n switch (fixed) {\n case 'left':\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n }\n break\n case 'right':\n if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n break\n default:\n if (after < store.states.fixedLeafColumnsLength.value) {\n fixedLayout = 'left'\n } else if (\n start >=\n columns.length - store.states.rightFixedLeafColumnsLength.value\n ) {\n fixedLayout = 'right'\n }\n }\n return fixedLayout\n ? {\n direction: fixedLayout,\n start,\n after,\n }\n : {}\n}\n\nexport const getFixedColumnsClass = <T extends DefaultRow>(\n namespace: string,\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[],\n offset = 0\n) => {\n const classes: string[] = []\n const { direction, start, after } = isFixedColumn(\n index,\n fixed,\n store,\n realColumns\n )\n if (direction) {\n const isLeft = direction === 'left'\n classes.push(`${namespace}-fixed-column--${direction}`)\n if (\n isLeft &&\n after + offset === store.states.fixedLeafColumnsLength.value - 1\n ) {\n classes.push('is-last-column')\n } else if (\n !isLeft &&\n start - offset ===\n store.states.columns.value.length -\n store.states.rightFixedLeafColumnsLength.value\n ) {\n classes.push('is-first-column')\n }\n }\n return classes\n}\n\nfunction getOffset<T extends DefaultRow>(\n offset: number,\n column: TableColumnCtx<T>\n) {\n return (\n offset +\n (isNull(column.realWidth) || Number.isNaN(column.realWidth)\n ? Number(column.width)\n : column.realWidth)\n )\n}\n\nexport const getFixedColumnOffset = <T extends DefaultRow>(\n index: number,\n fixed: string | boolean | undefined,\n store: any,\n realColumns?: TableColumnCtx<T>[]\n) => {\n const {\n direction,\n start = 0,\n after = 0,\n } = isFixedColumn(index, fixed, store, realColumns)\n if (!direction) {\n return\n }\n const styles: CSSProperties = {}\n const isLeft = direction === 'left'\n const columns = store.states.columns.value\n if (isLeft) {\n styles.left = columns.slice(0, start).reduce(getOffset, 0)\n } else {\n styles.right = columns\n .slice(after + 1)\n .reverse()\n .reduce(getOffset, 0)\n }\n return styles\n}\n\nexport const ensurePosition = <T extends CSSProperties>(\n style: T | undefined,\n key: keyof T\n) => {\n if (!style) return\n if (!Number.isNaN(style[key])) {\n style[key] = `${style[key]}px` as any\n }\n}\n\nexport function ensureValidVNode(\n vnodes: VNodeArrayChildren\n): VNodeArrayChildren | null {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true\n if (child.type === Comment) return false\n if (\n child.type === Fragment &&\n !ensureValidVNode(child.children as VNodeArrayChildren)\n ) {\n return false\n }\n return true\n })\n ? vnodes\n : null\n}\n"],"mappings":";;;;;;;;AAsBA,IAAI,cAAc;AAClB,IAAI,eAAe;AAEnB,MAAa,iBAAiB,cAC5B,GAAG,UAAU,SAAS;AAExB,MAAa,uBAAuB,aAClC,GAAG,SAAS,UAAU;AAkCxB,MAAa,UAAU,SAAU,OAAc;CAC7C,OAAQ,MAAM,QAAwB,QAAQ,KAAK;;AAGrD,MAAa,UAAU,SACrB,OACA,SACA,SACA,YACA,QACA;CACA,IACE,CAAC,WACD,CAAC,eACA,CAAC,UAAW,QAAQ,OAAO,IAAI,CAAC,OAAO,SAExC,OAAO;CAET,IAAI,SAAS,QAAQ,EACnB,UAAU,YAAY,eAAe,KAAK;MAE1C,UAAU,WAAW,UAAU,IAAI,KAAK;CAE1C,MAAM,SAAS,aACX,OACA,SAAU,OAAU,OAAe;EACjC,IAAI,QACF,OAAO,QAAQ,YAAY,OAAO,GAAG,OAAO;GAC1C,IAAI,SAAS,GAAG,EACd,OAAO,IAAI,OAAO,GAAG;QAErB,OAAO,GAAG,OAAO,OAAO,MAAM;IAEhC;EAEJ,IAAI,YAAY;OACV,SAAS,MAAM,IAAI,YAAY,OAAO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O,4BAA4B,OAE7C,QAAQ,KAAK,kBAAkB;;CAGnC,OAAO;;AAGT,SAAS,UACP,QACA,QACA;CACA,OACE,UACC,OAAO,OAAO,UAAU,IAAI,OAAO,MAAM,OAAO,UAAU,GACvD,OAAO,OAAO,MAAM,GACpB,OAAO;;AAIf,MAAa,wBACX,OACA,OACA,OACA,gBACG;CACH,MAAM,EACJ,WACA,QAAQ,GACR,QAAQ,MACN,cAAc,OAAO,OAAO,OAAO,YAAY;CACnD,IAAI,CAAC,WACH;CAEF,MAAM,SAAwB,EAAE;CAChC,MAAM,SAAS,cAAc;CAC7B,MAAM,UAAU,MAAM,OAAO,QAAQ;CACrC,IAAI,QACF,OAAO,OAAO,QAAQ,MAAM,GAAG,MAAM,CAAC,OAAO,WAAW,EAAE;MAE1D,OAAO,QAAQ,QACZ,MAAM,QAAQ,EAAE,CAChB,SAAS,CACT,OAAO,WAAW,EAAE;CAEzB,OAAO;;AAGT,MAAa,kBACX,OACA,QACG;CACH,IAAI,CAAC,OAAO;CACZ,IAAI,CAAC,OAAO,MAAM,MAAM,KAAK,EAC3B,MAAM,OAAO,GAAG,MAAM,KAAK;;AAI/B,SAAgB,iBACd,QAC2B;CAC3B,OAAO,OAAO,MAAM,UAAU;EAC5B,IAAI,CAAC,QAAQ,MAAM,EAAE,OAAO;EAC5B,IAAI,MAAM,SAAS,SAAS,OAAO;EACnC,IACE,MAAM,SAAS,YACf,CAAC,iBAAiB,MAAM,SAA+B,EAEvD,OAAO;EAET,OAAO;GACP,GACE,SACA"}
|
|
@@ -88,8 +88,8 @@ declare const TableV2Header: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
88
88
|
__epPropKey: true;
|
|
89
89
|
};
|
|
90
90
|
}>> & Readonly<{}>, {
|
|
91
|
-
readonly rowHeight: number;
|
|
92
91
|
readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
|
|
92
|
+
readonly rowHeight: number;
|
|
93
93
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
94
94
|
type TableV2HeaderInstance = InstanceType<typeof TableV2Header> & {
|
|
95
95
|
/**
|
|
@@ -142,9 +142,9 @@ declare const TableV2Row: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
142
142
|
__epPropKey: true;
|
|
143
143
|
};
|
|
144
144
|
}>> & Readonly<{}>, {
|
|
145
|
-
readonly estimatedRowHeight: number;
|
|
146
145
|
readonly isScrolling: boolean;
|
|
147
146
|
readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
|
|
147
|
+
readonly estimatedRowHeight: number;
|
|
148
148
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
149
149
|
type TableV2RowCellRenderParam = {
|
|
150
150
|
column: TableV2RowProps['columns'][number];
|
|
@@ -198,14 +198,14 @@ declare const TableGrid: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
198
198
|
__epPropKey: true;
|
|
199
199
|
};
|
|
200
200
|
}>> & Readonly<{}>, {
|
|
201
|
-
readonly estimatedRowHeight: number;
|
|
202
201
|
readonly useIsScrolling: boolean;
|
|
203
202
|
readonly scrollbarAlwaysOn: boolean;
|
|
204
|
-
readonly
|
|
205
|
-
readonly scrollbarEndGap: number;
|
|
203
|
+
readonly cache: number;
|
|
206
204
|
readonly rowKey: EpPropMergeType<(new (...args: any[]) => string | number | symbol) | (() => KeyType) | (((new (...args: any[]) => string | number | symbol) | (() => KeyType)) | null)[], unknown, unknown>;
|
|
207
205
|
readonly headerHeight: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => number | number[]) | (((new (...args: any[]) => number | number[]) | (() => number | number[])) | null)[], unknown, unknown>;
|
|
208
|
-
readonly
|
|
206
|
+
readonly estimatedRowHeight: number;
|
|
207
|
+
readonly scrollbarStartGap: number;
|
|
208
|
+
readonly scrollbarEndGap: number;
|
|
209
209
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
210
210
|
type TableGridRowSlotParams = {
|
|
211
211
|
columns: TableV2GridProps['columns'];
|