element-ps 2.0.39 → 2.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +325 -442
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +325 -442
- package/es/components/autocomplete/index.d.ts +5 -5
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +29 -61
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +61 -29
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/backtop/index.mjs +2 -2
- package/es/components/backtop/src/backtop.mjs +59 -18
- package/es/components/backtop/src/backtop.mjs.map +1 -1
- package/es/components/backtop/src/backtop2.mjs +18 -59
- package/es/components/backtop/src/backtop2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +2 -2
- package/es/components/carousel/src/carousel-item.mjs +7 -148
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +148 -7
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/cascader/src/index.mjs +2 -2
- package/es/components/check-tag/index.mjs +2 -2
- package/es/components/check-tag/src/check-tag.mjs +20 -7
- package/es/components/check-tag/src/check-tag.mjs.map +1 -1
- package/es/components/check-tag/src/check-tag2.mjs +7 -20
- package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +61 -14
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +14 -61
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/drawer/index.mjs +2 -2
- package/es/components/drawer/src/drawer.mjs +117 -23
- package/es/components/drawer/src/drawer.mjs.map +1 -1
- package/es/components/drawer/src/drawer2.mjs +23 -117
- package/es/components/drawer/src/drawer2.mjs.map +1 -1
- package/es/components/dropdown/index.d.ts +3 -3
- package/es/components/dropdown/src/dropdown.d.ts +1 -1
- package/es/components/dropdown/src/dropdown.mjs +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +3 -3
- package/es/components/empty/index.mjs +2 -2
- package/es/components/empty/src/empty.mjs +56 -11
- package/es/components/empty/src/empty.mjs.map +1 -1
- package/es/components/empty/src/empty2.mjs +11 -56
- package/es/components/empty/src/empty2.mjs.map +1 -1
- package/es/components/form/index.mjs +2 -2
- package/es/components/form/src/form.mjs +45 -40
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +40 -45
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/icon/index.mjs +2 -2
- package/es/components/icon/src/icon.mjs +35 -8
- package/es/components/icon/src/icon.mjs.map +1 -1
- package/es/components/icon/src/icon2.mjs +8 -35
- package/es/components/icon/src/icon2.mjs.map +1 -1
- package/es/components/image-viewer/index.mjs +2 -2
- package/es/components/image-viewer/src/image-viewer.mjs +31 -210
- package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +210 -31
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +27 -27
- package/es/components/menu/index.d.ts +3 -3
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +35 -4
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +4 -35
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/menu/src/menu.d.ts +4 -4
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +22 -53
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +53 -22
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popover/index.d.ts +6 -6
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/popover/src/popover.d.ts +1 -1
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +4 -4
- package/es/components/popper/src/arrow.mjs +7 -31
- package/es/components/popper/src/arrow.mjs.map +1 -1
- package/es/components/popper/src/arrow2.mjs +31 -7
- package/es/components/popper/src/arrow2.mjs.map +1 -1
- package/es/components/popper/src/trigger.mjs +28 -17
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +17 -28
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/progress/index.mjs +2 -2
- package/es/components/progress/src/progress.mjs +57 -230
- package/es/components/progress/src/progress.mjs.map +1 -1
- package/es/components/progress/src/progress2.mjs +230 -57
- package/es/components/progress/src/progress2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-group.mjs +37 -18
- package/es/components/radio/src/radio-group.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +18 -37
- package/es/components/radio/src/radio-group2.mjs.map +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +169 -84
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +84 -169
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/result/index.mjs +2 -2
- package/es/components/result/src/result.mjs +28 -73
- package/es/components/result/src/result.mjs.map +1 -1
- package/es/components/result/src/result2.mjs +73 -28
- package/es/components/result/src/result2.mjs.map +1 -1
- package/es/components/select/index.d.ts +5 -5
- package/es/components/select/src/select.mjs +2 -2
- package/es/components/select/src/select.vue.d.ts +5 -5
- package/es/components/select/src/useSelect.d.ts +5 -5
- package/es/components/select-v2/index.d.ts +10 -10
- package/es/components/select-v2/src/defaults.mjs +1 -1
- package/es/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +5 -5
- package/es/components/select-v2/src/useSelect.d.ts +5 -5
- package/es/components/table/index.d.ts +86 -39
- package/es/components/table/src/config.mjs +0 -3
- package/es/components/table/src/config.mjs.map +1 -1
- package/es/components/table/src/filter-panel.mjs +1 -8
- package/es/components/table/src/filter-panel.mjs.map +1 -1
- package/es/components/table/src/filter-panel.vue.d.ts +5 -5
- package/es/components/table/src/store/current.mjs +12 -14
- package/es/components/table/src/store/current.mjs.map +1 -1
- package/es/components/table/src/store/index.mjs +9 -9
- package/es/components/table/src/store/index.mjs.map +1 -1
- package/es/components/table/src/store/watcher.mjs +1 -11
- package/es/components/table/src/store/watcher.mjs.map +1 -1
- package/es/components/table/src/table/defaults.d.ts +4 -8
- package/es/components/table/src/table/defaults.mjs +4 -3
- package/es/components/table/src/table/defaults.mjs.map +1 -1
- package/es/components/table/src/table/style-helper.d.ts +34 -24
- package/es/components/table/src/table/style-helper.mjs +120 -107
- package/es/components/table/src/table/style-helper.mjs.map +1 -1
- package/es/components/table/src/table/utils-helper.d.ts +1 -1
- package/es/components/table/src/table/utils-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/events-helper.d.ts +3 -1
- package/es/components/table/src/table-body/events-helper.mjs +3 -3
- package/es/components/table/src/table-body/events-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/index.mjs +5 -1
- package/es/components/table/src/table-body/index.mjs.map +1 -1
- package/es/components/table/src/table-body/render-helper.mjs +3 -6
- package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
- package/es/components/table/src/table-body/styles-helper.d.ts +1 -1
- package/es/components/table/src/table-body/styles-helper.mjs +3 -3
- package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
- package/es/components/table/src/table-column/render-helper.mjs +2 -4
- package/es/components/table/src/table-column/render-helper.mjs.map +1 -1
- package/es/components/table/src/table-footer/index.mjs +1 -1
- package/es/components/table/src/table-footer/index.mjs.map +1 -1
- package/es/components/table/src/table-header/event-helper.mjs +9 -5
- package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
- package/es/components/table/src/table-header/index.mjs +2 -1
- package/es/components/table/src/table-header/index.mjs.map +1 -1
- package/es/components/table/src/table-header/style.helper.mjs +2 -2
- package/es/components/table/src/table-header/style.helper.mjs.map +1 -1
- package/es/components/table/src/table-layout.d.ts +6 -1
- package/es/components/table/src/table-layout.mjs +64 -0
- package/es/components/table/src/table-layout.mjs.map +1 -1
- package/es/components/table/src/table.mjs +35 -31
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +86 -39
- package/es/components/table/src/util.d.ts +7 -7
- package/es/components/table/src/util.mjs +52 -68
- package/es/components/table/src/util.mjs.map +1 -1
- package/es/components/table-v2/src/components/header.d.ts +1 -1
- package/es/components/table-v2/src/table-grid.d.ts +1 -1
- package/es/components/table-v2/src/table-v2.d.ts +1 -1
- package/es/components/tabs/index.mjs +1 -1
- package/es/components/tabs/src/tab-bar.mjs +7 -76
- package/es/components/tabs/src/tab-bar.mjs.map +1 -1
- package/es/components/tabs/src/tab-bar2.mjs +76 -7
- package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
- package/es/components/tabs/src/tab-nav.mjs +1 -1
- package/es/components/tag/index.mjs +2 -2
- package/es/components/tag/src/tag.mjs +81 -33
- package/es/components/tag/src/tag.mjs.map +1 -1
- package/es/components/tag/src/tag2.mjs +33 -81
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +5 -5
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tooltip/index.mjs +2 -2
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.mjs +53 -64
- package/es/components/tooltip/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +3 -3
- package/es/components/tooltip/src/tooltip2.mjs +64 -53
- package/es/components/tooltip/src/tooltip2.mjs.map +1 -1
- package/es/components/tooltip/src/trigger.mjs +2 -2
- package/es/components/tooltip/src/trigger.vue.d.ts +3 -3
- package/es/components/tooltip-v2/index.mjs +3 -3
- package/es/components/tooltip-v2/src/root.mjs +81 -17
- package/es/components/tooltip-v2/src/root.mjs.map +1 -1
- package/es/components/tooltip-v2/src/root2.mjs +17 -81
- package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
- package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
- package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
- package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
- package/es/components/upload/index.mjs +5 -5
- package/es/components/upload/src/upload-content.mjs +46 -15
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +15 -46
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger.mjs +11 -32
- package/es/components/upload/src/upload-dragger.mjs.map +1 -1
- package/es/components/upload/src/upload-dragger2.mjs +32 -11
- package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
- package/es/components/upload/src/upload-list.mjs +26 -155
- package/es/components/upload/src/upload-list.mjs.map +1 -1
- package/es/components/upload/src/upload-list2.mjs +155 -26
- package/es/components/upload/src/upload-list2.mjs.map +1 -1
- package/es/components/upload/src/upload.mjs +106 -99
- package/es/components/upload/src/upload.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +99 -106
- package/es/components/upload/src/upload2.mjs.map +1 -1
- package/es/index.mjs +27 -27
- package/lib/components/autocomplete/index.d.ts +5 -5
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +5 -5
- package/lib/components/autocomplete/src/autocomplete2.js +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +29 -61
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +61 -29
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/backtop/index.js +2 -2
- package/lib/components/backtop/src/backtop.js +59 -18
- package/lib/components/backtop/src/backtop.js.map +1 -1
- package/lib/components/backtop/src/backtop2.js +18 -59
- package/lib/components/backtop/src/backtop2.js.map +1 -1
- package/lib/components/carousel/index.js +2 -2
- package/lib/components/carousel/src/carousel-item.js +7 -148
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +148 -7
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/cascader/src/index.js +2 -2
- package/lib/components/check-tag/index.js +2 -2
- package/lib/components/check-tag/src/check-tag.js +20 -7
- package/lib/components/check-tag/src/check-tag.js.map +1 -1
- package/lib/components/check-tag/src/check-tag2.js +7 -20
- package/lib/components/check-tag/src/check-tag2.js.map +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +61 -16
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +16 -61
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/drawer/index.js +2 -2
- package/lib/components/drawer/src/drawer.js +117 -23
- package/lib/components/drawer/src/drawer.js.map +1 -1
- package/lib/components/drawer/src/drawer2.js +23 -117
- package/lib/components/drawer/src/drawer2.js.map +1 -1
- package/lib/components/dropdown/index.d.ts +3 -3
- package/lib/components/dropdown/src/dropdown.d.ts +1 -1
- package/lib/components/dropdown/src/dropdown.js +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +3 -3
- package/lib/components/empty/index.js +2 -2
- package/lib/components/empty/src/empty.js +56 -11
- package/lib/components/empty/src/empty.js.map +1 -1
- package/lib/components/empty/src/empty2.js +11 -56
- package/lib/components/empty/src/empty2.js.map +1 -1
- package/lib/components/form/index.js +2 -2
- package/lib/components/form/src/form.js +45 -40
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +40 -45
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/icon/index.js +2 -2
- package/lib/components/icon/src/icon.js +35 -8
- package/lib/components/icon/src/icon.js.map +1 -1
- package/lib/components/icon/src/icon2.js +8 -35
- package/lib/components/icon/src/icon2.js.map +1 -1
- package/lib/components/image-viewer/index.js +2 -2
- package/lib/components/image-viewer/src/image-viewer.js +31 -210
- package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +210 -31
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +27 -27
- package/lib/components/menu/index.d.ts +3 -3
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +35 -4
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +4 -35
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/menu/src/menu.d.ts +4 -4
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +22 -53
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +53 -22
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popover/index.d.ts +6 -6
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/popover/src/popover.d.ts +1 -1
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +4 -4
- package/lib/components/popper/src/arrow.js +7 -31
- package/lib/components/popper/src/arrow.js.map +1 -1
- package/lib/components/popper/src/arrow2.js +31 -7
- package/lib/components/popper/src/arrow2.js.map +1 -1
- package/lib/components/popper/src/trigger.js +28 -17
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +17 -28
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/progress/index.js +2 -2
- package/lib/components/progress/src/progress.js +57 -230
- package/lib/components/progress/src/progress.js.map +1 -1
- package/lib/components/progress/src/progress2.js +230 -57
- package/lib/components/progress/src/progress2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-group.js +37 -18
- package/lib/components/radio/src/radio-group.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +18 -37
- package/lib/components/radio/src/radio-group2.js.map +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +169 -84
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +84 -169
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/result/index.js +2 -2
- package/lib/components/result/src/result.js +30 -73
- package/lib/components/result/src/result.js.map +1 -1
- package/lib/components/result/src/result2.js +73 -30
- package/lib/components/result/src/result2.js.map +1 -1
- package/lib/components/select/index.d.ts +5 -5
- package/lib/components/select/src/select.js +2 -2
- package/lib/components/select/src/select.vue.d.ts +5 -5
- package/lib/components/select/src/useSelect.d.ts +5 -5
- package/lib/components/select-v2/index.d.ts +10 -10
- package/lib/components/select-v2/src/defaults.js +1 -1
- package/lib/components/select-v2/src/option-item.vue.d.ts +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +5 -5
- package/lib/components/select-v2/src/useSelect.d.ts +5 -5
- package/lib/components/table/index.d.ts +86 -39
- package/lib/components/table/src/config.js +0 -3
- package/lib/components/table/src/config.js.map +1 -1
- package/lib/components/table/src/filter-panel.js +0 -7
- package/lib/components/table/src/filter-panel.js.map +1 -1
- package/lib/components/table/src/filter-panel.vue.d.ts +5 -5
- package/lib/components/table/src/store/current.js +12 -14
- package/lib/components/table/src/store/current.js.map +1 -1
- package/lib/components/table/src/store/index.js +8 -8
- package/lib/components/table/src/store/index.js.map +1 -1
- package/lib/components/table/src/store/watcher.js +1 -11
- package/lib/components/table/src/store/watcher.js.map +1 -1
- package/lib/components/table/src/table/defaults.d.ts +4 -8
- package/lib/components/table/src/table/defaults.js +4 -3
- package/lib/components/table/src/table/defaults.js.map +1 -1
- package/lib/components/table/src/table/style-helper.d.ts +34 -24
- package/lib/components/table/src/table/style-helper.js +119 -106
- package/lib/components/table/src/table/style-helper.js.map +1 -1
- package/lib/components/table/src/table/utils-helper.d.ts +1 -1
- package/lib/components/table/src/table/utils-helper.js.map +1 -1
- package/lib/components/table/src/table-body/events-helper.d.ts +3 -1
- package/lib/components/table/src/table-body/events-helper.js +3 -3
- package/lib/components/table/src/table-body/events-helper.js.map +1 -1
- package/lib/components/table/src/table-body/index.js +4 -0
- package/lib/components/table/src/table-body/index.js.map +1 -1
- package/lib/components/table/src/table-body/render-helper.js +3 -6
- package/lib/components/table/src/table-body/render-helper.js.map +1 -1
- package/lib/components/table/src/table-body/styles-helper.d.ts +1 -1
- package/lib/components/table/src/table-body/styles-helper.js +3 -3
- package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
- package/lib/components/table/src/table-column/render-helper.js +2 -4
- package/lib/components/table/src/table-column/render-helper.js.map +1 -1
- package/lib/components/table/src/table-footer/index.js +1 -1
- package/lib/components/table/src/table-footer/index.js.map +1 -1
- package/lib/components/table/src/table-header/event-helper.js +9 -5
- package/lib/components/table/src/table-header/event-helper.js.map +1 -1
- package/lib/components/table/src/table-header/index.js +2 -1
- package/lib/components/table/src/table-header/index.js.map +1 -1
- package/lib/components/table/src/table-header/style.helper.js +2 -2
- package/lib/components/table/src/table-header/style.helper.js.map +1 -1
- package/lib/components/table/src/table-layout.d.ts +6 -1
- package/lib/components/table/src/table-layout.js +64 -0
- package/lib/components/table/src/table-layout.js.map +1 -1
- package/lib/components/table/src/table.js +35 -31
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +86 -39
- package/lib/components/table/src/util.d.ts +7 -7
- package/lib/components/table/src/util.js +52 -68
- package/lib/components/table/src/util.js.map +1 -1
- package/lib/components/table-v2/src/components/header.d.ts +1 -1
- package/lib/components/table-v2/src/table-grid.d.ts +1 -1
- package/lib/components/table-v2/src/table-v2.d.ts +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/tabs/src/tab-bar.js +7 -76
- package/lib/components/tabs/src/tab-bar.js.map +1 -1
- package/lib/components/tabs/src/tab-bar2.js +76 -7
- package/lib/components/tabs/src/tab-bar2.js.map +1 -1
- package/lib/components/tabs/src/tab-nav.js +1 -1
- package/lib/components/tag/index.js +2 -2
- package/lib/components/tag/src/tag.js +81 -34
- package/lib/components/tag/src/tag.js.map +1 -1
- package/lib/components/tag/src/tag2.js +34 -81
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +5 -5
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tooltip/index.js +2 -2
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.js +50 -63
- package/lib/components/tooltip/src/tooltip.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -3
- package/lib/components/tooltip/src/tooltip2.js +63 -50
- package/lib/components/tooltip/src/tooltip2.js.map +1 -1
- package/lib/components/tooltip/src/trigger.js +2 -2
- package/lib/components/tooltip/src/trigger.vue.d.ts +3 -3
- package/lib/components/tooltip-v2/index.js +3 -3
- package/lib/components/tooltip-v2/src/root.js +81 -17
- package/lib/components/tooltip-v2/src/root.js.map +1 -1
- package/lib/components/tooltip-v2/src/root2.js +17 -81
- package/lib/components/tooltip-v2/src/root2.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip.js +73 -20
- package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
- package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
- package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
- package/lib/components/upload/index.js +5 -5
- package/lib/components/upload/src/upload-content.js +46 -15
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +15 -46
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload-dragger.js +12 -32
- package/lib/components/upload/src/upload-dragger.js.map +1 -1
- package/lib/components/upload/src/upload-dragger2.js +32 -12
- package/lib/components/upload/src/upload-dragger2.js.map +1 -1
- package/lib/components/upload/src/upload-list.js +27 -155
- package/lib/components/upload/src/upload-list.js.map +1 -1
- package/lib/components/upload/src/upload-list2.js +155 -27
- package/lib/components/upload/src/upload-list2.js.map +1 -1
- package/lib/components/upload/src/upload.js +109 -99
- package/lib/components/upload/src/upload.js.map +1 -1
- package/lib/components/upload/src/upload2.js +99 -109
- package/lib/components/upload/src/upload2.js.map +1 -1
- package/lib/index.js +27 -27
- package/package.json +1 -1
- package/web-types.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -945,9 +945,9 @@ function cacheHas(cache, key) {
|
|
|
945
945
|
return cache.has(key);
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
-
var COMPARE_PARTIAL_FLAG$
|
|
948
|
+
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
949
949
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
950
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
950
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
|
|
951
951
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
952
952
|
return false;
|
|
953
953
|
}
|
|
@@ -956,7 +956,7 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
956
956
|
if (arrStacked && othStacked) {
|
|
957
957
|
return arrStacked == other && othStacked == array;
|
|
958
958
|
}
|
|
959
|
-
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$
|
|
959
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
960
960
|
stack.set(array, other);
|
|
961
961
|
stack.set(other, array);
|
|
962
962
|
while (++index < arrLength) {
|
|
@@ -1006,7 +1006,7 @@ function setToArray(set) {
|
|
|
1006
1006
|
return result;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
var COMPARE_PARTIAL_FLAG$
|
|
1009
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1010
1010
|
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
1011
1011
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
1012
1012
|
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
@@ -1035,7 +1035,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
1035
1035
|
case mapTag:
|
|
1036
1036
|
var convert = mapToArray;
|
|
1037
1037
|
case setTag:
|
|
1038
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
1038
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
1039
1039
|
convert || (convert = setToArray);
|
|
1040
1040
|
if (object.size != other.size && !isPartial) {
|
|
1041
1041
|
return false;
|
|
@@ -1044,7 +1044,7 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
1044
1044
|
if (stacked) {
|
|
1045
1045
|
return stacked == other;
|
|
1046
1046
|
}
|
|
1047
|
-
bitmask |= COMPARE_UNORDERED_FLAG
|
|
1047
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
1048
1048
|
stack.set(object, other);
|
|
1049
1049
|
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
1050
1050
|
stack["delete"](object);
|
|
@@ -1057,11 +1057,11 @@ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
|
1057
1057
|
return false;
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
var COMPARE_PARTIAL_FLAG$
|
|
1060
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
1061
1061
|
var objectProto$1 = Object.prototype;
|
|
1062
1062
|
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
1063
1063
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1064
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
1064
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
1065
1065
|
if (objLength != othLength && !isPartial) {
|
|
1066
1066
|
return false;
|
|
1067
1067
|
}
|
|
@@ -1104,7 +1104,7 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1104
1104
|
return result;
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
-
var COMPARE_PARTIAL_FLAG
|
|
1107
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1108
1108
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
1109
1109
|
var objectProto = Object.prototype;
|
|
1110
1110
|
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
@@ -1124,7 +1124,7 @@ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1124
1124
|
stack || (stack = new Stack());
|
|
1125
1125
|
return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
1126
1126
|
}
|
|
1127
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG
|
|
1127
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
1128
1128
|
var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
|
|
1129
1129
|
if (objIsWrapped || othIsWrapped) {
|
|
1130
1130
|
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
@@ -1149,71 +1149,6 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
|
1149
1149
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
|
-
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
1153
|
-
function baseIsMatch(object, source, matchData, customizer) {
|
|
1154
|
-
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
1155
|
-
if (object == null) {
|
|
1156
|
-
return !length;
|
|
1157
|
-
}
|
|
1158
|
-
object = Object(object);
|
|
1159
|
-
while (index--) {
|
|
1160
|
-
var data = matchData[index];
|
|
1161
|
-
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
1162
|
-
return false;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
while (++index < length) {
|
|
1166
|
-
data = matchData[index];
|
|
1167
|
-
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1168
|
-
if (noCustomizer && data[2]) {
|
|
1169
|
-
if (objValue === void 0 && !(key in object)) {
|
|
1170
|
-
return false;
|
|
1171
|
-
}
|
|
1172
|
-
} else {
|
|
1173
|
-
var stack = new Stack();
|
|
1174
|
-
if (customizer) {
|
|
1175
|
-
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
1176
|
-
}
|
|
1177
|
-
if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
|
1178
|
-
return false;
|
|
1179
|
-
}
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
return true;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
function isStrictComparable(value) {
|
|
1186
|
-
return value === value && !isObject$2(value);
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
function getMatchData(object) {
|
|
1190
|
-
var result = keys(object), length = result.length;
|
|
1191
|
-
while (length--) {
|
|
1192
|
-
var key = result[length], value = object[key];
|
|
1193
|
-
result[length] = [key, value, isStrictComparable(value)];
|
|
1194
|
-
}
|
|
1195
|
-
return result;
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
function matchesStrictComparable(key, srcValue) {
|
|
1199
|
-
return function(object) {
|
|
1200
|
-
if (object == null) {
|
|
1201
|
-
return false;
|
|
1202
|
-
}
|
|
1203
|
-
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
1204
|
-
};
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
function baseMatches(source) {
|
|
1208
|
-
var matchData = getMatchData(source);
|
|
1209
|
-
if (matchData.length == 1 && matchData[0][2]) {
|
|
1210
|
-
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
1211
|
-
}
|
|
1212
|
-
return function(object) {
|
|
1213
|
-
return object === source || baseIsMatch(object, source, matchData);
|
|
1214
|
-
};
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
1152
|
function baseHasIn(object, key) {
|
|
1218
1153
|
return object != null && key in Object(object);
|
|
1219
1154
|
}
|
|
@@ -1239,87 +1174,6 @@ function hasIn(object, path) {
|
|
|
1239
1174
|
return object != null && hasPath(object, path, baseHasIn);
|
|
1240
1175
|
}
|
|
1241
1176
|
|
|
1242
|
-
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1243
|
-
function baseMatchesProperty(path, srcValue) {
|
|
1244
|
-
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
1245
|
-
return matchesStrictComparable(toKey(path), srcValue);
|
|
1246
|
-
}
|
|
1247
|
-
return function(object) {
|
|
1248
|
-
var objValue = get(object, path);
|
|
1249
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
function baseProperty(key) {
|
|
1254
|
-
return function(object) {
|
|
1255
|
-
return object == null ? void 0 : object[key];
|
|
1256
|
-
};
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
function basePropertyDeep(path) {
|
|
1260
|
-
return function(object) {
|
|
1261
|
-
return baseGet(object, path);
|
|
1262
|
-
};
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
function property(path) {
|
|
1266
|
-
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
function baseIteratee(value) {
|
|
1270
|
-
if (typeof value == "function") {
|
|
1271
|
-
return value;
|
|
1272
|
-
}
|
|
1273
|
-
if (value == null) {
|
|
1274
|
-
return identity;
|
|
1275
|
-
}
|
|
1276
|
-
if (typeof value == "object") {
|
|
1277
|
-
return isArray$2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
1278
|
-
}
|
|
1279
|
-
return property(value);
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
function createBaseFor(fromRight) {
|
|
1283
|
-
return function(object, iteratee, keysFunc) {
|
|
1284
|
-
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1285
|
-
while (length--) {
|
|
1286
|
-
var key = props[fromRight ? length : ++index];
|
|
1287
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1288
|
-
break;
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
return object;
|
|
1292
|
-
};
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
var baseFor = createBaseFor();
|
|
1296
|
-
var baseFor$1 = baseFor;
|
|
1297
|
-
|
|
1298
|
-
function baseForOwn(object, iteratee) {
|
|
1299
|
-
return object && baseFor$1(object, iteratee, keys);
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
function createBaseEach(eachFunc, fromRight) {
|
|
1303
|
-
return function(collection, iteratee) {
|
|
1304
|
-
if (collection == null) {
|
|
1305
|
-
return collection;
|
|
1306
|
-
}
|
|
1307
|
-
if (!isArrayLike(collection)) {
|
|
1308
|
-
return eachFunc(collection, iteratee);
|
|
1309
|
-
}
|
|
1310
|
-
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
1311
|
-
while (fromRight ? index-- : ++index < length) {
|
|
1312
|
-
if (iteratee(iterable[index], index, iterable) === false) {
|
|
1313
|
-
break;
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
return collection;
|
|
1317
|
-
};
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
var baseEach = createBaseEach(baseForOwn);
|
|
1321
|
-
var baseEach$1 = baseEach;
|
|
1322
|
-
|
|
1323
1177
|
var now = function() {
|
|
1324
1178
|
return root$1.Date.now();
|
|
1325
1179
|
};
|
|
@@ -1423,23 +1277,6 @@ function arrayIncludesWith(array, value, comparator) {
|
|
|
1423
1277
|
return false;
|
|
1424
1278
|
}
|
|
1425
1279
|
|
|
1426
|
-
function baseMap(collection, iteratee) {
|
|
1427
|
-
var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
1428
|
-
baseEach$1(collection, function(value, key, collection2) {
|
|
1429
|
-
result[++index] = iteratee(value, key, collection2);
|
|
1430
|
-
});
|
|
1431
|
-
return result;
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
function map(collection, iteratee) {
|
|
1435
|
-
var func = isArray$2(collection) ? arrayMap : baseMap;
|
|
1436
|
-
return func(collection, baseIteratee(iteratee));
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
function flatMap(collection, iteratee) {
|
|
1440
|
-
return baseFlatten(map(collection, iteratee), 1);
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
1280
|
var INFINITY$1 = 1 / 0;
|
|
1444
1281
|
function flattenDeep(array) {
|
|
1445
1282
|
var length = array == null ? 0 : array.length;
|
|
@@ -27202,8 +27039,14 @@ function escapeHtml(string) {
|
|
|
27202
27039
|
}
|
|
27203
27040
|
|
|
27204
27041
|
const getCell = function(event) {
|
|
27205
|
-
|
|
27206
|
-
|
|
27042
|
+
let cell = event.target;
|
|
27043
|
+
while (cell && cell.tagName.toUpperCase() !== "HTML") {
|
|
27044
|
+
if (cell.tagName.toUpperCase() === "TD") {
|
|
27045
|
+
return cell;
|
|
27046
|
+
}
|
|
27047
|
+
cell = cell.parentNode;
|
|
27048
|
+
}
|
|
27049
|
+
return null;
|
|
27207
27050
|
};
|
|
27208
27051
|
const isObject = function(obj) {
|
|
27209
27052
|
return obj !== null && typeof obj === "object";
|
|
@@ -27282,8 +27125,6 @@ const getColumnByKey = function(table, columnKey) {
|
|
|
27282
27125
|
break;
|
|
27283
27126
|
}
|
|
27284
27127
|
}
|
|
27285
|
-
if (!column)
|
|
27286
|
-
throwError("ElTable", `No column matching with column-key: ${columnKey}`);
|
|
27287
27128
|
return column;
|
|
27288
27129
|
};
|
|
27289
27130
|
const getColumnByCell = function(table, cell, namespace) {
|
|
@@ -27381,27 +27222,26 @@ function toggleRowStatus(statusArr, row, newVal) {
|
|
|
27381
27222
|
let changed = false;
|
|
27382
27223
|
const index = statusArr.indexOf(row);
|
|
27383
27224
|
const included = index !== -1;
|
|
27384
|
-
const
|
|
27385
|
-
|
|
27386
|
-
statusArr.push(row);
|
|
27387
|
-
} else {
|
|
27388
|
-
statusArr.splice(index, 1);
|
|
27389
|
-
}
|
|
27225
|
+
const addRow = () => {
|
|
27226
|
+
statusArr.push(row);
|
|
27390
27227
|
changed = true;
|
|
27391
|
-
if (isArray(row.children)) {
|
|
27392
|
-
row.children.forEach((item) => {
|
|
27393
|
-
toggleRowStatus(statusArr, item, newVal != null ? newVal : !included);
|
|
27394
|
-
});
|
|
27395
|
-
}
|
|
27396
27228
|
};
|
|
27397
|
-
|
|
27229
|
+
const removeRow = () => {
|
|
27230
|
+
statusArr.splice(index, 1);
|
|
27231
|
+
changed = true;
|
|
27232
|
+
};
|
|
27233
|
+
if (typeof newVal === "boolean") {
|
|
27398
27234
|
if (newVal && !included) {
|
|
27399
|
-
|
|
27235
|
+
addRow();
|
|
27400
27236
|
} else if (!newVal && included) {
|
|
27401
|
-
|
|
27237
|
+
removeRow();
|
|
27402
27238
|
}
|
|
27403
27239
|
} else {
|
|
27404
|
-
|
|
27240
|
+
if (included) {
|
|
27241
|
+
removeRow();
|
|
27242
|
+
} else {
|
|
27243
|
+
addRow();
|
|
27244
|
+
}
|
|
27405
27245
|
}
|
|
27406
27246
|
return changed;
|
|
27407
27247
|
}
|
|
@@ -27432,37 +27272,32 @@ function walkTreeNode(root, cb, childrenKey = "children", lazyKey = "hasChildren
|
|
|
27432
27272
|
});
|
|
27433
27273
|
}
|
|
27434
27274
|
let removePopper;
|
|
27435
|
-
function createTablePopper(
|
|
27275
|
+
function createTablePopper(trigger, popperContent, popperOptions, tooltipEffect) {
|
|
27436
27276
|
const { nextZIndex } = useZIndex();
|
|
27437
|
-
const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
|
|
27438
|
-
const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
|
|
27439
27277
|
function renderContent() {
|
|
27440
27278
|
const isLight = tooltipEffect === "light";
|
|
27441
27279
|
const content2 = document.createElement("div");
|
|
27442
|
-
content2.className =
|
|
27280
|
+
content2.className = `el-popper ${isLight ? "is-light" : "is-dark"}`;
|
|
27443
27281
|
popperContent = escapeHtml_1(popperContent);
|
|
27444
27282
|
content2.innerHTML = popperContent;
|
|
27445
27283
|
content2.style.zIndex = String(nextZIndex());
|
|
27446
|
-
|
|
27284
|
+
document.body.appendChild(content2);
|
|
27447
27285
|
return content2;
|
|
27448
27286
|
}
|
|
27449
27287
|
function renderArrow() {
|
|
27450
27288
|
const arrow2 = document.createElement("div");
|
|
27451
|
-
arrow2.className =
|
|
27289
|
+
arrow2.className = "el-popper__arrow";
|
|
27452
27290
|
return arrow2;
|
|
27453
27291
|
}
|
|
27454
27292
|
function showPopper() {
|
|
27455
27293
|
popperInstance && popperInstance.update();
|
|
27456
27294
|
}
|
|
27457
|
-
removePopper
|
|
27458
|
-
removePopper = () => {
|
|
27295
|
+
removePopper = function removePopper2() {
|
|
27459
27296
|
try {
|
|
27460
27297
|
popperInstance && popperInstance.destroy();
|
|
27461
|
-
content &&
|
|
27462
|
-
trigger
|
|
27463
|
-
trigger
|
|
27464
|
-
scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
|
|
27465
|
-
removePopper = void 0;
|
|
27298
|
+
content && document.body.removeChild(content);
|
|
27299
|
+
off(trigger, "mouseenter", showPopper);
|
|
27300
|
+
off(trigger, "mouseleave", removePopper2);
|
|
27466
27301
|
} catch (e) {
|
|
27467
27302
|
}
|
|
27468
27303
|
};
|
|
@@ -27471,7 +27306,6 @@ function createTablePopper(parentNode, trigger, popperContent, popperOptions, to
|
|
|
27471
27306
|
const arrow = renderArrow();
|
|
27472
27307
|
content.appendChild(arrow);
|
|
27473
27308
|
popperInstance = yn(trigger, content, {
|
|
27474
|
-
strategy: "absolute",
|
|
27475
27309
|
modifiers: [
|
|
27476
27310
|
{
|
|
27477
27311
|
name: "offset",
|
|
@@ -27489,34 +27323,26 @@ function createTablePopper(parentNode, trigger, popperContent, popperOptions, to
|
|
|
27489
27323
|
],
|
|
27490
27324
|
...popperOptions
|
|
27491
27325
|
});
|
|
27492
|
-
trigger
|
|
27493
|
-
trigger
|
|
27494
|
-
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
|
27326
|
+
on$1(trigger, "mouseenter", showPopper);
|
|
27327
|
+
on$1(trigger, "mouseleave", removePopper);
|
|
27495
27328
|
return popperInstance;
|
|
27496
27329
|
}
|
|
27497
|
-
function getCurrentColumns(column) {
|
|
27498
|
-
if (column.children) {
|
|
27499
|
-
return flatMap(column.children, getCurrentColumns);
|
|
27500
|
-
} else {
|
|
27501
|
-
return [column];
|
|
27502
|
-
}
|
|
27503
|
-
}
|
|
27504
|
-
function getColSpan(colSpan, column) {
|
|
27505
|
-
return colSpan + column.colSpan;
|
|
27506
|
-
}
|
|
27507
27330
|
const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
27508
27331
|
let start = 0;
|
|
27509
27332
|
let after = index;
|
|
27510
|
-
const columns = store.states.columns.value;
|
|
27511
27333
|
if (realColumns) {
|
|
27512
|
-
|
|
27513
|
-
|
|
27514
|
-
|
|
27515
|
-
|
|
27334
|
+
if (realColumns[index].colSpan > 1) {
|
|
27335
|
+
return {};
|
|
27336
|
+
}
|
|
27337
|
+
for (let i = 0; i < index; i++) {
|
|
27338
|
+
start += realColumns[i].colSpan;
|
|
27339
|
+
}
|
|
27340
|
+
after = start + realColumns[index].colSpan - 1;
|
|
27516
27341
|
} else {
|
|
27517
27342
|
start = index;
|
|
27518
27343
|
}
|
|
27519
27344
|
let fixedLayout;
|
|
27345
|
+
const columns = store.states.columns;
|
|
27520
27346
|
switch (fixed) {
|
|
27521
27347
|
case "left":
|
|
27522
27348
|
if (after < store.states.fixedLeafColumnsLength.value) {
|
|
@@ -27524,14 +27350,14 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
|
27524
27350
|
}
|
|
27525
27351
|
break;
|
|
27526
27352
|
case "right":
|
|
27527
|
-
if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27353
|
+
if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27528
27354
|
fixedLayout = "right";
|
|
27529
27355
|
}
|
|
27530
27356
|
break;
|
|
27531
27357
|
default:
|
|
27532
27358
|
if (after < store.states.fixedLeafColumnsLength.value) {
|
|
27533
27359
|
fixedLayout = "left";
|
|
27534
|
-
} else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27360
|
+
} else if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27535
27361
|
fixedLayout = "right";
|
|
27536
27362
|
}
|
|
27537
27363
|
}
|
|
@@ -27541,15 +27367,15 @@ const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
|
27541
27367
|
after
|
|
27542
27368
|
} : {};
|
|
27543
27369
|
};
|
|
27544
|
-
const getFixedColumnsClass = (namespace, index, fixed, store, realColumns
|
|
27370
|
+
const getFixedColumnsClass = (namespace, index, fixed, store, realColumns) => {
|
|
27545
27371
|
const classes = [];
|
|
27546
|
-
const { direction, start
|
|
27372
|
+
const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
|
|
27547
27373
|
if (direction) {
|
|
27548
27374
|
const isLeft = direction === "left";
|
|
27549
27375
|
classes.push(`${namespace}-fixed-column--${direction}`);
|
|
27550
|
-
if (isLeft &&
|
|
27376
|
+
if (isLeft && start === store.states.fixedLeafColumnsLength.value - 1) {
|
|
27551
27377
|
classes.push("is-last-column");
|
|
27552
|
-
} else if (!isLeft && start
|
|
27378
|
+
} else if (!isLeft && start === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27553
27379
|
classes.push("is-first-column");
|
|
27554
27380
|
}
|
|
27555
27381
|
}
|
|
@@ -27559,11 +27385,7 @@ function getOffset(offset, column) {
|
|
|
27559
27385
|
return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
|
|
27560
27386
|
}
|
|
27561
27387
|
const getFixedColumnOffset = (index, fixed, store, realColumns) => {
|
|
27562
|
-
const {
|
|
27563
|
-
direction,
|
|
27564
|
-
start = 0,
|
|
27565
|
-
after = 0
|
|
27566
|
-
} = isFixedColumn(index, fixed, store, realColumns);
|
|
27388
|
+
const { direction, start = 0 } = isFixedColumn(index, fixed, store, realColumns);
|
|
27567
27389
|
if (!direction) {
|
|
27568
27390
|
return;
|
|
27569
27391
|
}
|
|
@@ -27571,9 +27393,9 @@ const getFixedColumnOffset = (index, fixed, store, realColumns) => {
|
|
|
27571
27393
|
const isLeft = direction === "left";
|
|
27572
27394
|
const columns = store.states.columns.value;
|
|
27573
27395
|
if (isLeft) {
|
|
27574
|
-
styles.left = columns.slice(0,
|
|
27396
|
+
styles.left = columns.slice(0, index).reduce(getOffset, 0);
|
|
27575
27397
|
} else {
|
|
27576
|
-
styles.right = columns.slice(
|
|
27398
|
+
styles.right = columns.slice(start + 1).reverse().reduce(getOffset, 0);
|
|
27577
27399
|
}
|
|
27578
27400
|
return styles;
|
|
27579
27401
|
};
|
|
@@ -27684,21 +27506,19 @@ function useCurrent(watcherData) {
|
|
|
27684
27506
|
const rowKey = watcherData.rowKey.value;
|
|
27685
27507
|
const data = watcherData.data.value || [];
|
|
27686
27508
|
const oldCurrentRow = currentRow.value;
|
|
27687
|
-
if (
|
|
27688
|
-
if (
|
|
27689
|
-
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
instance.emit("current-change", null, oldCurrentRow);
|
|
27697
|
-
}
|
|
27698
|
-
} else if (_currentRowKey.value) {
|
|
27699
|
-
setCurrentRowByKey(_currentRowKey.value);
|
|
27700
|
-
restoreCurrentRowKey();
|
|
27509
|
+
if (!data.includes(oldCurrentRow) && oldCurrentRow) {
|
|
27510
|
+
if (rowKey) {
|
|
27511
|
+
const currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
|
|
27512
|
+
setCurrentRowByKey(currentRowKey);
|
|
27513
|
+
} else {
|
|
27514
|
+
currentRow.value = null;
|
|
27515
|
+
}
|
|
27516
|
+
if (currentRow.value === null) {
|
|
27517
|
+
instance.emit("current-change", null, oldCurrentRow);
|
|
27701
27518
|
}
|
|
27519
|
+
} else if (_currentRowKey.value) {
|
|
27520
|
+
setCurrentRowByKey(_currentRowKey.value);
|
|
27521
|
+
restoreCurrentRowKey();
|
|
27702
27522
|
}
|
|
27703
27523
|
};
|
|
27704
27524
|
return {
|
|
@@ -27947,19 +27767,9 @@ function useWatcher$1() {
|
|
|
27947
27767
|
const hoverRow = ref(null);
|
|
27948
27768
|
const assertRowKey = () => {
|
|
27949
27769
|
if (!rowKey.value)
|
|
27950
|
-
throw new Error("[
|
|
27951
|
-
};
|
|
27952
|
-
const updateChildFixed = (column) => {
|
|
27953
|
-
var _a2;
|
|
27954
|
-
(_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
|
|
27955
|
-
childColumn.fixed = column.fixed;
|
|
27956
|
-
updateChildFixed(childColumn);
|
|
27957
|
-
});
|
|
27770
|
+
throw new Error("[PsTable] prop row-key is required");
|
|
27958
27771
|
};
|
|
27959
27772
|
const updateColumns = () => {
|
|
27960
|
-
_columns.value.forEach((column) => {
|
|
27961
|
-
updateChildFixed(column);
|
|
27962
|
-
});
|
|
27963
27773
|
fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
|
|
27964
27774
|
rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
|
|
27965
27775
|
if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
|
|
@@ -28430,19 +28240,18 @@ function useStore() {
|
|
|
28430
28240
|
}
|
|
28431
28241
|
},
|
|
28432
28242
|
changeSortCondition(states, options) {
|
|
28433
|
-
const { sortingColumn, sortProp, sortOrder } = states;
|
|
28434
|
-
|
|
28435
|
-
if (orderValue === null) {
|
|
28243
|
+
const { sortingColumn: column, sortProp: prop, sortOrder: order } = states;
|
|
28244
|
+
if (unref(order) === null) {
|
|
28436
28245
|
states.sortingColumn.value = null;
|
|
28437
28246
|
states.sortProp.value = null;
|
|
28438
28247
|
}
|
|
28439
|
-
const
|
|
28440
|
-
instance.store.execQuery(
|
|
28248
|
+
const ingore = { filter: true };
|
|
28249
|
+
instance.store.execQuery(ingore);
|
|
28441
28250
|
if (!options || !(options.silent || options.init)) {
|
|
28442
28251
|
instance.emit("sort-change", {
|
|
28443
|
-
column:
|
|
28444
|
-
prop:
|
|
28445
|
-
order:
|
|
28252
|
+
column: unref(column),
|
|
28253
|
+
prop: unref(prop),
|
|
28254
|
+
order: unref(order)
|
|
28446
28255
|
});
|
|
28447
28256
|
}
|
|
28448
28257
|
instance.store.updateTableScrollY();
|
|
@@ -28479,6 +28288,7 @@ function useStore() {
|
|
|
28479
28288
|
}
|
|
28480
28289
|
};
|
|
28481
28290
|
const updateTableScrollY = function() {
|
|
28291
|
+
nextTick(() => instance.layout.updateScrollY.apply(instance.layout));
|
|
28482
28292
|
};
|
|
28483
28293
|
return {
|
|
28484
28294
|
ns,
|
|
@@ -28564,6 +28374,14 @@ class TableLayout {
|
|
|
28564
28374
|
this.bodyWidth = ref(null);
|
|
28565
28375
|
this.fixedWidth = ref(null);
|
|
28566
28376
|
this.rightFixedWidth = ref(null);
|
|
28377
|
+
this.tableHeight = ref(null);
|
|
28378
|
+
this.headerHeight = ref(44);
|
|
28379
|
+
this.appendHeight = ref(0);
|
|
28380
|
+
this.footerHeight = ref(44);
|
|
28381
|
+
this.viewportHeight = ref(null);
|
|
28382
|
+
this.bodyHeight = ref(null);
|
|
28383
|
+
this.bodyScrollHeight = ref(0);
|
|
28384
|
+
this.fixedBodyHeight = ref(null);
|
|
28567
28385
|
this.gutterWidth = 0;
|
|
28568
28386
|
for (const name in options) {
|
|
28569
28387
|
if (hasOwn(options, name)) {
|
|
@@ -28581,6 +28399,24 @@ class TableLayout {
|
|
|
28581
28399
|
throw new Error("Store is required for Table Layout");
|
|
28582
28400
|
}
|
|
28583
28401
|
}
|
|
28402
|
+
updateScrollY() {
|
|
28403
|
+
const height = this.height.value;
|
|
28404
|
+
if (height === null)
|
|
28405
|
+
return false;
|
|
28406
|
+
const bodyWrapper = this.table.refs.bodyWrapper;
|
|
28407
|
+
if (this.table.vnode.el && bodyWrapper) {
|
|
28408
|
+
let scrollY = true;
|
|
28409
|
+
const prevScrollY = this.scrollY.value;
|
|
28410
|
+
if (this.bodyHeight.value === null) {
|
|
28411
|
+
scrollY = false;
|
|
28412
|
+
} else {
|
|
28413
|
+
scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
|
|
28414
|
+
}
|
|
28415
|
+
this.scrollY.value = scrollY;
|
|
28416
|
+
return prevScrollY !== scrollY;
|
|
28417
|
+
}
|
|
28418
|
+
return false;
|
|
28419
|
+
}
|
|
28584
28420
|
setHeight(value, prop = "height") {
|
|
28585
28421
|
if (!isClient)
|
|
28586
28422
|
return;
|
|
@@ -28613,6 +28449,44 @@ class TableLayout {
|
|
|
28613
28449
|
return flattenColumns;
|
|
28614
28450
|
}
|
|
28615
28451
|
updateElsHeight() {
|
|
28452
|
+
var _a, _b;
|
|
28453
|
+
if (!this.table.$ready)
|
|
28454
|
+
return nextTick(() => this.updateElsHeight());
|
|
28455
|
+
const {
|
|
28456
|
+
tableWrapper,
|
|
28457
|
+
headerWrapper,
|
|
28458
|
+
appendWrapper,
|
|
28459
|
+
footerWrapper,
|
|
28460
|
+
tableHeader,
|
|
28461
|
+
tableBody
|
|
28462
|
+
} = this.table.refs;
|
|
28463
|
+
if (tableWrapper && tableWrapper.style.display === "none") {
|
|
28464
|
+
return;
|
|
28465
|
+
}
|
|
28466
|
+
const { tableLayout } = this.table.props;
|
|
28467
|
+
this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
|
|
28468
|
+
if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
|
|
28469
|
+
return;
|
|
28470
|
+
}
|
|
28471
|
+
const headerTrElm = tableHeader ? tableHeader : null;
|
|
28472
|
+
const noneHeader = this.headerDisplayNone(headerTrElm);
|
|
28473
|
+
const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
|
|
28474
|
+
const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
|
|
28475
|
+
if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
|
|
28476
|
+
return nextTick(() => this.updateElsHeight());
|
|
28477
|
+
}
|
|
28478
|
+
const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
|
|
28479
|
+
const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
|
|
28480
|
+
if (this.height.value !== null) {
|
|
28481
|
+
if (this.bodyHeight.value === null) {
|
|
28482
|
+
requestAnimationFrame(() => this.updateElsHeight());
|
|
28483
|
+
}
|
|
28484
|
+
this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
|
|
28485
|
+
this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
|
|
28486
|
+
}
|
|
28487
|
+
this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
|
|
28488
|
+
this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
|
|
28489
|
+
this.updateScrollY();
|
|
28616
28490
|
this.notifyObservers("scrollable");
|
|
28617
28491
|
}
|
|
28618
28492
|
headerDisplayNone(elm) {
|
|
@@ -28840,13 +28714,6 @@ const _sfc_main$o = defineComponent({
|
|
|
28840
28714
|
});
|
|
28841
28715
|
props.store.updateAllSelected();
|
|
28842
28716
|
};
|
|
28843
|
-
watch(tooltipVisible, (value) => {
|
|
28844
|
-
if (props.column) {
|
|
28845
|
-
props.upDataColumn("filterOpened", value);
|
|
28846
|
-
}
|
|
28847
|
-
}, {
|
|
28848
|
-
immediate: true
|
|
28849
|
-
});
|
|
28850
28717
|
const popperPaneRef = computed(() => {
|
|
28851
28718
|
var _a, _b;
|
|
28852
28719
|
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
@@ -29039,10 +28906,12 @@ function useEvent(props, emit) {
|
|
|
29039
28906
|
}
|
|
29040
28907
|
};
|
|
29041
28908
|
const handleMouseMove = (event, column) => {
|
|
29042
|
-
var _a;
|
|
29043
28909
|
if (column.children && column.children.length > 0)
|
|
29044
28910
|
return;
|
|
29045
|
-
|
|
28911
|
+
let target = event.target;
|
|
28912
|
+
while (target && target.tagName !== "TH") {
|
|
28913
|
+
target = target.parentNode;
|
|
28914
|
+
}
|
|
29046
28915
|
if (!column || !column.resizable)
|
|
29047
28916
|
return;
|
|
29048
28917
|
if (!dragging.value && props.border) {
|
|
@@ -29075,11 +28944,13 @@ function useEvent(props, emit) {
|
|
|
29075
28944
|
return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
|
|
29076
28945
|
};
|
|
29077
28946
|
const handleSortClick = (event, column, givenOrder) => {
|
|
29078
|
-
var _a;
|
|
29079
28947
|
event.stopPropagation();
|
|
29080
28948
|
const order = column.order === givenOrder ? null : givenOrder || toggleOrder(column);
|
|
29081
|
-
|
|
29082
|
-
|
|
28949
|
+
let target = event.target;
|
|
28950
|
+
while (target && target.tagName !== "TH") {
|
|
28951
|
+
target = target.parentNode;
|
|
28952
|
+
}
|
|
28953
|
+
if (target && target.tagName === "TH") {
|
|
29083
28954
|
if (hasClass(target, "noclick")) {
|
|
29084
28955
|
removeClass(target, "noclick");
|
|
29085
28956
|
return;
|
|
@@ -29149,13 +29020,13 @@ function useStyle$2(props) {
|
|
|
29149
29020
|
column
|
|
29150
29021
|
});
|
|
29151
29022
|
}
|
|
29152
|
-
const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
|
|
29023
|
+
const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
|
|
29153
29024
|
ensurePosition(fixedStyle, "left");
|
|
29154
29025
|
ensurePosition(fixedStyle, "right");
|
|
29155
29026
|
return Object.assign({}, headerCellStyles, fixedStyle);
|
|
29156
29027
|
};
|
|
29157
29028
|
const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
|
|
29158
|
-
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
|
|
29029
|
+
const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
|
|
29159
29030
|
const classes = [
|
|
29160
29031
|
column.id,
|
|
29161
29032
|
column.order,
|
|
@@ -29386,7 +29257,8 @@ var TableHeader = defineComponent({
|
|
|
29386
29257
|
h$1("div", {
|
|
29387
29258
|
class: [
|
|
29388
29259
|
"cell",
|
|
29389
|
-
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : ""
|
|
29260
|
+
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : "",
|
|
29261
|
+
column.labelClassName
|
|
29390
29262
|
]
|
|
29391
29263
|
}, [
|
|
29392
29264
|
column.renderHeader ? column.renderHeader({
|
|
@@ -29455,7 +29327,7 @@ function useEvents(props) {
|
|
|
29455
29327
|
const handleMouseLeave = debounce(() => {
|
|
29456
29328
|
props.store.commit("setHoverRow", null);
|
|
29457
29329
|
}, 30);
|
|
29458
|
-
const handleCellMouseEnter = (event, row
|
|
29330
|
+
const handleCellMouseEnter = (event, row) => {
|
|
29459
29331
|
var _a;
|
|
29460
29332
|
const table = parent;
|
|
29461
29333
|
const cell = getCell(event);
|
|
@@ -29477,10 +29349,10 @@ function useEvents(props) {
|
|
|
29477
29349
|
const rangeWidth = range.getBoundingClientRect().width;
|
|
29478
29350
|
const padding = (Number.parseInt(getStyle(cellChild, "paddingLeft"), 10) || 0) + (Number.parseInt(getStyle(cellChild, "paddingRight"), 10) || 0);
|
|
29479
29351
|
if (rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) {
|
|
29480
|
-
createTablePopper(
|
|
29352
|
+
createTablePopper(cell, cell.innerText || cell.textContent, {
|
|
29481
29353
|
placement: "top",
|
|
29482
29354
|
strategy: "fixed"
|
|
29483
|
-
}, tooltipEffect);
|
|
29355
|
+
}, row.tooltipEffect);
|
|
29484
29356
|
}
|
|
29485
29357
|
};
|
|
29486
29358
|
const handleCellMouseLeave = (event) => {
|
|
@@ -29546,13 +29418,13 @@ function useStyles(props) {
|
|
|
29546
29418
|
column
|
|
29547
29419
|
});
|
|
29548
29420
|
}
|
|
29549
|
-
const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
29421
|
+
const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
29550
29422
|
ensurePosition(fixedStyle, "left");
|
|
29551
29423
|
ensurePosition(fixedStyle, "right");
|
|
29552
29424
|
return Object.assign({}, cellStyles, fixedStyle);
|
|
29553
29425
|
};
|
|
29554
|
-
const getCellClass = (rowIndex, columnIndex, row, column
|
|
29555
|
-
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store
|
|
29426
|
+
const getCellClass = (rowIndex, columnIndex, row, column) => {
|
|
29427
|
+
const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
29556
29428
|
const classes = [column.id, column.align, column.className, ...fixedClasses];
|
|
29557
29429
|
const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
|
|
29558
29430
|
if (typeof cellClassName === "string") {
|
|
@@ -29608,7 +29480,6 @@ function useStyles(props) {
|
|
|
29608
29480
|
|
|
29609
29481
|
function useRender$1(props) {
|
|
29610
29482
|
const parent = inject(TABLE_INJECTION_KEY);
|
|
29611
|
-
const ns = useNamespace("table");
|
|
29612
29483
|
const {
|
|
29613
29484
|
handleDoubleClick,
|
|
29614
29485
|
handleClick,
|
|
@@ -29644,7 +29515,7 @@ function useRender$1(props) {
|
|
|
29644
29515
|
const rowClasses = getRowClass(row, $index);
|
|
29645
29516
|
let display = true;
|
|
29646
29517
|
if (treeRowData) {
|
|
29647
|
-
rowClasses.push(
|
|
29518
|
+
rowClasses.push(`el-table__row--level-${treeRowData.level}`);
|
|
29648
29519
|
display = treeRowData.display;
|
|
29649
29520
|
}
|
|
29650
29521
|
const displayStyle = display ? null : {
|
|
@@ -29695,7 +29566,7 @@ function useRender$1(props) {
|
|
|
29695
29566
|
const tdChildren = cellChildren(cellIndex, column, data);
|
|
29696
29567
|
return h$1("td", {
|
|
29697
29568
|
style: getCellStyle($index, cellIndex, row, column),
|
|
29698
|
-
class: getCellClass($index, cellIndex, row, column
|
|
29569
|
+
class: getCellClass($index, cellIndex, row, column),
|
|
29699
29570
|
key: `${patchKey}${baseKey}`,
|
|
29700
29571
|
rowspan,
|
|
29701
29572
|
colspan,
|
|
@@ -29731,7 +29602,7 @@ function useRender$1(props) {
|
|
|
29731
29602
|
}, [
|
|
29732
29603
|
h$1("td", {
|
|
29733
29604
|
colspan: columns.length,
|
|
29734
|
-
class:
|
|
29605
|
+
class: "el-table__cell el-table__expanded-cell"
|
|
29735
29606
|
}, [renderExpanded({ row, $index, store, expanded })])
|
|
29736
29607
|
])
|
|
29737
29608
|
]
|
|
@@ -29845,6 +29716,10 @@ var TableBody = defineComponent({
|
|
|
29845
29716
|
var _a;
|
|
29846
29717
|
(_a = removePopper) == null ? void 0 : _a();
|
|
29847
29718
|
});
|
|
29719
|
+
onUpdated(() => {
|
|
29720
|
+
var _a;
|
|
29721
|
+
(_a = removePopper) == null ? void 0 : _a();
|
|
29722
|
+
});
|
|
29848
29723
|
return {
|
|
29849
29724
|
ns,
|
|
29850
29725
|
onColumnsChange,
|
|
@@ -30054,7 +29929,7 @@ var TableFooter = defineComponent({
|
|
|
30054
29929
|
}, [
|
|
30055
29930
|
h$1("div", {
|
|
30056
29931
|
class: ["cell", column.labelClassName]
|
|
30057
|
-
}, [sums[cellIndex]])
|
|
29932
|
+
}, [(sums || [])[cellIndex]])
|
|
30058
29933
|
]))
|
|
30059
29934
|
])
|
|
30060
29935
|
])
|
|
@@ -30113,8 +29988,7 @@ function useStyle(props, layout, store, table) {
|
|
|
30113
29988
|
};
|
|
30114
29989
|
const resizeState = ref({
|
|
30115
29990
|
width: null,
|
|
30116
|
-
height: null
|
|
30117
|
-
headerHeight: null
|
|
29991
|
+
height: null
|
|
30118
29992
|
});
|
|
30119
29993
|
const isGroup = ref(false);
|
|
30120
29994
|
const scrollbarViewStyle = {
|
|
@@ -30122,28 +29996,6 @@ function useStyle(props, layout, store, table) {
|
|
|
30122
29996
|
verticalAlign: "middle"
|
|
30123
29997
|
};
|
|
30124
29998
|
const tableWidth = ref();
|
|
30125
|
-
const tableScrollHeight = ref(0);
|
|
30126
|
-
const bodyScrollHeight = ref(0);
|
|
30127
|
-
const headerScrollHeight = ref(0);
|
|
30128
|
-
const footerScrollHeight = ref(0);
|
|
30129
|
-
watchEffect(() => {
|
|
30130
|
-
layout.setHeight(props.height);
|
|
30131
|
-
});
|
|
30132
|
-
watchEffect(() => {
|
|
30133
|
-
layout.setMaxHeight(props.maxHeight);
|
|
30134
|
-
});
|
|
30135
|
-
watch(() => [props.currentRowKey, store.states.rowKey], ([currentRowKey, rowKey]) => {
|
|
30136
|
-
if (!unref(rowKey) || !unref(currentRowKey))
|
|
30137
|
-
return;
|
|
30138
|
-
store.setCurrentRowKey(`${currentRowKey}`);
|
|
30139
|
-
}, {
|
|
30140
|
-
immediate: true
|
|
30141
|
-
});
|
|
30142
|
-
watchEffect(() => {
|
|
30143
|
-
if (props.expandRowKeys) {
|
|
30144
|
-
store.setExpandRowKeysAdapter(props.expandRowKeys);
|
|
30145
|
-
}
|
|
30146
|
-
});
|
|
30147
29999
|
const handleMouseLeave = () => {
|
|
30148
30000
|
table.store.commit("setHoverRow", null);
|
|
30149
30001
|
if (table.hoverState)
|
|
@@ -30168,22 +30020,16 @@ function useStyle(props, layout, store, table) {
|
|
|
30168
30020
|
layout.updateElsHeight();
|
|
30169
30021
|
}
|
|
30170
30022
|
layout.updateColumnsWidth();
|
|
30171
|
-
requestAnimationFrame(
|
|
30023
|
+
requestAnimationFrame(syncPostion);
|
|
30172
30024
|
};
|
|
30173
30025
|
onMounted(async () => {
|
|
30174
30026
|
await nextTick();
|
|
30175
30027
|
store.updateColumns();
|
|
30176
30028
|
bindEvents();
|
|
30177
30029
|
requestAnimationFrame(doLayout);
|
|
30178
|
-
const el = table.vnode.el;
|
|
30179
|
-
const tableHeader = table.refs.headerWrapper;
|
|
30180
|
-
if (props.flexible && el && el.parentElement) {
|
|
30181
|
-
el.parentElement.style.minWidth = "0";
|
|
30182
|
-
}
|
|
30183
30030
|
resizeState.value = {
|
|
30184
|
-
width: tableWidth.value = el.offsetWidth,
|
|
30185
|
-
height: el.offsetHeight
|
|
30186
|
-
headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
|
|
30031
|
+
width: tableWidth.value = table.vnode.el.offsetWidth,
|
|
30032
|
+
height: table.vnode.el.offsetHeight
|
|
30187
30033
|
};
|
|
30188
30034
|
store.states.columns.value.forEach((column) => {
|
|
30189
30035
|
if (column.filteredValue && column.filteredValue.length) {
|
|
@@ -30211,7 +30057,7 @@ function useStyle(props, layout, store, table) {
|
|
|
30211
30057
|
const { tableWrapper } = table.refs;
|
|
30212
30058
|
return !!(tableWrapper && tableWrapper.classList.contains(className));
|
|
30213
30059
|
};
|
|
30214
|
-
const
|
|
30060
|
+
const syncPostion = function() {
|
|
30215
30061
|
if (!table.refs.scrollBarRef)
|
|
30216
30062
|
return;
|
|
30217
30063
|
if (!layout.scrollX.value) {
|
|
@@ -30221,7 +30067,7 @@ function useStyle(props, layout, store, table) {
|
|
|
30221
30067
|
}
|
|
30222
30068
|
return;
|
|
30223
30069
|
}
|
|
30224
|
-
const scrollContainer = table.refs.scrollBarRef.
|
|
30070
|
+
const scrollContainer = table.refs.scrollBarRef.wrap$;
|
|
30225
30071
|
if (!scrollContainer)
|
|
30226
30072
|
return;
|
|
30227
30073
|
const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
|
|
@@ -30240,56 +30086,48 @@ function useStyle(props, layout, store, table) {
|
|
|
30240
30086
|
}
|
|
30241
30087
|
};
|
|
30242
30088
|
const bindEvents = () => {
|
|
30089
|
+
var _a;
|
|
30243
30090
|
if (!table.refs.scrollBarRef)
|
|
30244
30091
|
return;
|
|
30245
|
-
|
|
30246
|
-
|
|
30247
|
-
|
|
30248
|
-
|
|
30092
|
+
(_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.addEventListener("scroll", syncPostion, {
|
|
30093
|
+
passive: true
|
|
30094
|
+
});
|
|
30095
|
+
if (props.fit) {
|
|
30096
|
+
addResizeListener(table.vnode.el, resizeListener);
|
|
30097
|
+
} else {
|
|
30098
|
+
on$1(window, "resize", doLayout);
|
|
30249
30099
|
}
|
|
30100
|
+
};
|
|
30101
|
+
onBeforeUnmount(() => {
|
|
30102
|
+
unbindEvents();
|
|
30103
|
+
});
|
|
30104
|
+
const unbindEvents = () => {
|
|
30105
|
+
var _a;
|
|
30106
|
+
(_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.removeEventListener("scroll", syncPostion, true);
|
|
30250
30107
|
if (props.fit) {
|
|
30251
|
-
|
|
30108
|
+
removeResizeListener(table.vnode.el, resizeListener);
|
|
30252
30109
|
} else {
|
|
30253
|
-
|
|
30110
|
+
off(window, "resize", doLayout);
|
|
30254
30111
|
}
|
|
30255
|
-
useResizeObserver(table.refs.bodyWrapper, () => {
|
|
30256
|
-
var _a, _b;
|
|
30257
|
-
resizeListener();
|
|
30258
|
-
(_b = (_a = table.refs) == null ? void 0 : _a.scrollBarRef) == null ? void 0 : _b.update();
|
|
30259
|
-
});
|
|
30260
30112
|
};
|
|
30261
30113
|
const resizeListener = () => {
|
|
30262
|
-
|
|
30263
|
-
const el = table.vnode.el;
|
|
30264
|
-
if (!table.$ready || !el)
|
|
30114
|
+
if (!table.$ready)
|
|
30265
30115
|
return;
|
|
30266
30116
|
let shouldUpdateLayout = false;
|
|
30267
|
-
const
|
|
30268
|
-
|
|
30269
|
-
height: oldHeight,
|
|
30270
|
-
headerHeight: oldHeaderHeight
|
|
30271
|
-
} = resizeState.value;
|
|
30117
|
+
const el = table.vnode.el;
|
|
30118
|
+
const { width: oldWidth, height: oldHeight } = resizeState.value;
|
|
30272
30119
|
const width = tableWidth.value = el.offsetWidth;
|
|
30273
30120
|
if (oldWidth !== width) {
|
|
30274
30121
|
shouldUpdateLayout = true;
|
|
30275
30122
|
}
|
|
30276
|
-
const
|
|
30277
|
-
if ((props.height || shouldUpdateHeight.value) && oldHeight !==
|
|
30278
|
-
shouldUpdateLayout = true;
|
|
30279
|
-
}
|
|
30280
|
-
const tableHeader = props.tableLayout === "fixed" ? table.refs.headerWrapper : (_a = table.refs.tableHeaderRef) == null ? void 0 : _a.$el;
|
|
30281
|
-
if (props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
|
|
30123
|
+
const height2 = el.offsetHeight;
|
|
30124
|
+
if ((props.height || shouldUpdateHeight.value) && oldHeight !== height2) {
|
|
30282
30125
|
shouldUpdateLayout = true;
|
|
30283
30126
|
}
|
|
30284
|
-
tableScrollHeight.value = ((_b = table.refs.tableWrapper) == null ? void 0 : _b.scrollHeight) || 0;
|
|
30285
|
-
headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
|
|
30286
|
-
footerScrollHeight.value = ((_c = table.refs.footerWrapper) == null ? void 0 : _c.offsetHeight) || 0;
|
|
30287
|
-
bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value;
|
|
30288
30127
|
if (shouldUpdateLayout) {
|
|
30289
30128
|
resizeState.value = {
|
|
30290
30129
|
width,
|
|
30291
|
-
height
|
|
30292
|
-
headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
|
|
30130
|
+
height: height2
|
|
30293
30131
|
};
|
|
30294
30132
|
doLayout();
|
|
30295
30133
|
}
|
|
@@ -30304,55 +30142,57 @@ function useStyle(props, layout, store, table) {
|
|
|
30304
30142
|
return "fixed";
|
|
30305
30143
|
return props.tableLayout;
|
|
30306
30144
|
});
|
|
30307
|
-
|
|
30308
|
-
|
|
30309
|
-
|
|
30310
|
-
|
|
30311
|
-
|
|
30312
|
-
|
|
30145
|
+
function calcMaxHeight(maxHeight, footerHeight, headerHeight) {
|
|
30146
|
+
const parsedMaxHeight = parseHeight(maxHeight);
|
|
30147
|
+
const tableHeaderHeight = props.showHeader ? headerHeight : 0;
|
|
30148
|
+
if (parsedMaxHeight === null)
|
|
30149
|
+
return;
|
|
30150
|
+
if (isString(parsedMaxHeight)) {
|
|
30151
|
+
return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
|
|
30313
30152
|
}
|
|
30314
|
-
|
|
30315
|
-
|
|
30316
|
-
|
|
30317
|
-
|
|
30318
|
-
|
|
30319
|
-
|
|
30320
|
-
const tableInnerStyle = computed(() => {
|
|
30153
|
+
return parsedMaxHeight - footerHeight - tableHeaderHeight;
|
|
30154
|
+
}
|
|
30155
|
+
const height = computed(() => {
|
|
30156
|
+
const headerHeight = layout.headerHeight.value || 0;
|
|
30157
|
+
const bodyHeight2 = layout.bodyHeight.value;
|
|
30158
|
+
const footerHeight = layout.footerHeight.value || 0;
|
|
30321
30159
|
if (props.height) {
|
|
30322
|
-
return
|
|
30323
|
-
|
|
30324
|
-
|
|
30160
|
+
return bodyHeight2 ? bodyHeight2 : void 0;
|
|
30161
|
+
} else if (props.maxHeight) {
|
|
30162
|
+
return calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
|
|
30325
30163
|
}
|
|
30326
|
-
|
|
30327
|
-
return {
|
|
30328
|
-
maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
|
|
30329
|
-
};
|
|
30330
|
-
}
|
|
30331
|
-
return {};
|
|
30164
|
+
return void 0;
|
|
30332
30165
|
});
|
|
30333
|
-
const
|
|
30166
|
+
const bodyHeight = computed(() => {
|
|
30167
|
+
const headerHeight = layout.headerHeight.value || 0;
|
|
30168
|
+
const bodyHeight2 = layout.bodyHeight.value;
|
|
30169
|
+
const footerHeight = layout.footerHeight.value || 0;
|
|
30334
30170
|
if (props.height) {
|
|
30335
30171
|
return {
|
|
30336
|
-
height: "
|
|
30172
|
+
height: bodyHeight2 ? `${bodyHeight2}px` : ""
|
|
30337
30173
|
};
|
|
30338
|
-
}
|
|
30339
|
-
|
|
30340
|
-
if (
|
|
30341
|
-
const maxHeight = props.maxHeight;
|
|
30342
|
-
const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
|
|
30343
|
-
if (reachMaxHeight) {
|
|
30344
|
-
return {
|
|
30345
|
-
maxHeight: `${tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value}px`
|
|
30346
|
-
};
|
|
30347
|
-
}
|
|
30348
|
-
} else {
|
|
30174
|
+
} else if (props.maxHeight) {
|
|
30175
|
+
const maxHeight = calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
|
|
30176
|
+
if (maxHeight !== null) {
|
|
30349
30177
|
return {
|
|
30350
|
-
|
|
30178
|
+
"max-height": `${maxHeight}${isNumber(maxHeight) ? "px" : ""}`
|
|
30351
30179
|
};
|
|
30352
30180
|
}
|
|
30353
30181
|
}
|
|
30354
30182
|
return {};
|
|
30355
30183
|
});
|
|
30184
|
+
const emptyBlockStyle = computed(() => {
|
|
30185
|
+
if (props.data && props.data.length)
|
|
30186
|
+
return null;
|
|
30187
|
+
let height2 = "100%";
|
|
30188
|
+
if (layout.appendHeight.value) {
|
|
30189
|
+
height2 = `calc(100% - ${layout.appendHeight.value}px)`;
|
|
30190
|
+
}
|
|
30191
|
+
return {
|
|
30192
|
+
width: tableWidth.value ? `${tableWidth.value}px` : "",
|
|
30193
|
+
height: height2
|
|
30194
|
+
};
|
|
30195
|
+
});
|
|
30356
30196
|
const handleFixedMousewheel = (event, data) => {
|
|
30357
30197
|
const bodyWrapper = table.refs.bodyWrapper;
|
|
30358
30198
|
if (Math.abs(data.spinY) > 0) {
|
|
@@ -30368,6 +30208,47 @@ function useStyle(props, layout, store, table) {
|
|
|
30368
30208
|
bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
|
|
30369
30209
|
}
|
|
30370
30210
|
};
|
|
30211
|
+
const fixedHeight = computed(() => {
|
|
30212
|
+
if (props.maxHeight) {
|
|
30213
|
+
if (props.showSummary) {
|
|
30214
|
+
return {
|
|
30215
|
+
bottom: 0
|
|
30216
|
+
};
|
|
30217
|
+
}
|
|
30218
|
+
return {
|
|
30219
|
+
bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
|
|
30220
|
+
};
|
|
30221
|
+
} else {
|
|
30222
|
+
if (props.showSummary) {
|
|
30223
|
+
return {
|
|
30224
|
+
height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
|
|
30225
|
+
};
|
|
30226
|
+
}
|
|
30227
|
+
return {
|
|
30228
|
+
height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
|
|
30229
|
+
};
|
|
30230
|
+
}
|
|
30231
|
+
});
|
|
30232
|
+
const fixedBodyHeight = computed(() => {
|
|
30233
|
+
if (props.height) {
|
|
30234
|
+
return {
|
|
30235
|
+
height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
|
|
30236
|
+
};
|
|
30237
|
+
} else if (props.maxHeight) {
|
|
30238
|
+
let maxHeight = parseHeight(props.maxHeight);
|
|
30239
|
+
if (typeof maxHeight === "number") {
|
|
30240
|
+
maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
|
|
30241
|
+
if (props.showHeader) {
|
|
30242
|
+
maxHeight -= layout.headerHeight.value;
|
|
30243
|
+
}
|
|
30244
|
+
maxHeight -= layout.footerHeight.value;
|
|
30245
|
+
return {
|
|
30246
|
+
"max-height": `${maxHeight}px`
|
|
30247
|
+
};
|
|
30248
|
+
}
|
|
30249
|
+
}
|
|
30250
|
+
return {};
|
|
30251
|
+
});
|
|
30371
30252
|
return {
|
|
30372
30253
|
isHidden,
|
|
30373
30254
|
renderExpanded,
|
|
@@ -30376,24 +30257,28 @@ function useStyle(props, layout, store, table) {
|
|
|
30376
30257
|
handleMouseLeave,
|
|
30377
30258
|
handleHeaderFooterMousewheel,
|
|
30378
30259
|
tableSize,
|
|
30260
|
+
bodyHeight,
|
|
30261
|
+
height,
|
|
30379
30262
|
emptyBlockStyle,
|
|
30380
30263
|
handleFixedMousewheel,
|
|
30264
|
+
fixedHeight,
|
|
30265
|
+
fixedBodyHeight,
|
|
30381
30266
|
resizeProxyVisible,
|
|
30382
30267
|
bodyWidth,
|
|
30383
30268
|
resizeState,
|
|
30384
30269
|
doLayout,
|
|
30385
30270
|
tableBodyStyles,
|
|
30386
30271
|
tableLayout,
|
|
30387
|
-
scrollbarViewStyle
|
|
30388
|
-
tableInnerStyle,
|
|
30389
|
-
scrollbarStyle
|
|
30272
|
+
scrollbarViewStyle
|
|
30390
30273
|
};
|
|
30391
30274
|
}
|
|
30392
30275
|
|
|
30393
30276
|
var defaultProps$1 = {
|
|
30394
30277
|
data: {
|
|
30395
30278
|
type: Array,
|
|
30396
|
-
default: () =>
|
|
30279
|
+
default: () => {
|
|
30280
|
+
return [];
|
|
30281
|
+
}
|
|
30397
30282
|
},
|
|
30398
30283
|
size: String,
|
|
30399
30284
|
width: [String, Number],
|
|
@@ -30463,8 +30348,7 @@ var defaultProps$1 = {
|
|
|
30463
30348
|
scrollbarAlwaysOn: {
|
|
30464
30349
|
type: Boolean,
|
|
30465
30350
|
default: false
|
|
30466
|
-
}
|
|
30467
|
-
flexible: Boolean
|
|
30351
|
+
}
|
|
30468
30352
|
};
|
|
30469
30353
|
|
|
30470
30354
|
const useScrollbar = () => {
|
|
@@ -30559,21 +30443,23 @@ const _sfc_main$n = defineComponent({
|
|
|
30559
30443
|
handleMouseLeave,
|
|
30560
30444
|
handleHeaderFooterMousewheel,
|
|
30561
30445
|
tableSize,
|
|
30446
|
+
bodyHeight,
|
|
30447
|
+
height,
|
|
30562
30448
|
emptyBlockStyle,
|
|
30563
30449
|
handleFixedMousewheel,
|
|
30450
|
+
fixedHeight,
|
|
30451
|
+
fixedBodyHeight,
|
|
30564
30452
|
resizeProxyVisible,
|
|
30565
30453
|
bodyWidth,
|
|
30566
30454
|
resizeState,
|
|
30567
30455
|
doLayout,
|
|
30568
30456
|
tableBodyStyles,
|
|
30569
30457
|
tableLayout,
|
|
30570
|
-
scrollbarViewStyle
|
|
30571
|
-
tableInnerStyle,
|
|
30572
|
-
scrollbarStyle
|
|
30458
|
+
scrollbarViewStyle
|
|
30573
30459
|
} = useStyle(props, layout, store, table);
|
|
30574
30460
|
const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar();
|
|
30575
30461
|
const debouncedUpdateLayout = debounce(doLayout, 50);
|
|
30576
|
-
const tableId =
|
|
30462
|
+
const tableId = `el-table_${tableIdSeed++}`;
|
|
30577
30463
|
table.tableId = tableId;
|
|
30578
30464
|
table.state = {
|
|
30579
30465
|
isGroup,
|
|
@@ -30600,10 +30486,14 @@ const _sfc_main$n = defineComponent({
|
|
|
30600
30486
|
resizeState,
|
|
30601
30487
|
isGroup,
|
|
30602
30488
|
bodyWidth,
|
|
30489
|
+
bodyHeight,
|
|
30490
|
+
height,
|
|
30603
30491
|
tableBodyStyles,
|
|
30604
30492
|
emptyBlockStyle,
|
|
30605
30493
|
debouncedUpdateLayout,
|
|
30606
30494
|
handleFixedMousewheel,
|
|
30495
|
+
fixedHeight,
|
|
30496
|
+
fixedBodyHeight,
|
|
30607
30497
|
setCurrentRow,
|
|
30608
30498
|
getSelectionRows,
|
|
30609
30499
|
toggleRowSelection,
|
|
@@ -30621,8 +30511,6 @@ const _sfc_main$n = defineComponent({
|
|
|
30621
30511
|
computedEmptyText,
|
|
30622
30512
|
tableLayout,
|
|
30623
30513
|
scrollbarViewStyle,
|
|
30624
|
-
tableInnerStyle,
|
|
30625
|
-
scrollbarStyle,
|
|
30626
30514
|
scrollBarRef,
|
|
30627
30515
|
scrollTo,
|
|
30628
30516
|
setScrollLeft,
|
|
@@ -30667,8 +30555,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30667
30555
|
"data-prefix": _ctx.ns.namespace.value
|
|
30668
30556
|
}, [
|
|
30669
30557
|
createElementVNode("div", {
|
|
30670
|
-
class: normalizeClass(_ctx.ns.e("inner-wrapper"))
|
|
30671
|
-
style: normalizeStyle(_ctx.tableInnerStyle)
|
|
30558
|
+
class: normalizeClass(_ctx.ns.e("inner-wrapper"))
|
|
30672
30559
|
}, [
|
|
30673
30560
|
createElementVNode("div", _hoisted_2$2, [
|
|
30674
30561
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -30702,12 +30589,14 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30702
30589
|
]) : createCommentVNode("v-if", true),
|
|
30703
30590
|
createElementVNode("div", {
|
|
30704
30591
|
ref: "bodyWrapper",
|
|
30592
|
+
style: normalizeStyle(_ctx.bodyHeight),
|
|
30705
30593
|
class: normalizeClass(_ctx.ns.e("body-wrapper"))
|
|
30706
30594
|
}, [
|
|
30707
30595
|
createVNode(_component_ps_scrollbar, {
|
|
30708
30596
|
ref: "scrollBarRef",
|
|
30597
|
+
height: _ctx.maxHeight ? void 0 : _ctx.height,
|
|
30598
|
+
"max-height": _ctx.maxHeight ? _ctx.height : void 0,
|
|
30709
30599
|
"view-style": _ctx.scrollbarViewStyle,
|
|
30710
|
-
"wrap-style": _ctx.scrollbarStyle,
|
|
30711
30600
|
always: _ctx.scrollbarAlwaysOn
|
|
30712
30601
|
}, {
|
|
30713
30602
|
default: withCtx(() => [
|
|
@@ -30728,7 +30617,6 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30728
30617
|
}, null, 8, ["columns", "table-layout"]),
|
|
30729
30618
|
_ctx.showHeader && _ctx.tableLayout === "auto" ? (openBlock(), createBlock(_component_table_header, {
|
|
30730
30619
|
key: 0,
|
|
30731
|
-
ref: "tableHeaderRef",
|
|
30732
30620
|
border: _ctx.border,
|
|
30733
30621
|
"default-sort": _ctx.defaultSort,
|
|
30734
30622
|
store: _ctx.store
|
|
@@ -30766,30 +30654,30 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30766
30654
|
], 2)) : createCommentVNode("v-if", true)
|
|
30767
30655
|
]),
|
|
30768
30656
|
_: 3
|
|
30769
|
-
}, 8, ["
|
|
30770
|
-
],
|
|
30771
|
-
_ctx.showSummary ? withDirectives((openBlock(), createElementBlock("div", {
|
|
30772
|
-
key: 1,
|
|
30773
|
-
ref: "footerWrapper",
|
|
30774
|
-
class: normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
30775
|
-
}, [
|
|
30776
|
-
createVNode(_component_table_footer, {
|
|
30777
|
-
border: _ctx.border,
|
|
30778
|
-
"default-sort": _ctx.defaultSort,
|
|
30779
|
-
store: _ctx.store,
|
|
30780
|
-
style: normalizeStyle(_ctx.tableBodyStyles),
|
|
30781
|
-
"sum-text": _ctx.computedSumText,
|
|
30782
|
-
"summary-method": _ctx.summaryMethod
|
|
30783
|
-
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
30784
|
-
], 2)), [
|
|
30785
|
-
[vShow, !_ctx.isEmpty],
|
|
30786
|
-
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
30787
|
-
]) : createCommentVNode("v-if", true),
|
|
30657
|
+
}, 8, ["height", "max-height", "view-style", "always"])
|
|
30658
|
+
], 6),
|
|
30788
30659
|
_ctx.border || _ctx.isGroup ? (openBlock(), createElementBlock("div", {
|
|
30789
|
-
key:
|
|
30660
|
+
key: 1,
|
|
30790
30661
|
class: normalizeClass(_ctx.ns.e("border-left-patch"))
|
|
30791
30662
|
}, null, 2)) : createCommentVNode("v-if", true)
|
|
30792
|
-
],
|
|
30663
|
+
], 2),
|
|
30664
|
+
_ctx.showSummary ? withDirectives((openBlock(), createElementBlock("div", {
|
|
30665
|
+
key: 0,
|
|
30666
|
+
ref: "footerWrapper",
|
|
30667
|
+
class: normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
30668
|
+
}, [
|
|
30669
|
+
createVNode(_component_table_footer, {
|
|
30670
|
+
border: _ctx.border,
|
|
30671
|
+
"default-sort": _ctx.defaultSort,
|
|
30672
|
+
store: _ctx.store,
|
|
30673
|
+
style: normalizeStyle(_ctx.tableBodyStyles),
|
|
30674
|
+
"sum-text": _ctx.computedSumText,
|
|
30675
|
+
"summary-method": _ctx.summaryMethod
|
|
30676
|
+
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
30677
|
+
], 2)), [
|
|
30678
|
+
[vShow, !_ctx.isEmpty],
|
|
30679
|
+
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
30680
|
+
]) : createCommentVNode("v-if", true),
|
|
30793
30681
|
withDirectives(createElementVNode("div", {
|
|
30794
30682
|
ref: "resizeProxy",
|
|
30795
30683
|
class: normalizeClass(_ctx.ns.e("column-resize-proxy"))
|
|
@@ -30951,9 +30839,6 @@ function treeCellPrefix({
|
|
|
30951
30839
|
const ele = [];
|
|
30952
30840
|
const callback = function(e) {
|
|
30953
30841
|
e.stopPropagation();
|
|
30954
|
-
if (treeNode.loading) {
|
|
30955
|
-
return;
|
|
30956
|
-
}
|
|
30957
30842
|
store.loadOrToggle(row);
|
|
30958
30843
|
};
|
|
30959
30844
|
if (treeNode.indent) {
|
|
@@ -31088,9 +30973,6 @@ function useRender(props, slots, owner) {
|
|
|
31088
30973
|
if (realMinWidth.value) {
|
|
31089
30974
|
column.minWidth = realMinWidth.value;
|
|
31090
30975
|
}
|
|
31091
|
-
if (!realWidth.value && realMinWidth.value) {
|
|
31092
|
-
column.width = void 0;
|
|
31093
|
-
}
|
|
31094
30976
|
if (!column.minWidth) {
|
|
31095
30977
|
column.minWidth = 80;
|
|
31096
30978
|
}
|
|
@@ -31135,6 +31017,7 @@ function useRender(props, slots, owner) {
|
|
|
31135
31017
|
};
|
|
31136
31018
|
}
|
|
31137
31019
|
let originRenderCell = column.renderCell;
|
|
31020
|
+
const hasTreeColumnValue = hasTreeColumn.value;
|
|
31138
31021
|
if (column.type === "expand") {
|
|
31139
31022
|
column.renderCell = (data) => h$1("div", {
|
|
31140
31023
|
class: "cell"
|
|
@@ -31152,7 +31035,7 @@ function useRender(props, slots, owner) {
|
|
|
31152
31035
|
} else {
|
|
31153
31036
|
children = originRenderCell(data);
|
|
31154
31037
|
}
|
|
31155
|
-
const shouldCreatePlaceholder =
|
|
31038
|
+
const shouldCreatePlaceholder = hasTreeColumnValue && data.cellIndex === 0;
|
|
31156
31039
|
const prefix = treeCellPrefix(data, shouldCreatePlaceholder);
|
|
31157
31040
|
const props2 = {
|
|
31158
31041
|
class: "cell",
|