@element-plus/nightly 0.0.20260513 → 0.0.20260514
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 +495 -474
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +495 -474
- 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 +1 -1
- package/es/components/affix/src/affix.vue.d.ts +3 -3
- 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 +5 -5
- 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-props.d.ts +1 -1
- package/es/components/avatar/src/avatar-group.d.ts +2 -2
- package/es/components/avatar/src/avatar.d.ts +1 -1
- package/es/components/backtop/src/backtop.vue.d.ts +1 -1
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/button/src/button-group.d.ts +3 -3
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +2 -2
- package/es/components/button/src/button.vue.d.ts +4 -4
- package/es/components/button/src/use-button.d.ts +2 -2
- 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 +4 -4
- package/es/components/cascader/src/cascader.vue.d.ts +17 -17
- package/es/components/cascader-panel/src/index.vue.d.ts +5 -5
- 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.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
- package/es/components/checkbox/src/checkbox.d.ts +4 -4
- package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
- package/es/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/es/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/es/components/col/src/col.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/es/components/collapse/src/collapse.vue.d.ts +2 -2
- package/es/components/color-picker/src/color-picker.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-props.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.d.ts +3 -3
- 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 +21 -21
- package/es/components/date-picker/src/props.d.ts +4 -4
- package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.mjs.map +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -3
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +22 -8
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs.map +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 +7 -7
- package/es/components/date-picker-panel/src/panel-utils.d.ts +15 -15
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
- package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
- package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +10 -10
- package/es/components/descriptions/src/description.d.ts +2 -2
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +7 -7
- package/es/components/divider/src/divider.d.ts +2 -2
- package/es/components/drawer/src/drawer.vue.d.ts +8 -8
- 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 +99 -99
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/es/components/form/src/form-item.d.ts +3 -3
- package/es/components/form/src/form-item.vue.d.ts +2 -2
- package/es/components/form/src/form.d.ts +3 -3
- package/es/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/es/components/image/src/image.vue.d.ts +2 -2
- package/es/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- 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 +4 -4
- package/es/components/input-number/src/input-number.vue.d.ts +9 -9
- package/es/components/input-otp/src/input-otp.vue.d.ts +5 -5
- package/es/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.d.ts +3 -3
- package/es/components/input-tag/src/input-tag.vue.d.ts +12 -12
- 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 +4 -4
- package/es/components/mention/src/mention.vue.d.ts +4 -4
- package/es/components/menu/src/menu.d.ts +5 -5
- package/es/components/menu/src/sub-menu.d.ts +1 -1
- package/es/components/message/src/instance.d.ts +1 -1
- package/es/components/message/src/message.d.ts +2 -2
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/src/index.vue.d.ts +68 -68
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +5 -5
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.d.ts +1 -1
- package/es/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/es/components/pagination/src/components/next.vue.d.ts +1 -1
- package/es/components/pagination/src/components/pager.vue.d.ts +1 -1
- package/es/components/pagination/src/components/prev.vue.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.d.ts +1 -1
- package/es/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/es/components/pagination/src/pagination.d.ts +6 -6
- 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 +11 -11
- package/es/components/popper/src/composables/use-content.d.ts +3 -3
- package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
- package/es/components/popper/src/content.vue.d.ts +16 -16
- 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.d.ts +4 -4
- package/es/components/radio/src/radio-button.vue.d.ts +2 -2
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +4 -4
- package/es/components/radio/src/radio.d.ts +8 -8
- package/es/components/radio/src/radio.vue.d.ts +5 -5
- package/es/components/radio/src/use-radio.d.ts +1 -1
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.vue.d.ts +3 -3
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/result/src/result.vue.d.ts +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
- package/es/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
- package/es/components/roving-focus-group/src/roving-focus-group.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 +2 -2
- package/es/components/segmented/index.d.ts +5 -5
- package/es/components/segmented/src/segmented.d.ts +3 -3
- package/es/components/segmented/src/segmented.vue.d.ts +2 -2
- package/es/components/select/src/option.d.ts +1 -1
- package/es/components/select/src/option.vue.d.ts +2 -2
- package/es/components/select/src/select.d.ts +5 -5
- package/es/components/select/src/select.vue.d.ts +97 -97
- package/es/components/select/src/useSelect.d.ts +6 -6
- package/es/components/select-v2/src/defaults.d.ts +4 -4
- package/es/components/select-v2/src/select.vue.d.ts +85 -85
- package/es/components/select-v2/src/useSelect.d.ts +2 -2
- package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/es/components/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.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +11 -11
- package/es/components/space/src/space.d.ts +12 -12
- package/es/components/splitter/src/splitter.d.ts +1 -1
- package/es/components/splitter/src/splitter.vue.d.ts +2 -2
- 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 +3 -3
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +4 -4
- package/es/components/table/index.d.ts +6 -3
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +82 -82
- package/es/components/table/src/table/defaults.d.ts +139 -5
- package/es/components/table/src/table/defaults.mjs +5 -2
- package/es/components/table/src/table/defaults.mjs.map +1 -1
- package/es/components/table/src/table/key-render-helper.d.ts +2 -2
- package/es/components/table/src/table/key-render-helper.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.d.ts +1 -1
- package/es/components/table/src/table/utils-helper.d.ts +1 -1
- package/es/components/table/src/table/utils-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.d.ts +1 -1
- package/es/components/table/src/table-column/defaults.d.ts +129 -4
- package/es/components/table/src/table-column/defaults.mjs +5 -2
- package/es/components/table/src/table-column/defaults.mjs.map +1 -1
- package/es/components/table/src/table-column/index.d.ts +1 -226
- package/es/components/table/src/table-column/index.mjs +2 -116
- package/es/components/table/src/table-column/index.mjs.map +1 -1
- package/es/components/table/src/table-column/index.vue.d.ts +37 -0
- package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs +124 -0
- package/es/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/es/components/table/src/table-column/index2.mjs +7 -0
- package/es/components/table/src/table-column/index2.mjs.map +1 -0
- package/es/components/table/src/table-header/index.d.ts +15 -15
- package/es/components/table/src/table.mjs +2 -211
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +692 -1350
- package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs +392 -0
- package/es/components/table/src/table.vue_vue_type_script_setup_true_lang.mjs.map +1 -0
- package/es/components/table/src/tableColumn.d.ts +1 -1
- package/es/components/table/src/util.d.ts +3 -1
- package/es/components/table/src/util.mjs +5 -1
- 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 +6 -6
- 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 +3 -3
- package/es/components/text/src/text.d.ts +2 -2
- package/es/components/text/src/text.vue_vue_type_script_setup_true_lang.mjs +5 -3
- package/es/components/text/src/text.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
- package/es/components/text/src/text2.mjs.map +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 +26 -26
- package/es/components/time-picker/src/common/props.d.ts +3 -3
- package/es/components/time-picker/src/time-picker.d.ts +18 -18
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +12 -12
- package/es/components/timeline/src/timeline-item.d.ts +3 -3
- package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/es/components/timeline/src/timeline.d.ts +4 -4
- package/es/components/tooltip/src/content.vue.d.ts +15 -15
- package/es/components/tooltip/src/tooltip.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/es/components/tooltip/src/trigger.d.ts +1 -1
- package/es/components/tour/src/content.d.ts +1 -1
- package/es/components/tour/src/content.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 +4 -4
- package/es/components/transfer/src/transfer.vue.d.ts +2 -2
- package/es/components/tree/src/tree-node.vue.d.ts +15 -15
- package/es/components/tree/src/tree.vue.d.ts +16 -16
- package/es/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/es/components/tree-select/src/tree-select.vue.d.ts +27 -27
- package/es/components/tree-v2/src/composables/useTree.d.ts +12 -12
- package/es/components/tree-v2/src/composables/useTree.mjs +1 -1
- package/es/components/tree-v2/src/composables/useTree.mjs.map +1 -1
- package/es/components/tree-v2/src/tree.vue.d.ts +3 -3
- 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 +3 -3
- package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/es/components/virtual-list/src/builders/build-list.d.ts +6 -6
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +6 -6
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +6 -6
- package/es/components/virtual-list/src/components/scrollbar.d.ts +4 -4
- package/es/components/virtual-list/src/props.d.ts +2 -2
- package/es/components/watermark/src/watermark.vue.d.ts +2 -2
- package/es/directives/index.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/hooks/use-size/index.d.ts +3 -3
- package/es/index.d.ts +1 -1
- package/es/utils/vue/vnode.d.ts +4 -4
- 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.d.ts +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +3 -3
- 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 +5 -5
- 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-props.d.ts +1 -1
- package/lib/components/avatar/src/avatar-group.d.ts +2 -2
- package/lib/components/avatar/src/avatar.d.ts +1 -1
- package/lib/components/backtop/src/backtop.vue.d.ts +1 -1
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/button/src/button-group.d.ts +3 -3
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +2 -2
- package/lib/components/button/src/button.vue.d.ts +4 -4
- package/lib/components/button/src/use-button.d.ts +2 -2
- 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 +4 -4
- package/lib/components/cascader/src/cascader.vue.d.ts +17 -17
- package/lib/components/cascader-panel/src/index.vue.d.ts +5 -5
- 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.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +3 -3
- package/lib/components/checkbox/src/checkbox.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
- package/lib/components/checkbox/src/composables/use-checkbox-status.d.ts +2 -2
- package/lib/components/checkbox/src/composables/use-checkbox.d.ts +2 -2
- package/lib/components/col/src/col.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse-item.vue.d.ts +1 -1
- package/lib/components/collapse/src/collapse.vue.d.ts +2 -2
- package/lib/components/color-picker/src/color-picker.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-props.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.d.ts +3 -3
- 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 +21 -21
- package/lib/components/date-picker/src/props.d.ts +4 -4
- package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +3 -3
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.js.map +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +3 -3
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +22 -8
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js.map +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 +7 -7
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +15 -15
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +2 -2
- package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
- package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +10 -10
- package/lib/components/descriptions/src/description.d.ts +2 -2
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog-content.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +7 -7
- package/lib/components/divider/src/divider.d.ts +2 -2
- package/lib/components/drawer/src/drawer.vue.d.ts +8 -8
- 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 +99 -99
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- package/lib/components/form/src/form-item.d.ts +3 -3
- package/lib/components/form/src/form-item.vue.d.ts +2 -2
- package/lib/components/form/src/form.d.ts +3 -3
- package/lib/components/form/src/hooks/use-form-common-props.d.ts +2 -2
- package/lib/components/image/src/image.vue.d.ts +2 -2
- package/lib/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- 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 +4 -4
- package/lib/components/input-number/src/input-number.vue.d.ts +9 -9
- package/lib/components/input-otp/src/input-otp.vue.d.ts +5 -5
- package/lib/components/input-tag/src/composables/use-input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.d.ts +3 -3
- package/lib/components/input-tag/src/input-tag.vue.d.ts +12 -12
- 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 +4 -4
- package/lib/components/mention/src/mention.vue.d.ts +4 -4
- package/lib/components/menu/src/menu.d.ts +5 -5
- package/lib/components/menu/src/sub-menu.d.ts +1 -1
- package/lib/components/message/src/instance.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +2 -2
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/src/index.vue.d.ts +68 -68
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +5 -5
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.d.ts +1 -1
- package/lib/components/pagination/src/components/jumper.vue.d.ts +2 -2
- package/lib/components/pagination/src/components/next.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/pager.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/prev.vue.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.d.ts +1 -1
- package/lib/components/pagination/src/components/sizes.vue.d.ts +3 -3
- package/lib/components/pagination/src/pagination.d.ts +6 -6
- 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 +11 -11
- package/lib/components/popper/src/composables/use-content.d.ts +3 -3
- package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
- package/lib/components/popper/src/content.vue.d.ts +16 -16
- 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.d.ts +4 -4
- package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
- package/lib/components/radio/src/radio.d.ts +8 -8
- package/lib/components/radio/src/radio.vue.d.ts +5 -5
- package/lib/components/radio/src/use-radio.d.ts +1 -1
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +3 -3
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/result/src/result.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +2 -2
- package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-group.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 +2 -2
- package/lib/components/segmented/index.d.ts +5 -5
- package/lib/components/segmented/src/segmented.d.ts +3 -3
- package/lib/components/segmented/src/segmented.vue.d.ts +2 -2
- package/lib/components/select/src/option.d.ts +1 -1
- package/lib/components/select/src/option.vue.d.ts +2 -2
- package/lib/components/select/src/select.d.ts +5 -5
- package/lib/components/select/src/select.vue.d.ts +97 -97
- package/lib/components/select/src/useSelect.d.ts +6 -6
- package/lib/components/select-v2/src/defaults.d.ts +4 -4
- package/lib/components/select-v2/src/select.vue.d.ts +85 -85
- package/lib/components/select-v2/src/useSelect.d.ts +2 -2
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/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.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +11 -11
- package/lib/components/space/src/space.d.ts +12 -12
- package/lib/components/splitter/src/splitter.d.ts +1 -1
- package/lib/components/splitter/src/splitter.vue.d.ts +2 -2
- 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 +3 -3
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +4 -4
- package/lib/components/table/index.d.ts +6 -3
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +82 -82
- package/lib/components/table/src/table/defaults.d.ts +139 -5
- package/lib/components/table/src/table/defaults.js +6 -2
- package/lib/components/table/src/table/defaults.js.map +1 -1
- package/lib/components/table/src/table/key-render-helper.d.ts +2 -2
- package/lib/components/table/src/table/key-render-helper.js.map +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +1 -1
- package/lib/components/table/src/table/utils-helper.d.ts +1 -1
- package/lib/components/table/src/table/utils-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.d.ts +1 -1
- package/lib/components/table/src/table-column/defaults.d.ts +129 -4
- package/lib/components/table/src/table-column/defaults.js +6 -2
- package/lib/components/table/src/table-column/defaults.js.map +1 -1
- package/lib/components/table/src/table-column/index.d.ts +1 -226
- package/lib/components/table/src/table-column/index.js +1 -118
- package/lib/components/table/src/table-column/index.js.map +1 -1
- package/lib/components/table/src/table-column/index.vue.d.ts +37 -0
- package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js +126 -0
- package/lib/components/table/src/table-column/index.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/lib/components/table/src/table-column/index2.js +10 -0
- package/lib/components/table/src/table-column/index2.js.map +1 -0
- package/lib/components/table/src/table-header/index.d.ts +15 -15
- package/lib/components/table/src/table.js +1 -212
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +692 -1350
- package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js +393 -0
- package/lib/components/table/src/table.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/lib/components/table/src/tableColumn.d.ts +1 -1
- package/lib/components/table/src/util.d.ts +3 -1
- package/lib/components/table/src/util.js +6 -0
- 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 +6 -6
- 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 +3 -3
- package/lib/components/text/src/text.d.ts +2 -2
- package/lib/components/text/src/text.vue_vue_type_script_setup_true_lang.js +4 -2
- package/lib/components/text/src/text.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/lib/components/text/src/text2.js.map +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 +26 -26
- package/lib/components/time-picker/src/common/props.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker.d.ts +18 -18
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +12 -12
- package/lib/components/timeline/src/timeline-item.d.ts +3 -3
- package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/lib/components/timeline/src/timeline.d.ts +4 -4
- package/lib/components/tooltip/src/content.vue.d.ts +15 -15
- package/lib/components/tooltip/src/tooltip.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/lib/components/tooltip/src/trigger.d.ts +1 -1
- package/lib/components/tour/src/content.d.ts +1 -1
- package/lib/components/tour/src/content.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 +4 -4
- package/lib/components/transfer/src/transfer.vue.d.ts +2 -2
- package/lib/components/tree/src/tree-node.vue.d.ts +15 -15
- package/lib/components/tree/src/tree.vue.d.ts +16 -16
- package/lib/components/tree-select/src/tree-select-option.d.ts +2 -2
- package/lib/components/tree-select/src/tree-select.vue.d.ts +27 -27
- package/lib/components/tree-v2/src/composables/useTree.d.ts +12 -12
- package/lib/components/tree-v2/src/composables/useTree.js +1 -1
- package/lib/components/tree-v2/src/composables/useTree.js.map +1 -1
- package/lib/components/tree-v2/src/tree.vue.d.ts +3 -3
- 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 +3 -3
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/builders/build-list.d.ts +6 -6
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +6 -6
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +4 -4
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +6 -6
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +4 -4
- package/lib/components/virtual-list/src/props.d.ts +2 -2
- package/lib/components/watermark/src/watermark.vue.d.ts +2 -2
- package/lib/directives/index.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/hooks/use-size/index.d.ts +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/utils/vue/vnode.d.ts +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs +0 -195
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs.map +0 -1
- package/lib/components/table/src/table.vue_vue_type_script_lang.js +0 -196
- package/lib/components/table/src/table.vue_vue_type_script_lang.js.map +0 -1
|
@@ -85,38 +85,128 @@ type CellStyle<T extends DefaultRow> = CSSProperties | ((data: {
|
|
|
85
85
|
columnIndex: number;
|
|
86
86
|
}) => CSSProperties);
|
|
87
87
|
type Layout = 'fixed' | 'auto';
|
|
88
|
-
interface TableProps<T extends DefaultRow> {
|
|
89
|
-
|
|
88
|
+
interface TableProps<T extends DefaultRow = DefaultRow> {
|
|
89
|
+
/**
|
|
90
|
+
* @description table data
|
|
91
|
+
*/
|
|
92
|
+
data?: T[];
|
|
93
|
+
/**
|
|
94
|
+
* @description size of Table
|
|
95
|
+
*/
|
|
90
96
|
size?: ComponentSize;
|
|
91
97
|
width?: string | number;
|
|
98
|
+
/**
|
|
99
|
+
* @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
|
|
100
|
+
*/
|
|
92
101
|
height?: string | number;
|
|
102
|
+
/**
|
|
103
|
+
* @description table's max-height. The legal value is a number or the height in px
|
|
104
|
+
*/
|
|
93
105
|
maxHeight?: string | number;
|
|
106
|
+
/**
|
|
107
|
+
* @description whether width of column automatically fits its container
|
|
108
|
+
*/
|
|
94
109
|
fit?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @description whether Table is striped
|
|
112
|
+
*/
|
|
95
113
|
stripe?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* @description whether Table has vertical border
|
|
116
|
+
*/
|
|
96
117
|
border?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used
|
|
120
|
+
*/
|
|
97
121
|
rowKey?: string | ((row: T) => string);
|
|
98
122
|
context?: Table<T>;
|
|
123
|
+
/**
|
|
124
|
+
* @description whether Table header is visible
|
|
125
|
+
*/
|
|
99
126
|
showHeader?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* @description whether to display a summary row
|
|
129
|
+
*/
|
|
100
130
|
showSummary?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* @description displayed text for the first column of summary row
|
|
133
|
+
*/
|
|
101
134
|
sumText?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @description custom summary method
|
|
137
|
+
*/
|
|
102
138
|
summaryMethod?: SummaryMethod<T>;
|
|
139
|
+
/**
|
|
140
|
+
* @description function that returns custom class names for a row, or a string assigning class names for every row
|
|
141
|
+
*/
|
|
103
142
|
rowClassName?: ColumnCls<T>;
|
|
143
|
+
/**
|
|
144
|
+
* @description function that returns custom style for a row, or an object assigning custom style for every row
|
|
145
|
+
*/
|
|
104
146
|
rowStyle?: ColumnStyle<T>;
|
|
147
|
+
/**
|
|
148
|
+
* @description function that returns custom class names for a cell, or a string assigning class names for every cell
|
|
149
|
+
*/
|
|
105
150
|
cellClassName?: CellCls<T>;
|
|
151
|
+
/**
|
|
152
|
+
* @description function that returns custom style for a cell, or an object assigning custom style for every cell
|
|
153
|
+
*/
|
|
106
154
|
cellStyle?: CellStyle<T>;
|
|
155
|
+
/**
|
|
156
|
+
* @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header
|
|
157
|
+
*/
|
|
107
158
|
headerRowClassName?: ColumnCls<T>;
|
|
159
|
+
/**
|
|
160
|
+
* @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header
|
|
161
|
+
*/
|
|
108
162
|
headerRowStyle?: ColumnStyle<T>;
|
|
163
|
+
/**
|
|
164
|
+
* @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header
|
|
165
|
+
*/
|
|
109
166
|
headerCellClassName?: CellCls<T>;
|
|
167
|
+
/**
|
|
168
|
+
* @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header
|
|
169
|
+
*/
|
|
110
170
|
headerCellStyle?: CellStyle<T>;
|
|
171
|
+
/**
|
|
172
|
+
* @description whether current row is highlighted
|
|
173
|
+
*/
|
|
111
174
|
highlightCurrentRow?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* @description key of current row, a set only prop
|
|
177
|
+
*/
|
|
112
178
|
currentRowKey?: string | number;
|
|
179
|
+
/**
|
|
180
|
+
* @description displayed text when data is empty. You can customize this area with `#empty`
|
|
181
|
+
*/
|
|
113
182
|
emptyText?: string;
|
|
183
|
+
/**
|
|
184
|
+
* @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop
|
|
185
|
+
*/
|
|
114
186
|
expandRowKeys?: Array<string>;
|
|
187
|
+
/**
|
|
188
|
+
* @description whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data
|
|
189
|
+
*/
|
|
115
190
|
defaultExpandAll?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* @description enable expandable rows, works when the table has a column type="expand"
|
|
193
|
+
*/
|
|
116
194
|
rowExpandable?: (row: T, index: number) => boolean;
|
|
195
|
+
/**
|
|
196
|
+
* @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order
|
|
197
|
+
*/
|
|
117
198
|
defaultSort?: Sort;
|
|
199
|
+
/**
|
|
200
|
+
* @description the `effect` of the overflow tooltip
|
|
201
|
+
*/
|
|
118
202
|
tooltipEffect?: string;
|
|
203
|
+
/**
|
|
204
|
+
* @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)
|
|
205
|
+
*/
|
|
119
206
|
tooltipOptions?: TableOverflowTooltipOptions;
|
|
207
|
+
/**
|
|
208
|
+
* @description method that returns rowspan and colspan
|
|
209
|
+
*/
|
|
120
210
|
spanMethod?: (data: {
|
|
121
211
|
row: T;
|
|
122
212
|
rowIndex: number;
|
|
@@ -126,20 +216,61 @@ interface TableProps<T extends DefaultRow> {
|
|
|
126
216
|
rowspan: number;
|
|
127
217
|
colspan: number;
|
|
128
218
|
} | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected
|
|
221
|
+
*/
|
|
129
222
|
selectOnIndeterminate?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* @description horizontal indentation of tree data
|
|
225
|
+
*/
|
|
130
226
|
indent?: number;
|
|
227
|
+
/**
|
|
228
|
+
* @description configuration for rendering nested data
|
|
229
|
+
*/
|
|
131
230
|
treeProps?: TreeProps;
|
|
231
|
+
/**
|
|
232
|
+
* @description whether to lazy loading data
|
|
233
|
+
*/
|
|
132
234
|
lazy?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* @description method for loading child row data, only works when `lazy` is true
|
|
237
|
+
*/
|
|
133
238
|
load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void;
|
|
134
239
|
className?: string;
|
|
135
240
|
style?: StyleValue;
|
|
241
|
+
/**
|
|
242
|
+
* @description sets the algorithm used to lay out table cells, rows, and columns
|
|
243
|
+
*/
|
|
136
244
|
tableLayout?: Layout;
|
|
245
|
+
/**
|
|
246
|
+
* @description always show scrollbar
|
|
247
|
+
*/
|
|
137
248
|
scrollbarAlwaysOn?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* @description ensure main axis minimum-size doesn't follow the content
|
|
251
|
+
*/
|
|
138
252
|
flexible?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns
|
|
255
|
+
*/
|
|
139
256
|
showOverflowTooltip?: boolean | TableOverflowTooltipOptions;
|
|
257
|
+
/**
|
|
258
|
+
* @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`
|
|
259
|
+
*/
|
|
140
260
|
tooltipFormatter?: TableOverflowTooltipFormatter<T>;
|
|
141
261
|
appendFilterPanelTo?: string;
|
|
142
262
|
scrollbarTabindex?: number | string;
|
|
263
|
+
/**
|
|
264
|
+
* @description whether to allow drag the last column
|
|
265
|
+
*/
|
|
266
|
+
allowDragLastColumn?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* @description whether to preserve expanded row content in DOM when collapsed
|
|
269
|
+
*/
|
|
270
|
+
preserveExpandedContent?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* @description whether to use native scrollbars
|
|
273
|
+
*/
|
|
143
274
|
nativeScrollbar?: boolean;
|
|
144
275
|
}
|
|
145
276
|
type TableTooltipData<T extends DefaultRow> = Parameters<TableOverflowTooltipFormatter<T>>[0];
|
|
@@ -179,7 +310,10 @@ interface TableConfigContext {
|
|
|
179
310
|
tooltipOptions?: TableOverflowTooltipOptions;
|
|
180
311
|
tooltipFormatter?: TableOverflowTooltipFormatter<any>;
|
|
181
312
|
}
|
|
182
|
-
|
|
313
|
+
/**
|
|
314
|
+
* @deprecated Removed after 3.0.0, Use `TableProps` instead.
|
|
315
|
+
*/
|
|
316
|
+
declare const tableProps: {
|
|
183
317
|
/**
|
|
184
318
|
* @description table data
|
|
185
319
|
*/
|
|
@@ -191,7 +325,7 @@ declare const _default: {
|
|
|
191
325
|
* @description size of Table
|
|
192
326
|
*/
|
|
193
327
|
size: {
|
|
194
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "
|
|
328
|
+
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
195
329
|
readonly required: false;
|
|
196
330
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
197
331
|
__epPropKey: true;
|
|
@@ -406,4 +540,4 @@ declare const _default: {
|
|
|
406
540
|
nativeScrollbar: BooleanConstructor;
|
|
407
541
|
};
|
|
408
542
|
//#endregion
|
|
409
|
-
export { type CellCls, type CellStyle, type ColumnCls, type ColumnStyle, type DefaultRow, type Filter, type RenderExpanded, type RenderRowData, type Sort, type SummaryMethod, type Table, type TableColumnCtx, type TableConfigContext, type TableProps, type TableRefs, type TableSortOrder, type TableTooltipData, type TreeNode, type TreeProps,
|
|
543
|
+
export { type CellCls, type CellStyle, type ColumnCls, type ColumnStyle, type DefaultRow, type Filter, type RenderExpanded, type RenderRowData, type Sort, type SummaryMethod, type Table, type TableColumnCtx, type TableConfigContext, type TableProps, type TableRefs, type TableSortOrder, type TableTooltipData, type TreeNode, type TreeProps, tableProps as default, tableProps };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { useSizeProp } from "../../../../hooks/use-size/index.mjs";
|
|
2
2
|
//#region ../../packages/components/table/src/table/defaults.ts
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Removed after 3.0.0, Use `TableProps` instead.
|
|
5
|
+
*/
|
|
6
|
+
const tableProps = {
|
|
4
7
|
/**
|
|
5
8
|
* @description table data
|
|
6
9
|
*/
|
|
@@ -227,6 +230,6 @@ var defaults_default = {
|
|
|
227
230
|
nativeScrollbar: Boolean
|
|
228
231
|
};
|
|
229
232
|
//#endregion
|
|
230
|
-
export {
|
|
233
|
+
export { tableProps as default, tableProps };
|
|
231
234
|
|
|
232
235
|
//# sourceMappingURL=defaults.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\n\nimport type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n StyleValue,\n VNode,\n} from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\n\ntype DefaultRow = Record<PropertyKey, any>\n\ninterface TableRefs {\n tableWrapper: HTMLElement\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n appendWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ninterface TreeProps {\n hasChildren?: string\n children?: string\n checkStrictly?: boolean\n}\n\ntype HoverState<T extends DefaultRow> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T extends DefaultRow> = {\n row: T\n $index: number\n store: Store<T>\n expanded: boolean\n}\n\ntype RenderExpanded<T extends DefaultRow> = ({\n row,\n $index,\n store,\n expanded,\n}: RIS<T>) => VNode[] | undefined\n\ntype SummaryMethod<T extends DefaultRow> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => (string | VNode)[]\n\ninterface Table<T extends DefaultRow = any> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T> | null\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T extends DefaultRow> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T extends DefaultRow> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T extends DefaultRow> {\n data: T[]\n size?: ComponentSize\n width?: string | number\n height?: string | number\n maxHeight?: string | number\n fit?: boolean\n stripe?: boolean\n border?: boolean\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n showHeader?: boolean\n showSummary?: boolean\n sumText?: string\n summaryMethod?: SummaryMethod<T>\n rowClassName?: ColumnCls<T>\n rowStyle?: ColumnStyle<T>\n cellClassName?: CellCls<T>\n cellStyle?: CellStyle<T>\n headerRowClassName?: ColumnCls<T>\n headerRowStyle?: ColumnStyle<T>\n headerCellClassName?: CellCls<T>\n headerCellStyle?: CellStyle<T>\n highlightCurrentRow?: boolean\n currentRowKey?: string | number\n emptyText?: string\n expandRowKeys?: Array<string>\n defaultExpandAll?: boolean\n rowExpandable?: (row: T, index: number) => boolean\n defaultSort?: Sort\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n | undefined\n selectOnIndeterminate?: boolean\n indent?: number\n treeProps?: TreeProps\n lazy?: boolean\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: StyleValue\n tableLayout?: Layout\n scrollbarAlwaysOn?: boolean\n flexible?: boolean\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n appendFilterPanelTo?: string\n scrollbarTabindex?: number | string\n nativeScrollbar?: boolean\n}\n\ntype TableTooltipData<T extends DefaultRow> = Parameters<\n TableOverflowTooltipFormatter<T>\n>[0]\ntype TableSortOrder = 'ascending' | 'descending'\n\ninterface Sort {\n prop: string\n order: TableSortOrder\n init?: any\n silent?: any\n}\n\ninterface Filter<T extends DefaultRow> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T extends DefaultRow> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n cellIndex: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\ninterface TableConfigContext {\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<any>\n}\n\nexport default {\n /**\n * @description table data\n */\n data: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n /**\n * @description size of Table\n */\n size: useSizeProp,\n width: [String, Number],\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height: [String, Number],\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight: [String, Number],\n /**\n * @description whether width of column automatically fits its container\n */\n fit: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Table is striped\n */\n stripe: Boolean,\n /**\n * @description whether Table has vertical border\n */\n border: Boolean,\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey: [String, Function] as PropType<TableProps<any>['rowKey']>,\n /**\n * @description whether Table header is visible\n */\n showHeader: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display a summary row\n */\n showSummary: Boolean,\n /**\n * @description displayed text for the first column of summary row\n */\n sumText: String,\n /**\n * @description custom summary method\n */\n summaryMethod: Function as PropType<TableProps<any>['summaryMethod']>,\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName: [String, Function] as PropType<TableProps<any>['rowClassName']>,\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle: [Object, Function] as PropType<TableProps<any>['rowStyle']>,\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName: [String, Function] as PropType<\n TableProps<any>['cellClassName']\n >,\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle: [Object, Function] as PropType<TableProps<any>['cellStyle']>,\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName: [String, Function] as PropType<\n TableProps<any>['headerRowClassName']\n >,\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle: [Object, Function] as PropType<\n TableProps<any>['headerRowStyle']\n >,\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName: [String, Function] as PropType<\n TableProps<any>['headerCellClassName']\n >,\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle: [Object, Function] as PropType<\n TableProps<any>['headerCellStyle']\n >,\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow: Boolean,\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey: [String, Number],\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText: String,\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys: Array as PropType<TableProps<any>['expandRowKeys']>,\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll: Boolean,\n /**\n * @description enable expandable rows, works when the table has a column type=\"expand\"\n */\n rowExpandable: {\n type: Function as PropType<TableProps<any>['rowExpandable']>,\n },\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort: Object as PropType<TableProps<any>['defaultSort']>,\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect: String,\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions: Object as PropType<TableProps<any>['tooltipOptions']>,\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod: Function as PropType<TableProps<any>['spanMethod']>,\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n /**\n * @description horizontal indentation of tree data\n */\n indent: {\n type: Number,\n default: 16,\n },\n /**\n * @description configuration for rendering nested data\n */\n treeProps: {\n type: Object as PropType<TableProps<any>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }\n },\n },\n /**\n * @description whether to lazy loading data\n */\n lazy: Boolean,\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load: Function as PropType<TableProps<any>['load']>,\n style: {\n type: [String, Object, Array, Boolean] as PropType<\n TableProps<any>['style']\n >,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible: Boolean,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<TableProps<any>['showOverflowTooltip']>,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<TableProps<any>['tooltipFormatter']>,\n appendFilterPanelTo: String,\n scrollbarTabindex: {\n type: [Number, String],\n default: undefined,\n },\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent: Boolean,\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar: Boolean,\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n DefaultRow,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TreeProps,\n TableTooltipData,\n TableSortOrder,\n RenderExpanded,\n TableConfigContext,\n}\n"],"mappings":";;AAoNA,IAAA,mBAAe;;;;CAIb,MAAM;EACJ,MAAM;EACN,eAAe,EAAE;EAClB;;;;CAID,MAAM;CACN,OAAO,CAAC,QAAQ,OAAO;;;;CAIvB,QAAQ,CAAC,QAAQ,OAAO;;;;CAIxB,WAAW,CAAC,QAAQ,OAAO;;;;CAI3B,KAAK;EACH,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;;;;CAIR,QAAQ;;;;CAIR,QAAQ,CAAC,QAAQ,SAAS;;;;CAI1B,YAAY;EACV,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;;;;CAIb,SAAS;;;;CAIT,eAAe;;;;CAIf,cAAc,CAAC,QAAQ,SAAS;;;;CAIhC,UAAU,CAAC,QAAQ,SAAS;;;;CAI5B,eAAe,CAAC,QAAQ,SAAS;;;;CAMjC,WAAW,CAAC,QAAQ,SAAS;;;;CAI7B,oBAAoB,CAAC,QAAQ,SAAS;;;;CAMtC,gBAAgB,CAAC,QAAQ,SAAS;;;;CAMlC,qBAAqB,CAAC,QAAQ,SAAS;;;;CAMvC,iBAAiB,CAAC,QAAQ,SAAS;;;;CAMnC,qBAAqB;;;;CAIrB,eAAe,CAAC,QAAQ,OAAO;;;;CAI/B,WAAW;;;;CAIX,eAAe;;;;CAIf,kBAAkB;;;;CAIlB,eAAe,EACb,MAAM,UACP;;;;CAID,aAAa;;;;CAIb,eAAe;;;;CAIf,gBAAgB;;;;CAIhB,YAAY;;;;CAIZ,uBAAuB;EACrB,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,eAAe;GACb,OAAO;IACL,aAAa;IACb,UAAU;IACV,eAAe;IAChB;;EAEJ;;;;CAID,MAAM;;;;CAIN,MAAM;CACN,OAAO;EACL,MAAM;GAAC;GAAQ;GAAQ;GAAO;GAAQ;EAGtC,gBAAgB,EAAE;EACnB;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;;;;CAID,mBAAmB;;;;CAInB,UAAU;;;;CAIV,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;CAClB,qBAAqB;CACrB,mBAAmB;EACjB,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS,KAAA;EACV;;;;CAID,qBAAqB;EACnB,MAAM;EACN,SAAS;EACV;;;;CAID,yBAAyB;;;;CAIzB,iBAAiB;CAClB"}
|
|
1
|
+
{"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/defaults.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\n\nimport type {\n CSSProperties,\n ComponentInternalInstance,\n PropType,\n Ref,\n StyleValue,\n VNode,\n} from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { Nullable } from '@element-plus/utils'\nimport type { Store } from '../store'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type TableLayout from '../table-layout'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\n\ntype DefaultRow = Record<PropertyKey, any>\n\ninterface TableRefs {\n tableWrapper: HTMLElement\n headerWrapper: HTMLElement\n footerWrapper: HTMLElement\n fixedBodyWrapper: HTMLElement\n rightFixedBodyWrapper: HTMLElement\n bodyWrapper: HTMLElement\n appendWrapper: HTMLElement\n [key: string]: any\n}\n\ninterface TableState {\n isGroup: Ref<boolean>\n resizeState: Ref<{\n width: any\n height: any\n }>\n doLayout: () => void\n debouncedUpdateLayout: () => void\n}\n\ninterface TreeProps {\n hasChildren?: string\n children?: string\n checkStrictly?: boolean\n}\n\ntype HoverState<T extends DefaultRow> = Nullable<{\n cell: HTMLElement\n column: TableColumnCtx<T>\n row: T\n}>\n\ntype RIS<T extends DefaultRow> = {\n row: T\n $index: number\n store: Store<T>\n expanded: boolean\n}\n\ntype RenderExpanded<T extends DefaultRow> = ({\n row,\n $index,\n store,\n expanded,\n}: RIS<T>) => VNode[] | undefined\n\ntype SummaryMethod<T extends DefaultRow> = (data: {\n columns: TableColumnCtx<T>[]\n data: T[]\n}) => (string | VNode)[]\n\ninterface Table<T extends DefaultRow = any> extends ComponentInternalInstance {\n $ready: boolean\n hoverState?: HoverState<T> | null\n renderExpanded: RenderExpanded<T>\n store: Store<T>\n layout: TableLayout<T>\n refs: TableRefs\n tableId: string\n state: TableState\n}\n\ntype ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)\ntype ColumnStyle<T> =\n | CSSProperties\n | ((data: { row: T; rowIndex: number }) => CSSProperties)\ntype CellCls<T extends DefaultRow> =\n | string\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => string)\ntype CellStyle<T extends DefaultRow> =\n | CSSProperties\n | ((data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) => CSSProperties)\ntype Layout = 'fixed' | 'auto'\ninterface TableProps<T extends DefaultRow = DefaultRow> {\n /**\n * @description table data\n */\n data?: T[]\n /**\n * @description size of Table\n */\n size?: ComponentSize\n width?: string | number\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height?: string | number\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight?: string | number\n /**\n * @description whether width of column automatically fits its container\n */\n fit?: boolean\n /**\n * @description whether Table is striped\n */\n stripe?: boolean\n /**\n * @description whether Table has vertical border\n */\n border?: boolean\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey?: string | ((row: T) => string)\n context?: Table<T>\n /**\n * @description whether Table header is visible\n */\n showHeader?: boolean\n /**\n * @description whether to display a summary row\n */\n showSummary?: boolean\n /**\n * @description displayed text for the first column of summary row\n */\n sumText?: string\n /**\n * @description custom summary method\n */\n summaryMethod?: SummaryMethod<T>\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName?: ColumnCls<T>\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle?: ColumnStyle<T>\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName?: CellCls<T>\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle?: CellStyle<T>\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName?: ColumnCls<T>\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle?: ColumnStyle<T>\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName?: CellCls<T>\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle?: CellStyle<T>\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow?: boolean\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey?: string | number\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText?: string\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys?: Array<string>\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll?: boolean\n /**\n * @description enable expandable rows, works when the table has a column type=\"expand\"\n */\n rowExpandable?: (row: T, index: number) => boolean\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort?: Sort\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect?: string\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions?: TableOverflowTooltipOptions\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod?: (data: {\n row: T\n rowIndex: number\n column: TableColumnCtx<T>\n columnIndex: number\n }) =>\n | number[]\n | {\n rowspan: number\n colspan: number\n }\n | undefined\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate?: boolean\n /**\n * @description horizontal indentation of tree data\n */\n indent?: number\n /**\n * @description configuration for rendering nested data\n */\n treeProps?: TreeProps\n /**\n * @description whether to lazy loading data\n */\n lazy?: boolean\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void\n className?: string\n style?: StyleValue\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout?: Layout\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn?: boolean\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible?: boolean\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n appendFilterPanelTo?: string\n scrollbarTabindex?: number | string\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn?: boolean\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent?: boolean\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar?: boolean\n}\n\ntype TableTooltipData<T extends DefaultRow> = Parameters<\n TableOverflowTooltipFormatter<T>\n>[0]\ntype TableSortOrder = 'ascending' | 'descending'\n\ninterface Sort {\n prop: string\n order: TableSortOrder\n init?: any\n silent?: any\n}\n\ninterface Filter<T extends DefaultRow> {\n column: TableColumnCtx<T>\n values: string[]\n silent: any\n}\n\ninterface TreeNode {\n expanded?: boolean\n loading?: boolean\n noLazyChildren?: boolean\n indent?: number\n level?: number\n display?: boolean\n}\n\ninterface RenderRowData<T extends DefaultRow> {\n store: Store<T>\n _self: Table<T>\n column: TableColumnCtx<T>\n row: T\n $index: number\n cellIndex: number\n treeNode?: TreeNode\n expanded: boolean\n}\n\ninterface TableConfigContext {\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipEffect?: string\n tooltipOptions?: TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<any>\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TableProps` instead.\n */\nexport const tableProps = {\n /**\n * @description table data\n */\n data: {\n type: Array as PropType<any[]>,\n default: () => [],\n },\n /**\n * @description size of Table\n */\n size: useSizeProp,\n width: [String, Number],\n /**\n * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles\n */\n height: [String, Number],\n /**\n * @description table's max-height. The legal value is a number or the height in px\n */\n maxHeight: [String, Number],\n /**\n * @description whether width of column automatically fits its container\n */\n fit: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Table is striped\n */\n stripe: Boolean,\n /**\n * @description whether Table has vertical border\n */\n border: Boolean,\n /**\n * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used\n */\n rowKey: [String, Function] as PropType<TableProps<any>['rowKey']>,\n /**\n * @description whether Table header is visible\n */\n showHeader: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display a summary row\n */\n showSummary: Boolean,\n /**\n * @description displayed text for the first column of summary row\n */\n sumText: String,\n /**\n * @description custom summary method\n */\n summaryMethod: Function as PropType<TableProps<any>['summaryMethod']>,\n /**\n * @description function that returns custom class names for a row, or a string assigning class names for every row\n */\n rowClassName: [String, Function] as PropType<TableProps<any>['rowClassName']>,\n /**\n * @description function that returns custom style for a row, or an object assigning custom style for every row\n */\n rowStyle: [Object, Function] as PropType<TableProps<any>['rowStyle']>,\n /**\n * @description function that returns custom class names for a cell, or a string assigning class names for every cell\n */\n cellClassName: [String, Function] as PropType<\n TableProps<any>['cellClassName']\n >,\n /**\n * @description function that returns custom style for a cell, or an object assigning custom style for every cell\n */\n cellStyle: [Object, Function] as PropType<TableProps<any>['cellStyle']>,\n /**\n * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header\n */\n headerRowClassName: [String, Function] as PropType<\n TableProps<any>['headerRowClassName']\n >,\n /**\n * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header\n */\n headerRowStyle: [Object, Function] as PropType<\n TableProps<any>['headerRowStyle']\n >,\n /**\n * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header\n */\n headerCellClassName: [String, Function] as PropType<\n TableProps<any>['headerCellClassName']\n >,\n /**\n * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header\n */\n headerCellStyle: [Object, Function] as PropType<\n TableProps<any>['headerCellStyle']\n >,\n /**\n * @description whether current row is highlighted\n */\n highlightCurrentRow: Boolean,\n /**\n * @description key of current row, a set only prop\n */\n currentRowKey: [String, Number],\n /**\n * @description displayed text when data is empty. You can customize this area with `#empty`\n */\n emptyText: String,\n /**\n * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop\n */\n expandRowKeys: Array as PropType<TableProps<any>['expandRowKeys']>,\n /**\n * @description whether expand all rows by default, works when the table has a column type=\"expand\" or contains tree structure data\n */\n defaultExpandAll: Boolean,\n /**\n * @description enable expandable rows, works when the table has a column type=\"expand\"\n */\n rowExpandable: {\n type: Function as PropType<TableProps<any>['rowExpandable']>,\n },\n /**\n * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order\n */\n defaultSort: Object as PropType<TableProps<any>['defaultSort']>,\n /**\n * @description the `effect` of the overflow tooltip\n */\n tooltipEffect: String,\n /**\n * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)\n */\n tooltipOptions: Object as PropType<TableProps<any>['tooltipOptions']>,\n /**\n * @description method that returns rowspan and colspan\n */\n spanMethod: Function as PropType<TableProps<any>['spanMethod']>,\n /**\n * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected\n */\n selectOnIndeterminate: {\n type: Boolean,\n default: true,\n },\n /**\n * @description horizontal indentation of tree data\n */\n indent: {\n type: Number,\n default: 16,\n },\n /**\n * @description configuration for rendering nested data\n */\n treeProps: {\n type: Object as PropType<TableProps<any>['treeProps']>,\n default: () => {\n return {\n hasChildren: 'hasChildren',\n children: 'children',\n checkStrictly: false,\n }\n },\n },\n /**\n * @description whether to lazy loading data\n */\n lazy: Boolean,\n /**\n * @description method for loading child row data, only works when `lazy` is true\n */\n load: Function as PropType<TableProps<any>['load']>,\n style: {\n type: [String, Object, Array, Boolean] as PropType<\n TableProps<any>['style']\n >,\n default: () => ({}),\n },\n className: {\n type: String,\n default: '',\n },\n /**\n * @description sets the algorithm used to lay out table cells, rows, and columns\n */\n tableLayout: {\n type: String as PropType<Layout>,\n default: 'fixed',\n },\n /**\n * @description always show scrollbar\n */\n scrollbarAlwaysOn: Boolean,\n /**\n * @description ensure main axis minimum-size doesn't follow the content\n */\n flexible: Boolean,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<TableProps<any>['showOverflowTooltip']>,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<TableProps<any>['tooltipFormatter']>,\n appendFilterPanelTo: String,\n scrollbarTabindex: {\n type: [Number, String],\n default: undefined,\n },\n /**\n * @description whether to allow drag the last column\n */\n allowDragLastColumn: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to preserve expanded row content in DOM when collapsed\n */\n preserveExpandedContent: Boolean,\n /**\n * @description whether to use native scrollbars\n */\n nativeScrollbar: Boolean,\n}\nexport type {\n SummaryMethod,\n Table,\n TableProps,\n TableRefs,\n ColumnCls,\n ColumnStyle,\n CellCls,\n CellStyle,\n DefaultRow,\n TreeNode,\n RenderRowData,\n Sort,\n Filter,\n TableColumnCtx,\n TreeProps,\n TableTooltipData,\n TableSortOrder,\n RenderExpanded,\n TableConfigContext,\n}\n\nexport default tableProps\n"],"mappings":";;;;;AA0VA,MAAa,aAAa;;;;CAIxB,MAAM;EACJ,MAAM;EACN,eAAe,EAAE;EAClB;;;;CAID,MAAM;CACN,OAAO,CAAC,QAAQ,OAAO;;;;CAIvB,QAAQ,CAAC,QAAQ,OAAO;;;;CAIxB,WAAW,CAAC,QAAQ,OAAO;;;;CAI3B,KAAK;EACH,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;;;;CAIR,QAAQ;;;;CAIR,QAAQ,CAAC,QAAQ,SAAS;;;;CAI1B,YAAY;EACV,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;;;;CAIb,SAAS;;;;CAIT,eAAe;;;;CAIf,cAAc,CAAC,QAAQ,SAAS;;;;CAIhC,UAAU,CAAC,QAAQ,SAAS;;;;CAI5B,eAAe,CAAC,QAAQ,SAAS;;;;CAMjC,WAAW,CAAC,QAAQ,SAAS;;;;CAI7B,oBAAoB,CAAC,QAAQ,SAAS;;;;CAMtC,gBAAgB,CAAC,QAAQ,SAAS;;;;CAMlC,qBAAqB,CAAC,QAAQ,SAAS;;;;CAMvC,iBAAiB,CAAC,QAAQ,SAAS;;;;CAMnC,qBAAqB;;;;CAIrB,eAAe,CAAC,QAAQ,OAAO;;;;CAI/B,WAAW;;;;CAIX,eAAe;;;;CAIf,kBAAkB;;;;CAIlB,eAAe,EACb,MAAM,UACP;;;;CAID,aAAa;;;;CAIb,eAAe;;;;CAIf,gBAAgB;;;;CAIhB,YAAY;;;;CAIZ,uBAAuB;EACrB,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,eAAe;GACb,OAAO;IACL,aAAa;IACb,UAAU;IACV,eAAe;IAChB;;EAEJ;;;;CAID,MAAM;;;;CAIN,MAAM;CACN,OAAO;EACL,MAAM;GAAC;GAAQ;GAAQ;GAAO;GAAQ;EAGtC,gBAAgB,EAAE;EACnB;CACD,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;;;;CAID,mBAAmB;;;;CAInB,UAAU;;;;CAIV,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;CAClB,qBAAqB;CACrB,mBAAmB;EACjB,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS,KAAA;EACV;;;;CAID,qBAAqB;EACnB,MAAM;EACN,SAAS;EACV;;;;CAID,yBAAyB;;;;CAIzB,iBAAiB;CAClB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Table } from "./defaults.js";
|
|
1
|
+
import { DefaultRow, Table } from "./defaults.js";
|
|
2
2
|
|
|
3
3
|
//#region ../../packages/components/table/src/table/key-render-helper.d.ts
|
|
4
|
-
declare function useKeyRender(table: Table<
|
|
4
|
+
declare function useKeyRender<T extends DefaultRow>(table: Table<T>): void;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { useKeyRender as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-render-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/key-render-helper.ts"],"sourcesContent":["import { onMounted, onUnmounted } from 'vue'\n\nimport type { Table } from './defaults'\n\nexport default function useKeyRender(table: Table<
|
|
1
|
+
{"version":3,"file":"key-render-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/key-render-helper.ts"],"sourcesContent":["import { onMounted, onUnmounted } from 'vue'\n\nimport type { DefaultRow, Table } from './defaults'\n\nexport default function useKeyRender<T extends DefaultRow>(table: Table<T>) {\n let observer: MutationObserver | undefined\n\n const initWatchDom = () => {\n const el = table.vnode.el\n const columnsWrapper = (el as HTMLElement).querySelector('.hidden-columns')\n const config = { childList: true, subtree: true }\n const updateOrderFns = table.store.states.updateOrderFns\n observer = new MutationObserver(() => {\n updateOrderFns.forEach((fn: () => void) => fn())\n })\n\n observer.observe(columnsWrapper!, config)\n }\n\n onMounted(() => {\n // fix https://github.com/element-plus/element-plus/issues/8528\n initWatchDom()\n })\n\n onUnmounted(() => {\n observer?.disconnect()\n })\n}\n"],"mappings":";;AAIA,SAAwB,aAAmC,OAAiB;CAC1E,IAAI;CAEJ,MAAM,qBAAqB;EAEzB,MAAM,iBADK,MAAM,MAAM,GACoB,cAAc,kBAAkB;EAC3E,MAAM,SAAS;GAAE,WAAW;GAAM,SAAS;GAAM;EACjD,MAAM,iBAAiB,MAAM,MAAM,OAAO;EAC1C,WAAW,IAAI,uBAAuB;GACpC,eAAe,SAAS,OAAmB,IAAI,CAAC;IAChD;EAEF,SAAS,QAAQ,gBAAiB,OAAO;;CAG3C,gBAAgB;EAEd,cAAc;GACd;CAEF,kBAAkB;EAChB,UAAU,YAAY;GACtB"}
|
|
@@ -11,7 +11,7 @@ declare function useStyle<T extends DefaultRow>(props: TableProps<T>, layout: Ta
|
|
|
11
11
|
isGroup: _$vue.Ref<boolean, boolean>;
|
|
12
12
|
handleMouseLeave: () => void;
|
|
13
13
|
handleHeaderFooterMousewheel: (_event: WheelEvent, data: any) => void;
|
|
14
|
-
tableSize: _$vue.ComputedRef<"" | "default" | "
|
|
14
|
+
tableSize: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
|
15
15
|
emptyBlockStyle: _$vue.ComputedRef<{
|
|
16
16
|
width: string;
|
|
17
17
|
height: string;
|
|
@@ -3,7 +3,7 @@ import { Store } from "../store/index.js";
|
|
|
3
3
|
|
|
4
4
|
//#region ../../packages/components/table/src/table/utils-helper.d.ts
|
|
5
5
|
declare function useUtils<T extends DefaultRow>(store: Store<T>): {
|
|
6
|
-
setCurrentRow: (row
|
|
6
|
+
setCurrentRow: (row?: T) => void;
|
|
7
7
|
getSelectionRows: () => T[];
|
|
8
8
|
toggleRowSelection: (row: T, selected?: boolean, ignoreSelectable?: boolean) => void;
|
|
9
9
|
clearSelection: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/utils-helper.ts"],"sourcesContent":["import type { Store } from '../store'\nimport type { DefaultRow } from './defaults'\n\nfunction useUtils<T extends DefaultRow>(store: Store<T>) {\n const setCurrentRow = (row
|
|
1
|
+
{"version":3,"file":"utils-helper.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table/utils-helper.ts"],"sourcesContent":["import type { Store } from '../store'\nimport type { DefaultRow } from './defaults'\n\nfunction useUtils<T extends DefaultRow>(store: Store<T>) {\n const setCurrentRow = (row?: T) => {\n store.commit('setCurrentRow', row)\n }\n const getSelectionRows = () => {\n return store.getSelectionRows()\n }\n const toggleRowSelection = (\n row: T,\n selected?: boolean,\n ignoreSelectable = true\n ) => {\n store.toggleRowSelection(row, selected, false, ignoreSelectable)\n store.updateAllSelected()\n }\n const clearSelection = () => {\n store.clearSelection()\n }\n const clearFilter = (columnKeys?: string[] | string) => {\n store.clearFilter(columnKeys)\n }\n const toggleAllSelection = () => {\n store.commit('toggleAllSelection')\n }\n const toggleRowExpansion = (row: T, expanded?: boolean) => {\n store.toggleRowExpansionAdapter(row, expanded)\n }\n const clearSort = () => {\n store.clearSort()\n }\n const sort = (prop: string, order: string) => {\n store.commit('sort', { prop, order })\n }\n const updateKeyChildren = (key: string, data: T[]) => {\n store.updateKeyChildren(key, data)\n }\n\n return {\n setCurrentRow,\n getSelectionRows,\n toggleRowSelection,\n clearSelection,\n clearFilter,\n toggleAllSelection,\n toggleRowExpansion,\n clearSort,\n sort,\n updateKeyChildren,\n }\n}\n\nexport default useUtils\n"],"mappings":";AAGA,SAAS,SAA+B,OAAiB;CACvD,MAAM,iBAAiB,QAAY;EACjC,MAAM,OAAO,iBAAiB,IAAI;;CAEpC,MAAM,yBAAyB;EAC7B,OAAO,MAAM,kBAAkB;;CAEjC,MAAM,sBACJ,KACA,UACA,mBAAmB,SAChB;EACH,MAAM,mBAAmB,KAAK,UAAU,OAAO,iBAAiB;EAChE,MAAM,mBAAmB;;CAE3B,MAAM,uBAAuB;EAC3B,MAAM,gBAAgB;;CAExB,MAAM,eAAe,eAAmC;EACtD,MAAM,YAAY,WAAW;;CAE/B,MAAM,2BAA2B;EAC/B,MAAM,OAAO,qBAAqB;;CAEpC,MAAM,sBAAsB,KAAQ,aAAuB;EACzD,MAAM,0BAA0B,KAAK,SAAS;;CAEhD,MAAM,kBAAkB;EACtB,MAAM,WAAW;;CAEnB,MAAM,QAAQ,MAAc,UAAkB;EAC5C,MAAM,OAAO,QAAQ;GAAE;GAAM;GAAO,CAAC;;CAEvC,MAAM,qBAAqB,KAAa,SAAc;EACpD,MAAM,kBAAkB,KAAK,KAAK;;CAGpC,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
|
|
@@ -83,8 +83,8 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
83
83
|
highlight: BooleanConstructor;
|
|
84
84
|
}>> & Readonly<{}>, {
|
|
85
85
|
fixed: string;
|
|
86
|
-
context: Table<any>;
|
|
87
86
|
stripe: boolean;
|
|
87
|
+
context: Table<any>;
|
|
88
88
|
highlight: boolean;
|
|
89
89
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
90
90
|
//#endregion
|
|
@@ -74,7 +74,132 @@ interface TableColumn<T extends DefaultRow> extends ComponentInternalInstance {
|
|
|
74
74
|
columnId: string;
|
|
75
75
|
columnConfig: Ref<Partial<TableColumnCtx<T>>>;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
interface TableColumnProps<T extends DefaultRow = DefaultRow> {
|
|
78
|
+
/**
|
|
79
|
+
* @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
|
|
80
|
+
*/
|
|
81
|
+
type?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @description column label
|
|
84
|
+
*/
|
|
85
|
+
label?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @description class name of cells in the column
|
|
88
|
+
*/
|
|
89
|
+
className?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @description class name of the label of this column
|
|
92
|
+
*/
|
|
93
|
+
labelClassName?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @description
|
|
96
|
+
*/
|
|
97
|
+
property?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @description field name. You can also use its alias: `property`
|
|
100
|
+
*/
|
|
101
|
+
prop?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @description column width
|
|
104
|
+
*/
|
|
105
|
+
width?: string | number;
|
|
106
|
+
/**
|
|
107
|
+
* @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
|
|
108
|
+
*/
|
|
109
|
+
minWidth?: string | number;
|
|
110
|
+
/**
|
|
111
|
+
* @description render function for table header of this column
|
|
112
|
+
*/
|
|
113
|
+
renderHeader?: TableColumnCtx<T>['renderHeader'];
|
|
114
|
+
/**
|
|
115
|
+
* @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
|
|
116
|
+
*/
|
|
117
|
+
sortable?: boolean | string;
|
|
118
|
+
/**
|
|
119
|
+
* @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort
|
|
120
|
+
*/
|
|
121
|
+
sortMethod?: TableColumnCtx<T>['sortMethod'];
|
|
122
|
+
/**
|
|
123
|
+
* @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal
|
|
124
|
+
*/
|
|
125
|
+
sortBy?: TableColumnCtx<T>['sortBy'];
|
|
126
|
+
/**
|
|
127
|
+
* @description whether column width can be resized, works when `border` of `el-table` is `true`
|
|
128
|
+
*/
|
|
129
|
+
resizable?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered
|
|
132
|
+
*/
|
|
133
|
+
columnKey?: string;
|
|
134
|
+
/**
|
|
135
|
+
* @description alignment, the value should be 'left' \/ 'center' \/ 'right'
|
|
136
|
+
*/
|
|
137
|
+
align?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \/ 'center' \/ 'right'
|
|
140
|
+
*/
|
|
141
|
+
headerAlign?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @description whether to hide extra content and show them in a tooltip when hovering on the cell
|
|
144
|
+
*/
|
|
145
|
+
showOverflowTooltip?: TableColumnCtx<T>['showOverflowTooltip'];
|
|
146
|
+
/**
|
|
147
|
+
* @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`
|
|
148
|
+
*/
|
|
149
|
+
tooltipFormatter?: TableColumnCtx<T>['tooltipFormatter'];
|
|
150
|
+
/**
|
|
151
|
+
* @description whether column is fixed at left / right. Will be fixed at left if `true`
|
|
152
|
+
*/
|
|
153
|
+
fixed?: boolean | string;
|
|
154
|
+
/**
|
|
155
|
+
* @description function that formats cell content
|
|
156
|
+
*/
|
|
157
|
+
formatter?: TableColumnCtx<T>['formatter'];
|
|
158
|
+
/**
|
|
159
|
+
* @description function that determines if a certain row can be selected, works when `type` is 'selection'
|
|
160
|
+
*/
|
|
161
|
+
selectable?: TableColumnCtx<T>['selectable'];
|
|
162
|
+
/**
|
|
163
|
+
* @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work
|
|
164
|
+
*/
|
|
165
|
+
reserveSelection?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`
|
|
168
|
+
*/
|
|
169
|
+
filterMethod?: TableColumnCtx<T>['filterMethod'];
|
|
170
|
+
/**
|
|
171
|
+
* @description filter value for selected data, might be useful when table header is rendered with `render-header`
|
|
172
|
+
*/
|
|
173
|
+
filteredValue?: TableColumnCtx<T>['filteredValue'];
|
|
174
|
+
/**
|
|
175
|
+
* @description an array of data filtering options. For each element in this array, `text` and `value` are required
|
|
176
|
+
*/
|
|
177
|
+
filters?: TableColumnCtx<T>['filters'];
|
|
178
|
+
/**
|
|
179
|
+
* @description placement for the filter dropdown
|
|
180
|
+
*/
|
|
181
|
+
filterPlacement?: string;
|
|
182
|
+
/**
|
|
183
|
+
* @description whether data filtering supports multiple options
|
|
184
|
+
*/
|
|
185
|
+
filterMultiple?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* @description className for the filter dropdown
|
|
188
|
+
*/
|
|
189
|
+
filterClassName?: string;
|
|
190
|
+
/**
|
|
191
|
+
* @description customize indices for each row, works on columns with `type=index`
|
|
192
|
+
*/
|
|
193
|
+
index?: TableColumnCtx<T>['index'];
|
|
194
|
+
/**
|
|
195
|
+
* @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array
|
|
196
|
+
*/
|
|
197
|
+
sortOrders?: TableColumnCtx<T>['sortOrders'];
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.
|
|
201
|
+
*/
|
|
202
|
+
declare const tableColumnProps: {
|
|
78
203
|
/**
|
|
79
204
|
* @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
|
|
80
205
|
*/
|
|
@@ -124,7 +249,7 @@ declare const _default: {
|
|
|
124
249
|
* @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table
|
|
125
250
|
*/
|
|
126
251
|
sortable: {
|
|
127
|
-
type: (
|
|
252
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
128
253
|
default: boolean;
|
|
129
254
|
};
|
|
130
255
|
/**
|
|
@@ -168,7 +293,7 @@ declare const _default: {
|
|
|
168
293
|
/**
|
|
169
294
|
* @description whether column is fixed at left / right. Will be fixed at left if `true`
|
|
170
295
|
*/
|
|
171
|
-
fixed: (
|
|
296
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
172
297
|
/**
|
|
173
298
|
* @description function that formats cell content
|
|
174
299
|
*/
|
|
@@ -222,4 +347,4 @@ declare const _default: {
|
|
|
222
347
|
};
|
|
223
348
|
};
|
|
224
349
|
//#endregion
|
|
225
|
-
export { type FilterMethods, type Filters, type TableColumn, type TableColumnCtx, type ValueOf,
|
|
350
|
+
export { type FilterMethods, type Filters, type TableColumn, type TableColumnCtx, type TableColumnProps, type ValueOf, tableColumnProps as default, tableColumnProps };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
//#region ../../packages/components/table/src/table-column/defaults.ts
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.
|
|
4
|
+
*/
|
|
5
|
+
const tableColumnProps = {
|
|
3
6
|
/**
|
|
4
7
|
* @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon
|
|
5
8
|
*/
|
|
@@ -163,6 +166,6 @@ var defaults_default = {
|
|
|
163
166
|
}
|
|
164
167
|
};
|
|
165
168
|
//#endregion
|
|
166
|
-
export {
|
|
169
|
+
export { tableColumnProps as default, tableColumnProps };
|
|
167
170
|
|
|
168
171
|
//# sourceMappingURL=defaults.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table-column/defaults.ts"],"sourcesContent":["import type { ComponentInternalInstance, PropType, Ref, VNode } from 'vue'\nimport type { DefaultRow, Table, TableSortOrder } from '../table/defaults'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\nimport type { Store } from '../store'\n\ntype CI<T extends DefaultRow> = {\n column: TableColumnCtx<T>\n $index: number\n store: Store<T>\n _self: any\n}\n\ntype Filters = {\n text: string\n value: string\n}[]\n\ntype FilterMethods<T extends DefaultRow> = (\n value: string,\n row: T,\n column: TableColumnCtx<T>\n) => void\n\ntype ValueOf<T> = T[keyof T]\n\ntype TableColumnCtx<T extends DefaultRow = DefaultRow> = {\n id: string\n realWidth: number | null\n type: string\n label: string\n className: string\n labelClassName: string\n property: string\n prop: string\n width?: string | number\n minWidth: string | number\n renderHeader: (data: CI<T>) => VNode\n sortable: boolean | string\n sortMethod: (a: T, b: T) => number\n sortBy: string | ((row: T, index: number, array?: T[]) => string) | string[]\n resizable: boolean\n columnKey: string\n rawColumnKey: string\n align: string\n headerAlign: string\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n fixed: boolean | string\n formatter: (\n row: T,\n column: TableColumnCtx<T>,\n cellValue: any,\n index: number\n ) => VNode | string\n selectable: (row: T, index: number) => boolean\n reserveSelection: boolean\n filterMethod: FilterMethods<T>\n filteredValue: string[]\n filters: Filters\n filterPlacement: string\n filterMultiple: boolean\n filterClassName: string\n index: number | ((index: number) => number)\n sortOrders: (TableSortOrder | null)[]\n renderCell: (data: any) => VNode | VNode[]\n colSpan: number\n rowSpan: number\n children?: TableColumnCtx<T>[]\n level: number\n filterable: boolean | FilterMethods<T> | Filters\n order: TableSortOrder | null\n isColumnGroup: boolean\n isSubColumn: boolean\n columns: TableColumnCtx<T>[]\n getColumnIndex: () => number\n no: number\n filterOpened?: boolean\n renderFilterIcon?: (scope: any) => VNode\n renderExpand?: (scope: any) => VNode\n}\n\ninterface TableColumn<T extends DefaultRow> extends ComponentInternalInstance {\n vnode: {\n vParent: TableColumn<T> | Table<T>\n } & VNode\n vParent: TableColumn<T> | Table<T>\n columnId: string\n columnConfig: Ref<Partial<TableColumnCtx<T>>>\n}\n\nexport type { Filters, FilterMethods, TableColumnCtx, TableColumn, ValueOf }\n\nexport default {\n /**\n * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon\n */\n type: {\n type: String,\n default: 'default',\n },\n /**\n * @description column label\n */\n label: String,\n /**\n * @description class name of cells in the column\n */\n className: String,\n /**\n * @description class name of the label of this column\n */\n labelClassName: String,\n /**\n * @description\n */\n property: String,\n /**\n * @description field name. You can also use its alias: `property`\n */\n prop: String,\n /**\n * @description column width\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion\n */\n minWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description render function for table header of this column\n */\n renderHeader: Function as PropType<TableColumnCtx<any>['renderHeader']>,\n /**\n * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table\n */\n sortable: {\n type: [Boolean, String],\n default: false,\n },\n /**\n * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort\n */\n sortMethod: Function as PropType<TableColumnCtx<any>['sortMethod']>,\n /**\n * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal\n */\n sortBy: [String, Function, Array] as PropType<TableColumnCtx<any>['sortBy']>,\n /**\n * @description whether column width can be resized, works when `border` of `el-table` is `true`\n */\n resizable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered\n */\n columnKey: String,\n /**\n * @description alignment, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n align: String,\n /**\n * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n headerAlign: String,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<\n TableColumnCtx<any>['showOverflowTooltip']\n >,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<\n TableColumnCtx<any>['tooltipFormatter']\n >,\n /**\n * @description whether column is fixed at left / right. Will be fixed at left if `true`\n */\n fixed: [Boolean, String],\n /**\n * @description function that formats cell content\n */\n formatter: Function as PropType<TableColumnCtx<any>['formatter']>,\n /**\n * @description function that determines if a certain row can be selected, works when `type` is 'selection'\n */\n selectable: Function as PropType<TableColumnCtx<any>['selectable']>,\n /**\n * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work\n */\n reserveSelection: Boolean,\n /**\n * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`\n */\n filterMethod: Function as PropType<TableColumnCtx<any>['filterMethod']>,\n /**\n * @description filter value for selected data, might be useful when table header is rendered with `render-header`\n */\n filteredValue: Array as PropType<TableColumnCtx<any>['filteredValue']>,\n /**\n * @description an array of data filtering options. For each element in this array, `text` and `value` are required\n */\n filters: Array as PropType<TableColumnCtx<any>['filters']>,\n /**\n * @description placement for the filter dropdown\n */\n filterPlacement: String,\n /**\n * @description whether data filtering supports multiple options\n */\n filterMultiple: {\n type: Boolean,\n default: true,\n },\n /**\n * @description className for the filter dropdown\n */\n filterClassName: String,\n /**\n * @description customize indices for each row, works on columns with `type=index`\n */\n index: [Number, Function] as PropType<TableColumnCtx<any>['index']>,\n /**\n * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array\n */\n sortOrders: {\n type: Array as PropType<TableColumnCtx<any>['sortOrders']>,\n default: () => {\n return ['ascending', 'descending', null]\n },\n validator: (val: TableColumnCtx<any>['sortOrders']) => {\n return val.every((order: TableSortOrder | null) =>\n ['ascending', 'descending', null].includes(order)\n )\n },\n },\n}\n"],"mappings":";AA+FA,IAAA,mBAAe;;;;CAIb,MAAM;EACJ,MAAM;EACN,SAAS;EACV;;;;CAID,OAAO;;;;CAIP,WAAW;;;;CAIX,gBAAgB;;;;CAIhB,UAAU;;;;CAIV,MAAM;;;;CAIN,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,UAAU;EACR,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,cAAc;;;;CAId,UAAU;EACR,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS;EACV;;;;CAID,YAAY;;;;CAIZ,QAAQ;EAAC;EAAQ;EAAU;EAAM;;;;CAIjC,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;;;;CAIX,OAAO;;;;CAIP,aAAa;;;;CAIb,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EAGvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;;;;CAMlB,OAAO,CAAC,SAAS,OAAO;;;;CAIxB,WAAW;;;;CAIX,YAAY;;;;CAIZ,kBAAkB;;;;CAIlB,cAAc;;;;CAId,eAAe;;;;CAIf,SAAS;;;;CAIT,iBAAiB;;;;CAIjB,gBAAgB;EACd,MAAM;EACN,SAAS;EACV;;;;CAID,iBAAiB;;;;CAIjB,OAAO,CAAC,QAAQ,SAAS;;;;CAIzB,YAAY;EACV,MAAM;EACN,eAAe;GACb,OAAO;IAAC;IAAa;IAAc;IAAK;;EAE1C,YAAY,QAA2C;GACrD,OAAO,IAAI,OAAO,UAChB;IAAC;IAAa;IAAc;IAAK,CAAC,SAAS,MAAM,CAClD;;EAEJ;CACF"}
|
|
1
|
+
{"version":3,"file":"defaults.mjs","names":[],"sources":["../../../../../../../packages/components/table/src/table-column/defaults.ts"],"sourcesContent":["import type { ComponentInternalInstance, PropType, Ref, VNode } from 'vue'\nimport type { DefaultRow, Table, TableSortOrder } from '../table/defaults'\nimport type {\n TableOverflowTooltipFormatter,\n TableOverflowTooltipOptions,\n} from '../util'\nimport type { Store } from '../store'\n\ntype CI<T extends DefaultRow> = {\n column: TableColumnCtx<T>\n $index: number\n store: Store<T>\n _self: any\n}\n\ntype Filters = {\n text: string\n value: string\n}[]\n\ntype FilterMethods<T extends DefaultRow> = (\n value: string,\n row: T,\n column: TableColumnCtx<T>\n) => void\n\ntype ValueOf<T> = T[keyof T]\n\ntype TableColumnCtx<T extends DefaultRow = DefaultRow> = {\n id: string\n realWidth: number | null\n type: string\n label: string\n className: string\n labelClassName: string\n property: string\n prop: string\n width?: string | number\n minWidth: string | number\n renderHeader: (data: CI<T>) => VNode\n sortable: boolean | string\n sortMethod: (a: T, b: T) => number\n sortBy: string | ((row: T, index: number, array?: T[]) => string) | string[]\n resizable: boolean\n columnKey: string\n rawColumnKey: string\n align: string\n headerAlign: string\n showOverflowTooltip?: boolean | TableOverflowTooltipOptions\n tooltipFormatter?: TableOverflowTooltipFormatter<T>\n fixed: boolean | string\n formatter: (\n row: T,\n column: TableColumnCtx<T>,\n cellValue: any,\n index: number\n ) => VNode | string\n selectable: (row: T, index: number) => boolean\n reserveSelection: boolean\n filterMethod: FilterMethods<T>\n filteredValue: string[]\n filters: Filters\n filterPlacement: string\n filterMultiple: boolean\n filterClassName: string\n index: number | ((index: number) => number)\n sortOrders: (TableSortOrder | null)[]\n renderCell: (data: any) => VNode | VNode[]\n colSpan: number\n rowSpan: number\n children?: TableColumnCtx<T>[]\n level: number\n filterable: boolean | FilterMethods<T> | Filters\n order: TableSortOrder | null\n isColumnGroup: boolean\n isSubColumn: boolean\n columns: TableColumnCtx<T>[]\n getColumnIndex: () => number\n no: number\n filterOpened?: boolean\n renderFilterIcon?: (scope: any) => VNode\n renderExpand?: (scope: any) => VNode\n}\n\ninterface TableColumn<T extends DefaultRow> extends ComponentInternalInstance {\n vnode: {\n vParent: TableColumn<T> | Table<T>\n } & VNode\n vParent: TableColumn<T> | Table<T>\n columnId: string\n columnConfig: Ref<Partial<TableColumnCtx<T>>>\n}\n\ninterface TableColumnProps<T extends DefaultRow = DefaultRow> {\n /**\n * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon\n */\n type?: string\n /**\n * @description column label\n */\n label?: string\n /**\n * @description class name of cells in the column\n */\n className?: string\n /**\n * @description class name of the label of this column\n */\n labelClassName?: string\n /**\n * @description\n */\n property?: string\n /**\n * @description field name. You can also use its alias: `property`\n */\n prop?: string\n /**\n * @description column width\n */\n width?: string | number\n /**\n * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion\n */\n minWidth?: string | number\n /**\n * @description render function for table header of this column\n */\n renderHeader?: TableColumnCtx<T>['renderHeader']\n /**\n * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table\n */\n sortable?: boolean | string\n /**\n * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort\n */\n sortMethod?: TableColumnCtx<T>['sortMethod']\n /**\n * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal\n */\n sortBy?: TableColumnCtx<T>['sortBy']\n /**\n * @description whether column width can be resized, works when `border` of `el-table` is `true`\n */\n resizable?: boolean\n /**\n * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered\n */\n columnKey?: string\n /**\n * @description alignment, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n align?: string\n /**\n * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n headerAlign?: string\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell\n */\n showOverflowTooltip?: TableColumnCtx<T>['showOverflowTooltip']\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter?: TableColumnCtx<T>['tooltipFormatter']\n /**\n * @description whether column is fixed at left / right. Will be fixed at left if `true`\n */\n fixed?: boolean | string\n /**\n * @description function that formats cell content\n */\n formatter?: TableColumnCtx<T>['formatter']\n /**\n * @description function that determines if a certain row can be selected, works when `type` is 'selection'\n */\n selectable?: TableColumnCtx<T>['selectable']\n /**\n * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work\n */\n reserveSelection?: boolean\n /**\n * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`\n */\n filterMethod?: TableColumnCtx<T>['filterMethod']\n /**\n * @description filter value for selected data, might be useful when table header is rendered with `render-header`\n */\n filteredValue?: TableColumnCtx<T>['filteredValue']\n /**\n * @description an array of data filtering options. For each element in this array, `text` and `value` are required\n */\n filters?: TableColumnCtx<T>['filters']\n /**\n * @description placement for the filter dropdown\n */\n filterPlacement?: string\n /**\n * @description whether data filtering supports multiple options\n */\n filterMultiple?: boolean\n /**\n * @description className for the filter dropdown\n */\n filterClassName?: string\n /**\n * @description customize indices for each row, works on columns with `type=index`\n */\n index?: TableColumnCtx<T>['index']\n /**\n * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array\n */\n sortOrders?: TableColumnCtx<T>['sortOrders']\n}\n\nexport type {\n Filters,\n FilterMethods,\n TableColumnCtx,\n TableColumn,\n TableColumnProps,\n ValueOf,\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.\n */\nexport const tableColumnProps = {\n /**\n * @description type of the column. If set to `selection`, the column will display checkbox. If set to `index`, the column will display index of the row (staring from 1). If set to `expand`, the column will display expand icon\n */\n type: {\n type: String,\n default: 'default',\n },\n /**\n * @description column label\n */\n label: String,\n /**\n * @description class name of cells in the column\n */\n className: String,\n /**\n * @description class name of the label of this column\n */\n labelClassName: String,\n /**\n * @description\n */\n property: String,\n /**\n * @description field name. You can also use its alias: `property`\n */\n prop: String,\n /**\n * @description column width\n */\n width: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion\n */\n minWidth: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description render function for table header of this column\n */\n renderHeader: Function as PropType<TableColumnCtx<any>['renderHeader']>,\n /**\n * @description whether column can be sorted. Remote sorting can be done by setting this attribute to 'custom' and listening to the `sort-change` event of Table\n */\n sortable: {\n type: [Boolean, String],\n default: false,\n },\n /**\n * @description sorting method, works when `sortable` is `true`. Should return a number, just like Array.sort\n */\n sortMethod: Function as PropType<TableColumnCtx<any>['sortMethod']>,\n /**\n * @description specify which property to sort by, works when `sortable` is `true` and `sort-method` is `undefined`. If set to an Array, the column will sequentially sort by the next property if the previous one is equal\n */\n sortBy: [String, Function, Array] as PropType<TableColumnCtx<any>['sortBy']>,\n /**\n * @description whether column width can be resized, works when `border` of `el-table` is `true`\n */\n resizable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description column's key. If you need to use the filter-change event, you need this attribute to identify which column is being filtered\n */\n columnKey: String,\n /**\n * @description alignment, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n align: String,\n /**\n * @description alignment of the table header. If omitted, the value of the above `align` attribute will be applied, the value should be 'left' \\/ 'center' \\/ 'right'\n */\n headerAlign: String,\n /**\n * @description whether to hide extra content and show them in a tooltip when hovering on the cell\n */\n showOverflowTooltip: {\n type: [Boolean, Object] as PropType<\n TableColumnCtx<any>['showOverflowTooltip']\n >,\n default: undefined,\n },\n /**\n * @description function that formats cell tooltip content, works when `show-overflow-tooltip` is `true`\n */\n tooltipFormatter: Function as PropType<\n TableColumnCtx<any>['tooltipFormatter']\n >,\n /**\n * @description whether column is fixed at left / right. Will be fixed at left if `true`\n */\n fixed: [Boolean, String],\n /**\n * @description function that formats cell content\n */\n formatter: Function as PropType<TableColumnCtx<any>['formatter']>,\n /**\n * @description function that determines if a certain row can be selected, works when `type` is 'selection'\n */\n selectable: Function as PropType<TableColumnCtx<any>['selectable']>,\n /**\n * @description whether to reserve selection after data refreshing, works when `type` is 'selection'. Note that `row-key` is required for this to work\n */\n reserveSelection: Boolean,\n /**\n * @description data filtering method. If `filter-multiple` is on, this method will be called multiple times for each row, and a row will display if one of the calls returns `true`\n */\n filterMethod: Function as PropType<TableColumnCtx<any>['filterMethod']>,\n /**\n * @description filter value for selected data, might be useful when table header is rendered with `render-header`\n */\n filteredValue: Array as PropType<TableColumnCtx<any>['filteredValue']>,\n /**\n * @description an array of data filtering options. For each element in this array, `text` and `value` are required\n */\n filters: Array as PropType<TableColumnCtx<any>['filters']>,\n /**\n * @description placement for the filter dropdown\n */\n filterPlacement: String,\n /**\n * @description whether data filtering supports multiple options\n */\n filterMultiple: {\n type: Boolean,\n default: true,\n },\n /**\n * @description className for the filter dropdown\n */\n filterClassName: String,\n /**\n * @description customize indices for each row, works on columns with `type=index`\n */\n index: [Number, Function] as PropType<TableColumnCtx<any>['index']>,\n /**\n * @description the order of the sorting strategies used when sorting the data, works when `sortable` is `true`. Accepts an array, as the user clicks on the header, the column is sorted in order of the elements in the array\n */\n sortOrders: {\n type: Array as PropType<TableColumnCtx<any>['sortOrders']>,\n default: () => {\n return ['ascending', 'descending', null]\n },\n validator: (val: TableColumnCtx<any>['sortOrders']) => {\n return val.every((order: TableSortOrder | null) =>\n ['ascending', 'descending', null].includes(order)\n )\n },\n },\n}\n\nexport default tableColumnProps\n"],"mappings":";;;;AAoOA,MAAa,mBAAmB;;;;CAI9B,MAAM;EACJ,MAAM;EACN,SAAS;EACV;;;;CAID,OAAO;;;;CAIP,WAAW;;;;CAIX,gBAAgB;;;;CAIhB,UAAU;;;;CAIV,MAAM;;;;CAIN,OAAO;EACL,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,UAAU;EACR,MAAM,CAAC,QAAQ,OAAO;EACtB,SAAS;EACV;;;;CAID,cAAc;;;;CAId,UAAU;EACR,MAAM,CAAC,SAAS,OAAO;EACvB,SAAS;EACV;;;;CAID,YAAY;;;;CAIZ,QAAQ;EAAC;EAAQ;EAAU;EAAM;;;;CAIjC,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,WAAW;;;;CAIX,OAAO;;;;CAIP,aAAa;;;;CAIb,qBAAqB;EACnB,MAAM,CAAC,SAAS,OAAO;EAGvB,SAAS,KAAA;EACV;;;;CAID,kBAAkB;;;;CAMlB,OAAO,CAAC,SAAS,OAAO;;;;CAIxB,WAAW;;;;CAIX,YAAY;;;;CAIZ,kBAAkB;;;;CAIlB,cAAc;;;;CAId,eAAe;;;;CAIf,SAAS;;;;CAIT,iBAAiB;;;;CAIjB,gBAAgB;EACd,MAAM;EACN,SAAS;EACV;;;;CAID,iBAAiB;;;;CAIjB,OAAO,CAAC,QAAQ,SAAS;;;;CAIzB,YAAY;EACV,MAAM;EACN,eAAe;GACb,OAAO;IAAC;IAAa;IAAc;IAAK;;EAE1C,YAAY,QAA2C;GACrD,OAAO,IAAI,OAAO,UAChB;IAAC;IAAa;IAAc;IAAK,CAAC,SAAS,MAAM,CAClD;;EAEJ;CACF"}
|