@element-plus/nightly 0.0.20220102 → 0.0.20220106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +7914 -7042
- package/dist/index.full.min.js +11 -11
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +11 -11
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +7889 -7034
- package/es/components/autocomplete/index.d.ts +26 -18
- package/es/components/autocomplete/src/index.vue.d.ts +13 -10
- package/es/components/autocomplete/src/index.vue_vue_type_script_lang.mjs +14 -18
- package/es/components/autocomplete/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.mjs +52 -49
- package/es/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.mjs.map +1 -1
- package/es/components/carousel/index.d.ts +4 -4
- package/es/components/carousel/src/main.vue.d.ts +4 -4
- package/es/components/cascader/index.d.ts +1118 -6532
- package/es/components/cascader/src/index.vue.d.ts +559 -3267
- package/es/components/cascader/src/index.vue_vue_type_script_lang.mjs +10 -10
- package/es/components/cascader/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.mjs +12 -12
- package/es/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue_vue_type_script_lang.mjs +3 -0
- package/es/components/cascader-panel/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.vue_vue_type_template_id_97c48f5c_lang.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +1 -1
- package/es/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.mjs +7 -13
- package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.mjs +2 -2
- package/es/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.mjs.map +1 -1
- package/es/components/collection/index.d.ts +2 -0
- package/es/components/collection/index.mjs +3 -0
- package/es/components/{popper/src → collection}/index.mjs.map +1 -1
- package/es/components/collection/src/collection-item.mjs +7 -0
- package/es/components/collection/src/collection-item.mjs.map +1 -0
- package/es/components/collection/src/collection-item.vue.d.ts +2 -0
- package/es/components/collection/src/collection-item.vue_vue_type_script_lang.mjs +9 -0
- package/es/components/collection/src/collection-item.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.mjs +8 -0
- package/es/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.mjs.map +1 -0
- package/es/components/collection/src/collection.d.ts +263 -0
- package/es/components/collection/src/collection.mjs +68 -0
- package/es/components/collection/src/collection.mjs.map +1 -0
- package/es/components/collection/src/collection.vue.d.ts +2 -0
- package/es/components/collection/src/collection.vue_vue_type_script_lang.mjs +8 -0
- package/es/components/collection/src/collection.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.mjs +8 -0
- package/es/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.mjs.map +1 -0
- package/es/components/collection/src/collection2.mjs +7 -0
- package/es/components/collection/src/collection2.mjs.map +1 -0
- package/es/components/collection/src/tokens.d.ts +12 -0
- package/es/components/collection/src/tokens.mjs +2 -0
- package/es/components/collection/src/tokens.mjs.map +1 -0
- package/es/components/color-picker/index.d.ts +0 -2
- package/es/components/color-picker/src/index.vue.d.ts +0 -2
- package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs +2 -4
- package/es/components/color-picker/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs +9 -10
- package/es/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.mjs.map +1 -1
- package/es/components/date-picker/index.d.ts +4 -4
- package/es/components/date-picker/src/date-picker.d.ts +2 -2
- package/es/components/descriptions/index.d.ts +4 -4
- package/es/components/descriptions/src/description-item.d.ts +2 -2
- package/es/components/dialog/index.d.ts +5 -5
- package/es/components/dialog/src/dialog.vue.d.ts +5 -5
- package/es/components/drawer/index.d.ts +5 -5
- package/es/components/drawer/src/drawer.vue.d.ts +5 -5
- package/es/components/dropdown/index.d.ts +767 -84
- package/es/components/dropdown/src/dropdown-item-impl.mjs +7 -0
- package/es/components/dropdown/src/dropdown-item-impl.mjs.map +1 -0
- package/es/components/dropdown/src/dropdown-item-impl.vue.d.ts +39 -0
- package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.mjs +53 -0
- package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.mjs +33 -0
- package/es/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.mjs.map +1 -0
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +17 -9
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.mjs +51 -21
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.mjs +30 -20
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +17 -6
- package/es/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.mjs +59 -23
- package/es/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.mjs +12 -9
- package/es/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.d.ts +295 -1
- package/es/components/dropdown/src/dropdown.mjs +84 -0
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +712 -73
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs +60 -153
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs +92 -52
- package/es/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.mjs.map +1 -1
- package/es/components/dropdown/src/tokens.d.ts +8 -0
- package/es/components/dropdown/src/tokens.mjs +4 -0
- package/es/components/dropdown/src/tokens.mjs.map +1 -0
- package/es/components/focus-trap/index.d.ts +5 -0
- package/es/components/focus-trap/index.mjs +6 -0
- package/es/components/focus-trap/index.mjs.map +1 -0
- package/es/components/focus-trap/src/focus-trap.mjs +7 -0
- package/es/components/focus-trap/src/focus-trap.mjs.map +1 -0
- package/es/components/focus-trap/src/focus-trap.vue.d.ts +21 -0
- package/es/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.mjs +137 -0
- package/es/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.mjs +8 -0
- package/es/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.mjs.map +1 -0
- package/es/components/focus-trap/src/tokens.d.ts +11 -0
- package/es/components/focus-trap/src/tokens.mjs +12 -0
- package/es/components/focus-trap/src/tokens.mjs.map +1 -0
- package/es/components/focus-trap/src/utils.d.ts +18 -0
- package/es/components/focus-trap/src/utils.mjs +92 -0
- package/es/components/focus-trap/src/utils.mjs.map +1 -0
- package/es/components/image/index.d.ts +2 -2
- package/es/components/image/src/image.vue.d.ts +2 -2
- package/es/components/index.mjs +7 -6
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +5 -5
- package/es/components/input/src/input.vue.d.ts +5 -5
- package/es/components/input-number/index.d.ts +12 -12
- package/es/components/input-number/src/input-number.vue.d.ts +12 -12
- package/es/components/menu/index.d.ts +9 -3
- package/es/components/menu/src/menu-item.vue.d.ts +4 -2
- package/es/components/menu/src/menu-item.vue_vue_type_script_lang.mjs +3 -3
- package/es/components/menu/src/menu-item.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/menu/src/menu.d.ts +1 -1
- package/es/components/menu/src/menu.mjs +2 -1
- package/es/components/menu/src/menu.mjs.map +1 -1
- package/es/components/menu/src/sub-menu.mjs +18 -21
- package/es/components/menu/src/sub-menu.mjs.map +1 -1
- package/es/components/menu/src/types.d.ts +2 -0
- package/es/components/message-box/src/index.vue.d.ts +2 -2
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/src/pagination.d.ts +2 -2
- package/es/components/popconfirm/index.d.ts +19 -12
- package/es/components/popconfirm/index.mjs +1 -1
- package/es/components/popconfirm/src/popconfirm.d.ts +3 -5
- package/es/components/popconfirm/src/popconfirm.mjs +11 -5
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue.d.ts +19 -13
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs +22 -20
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs +12 -13
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.mjs.map +1 -1
- package/es/components/popover/index.d.ts +1690 -420
- package/es/components/popover/src/directive.mjs +7 -13
- package/es/components/popover/src/directive.mjs.map +1 -1
- package/es/components/popover/src/index.mjs +2 -0
- package/es/components/popover/src/index.mjs.map +1 -1
- package/es/components/popover/src/index.vue.d.ts +846 -213
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs +41 -107
- package/es/components/popover/src/index.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs +31 -0
- package/es/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.mjs.map +1 -0
- package/es/components/popover/src/popover.d.ts +70 -0
- package/es/components/popover/src/popover.mjs +31 -0
- package/es/components/popover/src/popover.mjs.map +1 -0
- package/es/components/popper/index.d.ts +7 -3479
- package/es/components/popper/index.mjs +13 -14
- package/es/components/popper/index.mjs.map +1 -1
- package/es/components/popper/src/arrow.mjs +7 -0
- package/es/components/popper/src/arrow.mjs.map +1 -0
- package/es/components/popper/src/arrow.vue.d.ts +12 -0
- package/es/components/popper/src/arrow.vue_vue_type_script_lang.mjs +27 -0
- package/es/components/popper/src/arrow.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.mjs +13 -0
- package/es/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.mjs.map +1 -0
- package/es/components/popper/src/container.d.ts +3 -0
- package/es/components/popper/src/container.mjs +22 -0
- package/es/components/popper/src/container.mjs.map +1 -0
- package/es/components/popper/src/content.mjs +7 -0
- package/es/components/popper/src/content.mjs.map +1 -0
- package/es/components/popper/src/content.vue.d.ts +299 -0
- package/es/components/popper/src/content.vue_vue_type_script_lang.mjs +85 -0
- package/es/components/popper/src/content.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.mjs +16 -0
- package/es/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.mjs.map +1 -0
- package/es/components/popper/src/popper.d.ts +58 -0
- package/es/components/popper/src/popper.mjs +98 -0
- package/es/components/popper/src/popper.mjs.map +1 -0
- package/es/components/popper/src/popper.vue.d.ts +3 -0
- package/es/components/popper/src/popper.vue_vue_type_script_lang.mjs +19 -0
- package/es/components/popper/src/popper.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.mjs +8 -0
- package/es/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.mjs.map +1 -0
- package/es/components/popper/src/popper2.mjs +7 -0
- package/es/components/popper/src/popper2.mjs.map +1 -0
- package/es/components/popper/src/tokens.d.ts +14 -0
- package/es/components/popper/src/tokens.mjs +5 -0
- package/es/components/popper/src/tokens.mjs.map +1 -0
- package/es/components/popper/src/trigger.mjs +7 -0
- package/es/components/popper/src/trigger.mjs.map +1 -0
- package/es/components/popper/src/trigger.vue.d.ts +45 -0
- package/es/components/popper/src/trigger.vue_vue_type_script_lang.mjs +66 -0
- package/es/components/popper/src/trigger.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.mjs +16 -0
- package/es/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.mjs.map +1 -0
- package/es/components/popper/src/utils.d.ts +55 -0
- package/es/components/popper/src/utils.mjs +76 -0
- package/es/components/popper/src/utils.mjs.map +1 -0
- package/es/components/roving-focus-group/index.d.ts +7 -0
- package/es/components/roving-focus-group/index.mjs +9 -0
- package/es/components/roving-focus-group/index.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +7 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +43 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.mjs +102 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.mjs +8 -0
- package/es/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group.d.ts +269 -0
- package/es/components/roving-focus-group/src/roving-focus-group.mjs +32 -0
- package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -0
- package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.mjs +15 -0
- package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.mjs +20 -0
- package/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs +7 -0
- package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-item.mjs +7 -0
- package/es/components/roving-focus-group/src/roving-focus-item.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-item.vue.d.ts +29 -0
- package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.mjs +100 -0
- package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.mjs +18 -0
- package/es/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.mjs.map +1 -0
- package/es/components/roving-focus-group/src/tokens.d.ts +27 -0
- package/es/components/roving-focus-group/src/tokens.mjs +5 -0
- package/es/components/roving-focus-group/src/tokens.mjs.map +1 -0
- package/es/components/roving-focus-group/src/utils.d.ts +8 -0
- package/es/components/roving-focus-group/src/utils.mjs +48 -0
- package/es/components/roving-focus-group/src/utils.mjs.map +1 -0
- package/es/components/select/index.d.ts +680 -14
- package/es/components/select/src/select-dropdown.vue.d.ts +1 -1
- package/es/components/select/src/select-dropdown.vue_vue_type_script_lang.mjs +1 -0
- package/es/components/select/src/select-dropdown.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select/src/select-dropdown.vue_vue_type_template_id_46cf6eee_lang.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +681 -15
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs +25 -11
- package/es/components/select/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs +11 -12
- package/es/components/select/src/select.vue_vue_type_template_id_33774f85_lang.mjs.map +1 -1
- package/es/components/select/src/token.d.ts +1 -0
- package/es/components/select/src/token.mjs.map +1 -1
- package/es/components/select/src/useSelect.d.ts +671 -7
- package/es/components/select/src/useSelect.mjs +33 -23
- package/es/components/select/src/useSelect.mjs.map +1 -1
- package/es/components/select-v2/index.d.ts +1326 -16
- package/es/components/select-v2/src/select.vue.d.ts +665 -10
- package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/select-v2/src/select.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.mjs +8 -9
- package/es/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.mjs.map +1 -1
- package/es/components/select-v2/src/useSelect.d.ts +659 -4
- package/es/components/select-v2/src/useSelect.mjs +7 -7
- package/es/components/select-v2/src/useSelect.mjs.map +1 -1
- package/es/components/slider/src/button.vue_vue_type_script_lang.mjs +2 -2
- package/es/components/slider/src/button.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/slot/index.d.ts +5 -0
- package/es/components/slot/index.mjs +2 -0
- package/es/components/slot/index.mjs.map +1 -0
- package/es/components/slot/src/only-child.d.ts +5 -0
- package/es/components/slot/src/only-child.mjs +61 -0
- package/es/components/slot/src/only-child.mjs.map +1 -0
- package/es/components/table/index.d.ts +13 -4
- package/es/components/table/src/filter-panel.vue.d.ts +654 -4
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs +5 -7
- package/es/components/table/src/filter-panel.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs +8 -9
- package/es/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.d.ts +7 -0
- package/es/components/table/src/table/style-helper.mjs +20 -17
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.mjs +5 -3
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table-body/styles-helper.d.ts +0 -1
- package/es/components/table/src/table-body/styles-helper.mjs +10 -17
- package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/defaults.d.ts +1 -0
- package/es/components/table/src/table-column/defaults.mjs.map +1 -1
- package/es/components/table/src/table-column/index.d.ts +1 -1
- package/es/components/table/src/table-column/index.mjs +1 -0
- package/es/components/table/src/table-column/index.mjs.map +1 -1
- package/es/components/table/src/table-footer/index.d.ts +4 -2
- package/es/components/table/src/table-footer/index.mjs +33 -18
- package/es/components/table/src/table-footer/index.mjs.map +1 -1
- package/es/components/table/src/table-footer/style-helper.d.ts +4 -2
- package/es/components/table/src/table-footer/style-helper.mjs +28 -31
- package/es/components/table/src/table-footer/style-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/index.d.ts +3 -2
- package/es/components/table/src/table-header/index.mjs +89 -51
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/table/src/table-header/style.helper.d.ts +1 -1
- package/es/components/table/src/table-header/style.helper.mjs +14 -24
- package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
- package/es/components/table/src/table-header/utils-helper.mjs +1 -0
- package/es/components/table/src/table-header/utils-helper.mjs.map +1 -1
- package/es/components/table/src/table-layout.d.ts +1 -0
- package/es/components/table/src/table-layout.mjs +7 -1
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +11 -2
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs +12 -2
- package/es/components/table/src/table.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/table/src/table.vue_vue_type_template_id_4a1660ad_lang.mjs +62 -213
- package/es/components/table/src/table.vue_vue_type_template_id_4a1660ad_lang.mjs.map +1 -1
- package/es/components/table/src/util.d.ts +16 -2
- package/es/components/table/src/util.mjs +90 -1
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/teleport/index.d.ts +11 -8
- package/es/components/teleport/src/teleport.d.ts +4 -3
- package/es/components/teleport/src/teleport.mjs +5 -1
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport.vue.d.ts +11 -8
- package/es/components/teleport/src/teleport.vue_vue_type_script_lang.mjs +1 -2
- package/es/components/teleport/src/teleport.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.mjs +3 -2
- package/es/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.mjs.map +1 -1
- package/es/components/time-picker/index.d.ts +4 -4
- package/es/components/time-picker/src/common/picker.vue.d.ts +663 -9
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs +29 -17
- package/es/components/time-picker/src/common/picker.vue_vue_type_script_lang.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs +38 -38
- package/es/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.mjs.map +1 -1
- package/es/components/time-picker/src/time-picker.d.ts +2 -2
- package/es/components/time-select/index.d.ts +4 -4
- package/es/components/time-select/src/time-select.vue.d.ts +2 -2
- package/es/components/tooltip/index.d.ts +346 -430
- package/es/components/tooltip/index.mjs +6 -7
- package/es/components/tooltip/index.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +7 -0
- package/es/components/tooltip/src/content.mjs.map +1 -0
- package/es/components/tooltip/src/content.vue.d.ts +809 -0
- package/es/components/tooltip/src/content.vue_vue_type_script_lang.mjs +135 -0
- package/es/components/tooltip/src/content.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.mjs +65 -0
- package/es/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.mjs.map +1 -0
- package/es/components/tooltip/src/tokens.d.ts +14 -0
- package/es/components/tooltip/src/tokens.mjs +4 -0
- package/es/components/tooltip/src/tokens.mjs.map +1 -0
- package/es/components/tooltip/src/tooltip.d.ts +146 -0
- package/es/components/tooltip/src/tooltip.mjs +63 -0
- package/es/components/tooltip/src/tooltip.mjs.map +1 -0
- package/es/components/tooltip/src/tooltip.vue.d.ts +383 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs +104 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.mjs +67 -0
- package/es/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.mjs.map +1 -0
- package/es/components/tooltip/src/tooltip2.mjs +7 -0
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -0
- package/es/components/tooltip/src/trigger.mjs +7 -0
- package/es/components/tooltip/src/trigger.mjs.map +1 -0
- package/es/components/tooltip/src/trigger.vue.d.ts +39 -0
- package/es/components/tooltip/src/trigger.vue_vue_type_script_lang.mjs +60 -0
- package/es/components/tooltip/src/trigger.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.mjs +27 -0
- package/es/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.mjs.map +1 -0
- package/es/components/tooltip/src/utils.d.ts +4 -0
- package/es/components/tooltip/src/utils.mjs +18 -0
- package/es/components/tooltip/src/utils.mjs.map +1 -0
- package/es/components/tree/index.d.ts +4 -4
- package/es/components/tree/src/tree.vue.d.ts +2 -2
- package/es/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
- package/es/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/es/components/visual-hidden/index.d.ts +3 -0
- package/es/components/visual-hidden/index.mjs +4 -0
- package/es/components/{popper/src/renderers → visual-hidden}/index.mjs.map +0 -0
- package/es/components/visual-hidden/src/visual-hidden.mjs +7 -0
- package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -0
- package/es/components/visual-hidden/src/visual-hidden.vue.d.ts +12 -0
- package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.mjs +34 -0
- package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.mjs.map +1 -0
- package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.mjs +8 -0
- package/es/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.mjs.map +1 -0
- package/es/directives/click-outside/index.mjs.map +1 -1
- package/es/hooks/index.d.ts +8 -1
- package/es/hooks/index.mjs +8 -2
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-delayed-toggle/index.d.ts +13 -0
- package/es/hooks/use-delayed-toggle/index.mjs +39 -0
- package/es/hooks/use-delayed-toggle/index.mjs.map +1 -0
- package/es/hooks/use-escape-keydown/index.d.ts +1 -0
- package/es/hooks/use-escape-keydown/index.mjs +21 -0
- package/es/hooks/use-escape-keydown/index.mjs.map +1 -0
- package/es/hooks/use-focus/index.d.ts +3 -1
- package/es/hooks/use-focus/index.mjs.map +1 -1
- package/es/hooks/use-forward-ref/index.d.ts +13 -0
- package/es/hooks/use-forward-ref/index.mjs +27 -0
- package/es/hooks/use-forward-ref/index.mjs.map +1 -0
- package/es/hooks/use-id/index.d.ts +8 -0
- package/es/hooks/use-id/index.mjs +24 -0
- package/es/hooks/use-id/index.mjs.map +1 -0
- package/es/hooks/use-intermediate-render/index.d.ts +11 -0
- package/es/hooks/use-intermediate-render/index.mjs +43 -0
- package/es/hooks/use-intermediate-render/index.mjs.map +1 -0
- package/es/hooks/use-model-toggle/index.d.ts +18 -9
- package/es/hooks/use-model-toggle/index.mjs +103 -93
- package/es/hooks/use-model-toggle/index.mjs.map +1 -1
- package/es/hooks/use-popper-container/index.d.ts +3 -0
- package/es/hooks/use-popper-container/index.mjs +22 -0
- package/es/hooks/use-popper-container/index.mjs.map +1 -0
- package/es/hooks/use-restore-active/index.mjs +1 -1
- package/es/hooks/use-restore-active/index.mjs.map +1 -1
- package/es/index.mjs +15 -8
- package/es/index.mjs.map +1 -1
- package/es/utils/aria.d.ts +4 -0
- package/es/utils/aria.mjs +5 -1
- package/es/utils/aria.mjs.map +1 -1
- package/es/utils/dom.d.ts +9 -1
- package/es/utils/dom.mjs +27 -1
- package/es/utils/dom.mjs.map +1 -1
- package/es/utils/props.d.ts +2 -2
- package/es/utils/props.mjs +1 -1
- package/es/utils/props.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +26 -18
- package/lib/components/autocomplete/src/index.vue.d.ts +13 -10
- package/lib/components/autocomplete/src/index.vue_vue_type_script_lang.js +13 -17
- package/lib/components/autocomplete/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.js +51 -48
- package/lib/components/autocomplete/src/index.vue_vue_type_template_id_2f09f285_lang.js.map +1 -1
- package/lib/components/carousel/index.d.ts +4 -4
- package/lib/components/carousel/src/main.vue.d.ts +4 -4
- package/lib/components/cascader/index.d.ts +1118 -6532
- package/lib/components/cascader/src/index.vue.d.ts +559 -3267
- package/lib/components/cascader/src/index.vue_vue_type_script_lang.js +10 -10
- package/lib/components/cascader/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.js +12 -12
- package/lib/components/cascader/src/index.vue_vue_type_template_id_0429c2db_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_lang.js +3 -0
- package/lib/components/cascader-panel/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/cascader-panel/src/index.vue_vue_type_template_id_97c48f5c_lang.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/checkbox/src/checkbox.vue.d.ts +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.js +7 -13
- package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.js +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue_vue_type_template_id_f68ae30a_lang.js.map +1 -1
- package/lib/components/collection/index.d.ts +2 -0
- package/lib/components/collection/index.js +12 -0
- package/lib/components/{popper/src → collection}/index.js.map +0 -0
- package/lib/components/collection/src/collection-item.js +12 -0
- package/lib/components/collection/src/collection-item.js.map +1 -0
- package/lib/components/collection/src/collection-item.vue.d.ts +2 -0
- package/lib/components/collection/src/collection-item.vue_vue_type_script_lang.js +13 -0
- package/lib/components/collection/src/collection-item.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.js +12 -0
- package/lib/components/collection/src/collection-item.vue_vue_type_template_id_dd23be6a_lang.js.map +1 -0
- package/lib/components/collection/src/collection.d.ts +263 -0
- package/lib/components/collection/src/collection.js +73 -0
- package/lib/components/collection/src/collection.js.map +1 -0
- package/lib/components/collection/src/collection.vue.d.ts +2 -0
- package/lib/components/collection/src/collection.vue_vue_type_script_lang.js +12 -0
- package/lib/components/collection/src/collection.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.js +12 -0
- package/lib/components/collection/src/collection.vue_vue_type_template_id_5f9c2545_lang.js.map +1 -0
- package/lib/components/collection/src/collection2.js +12 -0
- package/lib/components/collection/src/collection2.js.map +1 -0
- package/lib/components/collection/src/tokens.d.ts +12 -0
- package/lib/components/collection/src/tokens.js +3 -0
- package/lib/components/collection/src/tokens.js.map +1 -0
- package/lib/components/color-picker/index.d.ts +0 -2
- package/lib/components/color-picker/src/index.vue.d.ts +0 -2
- package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js +2 -4
- package/lib/components/color-picker/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js +9 -10
- package/lib/components/color-picker/src/index.vue_vue_type_template_id_46a474d5_lang.js.map +1 -1
- package/lib/components/date-picker/index.d.ts +4 -4
- package/lib/components/date-picker/src/date-picker.d.ts +2 -2
- package/lib/components/descriptions/index.d.ts +4 -4
- package/lib/components/descriptions/src/description-item.d.ts +2 -2
- package/lib/components/dialog/index.d.ts +5 -5
- package/lib/components/dialog/src/dialog.vue.d.ts +5 -5
- package/lib/components/drawer/index.d.ts +5 -5
- package/lib/components/drawer/src/drawer.vue.d.ts +5 -5
- package/lib/components/dropdown/index.d.ts +767 -84
- package/lib/components/dropdown/src/dropdown-item-impl.js +12 -0
- package/lib/components/dropdown/src/dropdown-item-impl.js.map +1 -0
- package/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts +39 -0
- package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js +57 -0
- package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.js +37 -0
- package/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_template_id_6daab4f2_lang.js.map +1 -0
- package/lib/components/dropdown/src/dropdown-item.vue.d.ts +17 -9
- package/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js +50 -20
- package/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.js +29 -19
- package/lib/components/dropdown/src/dropdown-item.vue_vue_type_template_id_396ed16b_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-menu.vue.d.ts +17 -6
- package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js +57 -21
- package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.js +11 -8
- package/lib/components/dropdown/src/dropdown-menu.vue_vue_type_template_id_617b3492_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.d.ts +295 -1
- package/lib/components/dropdown/src/dropdown.js +96 -0
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +712 -73
- package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js +59 -152
- package/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js +91 -51
- package/lib/components/dropdown/src/dropdown.vue_vue_type_template_id_3ed790a5_lang.js.map +1 -1
- package/lib/components/dropdown/src/tokens.d.ts +8 -0
- package/lib/components/dropdown/src/tokens.js +8 -0
- package/lib/components/dropdown/src/tokens.js.map +1 -0
- package/lib/components/focus-trap/index.d.ts +5 -0
- package/lib/components/focus-trap/index.js +27 -0
- package/lib/components/focus-trap/index.js.map +1 -0
- package/lib/components/focus-trap/src/focus-trap.js +12 -0
- package/lib/components/focus-trap/src/focus-trap.js.map +1 -0
- package/lib/components/focus-trap/src/focus-trap.vue.d.ts +21 -0
- package/lib/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.js +141 -0
- package/lib/components/focus-trap/src/focus-trap.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.js +12 -0
- package/lib/components/focus-trap/src/focus-trap.vue_vue_type_template_id_4a8a10c5_lang.js.map +1 -0
- package/lib/components/focus-trap/src/tokens.d.ts +11 -0
- package/lib/components/focus-trap/src/tokens.js +21 -0
- package/lib/components/focus-trap/src/tokens.js.map +1 -0
- package/lib/components/focus-trap/src/utils.d.ts +18 -0
- package/lib/components/focus-trap/src/utils.js +102 -0
- package/lib/components/focus-trap/src/utils.js.map +1 -0
- package/lib/components/image/index.d.ts +2 -2
- package/lib/components/image/src/image.vue.d.ts +2 -2
- package/lib/components/index.js +92 -84
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +5 -5
- package/lib/components/input/src/input.vue.d.ts +5 -5
- package/lib/components/input-number/index.d.ts +12 -12
- package/lib/components/input-number/src/input-number.vue.d.ts +12 -12
- package/lib/components/menu/index.d.ts +9 -3
- package/lib/components/menu/src/menu-item.vue.d.ts +4 -2
- package/lib/components/menu/src/menu-item.vue_vue_type_script_lang.js +3 -3
- package/lib/components/menu/src/menu-item.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/menu/src/menu.d.ts +1 -1
- package/lib/components/menu/src/menu.js +2 -1
- package/lib/components/menu/src/menu.js.map +1 -1
- package/lib/components/menu/src/sub-menu.js +18 -21
- package/lib/components/menu/src/sub-menu.js.map +1 -1
- package/lib/components/menu/src/types.d.ts +2 -0
- package/lib/components/message-box/src/index.vue.d.ts +2 -2
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/src/pagination.d.ts +2 -2
- package/lib/components/popconfirm/index.d.ts +19 -12
- package/lib/components/popconfirm/index.js +0 -1
- package/lib/components/popconfirm/index.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.d.ts +3 -5
- package/lib/components/popconfirm/src/popconfirm.js +10 -5
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue.d.ts +19 -13
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js +20 -18
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js +11 -12
- package/lib/components/popconfirm/src/popconfirm.vue_vue_type_template_id_16409d25_lang.js.map +1 -1
- package/lib/components/popover/index.d.ts +1690 -420
- package/lib/components/popover/src/directive.js +7 -13
- package/lib/components/popover/src/directive.js.map +1 -1
- package/lib/components/popover/src/index.js +2 -0
- package/lib/components/popover/src/index.js.map +1 -1
- package/lib/components/popover/src/index.vue.d.ts +846 -213
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js +40 -106
- package/lib/components/popover/src/index.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js +35 -0
- package/lib/components/popover/src/index.vue_vue_type_template_id_15486cf0_lang.js.map +1 -0
- package/lib/components/popover/src/popover.d.ts +70 -0
- package/lib/components/popover/src/popover.js +35 -0
- package/lib/components/popover/src/popover.js.map +1 -0
- package/lib/components/popper/index.d.ts +7 -3479
- package/lib/components/popper/index.js +24 -20
- package/lib/components/popper/index.js.map +1 -1
- package/lib/components/popper/src/arrow.js +12 -0
- package/lib/components/popper/src/arrow.js.map +1 -0
- package/lib/components/popper/src/arrow.vue.d.ts +12 -0
- package/lib/components/popper/src/arrow.vue_vue_type_script_lang.js +31 -0
- package/lib/components/popper/src/arrow.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.js +17 -0
- package/lib/components/popper/src/arrow.vue_vue_type_template_id_8ab40b80_lang.js.map +1 -0
- package/lib/components/popper/src/container.d.ts +3 -0
- package/lib/components/popper/src/container.js +28 -0
- package/lib/components/popper/src/container.js.map +1 -0
- package/lib/components/popper/src/content.js +12 -0
- package/lib/components/popper/src/content.js.map +1 -0
- package/lib/components/popper/src/content.vue.d.ts +299 -0
- package/lib/components/popper/src/content.vue_vue_type_script_lang.js +89 -0
- package/lib/components/popper/src/content.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.js +20 -0
- package/lib/components/popper/src/content.vue_vue_type_template_id_611b76f0_lang.js.map +1 -0
- package/lib/components/popper/src/popper.d.ts +58 -0
- package/lib/components/popper/src/popper.js +107 -0
- package/lib/components/popper/src/popper.js.map +1 -0
- package/lib/components/popper/src/popper.vue.d.ts +3 -0
- package/lib/components/popper/src/popper.vue_vue_type_script_lang.js +23 -0
- package/lib/components/popper/src/popper.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.js +12 -0
- package/lib/components/popper/src/popper.vue_vue_type_template_id_77a3d185_lang.js.map +1 -0
- package/lib/components/popper/src/popper2.js +12 -0
- package/lib/components/popper/src/popper2.js.map +1 -0
- package/lib/components/popper/src/tokens.d.ts +14 -0
- package/lib/components/popper/src/tokens.js +10 -0
- package/lib/components/popper/src/tokens.js.map +1 -0
- package/lib/components/popper/src/trigger.js +12 -0
- package/lib/components/popper/src/trigger.js.map +1 -0
- package/lib/components/popper/src/trigger.vue.d.ts +45 -0
- package/lib/components/popper/src/trigger.vue_vue_type_script_lang.js +70 -0
- package/lib/components/popper/src/trigger.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.js +20 -0
- package/lib/components/popper/src/trigger.vue_vue_type_template_id_4fb6e0af_lang.js.map +1 -0
- package/lib/components/popper/src/utils.d.ts +55 -0
- package/lib/components/popper/src/utils.js +81 -0
- package/lib/components/popper/src/utils.js.map +1 -0
- package/lib/components/roving-focus-group/index.d.ts +7 -0
- package/lib/components/roving-focus-group/index.js +25 -0
- package/lib/components/roving-focus-group/index.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +12 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue.d.ts +43 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.js +106 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.js +12 -0
- package/lib/components/roving-focus-group/src/roving-focus-group-impl.vue_vue_type_template_id_e5cee750_lang.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.d.ts +269 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.js +40 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.vue.d.ts +2 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.js +19 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.js +24 -0
- package/lib/components/roving-focus-group/src/roving-focus-group.vue_vue_type_template_id_91b51b76_lang.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-group2.js +12 -0
- package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.js +12 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.vue.d.ts +29 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.js +104 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.js +22 -0
- package/lib/components/roving-focus-group/src/roving-focus-item.vue_vue_type_template_id_5f657dbd_lang.js.map +1 -0
- package/lib/components/roving-focus-group/src/tokens.d.ts +27 -0
- package/lib/components/roving-focus-group/src/tokens.js +10 -0
- package/lib/components/roving-focus-group/src/tokens.js.map +1 -0
- package/lib/components/roving-focus-group/src/utils.d.ts +8 -0
- package/lib/components/roving-focus-group/src/utils.js +54 -0
- package/lib/components/roving-focus-group/src/utils.js.map +1 -0
- package/lib/components/select/index.d.ts +680 -14
- package/lib/components/select/src/select-dropdown.vue.d.ts +1 -1
- package/lib/components/select/src/select-dropdown.vue_vue_type_script_lang.js +1 -0
- package/lib/components/select/src/select-dropdown.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/select-dropdown.vue_vue_type_template_id_46cf6eee_lang.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +681 -15
- package/lib/components/select/src/select.vue_vue_type_script_lang.js +24 -10
- package/lib/components/select/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js +11 -12
- package/lib/components/select/src/select.vue_vue_type_template_id_33774f85_lang.js.map +1 -1
- package/lib/components/select/src/token.d.ts +1 -0
- package/lib/components/select/src/token.js.map +1 -1
- package/lib/components/select/src/useSelect.d.ts +671 -7
- package/lib/components/select/src/useSelect.js +33 -23
- package/lib/components/select/src/useSelect.js.map +1 -1
- package/lib/components/select-v2/index.d.ts +1326 -16
- package/lib/components/select-v2/src/select.vue.d.ts +665 -10
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js +2 -2
- package/lib/components/select-v2/src/select.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.js +8 -9
- package/lib/components/select-v2/src/select.vue_vue_type_template_id_13e598a4_lang.js.map +1 -1
- package/lib/components/select-v2/src/useSelect.d.ts +659 -4
- package/lib/components/select-v2/src/useSelect.js +11 -11
- package/lib/components/select-v2/src/useSelect.js.map +1 -1
- package/lib/components/slider/src/button.vue_vue_type_script_lang.js +1 -1
- package/lib/components/slider/src/button.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/slot/index.d.ts +5 -0
- package/lib/components/slot/index.js +10 -0
- package/lib/components/{popper/src/renderers → slot}/index.js.map +1 -1
- package/lib/components/slot/src/only-child.d.ts +5 -0
- package/lib/components/slot/src/only-child.js +65 -0
- package/lib/components/slot/src/only-child.js.map +1 -0
- package/lib/components/table/index.d.ts +13 -4
- package/lib/components/table/src/filter-panel.vue.d.ts +654 -4
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js +5 -7
- package/lib/components/table/src/filter-panel.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js +8 -9
- package/lib/components/table/src/filter-panel.vue_vue_type_template_id_fde1c940_lang.js.map +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +7 -0
- package/lib/components/table/src/table/style-helper.js +20 -21
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.js +5 -3
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table-body/styles-helper.d.ts +0 -1
- package/lib/components/table/src/table-body/styles-helper.js +10 -17
- package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
- package/lib/components/table/src/table-column/defaults.d.ts +1 -0
- package/lib/components/table/src/table-column/defaults.js.map +1 -1
- package/lib/components/table/src/table-column/index.d.ts +1 -1
- package/lib/components/table/src/table-column/index.js +1 -0
- package/lib/components/table/src/table-column/index.js.map +1 -1
- package/lib/components/table/src/table-footer/index.d.ts +4 -2
- package/lib/components/table/src/table-footer/index.js +32 -17
- package/lib/components/table/src/table-footer/index.js.map +1 -1
- package/lib/components/table/src/table-footer/style-helper.d.ts +4 -2
- package/lib/components/table/src/table-footer/style-helper.js +28 -31
- package/lib/components/table/src/table-footer/style-helper.js.map +1 -1
- package/lib/components/table/src/table-header/index.d.ts +3 -2
- package/lib/components/table/src/table-header/index.js +89 -51
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/table/src/table-header/style.helper.d.ts +1 -1
- package/lib/components/table/src/table-header/style.helper.js +14 -24
- package/lib/components/table/src/table-header/style.helper.js.map +1 -1
- package/lib/components/table/src/table-header/utils-helper.js +1 -0
- package/lib/components/table/src/table-header/utils-helper.js.map +1 -1
- package/lib/components/table/src/table-layout.d.ts +1 -0
- package/lib/components/table/src/table-layout.js +7 -1
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +11 -2
- package/lib/components/table/src/table.vue_vue_type_script_lang.js +12 -2
- package/lib/components/table/src/table.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/table/src/table.vue_vue_type_template_id_4a1660ad_lang.js +62 -213
- package/lib/components/table/src/table.vue_vue_type_template_id_4a1660ad_lang.js.map +1 -1
- package/lib/components/table/src/util.d.ts +16 -2
- package/lib/components/table/src/util.js +95 -0
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/teleport/index.d.ts +11 -8
- package/lib/components/teleport/src/teleport.d.ts +4 -3
- package/lib/components/teleport/src/teleport.js +5 -1
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport.vue.d.ts +11 -8
- package/lib/components/teleport/src/teleport.vue_vue_type_script_lang.js +1 -2
- package/lib/components/teleport/src/teleport.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.js +3 -2
- package/lib/components/teleport/src/teleport.vue_vue_type_template_id_787c6a36_lang.js.map +1 -1
- package/lib/components/time-picker/index.d.ts +4 -4
- package/lib/components/time-picker/src/common/picker.vue.d.ts +663 -9
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js +33 -21
- package/lib/components/time-picker/src/common/picker.vue_vue_type_script_lang.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js +37 -37
- package/lib/components/time-picker/src/common/picker.vue_vue_type_template_id_1d54be91_lang.js.map +1 -1
- package/lib/components/time-picker/src/time-picker.d.ts +2 -2
- package/lib/components/time-select/index.d.ts +4 -4
- package/lib/components/time-select/src/time-select.vue.d.ts +2 -2
- package/lib/components/tooltip/index.d.ts +346 -430
- package/lib/components/tooltip/index.js +9 -7
- package/lib/components/tooltip/index.js.map +1 -1
- package/lib/components/tooltip/src/content.js +12 -0
- package/lib/components/tooltip/src/content.js.map +1 -0
- package/lib/components/tooltip/src/content.vue.d.ts +809 -0
- package/lib/components/tooltip/src/content.vue_vue_type_script_lang.js +139 -0
- package/lib/components/tooltip/src/content.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.js +69 -0
- package/lib/components/tooltip/src/content.vue_vue_type_template_id_20254f8d_lang.js.map +1 -0
- package/lib/components/tooltip/src/tokens.d.ts +14 -0
- package/lib/components/tooltip/src/tokens.js +8 -0
- package/lib/components/tooltip/src/tokens.js.map +1 -0
- package/lib/components/tooltip/src/tooltip.d.ts +146 -0
- package/lib/components/tooltip/src/tooltip.js +69 -0
- package/lib/components/tooltip/src/tooltip.js.map +1 -0
- package/lib/components/tooltip/src/tooltip.vue.d.ts +383 -0
- package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js +108 -0
- package/lib/components/tooltip/src/tooltip.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.js +71 -0
- package/lib/components/tooltip/src/tooltip.vue_vue_type_template_id_694d1617_lang.js.map +1 -0
- package/lib/components/tooltip/src/tooltip2.js +12 -0
- package/lib/components/tooltip/src/tooltip2.js.map +1 -0
- package/lib/components/tooltip/src/trigger.js +12 -0
- package/lib/components/tooltip/src/trigger.js.map +1 -0
- package/lib/components/tooltip/src/trigger.vue.d.ts +39 -0
- package/lib/components/tooltip/src/trigger.vue_vue_type_script_lang.js +64 -0
- package/lib/components/tooltip/src/trigger.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.js +31 -0
- package/lib/components/tooltip/src/trigger.vue_vue_type_template_id_0ec0b94c_lang.js.map +1 -0
- package/lib/components/tooltip/src/utils.d.ts +4 -0
- package/lib/components/tooltip/src/utils.js +23 -0
- package/lib/components/tooltip/src/utils.js.map +1 -0
- package/lib/components/tree/index.d.ts +4 -4
- package/lib/components/tree/src/tree.vue.d.ts +2 -2
- package/lib/components/tree-v2/src/tree-node.vue.d.ts +1 -1
- package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
- package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
- package/lib/components/visual-hidden/index.d.ts +3 -0
- package/lib/components/visual-hidden/index.js +12 -0
- package/lib/components/visual-hidden/index.js.map +1 -0
- package/lib/components/visual-hidden/src/visual-hidden.js +12 -0
- package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -0
- package/lib/components/visual-hidden/src/visual-hidden.vue.d.ts +12 -0
- package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.js +38 -0
- package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_script_lang.js.map +1 -0
- package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.js +12 -0
- package/lib/components/visual-hidden/src/visual-hidden.vue_vue_type_template_id_4cbd1102_lang.js.map +1 -0
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/hooks/index.d.ts +8 -1
- package/lib/hooks/index.js +36 -20
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-delayed-toggle/index.d.ts +13 -0
- package/lib/hooks/use-delayed-toggle/index.js +44 -0
- package/lib/hooks/use-delayed-toggle/index.js.map +1 -0
- package/lib/hooks/use-escape-keydown/index.d.ts +1 -0
- package/lib/hooks/use-escape-keydown/index.js +25 -0
- package/lib/hooks/use-escape-keydown/index.js.map +1 -0
- package/lib/hooks/use-focus/index.d.ts +3 -1
- package/lib/hooks/use-focus/index.js.map +1 -1
- package/lib/hooks/use-forward-ref/index.d.ts +13 -0
- package/lib/hooks/use-forward-ref/index.js +33 -0
- package/lib/hooks/use-forward-ref/index.js.map +1 -0
- package/lib/hooks/use-id/index.d.ts +8 -0
- package/lib/hooks/use-id/index.js +29 -0
- package/lib/hooks/use-id/index.js.map +1 -0
- package/lib/hooks/use-intermediate-render/index.d.ts +11 -0
- package/lib/hooks/use-intermediate-render/index.js +47 -0
- package/lib/hooks/use-intermediate-render/index.js.map +1 -0
- package/lib/hooks/use-model-toggle/index.d.ts +18 -9
- package/lib/hooks/use-model-toggle/index.js +102 -91
- package/lib/hooks/use-model-toggle/index.js.map +1 -1
- package/lib/hooks/use-popper-container/index.d.ts +3 -0
- package/lib/hooks/use-popper-container/index.js +28 -0
- package/lib/hooks/use-popper-container/index.js.map +1 -0
- package/lib/hooks/use-restore-active/index.js +1 -1
- package/lib/hooks/use-restore-active/index.js.map +1 -1
- package/lib/index.js +167 -143
- package/lib/index.js.map +1 -1
- package/lib/utils/aria.d.ts +4 -0
- package/lib/utils/aria.js +5 -1
- package/lib/utils/aria.js.map +1 -1
- package/lib/utils/dom.d.ts +9 -1
- package/lib/utils/dom.js +30 -0
- package/lib/utils/dom.js.map +1 -1
- package/lib/utils/props.d.ts +2 -2
- package/lib/utils/props.js +1 -1
- package/lib/utils/props.js.map +1 -1
- 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/tags.json +1 -1
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/el-collapse.css +1 -1
- package/theme-chalk/el-date-picker.css +1 -1
- package/theme-chalk/el-dropdown.css +1 -1
- package/theme-chalk/el-menu.css +1 -1
- package/theme-chalk/el-select-v2.css +1 -1
- package/theme-chalk/el-table-column.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/el-time-picker.css +1 -1
- package/theme-chalk/el-time-select.css +1 -1
- package/theme-chalk/el-tree.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/common/transition.scss +8 -0
- package/theme-chalk/src/dropdown.scss +1 -2
- package/theme-chalk/src/select-v2.scss +2 -3
- package/theme-chalk/src/table-column.scss +0 -1
- package/theme-chalk/src/table.scss +176 -124
- package/web-types.json +1 -1
- package/es/components/popover/src/usePopover.d.ts +0 -32
- package/es/components/popover/src/usePopover.mjs +0 -38
- package/es/components/popover/src/usePopover.mjs.map +0 -1
- package/es/components/popper/src/index.mjs +0 -5
- package/es/components/popper/src/index.vue.d.ts +0 -1737
- package/es/components/popper/src/index.vue_vue_type_script_lang.mjs +0 -103
- package/es/components/popper/src/index.vue_vue_type_script_lang.mjs.map +0 -1
- package/es/components/popper/src/renderers/arrow.d.ts +0 -3
- package/es/components/popper/src/renderers/arrow.mjs +0 -12
- package/es/components/popper/src/renderers/arrow.mjs.map +0 -1
- package/es/components/popper/src/renderers/index.d.ts +0 -3
- package/es/components/popper/src/renderers/index.mjs +0 -4
- package/es/components/popper/src/renderers/popper.d.ts +0 -23
- package/es/components/popper/src/renderers/popper.mjs +0 -51
- package/es/components/popper/src/renderers/popper.mjs.map +0 -1
- package/es/components/popper/src/renderers/trigger.d.ts +0 -13
- package/es/components/popper/src/renderers/trigger.mjs +0 -13
- package/es/components/popper/src/renderers/trigger.mjs.map +0 -1
- package/es/components/popper/src/use-popper/build-modifiers.d.ts +0 -10
- package/es/components/popper/src/use-popper/build-modifiers.mjs +0 -50
- package/es/components/popper/src/use-popper/build-modifiers.mjs.map +0 -1
- package/es/components/popper/src/use-popper/defaults.d.ts +0 -142
- package/es/components/popper/src/use-popper/defaults.mjs +0 -116
- package/es/components/popper/src/use-popper/defaults.mjs.map +0 -1
- package/es/components/popper/src/use-popper/index.d.ts +0 -1554
- package/es/components/popper/src/use-popper/index.mjs +0 -235
- package/es/components/popper/src/use-popper/index.mjs.map +0 -1
- package/es/components/popper/src/use-popper/popper-options.d.ts +0 -20
- package/es/components/popper/src/use-popper/popper-options.mjs +0 -22
- package/es/components/popper/src/use-popper/popper-options.mjs.map +0 -1
- package/es/components/tooltip/src/index.d.ts +0 -240
- package/es/components/tooltip/src/index.mjs +0 -101
- package/es/components/tooltip/src/index.mjs.map +0 -1
- package/es/hooks/use-popper/index.d.ts +0 -103
- package/es/hooks/use-popper/index.mjs +0 -256
- package/es/hooks/use-popper/index.mjs.map +0 -1
- package/es/hooks/use-popper/use-popper-options.d.ts +0 -49
- package/es/hooks/use-popper/use-popper-options.mjs +0 -47
- package/es/hooks/use-popper/use-popper-options.mjs.map +0 -1
- package/es/hooks/use-popper/use-target-events.d.ts +0 -13
- package/es/hooks/use-popper/use-target-events.mjs +0 -68
- package/es/hooks/use-popper/use-target-events.mjs.map +0 -1
- package/lib/components/popover/src/usePopover.d.ts +0 -32
- package/lib/components/popover/src/usePopover.js +0 -44
- package/lib/components/popover/src/usePopover.js.map +0 -1
- package/lib/components/popper/src/index.js +0 -10
- package/lib/components/popper/src/index.vue.d.ts +0 -1737
- package/lib/components/popper/src/index.vue_vue_type_script_lang.js +0 -107
- package/lib/components/popper/src/index.vue_vue_type_script_lang.js.map +0 -1
- package/lib/components/popper/src/renderers/arrow.d.ts +0 -3
- package/lib/components/popper/src/renderers/arrow.js +0 -16
- package/lib/components/popper/src/renderers/arrow.js.map +0 -1
- package/lib/components/popper/src/renderers/index.d.ts +0 -3
- package/lib/components/popper/src/renderers/index.js +0 -14
- package/lib/components/popper/src/renderers/popper.d.ts +0 -23
- package/lib/components/popper/src/renderers/popper.js +0 -55
- package/lib/components/popper/src/renderers/popper.js.map +0 -1
- package/lib/components/popper/src/renderers/trigger.d.ts +0 -13
- package/lib/components/popper/src/renderers/trigger.js +0 -17
- package/lib/components/popper/src/renderers/trigger.js.map +0 -1
- package/lib/components/popper/src/use-popper/build-modifiers.d.ts +0 -10
- package/lib/components/popper/src/use-popper/build-modifiers.js +0 -54
- package/lib/components/popper/src/use-popper/build-modifiers.js.map +0 -1
- package/lib/components/popper/src/use-popper/defaults.d.ts +0 -142
- package/lib/components/popper/src/use-popper/defaults.js +0 -121
- package/lib/components/popper/src/use-popper/defaults.js.map +0 -1
- package/lib/components/popper/src/use-popper/index.d.ts +0 -1554
- package/lib/components/popper/src/use-popper/index.js +0 -242
- package/lib/components/popper/src/use-popper/index.js.map +0 -1
- package/lib/components/popper/src/use-popper/popper-options.d.ts +0 -20
- package/lib/components/popper/src/use-popper/popper-options.js +0 -26
- package/lib/components/popper/src/use-popper/popper-options.js.map +0 -1
- package/lib/components/tooltip/src/index.d.ts +0 -240
- package/lib/components/tooltip/src/index.js +0 -105
- package/lib/components/tooltip/src/index.js.map +0 -1
- package/lib/hooks/use-popper/index.d.ts +0 -103
- package/lib/hooks/use-popper/index.js +0 -264
- package/lib/hooks/use-popper/index.js.map +0 -1
- package/lib/hooks/use-popper/use-popper-options.d.ts +0 -49
- package/lib/hooks/use-popper/use-popper-options.js +0 -53
- package/lib/hooks/use-popper/use-popper-options.js.map +0 -1
- package/lib/hooks/use-popper/use-target-events.d.ts +0 -13
- package/lib/hooks/use-popper/use-target-events.js +0 -73
- package/lib/hooks/use-popper/use-target-events.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-column/index.ts"],"sourcesContent":["import {\n defineComponent,\n ref,\n onBeforeMount,\n onMounted,\n computed,\n getCurrentInstance,\n h,\n onBeforeUnmount,\n Fragment,\n} from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport { cellStarts } from '../config'\nimport { mergeOptions, compose } from '../util'\nimport useWatcher from './watcher-helper'\nimport useRender from './render-helper'\nimport defaultProps from './defaults'\nimport type { TableColumn, TableColumnCtx } from './defaults'\n\nimport type { DefaultRow } from '../table/defaults'\n\nlet columnIdSeed = 1\n\nexport default defineComponent({\n name: 'ElTableColumn',\n components: {\n ElCheckbox,\n },\n props: defaultProps,\n setup(props, { slots }) {\n const instance = getCurrentInstance() as TableColumn<DefaultRow>\n const columnConfig = ref<Partial<TableColumnCtx<DefaultRow>>>({})\n const owner = computed(() => {\n let parent = instance.parent as any\n while (parent && !parent.tableId) {\n parent = parent.parent\n }\n return parent\n })\n\n const { registerNormalWatchers, registerComplexWatchers } = useWatcher(\n owner,\n props\n )\n const {\n columnId,\n isSubColumn,\n realHeaderAlign,\n columnOrTableParent,\n setColumnWidth,\n setColumnForcedProps,\n setColumnRenders,\n getPropsData,\n getColumnElIndex,\n realAlign,\n } = useRender(props as unknown as TableColumnCtx<unknown>, slots, owner)\n\n const parent = columnOrTableParent.value\n columnId.value = `${\n parent.tableId || parent.columnId\n }_column_${columnIdSeed++}`\n onBeforeMount(() => {\n isSubColumn.value = owner.value !== parent\n\n const type = props.type || 'default'\n const sortable = props.sortable === '' ? true : props.sortable\n const defaults = {\n ...cellStarts[type],\n id: columnId.value,\n type,\n property: props.prop || props.property,\n align: realAlign,\n headerAlign: realHeaderAlign,\n showOverflowTooltip:\n props.showOverflowTooltip || props.showTooltipWhenOverflow,\n // filter 相关属性\n filterable: props.filters || props.filterMethod,\n filteredValue: [],\n filterPlacement: '',\n isColumnGroup: false,\n filterOpened: false,\n // sort 相关属性\n sortable,\n // index 列\n index: props.index,\n // <el-table-column key=\"xxx\" />\n rawColumnKey: instance.vnode.key,\n }\n\n const basicProps = [\n 'columnKey',\n 'label',\n 'className',\n 'labelClassName',\n 'type',\n 'renderHeader',\n 'formatter',\n 'fixed',\n 'resizable',\n ]\n const sortProps = ['sortMethod', 'sortBy', 'sortOrders']\n const selectProps = ['selectable', 'reserveSelection']\n const filterProps = [\n 'filterMethod',\n 'filters',\n 'filterMultiple',\n 'filterOpened',\n 'filteredValue',\n 'filterPlacement',\n ]\n\n let column = getPropsData(basicProps, sortProps, selectProps, filterProps)\n\n column = mergeOptions(defaults, column)\n // 注意 compose 中函数执行的顺序是从右到左\n const chains = compose(\n setColumnRenders,\n setColumnWidth,\n setColumnForcedProps\n )\n column = chains(column)\n columnConfig.value = column\n\n // 注册 watcher\n registerNormalWatchers()\n registerComplexWatchers()\n })\n onMounted(() => {\n const parent = columnOrTableParent.value\n const children = isSubColumn.value\n ? parent.vnode.el.children\n : parent.refs.hiddenColumns?.children\n const getColumnIndex = () =>\n getColumnElIndex(children || [], instance.vnode.el)\n columnConfig.value.getColumnIndex = getColumnIndex\n const columnIndex = getColumnIndex()\n columnIndex > -1 &&\n owner.value.store.commit(\n 'insertColumn',\n columnConfig.value,\n isSubColumn.value ? parent.columnConfig.value : null\n )\n })\n onBeforeUnmount(() => {\n owner.value.store.commit(\n 'removeColumn',\n columnConfig.value,\n isSubColumn.value ? parent.columnConfig.value : null\n )\n })\n instance.columnId = columnId.value\n\n // eslint-disable-next-line\n instance.columnConfig = columnConfig\n return\n },\n render() {\n let children = []\n try {\n const renderDefault = this.$slots.default?.({\n row: {},\n column: {},\n $index: -1,\n })\n if (renderDefault instanceof Array) {\n for (const childNode of renderDefault) {\n if (\n childNode.type?.name === 'ElTableColumn' ||\n childNode.shapeFlag & 2\n ) {\n children.push(childNode)\n } else if (\n childNode.type === Fragment &&\n childNode.children instanceof Array\n ) {\n children.push(...childNode.children)\n }\n }\n }\n } catch {\n children = []\n }\n return h('div', children)\n },\n})\n"],"names":["defineComponent","ElCheckbox","defaultProps","getCurrentInstance","ref","computed","useWatcher","useRender","onBeforeMount","cellStarts","mergeOptions","compose","onMounted","onBeforeUnmount","Fragment","h"],"mappings":";;;;;;;;;;;;AAiBA,IAAI,YAAY,GAAG,CAAC,CAAC;AACrB,oBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,UAAU,EAAE;AACd,gBAAIC,gBAAU;AACd,GAAG;AACH,EAAE,KAAK,EAAEC,mBAAY;AACrB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE;AAC1B,IAAI,MAAM,QAAQ,GAAGC,sBAAkB,EAAE,CAAC;AAC1C,IAAI,MAAM,YAAY,GAAGC,OAAG,CAAC,EAAE,CAAC,CAAC;AACjC,IAAI,MAAM,KAAK,GAAGC,YAAQ,CAAC,MAAM;AACjC,MAAM,IAAI,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC;AACpC,MAAM,OAAO,O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AE,QAAQ,CAAC,CAAC;AAC9B,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-column/index.ts"],"sourcesContent":["import {\n defineComponent,\n ref,\n onBeforeMount,\n onMounted,\n computed,\n getCurrentInstance,\n h,\n onBeforeUnmount,\n Fragment,\n} from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport { cellStarts } from '../config'\nimport { mergeOptions, compose } from '../util'\nimport useWatcher from './watcher-helper'\nimport useRender from './render-helper'\nimport defaultProps from './defaults'\nimport type { TableColumn, TableColumnCtx } from './defaults'\n\nimport type { DefaultRow } from '../table/defaults'\n\nlet columnIdSeed = 1\n\nexport default defineComponent({\n name: 'ElTableColumn',\n components: {\n ElCheckbox,\n },\n props: defaultProps,\n setup(props, { slots }) {\n const instance = getCurrentInstance() as TableColumn<DefaultRow>\n const columnConfig = ref<Partial<TableColumnCtx<DefaultRow>>>({})\n const owner = computed(() => {\n let parent = instance.parent as any\n while (parent && !parent.tableId) {\n parent = parent.parent\n }\n return parent\n })\n\n const { registerNormalWatchers, registerComplexWatchers } = useWatcher(\n owner,\n props\n )\n const {\n columnId,\n isSubColumn,\n realHeaderAlign,\n columnOrTableParent,\n setColumnWidth,\n setColumnForcedProps,\n setColumnRenders,\n getPropsData,\n getColumnElIndex,\n realAlign,\n } = useRender(props as unknown as TableColumnCtx<unknown>, slots, owner)\n\n const parent = columnOrTableParent.value\n columnId.value = `${\n parent.tableId || parent.columnId\n }_column_${columnIdSeed++}`\n onBeforeMount(() => {\n isSubColumn.value = owner.value !== parent\n\n const type = props.type || 'default'\n const sortable = props.sortable === '' ? true : props.sortable\n const defaults = {\n ...cellStarts[type],\n id: columnId.value,\n type,\n property: props.prop || props.property,\n align: realAlign,\n headerAlign: realHeaderAlign,\n showOverflowTooltip:\n props.showOverflowTooltip || props.showTooltipWhenOverflow,\n // filter 相关属性\n filterable: props.filters || props.filterMethod,\n filteredValue: [],\n filterPlacement: '',\n isColumnGroup: false,\n isSubColumn: false,\n filterOpened: false,\n // sort 相关属性\n sortable,\n // index 列\n index: props.index,\n // <el-table-column key=\"xxx\" />\n rawColumnKey: instance.vnode.key,\n }\n\n const basicProps = [\n 'columnKey',\n 'label',\n 'className',\n 'labelClassName',\n 'type',\n 'renderHeader',\n 'formatter',\n 'fixed',\n 'resizable',\n ]\n const sortProps = ['sortMethod', 'sortBy', 'sortOrders']\n const selectProps = ['selectable', 'reserveSelection']\n const filterProps = [\n 'filterMethod',\n 'filters',\n 'filterMultiple',\n 'filterOpened',\n 'filteredValue',\n 'filterPlacement',\n ]\n\n let column = getPropsData(basicProps, sortProps, selectProps, filterProps)\n\n column = mergeOptions(defaults, column)\n // 注意 compose 中函数执行的顺序是从右到左\n const chains = compose(\n setColumnRenders,\n setColumnWidth,\n setColumnForcedProps\n )\n column = chains(column)\n columnConfig.value = column\n\n // 注册 watcher\n registerNormalWatchers()\n registerComplexWatchers()\n })\n onMounted(() => {\n const parent = columnOrTableParent.value\n const children = isSubColumn.value\n ? parent.vnode.el.children\n : parent.refs.hiddenColumns?.children\n const getColumnIndex = () =>\n getColumnElIndex(children || [], instance.vnode.el)\n columnConfig.value.getColumnIndex = getColumnIndex\n const columnIndex = getColumnIndex()\n columnIndex > -1 &&\n owner.value.store.commit(\n 'insertColumn',\n columnConfig.value,\n isSubColumn.value ? parent.columnConfig.value : null\n )\n })\n onBeforeUnmount(() => {\n owner.value.store.commit(\n 'removeColumn',\n columnConfig.value,\n isSubColumn.value ? parent.columnConfig.value : null\n )\n })\n instance.columnId = columnId.value\n\n // eslint-disable-next-line\n instance.columnConfig = columnConfig\n return\n },\n render() {\n let children = []\n try {\n const renderDefault = this.$slots.default?.({\n row: {},\n column: {},\n $index: -1,\n })\n if (renderDefault instanceof Array) {\n for (const childNode of renderDefault) {\n if (\n childNode.type?.name === 'ElTableColumn' ||\n childNode.shapeFlag & 2\n ) {\n children.push(childNode)\n } else if (\n childNode.type === Fragment &&\n childNode.children instanceof Array\n ) {\n children.push(...childNode.children)\n }\n }\n }\n } catch {\n children = []\n }\n return h('div', children)\n },\n})\n"],"names":["defineComponent","ElCheckbox","defaultProps","getCurrentInstance","ref","computed","useWatcher","useRender","onBeforeMount","cellStarts","mergeOptions","compose","onMounted","onBeforeUnmount","Fragment","h"],"mappings":";;;;;;;;;;;;AAiBA,IAAI,YAAY,GAAG,CAAC,CAAC;AACrB,oBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,UAAU,EAAE;AACd,gBAAIC,gBAAU;AACd,GAAG;AACH,EAAE,KAAK,EAAEC,mBAAY;AACrB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE;AAC1B,IAAI,MAAM,QAAQ,GAAGC,sBAAkB,EAAE,CAAC;AAC1C,IAAI,MAAM,YAAY,GAAGC,OAAG,CAAC,EAAE,CAAC,CAAC;AACjC,IAAI,MAAM,KAAK,GAAGC,YAAQ,CAAC,MAAM;AACjC,MAAM,IAAI,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC;AACpC,MAAM,OAAO,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;AAC1C,QAAQ,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;AACjC,OAAO;AACP,MAAM,OAAO,OAAO,CAAC;AACrB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,GAAGC,wBAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACzF,IAAI,MAAM;AACV,MAAM,QAAQ;AACd,MAAM,WAAW;AACjB,MAAM,eAAe;AACrB,MAAM,mBAAmB;AACzB,MAAM,cAAc;AACpB,MAAM,oBAAoB;AAC1B,MAAM,gBAAgB;AACtB,MAAM,YAAY;AAClB,MAAM,gBAAgB;AACtB,MAAM,SAAS;AACf,KAAK,GAAGC,uBAAS,CAAC,KAAK,EAAE,KAAK,EA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,EAAE;AACf,QAAQ,MAAM,EAAE,EAAE;AAClB,QAAQ,MAAM,EAAE,CAAC,CAAC;AAClB,OAAO,CAAC,CAAC;AACT,MAAM,IAAI,aAAa,YAAY,KAAK,EAAE;AAC1C,QAAQ,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE;AAC/C,UAAU,IAAI,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,eAAe,IAAI,SAAS,CAAC,SAAS,GAAG,CAAC,EAAE;AACjH,YAAY,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACrC,WAAW,MAAM,IAAI,SAAS,CAAC,IAAI,KAAKC,YAAQ,IAAI,SAAS,CAAC,QAAQ,YAAY,KAAK,EAAE;AACzF,YAAY,QAAQ,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AACjD,WAAW;AACX,SAAS;AACT,OAAO;AACP,KAAK,CAAC,OAAO,CAAC,EAAE;AAChB,MAAM,QAAQ,GAAG,EAAE,CAAC;AACpB,KAAK;AACL,IAAI,OAAOC,KAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAC9B,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
@@ -29,8 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
getCellClasses: (columns: import("../table-column/defaults").TableColumnCtx<any>[], cellIndex: number, hasGutter: boolean) => string[];
|
|
33
|
+
getCellStyles: (column: import("../table-column/defaults").TableColumnCtx<any>, cellIndex: number, hasGutter: boolean) => any;
|
|
34
|
+
hasGutter: import("vue").ComputedRef<boolean | 0 | null>;
|
|
35
|
+
gutterWidth: import("vue").ComputedRef<number>;
|
|
34
36
|
columns: any;
|
|
35
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
36
38
|
fixed?: unknown;
|
|
@@ -31,27 +31,39 @@ var TableFooter = vue.defineComponent({
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
setup(props) {
|
|
34
|
-
const { hasGutter,
|
|
34
|
+
const { hasGutter, getCellClasses, getCellStyles, columns, gutterWidth } = styleHelper["default"](props);
|
|
35
35
|
return {
|
|
36
|
-
|
|
36
|
+
getCellClasses,
|
|
37
|
+
getCellStyles,
|
|
37
38
|
hasGutter,
|
|
39
|
+
gutterWidth,
|
|
38
40
|
columns
|
|
39
41
|
};
|
|
40
42
|
},
|
|
41
43
|
render() {
|
|
44
|
+
const {
|
|
45
|
+
hasGutter,
|
|
46
|
+
gutterWidth,
|
|
47
|
+
columns,
|
|
48
|
+
getCellStyles,
|
|
49
|
+
getCellClasses,
|
|
50
|
+
summaryMethod,
|
|
51
|
+
sumText
|
|
52
|
+
} = this;
|
|
53
|
+
const data = this.store.states.data.value;
|
|
42
54
|
let sums = [];
|
|
43
|
-
if (
|
|
44
|
-
sums =
|
|
45
|
-
columns
|
|
46
|
-
data
|
|
55
|
+
if (summaryMethod) {
|
|
56
|
+
sums = summaryMethod({
|
|
57
|
+
columns,
|
|
58
|
+
data
|
|
47
59
|
});
|
|
48
60
|
} else {
|
|
49
|
-
|
|
61
|
+
columns.forEach((column, index) => {
|
|
50
62
|
if (index === 0) {
|
|
51
|
-
sums[index] =
|
|
63
|
+
sums[index] = sumText;
|
|
52
64
|
return;
|
|
53
65
|
}
|
|
54
|
-
const values =
|
|
66
|
+
const values = data.map((item) => Number(item[column.property]));
|
|
55
67
|
const precisions = [];
|
|
56
68
|
let notNumber = true;
|
|
57
69
|
values.forEach((value) => {
|
|
@@ -82,25 +94,28 @@ var TableFooter = vue.defineComponent({
|
|
|
82
94
|
cellpadding: "0",
|
|
83
95
|
border: "0"
|
|
84
96
|
}, [
|
|
85
|
-
hHelper.hColgroup(
|
|
97
|
+
hHelper.hColgroup(columns, hasGutter),
|
|
86
98
|
vue.h("tbody", {
|
|
87
|
-
class: [{ "has-gutter":
|
|
99
|
+
class: [{ "has-gutter": hasGutter }]
|
|
88
100
|
}, [
|
|
89
101
|
vue.h("tr", {}, [
|
|
90
|
-
...
|
|
102
|
+
...columns.map((column, cellIndex) => vue.h("td", {
|
|
91
103
|
key: cellIndex,
|
|
92
104
|
colspan: column.colSpan,
|
|
93
105
|
rowspan: column.rowSpan,
|
|
94
|
-
class:
|
|
95
|
-
|
|
96
|
-
"el-table__cell"
|
|
97
|
-
]
|
|
106
|
+
class: getCellClasses(columns, cellIndex, hasGutter),
|
|
107
|
+
style: getCellStyles(column, cellIndex, hasGutter)
|
|
98
108
|
}, [
|
|
99
109
|
vue.h("div", {
|
|
100
110
|
class: ["cell", column.labelClassName]
|
|
101
111
|
}, [sums[cellIndex]])
|
|
102
112
|
])),
|
|
103
|
-
|
|
113
|
+
hasGutter && vue.h("td", {
|
|
114
|
+
class: "el-table__fixed-right-patch el-table__cell",
|
|
115
|
+
style: {
|
|
116
|
+
width: `${gutterWidth}px`
|
|
117
|
+
}
|
|
118
|
+
})
|
|
104
119
|
])
|
|
105
120
|
])
|
|
106
121
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-footer/index.ts"],"sourcesContent":["import { defineComponent, h } from 'vue'\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-footer/index.ts"],"sourcesContent":["import { defineComponent, h } from 'vue'\nimport { hColgroup } from '../h-helper'\nimport useStyle from './style-helper'\nimport type { Store } from '../store'\n\nimport type { PropType } from 'vue'\nimport type { DefaultRow, Sort, SummaryMethod } from '../table/defaults'\nexport interface TableFooter<T> {\n fixed: string\n store: Store<T>\n summaryMethod: SummaryMethod<T>\n sumText: string\n border: boolean\n defaultSort: Sort\n}\n\nexport default defineComponent({\n name: 'ElTableFooter',\n\n props: {\n fixed: {\n type: String,\n default: '',\n },\n store: {\n required: true,\n type: Object as PropType<TableFooter<DefaultRow>['store']>,\n },\n summaryMethod: Function as PropType<\n TableFooter<DefaultRow>['summaryMethod']\n >,\n sumText: String,\n border: Boolean,\n defaultSort: {\n type: Object as PropType<TableFooter<DefaultRow>['defaultSort']>,\n default: () => {\n return {\n prop: '',\n order: '',\n }\n },\n },\n },\n setup(props) {\n const { hasGutter, getCellClasses, getCellStyles, columns, gutterWidth } =\n useStyle(props as TableFooter<DefaultRow>)\n return {\n getCellClasses,\n getCellStyles,\n hasGutter,\n gutterWidth,\n columns,\n }\n },\n render() {\n const {\n hasGutter,\n gutterWidth,\n columns,\n getCellStyles,\n getCellClasses,\n summaryMethod,\n sumText,\n } = this\n const data = this.store.states.data.value\n let sums = []\n if (summaryMethod) {\n sums = summaryMethod({\n columns,\n data,\n })\n } else {\n columns.forEach((column, index) => {\n if (index === 0) {\n sums[index] = sumText\n return\n }\n const values = data.map((item) => Number(item[column.property]))\n const precisions = []\n let notNumber = true\n values.forEach((value) => {\n if (!isNaN(value)) {\n notNumber = false\n const decimal = `${value}`.split('.')[1]\n precisions.push(decimal ? decimal.length : 0)\n }\n })\n const precision = Math.max.apply(null, precisions)\n if (!notNumber) {\n sums[index] = values.reduce((prev, curr) => {\n const value = Number(curr)\n if (!isNaN(value)) {\n return parseFloat((prev + curr).toFixed(Math.min(precision, 20)))\n } else {\n return prev\n }\n }, 0)\n } else {\n sums[index] = ''\n }\n })\n }\n return h(\n 'table',\n {\n class: 'el-table__footer',\n cellspacing: '0',\n cellpadding: '0',\n border: '0',\n },\n [\n hColgroup(columns, hasGutter),\n h(\n 'tbody',\n {\n class: [{ 'has-gutter': hasGutter }],\n },\n [\n h('tr', {}, [\n ...columns.map((column, cellIndex) =>\n h(\n 'td',\n {\n key: cellIndex,\n colspan: column.colSpan,\n rowspan: column.rowSpan,\n class: getCellClasses(columns, cellIndex, hasGutter),\n style: getCellStyles(column, cellIndex, hasGutter),\n },\n [\n h(\n 'div',\n {\n class: ['cell', column.labelClassName],\n },\n [sums[cellIndex]]\n ),\n ]\n )\n ),\n hasGutter &&\n h('td', {\n class: 'el-table__fixed-right-patch el-table__cell',\n style: {\n width: `${gutterWidth}px`,\n },\n }),\n ]),\n ]\n ),\n ]\n )\n },\n})\n"],"names":["defineComponent","useStyle","h","hColgroup"],"mappings":";;;;;;;;AAGA,kBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,KAAK,EAAE;AACT,IAAI,KAAK,EAAE;AACX,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE,EAAE;AACjB,KAAK;AACL,IAAI,KAAK,EAAE;AACX,MAAM,QAAQ,EAAE,IAAI;AACpB,MAAM,IAAI,EAAE,MAAM;AAClB,KAAK;AACL,IAAI,aAAa,EAAE,QAAQ;AAC3B,IAAI,OAAO,EAAE,MAAM;AACnB,IAAI,MAAM,EAAE,OAAO;AACnB,IAAI,WAAW,EAAE;AACjB,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE,MAAM;AACrB,QAAQ,OAAO;AACf,UAAU,IAAI,EAAE,EAAE;AAClB,UAAU,KAAK,EAAE,EAAE;AACnB,SAAS,CAAC;AACV,OAAO;AACP,KAAK;AACL,GAAG;AACH,EAAE,KAAK,CAAC,KAAK,EAAE;AACf,IAAI,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,GAAGC,sBAAQ,CAAC,KAAK,CAAC,CAAC;AAC/F,IAAI,OAAO;AACX,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,SAAS;AACf,MAAM,WAAW;AACjB,MAAM,OAAO;AACb,KAAK,CAAC;AACN,GAAG;AACH,EAAE,MAAM,GAAG;AACX,IAAI,MAAM;AACV,MAAM,SAAS;AACf,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AAO,EAAE,MAAM,CAAC,OAAO;AACnC,YAAY,OAAO,EAAE,MAAM,CAAC,OAAO;AACnC,YAAY,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC;AAChE,YAAY,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;AAC9D,WAAW,EAAE;AACb,YAAYA,KAAC,CAAC,KAAK,EAAE;AACrB,cAAc,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;AACpD,aAAa,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;AACjC,WAAW,CAAC,CAAC;AACb,UAAU,SAAS,IAAIA,KAAC,CAAC,IAAI,EAAE;AAC/B,YAAY,KAAK,EAAE,4CAA4C;AAC/D,YAAY,KAAK,EAAE;AACnB,cAAc,KAAK,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC;AACvC,aAAa;AACb,WAAW,CAAC;AACZ,SAAS,CAAC;AACV,OAAO,CAAC;AACR,KAAK,CAAC,CAAC;AACP,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { TableColumnCtx } from '../table-column/defaults';
|
|
2
2
|
import type { TableFooter } from '.';
|
|
3
3
|
declare function useStyle<T>(props: TableFooter<T>): {
|
|
4
|
-
hasGutter: import("vue").ComputedRef<boolean>;
|
|
5
|
-
|
|
4
|
+
hasGutter: import("vue").ComputedRef<boolean | 0 | null>;
|
|
5
|
+
gutterWidth: import("vue").ComputedRef<number>;
|
|
6
|
+
getCellClasses: (columns: TableColumnCtx<T>[], cellIndex: number, hasGutter: boolean) => string[];
|
|
7
|
+
getCellStyles: (column: TableColumnCtx<T>, cellIndex: number, hasGutter: boolean) => any;
|
|
6
8
|
columns: any;
|
|
7
9
|
};
|
|
8
10
|
export default useStyle;
|
|
@@ -3,54 +3,51 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
var util = require('../util.js');
|
|
6
7
|
var mapStateHelper = require('./mapState-helper.js');
|
|
7
8
|
|
|
8
9
|
function useStyle(props) {
|
|
9
10
|
const instance = vue.getCurrentInstance();
|
|
10
11
|
const table = instance.parent;
|
|
11
|
-
const
|
|
12
|
-
const {
|
|
13
|
-
leftFixedLeafCount,
|
|
14
|
-
rightFixedLeafCount,
|
|
15
|
-
columnsCount,
|
|
16
|
-
leftFixedCount,
|
|
17
|
-
rightFixedCount,
|
|
18
|
-
columns
|
|
19
|
-
} = mapStateHelper["default"]();
|
|
12
|
+
const { columns } = mapStateHelper["default"]();
|
|
20
13
|
const hasGutter = vue.computed(() => {
|
|
21
|
-
return !props.fixed &&
|
|
14
|
+
return !props.fixed && table.layout.gutterWidth > 0 && table.layout.height.value && table.layout.bodyScrollHeight.value > table.layout.bodyHeight.value;
|
|
22
15
|
});
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return index < leftFixedCount.value || index >= columnsCount.value - rightFixedCount.value;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const getRowClasses = (column, cellIndex) => {
|
|
39
|
-
const classes = [column.id, column.align, column.labelClassName];
|
|
16
|
+
const gutterWidth = vue.computed(() => {
|
|
17
|
+
return table.layout.gutterWidth;
|
|
18
|
+
});
|
|
19
|
+
const getCellClasses = (columns2, cellIndex, hasGutter2) => {
|
|
20
|
+
const column = columns2[cellIndex];
|
|
21
|
+
const classes = [
|
|
22
|
+
"el-table__cell",
|
|
23
|
+
column.id,
|
|
24
|
+
column.align,
|
|
25
|
+
column.labelClassName,
|
|
26
|
+
...util.getFixedColumnsClass(cellIndex, column.fixed, props.store)
|
|
27
|
+
];
|
|
40
28
|
if (column.className) {
|
|
41
29
|
classes.push(column.className);
|
|
42
30
|
}
|
|
43
|
-
if (isCellHidden(cellIndex, store.states.columns.value, column)) {
|
|
44
|
-
classes.push("is-hidden");
|
|
45
|
-
}
|
|
46
31
|
if (!column.children) {
|
|
47
32
|
classes.push("is-leaf");
|
|
48
33
|
}
|
|
34
|
+
if (hasGutter2 && cellIndex === columns2.length - 1) {
|
|
35
|
+
classes.push("last");
|
|
36
|
+
}
|
|
49
37
|
return classes;
|
|
50
38
|
};
|
|
39
|
+
const getCellStyles = (column, cellIndex, hasGutter2) => {
|
|
40
|
+
const fixedStyle = util.getFixedColumnOffset(cellIndex, column.fixed, props.store);
|
|
41
|
+
util.ensureRightFixedStyle(fixedStyle, hasGutter2);
|
|
42
|
+
util.ensurePosition(fixedStyle, "left");
|
|
43
|
+
util.ensurePosition(fixedStyle, "right");
|
|
44
|
+
return fixedStyle;
|
|
45
|
+
};
|
|
51
46
|
return {
|
|
52
47
|
hasGutter,
|
|
53
|
-
|
|
48
|
+
gutterWidth,
|
|
49
|
+
getCellClasses,
|
|
50
|
+
getCellStyles,
|
|
54
51
|
columns
|
|
55
52
|
};
|
|
56
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-helper.js","sources":["../../../../../../../packages/components/table/src/table-footer/style-helper.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport useMapState from './mapState-helper'\
|
|
1
|
+
{"version":3,"file":"style-helper.js","sources":["../../../../../../../packages/components/table/src/table-footer/style-helper.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport {\n getFixedColumnOffset,\n getFixedColumnsClass,\n ensurePosition,\n ensureRightFixedStyle,\n} from '../util'\nimport useMapState from './mapState-helper'\nimport type { Table } from '../table/defaults'\nimport type { TableColumnCtx } from '../table-column/defaults'\nimport type { TableFooter } from '.'\n\nfunction useStyle<T>(props: TableFooter<T>) {\n const instance = getCurrentInstance()\n const table = instance.parent as Table<T>\n\n const { columns } = useMapState<T>()\n\n const hasGutter = computed(() => {\n return (\n !props.fixed &&\n table.layout.gutterWidth > 0 &&\n table.layout.height.value &&\n table.layout.bodyScrollHeight.value > table.layout.bodyHeight.value\n )\n })\n\n const gutterWidth = computed(() => {\n return table.layout.gutterWidth\n })\n const getCellClasses = (\n columns: TableColumnCtx<T>[],\n cellIndex: number,\n hasGutter: boolean\n ) => {\n const column = columns[cellIndex]\n const classes = [\n 'el-table__cell',\n column.id,\n column.align,\n column.labelClassName,\n ...getFixedColumnsClass(cellIndex, column.fixed, props.store),\n ]\n if (column.className) {\n classes.push(column.className)\n }\n if (!column.children) {\n classes.push('is-leaf')\n }\n if (hasGutter && cellIndex === columns.length - 1) {\n classes.push('last')\n }\n return classes\n }\n\n const getCellStyles = (\n column: TableColumnCtx<T>,\n cellIndex: number,\n hasGutter: boolean\n ) => {\n const fixedStyle = getFixedColumnOffset(\n cellIndex,\n column.fixed,\n props.store\n )\n ensureRightFixedStyle(fixedStyle, hasGutter)\n ensurePosition(fixedStyle, 'left')\n ensurePosition(fixedStyle, 'right')\n return fixedStyle\n }\n\n return {\n hasGutter,\n gutterWidth,\n getCellClasses,\n getCellStyles,\n columns,\n }\n}\n\nexport default useStyle\n"],"names":["getCurrentInstance","useMapState","computed","getFixedColumnsClass","getFixedColumnOffset","ensureRightFixedStyle","ensurePosition"],"mappings":";;;;;;;;AAQA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,MAAM,QAAQ,GAAGA,sBAAkB,EAAE,CAAC;AACxC,EAAE,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;AAChC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAGC,yBAAW,EAAE,CAAC;AACpC,EAAE,MAAM,SAAS,GAAGC,YAAQ,CAAC,MAAM;AACnC,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,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AC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;AAClF,IAAIC,0BAAqB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;AAClD,IAAIC,mBAAc,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACvC,IAAIA,mBAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AACxC,IAAI,OAAO,UAAU,CAAC;AACtB,GAAG,CAAC;AACJ,EAAE,OAAO;AACT,IAAI,SAAS;AACb,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,IAAI,aAAa;AACjB,IAAI,OAAO;AACX,GAAG,CAAC;AACJ;;;;"}
|
|
@@ -34,14 +34,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
}, {
|
|
35
35
|
columns: any;
|
|
36
36
|
filterPanels: Ref<{}>;
|
|
37
|
-
hasGutter: import("vue").ComputedRef<
|
|
37
|
+
hasGutter: import("vue").ComputedRef<boolean>;
|
|
38
|
+
gutterWidth: import("vue").ComputedRef<number>;
|
|
38
39
|
onColumnsChange: (layout: import("../table-layout").default<unknown>) => void;
|
|
39
40
|
onScrollableChange: (layout: import("../table-layout").default<unknown>) => void;
|
|
40
41
|
columnRows: import("vue").ComputedRef<import("../table-column/defaults").TableColumnCtx<unknown>[]>;
|
|
41
42
|
getHeaderRowClass: (rowIndex: number) => string;
|
|
42
43
|
getHeaderRowStyle: (rowIndex: number) => any;
|
|
43
44
|
getHeaderCellClass: (rowIndex: number, columnIndex: number, row: unknown, column: import("../table-column/defaults").TableColumnCtx<unknown>) => string;
|
|
44
|
-
getHeaderCellStyle: (rowIndex: number, columnIndex: number, row: unknown, column: import("../table-column/defaults").TableColumnCtx<unknown
|
|
45
|
+
getHeaderCellStyle: (rowIndex: number, columnIndex: number, row: unknown, column: import("../table-column/defaults").TableColumnCtx<unknown>, hasGutter: boolean) => any;
|
|
45
46
|
handleHeaderClick: (event: Event, column: import("../table-column/defaults").TableColumnCtx<unknown>) => void;
|
|
46
47
|
handleHeaderContextMenu: (event: Event, column: import("../table-column/defaults").TableColumnCtx<unknown>) => void;
|
|
47
48
|
handleMouseDown: (event: MouseEvent, column: import("../table-column/defaults").TableColumnCtx<unknown>) => void;
|
|
@@ -44,7 +44,10 @@ var TableHeader = vue.defineComponent({
|
|
|
44
44
|
const filterPanels = vue.ref({});
|
|
45
45
|
const { tableLayout, onColumnsChange, onScrollableChange } = layoutObserver["default"](parent);
|
|
46
46
|
const hasGutter = vue.computed(() => {
|
|
47
|
-
return !props.fixed && tableLayout.gutterWidth;
|
|
47
|
+
return !props.fixed && tableLayout.gutterWidth > 0 && tableLayout.bodyScrollHeight.value > tableLayout.bodyHeight.value;
|
|
48
|
+
});
|
|
49
|
+
const gutterWidth = vue.computed(() => {
|
|
50
|
+
return tableLayout.gutterWidth;
|
|
48
51
|
});
|
|
49
52
|
vue.onMounted(() => {
|
|
50
53
|
vue.nextTick(() => {
|
|
@@ -78,6 +81,7 @@ var TableHeader = vue.defineComponent({
|
|
|
78
81
|
columns: storeData.columns,
|
|
79
82
|
filterPanels,
|
|
80
83
|
hasGutter,
|
|
84
|
+
gutterWidth,
|
|
81
85
|
onColumnsChange,
|
|
82
86
|
onScrollableChange,
|
|
83
87
|
columnRows,
|
|
@@ -97,67 +101,101 @@ var TableHeader = vue.defineComponent({
|
|
|
97
101
|
};
|
|
98
102
|
},
|
|
99
103
|
render() {
|
|
104
|
+
const {
|
|
105
|
+
columns,
|
|
106
|
+
isGroup,
|
|
107
|
+
hasGutter,
|
|
108
|
+
columnRows,
|
|
109
|
+
gutterWidth,
|
|
110
|
+
getHeaderCellStyle,
|
|
111
|
+
getHeaderCellClass,
|
|
112
|
+
getHeaderRowClass,
|
|
113
|
+
getHeaderRowStyle,
|
|
114
|
+
handleHeaderClick,
|
|
115
|
+
handleHeaderContextMenu,
|
|
116
|
+
handleMouseDown,
|
|
117
|
+
handleMouseMove,
|
|
118
|
+
handleSortClick,
|
|
119
|
+
handleMouseOut,
|
|
120
|
+
store,
|
|
121
|
+
$parent
|
|
122
|
+
} = this;
|
|
123
|
+
let rowSpan = 1;
|
|
100
124
|
return vue.h("table", {
|
|
101
125
|
border: "0",
|
|
102
126
|
cellpadding: "0",
|
|
103
127
|
cellspacing: "0",
|
|
104
128
|
class: "el-table__header"
|
|
105
129
|
}, [
|
|
106
|
-
hHelper.hColgroup(
|
|
130
|
+
hHelper.hColgroup(columns, hasGutter),
|
|
107
131
|
vue.h("thead", {
|
|
108
|
-
class: { "is-group":
|
|
109
|
-
},
|
|
110
|
-
class:
|
|
132
|
+
class: { "is-group": isGroup, "has-gutter": hasGutter }
|
|
133
|
+
}, columnRows.map((subColumns, rowIndex) => vue.h("tr", {
|
|
134
|
+
class: getHeaderRowClass(rowIndex),
|
|
111
135
|
key: rowIndex,
|
|
112
|
-
style:
|
|
113
|
-
}, subColumns.map((column, cellIndex) =>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : "",
|
|
129
|
-
column.labelClassName
|
|
130
|
-
]
|
|
136
|
+
style: getHeaderRowStyle(rowIndex)
|
|
137
|
+
}, subColumns.map((column, cellIndex) => {
|
|
138
|
+
if (column.rowSpan > rowSpan) {
|
|
139
|
+
rowSpan = column.rowSpan;
|
|
140
|
+
}
|
|
141
|
+
return vue.h("th", {
|
|
142
|
+
class: getHeaderCellClass(rowIndex, cellIndex, subColumns, column),
|
|
143
|
+
colspan: column.colSpan,
|
|
144
|
+
key: `${column.id}-thead`,
|
|
145
|
+
rowSpan: column.rowSpan,
|
|
146
|
+
style: getHeaderCellStyle(rowIndex, cellIndex, subColumns, column, hasGutter),
|
|
147
|
+
onClick: ($event) => handleHeaderClick($event, column),
|
|
148
|
+
onContextmenu: ($event) => handleHeaderContextMenu($event, column),
|
|
149
|
+
onMousedown: ($event) => handleMouseDown($event, column),
|
|
150
|
+
onMousemove: ($event) => handleMouseMove($event, column),
|
|
151
|
+
onMouseout: handleMouseOut
|
|
131
152
|
}, [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
column.sortable && vue.h("span", {
|
|
139
|
-
onClick: ($event) => this.handleSortClick($event, column),
|
|
140
|
-
class: "caret-wrapper"
|
|
153
|
+
vue.h("div", {
|
|
154
|
+
class: [
|
|
155
|
+
"cell",
|
|
156
|
+
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : "",
|
|
157
|
+
column.labelClassName
|
|
158
|
+
]
|
|
141
159
|
}, [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
160
|
+
column.renderHeader ? column.renderHeader({
|
|
161
|
+
column,
|
|
162
|
+
$index: cellIndex,
|
|
163
|
+
store,
|
|
164
|
+
_self: $parent
|
|
165
|
+
}) : column.label,
|
|
166
|
+
column.sortable && vue.h("span", {
|
|
167
|
+
onClick: ($event) => handleSortClick($event, column),
|
|
168
|
+
class: "caret-wrapper"
|
|
169
|
+
}, [
|
|
170
|
+
vue.h("i", {
|
|
171
|
+
onClick: ($event) => handleSortClick($event, column, "ascending"),
|
|
172
|
+
class: "sort-caret ascending"
|
|
173
|
+
}),
|
|
174
|
+
vue.h("i", {
|
|
175
|
+
onClick: ($event) => handleSortClick($event, column, "descending"),
|
|
176
|
+
class: "sort-caret descending"
|
|
177
|
+
})
|
|
178
|
+
]),
|
|
179
|
+
column.filterable && vue.h(filterPanel_vue_vue_type_script_lang["default"], {
|
|
180
|
+
store: $parent.store,
|
|
181
|
+
placement: column.filterPlacement || "bottom-start",
|
|
182
|
+
column,
|
|
183
|
+
upDataColumn: (key, value) => {
|
|
184
|
+
column[key] = value;
|
|
185
|
+
}
|
|
149
186
|
})
|
|
150
|
-
])
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
187
|
+
])
|
|
188
|
+
]);
|
|
189
|
+
}).concat(hasGutter && rowIndex === 0 ? [
|
|
190
|
+
vue.h("th", {
|
|
191
|
+
class: "el-table__fixed-right-patch el-table__cell",
|
|
192
|
+
key: `el-table--scrollbar`,
|
|
193
|
+
rowSpan,
|
|
194
|
+
style: {
|
|
195
|
+
width: `${gutterWidth}px`
|
|
196
|
+
}
|
|
197
|
+
}, [])
|
|
198
|
+
] : []))))
|
|
161
199
|
]);
|
|
162
200
|
}
|
|
163
201
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-header/index.ts"],"sourcesContent":["import {\n defineComponent,\n getCurrentInstance,\n computed,\n onMounted,\n nextTick,\n ref,\n h,\n} from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport FilterPanel from '../filter-panel.vue'\nimport useLayoutObserver from '../layout-observer'\nimport { hColgroup } from '../h-helper'\nimport useEvent from './event-helper'\nimport useStyle from './style.helper'\nimport useUtils from './utils-helper'\n\nimport type { ComponentInternalInstance, Ref, PropType } from 'vue'\nimport type { DefaultRow, Sort, Table } from '../table/defaults'\nimport type { Store } from '../store'\nexport interface TableHeader extends ComponentInternalInstance {\n state: {\n onColumnsChange\n onScrollableChange\n }\n filterPanels: Ref<unknown>\n}\nexport interface TableHeaderProps<T> {\n fixed: string\n store: Store<T>\n border: boolean\n defaultSort: Sort\n}\n\nexport default defineComponent({\n name: 'ElTableHeader',\n components: {\n ElCheckbox,\n },\n props: {\n fixed: {\n type: String,\n default: '',\n },\n store: {\n required: true,\n type: Object as PropType<TableHeaderProps<DefaultRow>['store']>,\n },\n border: Boolean,\n defaultSort: {\n type: Object as PropType<TableHeaderProps<DefaultRow>['defaultSort']>,\n default: () => {\n return {\n prop: '',\n order: '',\n }\n },\n },\n },\n setup(props, { emit }) {\n const instance = getCurrentInstance() as TableHeader\n const parent = instance.parent as Table<unknown>\n const storeData = parent.store.states\n const filterPanels = ref({})\n const { tableLayout, onColumnsChange, onScrollableChange } =\n useLayoutObserver(parent)\n const hasGutter = computed(() => {\n return !props.fixed && tableLayout.gutterWidth\n })\n onMounted(() => {\n nextTick(() => {\n const { prop, order } = props.defaultSort\n const init = true\n parent.store.commit('sort', { prop, order, init })\n })\n })\n const {\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n } = useEvent(props as TableHeaderProps<unknown>, emit)\n const {\n getHeaderRowStyle,\n getHeaderRowClass,\n getHeaderCellStyle,\n getHeaderCellClass,\n } = useStyle(props as TableHeaderProps<unknown>)\n const { isGroup, toggleAllSelection, columnRows } = useUtils(\n props as TableHeaderProps<unknown>\n )\n\n instance.state = {\n onColumnsChange,\n onScrollableChange,\n }\n // eslint-disable-next-line\n instance.filterPanels = filterPanels\n\n return {\n columns: storeData.columns,\n filterPanels,\n hasGutter,\n onColumnsChange,\n onScrollableChange,\n columnRows,\n getHeaderRowClass,\n getHeaderRowStyle,\n getHeaderCellClass,\n getHeaderCellStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n isGroup,\n toggleAllSelection,\n }\n },\n render() {\n return h(\n 'table',\n {\n border: '0',\n cellpadding: '0',\n cellspacing: '0',\n class: 'el-table__header',\n },\n [\n hColgroup(this.columns, this.hasGutter),\n h(\n 'thead',\n {\n class: { 'is-group': this.isGroup, 'has-gutter': this.hasGutter },\n },\n this.columnRows.map((subColumns, rowIndex) =>\n h(\n 'tr',\n {\n class: this.getHeaderRowClass(rowIndex),\n key: rowIndex,\n style: this.getHeaderRowStyle(rowIndex),\n },\n subColumns.map((column, cellIndex) =>\n h(\n 'th',\n {\n class: this.getHeaderCellClass(\n rowIndex,\n cellIndex,\n subColumns,\n column\n ),\n colspan: column.colSpan,\n key: `${column.id}-thead`,\n rowSpan: column.rowSpan,\n style: this.getHeaderCellStyle(\n rowIndex,\n cellIndex,\n subColumns,\n column\n ),\n onClick: ($event) => this.handleHeaderClick($event, column),\n onContextmenu: ($event) =>\n this.handleHeaderContextMenu($event, column),\n onMousedown: ($event) =>\n this.handleMouseDown($event, column),\n onMousemove: ($event) =>\n this.handleMouseMove($event, column),\n onMouseout: this.handleMouseOut,\n },\n [\n h(\n 'div',\n {\n class: [\n 'cell',\n column.filteredValue &&\n column.filteredValue.length > 0\n ? 'highlight'\n : '',\n column.labelClassName,\n ],\n },\n [\n column.renderHeader\n ? column.renderHeader({\n column,\n $index: cellIndex,\n store: this.store,\n _self: this.$parent,\n })\n : column.label,\n column.sortable &&\n h(\n 'span',\n {\n onClick: ($event) =>\n this.handleSortClick($event, column),\n class: 'caret-wrapper',\n },\n [\n h('i', {\n onClick: ($event) =>\n this.handleSortClick(\n $event,\n column,\n 'ascending'\n ),\n class: 'sort-caret ascending',\n }),\n h('i', {\n onClick: ($event) =>\n this.handleSortClick(\n $event,\n column,\n 'descending'\n ),\n class: 'sort-caret descending',\n }),\n ]\n ),\n column.filterable &&\n h(FilterPanel, {\n store: this.$parent.store,\n placement: column.filterPlacement || 'bottom-start',\n column,\n upDataColumn: (key, value) => {\n column[key] = value\n },\n }),\n ]\n ),\n ]\n )\n )\n )\n )\n ),\n ]\n )\n },\n})\n"],"names":["defineComponent","ElCheckbox","getCurrentInstance","ref","useLayoutObserver","computed","onMounted","nextTick","useEvent","useStyle","useUtils","h","hColgroup","FilterPanel"],"mappings":";;;;;;;;;;;;;;AAgBA,kBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,UAAU,EAAE;AACd,gBAAIC,gBAAU;AACd,GAAG;AACH,EAAE,KAAK,EAAE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eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC;AACrF,cAAc,KAAK,EAAE,uBAAuB;AAC5C,aAAa,CAAC;AACd,WAAW,CAAC;AACZ,UAAU,MAAM,CAAC,UAAU,IAAIA,KAAC,CAACE,+CAAW,EAAE;AAC9C,YAAY,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK;AACrC,YAAY,SAAS,EAAE,MAAM,CAAC,eAAe,IAAI,cAAc;AAC/D,YAAY,MAAM;AAClB,YAAY,YAAY,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK;AAC1C,cAAc,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAClC,aAAa;AACb,WAAW,CAAC;AACZ,SAAS,CAAC;AACV,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACZ,KAAK,CAAC,CAAC;AACP,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../packages/components/table/src/table-header/index.ts"],"sourcesContent":["import {\n defineComponent,\n getCurrentInstance,\n computed,\n onMounted,\n nextTick,\n ref,\n h,\n} from 'vue'\nimport ElCheckbox from '@element-plus/components/checkbox'\nimport FilterPanel from '../filter-panel.vue'\nimport useLayoutObserver from '../layout-observer'\nimport { hColgroup } from '../h-helper'\nimport useEvent from './event-helper'\nimport useStyle from './style.helper'\nimport useUtils from './utils-helper'\n\nimport type { ComponentInternalInstance, Ref, PropType } from 'vue'\nimport type { DefaultRow, Sort, Table } from '../table/defaults'\nimport type { Store } from '../store'\nexport interface TableHeader extends ComponentInternalInstance {\n state: {\n onColumnsChange\n onScrollableChange\n }\n filterPanels: Ref<unknown>\n}\nexport interface TableHeaderProps<T> {\n fixed: string\n store: Store<T>\n border: boolean\n defaultSort: Sort\n}\n\nexport default defineComponent({\n name: 'ElTableHeader',\n components: {\n ElCheckbox,\n },\n props: {\n fixed: {\n type: String,\n default: '',\n },\n store: {\n required: true,\n type: Object as PropType<TableHeaderProps<DefaultRow>['store']>,\n },\n border: Boolean,\n defaultSort: {\n type: Object as PropType<TableHeaderProps<DefaultRow>['defaultSort']>,\n default: () => {\n return {\n prop: '',\n order: '',\n }\n },\n },\n },\n setup(props, { emit }) {\n const instance = getCurrentInstance() as TableHeader\n const parent = instance.parent as Table<unknown>\n const storeData = parent.store.states\n const filterPanels = ref({})\n const { tableLayout, onColumnsChange, onScrollableChange } =\n useLayoutObserver(parent)\n const hasGutter = computed(() => {\n return (\n !props.fixed &&\n tableLayout.gutterWidth > 0 &&\n tableLayout.bodyScrollHeight.value > tableLayout.bodyHeight.value\n )\n })\n const gutterWidth = computed(() => {\n return tableLayout.gutterWidth\n })\n onMounted(() => {\n nextTick(() => {\n const { prop, order } = props.defaultSort\n const init = true\n parent.store.commit('sort', { prop, order, init })\n })\n })\n const {\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n } = useEvent(props as TableHeaderProps<unknown>, emit)\n const {\n getHeaderRowStyle,\n getHeaderRowClass,\n getHeaderCellStyle,\n getHeaderCellClass,\n } = useStyle(props as TableHeaderProps<unknown>)\n const { isGroup, toggleAllSelection, columnRows } = useUtils(\n props as TableHeaderProps<unknown>\n )\n\n instance.state = {\n onColumnsChange,\n onScrollableChange,\n }\n // eslint-disable-next-line\n instance.filterPanels = filterPanels\n\n return {\n columns: storeData.columns,\n filterPanels,\n hasGutter,\n gutterWidth,\n onColumnsChange,\n onScrollableChange,\n columnRows,\n getHeaderRowClass,\n getHeaderRowStyle,\n getHeaderCellClass,\n getHeaderCellStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleMouseOut,\n handleSortClick,\n handleFilterClick,\n isGroup,\n toggleAllSelection,\n }\n },\n render() {\n const {\n columns,\n isGroup,\n hasGutter,\n columnRows,\n gutterWidth,\n getHeaderCellStyle,\n getHeaderCellClass,\n getHeaderRowClass,\n getHeaderRowStyle,\n handleHeaderClick,\n handleHeaderContextMenu,\n handleMouseDown,\n handleMouseMove,\n handleSortClick,\n handleMouseOut,\n store,\n $parent,\n } = this\n let rowSpan = 1\n return h(\n 'table',\n {\n border: '0',\n cellpadding: '0',\n cellspacing: '0',\n class: 'el-table__header',\n },\n [\n hColgroup(columns, hasGutter),\n h(\n 'thead',\n {\n class: { 'is-group': isGroup, 'has-gutter': hasGutter },\n },\n columnRows.map((subColumns, rowIndex) =>\n h(\n 'tr',\n {\n class: getHeaderRowClass(rowIndex),\n key: rowIndex,\n style: getHeaderRowStyle(rowIndex),\n },\n subColumns\n .map((column, cellIndex) => {\n if (column.rowSpan > rowSpan) {\n rowSpan = column.rowSpan\n }\n return h(\n 'th',\n {\n class: getHeaderCellClass(\n rowIndex,\n cellIndex,\n subColumns,\n column\n ),\n colspan: column.colSpan,\n key: `${column.id}-thead`,\n rowSpan: column.rowSpan,\n style: getHeaderCellStyle(\n rowIndex,\n cellIndex,\n subColumns,\n column,\n hasGutter\n ),\n onClick: ($event) => handleHeaderClick($event, column),\n onContextmenu: ($event) =>\n handleHeaderContextMenu($event, column),\n onMousedown: ($event) => handleMouseDown($event, column),\n onMousemove: ($event) => handleMouseMove($event, column),\n onMouseout: handleMouseOut,\n },\n [\n h(\n 'div',\n {\n class: [\n 'cell',\n column.filteredValue &&\n column.filteredValue.length > 0\n ? 'highlight'\n : '',\n column.labelClassName,\n ],\n },\n [\n column.renderHeader\n ? column.renderHeader({\n column,\n $index: cellIndex,\n store,\n _self: $parent,\n })\n : column.label,\n column.sortable &&\n h(\n 'span',\n {\n onClick: ($event) =>\n handleSortClick($event, column),\n class: 'caret-wrapper',\n },\n [\n h('i', {\n onClick: ($event) =>\n handleSortClick(\n $event,\n column,\n 'ascending'\n ),\n class: 'sort-caret ascending',\n }),\n h('i', {\n onClick: ($event) =>\n handleSortClick(\n $event,\n column,\n 'descending'\n ),\n class: 'sort-caret descending',\n }),\n ]\n ),\n column.filterable &&\n h(FilterPanel, {\n store: $parent.store,\n placement:\n column.filterPlacement || 'bottom-start',\n column,\n upDataColumn: (key, value) => {\n column[key] = value\n },\n }),\n ]\n ),\n ]\n )\n })\n .concat(\n hasGutter && rowIndex === 0\n ? [\n h(\n 'th',\n {\n class: 'el-table__fixed-right-patch el-table__cell',\n key: `el-table--scrollbar`,\n rowSpan,\n style: {\n width: `${gutterWidth}px`,\n },\n },\n []\n ),\n ]\n : []\n )\n )\n )\n ),\n ]\n )\n },\n})\n"],"names":["defineComponent","ElCheckbox","getCurrentInstance","ref","useLayoutObserver","computed","onMounted","nextTick","useEvent","useStyle","useUtils","h","hColgroup","FilterPanel"],"mappings":";;;;;;;;;;;;;;AAgBA,kBAAeA,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,eAAe;AACvB,EAAE,UAAU,EAAE;AACd,gBAAIC,gBAAU;AACd,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,KAAK,EAAE;AACX,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE,EAAE;AACjB,KAAK;AACL,IAAI,KAAK,EAAE;AACX,MAAM,QAAQ,EAAE,IAAI;AACpB,MAAM,IAAI,EAAE,MAAM;AAClB,KAAK;AACL,IAAI,MAAM,EAAE,OAAO;AACnB,IAAI,WAAW,EAAE;AACjB,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE,MAAM;AACrB,QAAQ,OAAO;AACf,UAAU,IAAI,EAAE,EAAE;AAClB,UAAU,KAAK,EAAE,EAAE;AACnB,SAAS,CAAC;AACV,OAAO;AACP,KAAK;AACL,GAAG;AACH,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE;AACzB,IAAI,MAAM,QAAQ,GAAGC,sBAAkB,EAAE,CAAC;AAC1C,IAAI,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;AACnC,IAAI,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;AAC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U,IAAIA,KAAC,CAACE,+CAAW,EAAE;AAChD,cAAc,KAAK,EAAE,OAAO,CAAC,KAAK;AAClC,cAAc,SAAS,EAAE,MAAM,CAAC,eAAe,IAAI,cAAc;AACjE,cAAc,MAAM;AACpB,cAAc,YAAY,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK;AAC5C,gBAAgB,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACpC,eAAe;AACf,aAAa,CAAC;AACd,WAAW,CAAC;AACZ,SAAS,CAAC,CAAC;AACX,OAAO,CAAC,CAAC,MAAM,CAAC,SAAS,IAAI,QAAQ,KAAK,CAAC,GAAG;AAC9C,QAAQF,KAAC,CAAC,IAAI,EAAE;AAChB,UAAU,KAAK,EAAE,4CAA4C;AAC7D,UAAU,GAAG,EAAE,CAAC,mBAAmB,CAAC;AACpC,UAAU,OAAO;AACjB,UAAU,KAAK,EAAE;AACjB,YAAY,KAAK,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC;AACrC,WAAW;AACX,SAAS,EAAE,EAAE,CAAC;AACd,OAAO,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAChB,KAAK,CAAC,CAAC;AACP,GAAG;AACH,CAAC,CAAC;;;;"}
|
|
@@ -3,7 +3,7 @@ import type { TableHeaderProps } from '.';
|
|
|
3
3
|
declare function useStyle<T>(props: TableHeaderProps<T>): {
|
|
4
4
|
getHeaderRowStyle: (rowIndex: number) => any;
|
|
5
5
|
getHeaderRowClass: (rowIndex: number) => string;
|
|
6
|
-
getHeaderCellStyle: (rowIndex: number, columnIndex: number, row: T, column: TableColumnCtx<T
|
|
6
|
+
getHeaderCellStyle: (rowIndex: number, columnIndex: number, row: T, column: TableColumnCtx<T>, hasGutter: boolean) => any;
|
|
7
7
|
getHeaderCellClass: (rowIndex: number, columnIndex: number, row: T, column: TableColumnCtx<T>) => string;
|
|
8
8
|
};
|
|
9
9
|
export default useStyle;
|