@element-plus/nightly 0.0.20260513 → 0.0.20260515
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 +2 -2
- package/es/components/alert/src/alert.d.ts +1 -1
- package/es/components/alert/src/alert.vue.d.ts +1 -1
- package/es/components/anchor/src/anchor.vue.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/es/components/avatar/src/avatar-group.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +1 -1
- package/es/components/button/src/button-group.d.ts +1 -1
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +1 -1
- package/es/components/button/src/button.vue.d.ts +3 -3
- package/es/components/button/src/use-button.d.ts +1 -1
- package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +1 -1
- package/es/components/carousel/src/carousel.vue.d.ts +1 -1
- package/es/components/cascader/src/cascader.d.ts +3 -3
- package/es/components/cascader/src/cascader.vue.d.ts +22 -22
- package/es/components/cascader-panel/src/index.vue.d.ts +3 -3
- package/es/components/cascader-panel/src/menu.vue.d.ts +2 -2
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +4 -4
- package/es/components/checkbox/src/checkbox.d.ts +8 -8
- package/es/components/checkbox/src/checkbox.vue.d.ts +5 -5
- 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 +2 -2
- package/es/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/es/components/countdown/src/countdown.vue.d.ts +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +19 -19
- package/es/components/date-picker/src/props.d.ts +3 -3
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +4 -4
- 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 +4 -4
- 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 +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +9 -9
- package/es/components/date-picker-panel/src/panel-utils.d.ts +24 -24
- 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 +19 -19
- package/es/components/dialog/src/dialog.vue.d.ts +4 -4
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +7 -7
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.vue.d.ts +84 -84
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- 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 +1 -1
- package/es/components/input/src/input.vue.d.ts +13 -13
- package/es/components/input-number/src/input-number.d.ts +3 -3
- package/es/components/input-number/src/input-number.vue.d.ts +8 -8
- package/es/components/input-otp/src/input-otp.vue.d.ts +7 -7
- package/es/components/input-tag/src/input-tag.d.ts +1 -1
- package/es/components/input-tag/src/input-tag.vue.d.ts +14 -14
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/mention/src/mention.d.ts +2 -2
- package/es/components/mention/src/mention.vue.d.ts +3 -3
- package/es/components/menu/src/menu.d.ts +6 -6
- package/es/components/message/src/instance.d.ts +1 -1
- package/es/components/message/src/message.d.ts +1 -1
- package/es/components/message/src/message.vue.d.ts +4 -4
- package/es/components/message-box/src/index.vue.d.ts +48 -48
- package/es/components/notification/src/notification.vue.d.ts +1 -1
- package/es/components/pagination/src/pagination.d.ts +3 -3
- package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/es/components/popover/src/popover.d.ts +2 -2
- package/es/components/popover/src/popover.vue.d.ts +9 -9
- package/es/components/popper/src/composables/use-content.d.ts +3 -3
- package/es/components/popper/src/composables/use-focus-trap.d.ts +1 -1
- package/es/components/popper/src/content.d.ts +4 -4
- package/es/components/popper/src/content.vue.d.ts +15 -15
- package/es/components/radio/src/radio-button.d.ts +3 -3
- package/es/components/radio/src/radio-button.vue.d.ts +3 -3
- package/es/components/radio/src/radio-group.vue.d.ts +5 -5
- package/es/components/radio/src/radio.d.ts +6 -6
- package/es/components/radio/src/radio.vue.d.ts +4 -4
- package/es/components/rate/src/rate.vue.d.ts +1 -1
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/es/components/row/src/row.d.ts +2 -2
- package/es/components/segmented/index.d.ts +2 -2
- package/es/components/segmented/src/segmented.d.ts +1 -1
- package/es/components/select/src/option.d.ts +2 -2
- package/es/components/select/src/option.vue.d.ts +5 -5
- package/es/components/select/src/select.d.ts +4 -4
- package/es/components/select/src/select.vue.d.ts +104 -104
- package/es/components/select/src/useOption.d.ts +2 -2
- package/es/components/select/src/useSelect.d.ts +5 -5
- package/es/components/select-v2/src/defaults.d.ts +2 -2
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +92 -92
- package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/es/components/slider/src/button.vue.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +6 -6
- package/es/components/space/src/space.d.ts +2 -2
- package/es/components/splitter/src/split-bar.vue.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +3 -3
- 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 +80 -80
- package/es/components/table/src/table/defaults.d.ts +143 -9
- 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-footer/index.d.ts +1 -1
- package/es/components/table/src/table-header/index.d.ts +16 -16
- 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 +1 -1
- package/es/components/tag/src/tag.vue.d.ts +3 -3
- package/es/components/text/src/text.vue.d.ts +1 -1
- package/es/components/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 +4 -4
- package/es/components/time-picker/src/common/picker.vue.d.ts +25 -25
- package/es/components/time-picker/src/common/props.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/es/components/time-picker/src/time-picker.d.ts +17 -17
- package/es/components/time-select/src/time-select.vue.d.ts +13 -13
- package/es/components/timeline/src/timeline-item.d.ts +1 -1
- package/es/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/es/components/tooltip/src/content.d.ts +1 -1
- package/es/components/tooltip/src/content.vue.d.ts +15 -15
- package/es/components/tooltip/src/tooltip.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/es/components/tooltip/src/trigger.d.ts +1 -1
- package/es/components/tour/src/content.d.ts +2 -2
- 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 +3 -3
- package/es/components/tree/src/tree-node.vue.d.ts +15 -15
- package/es/components/tree/src/tree.vue.d.ts +17 -17
- package/es/components/tree-select/src/tree-select-option.d.ts +5 -5
- package/es/components/tree-select/src/tree-select.vue.d.ts +34 -34
- package/es/components/tree-v2/src/composables/useTree.d.ts +6 -6
- 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 +4 -4
- package/es/components/upload/src/upload-content.vue.d.ts +1 -1
- package/es/components/upload/src/upload.vue.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-grid.d.ts +3 -3
- package/es/components/virtual-list/src/builders/build-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
- package/es/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/es/components/watermark/src/watermark.vue.d.ts +1 -1
- package/es/directives/index.d.ts +1 -1
- package/es/hooks/use-floating/index.d.ts +4 -4
- package/es/hooks/use-popper/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 +2 -2
- package/lib/components/alert/src/alert.d.ts +1 -1
- package/lib/components/alert/src/alert.vue.d.ts +1 -1
- package/lib/components/anchor/src/anchor.vue.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete.d.ts +2 -2
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/lib/components/avatar/src/avatar-group.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +1 -1
- package/lib/components/button/src/button-group.d.ts +1 -1
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +1 -1
- package/lib/components/button/src/button.vue.d.ts +3 -3
- package/lib/components/button/src/use-button.d.ts +1 -1
- package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
- package/lib/components/carousel/src/carousel.d.ts +1 -1
- package/lib/components/carousel/src/carousel.vue.d.ts +1 -1
- package/lib/components/cascader/src/cascader.d.ts +3 -3
- package/lib/components/cascader/src/cascader.vue.d.ts +22 -22
- package/lib/components/cascader-panel/src/index.vue.d.ts +3 -3
- package/lib/components/cascader-panel/src/menu.vue.d.ts +2 -2
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +5 -5
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox.d.ts +8 -8
- package/lib/components/checkbox/src/checkbox.vue.d.ts +5 -5
- 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 +2 -2
- package/lib/components/config-provider/src/hooks/use-global-config.d.ts +1 -1
- package/lib/components/countdown/src/countdown.vue.d.ts +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +19 -19
- package/lib/components/date-picker/src/props.d.ts +3 -3
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +4 -4
- 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 +4 -4
- 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 +2 -2
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +9 -9
- package/lib/components/date-picker-panel/src/panel-utils.d.ts +24 -24
- 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 +19 -19
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -4
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +7 -7
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.vue.d.ts +84 -84
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +1 -1
- 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 +1 -1
- package/lib/components/input/src/input.vue.d.ts +13 -13
- package/lib/components/input-number/src/input-number.d.ts +3 -3
- package/lib/components/input-number/src/input-number.vue.d.ts +8 -8
- package/lib/components/input-otp/src/input-otp.vue.d.ts +7 -7
- package/lib/components/input-tag/src/input-tag.d.ts +1 -1
- package/lib/components/input-tag/src/input-tag.vue.d.ts +14 -14
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/mention/src/mention.d.ts +2 -2
- package/lib/components/mention/src/mention.vue.d.ts +3 -3
- package/lib/components/menu/src/menu.d.ts +6 -6
- package/lib/components/message/src/instance.d.ts +1 -1
- package/lib/components/message/src/message.d.ts +1 -1
- package/lib/components/message/src/message.vue.d.ts +4 -4
- package/lib/components/message-box/src/index.vue.d.ts +48 -48
- package/lib/components/notification/src/notification.vue.d.ts +1 -1
- package/lib/components/pagination/src/pagination.d.ts +3 -3
- package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +2 -2
- package/lib/components/popover/src/popover.d.ts +2 -2
- package/lib/components/popover/src/popover.vue.d.ts +9 -9
- package/lib/components/popper/src/composables/use-content.d.ts +3 -3
- package/lib/components/popper/src/composables/use-focus-trap.d.ts +1 -1
- package/lib/components/popper/src/content.d.ts +4 -4
- package/lib/components/popper/src/content.vue.d.ts +15 -15
- package/lib/components/radio/src/radio-button.d.ts +3 -3
- package/lib/components/radio/src/radio-button.vue.d.ts +3 -3
- package/lib/components/radio/src/radio-group.vue.d.ts +5 -5
- package/lib/components/radio/src/radio.d.ts +6 -6
- package/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/lib/components/rate/src/rate.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +2 -2
- package/lib/components/segmented/index.d.ts +2 -2
- package/lib/components/segmented/src/segmented.d.ts +1 -1
- package/lib/components/select/src/option.d.ts +2 -2
- package/lib/components/select/src/option.vue.d.ts +5 -5
- package/lib/components/select/src/select.d.ts +4 -4
- package/lib/components/select/src/select.vue.d.ts +104 -104
- package/lib/components/select/src/useOption.d.ts +2 -2
- package/lib/components/select/src/useSelect.d.ts +5 -5
- package/lib/components/select-v2/src/defaults.d.ts +2 -2
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +92 -92
- package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/lib/components/slider/src/button.vue.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +6 -6
- package/lib/components/space/src/space.d.ts +2 -2
- package/lib/components/splitter/src/split-bar.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +3 -3
- 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 +80 -80
- package/lib/components/table/src/table/defaults.d.ts +143 -9
- 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-footer/index.d.ts +1 -1
- package/lib/components/table/src/table-header/index.d.ts +16 -16
- 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 +1 -1
- package/lib/components/tag/src/tag.vue.d.ts +3 -3
- package/lib/components/text/src/text.vue.d.ts +1 -1
- package/lib/components/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 +4 -4
- package/lib/components/time-picker/src/common/picker.vue.d.ts +25 -25
- package/lib/components/time-picker/src/common/props.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
- package/lib/components/time-picker/src/time-picker.d.ts +17 -17
- package/lib/components/time-select/src/time-select.vue.d.ts +13 -13
- package/lib/components/timeline/src/timeline-item.d.ts +1 -1
- package/lib/components/timeline/src/timeline-item.vue.d.ts +2 -2
- package/lib/components/tooltip/src/content.d.ts +1 -1
- package/lib/components/tooltip/src/content.vue.d.ts +15 -15
- package/lib/components/tooltip/src/tooltip.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +18 -18
- package/lib/components/tooltip/src/trigger.d.ts +1 -1
- package/lib/components/tour/src/content.d.ts +2 -2
- 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 +3 -3
- package/lib/components/tree/src/tree-node.vue.d.ts +15 -15
- package/lib/components/tree/src/tree.vue.d.ts +17 -17
- package/lib/components/tree-select/src/tree-select-option.d.ts +5 -5
- package/lib/components/tree-select/src/tree-select.vue.d.ts +34 -34
- package/lib/components/tree-v2/src/composables/useTree.d.ts +6 -6
- 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 +4 -4
- package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/src/upload.vue.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +3 -3
- package/lib/components/virtual-list/src/builders/build-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +3 -3
- package/lib/components/virtual-list/src/components/scrollbar.d.ts +1 -1
- package/lib/components/watermark/src/watermark.vue.d.ts +1 -1
- package/lib/directives/index.d.ts +1 -1
- package/lib/hooks/use-floating/index.d.ts +4 -4
- package/lib/hooks/use-popper/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
|
@@ -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.js","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.js","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,CAAA,GAAA,IAAA,iBAAgB;EAEd,cAAc;GACd;CAEF,CAAA,GAAA,IAAA,mBAAkB;EAChB,UAAU,YAAY;GACtB"}
|
|
@@ -35,7 +35,7 @@ declare function useStyle<T extends DefaultRow>(props: TableProps<T>, layout: Ta
|
|
|
35
35
|
tableBodyStyles: _$vue.ComputedRef<{
|
|
36
36
|
width: string;
|
|
37
37
|
}>;
|
|
38
|
-
tableLayout: _$vue.ComputedRef<"
|
|
38
|
+
tableLayout: _$vue.ComputedRef<"auto" | "fixed">;
|
|
39
39
|
scrollbarViewStyle: {
|
|
40
40
|
display: string;
|
|
41
41
|
verticalAlign: 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.js","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.js","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
|
*/
|
|
@@ -106,14 +231,14 @@ declare const _default: {
|
|
|
106
231
|
* @description column width
|
|
107
232
|
*/
|
|
108
233
|
width: {
|
|
109
|
-
type: (
|
|
234
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
110
235
|
default: string;
|
|
111
236
|
};
|
|
112
237
|
/**
|
|
113
238
|
* @description column minimum width. Columns with `width` has a fixed width, while columns with `min-width` has a width that is distributed in proportion
|
|
114
239
|
*/
|
|
115
240
|
minWidth: {
|
|
116
|
-
type: (
|
|
241
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
117
242
|
default: string;
|
|
118
243
|
};
|
|
119
244
|
/**
|
|
@@ -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 };
|
|
@@ -3,7 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#region ../../packages/components/table/src/table-column/defaults.ts
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Removed after 3.0.0, Use `TableColumnProps` instead.
|
|
8
|
+
*/
|
|
9
|
+
const tableColumnProps = {
|
|
7
10
|
/**
|
|
8
11
|
* @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
|
|
9
12
|
*/
|
|
@@ -167,6 +170,7 @@ var defaults_default = {
|
|
|
167
170
|
}
|
|
168
171
|
};
|
|
169
172
|
//#endregion
|
|
170
|
-
exports.default =
|
|
173
|
+
exports.default = tableColumnProps;
|
|
174
|
+
exports.tableColumnProps = tableColumnProps;
|
|
171
175
|
|
|
172
176
|
//# sourceMappingURL=defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","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.js","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"}
|
|
@@ -1,227 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CheckboxProps, CheckboxValueType } from "../../../checkbox/src/checkbox.js";
|
|
3
|
-
import _default$1 from "../../../checkbox/src/checkbox-button.vue.js";
|
|
4
|
-
import _default$2 from "../../../checkbox/src/checkbox-group.vue.js";
|
|
5
|
-
import { TableColumnCtx } from "./defaults.js";
|
|
6
|
-
import { TableSortOrder } from "../table/defaults.js";
|
|
7
|
-
import * as _$vue from "vue";
|
|
8
|
-
|
|
9
|
-
//#region ../../packages/components/table/src/table-column/index.d.ts
|
|
10
|
-
declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
11
|
-
type: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
label: StringConstructor;
|
|
16
|
-
className: StringConstructor;
|
|
17
|
-
labelClassName: StringConstructor;
|
|
18
|
-
property: StringConstructor;
|
|
19
|
-
prop: StringConstructor;
|
|
20
|
-
width: {
|
|
21
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
minWidth: {
|
|
25
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
renderHeader: _$vue.PropType<TableColumnCtx<any>["renderHeader"]>;
|
|
29
|
-
sortable: {
|
|
30
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
sortMethod: _$vue.PropType<TableColumnCtx<any>["sortMethod"]>;
|
|
34
|
-
sortBy: _$vue.PropType<TableColumnCtx<any>["sortBy"]>;
|
|
35
|
-
resizable: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
columnKey: StringConstructor;
|
|
40
|
-
align: StringConstructor;
|
|
41
|
-
headerAlign: StringConstructor;
|
|
42
|
-
showOverflowTooltip: {
|
|
43
|
-
type: _$vue.PropType<TableColumnCtx<any>["showOverflowTooltip"]>;
|
|
44
|
-
default: undefined;
|
|
45
|
-
};
|
|
46
|
-
tooltipFormatter: _$vue.PropType<TableColumnCtx<any>["tooltipFormatter"]>;
|
|
47
|
-
fixed: (BooleanConstructor | StringConstructor)[];
|
|
48
|
-
formatter: _$vue.PropType<TableColumnCtx<any>["formatter"]>;
|
|
49
|
-
selectable: _$vue.PropType<TableColumnCtx<any>["selectable"]>;
|
|
50
|
-
reserveSelection: BooleanConstructor;
|
|
51
|
-
filterMethod: _$vue.PropType<TableColumnCtx<any>["filterMethod"]>;
|
|
52
|
-
filteredValue: _$vue.PropType<TableColumnCtx<any>["filteredValue"]>;
|
|
53
|
-
filters: _$vue.PropType<TableColumnCtx<any>["filters"]>;
|
|
54
|
-
filterPlacement: StringConstructor;
|
|
55
|
-
filterMultiple: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
filterClassName: StringConstructor;
|
|
60
|
-
index: _$vue.PropType<TableColumnCtx<any>["index"]>;
|
|
61
|
-
sortOrders: {
|
|
62
|
-
type: _$vue.PropType<TableColumnCtx<any>["sortOrders"]>;
|
|
63
|
-
default: () => (string | null)[];
|
|
64
|
-
validator: (val: TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
65
|
-
};
|
|
66
|
-
}>, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
|
67
|
-
type: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
label: StringConstructor;
|
|
72
|
-
className: StringConstructor;
|
|
73
|
-
labelClassName: StringConstructor;
|
|
74
|
-
property: StringConstructor;
|
|
75
|
-
prop: StringConstructor;
|
|
76
|
-
width: {
|
|
77
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
78
|
-
default: string;
|
|
79
|
-
};
|
|
80
|
-
minWidth: {
|
|
81
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
82
|
-
default: string;
|
|
83
|
-
};
|
|
84
|
-
renderHeader: _$vue.PropType<TableColumnCtx<any>["renderHeader"]>;
|
|
85
|
-
sortable: {
|
|
86
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
sortMethod: _$vue.PropType<TableColumnCtx<any>["sortMethod"]>;
|
|
90
|
-
sortBy: _$vue.PropType<TableColumnCtx<any>["sortBy"]>;
|
|
91
|
-
resizable: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
columnKey: StringConstructor;
|
|
96
|
-
align: StringConstructor;
|
|
97
|
-
headerAlign: StringConstructor;
|
|
98
|
-
showOverflowTooltip: {
|
|
99
|
-
type: _$vue.PropType<TableColumnCtx<any>["showOverflowTooltip"]>;
|
|
100
|
-
default: undefined;
|
|
101
|
-
};
|
|
102
|
-
tooltipFormatter: _$vue.PropType<TableColumnCtx<any>["tooltipFormatter"]>;
|
|
103
|
-
fixed: (BooleanConstructor | StringConstructor)[];
|
|
104
|
-
formatter: _$vue.PropType<TableColumnCtx<any>["formatter"]>;
|
|
105
|
-
selectable: _$vue.PropType<TableColumnCtx<any>["selectable"]>;
|
|
106
|
-
reserveSelection: BooleanConstructor;
|
|
107
|
-
filterMethod: _$vue.PropType<TableColumnCtx<any>["filterMethod"]>;
|
|
108
|
-
filteredValue: _$vue.PropType<TableColumnCtx<any>["filteredValue"]>;
|
|
109
|
-
filters: _$vue.PropType<TableColumnCtx<any>["filters"]>;
|
|
110
|
-
filterPlacement: StringConstructor;
|
|
111
|
-
filterMultiple: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: boolean;
|
|
114
|
-
};
|
|
115
|
-
filterClassName: StringConstructor;
|
|
116
|
-
index: _$vue.PropType<TableColumnCtx<any>["index"]>;
|
|
117
|
-
sortOrders: {
|
|
118
|
-
type: _$vue.PropType<TableColumnCtx<any>["sortOrders"]>;
|
|
119
|
-
default: () => (string | null)[];
|
|
120
|
-
validator: (val: TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
121
|
-
};
|
|
122
|
-
}>> & Readonly<{}>, {
|
|
123
|
-
type: string;
|
|
124
|
-
width: string | number;
|
|
125
|
-
minWidth: string | number;
|
|
126
|
-
resizable: boolean;
|
|
127
|
-
showOverflowTooltip: boolean | Partial<Pick<UseTooltipProps, "offset" | "transition" | "showAfter" | "hideAfter" | "placement" | "popperOptions" | "effect" | "enterable" | "popperClass" | "appendTo" | "showArrow">> | undefined;
|
|
128
|
-
sortOrders: (TableSortOrder | null)[];
|
|
129
|
-
sortable: string | boolean;
|
|
130
|
-
reserveSelection: boolean;
|
|
131
|
-
filterMultiple: boolean;
|
|
132
|
-
}, {}, {
|
|
133
|
-
ElCheckbox: {
|
|
134
|
-
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<CheckboxProps> & Readonly<{
|
|
135
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
136
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
137
|
-
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
138
|
-
"update:modelValue": (val: CheckboxValueType) => void;
|
|
139
|
-
change: (val: CheckboxValueType) => void;
|
|
140
|
-
}, _$vue.PublicProps, {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
disabled: boolean;
|
|
144
|
-
modelValue: number | string | boolean;
|
|
145
|
-
validateEvent: boolean;
|
|
146
|
-
value: string | boolean | number | object;
|
|
147
|
-
label: string | boolean | number | object;
|
|
148
|
-
trueValue: string | number;
|
|
149
|
-
falseValue: string | number;
|
|
150
|
-
trueLabel: string | number;
|
|
151
|
-
falseLabel: string | number;
|
|
152
|
-
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
153
|
-
P: {};
|
|
154
|
-
B: {};
|
|
155
|
-
D: {};
|
|
156
|
-
C: {};
|
|
157
|
-
M: {};
|
|
158
|
-
Defaults: {};
|
|
159
|
-
}, Readonly<CheckboxProps> & Readonly<{
|
|
160
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
161
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
162
|
-
}>, {}, {}, {}, {}, {
|
|
163
|
-
id: string;
|
|
164
|
-
name: string;
|
|
165
|
-
disabled: boolean;
|
|
166
|
-
modelValue: number | string | boolean;
|
|
167
|
-
validateEvent: boolean;
|
|
168
|
-
value: string | boolean | number | object;
|
|
169
|
-
label: string | boolean | number | object;
|
|
170
|
-
trueValue: string | number;
|
|
171
|
-
falseValue: string | number;
|
|
172
|
-
trueLabel: string | number;
|
|
173
|
-
falseLabel: string | number;
|
|
174
|
-
}>;
|
|
175
|
-
__isFragment?: never;
|
|
176
|
-
__isTeleport?: never;
|
|
177
|
-
__isSuspense?: never;
|
|
178
|
-
} & _$vue.ComponentOptionsBase<Readonly<CheckboxProps> & Readonly<{
|
|
179
|
-
"onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
|
|
180
|
-
onChange?: ((val: CheckboxValueType) => any) | undefined;
|
|
181
|
-
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
182
|
-
"update:modelValue": (val: CheckboxValueType) => void;
|
|
183
|
-
change: (val: CheckboxValueType) => void;
|
|
184
|
-
}, string, {
|
|
185
|
-
id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
disabled: boolean;
|
|
188
|
-
modelValue: number | string | boolean;
|
|
189
|
-
validateEvent: boolean;
|
|
190
|
-
value: string | boolean | number | object;
|
|
191
|
-
label: string | boolean | number | object;
|
|
192
|
-
trueValue: string | number;
|
|
193
|
-
falseValue: string | number;
|
|
194
|
-
trueLabel: string | number;
|
|
195
|
-
falseLabel: string | number;
|
|
196
|
-
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
197
|
-
$slots: {
|
|
198
|
-
default?: (props: {}) => any;
|
|
199
|
-
};
|
|
200
|
-
}) & _$vue.ObjectPlugin & {
|
|
201
|
-
setPropsDefaults: (defaults: {
|
|
202
|
-
readonly modelValue?: string | number | boolean | (() => string | number | boolean) | undefined;
|
|
203
|
-
readonly label?: string | number | boolean | (() => string | number | boolean | object) | undefined;
|
|
204
|
-
readonly value?: string | number | boolean | (() => string | number | boolean | object) | undefined;
|
|
205
|
-
readonly indeterminate?: boolean | (() => boolean) | undefined;
|
|
206
|
-
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
207
|
-
readonly checked?: boolean | (() => boolean) | undefined;
|
|
208
|
-
readonly name?: string | (() => string) | undefined;
|
|
209
|
-
readonly trueValue?: string | number | (() => string | number) | undefined;
|
|
210
|
-
readonly falseValue?: string | number | (() => string | number) | undefined;
|
|
211
|
-
readonly trueLabel?: string | number | (() => string | number) | undefined;
|
|
212
|
-
readonly falseLabel?: string | number | (() => string | number) | undefined;
|
|
213
|
-
readonly id?: string | (() => string) | undefined;
|
|
214
|
-
readonly border?: boolean | (() => boolean) | undefined;
|
|
215
|
-
readonly size?: "" | "default" | "large" | "small" | (() => "" | "default" | "large" | "small") | undefined;
|
|
216
|
-
readonly tabindex?: string | number | (() => string | number) | undefined;
|
|
217
|
-
readonly validateEvent?: boolean | (() => boolean) | undefined;
|
|
218
|
-
readonly ariaLabel?: string | (() => string) | undefined;
|
|
219
|
-
readonly ariaControls?: string | (() => string) | undefined;
|
|
220
|
-
}) => void;
|
|
221
|
-
} & {
|
|
222
|
-
CheckboxButton: typeof _default$1;
|
|
223
|
-
CheckboxGroup: typeof _default$2;
|
|
224
|
-
};
|
|
225
|
-
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
|
226
|
-
//#endregion
|
|
1
|
+
import _default from "./index.vue.js";
|
|
227
2
|
export { _default as default };
|
|
@@ -2,125 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
require("../../../../_virtual/_rolldown/runtime.js");
|
|
6
|
-
const require_types = require("../../../../utils/types.js");
|
|
7
|
-
const require_use_global_config = require("../../../config-provider/src/hooks/use-global-config.js");
|
|
8
|
-
const require_index = require("../../../checkbox/index.js");
|
|
9
|
-
const require_util = require("../util.js");
|
|
10
|
-
const require_config = require("../config.js");
|
|
11
|
-
const require_watcher_helper = require("./watcher-helper.js");
|
|
12
|
-
const require_render_helper = require("./render-helper.js");
|
|
13
|
-
const require_defaults = require("./defaults.js");
|
|
14
|
-
let vue = require("vue");
|
|
15
|
-
let _vue_shared = require("@vue/shared");
|
|
16
5
|
//#region ../../packages/components/table/src/table-column/index.ts
|
|
17
|
-
|
|
18
|
-
var table_column_default = (0, vue.defineComponent)({
|
|
19
|
-
name: "ElTableColumn",
|
|
20
|
-
components: { ElCheckbox: require_index.ElCheckbox },
|
|
21
|
-
props: require_defaults.default,
|
|
22
|
-
setup(props, { slots }) {
|
|
23
|
-
const instance = (0, vue.getCurrentInstance)();
|
|
24
|
-
const globalConfig = require_use_global_config.useGlobalConfig("table");
|
|
25
|
-
const columnConfig = (0, vue.ref)({});
|
|
26
|
-
const owner = (0, vue.computed)(() => {
|
|
27
|
-
let parent = instance.parent;
|
|
28
|
-
while (parent && !parent.tableId) parent = parent.parent;
|
|
29
|
-
return parent;
|
|
30
|
-
});
|
|
31
|
-
const { registerNormalWatchers, registerComplexWatchers } = require_watcher_helper.default(owner, props);
|
|
32
|
-
const { columnId, isSubColumn, realHeaderAlign, columnOrTableParent, setColumnWidth, setColumnForcedProps, setColumnRenders, getPropsData, getColumnElIndex, realAlign, updateColumnOrder } = require_render_helper.default(props, slots, owner);
|
|
33
|
-
const parent = columnOrTableParent.value;
|
|
34
|
-
columnId.value = `${"tableId" in parent && parent.tableId || "columnId" in parent && parent.columnId}_column_${columnIdSeed++}`;
|
|
35
|
-
(0, vue.onBeforeMount)(() => {
|
|
36
|
-
isSubColumn.value = owner.value !== parent;
|
|
37
|
-
const type = props.type || "default";
|
|
38
|
-
const sortable = props.sortable === "" ? true : props.sortable;
|
|
39
|
-
const showOverflowTooltip = type === "selection" ? false : require_types.isUndefined(props.showOverflowTooltip) ? parent.props.showOverflowTooltip ?? globalConfig.value?.showOverflowTooltip : props.showOverflowTooltip;
|
|
40
|
-
const tooltipFormatter = require_types.isUndefined(props.tooltipFormatter) ? parent.props.tooltipFormatter ?? globalConfig.value?.tooltipFormatter : props.tooltipFormatter;
|
|
41
|
-
const defaults = {
|
|
42
|
-
...require_config.cellStarts[type],
|
|
43
|
-
id: columnId.value,
|
|
44
|
-
type,
|
|
45
|
-
property: props.prop || props.property,
|
|
46
|
-
align: realAlign,
|
|
47
|
-
headerAlign: realHeaderAlign,
|
|
48
|
-
showOverflowTooltip,
|
|
49
|
-
tooltipFormatter,
|
|
50
|
-
filterable: props.filters || props.filterMethod,
|
|
51
|
-
filteredValue: [],
|
|
52
|
-
filterPlacement: "",
|
|
53
|
-
filterClassName: "",
|
|
54
|
-
isColumnGroup: false,
|
|
55
|
-
isSubColumn: false,
|
|
56
|
-
filterOpened: false,
|
|
57
|
-
sortable,
|
|
58
|
-
index: props.index,
|
|
59
|
-
rawColumnKey: instance.vnode.key
|
|
60
|
-
};
|
|
61
|
-
let column = getPropsData([
|
|
62
|
-
"columnKey",
|
|
63
|
-
"label",
|
|
64
|
-
"className",
|
|
65
|
-
"labelClassName",
|
|
66
|
-
"type",
|
|
67
|
-
"renderHeader",
|
|
68
|
-
"formatter",
|
|
69
|
-
"fixed",
|
|
70
|
-
"resizable"
|
|
71
|
-
], [
|
|
72
|
-
"sortMethod",
|
|
73
|
-
"sortBy",
|
|
74
|
-
"sortOrders"
|
|
75
|
-
], ["selectable", "reserveSelection"], [
|
|
76
|
-
"filterMethod",
|
|
77
|
-
"filters",
|
|
78
|
-
"filterMultiple",
|
|
79
|
-
"filterOpened",
|
|
80
|
-
"filteredValue",
|
|
81
|
-
"filterPlacement",
|
|
82
|
-
"filterClassName"
|
|
83
|
-
]);
|
|
84
|
-
column = require_util.mergeOptions(defaults, column);
|
|
85
|
-
column = require_util.compose(setColumnRenders, setColumnWidth, setColumnForcedProps)(column);
|
|
86
|
-
columnConfig.value = column;
|
|
87
|
-
registerNormalWatchers();
|
|
88
|
-
registerComplexWatchers();
|
|
89
|
-
});
|
|
90
|
-
(0, vue.onMounted)(() => {
|
|
91
|
-
const parent = columnOrTableParent.value;
|
|
92
|
-
const children = isSubColumn.value ? parent.vnode.el?.children : parent.refs.hiddenColumns?.children;
|
|
93
|
-
const getColumnIndex = () => getColumnElIndex(children || [], instance.vnode.el);
|
|
94
|
-
columnConfig.value.getColumnIndex = getColumnIndex;
|
|
95
|
-
getColumnIndex() > -1 && owner.value.store.commit("insertColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent && parent.columnConfig.value : null, updateColumnOrder);
|
|
96
|
-
});
|
|
97
|
-
(0, vue.onBeforeUnmount)(() => {
|
|
98
|
-
const getColumnIndex = columnConfig.value.getColumnIndex;
|
|
99
|
-
(getColumnIndex ? getColumnIndex() : -1) > -1 && owner.value.store.commit("removeColumn", columnConfig.value, isSubColumn.value ? "columnConfig" in parent && parent.columnConfig.value : null, updateColumnOrder);
|
|
100
|
-
});
|
|
101
|
-
instance.columnId = columnId.value;
|
|
102
|
-
instance.columnConfig = columnConfig;
|
|
103
|
-
},
|
|
104
|
-
render() {
|
|
105
|
-
try {
|
|
106
|
-
const renderDefault = this.$slots.default?.({
|
|
107
|
-
row: {},
|
|
108
|
-
column: {},
|
|
109
|
-
$index: -1
|
|
110
|
-
});
|
|
111
|
-
const children = [];
|
|
112
|
-
if ((0, _vue_shared.isArray)(renderDefault)) {
|
|
113
|
-
for (const childNode of renderDefault) if (childNode.type?.name === "ElTableColumn" || childNode.shapeFlag & 2) children.push(childNode);
|
|
114
|
-
else if (childNode.type === vue.Fragment && (0, _vue_shared.isArray)(childNode.children)) childNode.children.forEach((vnode) => {
|
|
115
|
-
if (vnode?.patchFlag !== 1024 && !(0, _vue_shared.isString)(vnode?.children)) children.push(vnode);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
return (0, vue.h)("div", children);
|
|
119
|
-
} catch {
|
|
120
|
-
return (0, vue.h)("div", []);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
});
|
|
6
|
+
var table_column_default = require("./index2.js").default;
|
|
124
7
|
//#endregion
|
|
125
8
|
exports.default = table_column_default;
|
|
126
9
|
|