bgi-plus 2.14.16 → 2.14.17
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.css +1 -1
- package/dist/index.full.js +342 -169
- package/dist/index.full.min.js +7 -7
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.mjs +342 -169
- 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/component.mjs +6 -6
- package/es/components/affix/src/affix.d.ts +1 -1
- package/es/components/affix/src/affix.vue.d.ts +2 -2
- package/es/components/affix/src/affix.vue_vue_type_script_setup_true_lang.mjs +1 -1
- 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 +1 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +5 -5
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/es/components/autocomplete/src/autocomplete.vue_vue_type_script_setup_true_lang.mjs +1 -1
- 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 +2 -2
- package/es/components/backtop/src/backtop.vue.d.ts +2 -2
- package/es/components/badge/src/badge.d.ts +1 -1
- package/es/components/badge/src/badge.vue.d.ts +2 -2
- package/es/components/button/src/button-group.vue.d.ts +1 -1
- package/es/components/button/src/button.d.ts +3 -3
- package/es/components/button/src/button.vue.d.ts +4 -4
- 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 +5 -5
- package/es/components/cascader/src/cascader.vue.d.ts +10 -10
- package/es/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/es/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/es/components/check-tag/src/check-tag.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-button.vue.d.ts +4 -4
- package/es/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.d.ts +9 -9
- package/es/components/checkbox/src/checkbox.vue.d.ts +4 -4
- 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 +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 +6 -6
- package/es/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/es/components/config-provider/src/config-provider.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/countdown/src/countdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker/src/date-picker.d.ts +11 -11
- 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_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/date-picker-panel/src/date-picker-panel.d.ts +5 -5
- package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/es/components/descriptions/src/description-item.d.ts +19 -19
- package/es/components/descriptions/src/description.d.ts +1 -1
- package/es/components/descriptions/src/description.vue.d.ts +1 -1
- package/es/components/dialog/src/dialog-content.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/dialog/src/dialog.vue.d.ts +4 -4
- package/es/components/divider/src/divider.d.ts +1 -1
- package/es/components/divider/src/divider.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +6 -6
- package/es/components/drawer/src/drawer.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +4 -4
- package/es/components/dropdown/src/dropdown.vue.d.ts +44 -44
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/extend/base-table/src/index.vue.d.ts +11 -2
- package/es/components/extend/base-table/src/index.vue_vue_type_script_setup_true_lang.mjs +4 -2
- package/es/components/extend/base-table/src/props.mjs +4 -0
- package/es/components/extend/base-table/src/v-table/filterPanel.vue_vue_type_script_setup_true_lang.mjs +22 -8
- package/es/components/extend/base-table/src/v-table/index.vue_vue_type_script_lang.mjs +3 -2
- package/es/components/extend/edit-cell/src/index.vue.d.ts +8 -8
- package/es/components/extend/edit-cell/src/index.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/extend/edit-table/src/index.vue.d.ts +9 -9
- package/es/components/extend/form-dialog/src/index.vue.d.ts +1 -1
- package/es/components/extend/mutiline-text/src/index.vue.d.ts +2 -2
- package/es/components/extend/quill-editor/src/index.vue.d.ts +4 -4
- package/es/components/extend/v-button/src/index.vue.d.ts +18 -18
- package/es/components/extend/v-dialog/src/index.vue.d.ts +3 -3
- package/es/components/extend/v-form/src/form-item.vue.d.ts +8 -8
- package/es/components/extend/v-form/src/index.vue.d.ts +14 -14
- package/es/components/extend/v-input-number/src/input-number.d.ts +3 -3
- package/es/components/extend/v-input-number/src/input-number.vue.d.ts +8 -8
- package/es/components/extend/v-input-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/extend/v-switch/src/index.vue.d.ts +5 -5
- package/es/components/extend/v-upload/src/index.vue.d.ts +7 -7
- package/es/components/form/src/form-item.d.ts +2 -2
- package/es/components/form/src/form-item.vue.d.ts +1 -1
- package/es/components/form/src/form.d.ts +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_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/index.mjs +12 -12
- package/es/components/input/src/input.d.ts +4 -4
- package/es/components/input/src/input.vue.d.ts +15 -15
- package/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +1 -1
- 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-number/src/input-number.vue_vue_type_script_setup_true_lang.mjs +2 -2
- 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 +4 -4
- package/es/components/input-tag/src/input-tag.vue.d.ts +10 -10
- package/es/components/input-tag/src/input-tag.vue_vue_type_script_setup_true_lang.mjs +1 -1
- 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 +5 -5
- 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/menu.mjs +1 -1
- package/es/components/menu/src/sub-menu.d.ts +1 -1
- package/es/components/menu/src/sub-menu.mjs +1 -1
- package/es/components/message/src/message.d.ts +2 -2
- package/es/components/message/src/message.vue.d.ts +3 -3
- package/es/components/message-box/src/index.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/notification/src/notification.d.ts +1 -1
- package/es/components/notification/src/notification.vue.d.ts +3 -3
- package/es/components/page-header/src/page-header.vue.d.ts +1 -1
- 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 +4 -4
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/popover/src/popover.d.ts +2 -2
- package/es/components/popover/src/popover.vue.d.ts +4 -4
- package/es/components/popper/src/composables/use-content.d.ts +3 -3
- package/es/components/popper/src/content.vue.d.ts +6 -6
- package/es/components/popper/src/popper.d.ts +2 -2
- package/es/components/progress/src/progress.d.ts +1 -1
- package/es/components/progress/src/progress.vue.d.ts +4 -4
- package/es/components/radio/src/radio-button.d.ts +4 -4
- package/es/components/radio/src/radio-button.vue.d.ts +3 -3
- package/es/components/radio/src/radio-group.d.ts +1 -1
- package/es/components/radio/src/radio-group.vue.d.ts +3 -3
- package/es/components/radio/src/radio.d.ts +8 -8
- package/es/components/radio/src/radio.vue.d.ts +4 -4
- package/es/components/rate/src/rate.d.ts +1 -1
- package/es/components/rate/src/rate.vue.d.ts +2 -2
- package/es/components/rate/src/rate.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/result/src/result.d.ts +1 -1
- package/es/components/row/src/row.d.ts +2 -2
- package/es/components/row/src/row.vue.d.ts +1 -1
- package/es/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/es/components/segmented/index.d.ts +1 -1
- package/es/components/segmented/src/segmented.d.ts +2 -2
- 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 +6 -6
- package/es/components/select/src/select.vue.d.ts +51 -51
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/select-v2/src/defaults.d.ts +4 -4
- package/es/components/select-v2/src/select.vue.d.ts +37 -37
- package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +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/slider.d.ts +2 -2
- package/es/components/slider/src/slider.vue.d.ts +6 -6
- package/es/components/space/src/space.d.ts +5 -5
- package/es/components/statistic/src/statistic.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 +2 -2
- package/es/components/steps/src/steps.vue.d.ts +1 -1
- package/es/components/switch/src/switch.d.ts +1 -1
- package/es/components/switch/src/switch.vue.d.ts +2 -2
- package/es/components/switch/src/switch.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs +1 -1
- package/es/components/table/src/table-body/render-helper.mjs +74 -17
- package/es/components/table/src/table-body/row-observer.mjs +19 -0
- package/es/components/table/src/table-body/tr-wrapper.vue_vue_type_script_setup_true_lang.mjs +16 -17
- package/es/components/table/src/table-column/index.d.ts +22 -22
- package/es/components/table/src/table-header/index.d.ts +13 -13
- package/es/components/table/src/table.mjs +5 -2
- package/es/components/table/src/table.vue.d.ts +38 -37
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs +143 -67
- package/es/components/table-v2/src/table-grid.d.ts +1 -1
- package/es/components/table-v2/src/table-v2.d.ts +1 -1
- package/es/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/es/components/tabs/src/tabs.d.ts +5 -5
- package/es/components/tag/src/tag.d.ts +3 -3
- package/es/components/tag/src/tag.vue.d.ts +2 -2
- package/es/components/tag/src/tag.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/text/src/text.d.ts +2 -2
- package/es/components/time-picker/src/common/picker.vue.d.ts +13 -13
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/time-picker/src/common/props.d.ts +3 -3
- package/es/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +11 -11
- package/es/components/time-select/src/time-select.d.ts +1 -1
- package/es/components/time-select/src/time-select.vue.d.ts +6 -6
- package/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/timeline/src/timeline-item.d.ts +2 -2
- package/es/components/tooltip/src/content.vue.d.ts +3 -3
- package/es/components/tooltip/src/tooltip.d.ts +2 -2
- package/es/components/tooltip/src/tooltip.vue.d.ts +3 -3
- 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/step.d.ts +1 -1
- package/es/components/tour/src/tour.d.ts +1 -1
- package/es/components/tour/src/tour.vue.d.ts +5 -5
- package/es/components/transfer/src/transfer.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/tree/src/tree.vue.d.ts +23 -23
- package/es/components/tree-select/src/tree-select.vue.d.ts +38 -38
- package/es/components/tree-v2/src/tree.vue.d.ts +7 -7
- package/es/components/upload/src/upload-content.d.ts +1 -1
- package/es/components/upload/src/upload-content.vue.d.ts +2 -2
- package/es/components/upload/src/upload-list.d.ts +1 -1
- package/es/components/upload/src/upload-list.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/upload/src/upload.d.ts +2 -2
- package/es/components/upload/src/upload.vue.d.ts +2 -2
- package/es/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- 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 +5 -5
- 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 +5 -5
- package/es/components/watermark/src/watermark.vue.d.ts +2 -2
- package/es/hooks/use-floating/index.d.ts +8 -8
- package/es/hooks/use-popper/index.d.ts +3 -3
- package/es/hooks/use-size/index.d.ts +3 -3
- package/es/index.mjs +18 -18
- package/es/plugin.mjs +1 -1
- package/es/utils/vue/size.d.ts +1 -1
- package/es/utils/vue/vnode.d.ts +4 -4
- package/es/version.mjs +1 -1
- package/lib/component.js +122 -122
- package/lib/components/affix/src/affix.d.ts +1 -1
- package/lib/components/affix/src/affix.vue.d.ts +2 -2
- package/lib/components/affix/src/affix.vue_vue_type_script_setup_true_lang.js +1 -1
- 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 +1 -1
- package/lib/components/autocomplete/src/autocomplete.d.ts +5 -5
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +3 -3
- package/lib/components/autocomplete/src/autocomplete.vue_vue_type_script_setup_true_lang.js +4 -4
- 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 +2 -2
- package/lib/components/backtop/src/backtop.vue.d.ts +2 -2
- package/lib/components/badge/src/badge.d.ts +1 -1
- package/lib/components/badge/src/badge.vue.d.ts +2 -2
- package/lib/components/button/src/button-group.vue.d.ts +1 -1
- package/lib/components/button/src/button.d.ts +3 -3
- package/lib/components/button/src/button.vue.d.ts +4 -4
- 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 +5 -5
- package/lib/components/cascader/src/cascader.vue.d.ts +10 -10
- package/lib/components/cascader/src/cascader.vue_vue_type_script_setup_true_lang.js +23 -23
- package/lib/components/cascader-panel/src/index.vue.d.ts +4 -4
- package/lib/components/cascader-panel/src/menu.vue.d.ts +1 -1
- package/lib/components/check-tag/src/check-tag.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-button.vue.d.ts +4 -4
- package/lib/components/checkbox/src/checkbox-group.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.d.ts +9 -9
- package/lib/components/checkbox/src/checkbox.vue.d.ts +4 -4
- 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 +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 +6 -6
- package/lib/components/color-picker/src/color-picker.vue_vue_type_script_setup_true_lang.js +16 -16
- package/lib/components/config-provider/src/config-provider-props.d.ts +1 -1
- package/lib/components/config-provider/src/config-provider.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/countdown/src/countdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/date-picker/src/date-picker.d.ts +11 -11
- 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_vue_type_script_setup_true_lang.js +18 -18
- package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.js +23 -23
- package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +5 -5
- package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
- package/lib/components/descriptions/src/description-item.d.ts +19 -19
- package/lib/components/descriptions/src/description.d.ts +1 -1
- package/lib/components/descriptions/src/description.vue.d.ts +1 -1
- package/lib/components/dialog/src/dialog-content.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/dialog/src/dialog.vue.d.ts +4 -4
- package/lib/components/divider/src/divider.d.ts +1 -1
- package/lib/components/divider/src/divider.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +6 -6
- package/lib/components/drawer/src/drawer.vue_vue_type_script_setup_true_lang.js +4 -4
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +4 -4
- package/lib/components/dropdown/src/dropdown.vue.d.ts +44 -44
- package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js +4 -4
- package/lib/components/extend/base-table/src/index.vue.d.ts +11 -2
- package/lib/components/extend/base-table/src/index.vue_vue_type_script_setup_true_lang.js +23 -21
- package/lib/components/extend/base-table/src/props.js +4 -0
- package/lib/components/extend/base-table/src/v-table/filterPanel.vue_vue_type_script_setup_true_lang.js +22 -8
- package/lib/components/extend/base-table/src/v-table/index.vue_vue_type_script_lang.js +3 -2
- package/lib/components/extend/edit-cell/src/index.vue.d.ts +8 -8
- package/lib/components/extend/edit-cell/src/index.vue_vue_type_script_lang.js +6 -6
- package/lib/components/extend/edit-table/src/index.vue.d.ts +9 -9
- package/lib/components/extend/form-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/extend/mutiline-text/src/index.vue.d.ts +2 -2
- package/lib/components/extend/quill-editor/src/index.vue.d.ts +4 -4
- package/lib/components/extend/v-button/src/index.vue.d.ts +18 -18
- package/lib/components/extend/v-dialog/src/index.vue.d.ts +3 -3
- package/lib/components/extend/v-form/src/form-item.vue.d.ts +8 -8
- package/lib/components/extend/v-form/src/index.vue.d.ts +14 -14
- package/lib/components/extend/v-input-number/src/input-number.d.ts +3 -3
- package/lib/components/extend/v-input-number/src/input-number.vue.d.ts +8 -8
- package/lib/components/extend/v-input-number/src/input-number.vue_vue_type_script_setup_true_lang.js +12 -12
- package/lib/components/extend/v-switch/src/index.vue.d.ts +5 -5
- package/lib/components/extend/v-upload/src/index.vue.d.ts +7 -7
- package/lib/components/form/src/form-item.d.ts +2 -2
- package/lib/components/form/src/form-item.vue.d.ts +1 -1
- package/lib/components/form/src/form.d.ts +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_vue_type_script_setup_true_lang.js +11 -11
- package/lib/components/index.js +135 -135
- package/lib/components/input/src/input.d.ts +4 -4
- package/lib/components/input/src/input.vue.d.ts +15 -15
- package/lib/components/input/src/input.vue_vue_type_script_setup_true_lang.js +1 -1
- 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-number/src/input-number.vue_vue_type_script_setup_true_lang.js +12 -12
- 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 +4 -4
- package/lib/components/input-tag/src/input-tag.vue.d.ts +10 -10
- package/lib/components/input-tag/src/input-tag.vue_vue_type_script_setup_true_lang.js +5 -5
- 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 +5 -5
- 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/menu.js +7 -7
- package/lib/components/menu/src/sub-menu.d.ts +1 -1
- package/lib/components/menu/src/sub-menu.js +4 -4
- package/lib/components/message/src/message.d.ts +2 -2
- package/lib/components/message/src/message.vue.d.ts +3 -3
- package/lib/components/message-box/src/index.vue_vue_type_script_lang.js +17 -17
- package/lib/components/notification/src/notification.d.ts +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +3 -3
- package/lib/components/page-header/src/page-header.vue.d.ts +1 -1
- 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 +4 -4
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +4 -4
- package/lib/components/popover/src/popover.d.ts +2 -2
- package/lib/components/popover/src/popover.vue.d.ts +4 -4
- package/lib/components/popper/src/composables/use-content.d.ts +3 -3
- package/lib/components/popper/src/content.vue.d.ts +6 -6
- package/lib/components/popper/src/popper.d.ts +2 -2
- package/lib/components/progress/src/progress.d.ts +1 -1
- package/lib/components/progress/src/progress.vue.d.ts +4 -4
- package/lib/components/radio/src/radio-button.d.ts +4 -4
- package/lib/components/radio/src/radio-button.vue.d.ts +3 -3
- package/lib/components/radio/src/radio-group.d.ts +1 -1
- package/lib/components/radio/src/radio-group.vue.d.ts +3 -3
- package/lib/components/radio/src/radio.d.ts +8 -8
- package/lib/components/radio/src/radio.vue.d.ts +4 -4
- package/lib/components/rate/src/rate.d.ts +1 -1
- package/lib/components/rate/src/rate.vue.d.ts +2 -2
- package/lib/components/rate/src/rate.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/result/src/result.d.ts +1 -1
- package/lib/components/row/src/row.d.ts +2 -2
- package/lib/components/row/src/row.vue.d.ts +1 -1
- package/lib/components/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/lib/components/segmented/index.d.ts +1 -1
- package/lib/components/segmented/src/segmented.d.ts +2 -2
- 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 +6 -6
- package/lib/components/select/src/select.vue.d.ts +51 -51
- package/lib/components/select/src/select.vue_vue_type_script_lang.js +8 -8
- package/lib/components/select-v2/src/defaults.d.ts +4 -4
- package/lib/components/select-v2/src/select.vue.d.ts +37 -37
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +8 -8
- package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
- package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
- package/lib/components/slider/src/slider.d.ts +2 -2
- package/lib/components/slider/src/slider.vue.d.ts +6 -6
- package/lib/components/space/src/space.d.ts +5 -5
- package/lib/components/statistic/src/statistic.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 +2 -2
- package/lib/components/steps/src/steps.vue.d.ts +1 -1
- package/lib/components/switch/src/switch.d.ts +1 -1
- package/lib/components/switch/src/switch.vue.d.ts +2 -2
- package/lib/components/switch/src/switch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js +4 -4
- package/lib/components/table/src/table-body/render-helper.js +73 -16
- package/lib/components/table/src/table-body/row-observer.js +22 -0
- package/lib/components/table/src/table-body/tr-wrapper.vue_vue_type_script_setup_true_lang.js +15 -16
- package/lib/components/table/src/table-column/index.d.ts +22 -22
- package/lib/components/table/src/table-header/index.d.ts +13 -13
- package/lib/components/table/src/table.js +5 -2
- package/lib/components/table/src/table.vue.d.ts +38 -37
- package/lib/components/table/src/table.vue_vue_type_script_lang.js +147 -70
- package/lib/components/table-v2/src/table-grid.d.ts +1 -1
- package/lib/components/table-v2/src/table-v2.d.ts +1 -1
- package/lib/components/tabs/src/tab-pane.vue.d.ts +1 -1
- package/lib/components/tabs/src/tabs.d.ts +5 -5
- package/lib/components/tag/src/tag.d.ts +3 -3
- package/lib/components/tag/src/tag.vue.d.ts +2 -2
- package/lib/components/tag/src/tag.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/text/src/text.d.ts +2 -2
- package/lib/components/time-picker/src/common/picker.vue.d.ts +13 -13
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_setup_true_lang.js +7 -7
- package/lib/components/time-picker/src/common/props.d.ts +3 -3
- package/lib/components/time-picker/src/time-picker-com/basic-time-spinner.vue_vue_type_script_setup_true_lang.js +10 -10
- package/lib/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +11 -11
- package/lib/components/time-select/src/time-select.d.ts +1 -1
- package/lib/components/time-select/src/time-select.vue.d.ts +6 -6
- package/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/timeline/src/timeline-item.d.ts +2 -2
- package/lib/components/tooltip/src/content.vue.d.ts +3 -3
- package/lib/components/tooltip/src/tooltip.d.ts +2 -2
- package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -3
- 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/step.d.ts +1 -1
- package/lib/components/tour/src/tour.d.ts +1 -1
- package/lib/components/tour/src/tour.vue.d.ts +5 -5
- package/lib/components/transfer/src/transfer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/tree/src/tree.vue.d.ts +23 -23
- package/lib/components/tree-select/src/tree-select.vue.d.ts +38 -38
- package/lib/components/tree-v2/src/tree.vue.d.ts +7 -7
- package/lib/components/upload/src/upload-content.d.ts +1 -1
- package/lib/components/upload/src/upload-content.vue.d.ts +2 -2
- package/lib/components/upload/src/upload-list.d.ts +1 -1
- package/lib/components/upload/src/upload-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/lib/components/upload/src/upload.d.ts +2 -2
- package/lib/components/upload/src/upload.vue.d.ts +2 -2
- package/lib/components/virtual-list/src/builders/build-grid.d.ts +4 -4
- 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 +5 -5
- 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 +5 -5
- package/lib/components/watermark/src/watermark.vue.d.ts +2 -2
- package/lib/hooks/use-floating/index.d.ts +8 -8
- package/lib/hooks/use-popper/index.d.ts +3 -3
- package/lib/hooks/use-size/index.d.ts +3 -3
- package/lib/index.js +266 -266
- package/lib/plugin.js +6 -6
- package/lib/utils/vue/size.d.ts +1 -1
- package/lib/utils/vue/vnode.d.ts +4 -4
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/web-types.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BORDER_HORIZONTAL_WIDTH } from "../../../constants/form.mjs";
|
|
2
2
|
import { isArray } from "../../../utils/types.mjs";
|
|
3
|
-
import ClickOutside from "../../../directives/click-outside/index.mjs";
|
|
4
3
|
import { useCalcInputWidth } from "../../../hooks/use-calc-input-width/index.mjs";
|
|
5
4
|
import { useId } from "../../../hooks/use-id/index.mjs";
|
|
6
|
-
import { ElTooltip } from "../../tooltip/index.mjs";
|
|
7
5
|
import { ElIcon } from "../../icon/index.mjs";
|
|
6
|
+
import { ElTooltip } from "../../tooltip/index.mjs";
|
|
7
|
+
import ClickOutside from "../../../directives/click-outside/index.mjs";
|
|
8
8
|
import { ElTag } from "../../tag/index.mjs";
|
|
9
9
|
import { selectV2Emits, selectV2Props } from "./defaults.mjs";
|
|
10
10
|
import { selectV2InjectionKey } from "./token.mjs";
|
|
@@ -14,7 +14,7 @@ interface SkeletonItemProps {
|
|
|
14
14
|
* @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.
|
|
15
15
|
*/
|
|
16
16
|
declare const skeletonItemProps: {
|
|
17
|
-
readonly variant: EpPropFinalized<StringConstructor, "
|
|
17
|
+
readonly variant: EpPropFinalized<StringConstructor, "button" | "caption" | "h1" | "h3" | "p" | "text" | "image" | "circle" | "rect", unknown, "text", boolean>;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* @deprecated Removed after 3.0.0, Use `SkeletonItemProps` instead.
|
|
@@ -13,8 +13,8 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
declare const __VLS_base: vue.DefineComponent<SkeletonProps, {
|
|
14
14
|
/** @description loading state */uiLoading: vue.Ref<boolean, boolean>;
|
|
15
15
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
|
|
16
|
-
rows: number;
|
|
17
16
|
loading: boolean;
|
|
17
|
+
rows: number;
|
|
18
18
|
count: number;
|
|
19
19
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -27,13 +27,13 @@ declare const sliderProps: {
|
|
|
27
27
|
readonly showInput: BooleanConstructor;
|
|
28
28
|
readonly showInputControls: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
29
|
readonly size: {
|
|
30
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
30
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
31
31
|
readonly required: false;
|
|
32
32
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
33
33
|
__epPropKey: true;
|
|
34
34
|
};
|
|
35
35
|
readonly inputSize: {
|
|
36
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
36
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
37
37
|
readonly required: false;
|
|
38
38
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
39
|
__epPropKey: true;
|
|
@@ -16,13 +16,13 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
16
16
|
readonly showInput: BooleanConstructor;
|
|
17
17
|
readonly showInputControls: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
18
18
|
readonly size: {
|
|
19
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
19
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
20
20
|
readonly required: false;
|
|
21
21
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
22
|
__epPropKey: true;
|
|
23
23
|
};
|
|
24
24
|
readonly inputSize: {
|
|
25
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
25
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
26
26
|
readonly required: false;
|
|
27
27
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
28
28
|
__epPropKey: true;
|
|
@@ -93,13 +93,13 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
93
93
|
readonly showInput: BooleanConstructor;
|
|
94
94
|
readonly showInputControls: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
95
95
|
readonly size: {
|
|
96
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
96
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
97
97
|
readonly required: false;
|
|
98
98
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
99
99
|
__epPropKey: true;
|
|
100
100
|
};
|
|
101
101
|
readonly inputSize: {
|
|
102
|
-
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "
|
|
102
|
+
readonly type: vue.PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
103
103
|
readonly required: false;
|
|
104
104
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
105
|
__epPropKey: true;
|
|
@@ -159,10 +159,10 @@ declare const __VLS_export: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
159
159
|
"onUpdate:modelValue"?: ((value: Arrayable<number>) => any) | undefined;
|
|
160
160
|
onInput?: ((value: Arrayable<number>) => any) | undefined;
|
|
161
161
|
}>, {
|
|
162
|
-
readonly id: string;
|
|
163
|
-
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
164
162
|
readonly modelValue: EpPropMergeType<(new (...args: any[]) => number | number[]) | (() => Arrayable<number>) | (((new (...args: any[]) => number | number[]) | (() => Arrayable<number>)) | null)[], unknown, unknown>;
|
|
165
163
|
readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
164
|
+
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
165
|
+
readonly id: string;
|
|
166
166
|
readonly vertical: boolean;
|
|
167
167
|
readonly range: boolean;
|
|
168
168
|
readonly placement: EpPropMergeType<StringConstructor, Placement, unknown>;
|
|
@@ -24,7 +24,7 @@ declare const spaceProps: {
|
|
|
24
24
|
readonly fill: BooleanConstructor;
|
|
25
25
|
readonly fillRatio: EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
26
26
|
readonly size: {
|
|
27
|
-
readonly type: vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "
|
|
27
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "small" | "default" | "large", number | [number, number]>>;
|
|
28
28
|
readonly required: false;
|
|
29
29
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
30
|
__epPropKey: true;
|
|
@@ -50,7 +50,7 @@ declare const Space: vue.DefineComponent<ExtractPropTypes<{
|
|
|
50
50
|
readonly fill: BooleanConstructor;
|
|
51
51
|
readonly fillRatio: EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
52
52
|
readonly size: {
|
|
53
|
-
readonly type: vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "
|
|
53
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "small" | "default" | "large", number | [number, number]>>;
|
|
54
54
|
readonly required: false;
|
|
55
55
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
56
56
|
__epPropKey: true;
|
|
@@ -78,17 +78,17 @@ declare const Space: vue.DefineComponent<ExtractPropTypes<{
|
|
|
78
78
|
readonly fill: BooleanConstructor;
|
|
79
79
|
readonly fillRatio: EpPropFinalized<NumberConstructor, unknown, unknown, 100, boolean>;
|
|
80
80
|
readonly size: {
|
|
81
|
-
readonly type: vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "
|
|
81
|
+
readonly type: vue.PropType<EpPropMergeType<readonly [StringConstructor, ArrayConstructor, NumberConstructor], "" | "small" | "default" | "large", number | [number, number]>>;
|
|
82
82
|
readonly required: false;
|
|
83
83
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
84
84
|
__epPropKey: true;
|
|
85
85
|
};
|
|
86
86
|
}>> & Readonly<{}>, {
|
|
87
87
|
readonly fill: boolean;
|
|
88
|
+
readonly class: EpPropMergeType<(new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>) | (((new (...args: any[]) => string | Record<string, boolean> | (string | Record<string, boolean>)[]) | (() => Arrayable<string | Record<string, boolean>>)) | null)[], unknown, unknown>;
|
|
88
89
|
readonly style: StyleValue;
|
|
89
|
-
readonly wrap: boolean;
|
|
90
90
|
readonly direction: EpPropMergeType<StringConstructor, "horizontal" | "vertical", unknown>;
|
|
91
|
-
readonly
|
|
91
|
+
readonly wrap: boolean;
|
|
92
92
|
readonly alignment: EpPropMergeType<(new (...args: any[]) => string) | (() => csstype.Property.AlignItems | undefined) | (((new (...args: any[]) => string) | (() => csstype.Property.AlignItems | undefined)) | null)[], unknown, unknown>;
|
|
93
93
|
readonly spacer: EpPropMergeType<(new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild) | (((new (...args: any[]) => VNodeChild & {}) | (() => VNodeChild)) | null)[], unknown, string | number | VNode<vue.RendererNode, vue.RendererElement, {
|
|
94
94
|
[key: string]: any;
|
|
@@ -18,10 +18,10 @@ declare const __VLS_base: vue.DefineComponent<StatisticProps, {
|
|
|
18
18
|
displayValue: vue.ComputedRef<string | number | dayjs$1.Dayjs>;
|
|
19
19
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<StatisticProps> & Readonly<{}>, {
|
|
20
20
|
value: number | dayjs$1.Dayjs;
|
|
21
|
-
|
|
21
|
+
valueStyle: string | false | vue.CSSProperties | vue.StyleValue[] | null;
|
|
22
22
|
decimalSeparator: string;
|
|
23
23
|
groupSeparator: string;
|
|
24
|
-
|
|
24
|
+
precision: number;
|
|
25
25
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -38,7 +38,7 @@ declare const stepProps: {
|
|
|
38
38
|
__epPropKey: true;
|
|
39
39
|
};
|
|
40
40
|
readonly description: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
41
|
-
readonly status: EpPropFinalized<StringConstructor, "" | "
|
|
41
|
+
readonly status: EpPropFinalized<StringConstructor, "" | "finish" | "success" | "error" | "wait" | "process", unknown, "", boolean>;
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* @deprecated Removed after 3.0.0, Use `StepProps` instead.
|
|
@@ -16,8 +16,8 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: vue.DefineComponent<StepProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<StepProps> & Readonly<{}>, {
|
|
18
18
|
title: string;
|
|
19
|
-
description: string;
|
|
20
19
|
icon: IconPropType;
|
|
20
|
+
description: string;
|
|
21
21
|
status: "" | "wait" | "process" | "finish" | "error" | "success";
|
|
22
22
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -60,8 +60,8 @@ declare const stepsProps: {
|
|
|
60
60
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
61
|
__epPropKey: true;
|
|
62
62
|
};
|
|
63
|
-
readonly finishStatus: EpPropFinalized<StringConstructor, "
|
|
64
|
-
readonly processStatus: EpPropFinalized<StringConstructor, "
|
|
63
|
+
readonly finishStatus: EpPropFinalized<StringConstructor, "finish" | "success" | "error" | "wait" | "process", unknown, "finish", boolean>;
|
|
64
|
+
readonly processStatus: EpPropFinalized<StringConstructor, "finish" | "success" | "error" | "wait" | "process", unknown, "process", boolean>;
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
67
|
* @deprecated Removed after 3.0.0, Use `StepsProps` instead.
|
|
@@ -12,9 +12,9 @@ declare const __VLS_base: vue.DefineComponent<StepsProps, {}, {}, {}, {}, vue.Co
|
|
|
12
12
|
}, string, vue.PublicProps, Readonly<StepsProps> & Readonly<{
|
|
13
13
|
onChange?: ((newVal: number, oldVal: number) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
+
direction: "horizontal" | "vertical";
|
|
15
16
|
space: number | string;
|
|
16
17
|
active: number;
|
|
17
|
-
direction: "horizontal" | "vertical";
|
|
18
18
|
finishStatus: StepsStatus;
|
|
19
19
|
processStatus: StepsStatus;
|
|
20
20
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -98,7 +98,7 @@ declare const switchProps: {
|
|
|
98
98
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
99
99
|
readonly loading: BooleanConstructor;
|
|
100
100
|
readonly size: {
|
|
101
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "
|
|
101
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "small" | "default" | "large") | (() => "" | "small" | "default" | "large") | (((new (...args: any[]) => "" | "small" | "default" | "large") | (() => "" | "small" | "default" | "large")) | null)[], unknown, "" | "small" | "default" | "large">>;
|
|
102
102
|
readonly required: false;
|
|
103
103
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
104
|
__epPropKey: true;
|
|
@@ -34,10 +34,10 @@ declare const __VLS_base: vue.DefineComponent<SwitchProps, {
|
|
|
34
34
|
"onUpdate:modelValue"?: ((val: string | number | boolean) => any) | undefined;
|
|
35
35
|
onInput?: ((val: string | number | boolean) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
|
|
37
|
+
name: string;
|
|
38
38
|
modelValue: boolean | string | number;
|
|
39
39
|
validateEvent: boolean;
|
|
40
|
-
|
|
40
|
+
disabled: boolean;
|
|
41
41
|
width: string | number;
|
|
42
42
|
activeText: string;
|
|
43
43
|
inactiveText: string;
|
|
@@ -4,9 +4,9 @@ import { debugWarn, throwError } from "../../../utils/error.mjs";
|
|
|
4
4
|
import { addUnit } from "../../../utils/dom/style.mjs";
|
|
5
5
|
import { NOOP } from "../../../utils/functions.mjs";
|
|
6
6
|
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
|
|
7
|
+
import { ElIcon } from "../../icon/index.mjs";
|
|
7
8
|
import { useFormDisabled, useFormSize } from "../../form/src/hooks/use-form-common-props.mjs";
|
|
8
9
|
import { useFormItem, useFormItemInputId } from "../../form/src/hooks/use-form-item.mjs";
|
|
9
|
-
import { ElIcon } from "../../icon/index.mjs";
|
|
10
10
|
import { switchEmits, switchProps } from "./switch.mjs";
|
|
11
11
|
import { Loading } from "@element-plus/icons-vue";
|
|
12
12
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx, withKeys, withModifiers } from "vue";
|
|
@@ -3,9 +3,9 @@ import { getEventCode } from "../../../utils/dom/event.mjs";
|
|
|
3
3
|
import { isPropAbsent } from "../../../utils/types.mjs";
|
|
4
4
|
import { useLocale } from "../../../hooks/use-locale/index.mjs";
|
|
5
5
|
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
|
|
6
|
+
import { ElIcon } from "../../icon/index.mjs";
|
|
6
7
|
import { useTooltipContentProps } from "../../tooltip/src/content.mjs";
|
|
7
8
|
import { ElTooltip } from "../../tooltip/index.mjs";
|
|
8
|
-
import { ElIcon } from "../../icon/index.mjs";
|
|
9
9
|
import { ElScrollbar } from "../../scrollbar/index.mjs";
|
|
10
10
|
import { ElCheckbox, ElCheckboxGroup } from "../../checkbox/index.mjs";
|
|
11
11
|
import { ArrowDown, ArrowUp } from "@element-plus/icons-vue";
|
|
@@ -7,7 +7,7 @@ import useStyles from "./styles-helper.mjs";
|
|
|
7
7
|
import tr_wrapper_default from "./tr-wrapper.mjs";
|
|
8
8
|
import td_wrapper_default from "./td-wrapper.mjs";
|
|
9
9
|
import { merge } from "lodash-unified";
|
|
10
|
-
import { computed, h, inject } from "vue";
|
|
10
|
+
import { computed, defineComponent, h, inject } from "vue";
|
|
11
11
|
|
|
12
12
|
//#region ../../packages/components/table/src/table-body/render-helper.ts
|
|
13
13
|
function useRender(props) {
|
|
@@ -31,8 +31,17 @@ function useRender(props) {
|
|
|
31
31
|
const minHeight = context.getMinRowHeight($index);
|
|
32
32
|
return minHeight ? `${minHeight}px` : void 0;
|
|
33
33
|
};
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const columnSnapshots = /* @__PURE__ */ new WeakMap();
|
|
35
|
+
const getColumnSnapshot = (column) => {
|
|
36
|
+
let snapshot = columnSnapshots.get(column);
|
|
37
|
+
if (!snapshot) {
|
|
38
|
+
snapshot = computed(() => Object.assign({}, column));
|
|
39
|
+
columnSnapshots.set(column, snapshot);
|
|
40
|
+
}
|
|
41
|
+
return snapshot.value;
|
|
42
|
+
};
|
|
43
|
+
const measureRow = () => !!(props.context?.useVirtual && parent?.props.estimatedRowHeight);
|
|
44
|
+
const rowRender = (row, $index, treeRowData, expanded = false, rowStart = 0, rowEnd = Infinity) => {
|
|
36
45
|
const { tooltipEffect, tooltipOptions, store } = props;
|
|
37
46
|
const { indent, columns } = store.states;
|
|
38
47
|
const rowClasses = [];
|
|
@@ -43,13 +52,13 @@ function useRender(props) {
|
|
|
43
52
|
}
|
|
44
53
|
if ($index === 0) displayIndex = -1;
|
|
45
54
|
if (props.stripe && display) displayIndex++;
|
|
46
|
-
rowClasses.push(...getRowClass(row, $index, displayIndex));
|
|
55
|
+
rowClasses.push(...getRowClass(row, $index, props.context?.useVirtual ? $index : displayIndex));
|
|
47
56
|
const displayStyle = display ? null : { display: "none" };
|
|
48
57
|
const cellRender = (cellIndex, rowspan, colspan, clone) => {
|
|
49
58
|
const cellRow = clone ? clone.row : row;
|
|
50
59
|
const cellRowIndex = clone ? clone.rowIndex : $index;
|
|
51
60
|
const column = columns.value[cellIndex];
|
|
52
|
-
const columnData = Object.assign({}, column);
|
|
61
|
+
const columnData = Object.assign({}, getColumnSnapshot(column));
|
|
53
62
|
columnData.realWidth = getColspanRealWidth(columns.value, colspan, clone ? clone.slotIndex : cellIndex);
|
|
54
63
|
const data = {
|
|
55
64
|
store,
|
|
@@ -74,20 +83,21 @@ function useRender(props) {
|
|
|
74
83
|
}
|
|
75
84
|
const baseKey = `${getKeyOfRow(cellRow, cellRowIndex)},${cellIndex}`;
|
|
76
85
|
const patchKey = columnData.columnKey || columnData.rawColumnKey || "";
|
|
77
|
-
const mergedTooltipOptions = column.showOverflowTooltip && merge({ effect: tooltipEffect }, tooltipOptions, column.showOverflowTooltip);
|
|
78
86
|
let cellClass = getCellClass(cellRowIndex, cellIndex, cellRow, column, colspan - 1);
|
|
79
87
|
if (props.context?.useVirtual && rowspan > 1) cellClass += " is-virtual-merged";
|
|
80
|
-
|
|
88
|
+
const cellProps = {
|
|
81
89
|
style: getCellStyle(cellRowIndex, cellIndex, cellRow, column),
|
|
82
90
|
class: cellClass,
|
|
83
91
|
key: `${patchKey}${baseKey}`,
|
|
84
92
|
rowspan,
|
|
85
93
|
colspan,
|
|
86
|
-
onMouseenter: ($event) => handleCellMouseEnter($event, cellRow,
|
|
94
|
+
onMouseenter: ($event) => handleCellMouseEnter($event, cellRow, column.showOverflowTooltip && merge({ effect: tooltipEffect }, tooltipOptions, column.showOverflowTooltip)),
|
|
87
95
|
onMouseleave: handleCellMouseLeave
|
|
88
|
-
}
|
|
96
|
+
};
|
|
97
|
+
if (props.context?.useVirtual) return h("td", cellProps, cellChildren(cellIndex, column, data));
|
|
98
|
+
return h(td_wrapper_default, cellProps, { default: () => cellChildren(cellIndex, column, data) });
|
|
89
99
|
};
|
|
90
|
-
const cells = props.context?.useVirtual && (props.context.useVirtualColumn.value || isFunction(parent?.props.spanMethod)) ? virtualCellsRender(row, $index, cellRender) : columns.value.map((column, cellIndex) => {
|
|
100
|
+
const cells = props.context?.useVirtual && (props.context.useVirtualColumn.value || isFunction(parent?.props.spanMethod)) ? virtualCellsRender(row, $index, cellRender, rowStart, rowEnd) : columns.value.map((column, cellIndex) => {
|
|
91
101
|
const { rowspan, colspan } = getSpan(row, column, $index, cellIndex);
|
|
92
102
|
if (!rowspan || !colspan) return null;
|
|
93
103
|
return cellRender(cellIndex, rowspan, colspan);
|
|
@@ -105,12 +115,13 @@ function useRender(props) {
|
|
|
105
115
|
onContextmenu: ($event) => handleContextMenu($event, row),
|
|
106
116
|
onMouseenter: () => handleMouseEnter($index),
|
|
107
117
|
onMouseleave: handleMouseLeave,
|
|
118
|
+
measure: measureRow(),
|
|
108
119
|
onTableRowResized: (el) => {
|
|
109
120
|
parent?.doMeasure(el, $index);
|
|
110
121
|
}
|
|
111
122
|
}, { default: () => cells });
|
|
112
123
|
};
|
|
113
|
-
const virtualCellsRender = (row, $index, cellRender) => {
|
|
124
|
+
const virtualCellsRender = (row, $index, cellRender, rowStart, rowEnd) => {
|
|
114
125
|
const { columns, fixedLeafColumnsLength, rightFixedLeafColumnsLength } = props.store.states;
|
|
115
126
|
const context = props.context;
|
|
116
127
|
const total = columns.value.length;
|
|
@@ -119,8 +130,6 @@ function useRender(props) {
|
|
|
119
130
|
const rightStart = useVirtualColumn ? total - rightFixedLeafColumnsLength.value : total;
|
|
120
131
|
const colStart = useVirtualColumn ? Math.min(Math.max(leftLen, context.colStart.value), rightStart) : 0;
|
|
121
132
|
const colEnd = useVirtualColumn ? Math.max(Math.min(rightStart - 1, context.colEnd.value), colStart - 1) : total - 1;
|
|
122
|
-
const rowStart = context.start.value;
|
|
123
|
-
const rowEnd = context.end.value;
|
|
124
133
|
const hasSpanMethod = isFunction(parent?.props.spanMethod);
|
|
125
134
|
const spanAt = (rowIndex, cellIndex) => {
|
|
126
135
|
const target = rowIndex === $index ? row : context.getVirtualRow(rowIndex);
|
|
@@ -212,6 +221,53 @@ function useRender(props) {
|
|
|
212
221
|
const cellChildren = (_cellIndex, column, data) => {
|
|
213
222
|
return column.renderCell(data);
|
|
214
223
|
};
|
|
224
|
+
const VirtualRow = defineComponent({
|
|
225
|
+
name: "ElTableVirtualRow",
|
|
226
|
+
props: {
|
|
227
|
+
row: {
|
|
228
|
+
type: Object,
|
|
229
|
+
required: true
|
|
230
|
+
},
|
|
231
|
+
index: {
|
|
232
|
+
type: Number,
|
|
233
|
+
required: true
|
|
234
|
+
},
|
|
235
|
+
treeRowData: Object,
|
|
236
|
+
expanded: Boolean,
|
|
237
|
+
rowStart: Number,
|
|
238
|
+
rowEnd: Number
|
|
239
|
+
},
|
|
240
|
+
setup(rowProps) {
|
|
241
|
+
return () => rowRender(rowProps.row, rowProps.index, rowProps.treeRowData, rowProps.expanded, rowProps.rowStart, rowProps.rowEnd);
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
const treeRowDataCache = /* @__PURE__ */ new WeakMap();
|
|
245
|
+
const getStableTreeRowData = (row, treeRowData) => {
|
|
246
|
+
const cached = treeRowDataCache.get(row);
|
|
247
|
+
if (cached) {
|
|
248
|
+
const keys = Object.keys(treeRowData);
|
|
249
|
+
if (keys.length === Object.keys(cached).length && keys.every((key) => cached[key] === treeRowData[key])) return cached;
|
|
250
|
+
}
|
|
251
|
+
treeRowDataCache.set(row, treeRowData);
|
|
252
|
+
return treeRowData;
|
|
253
|
+
};
|
|
254
|
+
const renderRow = (row, $index, treeRowData, expanded = false) => {
|
|
255
|
+
const context = props.context;
|
|
256
|
+
if (!context?.useVirtual) return rowRender(row, $index, treeRowData, expanded);
|
|
257
|
+
const start = context.start.value;
|
|
258
|
+
const end = context.end.value;
|
|
259
|
+
if ($index < start || $index >= end) return "";
|
|
260
|
+
const hasSpanMethod = isFunction(parent?.props.spanMethod);
|
|
261
|
+
return h(VirtualRow, {
|
|
262
|
+
key: getKeyOfRow(row, $index),
|
|
263
|
+
row,
|
|
264
|
+
index: $index,
|
|
265
|
+
treeRowData: treeRowData && getStableTreeRowData(row, treeRowData),
|
|
266
|
+
expanded,
|
|
267
|
+
rowStart: hasSpanMethod ? start : 0,
|
|
268
|
+
rowEnd: hasSpanMethod ? end : Infinity
|
|
269
|
+
});
|
|
270
|
+
};
|
|
215
271
|
const wrappedRowRender = (row, $index) => {
|
|
216
272
|
const store = props.store;
|
|
217
273
|
const { isRowExpanded, assertRowKey } = store;
|
|
@@ -219,7 +275,7 @@ function useRender(props) {
|
|
|
219
275
|
const columns = store.states.columns.value;
|
|
220
276
|
if (columns.some(({ type }) => type === "expand")) {
|
|
221
277
|
const expanded = isRowExpanded(row);
|
|
222
|
-
const tr =
|
|
278
|
+
const tr = renderRow(row, $index, void 0, expanded);
|
|
223
279
|
const renderExpanded = parent?.renderExpanded;
|
|
224
280
|
if (!renderExpanded) {
|
|
225
281
|
console.error("[Element Error]renderExpanded is required.");
|
|
@@ -230,6 +286,7 @@ function useRender(props) {
|
|
|
230
286
|
if (tr) rows[0].push(h(tr_wrapper_default, {
|
|
231
287
|
key: `expanded-row__${tr.key}`,
|
|
232
288
|
style: { display: expanded ? "" : "none" },
|
|
289
|
+
measure: measureRow(),
|
|
233
290
|
onTableRowResized: (el) => {
|
|
234
291
|
parent?.doMeasure(el, `expanded-${$index}`);
|
|
235
292
|
},
|
|
@@ -265,7 +322,7 @@ function useRender(props) {
|
|
|
265
322
|
treeRowData.loading = cur.loading;
|
|
266
323
|
}
|
|
267
324
|
}
|
|
268
|
-
const tmp = [
|
|
325
|
+
const tmp = [renderRow(row, $index, treeRowData ?? void 0)];
|
|
269
326
|
if (cur) {
|
|
270
327
|
if (props.context?.useVirtual && !cur.expanded) return tmp;
|
|
271
328
|
let i = 0;
|
|
@@ -293,7 +350,7 @@ function useRender(props) {
|
|
|
293
350
|
}
|
|
294
351
|
}
|
|
295
352
|
i++;
|
|
296
|
-
tmp.push(
|
|
353
|
+
tmp.push(renderRow(node, $index + i, innerTreeRowData));
|
|
297
354
|
if (cur) {
|
|
298
355
|
if (!(props.context?.useVirtual && !cur.expanded)) traverse(lazyTreeNodeMap.value[childKey] || node[childrenColumnName.value], cur);
|
|
299
356
|
}
|
|
@@ -303,7 +360,7 @@ function useRender(props) {
|
|
|
303
360
|
traverse(lazyTreeNodeMap.value[key] || row[childrenColumnName.value], cur);
|
|
304
361
|
}
|
|
305
362
|
return tmp;
|
|
306
|
-
} else return
|
|
363
|
+
} else return renderRow(row, $index, void 0);
|
|
307
364
|
};
|
|
308
365
|
return {
|
|
309
366
|
wrappedRowRender,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region ../../packages/components/table/src/table-body/row-observer.ts
|
|
2
|
+
let observer = null;
|
|
3
|
+
const callbacks = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
const observeRow = (el, callback) => {
|
|
5
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
6
|
+
if (!observer) observer = new ResizeObserver((entries) => {
|
|
7
|
+
for (const entry of entries) callbacks.get(entry.target)?.(entry.target);
|
|
8
|
+
});
|
|
9
|
+
callbacks.set(el, callback);
|
|
10
|
+
observer.observe(el);
|
|
11
|
+
};
|
|
12
|
+
const unobserveRow = (el) => {
|
|
13
|
+
if (!callbacks.has(el)) return;
|
|
14
|
+
callbacks.delete(el);
|
|
15
|
+
observer?.unobserve(el);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { observeRow, unobserveRow };
|
package/es/components/table/src/table-body/tr-wrapper.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { observeRow, unobserveRow } from "./row-observer.mjs";
|
|
2
|
+
import { createElementBlock, defineComponent, getCurrentInstance, onBeforeUnmount, onMounted, openBlock, ref, renderSlot, watch } from "vue";
|
|
2
3
|
|
|
3
4
|
//#region ../../packages/components/table/src/table-body/tr-wrapper.vue?vue&type=script&setup=true&lang.ts
|
|
4
5
|
var tr_wrapper_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
@@ -12,30 +13,28 @@ var tr_wrapper_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
|
|
|
12
13
|
rowspan: {
|
|
13
14
|
type: Number,
|
|
14
15
|
default: 1
|
|
16
|
+
},
|
|
17
|
+
measure: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
15
20
|
}
|
|
16
21
|
},
|
|
17
22
|
emits: ["tableRowDestroyed", "tableRowResized"],
|
|
18
23
|
setup(__props, { emit: __emit }) {
|
|
24
|
+
const props = __props;
|
|
19
25
|
const emit = __emit;
|
|
20
26
|
const trRef = ref();
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
oldHeight.value = height;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
resizeObserver.observe(trRef.value);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
27
|
+
const syncObserve = () => {
|
|
28
|
+
const el = trRef.value;
|
|
29
|
+
if (!el) return;
|
|
30
|
+
if (props.measure) observeRow(el, (target) => emit("tableRowResized", target));
|
|
31
|
+
else unobserveRow(el);
|
|
32
|
+
};
|
|
33
|
+
onMounted(syncObserve);
|
|
34
|
+
watch(() => props.measure, syncObserve);
|
|
35
35
|
onBeforeUnmount(() => {
|
|
36
36
|
emit("tableRowDestroyed", getCurrentInstance());
|
|
37
|
-
|
|
38
|
-
resizeObserver = null;
|
|
37
|
+
if (trRef.value) unobserveRow(trRef.value);
|
|
39
38
|
});
|
|
40
39
|
return (_ctx, _cache) => {
|
|
41
40
|
return openBlock(), createElementBlock("tr", {
|