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.js
CHANGED
|
@@ -949,9 +949,9 @@
|
|
|
949
949
|
return cache.has(key);
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
-
var COMPARE_PARTIAL_FLAG$
|
|
952
|
+
var COMPARE_PARTIAL_FLAG$3 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
953
953
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
954
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
954
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, arrLength = array.length, othLength = other.length;
|
|
955
955
|
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
956
956
|
return false;
|
|
957
957
|
}
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
if (arrStacked && othStacked) {
|
|
961
961
|
return arrStacked == other && othStacked == array;
|
|
962
962
|
}
|
|
963
|
-
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$
|
|
963
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$1 ? new SetCache() : void 0;
|
|
964
964
|
stack.set(array, other);
|
|
965
965
|
stack.set(other, array);
|
|
966
966
|
while (++index < arrLength) {
|
|
@@ -1010,7 +1010,7 @@
|
|
|
1010
1010
|
return result;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
-
var COMPARE_PARTIAL_FLAG$
|
|
1013
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1014
1014
|
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]";
|
|
1015
1015
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
1016
1016
|
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
@@ -1039,7 +1039,7 @@
|
|
|
1039
1039
|
case mapTag:
|
|
1040
1040
|
var convert = mapToArray;
|
|
1041
1041
|
case setTag:
|
|
1042
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
1042
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
1043
1043
|
convert || (convert = setToArray);
|
|
1044
1044
|
if (object.size != other.size && !isPartial) {
|
|
1045
1045
|
return false;
|
|
@@ -1048,7 +1048,7 @@
|
|
|
1048
1048
|
if (stacked) {
|
|
1049
1049
|
return stacked == other;
|
|
1050
1050
|
}
|
|
1051
|
-
bitmask |= COMPARE_UNORDERED_FLAG
|
|
1051
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
1052
1052
|
stack.set(object, other);
|
|
1053
1053
|
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
1054
1054
|
stack["delete"](object);
|
|
@@ -1061,11 +1061,11 @@
|
|
|
1061
1061
|
return false;
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
-
var COMPARE_PARTIAL_FLAG$
|
|
1064
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
1065
1065
|
var objectProto$1 = Object.prototype;
|
|
1066
1066
|
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
1067
1067
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1068
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
1068
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
1069
1069
|
if (objLength != othLength && !isPartial) {
|
|
1070
1070
|
return false;
|
|
1071
1071
|
}
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
return result;
|
|
1109
1109
|
}
|
|
1110
1110
|
|
|
1111
|
-
var COMPARE_PARTIAL_FLAG
|
|
1111
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1112
1112
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
1113
1113
|
var objectProto = Object.prototype;
|
|
1114
1114
|
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
stack || (stack = new Stack());
|
|
1129
1129
|
return objIsArr || isTypedArray$1(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
1130
1130
|
}
|
|
1131
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG
|
|
1131
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
1132
1132
|
var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$1.call(other, "__wrapped__");
|
|
1133
1133
|
if (objIsWrapped || othIsWrapped) {
|
|
1134
1134
|
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
@@ -1153,71 +1153,6 @@
|
|
|
1153
1153
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
1157
|
-
function baseIsMatch(object, source, matchData, customizer) {
|
|
1158
|
-
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
1159
|
-
if (object == null) {
|
|
1160
|
-
return !length;
|
|
1161
|
-
}
|
|
1162
|
-
object = Object(object);
|
|
1163
|
-
while (index--) {
|
|
1164
|
-
var data = matchData[index];
|
|
1165
|
-
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
1166
|
-
return false;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
while (++index < length) {
|
|
1170
|
-
data = matchData[index];
|
|
1171
|
-
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1172
|
-
if (noCustomizer && data[2]) {
|
|
1173
|
-
if (objValue === void 0 && !(key in object)) {
|
|
1174
|
-
return false;
|
|
1175
|
-
}
|
|
1176
|
-
} else {
|
|
1177
|
-
var stack = new Stack();
|
|
1178
|
-
if (customizer) {
|
|
1179
|
-
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
1180
|
-
}
|
|
1181
|
-
if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
|
1182
|
-
return false;
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
return true;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
function isStrictComparable(value) {
|
|
1190
|
-
return value === value && !isObject$2(value);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
function getMatchData(object) {
|
|
1194
|
-
var result = keys(object), length = result.length;
|
|
1195
|
-
while (length--) {
|
|
1196
|
-
var key = result[length], value = object[key];
|
|
1197
|
-
result[length] = [key, value, isStrictComparable(value)];
|
|
1198
|
-
}
|
|
1199
|
-
return result;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
function matchesStrictComparable(key, srcValue) {
|
|
1203
|
-
return function(object) {
|
|
1204
|
-
if (object == null) {
|
|
1205
|
-
return false;
|
|
1206
|
-
}
|
|
1207
|
-
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
function baseMatches(source) {
|
|
1212
|
-
var matchData = getMatchData(source);
|
|
1213
|
-
if (matchData.length == 1 && matchData[0][2]) {
|
|
1214
|
-
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
1215
|
-
}
|
|
1216
|
-
return function(object) {
|
|
1217
|
-
return object === source || baseIsMatch(object, source, matchData);
|
|
1218
|
-
};
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
1156
|
function baseHasIn(object, key) {
|
|
1222
1157
|
return object != null && key in Object(object);
|
|
1223
1158
|
}
|
|
@@ -1243,87 +1178,6 @@
|
|
|
1243
1178
|
return object != null && hasPath(object, path, baseHasIn);
|
|
1244
1179
|
}
|
|
1245
1180
|
|
|
1246
|
-
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1247
|
-
function baseMatchesProperty(path, srcValue) {
|
|
1248
|
-
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
1249
|
-
return matchesStrictComparable(toKey(path), srcValue);
|
|
1250
|
-
}
|
|
1251
|
-
return function(object) {
|
|
1252
|
-
var objValue = get(object, path);
|
|
1253
|
-
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1254
|
-
};
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
function baseProperty(key) {
|
|
1258
|
-
return function(object) {
|
|
1259
|
-
return object == null ? void 0 : object[key];
|
|
1260
|
-
};
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
function basePropertyDeep(path) {
|
|
1264
|
-
return function(object) {
|
|
1265
|
-
return baseGet(object, path);
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
function property(path) {
|
|
1270
|
-
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
function baseIteratee(value) {
|
|
1274
|
-
if (typeof value == "function") {
|
|
1275
|
-
return value;
|
|
1276
|
-
}
|
|
1277
|
-
if (value == null) {
|
|
1278
|
-
return identity;
|
|
1279
|
-
}
|
|
1280
|
-
if (typeof value == "object") {
|
|
1281
|
-
return isArray$2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
1282
|
-
}
|
|
1283
|
-
return property(value);
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
function createBaseFor(fromRight) {
|
|
1287
|
-
return function(object, iteratee, keysFunc) {
|
|
1288
|
-
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1289
|
-
while (length--) {
|
|
1290
|
-
var key = props[fromRight ? length : ++index];
|
|
1291
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1292
|
-
break;
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
return object;
|
|
1296
|
-
};
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
var baseFor = createBaseFor();
|
|
1300
|
-
var baseFor$1 = baseFor;
|
|
1301
|
-
|
|
1302
|
-
function baseForOwn(object, iteratee) {
|
|
1303
|
-
return object && baseFor$1(object, iteratee, keys);
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
function createBaseEach(eachFunc, fromRight) {
|
|
1307
|
-
return function(collection, iteratee) {
|
|
1308
|
-
if (collection == null) {
|
|
1309
|
-
return collection;
|
|
1310
|
-
}
|
|
1311
|
-
if (!isArrayLike(collection)) {
|
|
1312
|
-
return eachFunc(collection, iteratee);
|
|
1313
|
-
}
|
|
1314
|
-
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
1315
|
-
while (fromRight ? index-- : ++index < length) {
|
|
1316
|
-
if (iteratee(iterable[index], index, iterable) === false) {
|
|
1317
|
-
break;
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
return collection;
|
|
1321
|
-
};
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
var baseEach = createBaseEach(baseForOwn);
|
|
1325
|
-
var baseEach$1 = baseEach;
|
|
1326
|
-
|
|
1327
1181
|
var now = function() {
|
|
1328
1182
|
return root$1.Date.now();
|
|
1329
1183
|
};
|
|
@@ -1427,23 +1281,6 @@
|
|
|
1427
1281
|
return false;
|
|
1428
1282
|
}
|
|
1429
1283
|
|
|
1430
|
-
function baseMap(collection, iteratee) {
|
|
1431
|
-
var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
|
|
1432
|
-
baseEach$1(collection, function(value, key, collection2) {
|
|
1433
|
-
result[++index] = iteratee(value, key, collection2);
|
|
1434
|
-
});
|
|
1435
|
-
return result;
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
function map(collection, iteratee) {
|
|
1439
|
-
var func = isArray$2(collection) ? arrayMap : baseMap;
|
|
1440
|
-
return func(collection, baseIteratee(iteratee));
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
function flatMap(collection, iteratee) {
|
|
1444
|
-
return baseFlatten(map(collection, iteratee), 1);
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
1284
|
var INFINITY$1 = 1 / 0;
|
|
1448
1285
|
function flattenDeep(array) {
|
|
1449
1286
|
var length = array == null ? 0 : array.length;
|
|
@@ -27206,8 +27043,14 @@
|
|
|
27206
27043
|
}
|
|
27207
27044
|
|
|
27208
27045
|
const getCell = function(event) {
|
|
27209
|
-
|
|
27210
|
-
|
|
27046
|
+
let cell = event.target;
|
|
27047
|
+
while (cell && cell.tagName.toUpperCase() !== "HTML") {
|
|
27048
|
+
if (cell.tagName.toUpperCase() === "TD") {
|
|
27049
|
+
return cell;
|
|
27050
|
+
}
|
|
27051
|
+
cell = cell.parentNode;
|
|
27052
|
+
}
|
|
27053
|
+
return null;
|
|
27211
27054
|
};
|
|
27212
27055
|
const isObject = function(obj) {
|
|
27213
27056
|
return obj !== null && typeof obj === "object";
|
|
@@ -27286,8 +27129,6 @@
|
|
|
27286
27129
|
break;
|
|
27287
27130
|
}
|
|
27288
27131
|
}
|
|
27289
|
-
if (!column)
|
|
27290
|
-
throwError("ElTable", `No column matching with column-key: ${columnKey}`);
|
|
27291
27132
|
return column;
|
|
27292
27133
|
};
|
|
27293
27134
|
const getColumnByCell = function(table, cell, namespace) {
|
|
@@ -27385,27 +27226,26 @@
|
|
|
27385
27226
|
let changed = false;
|
|
27386
27227
|
const index = statusArr.indexOf(row);
|
|
27387
27228
|
const included = index !== -1;
|
|
27388
|
-
const
|
|
27389
|
-
|
|
27390
|
-
statusArr.push(row);
|
|
27391
|
-
} else {
|
|
27392
|
-
statusArr.splice(index, 1);
|
|
27393
|
-
}
|
|
27229
|
+
const addRow = () => {
|
|
27230
|
+
statusArr.push(row);
|
|
27394
27231
|
changed = true;
|
|
27395
|
-
if (isArray(row.children)) {
|
|
27396
|
-
row.children.forEach((item) => {
|
|
27397
|
-
toggleRowStatus(statusArr, item, newVal != null ? newVal : !included);
|
|
27398
|
-
});
|
|
27399
|
-
}
|
|
27400
27232
|
};
|
|
27401
|
-
|
|
27233
|
+
const removeRow = () => {
|
|
27234
|
+
statusArr.splice(index, 1);
|
|
27235
|
+
changed = true;
|
|
27236
|
+
};
|
|
27237
|
+
if (typeof newVal === "boolean") {
|
|
27402
27238
|
if (newVal && !included) {
|
|
27403
|
-
|
|
27239
|
+
addRow();
|
|
27404
27240
|
} else if (!newVal && included) {
|
|
27405
|
-
|
|
27241
|
+
removeRow();
|
|
27406
27242
|
}
|
|
27407
27243
|
} else {
|
|
27408
|
-
|
|
27244
|
+
if (included) {
|
|
27245
|
+
removeRow();
|
|
27246
|
+
} else {
|
|
27247
|
+
addRow();
|
|
27248
|
+
}
|
|
27409
27249
|
}
|
|
27410
27250
|
return changed;
|
|
27411
27251
|
}
|
|
@@ -27436,37 +27276,32 @@
|
|
|
27436
27276
|
});
|
|
27437
27277
|
}
|
|
27438
27278
|
let removePopper;
|
|
27439
|
-
function createTablePopper(
|
|
27279
|
+
function createTablePopper(trigger, popperContent, popperOptions, tooltipEffect) {
|
|
27440
27280
|
const { nextZIndex } = useZIndex();
|
|
27441
|
-
const ns = parentNode == null ? void 0 : parentNode.dataset.prefix;
|
|
27442
|
-
const scrollContainer = parentNode == null ? void 0 : parentNode.querySelector(`.${ns}-scrollbar__wrap`);
|
|
27443
27281
|
function renderContent() {
|
|
27444
27282
|
const isLight = tooltipEffect === "light";
|
|
27445
27283
|
const content2 = document.createElement("div");
|
|
27446
|
-
content2.className =
|
|
27284
|
+
content2.className = `el-popper ${isLight ? "is-light" : "is-dark"}`;
|
|
27447
27285
|
popperContent = escapeHtml_1(popperContent);
|
|
27448
27286
|
content2.innerHTML = popperContent;
|
|
27449
27287
|
content2.style.zIndex = String(nextZIndex());
|
|
27450
|
-
|
|
27288
|
+
document.body.appendChild(content2);
|
|
27451
27289
|
return content2;
|
|
27452
27290
|
}
|
|
27453
27291
|
function renderArrow() {
|
|
27454
27292
|
const arrow2 = document.createElement("div");
|
|
27455
|
-
arrow2.className =
|
|
27293
|
+
arrow2.className = "el-popper__arrow";
|
|
27456
27294
|
return arrow2;
|
|
27457
27295
|
}
|
|
27458
27296
|
function showPopper() {
|
|
27459
27297
|
popperInstance && popperInstance.update();
|
|
27460
27298
|
}
|
|
27461
|
-
removePopper
|
|
27462
|
-
removePopper = () => {
|
|
27299
|
+
removePopper = function removePopper2() {
|
|
27463
27300
|
try {
|
|
27464
27301
|
popperInstance && popperInstance.destroy();
|
|
27465
|
-
content &&
|
|
27466
|
-
trigger
|
|
27467
|
-
trigger
|
|
27468
|
-
scrollContainer == null ? void 0 : scrollContainer.removeEventListener("scroll", removePopper);
|
|
27469
|
-
removePopper = void 0;
|
|
27302
|
+
content && document.body.removeChild(content);
|
|
27303
|
+
off(trigger, "mouseenter", showPopper);
|
|
27304
|
+
off(trigger, "mouseleave", removePopper2);
|
|
27470
27305
|
} catch (e) {
|
|
27471
27306
|
}
|
|
27472
27307
|
};
|
|
@@ -27475,7 +27310,6 @@
|
|
|
27475
27310
|
const arrow = renderArrow();
|
|
27476
27311
|
content.appendChild(arrow);
|
|
27477
27312
|
popperInstance = yn(trigger, content, {
|
|
27478
|
-
strategy: "absolute",
|
|
27479
27313
|
modifiers: [
|
|
27480
27314
|
{
|
|
27481
27315
|
name: "offset",
|
|
@@ -27493,34 +27327,26 @@
|
|
|
27493
27327
|
],
|
|
27494
27328
|
...popperOptions
|
|
27495
27329
|
});
|
|
27496
|
-
trigger
|
|
27497
|
-
trigger
|
|
27498
|
-
scrollContainer == null ? void 0 : scrollContainer.addEventListener("scroll", removePopper);
|
|
27330
|
+
on$1(trigger, "mouseenter", showPopper);
|
|
27331
|
+
on$1(trigger, "mouseleave", removePopper);
|
|
27499
27332
|
return popperInstance;
|
|
27500
27333
|
}
|
|
27501
|
-
function getCurrentColumns(column) {
|
|
27502
|
-
if (column.children) {
|
|
27503
|
-
return flatMap(column.children, getCurrentColumns);
|
|
27504
|
-
} else {
|
|
27505
|
-
return [column];
|
|
27506
|
-
}
|
|
27507
|
-
}
|
|
27508
|
-
function getColSpan(colSpan, column) {
|
|
27509
|
-
return colSpan + column.colSpan;
|
|
27510
|
-
}
|
|
27511
27334
|
const isFixedColumn = (index, fixed, store, realColumns) => {
|
|
27512
27335
|
let start = 0;
|
|
27513
27336
|
let after = index;
|
|
27514
|
-
const columns = store.states.columns.value;
|
|
27515
27337
|
if (realColumns) {
|
|
27516
|
-
|
|
27517
|
-
|
|
27518
|
-
|
|
27519
|
-
|
|
27338
|
+
if (realColumns[index].colSpan > 1) {
|
|
27339
|
+
return {};
|
|
27340
|
+
}
|
|
27341
|
+
for (let i = 0; i < index; i++) {
|
|
27342
|
+
start += realColumns[i].colSpan;
|
|
27343
|
+
}
|
|
27344
|
+
after = start + realColumns[index].colSpan - 1;
|
|
27520
27345
|
} else {
|
|
27521
27346
|
start = index;
|
|
27522
27347
|
}
|
|
27523
27348
|
let fixedLayout;
|
|
27349
|
+
const columns = store.states.columns;
|
|
27524
27350
|
switch (fixed) {
|
|
27525
27351
|
case "left":
|
|
27526
27352
|
if (after < store.states.fixedLeafColumnsLength.value) {
|
|
@@ -27528,14 +27354,14 @@
|
|
|
27528
27354
|
}
|
|
27529
27355
|
break;
|
|
27530
27356
|
case "right":
|
|
27531
|
-
if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27357
|
+
if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27532
27358
|
fixedLayout = "right";
|
|
27533
27359
|
}
|
|
27534
27360
|
break;
|
|
27535
27361
|
default:
|
|
27536
27362
|
if (after < store.states.fixedLeafColumnsLength.value) {
|
|
27537
27363
|
fixedLayout = "left";
|
|
27538
|
-
} else if (start >= columns.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27364
|
+
} else if (start >= columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27539
27365
|
fixedLayout = "right";
|
|
27540
27366
|
}
|
|
27541
27367
|
}
|
|
@@ -27545,15 +27371,15 @@
|
|
|
27545
27371
|
after
|
|
27546
27372
|
} : {};
|
|
27547
27373
|
};
|
|
27548
|
-
const getFixedColumnsClass = (namespace, index, fixed, store, realColumns
|
|
27374
|
+
const getFixedColumnsClass = (namespace, index, fixed, store, realColumns) => {
|
|
27549
27375
|
const classes = [];
|
|
27550
|
-
const { direction, start
|
|
27376
|
+
const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
|
|
27551
27377
|
if (direction) {
|
|
27552
27378
|
const isLeft = direction === "left";
|
|
27553
27379
|
classes.push(`${namespace}-fixed-column--${direction}`);
|
|
27554
|
-
if (isLeft &&
|
|
27380
|
+
if (isLeft && start === store.states.fixedLeafColumnsLength.value - 1) {
|
|
27555
27381
|
classes.push("is-last-column");
|
|
27556
|
-
} else if (!isLeft && start
|
|
27382
|
+
} else if (!isLeft && start === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
|
|
27557
27383
|
classes.push("is-first-column");
|
|
27558
27384
|
}
|
|
27559
27385
|
}
|
|
@@ -27563,11 +27389,7 @@
|
|
|
27563
27389
|
return offset + (column.realWidth === null || Number.isNaN(column.realWidth) ? Number(column.width) : column.realWidth);
|
|
27564
27390
|
}
|
|
27565
27391
|
const getFixedColumnOffset = (index, fixed, store, realColumns) => {
|
|
27566
|
-
const {
|
|
27567
|
-
direction,
|
|
27568
|
-
start = 0,
|
|
27569
|
-
after = 0
|
|
27570
|
-
} = isFixedColumn(index, fixed, store, realColumns);
|
|
27392
|
+
const { direction, start = 0 } = isFixedColumn(index, fixed, store, realColumns);
|
|
27571
27393
|
if (!direction) {
|
|
27572
27394
|
return;
|
|
27573
27395
|
}
|
|
@@ -27575,9 +27397,9 @@
|
|
|
27575
27397
|
const isLeft = direction === "left";
|
|
27576
27398
|
const columns = store.states.columns.value;
|
|
27577
27399
|
if (isLeft) {
|
|
27578
|
-
styles.left = columns.slice(0,
|
|
27400
|
+
styles.left = columns.slice(0, index).reduce(getOffset, 0);
|
|
27579
27401
|
} else {
|
|
27580
|
-
styles.right = columns.slice(
|
|
27402
|
+
styles.right = columns.slice(start + 1).reverse().reduce(getOffset, 0);
|
|
27581
27403
|
}
|
|
27582
27404
|
return styles;
|
|
27583
27405
|
};
|
|
@@ -27688,21 +27510,19 @@
|
|
|
27688
27510
|
const rowKey = watcherData.rowKey.value;
|
|
27689
27511
|
const data = watcherData.data.value || [];
|
|
27690
27512
|
const oldCurrentRow = currentRow.value;
|
|
27691
|
-
if (
|
|
27692
|
-
if (
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
instance.emit("current-change", null, oldCurrentRow);
|
|
27701
|
-
}
|
|
27702
|
-
} else if (_currentRowKey.value) {
|
|
27703
|
-
setCurrentRowByKey(_currentRowKey.value);
|
|
27704
|
-
restoreCurrentRowKey();
|
|
27513
|
+
if (!data.includes(oldCurrentRow) && oldCurrentRow) {
|
|
27514
|
+
if (rowKey) {
|
|
27515
|
+
const currentRowKey = getRowIdentity(oldCurrentRow, rowKey);
|
|
27516
|
+
setCurrentRowByKey(currentRowKey);
|
|
27517
|
+
} else {
|
|
27518
|
+
currentRow.value = null;
|
|
27519
|
+
}
|
|
27520
|
+
if (currentRow.value === null) {
|
|
27521
|
+
instance.emit("current-change", null, oldCurrentRow);
|
|
27705
27522
|
}
|
|
27523
|
+
} else if (_currentRowKey.value) {
|
|
27524
|
+
setCurrentRowByKey(_currentRowKey.value);
|
|
27525
|
+
restoreCurrentRowKey();
|
|
27706
27526
|
}
|
|
27707
27527
|
};
|
|
27708
27528
|
return {
|
|
@@ -27951,19 +27771,9 @@
|
|
|
27951
27771
|
const hoverRow = vue.ref(null);
|
|
27952
27772
|
const assertRowKey = () => {
|
|
27953
27773
|
if (!rowKey.value)
|
|
27954
|
-
throw new Error("[
|
|
27955
|
-
};
|
|
27956
|
-
const updateChildFixed = (column) => {
|
|
27957
|
-
var _a2;
|
|
27958
|
-
(_a2 = column.children) == null ? void 0 : _a2.forEach((childColumn) => {
|
|
27959
|
-
childColumn.fixed = column.fixed;
|
|
27960
|
-
updateChildFixed(childColumn);
|
|
27961
|
-
});
|
|
27774
|
+
throw new Error("[PsTable] prop row-key is required");
|
|
27962
27775
|
};
|
|
27963
27776
|
const updateColumns = () => {
|
|
27964
|
-
_columns.value.forEach((column) => {
|
|
27965
|
-
updateChildFixed(column);
|
|
27966
|
-
});
|
|
27967
27777
|
fixedColumns.value = _columns.value.filter((column) => column.fixed === true || column.fixed === "left");
|
|
27968
27778
|
rightFixedColumns.value = _columns.value.filter((column) => column.fixed === "right");
|
|
27969
27779
|
if (fixedColumns.value.length > 0 && _columns.value[0] && _columns.value[0].type === "selection" && !_columns.value[0].fixed) {
|
|
@@ -28434,19 +28244,18 @@
|
|
|
28434
28244
|
}
|
|
28435
28245
|
},
|
|
28436
28246
|
changeSortCondition(states, options) {
|
|
28437
|
-
const { sortingColumn, sortProp, sortOrder } = states;
|
|
28438
|
-
|
|
28439
|
-
if (orderValue === null) {
|
|
28247
|
+
const { sortingColumn: column, sortProp: prop, sortOrder: order } = states;
|
|
28248
|
+
if (vue.unref(order) === null) {
|
|
28440
28249
|
states.sortingColumn.value = null;
|
|
28441
28250
|
states.sortProp.value = null;
|
|
28442
28251
|
}
|
|
28443
|
-
const
|
|
28444
|
-
instance.store.execQuery(
|
|
28252
|
+
const ingore = { filter: true };
|
|
28253
|
+
instance.store.execQuery(ingore);
|
|
28445
28254
|
if (!options || !(options.silent || options.init)) {
|
|
28446
28255
|
instance.emit("sort-change", {
|
|
28447
|
-
column:
|
|
28448
|
-
prop:
|
|
28449
|
-
order:
|
|
28256
|
+
column: vue.unref(column),
|
|
28257
|
+
prop: vue.unref(prop),
|
|
28258
|
+
order: vue.unref(order)
|
|
28450
28259
|
});
|
|
28451
28260
|
}
|
|
28452
28261
|
instance.store.updateTableScrollY();
|
|
@@ -28483,6 +28292,7 @@
|
|
|
28483
28292
|
}
|
|
28484
28293
|
};
|
|
28485
28294
|
const updateTableScrollY = function() {
|
|
28295
|
+
vue.nextTick(() => instance.layout.updateScrollY.apply(instance.layout));
|
|
28486
28296
|
};
|
|
28487
28297
|
return {
|
|
28488
28298
|
ns,
|
|
@@ -28568,6 +28378,14 @@
|
|
|
28568
28378
|
this.bodyWidth = vue.ref(null);
|
|
28569
28379
|
this.fixedWidth = vue.ref(null);
|
|
28570
28380
|
this.rightFixedWidth = vue.ref(null);
|
|
28381
|
+
this.tableHeight = vue.ref(null);
|
|
28382
|
+
this.headerHeight = vue.ref(44);
|
|
28383
|
+
this.appendHeight = vue.ref(0);
|
|
28384
|
+
this.footerHeight = vue.ref(44);
|
|
28385
|
+
this.viewportHeight = vue.ref(null);
|
|
28386
|
+
this.bodyHeight = vue.ref(null);
|
|
28387
|
+
this.bodyScrollHeight = vue.ref(0);
|
|
28388
|
+
this.fixedBodyHeight = vue.ref(null);
|
|
28571
28389
|
this.gutterWidth = 0;
|
|
28572
28390
|
for (const name in options) {
|
|
28573
28391
|
if (hasOwn(options, name)) {
|
|
@@ -28585,6 +28403,24 @@
|
|
|
28585
28403
|
throw new Error("Store is required for Table Layout");
|
|
28586
28404
|
}
|
|
28587
28405
|
}
|
|
28406
|
+
updateScrollY() {
|
|
28407
|
+
const height = this.height.value;
|
|
28408
|
+
if (height === null)
|
|
28409
|
+
return false;
|
|
28410
|
+
const bodyWrapper = this.table.refs.bodyWrapper;
|
|
28411
|
+
if (this.table.vnode.el && bodyWrapper) {
|
|
28412
|
+
let scrollY = true;
|
|
28413
|
+
const prevScrollY = this.scrollY.value;
|
|
28414
|
+
if (this.bodyHeight.value === null) {
|
|
28415
|
+
scrollY = false;
|
|
28416
|
+
} else {
|
|
28417
|
+
scrollY = bodyWrapper.scrollHeight > this.bodyHeight.value;
|
|
28418
|
+
}
|
|
28419
|
+
this.scrollY.value = scrollY;
|
|
28420
|
+
return prevScrollY !== scrollY;
|
|
28421
|
+
}
|
|
28422
|
+
return false;
|
|
28423
|
+
}
|
|
28588
28424
|
setHeight(value, prop = "height") {
|
|
28589
28425
|
if (!isClient)
|
|
28590
28426
|
return;
|
|
@@ -28617,6 +28453,44 @@
|
|
|
28617
28453
|
return flattenColumns;
|
|
28618
28454
|
}
|
|
28619
28455
|
updateElsHeight() {
|
|
28456
|
+
var _a, _b;
|
|
28457
|
+
if (!this.table.$ready)
|
|
28458
|
+
return vue.nextTick(() => this.updateElsHeight());
|
|
28459
|
+
const {
|
|
28460
|
+
tableWrapper,
|
|
28461
|
+
headerWrapper,
|
|
28462
|
+
appendWrapper,
|
|
28463
|
+
footerWrapper,
|
|
28464
|
+
tableHeader,
|
|
28465
|
+
tableBody
|
|
28466
|
+
} = this.table.refs;
|
|
28467
|
+
if (tableWrapper && tableWrapper.style.display === "none") {
|
|
28468
|
+
return;
|
|
28469
|
+
}
|
|
28470
|
+
const { tableLayout } = this.table.props;
|
|
28471
|
+
this.appendHeight.value = appendWrapper ? appendWrapper.offsetHeight : 0;
|
|
28472
|
+
if (this.showHeader && !headerWrapper && tableLayout === "fixed") {
|
|
28473
|
+
return;
|
|
28474
|
+
}
|
|
28475
|
+
const headerTrElm = tableHeader ? tableHeader : null;
|
|
28476
|
+
const noneHeader = this.headerDisplayNone(headerTrElm);
|
|
28477
|
+
const headerWrapperOffsetHeight = (headerWrapper == null ? void 0 : headerWrapper.offsetHeight) || 0;
|
|
28478
|
+
const headerHeight = this.headerHeight.value = !this.showHeader ? 0 : headerWrapperOffsetHeight;
|
|
28479
|
+
if (this.showHeader && !noneHeader && headerWrapperOffsetHeight > 0 && (this.table.store.states.columns.value || []).length > 0 && headerHeight < 2) {
|
|
28480
|
+
return vue.nextTick(() => this.updateElsHeight());
|
|
28481
|
+
}
|
|
28482
|
+
const tableHeight = this.tableHeight.value = (_b = (_a = this.table) == null ? void 0 : _a.vnode.el) == null ? void 0 : _b.clientHeight;
|
|
28483
|
+
const footerHeight = this.footerHeight.value = footerWrapper ? footerWrapper.offsetHeight : 0;
|
|
28484
|
+
if (this.height.value !== null) {
|
|
28485
|
+
if (this.bodyHeight.value === null) {
|
|
28486
|
+
requestAnimationFrame(() => this.updateElsHeight());
|
|
28487
|
+
}
|
|
28488
|
+
this.bodyHeight.value = tableHeight - headerHeight - footerHeight + (footerWrapper ? 1 : 0);
|
|
28489
|
+
this.bodyScrollHeight.value = tableBody == null ? void 0 : tableBody.scrollHeight;
|
|
28490
|
+
}
|
|
28491
|
+
this.fixedBodyHeight.value = this.scrollX.value ? this.bodyHeight.value - this.gutterWidth : this.bodyHeight.value;
|
|
28492
|
+
this.viewportHeight.value = this.scrollX.value ? tableHeight - this.gutterWidth : tableHeight;
|
|
28493
|
+
this.updateScrollY();
|
|
28620
28494
|
this.notifyObservers("scrollable");
|
|
28621
28495
|
}
|
|
28622
28496
|
headerDisplayNone(elm) {
|
|
@@ -28844,13 +28718,6 @@
|
|
|
28844
28718
|
});
|
|
28845
28719
|
props.store.updateAllSelected();
|
|
28846
28720
|
};
|
|
28847
|
-
vue.watch(tooltipVisible, (value) => {
|
|
28848
|
-
if (props.column) {
|
|
28849
|
-
props.upDataColumn("filterOpened", value);
|
|
28850
|
-
}
|
|
28851
|
-
}, {
|
|
28852
|
-
immediate: true
|
|
28853
|
-
});
|
|
28854
28721
|
const popperPaneRef = vue.computed(() => {
|
|
28855
28722
|
var _a, _b;
|
|
28856
28723
|
return (_b = (_a = tooltip.value) == null ? void 0 : _a.popperRef) == null ? void 0 : _b.contentRef;
|
|
@@ -29043,10 +28910,12 @@
|
|
|
29043
28910
|
}
|
|
29044
28911
|
};
|
|
29045
28912
|
const handleMouseMove = (event, column) => {
|
|
29046
|
-
var _a;
|
|
29047
28913
|
if (column.children && column.children.length > 0)
|
|
29048
28914
|
return;
|
|
29049
|
-
|
|
28915
|
+
let target = event.target;
|
|
28916
|
+
while (target && target.tagName !== "TH") {
|
|
28917
|
+
target = target.parentNode;
|
|
28918
|
+
}
|
|
29050
28919
|
if (!column || !column.resizable)
|
|
29051
28920
|
return;
|
|
29052
28921
|
if (!dragging.value && props.border) {
|
|
@@ -29079,11 +28948,13 @@
|
|
|
29079
28948
|
return sortOrders[index > sortOrders.length - 2 ? 0 : index + 1];
|
|
29080
28949
|
};
|
|
29081
28950
|
const handleSortClick = (event, column, givenOrder) => {
|
|
29082
|
-
var _a;
|
|
29083
28951
|
event.stopPropagation();
|
|
29084
28952
|
const order = column.order === givenOrder ? null : givenOrder || toggleOrder(column);
|
|
29085
|
-
|
|
29086
|
-
|
|
28953
|
+
let target = event.target;
|
|
28954
|
+
while (target && target.tagName !== "TH") {
|
|
28955
|
+
target = target.parentNode;
|
|
28956
|
+
}
|
|
28957
|
+
if (target && target.tagName === "TH") {
|
|
29087
28958
|
if (hasClass(target, "noclick")) {
|
|
29088
28959
|
removeClass(target, "noclick");
|
|
29089
28960
|
return;
|
|
@@ -29153,13 +29024,13 @@
|
|
|
29153
29024
|
column
|
|
29154
29025
|
});
|
|
29155
29026
|
}
|
|
29156
|
-
const fixedStyle = getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
|
|
29027
|
+
const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, column.fixed, props.store, row);
|
|
29157
29028
|
ensurePosition(fixedStyle, "left");
|
|
29158
29029
|
ensurePosition(fixedStyle, "right");
|
|
29159
29030
|
return Object.assign({}, headerCellStyles, fixedStyle);
|
|
29160
29031
|
};
|
|
29161
29032
|
const getHeaderCellClass = (rowIndex, columnIndex, row, column) => {
|
|
29162
|
-
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
|
|
29033
|
+
const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, column.fixed, props.store, row);
|
|
29163
29034
|
const classes = [
|
|
29164
29035
|
column.id,
|
|
29165
29036
|
column.order,
|
|
@@ -29390,7 +29261,8 @@
|
|
|
29390
29261
|
vue.h("div", {
|
|
29391
29262
|
class: [
|
|
29392
29263
|
"cell",
|
|
29393
|
-
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : ""
|
|
29264
|
+
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : "",
|
|
29265
|
+
column.labelClassName
|
|
29394
29266
|
]
|
|
29395
29267
|
}, [
|
|
29396
29268
|
column.renderHeader ? column.renderHeader({
|
|
@@ -29459,7 +29331,7 @@
|
|
|
29459
29331
|
const handleMouseLeave = debounce(() => {
|
|
29460
29332
|
props.store.commit("setHoverRow", null);
|
|
29461
29333
|
}, 30);
|
|
29462
|
-
const handleCellMouseEnter = (event, row
|
|
29334
|
+
const handleCellMouseEnter = (event, row) => {
|
|
29463
29335
|
var _a;
|
|
29464
29336
|
const table = parent;
|
|
29465
29337
|
const cell = getCell(event);
|
|
@@ -29481,10 +29353,10 @@
|
|
|
29481
29353
|
const rangeWidth = range.getBoundingClientRect().width;
|
|
29482
29354
|
const padding = (Number.parseInt(getStyle(cellChild, "paddingLeft"), 10) || 0) + (Number.parseInt(getStyle(cellChild, "paddingRight"), 10) || 0);
|
|
29483
29355
|
if (rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) {
|
|
29484
|
-
createTablePopper(
|
|
29356
|
+
createTablePopper(cell, cell.innerText || cell.textContent, {
|
|
29485
29357
|
placement: "top",
|
|
29486
29358
|
strategy: "fixed"
|
|
29487
|
-
}, tooltipEffect);
|
|
29359
|
+
}, row.tooltipEffect);
|
|
29488
29360
|
}
|
|
29489
29361
|
};
|
|
29490
29362
|
const handleCellMouseLeave = (event) => {
|
|
@@ -29550,13 +29422,13 @@
|
|
|
29550
29422
|
column
|
|
29551
29423
|
});
|
|
29552
29424
|
}
|
|
29553
|
-
const fixedStyle = getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
29425
|
+
const fixedStyle = column.isSubColumn ? null : getFixedColumnOffset(columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
29554
29426
|
ensurePosition(fixedStyle, "left");
|
|
29555
29427
|
ensurePosition(fixedStyle, "right");
|
|
29556
29428
|
return Object.assign({}, cellStyles, fixedStyle);
|
|
29557
29429
|
};
|
|
29558
|
-
const getCellClass = (rowIndex, columnIndex, row, column
|
|
29559
|
-
const fixedClasses = getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store
|
|
29430
|
+
const getCellClass = (rowIndex, columnIndex, row, column) => {
|
|
29431
|
+
const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store);
|
|
29560
29432
|
const classes = [column.id, column.align, column.className, ...fixedClasses];
|
|
29561
29433
|
const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
|
|
29562
29434
|
if (typeof cellClassName === "string") {
|
|
@@ -29612,7 +29484,6 @@
|
|
|
29612
29484
|
|
|
29613
29485
|
function useRender$1(props) {
|
|
29614
29486
|
const parent = vue.inject(TABLE_INJECTION_KEY);
|
|
29615
|
-
const ns = useNamespace("table");
|
|
29616
29487
|
const {
|
|
29617
29488
|
handleDoubleClick,
|
|
29618
29489
|
handleClick,
|
|
@@ -29648,7 +29519,7 @@
|
|
|
29648
29519
|
const rowClasses = getRowClass(row, $index);
|
|
29649
29520
|
let display = true;
|
|
29650
29521
|
if (treeRowData) {
|
|
29651
|
-
rowClasses.push(
|
|
29522
|
+
rowClasses.push(`el-table__row--level-${treeRowData.level}`);
|
|
29652
29523
|
display = treeRowData.display;
|
|
29653
29524
|
}
|
|
29654
29525
|
const displayStyle = display ? null : {
|
|
@@ -29699,7 +29570,7 @@
|
|
|
29699
29570
|
const tdChildren = cellChildren(cellIndex, column, data);
|
|
29700
29571
|
return vue.h("td", {
|
|
29701
29572
|
style: getCellStyle($index, cellIndex, row, column),
|
|
29702
|
-
class: getCellClass($index, cellIndex, row, column
|
|
29573
|
+
class: getCellClass($index, cellIndex, row, column),
|
|
29703
29574
|
key: `${patchKey}${baseKey}`,
|
|
29704
29575
|
rowspan,
|
|
29705
29576
|
colspan,
|
|
@@ -29735,7 +29606,7 @@
|
|
|
29735
29606
|
}, [
|
|
29736
29607
|
vue.h("td", {
|
|
29737
29608
|
colspan: columns.length,
|
|
29738
|
-
class:
|
|
29609
|
+
class: "el-table__cell el-table__expanded-cell"
|
|
29739
29610
|
}, [renderExpanded({ row, $index, store, expanded })])
|
|
29740
29611
|
])
|
|
29741
29612
|
]
|
|
@@ -29849,6 +29720,10 @@
|
|
|
29849
29720
|
var _a;
|
|
29850
29721
|
(_a = removePopper) == null ? void 0 : _a();
|
|
29851
29722
|
});
|
|
29723
|
+
vue.onUpdated(() => {
|
|
29724
|
+
var _a;
|
|
29725
|
+
(_a = removePopper) == null ? void 0 : _a();
|
|
29726
|
+
});
|
|
29852
29727
|
return {
|
|
29853
29728
|
ns,
|
|
29854
29729
|
onColumnsChange,
|
|
@@ -30058,7 +29933,7 @@
|
|
|
30058
29933
|
}, [
|
|
30059
29934
|
vue.h("div", {
|
|
30060
29935
|
class: ["cell", column.labelClassName]
|
|
30061
|
-
}, [sums[cellIndex]])
|
|
29936
|
+
}, [(sums || [])[cellIndex]])
|
|
30062
29937
|
]))
|
|
30063
29938
|
])
|
|
30064
29939
|
])
|
|
@@ -30117,8 +29992,7 @@
|
|
|
30117
29992
|
};
|
|
30118
29993
|
const resizeState = vue.ref({
|
|
30119
29994
|
width: null,
|
|
30120
|
-
height: null
|
|
30121
|
-
headerHeight: null
|
|
29995
|
+
height: null
|
|
30122
29996
|
});
|
|
30123
29997
|
const isGroup = vue.ref(false);
|
|
30124
29998
|
const scrollbarViewStyle = {
|
|
@@ -30126,28 +30000,6 @@
|
|
|
30126
30000
|
verticalAlign: "middle"
|
|
30127
30001
|
};
|
|
30128
30002
|
const tableWidth = vue.ref();
|
|
30129
|
-
const tableScrollHeight = vue.ref(0);
|
|
30130
|
-
const bodyScrollHeight = vue.ref(0);
|
|
30131
|
-
const headerScrollHeight = vue.ref(0);
|
|
30132
|
-
const footerScrollHeight = vue.ref(0);
|
|
30133
|
-
vue.watchEffect(() => {
|
|
30134
|
-
layout.setHeight(props.height);
|
|
30135
|
-
});
|
|
30136
|
-
vue.watchEffect(() => {
|
|
30137
|
-
layout.setMaxHeight(props.maxHeight);
|
|
30138
|
-
});
|
|
30139
|
-
vue.watch(() => [props.currentRowKey, store.states.rowKey], ([currentRowKey, rowKey]) => {
|
|
30140
|
-
if (!vue.unref(rowKey) || !vue.unref(currentRowKey))
|
|
30141
|
-
return;
|
|
30142
|
-
store.setCurrentRowKey(`${currentRowKey}`);
|
|
30143
|
-
}, {
|
|
30144
|
-
immediate: true
|
|
30145
|
-
});
|
|
30146
|
-
vue.watchEffect(() => {
|
|
30147
|
-
if (props.expandRowKeys) {
|
|
30148
|
-
store.setExpandRowKeysAdapter(props.expandRowKeys);
|
|
30149
|
-
}
|
|
30150
|
-
});
|
|
30151
30003
|
const handleMouseLeave = () => {
|
|
30152
30004
|
table.store.commit("setHoverRow", null);
|
|
30153
30005
|
if (table.hoverState)
|
|
@@ -30172,22 +30024,16 @@
|
|
|
30172
30024
|
layout.updateElsHeight();
|
|
30173
30025
|
}
|
|
30174
30026
|
layout.updateColumnsWidth();
|
|
30175
|
-
requestAnimationFrame(
|
|
30027
|
+
requestAnimationFrame(syncPostion);
|
|
30176
30028
|
};
|
|
30177
30029
|
vue.onMounted(async () => {
|
|
30178
30030
|
await vue.nextTick();
|
|
30179
30031
|
store.updateColumns();
|
|
30180
30032
|
bindEvents();
|
|
30181
30033
|
requestAnimationFrame(doLayout);
|
|
30182
|
-
const el = table.vnode.el;
|
|
30183
|
-
const tableHeader = table.refs.headerWrapper;
|
|
30184
|
-
if (props.flexible && el && el.parentElement) {
|
|
30185
|
-
el.parentElement.style.minWidth = "0";
|
|
30186
|
-
}
|
|
30187
30034
|
resizeState.value = {
|
|
30188
|
-
width: tableWidth.value = el.offsetWidth,
|
|
30189
|
-
height: el.offsetHeight
|
|
30190
|
-
headerHeight: props.showHeader && tableHeader ? tableHeader.offsetHeight : null
|
|
30035
|
+
width: tableWidth.value = table.vnode.el.offsetWidth,
|
|
30036
|
+
height: table.vnode.el.offsetHeight
|
|
30191
30037
|
};
|
|
30192
30038
|
store.states.columns.value.forEach((column) => {
|
|
30193
30039
|
if (column.filteredValue && column.filteredValue.length) {
|
|
@@ -30215,7 +30061,7 @@
|
|
|
30215
30061
|
const { tableWrapper } = table.refs;
|
|
30216
30062
|
return !!(tableWrapper && tableWrapper.classList.contains(className));
|
|
30217
30063
|
};
|
|
30218
|
-
const
|
|
30064
|
+
const syncPostion = function() {
|
|
30219
30065
|
if (!table.refs.scrollBarRef)
|
|
30220
30066
|
return;
|
|
30221
30067
|
if (!layout.scrollX.value) {
|
|
@@ -30225,7 +30071,7 @@
|
|
|
30225
30071
|
}
|
|
30226
30072
|
return;
|
|
30227
30073
|
}
|
|
30228
|
-
const scrollContainer = table.refs.scrollBarRef.
|
|
30074
|
+
const scrollContainer = table.refs.scrollBarRef.wrap$;
|
|
30229
30075
|
if (!scrollContainer)
|
|
30230
30076
|
return;
|
|
30231
30077
|
const { scrollLeft, offsetWidth, scrollWidth } = scrollContainer;
|
|
@@ -30244,56 +30090,48 @@
|
|
|
30244
30090
|
}
|
|
30245
30091
|
};
|
|
30246
30092
|
const bindEvents = () => {
|
|
30093
|
+
var _a;
|
|
30247
30094
|
if (!table.refs.scrollBarRef)
|
|
30248
30095
|
return;
|
|
30249
|
-
|
|
30250
|
-
|
|
30251
|
-
|
|
30252
|
-
|
|
30096
|
+
(_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.addEventListener("scroll", syncPostion, {
|
|
30097
|
+
passive: true
|
|
30098
|
+
});
|
|
30099
|
+
if (props.fit) {
|
|
30100
|
+
addResizeListener(table.vnode.el, resizeListener);
|
|
30101
|
+
} else {
|
|
30102
|
+
on$1(window, "resize", doLayout);
|
|
30253
30103
|
}
|
|
30104
|
+
};
|
|
30105
|
+
vue.onBeforeUnmount(() => {
|
|
30106
|
+
unbindEvents();
|
|
30107
|
+
});
|
|
30108
|
+
const unbindEvents = () => {
|
|
30109
|
+
var _a;
|
|
30110
|
+
(_a = table.refs.scrollBarRef.wrap$) == null ? void 0 : _a.removeEventListener("scroll", syncPostion, true);
|
|
30254
30111
|
if (props.fit) {
|
|
30255
|
-
|
|
30112
|
+
removeResizeListener(table.vnode.el, resizeListener);
|
|
30256
30113
|
} else {
|
|
30257
|
-
|
|
30114
|
+
off(window, "resize", doLayout);
|
|
30258
30115
|
}
|
|
30259
|
-
useResizeObserver(table.refs.bodyWrapper, () => {
|
|
30260
|
-
var _a, _b;
|
|
30261
|
-
resizeListener();
|
|
30262
|
-
(_b = (_a = table.refs) == null ? void 0 : _a.scrollBarRef) == null ? void 0 : _b.update();
|
|
30263
|
-
});
|
|
30264
30116
|
};
|
|
30265
30117
|
const resizeListener = () => {
|
|
30266
|
-
|
|
30267
|
-
const el = table.vnode.el;
|
|
30268
|
-
if (!table.$ready || !el)
|
|
30118
|
+
if (!table.$ready)
|
|
30269
30119
|
return;
|
|
30270
30120
|
let shouldUpdateLayout = false;
|
|
30271
|
-
const
|
|
30272
|
-
|
|
30273
|
-
height: oldHeight,
|
|
30274
|
-
headerHeight: oldHeaderHeight
|
|
30275
|
-
} = resizeState.value;
|
|
30121
|
+
const el = table.vnode.el;
|
|
30122
|
+
const { width: oldWidth, height: oldHeight } = resizeState.value;
|
|
30276
30123
|
const width = tableWidth.value = el.offsetWidth;
|
|
30277
30124
|
if (oldWidth !== width) {
|
|
30278
30125
|
shouldUpdateLayout = true;
|
|
30279
30126
|
}
|
|
30280
|
-
const
|
|
30281
|
-
if ((props.height || shouldUpdateHeight.value) && oldHeight !==
|
|
30282
|
-
shouldUpdateLayout = true;
|
|
30283
|
-
}
|
|
30284
|
-
const tableHeader = props.tableLayout === "fixed" ? table.refs.headerWrapper : (_a = table.refs.tableHeaderRef) == null ? void 0 : _a.$el;
|
|
30285
|
-
if (props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) !== oldHeaderHeight) {
|
|
30127
|
+
const height2 = el.offsetHeight;
|
|
30128
|
+
if ((props.height || shouldUpdateHeight.value) && oldHeight !== height2) {
|
|
30286
30129
|
shouldUpdateLayout = true;
|
|
30287
30130
|
}
|
|
30288
|
-
tableScrollHeight.value = ((_b = table.refs.tableWrapper) == null ? void 0 : _b.scrollHeight) || 0;
|
|
30289
|
-
headerScrollHeight.value = (tableHeader == null ? void 0 : tableHeader.scrollHeight) || 0;
|
|
30290
|
-
footerScrollHeight.value = ((_c = table.refs.footerWrapper) == null ? void 0 : _c.offsetHeight) || 0;
|
|
30291
|
-
bodyScrollHeight.value = tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value;
|
|
30292
30131
|
if (shouldUpdateLayout) {
|
|
30293
30132
|
resizeState.value = {
|
|
30294
30133
|
width,
|
|
30295
|
-
height
|
|
30296
|
-
headerHeight: props.showHeader && (tableHeader == null ? void 0 : tableHeader.offsetHeight) || 0
|
|
30134
|
+
height: height2
|
|
30297
30135
|
};
|
|
30298
30136
|
doLayout();
|
|
30299
30137
|
}
|
|
@@ -30308,55 +30146,57 @@
|
|
|
30308
30146
|
return "fixed";
|
|
30309
30147
|
return props.tableLayout;
|
|
30310
30148
|
});
|
|
30311
|
-
|
|
30312
|
-
|
|
30313
|
-
|
|
30314
|
-
|
|
30315
|
-
|
|
30316
|
-
|
|
30149
|
+
function calcMaxHeight(maxHeight, footerHeight, headerHeight) {
|
|
30150
|
+
const parsedMaxHeight = parseHeight(maxHeight);
|
|
30151
|
+
const tableHeaderHeight = props.showHeader ? headerHeight : 0;
|
|
30152
|
+
if (parsedMaxHeight === null)
|
|
30153
|
+
return;
|
|
30154
|
+
if (isString(parsedMaxHeight)) {
|
|
30155
|
+
return `calc(${parsedMaxHeight} - ${footerHeight}px - ${tableHeaderHeight}px)`;
|
|
30317
30156
|
}
|
|
30318
|
-
|
|
30319
|
-
|
|
30320
|
-
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
|
|
30324
|
-
const tableInnerStyle = vue.computed(() => {
|
|
30157
|
+
return parsedMaxHeight - footerHeight - tableHeaderHeight;
|
|
30158
|
+
}
|
|
30159
|
+
const height = vue.computed(() => {
|
|
30160
|
+
const headerHeight = layout.headerHeight.value || 0;
|
|
30161
|
+
const bodyHeight2 = layout.bodyHeight.value;
|
|
30162
|
+
const footerHeight = layout.footerHeight.value || 0;
|
|
30325
30163
|
if (props.height) {
|
|
30326
|
-
return
|
|
30327
|
-
|
|
30328
|
-
|
|
30164
|
+
return bodyHeight2 ? bodyHeight2 : void 0;
|
|
30165
|
+
} else if (props.maxHeight) {
|
|
30166
|
+
return calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
|
|
30329
30167
|
}
|
|
30330
|
-
|
|
30331
|
-
return {
|
|
30332
|
-
maxHeight: !Number.isNaN(Number(props.maxHeight)) ? `${props.maxHeight}px` : props.maxHeight
|
|
30333
|
-
};
|
|
30334
|
-
}
|
|
30335
|
-
return {};
|
|
30168
|
+
return void 0;
|
|
30336
30169
|
});
|
|
30337
|
-
const
|
|
30170
|
+
const bodyHeight = vue.computed(() => {
|
|
30171
|
+
const headerHeight = layout.headerHeight.value || 0;
|
|
30172
|
+
const bodyHeight2 = layout.bodyHeight.value;
|
|
30173
|
+
const footerHeight = layout.footerHeight.value || 0;
|
|
30338
30174
|
if (props.height) {
|
|
30339
30175
|
return {
|
|
30340
|
-
height: "
|
|
30176
|
+
height: bodyHeight2 ? `${bodyHeight2}px` : ""
|
|
30341
30177
|
};
|
|
30342
|
-
}
|
|
30343
|
-
|
|
30344
|
-
if (
|
|
30345
|
-
const maxHeight = props.maxHeight;
|
|
30346
|
-
const reachMaxHeight = tableScrollHeight.value >= Number(maxHeight);
|
|
30347
|
-
if (reachMaxHeight) {
|
|
30348
|
-
return {
|
|
30349
|
-
maxHeight: `${tableScrollHeight.value - headerScrollHeight.value - footerScrollHeight.value}px`
|
|
30350
|
-
};
|
|
30351
|
-
}
|
|
30352
|
-
} else {
|
|
30178
|
+
} else if (props.maxHeight) {
|
|
30179
|
+
const maxHeight = calcMaxHeight(props.maxHeight, footerHeight, headerHeight);
|
|
30180
|
+
if (maxHeight !== null) {
|
|
30353
30181
|
return {
|
|
30354
|
-
|
|
30182
|
+
"max-height": `${maxHeight}${isNumber(maxHeight) ? "px" : ""}`
|
|
30355
30183
|
};
|
|
30356
30184
|
}
|
|
30357
30185
|
}
|
|
30358
30186
|
return {};
|
|
30359
30187
|
});
|
|
30188
|
+
const emptyBlockStyle = vue.computed(() => {
|
|
30189
|
+
if (props.data && props.data.length)
|
|
30190
|
+
return null;
|
|
30191
|
+
let height2 = "100%";
|
|
30192
|
+
if (layout.appendHeight.value) {
|
|
30193
|
+
height2 = `calc(100% - ${layout.appendHeight.value}px)`;
|
|
30194
|
+
}
|
|
30195
|
+
return {
|
|
30196
|
+
width: tableWidth.value ? `${tableWidth.value}px` : "",
|
|
30197
|
+
height: height2
|
|
30198
|
+
};
|
|
30199
|
+
});
|
|
30360
30200
|
const handleFixedMousewheel = (event, data) => {
|
|
30361
30201
|
const bodyWrapper = table.refs.bodyWrapper;
|
|
30362
30202
|
if (Math.abs(data.spinY) > 0) {
|
|
@@ -30372,6 +30212,47 @@
|
|
|
30372
30212
|
bodyWrapper.scrollLeft += Math.ceil(data.pixelX / 5);
|
|
30373
30213
|
}
|
|
30374
30214
|
};
|
|
30215
|
+
const fixedHeight = vue.computed(() => {
|
|
30216
|
+
if (props.maxHeight) {
|
|
30217
|
+
if (props.showSummary) {
|
|
30218
|
+
return {
|
|
30219
|
+
bottom: 0
|
|
30220
|
+
};
|
|
30221
|
+
}
|
|
30222
|
+
return {
|
|
30223
|
+
bottom: layout.scrollX.value && props.data.length ? `${layout.gutterWidth}px` : ""
|
|
30224
|
+
};
|
|
30225
|
+
} else {
|
|
30226
|
+
if (props.showSummary) {
|
|
30227
|
+
return {
|
|
30228
|
+
height: layout.tableHeight.value ? `${layout.tableHeight.value}px` : ""
|
|
30229
|
+
};
|
|
30230
|
+
}
|
|
30231
|
+
return {
|
|
30232
|
+
height: layout.viewportHeight.value ? `${layout.viewportHeight.value}px` : ""
|
|
30233
|
+
};
|
|
30234
|
+
}
|
|
30235
|
+
});
|
|
30236
|
+
const fixedBodyHeight = vue.computed(() => {
|
|
30237
|
+
if (props.height) {
|
|
30238
|
+
return {
|
|
30239
|
+
height: layout.fixedBodyHeight.value ? `${layout.fixedBodyHeight.value}px` : ""
|
|
30240
|
+
};
|
|
30241
|
+
} else if (props.maxHeight) {
|
|
30242
|
+
let maxHeight = parseHeight(props.maxHeight);
|
|
30243
|
+
if (typeof maxHeight === "number") {
|
|
30244
|
+
maxHeight = layout.scrollX.value ? maxHeight - layout.gutterWidth : maxHeight;
|
|
30245
|
+
if (props.showHeader) {
|
|
30246
|
+
maxHeight -= layout.headerHeight.value;
|
|
30247
|
+
}
|
|
30248
|
+
maxHeight -= layout.footerHeight.value;
|
|
30249
|
+
return {
|
|
30250
|
+
"max-height": `${maxHeight}px`
|
|
30251
|
+
};
|
|
30252
|
+
}
|
|
30253
|
+
}
|
|
30254
|
+
return {};
|
|
30255
|
+
});
|
|
30375
30256
|
return {
|
|
30376
30257
|
isHidden,
|
|
30377
30258
|
renderExpanded,
|
|
@@ -30380,24 +30261,28 @@
|
|
|
30380
30261
|
handleMouseLeave,
|
|
30381
30262
|
handleHeaderFooterMousewheel,
|
|
30382
30263
|
tableSize,
|
|
30264
|
+
bodyHeight,
|
|
30265
|
+
height,
|
|
30383
30266
|
emptyBlockStyle,
|
|
30384
30267
|
handleFixedMousewheel,
|
|
30268
|
+
fixedHeight,
|
|
30269
|
+
fixedBodyHeight,
|
|
30385
30270
|
resizeProxyVisible,
|
|
30386
30271
|
bodyWidth,
|
|
30387
30272
|
resizeState,
|
|
30388
30273
|
doLayout,
|
|
30389
30274
|
tableBodyStyles,
|
|
30390
30275
|
tableLayout,
|
|
30391
|
-
scrollbarViewStyle
|
|
30392
|
-
tableInnerStyle,
|
|
30393
|
-
scrollbarStyle
|
|
30276
|
+
scrollbarViewStyle
|
|
30394
30277
|
};
|
|
30395
30278
|
}
|
|
30396
30279
|
|
|
30397
30280
|
var defaultProps$1 = {
|
|
30398
30281
|
data: {
|
|
30399
30282
|
type: Array,
|
|
30400
|
-
default: () =>
|
|
30283
|
+
default: () => {
|
|
30284
|
+
return [];
|
|
30285
|
+
}
|
|
30401
30286
|
},
|
|
30402
30287
|
size: String,
|
|
30403
30288
|
width: [String, Number],
|
|
@@ -30467,8 +30352,7 @@
|
|
|
30467
30352
|
scrollbarAlwaysOn: {
|
|
30468
30353
|
type: Boolean,
|
|
30469
30354
|
default: false
|
|
30470
|
-
}
|
|
30471
|
-
flexible: Boolean
|
|
30355
|
+
}
|
|
30472
30356
|
};
|
|
30473
30357
|
|
|
30474
30358
|
const useScrollbar = () => {
|
|
@@ -30563,21 +30447,23 @@
|
|
|
30563
30447
|
handleMouseLeave,
|
|
30564
30448
|
handleHeaderFooterMousewheel,
|
|
30565
30449
|
tableSize,
|
|
30450
|
+
bodyHeight,
|
|
30451
|
+
height,
|
|
30566
30452
|
emptyBlockStyle,
|
|
30567
30453
|
handleFixedMousewheel,
|
|
30454
|
+
fixedHeight,
|
|
30455
|
+
fixedBodyHeight,
|
|
30568
30456
|
resizeProxyVisible,
|
|
30569
30457
|
bodyWidth,
|
|
30570
30458
|
resizeState,
|
|
30571
30459
|
doLayout,
|
|
30572
30460
|
tableBodyStyles,
|
|
30573
30461
|
tableLayout,
|
|
30574
|
-
scrollbarViewStyle
|
|
30575
|
-
tableInnerStyle,
|
|
30576
|
-
scrollbarStyle
|
|
30462
|
+
scrollbarViewStyle
|
|
30577
30463
|
} = useStyle(props, layout, store, table);
|
|
30578
30464
|
const { scrollBarRef, scrollTo, setScrollLeft, setScrollTop } = useScrollbar();
|
|
30579
30465
|
const debouncedUpdateLayout = debounce(doLayout, 50);
|
|
30580
|
-
const tableId =
|
|
30466
|
+
const tableId = `el-table_${tableIdSeed++}`;
|
|
30581
30467
|
table.tableId = tableId;
|
|
30582
30468
|
table.state = {
|
|
30583
30469
|
isGroup,
|
|
@@ -30604,10 +30490,14 @@
|
|
|
30604
30490
|
resizeState,
|
|
30605
30491
|
isGroup,
|
|
30606
30492
|
bodyWidth,
|
|
30493
|
+
bodyHeight,
|
|
30494
|
+
height,
|
|
30607
30495
|
tableBodyStyles,
|
|
30608
30496
|
emptyBlockStyle,
|
|
30609
30497
|
debouncedUpdateLayout,
|
|
30610
30498
|
handleFixedMousewheel,
|
|
30499
|
+
fixedHeight,
|
|
30500
|
+
fixedBodyHeight,
|
|
30611
30501
|
setCurrentRow,
|
|
30612
30502
|
getSelectionRows,
|
|
30613
30503
|
toggleRowSelection,
|
|
@@ -30625,8 +30515,6 @@
|
|
|
30625
30515
|
computedEmptyText,
|
|
30626
30516
|
tableLayout,
|
|
30627
30517
|
scrollbarViewStyle,
|
|
30628
|
-
tableInnerStyle,
|
|
30629
|
-
scrollbarStyle,
|
|
30630
30518
|
scrollBarRef,
|
|
30631
30519
|
scrollTo,
|
|
30632
30520
|
setScrollLeft,
|
|
@@ -30671,8 +30559,7 @@
|
|
|
30671
30559
|
"data-prefix": _ctx.ns.namespace.value
|
|
30672
30560
|
}, [
|
|
30673
30561
|
vue.createElementVNode("div", {
|
|
30674
|
-
class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
|
|
30675
|
-
style: vue.normalizeStyle(_ctx.tableInnerStyle)
|
|
30562
|
+
class: vue.normalizeClass(_ctx.ns.e("inner-wrapper"))
|
|
30676
30563
|
}, [
|
|
30677
30564
|
vue.createElementVNode("div", _hoisted_2$2, [
|
|
30678
30565
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -30706,12 +30593,14 @@
|
|
|
30706
30593
|
]) : vue.createCommentVNode("v-if", true),
|
|
30707
30594
|
vue.createElementVNode("div", {
|
|
30708
30595
|
ref: "bodyWrapper",
|
|
30596
|
+
style: vue.normalizeStyle(_ctx.bodyHeight),
|
|
30709
30597
|
class: vue.normalizeClass(_ctx.ns.e("body-wrapper"))
|
|
30710
30598
|
}, [
|
|
30711
30599
|
vue.createVNode(_component_ps_scrollbar, {
|
|
30712
30600
|
ref: "scrollBarRef",
|
|
30601
|
+
height: _ctx.maxHeight ? void 0 : _ctx.height,
|
|
30602
|
+
"max-height": _ctx.maxHeight ? _ctx.height : void 0,
|
|
30713
30603
|
"view-style": _ctx.scrollbarViewStyle,
|
|
30714
|
-
"wrap-style": _ctx.scrollbarStyle,
|
|
30715
30604
|
always: _ctx.scrollbarAlwaysOn
|
|
30716
30605
|
}, {
|
|
30717
30606
|
default: vue.withCtx(() => [
|
|
@@ -30732,7 +30621,6 @@
|
|
|
30732
30621
|
}, null, 8, ["columns", "table-layout"]),
|
|
30733
30622
|
_ctx.showHeader && _ctx.tableLayout === "auto" ? (vue.openBlock(), vue.createBlock(_component_table_header, {
|
|
30734
30623
|
key: 0,
|
|
30735
|
-
ref: "tableHeaderRef",
|
|
30736
30624
|
border: _ctx.border,
|
|
30737
30625
|
"default-sort": _ctx.defaultSort,
|
|
30738
30626
|
store: _ctx.store
|
|
@@ -30770,30 +30658,30 @@
|
|
|
30770
30658
|
], 2)) : vue.createCommentVNode("v-if", true)
|
|
30771
30659
|
]),
|
|
30772
30660
|
_: 3
|
|
30773
|
-
}, 8, ["
|
|
30774
|
-
],
|
|
30775
|
-
_ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
30776
|
-
key: 1,
|
|
30777
|
-
ref: "footerWrapper",
|
|
30778
|
-
class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
30779
|
-
}, [
|
|
30780
|
-
vue.createVNode(_component_table_footer, {
|
|
30781
|
-
border: _ctx.border,
|
|
30782
|
-
"default-sort": _ctx.defaultSort,
|
|
30783
|
-
store: _ctx.store,
|
|
30784
|
-
style: vue.normalizeStyle(_ctx.tableBodyStyles),
|
|
30785
|
-
"sum-text": _ctx.computedSumText,
|
|
30786
|
-
"summary-method": _ctx.summaryMethod
|
|
30787
|
-
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
30788
|
-
], 2)), [
|
|
30789
|
-
[vue.vShow, !_ctx.isEmpty],
|
|
30790
|
-
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
30791
|
-
]) : vue.createCommentVNode("v-if", true),
|
|
30661
|
+
}, 8, ["height", "max-height", "view-style", "always"])
|
|
30662
|
+
], 6),
|
|
30792
30663
|
_ctx.border || _ctx.isGroup ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
30793
|
-
key:
|
|
30664
|
+
key: 1,
|
|
30794
30665
|
class: vue.normalizeClass(_ctx.ns.e("border-left-patch"))
|
|
30795
30666
|
}, null, 2)) : vue.createCommentVNode("v-if", true)
|
|
30796
|
-
],
|
|
30667
|
+
], 2),
|
|
30668
|
+
_ctx.showSummary ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
30669
|
+
key: 0,
|
|
30670
|
+
ref: "footerWrapper",
|
|
30671
|
+
class: vue.normalizeClass(_ctx.ns.e("footer-wrapper"))
|
|
30672
|
+
}, [
|
|
30673
|
+
vue.createVNode(_component_table_footer, {
|
|
30674
|
+
border: _ctx.border,
|
|
30675
|
+
"default-sort": _ctx.defaultSort,
|
|
30676
|
+
store: _ctx.store,
|
|
30677
|
+
style: vue.normalizeStyle(_ctx.tableBodyStyles),
|
|
30678
|
+
"sum-text": _ctx.computedSumText,
|
|
30679
|
+
"summary-method": _ctx.summaryMethod
|
|
30680
|
+
}, null, 8, ["border", "default-sort", "store", "style", "sum-text", "summary-method"])
|
|
30681
|
+
], 2)), [
|
|
30682
|
+
[vue.vShow, !_ctx.isEmpty],
|
|
30683
|
+
[_directive_mousewheel, _ctx.handleHeaderFooterMousewheel]
|
|
30684
|
+
]) : vue.createCommentVNode("v-if", true),
|
|
30797
30685
|
vue.withDirectives(vue.createElementVNode("div", {
|
|
30798
30686
|
ref: "resizeProxy",
|
|
30799
30687
|
class: vue.normalizeClass(_ctx.ns.e("column-resize-proxy"))
|
|
@@ -30955,9 +30843,6 @@
|
|
|
30955
30843
|
const ele = [];
|
|
30956
30844
|
const callback = function(e) {
|
|
30957
30845
|
e.stopPropagation();
|
|
30958
|
-
if (treeNode.loading) {
|
|
30959
|
-
return;
|
|
30960
|
-
}
|
|
30961
30846
|
store.loadOrToggle(row);
|
|
30962
30847
|
};
|
|
30963
30848
|
if (treeNode.indent) {
|
|
@@ -31092,9 +30977,6 @@
|
|
|
31092
30977
|
if (realMinWidth.value) {
|
|
31093
30978
|
column.minWidth = realMinWidth.value;
|
|
31094
30979
|
}
|
|
31095
|
-
if (!realWidth.value && realMinWidth.value) {
|
|
31096
|
-
column.width = void 0;
|
|
31097
|
-
}
|
|
31098
30980
|
if (!column.minWidth) {
|
|
31099
30981
|
column.minWidth = 80;
|
|
31100
30982
|
}
|
|
@@ -31139,6 +31021,7 @@
|
|
|
31139
31021
|
};
|
|
31140
31022
|
}
|
|
31141
31023
|
let originRenderCell = column.renderCell;
|
|
31024
|
+
const hasTreeColumnValue = hasTreeColumn.value;
|
|
31142
31025
|
if (column.type === "expand") {
|
|
31143
31026
|
column.renderCell = (data) => vue.h("div", {
|
|
31144
31027
|
class: "cell"
|
|
@@ -31156,7 +31039,7 @@
|
|
|
31156
31039
|
} else {
|
|
31157
31040
|
children = originRenderCell(data);
|
|
31158
31041
|
}
|
|
31159
|
-
const shouldCreatePlaceholder =
|
|
31042
|
+
const shouldCreatePlaceholder = hasTreeColumnValue && data.cellIndex === 0;
|
|
31160
31043
|
const prefix = treeCellPrefix(data, shouldCreatePlaceholder);
|
|
31161
31044
|
const props2 = {
|
|
31162
31045
|
class: "cell",
|