vxe-table 4.23.5 → 4.23.7
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/all.esm.js +32456 -33938
- package/dist/style.css +4501 -1
- package/dist/style.mini.css +1 -0
- package/es/colgroup/index.d.ts +760 -0
- package/es/colgroup/index.js +16 -13
- package/es/column/index.d.ts +760 -0
- package/es/column/index.js +16 -13
- package/es/components.d.ts +9 -0
- package/es/components.js +29 -29
- package/es/grid/index.d.ts +2824 -0
- package/es/grid/index.js +14 -9
- package/es/grid/src/emits.d.ts +2 -0
- package/es/grid/src/emits.js +18 -15
- package/es/grid/src/grid.d.ts +556 -0
- package/es/grid/src/grid.js +1695 -1758
- package/es/grid/src/props.d.ts +200 -0
- package/es/grid/src/props.js +19 -6
- package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +6 -3
- package/es/index.js +6 -0
- package/es/locale/lang/ar-EG.d.ts +908 -2
- package/es/locale/lang/ar-EG.js +906 -903
- package/es/locale/lang/de-DE.d.ts +908 -2
- package/es/locale/lang/de-DE.js +906 -903
- package/es/locale/lang/en-US.d.ts +908 -2
- package/es/locale/lang/en-US.js +906 -903
- package/es/locale/lang/es-ES.d.ts +908 -2
- package/es/locale/lang/es-ES.js +906 -903
- package/es/locale/lang/fr-FR.d.ts +908 -2
- package/es/locale/lang/fr-FR.js +906 -903
- package/es/locale/lang/hu-HU.d.ts +908 -2
- package/es/locale/lang/hu-HU.js +906 -903
- package/es/locale/lang/hy-AM.d.ts +908 -2
- package/es/locale/lang/hy-AM.js +906 -903
- package/es/locale/lang/id-ID.d.ts +908 -2
- package/es/locale/lang/id-ID.js +906 -903
- package/es/locale/lang/it-IT.d.ts +908 -2
- package/es/locale/lang/it-IT.js +906 -903
- package/es/locale/lang/ja-JP.d.ts +908 -2
- package/es/locale/lang/ja-JP.js +906 -903
- package/es/locale/lang/ko-KR.d.ts +908 -2
- package/es/locale/lang/ko-KR.js +906 -903
- package/es/locale/lang/ms-MY.d.ts +908 -2
- package/es/locale/lang/ms-MY.js +906 -903
- package/es/locale/lang/nb-NO.d.ts +908 -2
- package/es/locale/lang/nb-NO.js +906 -903
- package/es/locale/lang/pt-BR.d.ts +908 -2
- package/es/locale/lang/pt-BR.js +906 -903
- package/es/locale/lang/ru-RU.d.ts +908 -2
- package/es/locale/lang/ru-RU.js +906 -903
- package/es/locale/lang/th-TH.d.ts +908 -2
- package/es/locale/lang/th-TH.js +906 -903
- package/es/locale/lang/ug-CN.d.ts +908 -2
- package/es/locale/lang/ug-CN.js +906 -903
- package/es/locale/lang/uk-UA.d.ts +908 -2
- package/es/locale/lang/uk-UA.js +906 -903
- package/es/locale/lang/uz-UZ.d.ts +908 -2
- package/es/locale/lang/uz-UZ.js +906 -903
- package/es/locale/lang/vi-VN.d.ts +908 -2
- package/es/locale/lang/vi-VN.js +906 -903
- package/es/locale/lang/zh-CHT.d.ts +908 -2
- package/es/locale/lang/zh-CHT.js +906 -903
- package/es/locale/lang/zh-CN.d.ts +908 -2
- package/es/locale/lang/zh-CN.js +906 -903
- package/es/locale/lang/zh-HK.d.ts +908 -2
- package/es/locale/lang/zh-HK.js +910 -2
- package/es/locale/lang/zh-MO.d.ts +908 -2
- package/es/locale/lang/zh-MO.js +910 -2
- package/es/locale/lang/zh-TC.d.ts +908 -0
- package/es/locale/lang/zh-TC.js +910 -2
- package/es/locale/lang/zh-TW.d.ts +908 -2
- package/es/locale/lang/zh-TW.js +910 -2
- package/es/style.css +4501 -1
- package/es/style.mini.css +1 -0
- package/es/table/index.d.ts +2672 -0
- package/es/table/index.js +16 -11
- package/es/table/module/custom/hook.d.ts +1 -0
- package/es/table/module/custom/hook.js +462 -483
- package/es/table/module/custom/panel.d.ts +17 -0
- package/es/table/module/custom/panel.js +1482 -1559
- package/es/table/module/edit/hook.d.ts +1 -0
- package/es/table/module/edit/hook.js +1008 -1078
- package/es/table/module/export/export-panel.d.ts +27 -0
- package/es/table/module/export/export-panel.js +523 -575
- package/es/table/module/export/hook.d.ts +1 -0
- package/es/table/module/export/hook.js +1805 -1884
- package/es/table/module/export/import-panel.d.ts +27 -0
- package/es/table/module/export/import-panel.js +244 -252
- package/es/table/module/export/util.d.ts +5 -0
- package/es/table/module/export/util.js +20 -17
- package/es/table/module/filter/hook.d.ts +1 -0
- package/es/table/module/filter/hook.js +472 -487
- package/es/table/module/filter/panel.d.ts +16 -0
- package/es/table/module/filter/panel.js +251 -275
- package/es/table/module/keyboard/hook.d.ts +1 -0
- package/es/table/module/keyboard/hook.js +445 -497
- package/es/table/module/menu/hook.d.ts +1 -0
- package/es/table/module/menu/hook.js +295 -315
- package/es/table/module/menu/panel.d.ts +2 -0
- package/es/table/module/menu/panel.js +164 -183
- package/es/table/module/validator/hook.d.ts +1 -0
- package/es/table/module/validator/hook.js +522 -571
- package/es/table/render/index.d.ts +1 -0
- package/es/table/render/index.js +1402 -1362
- package/es/table/src/body.d.ts +24 -0
- package/es/table/src/body.js +850 -865
- package/es/table/src/cell.d.ts +192 -0
- package/es/table/src/cell.js +1209 -1207
- package/es/table/src/column.d.ts +263 -0
- package/es/table/src/column.js +178 -174
- package/es/table/src/columnInfo.d.ts +13 -0
- package/es/table/src/columnInfo.js +202 -196
- package/es/table/src/emits.d.ts +2 -0
- package/es/table/src/emits.js +126 -119
- package/es/table/src/footer.d.ts +45 -0
- package/es/table/src/footer.js +336 -340
- package/es/table/src/group.d.ts +178 -0
- package/es/table/src/group.js +49 -46
- package/es/table/src/header.d.ts +26 -0
- package/es/table/src/header.js +517 -519
- package/es/table/src/props.d.ts +238 -0
- package/es/table/src/props.js +331 -328
- package/es/table/src/store.d.ts +6 -0
- package/es/table/src/store.js +9 -6
- package/es/table/src/table.d.ts +539 -0
- package/es/table/src/table.js +14061 -15071
- package/es/table/src/use/cell-view.d.ts +10 -0
- package/es/table/src/use/cell-view.js +36 -33
- package/es/table/src/use/index.d.ts +1 -0
- package/es/table/src/use/index.js +1 -1
- package/es/table/src/util.d.ts +74 -0
- package/es/table/src/util.js +1038 -1026
- package/es/table/style.css +1 -1
- package/es/table/style.mini.css +1 -0
- package/es/toolbar/index.d.ts +340 -0
- package/es/toolbar/index.js +14 -9
- package/es/toolbar/src/toolbar.d.ts +75 -0
- package/es/toolbar/src/toolbar.js +605 -613
- package/es/toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/ui/index.d.ts +86 -0
- package/es/ui/index.js +457 -501
- package/es/ui/src/anime.d.ts +10 -0
- package/es/ui/src/anime.js +40 -40
- package/es/ui/src/comp.d.ts +2 -0
- package/es/ui/src/comp.js +5 -2
- package/es/ui/src/dom.d.ts +80 -0
- package/es/ui/src/dom.js +377 -380
- package/es/ui/src/log.d.ts +6 -0
- package/es/ui/src/log.js +18 -13
- package/es/ui/src/utils.d.ts +23 -0
- package/es/ui/src/utils.js +57 -53
- package/es/ui/src/vn.d.ts +7 -0
- package/es/ui/src/vn.js +49 -42
- package/es/v-x-e-table/index.d.ts +3 -0
- package/es/v-x-e-table/index.js +6 -3
- package/es/vxe-colgroup/index.d.ts +3 -0
- package/es/vxe-colgroup/index.js +6 -3
- package/es/vxe-column/index.d.ts +3 -0
- package/es/vxe-column/index.js +6 -3
- package/es/vxe-grid/index.d.ts +3 -0
- package/es/vxe-grid/index.js +6 -3
- package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
- package/es/vxe-table/index.d.ts +3 -0
- package/es/vxe-table/index.js +6 -3
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.mini.css +1 -0
- package/es/vxe-toolbar/index.d.ts +3 -0
- package/es/vxe-toolbar/index.js +6 -3
- package/es/vxe-toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/vxe-ui/index.d.ts +3 -0
- package/es/vxe-ui/index.js +6 -3
- package/lib/colgroup/index.js +44 -18
- package/lib/colgroup/style/index.js +1 -1
- package/lib/column/index.js +44 -18
- package/lib/column/style/index.js +1 -1
- package/lib/components.js +58 -92
- package/lib/grid/index.js +42 -14
- package/lib/grid/src/emits.js +37 -6
- package/lib/grid/src/grid.js +850 -1195
- package/lib/grid/src/props.js +27 -11
- package/lib/grid/style/index.js +1 -1
- package/lib/{vxe-grid/style/style.min.css → grid/style/style.mini.css} +1 -1
- package/lib/iconfont.1792979665397.ttf +0 -0
- package/lib/iconfont.1792979665397.woff +0 -0
- package/lib/iconfont.1792979665397.woff2 +0 -0
- package/lib/index.common.js +35 -19
- package/lib/index.js +37 -0
- package/lib/index.umd.js +30584 -24324
- package/lib/index.umd.min.js +3 -1
- package/lib/locale/ar-EG.umd.js +948 -0
- package/lib/locale/de-DE.umd.js +948 -0
- package/lib/locale/en-US.umd.js +948 -0
- package/lib/locale/es-ES.umd.js +948 -0
- package/lib/locale/fr-FR.umd.js +948 -0
- package/lib/locale/hu-HU.umd.js +948 -0
- package/lib/locale/hy-AM.umd.js +948 -0
- package/lib/locale/id-ID.umd.js +948 -0
- package/lib/locale/it-IT.umd.js +948 -0
- package/lib/locale/ja-JP.umd.js +948 -0
- package/lib/locale/ko-KR.umd.js +948 -0
- package/lib/locale/lang/ar-EG.js +681 -664
- package/lib/locale/lang/ar-EG.umd.js +913 -892
- package/lib/locale/lang/de-DE.js +681 -664
- package/lib/locale/lang/de-DE.umd.js +913 -892
- package/lib/locale/lang/en-US.js +678 -661
- package/lib/locale/lang/en-US.umd.js +913 -892
- package/lib/locale/lang/es-ES.js +681 -664
- package/lib/locale/lang/es-ES.umd.js +913 -892
- package/lib/locale/lang/fr-FR.js +654 -637
- package/lib/locale/lang/fr-FR.umd.js +913 -892
- package/lib/locale/lang/hu-HU.js +681 -664
- package/lib/locale/lang/hu-HU.umd.js +913 -892
- package/lib/locale/lang/hy-AM.js +681 -664
- package/lib/locale/lang/hy-AM.umd.js +913 -892
- package/lib/locale/lang/id-ID.js +681 -664
- package/lib/locale/lang/id-ID.umd.js +913 -892
- package/lib/locale/lang/it-IT.js +661 -644
- package/lib/locale/lang/it-IT.umd.js +912 -891
- package/lib/locale/lang/ja-JP.js +710 -693
- package/lib/locale/lang/ja-JP.umd.js +913 -892
- package/lib/locale/lang/ko-KR.js +681 -664
- package/lib/locale/lang/ko-KR.umd.js +913 -892
- package/lib/locale/lang/ms-MY.js +681 -664
- package/lib/locale/lang/ms-MY.umd.js +913 -892
- package/lib/locale/lang/nb-NO.js +681 -664
- package/lib/locale/lang/nb-NO.umd.js +913 -892
- package/lib/locale/lang/pt-BR.js +681 -664
- package/lib/locale/lang/pt-BR.umd.js +913 -892
- package/lib/locale/lang/ru-RU.js +690 -673
- package/lib/locale/lang/ru-RU.umd.js +913 -892
- package/lib/locale/lang/th-TH.js +681 -664
- package/lib/locale/lang/th-TH.umd.js +913 -892
- package/lib/locale/lang/ug-CN.js +681 -664
- package/lib/locale/lang/ug-CN.umd.js +913 -892
- package/lib/locale/lang/uk-UA.js +674 -657
- package/lib/locale/lang/uk-UA.umd.js +913 -892
- package/lib/locale/lang/uz-UZ.js +583 -566
- package/lib/locale/lang/uz-UZ.umd.js +908 -887
- package/lib/locale/lang/vi-VN.js +681 -664
- package/lib/locale/lang/vi-VN.umd.js +913 -892
- package/lib/locale/lang/zh-CHT.js +681 -664
- package/lib/locale/lang/zh-CHT.umd.js +913 -892
- package/lib/locale/lang/zh-CN.js +681 -664
- package/lib/locale/lang/zh-CN.umd.js +913 -892
- package/lib/locale/lang/zh-HK.js +928 -7
- package/lib/locale/lang/zh-HK.umd.js +945 -20
- package/lib/locale/lang/zh-MO.js +928 -7
- package/lib/locale/lang/zh-MO.umd.js +945 -20
- package/lib/locale/lang/zh-TC.js +928 -7
- package/lib/locale/lang/zh-TC.umd.js +948 -0
- package/lib/locale/lang/zh-TW.js +928 -7
- package/lib/locale/lang/zh-TW.umd.js +945 -20
- package/lib/locale/ms-MY.umd.js +948 -0
- package/lib/locale/nb-NO.umd.js +948 -0
- package/lib/locale/pt-BR.umd.js +948 -0
- package/lib/locale/ru-RU.umd.js +948 -0
- package/lib/locale/th-TH.umd.js +948 -0
- package/lib/locale/ug-CN.umd.js +948 -0
- package/lib/locale/uk-UA.umd.js +948 -0
- package/lib/locale/uz-UZ.umd.js +948 -0
- package/lib/locale/vi-VN.umd.js +948 -0
- package/lib/locale/zh-CHT.umd.js +948 -0
- package/lib/locale/zh-CN.umd.js +948 -0
- package/lib/locale/zh-HK.umd.js +948 -0
- package/lib/locale/zh-MO.umd.js +948 -0
- package/lib/locale/zh-TC.umd.js +948 -0
- package/lib/locale/zh-TW.umd.js +948 -0
- package/lib/style.css +4501 -1
- package/lib/style.mini.css +1 -0
- package/lib/table/index.js +45 -17
- package/lib/table/module/custom/hook.js +132 -252
- package/lib/table/module/custom/panel.js +919 -970
- package/lib/table/module/edit/hook.js +248 -618
- package/lib/table/module/export/export-panel.js +390 -347
- package/lib/table/module/export/hook.js +745 -1179
- package/lib/table/module/export/import-panel.js +170 -136
- package/lib/table/module/export/util.js +37 -14
- package/lib/table/module/filter/hook.js +127 -227
- package/lib/table/module/filter/panel.js +177 -208
- package/lib/table/module/keyboard/hook.js +93 -172
- package/lib/table/module/menu/hook.js +86 -165
- package/lib/table/module/menu/panel.js +176 -141
- package/lib/table/module/validator/hook.js +164 -271
- package/lib/table/render/index.js +700 -1147
- package/lib/table/src/body.js +426 -559
- package/lib/table/src/cell.js +619 -987
- package/lib/table/src/column.js +55 -30
- package/lib/table/src/columnInfo.js +88 -110
- package/lib/table/src/emits.js +145 -13
- package/lib/table/src/footer.js +181 -240
- package/lib/table/src/group.js +56 -34
- package/lib/table/src/header.js +292 -367
- package/lib/table/src/props.js +27 -12
- package/lib/table/src/store.js +25 -9
- package/lib/table/src/table.js +14179 -1023
- package/lib/table/src/use/cell-view.js +47 -37
- package/lib/table/src/use/index.js +17 -15
- package/lib/table/src/util.js +236 -337
- package/lib/table/style/index.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.mini.css +1 -0
- package/lib/toolbar/index.js +42 -14
- package/lib/toolbar/src/toolbar.js +271 -379
- package/lib/toolbar/style/index.js +1 -1
- package/lib/toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/ui/index.js +153 -195
- package/lib/ui/src/anime.js +49 -29
- package/lib/ui/src/comp.js +23 -6
- package/lib/ui/src/dom.js +114 -147
- package/lib/ui/src/log.js +34 -18
- package/lib/ui/src/utils.js +57 -45
- package/lib/ui/src/vn.js +60 -34
- package/lib/ui/style/index.js +1 -1
- package/lib/v-x-e-table/index.js +35 -19
- package/lib/vxe-colgroup/index.js +35 -19
- package/lib/vxe-colgroup/style/index.js +1 -1
- package/lib/vxe-column/index.js +35 -19
- package/lib/vxe-column/style/index.js +1 -1
- package/lib/vxe-grid/index.js +35 -19
- package/lib/vxe-grid/style/index.js +1 -1
- package/{es/grid/style.min.css → lib/vxe-grid/style/style.mini.css} +1 -1
- package/lib/vxe-table/index.js +35 -19
- package/lib/vxe-table/style/index.js +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.mini.css +1 -0
- package/lib/vxe-toolbar/index.js +35 -19
- package/lib/vxe-toolbar/style/index.js +1 -1
- package/lib/vxe-toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/vxe-ui/index.js +35 -19
- package/lib/vxe-ui/style/index.js +1 -1
- package/package.json +8 -4
- package/packages/locale/lang/zh-HK.ts +907 -3
- package/packages/locale/lang/zh-MO.ts +907 -3
- package/packages/locale/lang/zh-TC.ts +907 -3
- package/packages/locale/lang/zh-TW.ts +907 -3
- package/packages/ui/index.ts +1 -28
- package/dist/style.min.css +0 -1
- package/es/index.css +0 -1
- package/es/index.min.css +0 -1
- package/es/style.min.css +0 -1
- package/es/table/style.min.css +0 -1
- package/es/vxe-table/style.min.css +0 -1
- package/es/vxe-v-x-e-table/index.js +0 -3
- package/lib/colgroup/index.min.js +0 -1
- package/lib/column/index.min.js +0 -1
- package/lib/components.min.js +0 -1
- package/lib/grid/index.min.js +0 -1
- package/lib/grid/src/emits.min.js +0 -1
- package/lib/grid/src/grid.min.js +0 -1
- package/lib/grid/src/props.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/index.min.css +0 -1
- package/lib/locale/lang/ar-EG.d.ts +0 -2
- package/lib/locale/lang/ar-EG.min.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.min.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.min.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.min.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.min.js +0 -1
- package/lib/locale/lang/hu-HU.d.ts +0 -2
- package/lib/locale/lang/hu-HU.min.js +0 -1
- package/lib/locale/lang/hy-AM.d.ts +0 -2
- package/lib/locale/lang/hy-AM.min.js +0 -1
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.min.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.min.js +0 -1
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.min.js +0 -1
- package/lib/locale/lang/ms-MY.d.ts +0 -2
- package/lib/locale/lang/ms-MY.min.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.min.js +0 -1
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.min.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.min.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.min.js +0 -1
- package/lib/locale/lang/ug-CN.d.ts +0 -2
- package/lib/locale/lang/ug-CN.min.js +0 -1
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.min.js +0 -1
- package/lib/locale/lang/uz-UZ.d.ts +0 -2
- package/lib/locale/lang/uz-UZ.min.js +0 -1
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.min.js +0 -1
- package/lib/locale/lang/zh-CHT.d.ts +0 -2
- package/lib/locale/lang/zh-CHT.min.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.min.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.min.js +0 -1
- package/lib/locale/lang/zh-MO.d.ts +0 -2
- package/lib/locale/lang/zh-MO.min.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.min.js +0 -1
- package/lib/style.min.css +0 -1
- package/lib/table/index.min.js +0 -1
- package/lib/table/module/custom/hook.min.js +0 -1
- package/lib/table/module/custom/panel.min.js +0 -1
- package/lib/table/module/edit/hook.min.js +0 -1
- package/lib/table/module/export/export-panel.min.js +0 -1
- package/lib/table/module/export/hook.min.js +0 -1
- package/lib/table/module/export/import-panel.min.js +0 -1
- package/lib/table/module/export/util.min.js +0 -1
- package/lib/table/module/filter/hook.min.js +0 -1
- package/lib/table/module/filter/panel.min.js +0 -1
- package/lib/table/module/keyboard/hook.min.js +0 -1
- package/lib/table/module/menu/hook.min.js +0 -1
- package/lib/table/module/menu/panel.min.js +0 -1
- package/lib/table/module/validator/hook.min.js +0 -1
- package/lib/table/render/index.min.js +0 -1
- package/lib/table/src/body.min.js +0 -1
- package/lib/table/src/cell.min.js +0 -1
- package/lib/table/src/column.min.js +0 -1
- package/lib/table/src/columnInfo.min.js +0 -1
- package/lib/table/src/emits.min.js +0 -1
- package/lib/table/src/footer.min.js +0 -1
- package/lib/table/src/group.min.js +0 -1
- package/lib/table/src/header.min.js +0 -1
- package/lib/table/src/props.min.js +0 -1
- package/lib/table/src/store.min.js +0 -1
- package/lib/table/src/table.min.js +0 -1
- package/lib/table/src/use/cell-view.min.js +0 -1
- package/lib/table/src/use/index.min.js +0 -1
- package/lib/table/src/util.min.js +0 -1
- package/lib/table/style/style.min.css +0 -1
- package/lib/toolbar/index.min.js +0 -1
- package/lib/toolbar/src/toolbar.min.js +0 -1
- package/lib/ui/index.min.js +0 -1
- package/lib/ui/src/anime.min.js +0 -1
- package/lib/ui/src/comp.min.js +0 -1
- package/lib/ui/src/dom.min.js +0 -1
- package/lib/ui/src/log.min.js +0 -1
- package/lib/ui/src/utils.min.js +0 -1
- package/lib/ui/src/vn.min.js +0 -1
- package/lib/ui/style/style.min.css +0 -0
- package/lib/v-x-e-table/index.min.js +0 -1
- package/lib/v-x-e-table/style/index.js +0 -1
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-colgroup/index.min.js +0 -1
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/index.min.js +0 -1
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-grid/index.min.js +0 -1
- package/lib/vxe-table/index.min.js +0 -1
- package/lib/vxe-table/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.min.js +0 -1
- package/lib/vxe-ui/index.min.js +0 -1
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/lib/vxe-v-x-e-table/index.js +0 -21
- package/lib/vxe-v-x-e-table/index.min.js +0 -1
- package/lib/vxe-v-x-e-table/style/index.js +0 -1
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- /package/{es/iconfont.1792838769925.ttf → dist/iconfont.1792979665397.ttf} +0 -0
- /package/{es/iconfont.1792838769925.woff → dist/iconfont.1792979665397.woff} +0 -0
- /package/{es/iconfont.1792838769925.woff2 → dist/iconfont.1792979665397.woff2} +0 -0
- /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
- /package/es/column/{style.min.css → style.mini.css} +0 -0
- /package/{lib/iconfont.1792838769925.ttf → es/iconfont.1792979665397.ttf} +0 -0
- /package/{lib/iconfont.1792838769925.woff → es/iconfont.1792979665397.woff} +0 -0
- /package/{lib/iconfont.1792838769925.woff2 → es/iconfont.1792979665397.woff2} +0 -0
- /package/es/ui/{style.min.css → style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
- /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
- /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
- /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
- /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
- /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
package/lib/table/src/footer.js
CHANGED
|
@@ -1,25 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty
|
|
4
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var footer_exports = {};
|
|
30
|
+
__export(footer_exports, {
|
|
31
|
+
default: () => footer_default
|
|
5
32
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const sourceType = 'table';
|
|
20
|
-
const renderType = 'footer';
|
|
21
|
-
var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
22
|
-
name: 'VxeTableFooter',
|
|
33
|
+
module.exports = __toCommonJS(footer_exports);
|
|
34
|
+
var import_vue = require("vue");
|
|
35
|
+
var import_comp = require("../../ui/src/comp");
|
|
36
|
+
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
+
var import_ui = require("../../ui");
|
|
38
|
+
var import_dom = require("../../ui/src/dom");
|
|
39
|
+
var import_util = require("./util");
|
|
40
|
+
var import_utils = require("../../ui/src/utils");
|
|
41
|
+
const { renderer, renderEmptyElement } = import_ui.VxeUI;
|
|
42
|
+
const sourceType = "table";
|
|
43
|
+
const renderType = "footer";
|
|
44
|
+
var footer_default = (0, import_comp.defineVxeComponent)({
|
|
45
|
+
name: "VxeTableFooter",
|
|
23
46
|
props: {
|
|
24
47
|
footerTableData: {
|
|
25
48
|
type: Array,
|
|
@@ -39,105 +62,54 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
39
62
|
}
|
|
40
63
|
},
|
|
41
64
|
setup(props) {
|
|
42
|
-
const $xeTable = (0,
|
|
43
|
-
const {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
computeColumnOpts,
|
|
52
|
-
computeCellOpts,
|
|
53
|
-
computeFooterCellOpts,
|
|
54
|
-
computeDefaultRowHeight,
|
|
55
|
-
computeResizableOpts,
|
|
56
|
-
computeVirtualXOpts,
|
|
57
|
-
computeIsFooterRenderOptimize,
|
|
58
|
-
computeRendererOpts
|
|
59
|
-
} = $xeTable.getComputeMaps();
|
|
60
|
-
const refElem = (0, _vue.ref)();
|
|
61
|
-
const refFooterScroll = (0, _vue.ref)();
|
|
62
|
-
const refFooterTable = (0, _vue.ref)();
|
|
63
|
-
const refFooterColgroup = (0, _vue.ref)();
|
|
64
|
-
const refFooterTFoot = (0, _vue.ref)();
|
|
65
|
-
const refFooterXSpace = (0, _vue.ref)();
|
|
65
|
+
const $xeTable = (0, import_vue.inject)("$xeTable", {});
|
|
66
|
+
const { xID, props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
67
|
+
const { computeFooterTooltipOpts, computeColumnOpts, computeCellOpts, computeFooterCellOpts, computeDefaultRowHeight, computeResizableOpts, computeVirtualXOpts, computeIsFooterRenderOptimize, computeRendererOpts } = $xeTable.getComputeMaps();
|
|
68
|
+
const refElem = (0, import_vue.ref)();
|
|
69
|
+
const refFooterScroll = (0, import_vue.ref)();
|
|
70
|
+
const refFooterTable = (0, import_vue.ref)();
|
|
71
|
+
const refFooterColgroup = (0, import_vue.ref)();
|
|
72
|
+
const refFooterTFoot = (0, import_vue.ref)();
|
|
73
|
+
const refFooterXSpace = (0, import_vue.ref)();
|
|
66
74
|
const renderRows = (isOptimizeMode, tableColumn, footerTableData, row, $rowIndex, _rowIndex) => {
|
|
67
75
|
const $xeGrid = $xeTable.xeGrid;
|
|
68
76
|
const $xeGantt = $xeTable.xeGantt;
|
|
69
|
-
const {
|
|
70
|
-
|
|
71
|
-
} =
|
|
72
|
-
const {
|
|
73
|
-
resizable: allResizable,
|
|
74
|
-
border,
|
|
75
|
-
footerCellClassName,
|
|
76
|
-
footerCellStyle,
|
|
77
|
-
footerAlign: allFooterAlign,
|
|
78
|
-
footerSpanMethod,
|
|
79
|
-
align: allAlign,
|
|
80
|
-
columnKey,
|
|
81
|
-
showFooterOverflow: allColumnFooterOverflow
|
|
82
|
-
} = tableProps;
|
|
83
|
-
const {
|
|
84
|
-
scrollXLoad,
|
|
85
|
-
scrollYLoad,
|
|
86
|
-
overflowX,
|
|
87
|
-
mergeFootFlag,
|
|
88
|
-
currColFlag
|
|
89
|
-
} = tableReactData;
|
|
90
|
-
const {
|
|
91
|
-
fullColumnIdData,
|
|
92
|
-
mergeFooterList,
|
|
93
|
-
mergeFooterCellMaps,
|
|
94
|
-
scrollXStore,
|
|
95
|
-
currentCol
|
|
96
|
-
} = tableInternalData;
|
|
77
|
+
const { fixedType } = props;
|
|
78
|
+
const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps;
|
|
79
|
+
const { scrollXLoad, scrollYLoad, overflowX, mergeFootFlag, currColFlag } = tableReactData;
|
|
80
|
+
const { fullColumnIdData, mergeFooterList, mergeFooterCellMaps, scrollXStore, currentCol } = tableInternalData;
|
|
97
81
|
const virtualXOpts = computeVirtualXOpts.value;
|
|
98
82
|
const footerTooltipOpts = computeFooterTooltipOpts.value;
|
|
99
83
|
const resizableOpts = computeResizableOpts.value;
|
|
100
|
-
const {
|
|
101
|
-
isAllColumnDrag
|
|
102
|
-
} = resizableOpts;
|
|
84
|
+
const { isAllColumnDrag } = resizableOpts;
|
|
103
85
|
const columnOpts = computeColumnOpts.value;
|
|
104
86
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
105
87
|
const cellOpts = computeCellOpts.value;
|
|
106
88
|
const footerCellOpts = computeFooterCellOpts.value;
|
|
107
|
-
const currCellHeight = (0,
|
|
89
|
+
const currCellHeight = (0, import_util.getCalcHeight)(footerCellOpts.height) || defaultRowHeight;
|
|
108
90
|
const rendererOpts = computeRendererOpts.value;
|
|
109
91
|
return tableColumn.map((column, $columnIndex) => {
|
|
110
|
-
const {
|
|
111
|
-
type,
|
|
112
|
-
showFooterOverflow,
|
|
113
|
-
footerAlign,
|
|
114
|
-
align,
|
|
115
|
-
footerClassName,
|
|
116
|
-
editRender,
|
|
117
|
-
cellRender
|
|
118
|
-
} = column;
|
|
92
|
+
const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column;
|
|
119
93
|
const colid = column.id;
|
|
120
94
|
const colRest = fullColumnIdData[colid] || {};
|
|
121
95
|
const renderOpts = editRender || cellRender;
|
|
122
96
|
const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
|
|
123
97
|
const showAllTip = footerTooltipOpts.showAll;
|
|
124
98
|
const fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
|
|
125
|
-
const cellPadding = (0,
|
|
99
|
+
const cellPadding = (0, import_utils.getDefaultConfig)(footerCellOpts.padding, cellOpts.padding);
|
|
126
100
|
const isAllCellPadding = cellPadding === true;
|
|
127
101
|
const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
|
|
128
102
|
const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
|
|
129
103
|
const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
|
|
130
104
|
const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
|
|
131
|
-
const footOverflow = (0,
|
|
132
|
-
const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign :
|
|
133
|
-
const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) ===
|
|
134
|
-
const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) ===
|
|
135
|
-
const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) ===
|
|
105
|
+
const footOverflow = (0, import_utils.getDefaultConfig)(showFooterOverflow, allColumnFooterOverflow);
|
|
106
|
+
const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : "") || allFooterAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
|
|
107
|
+
const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === "ellipsis";
|
|
108
|
+
const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === "title";
|
|
109
|
+
const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === "tooltip";
|
|
136
110
|
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
137
|
-
const showResizable =
|
|
138
|
-
const attrs = {
|
|
139
|
-
colid
|
|
140
|
-
};
|
|
111
|
+
const showResizable = import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
112
|
+
const attrs = { colid };
|
|
141
113
|
const tfOns = {};
|
|
142
114
|
const columnIndex = colRest.index;
|
|
143
115
|
const _columnIndex = colRest._index;
|
|
@@ -162,36 +134,32 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
162
134
|
data: footerTableData
|
|
163
135
|
};
|
|
164
136
|
if (showTitle || showTooltip || showAllTip) {
|
|
165
|
-
tfOns.onMouseenter = evnt => {
|
|
137
|
+
tfOns.onMouseenter = (evnt) => {
|
|
166
138
|
if (showTitle) {
|
|
167
|
-
(0,
|
|
139
|
+
(0, import_dom.updateCellTitle)(evnt.currentTarget, column);
|
|
168
140
|
} else if (showTooltip || showAllTip) {
|
|
169
141
|
$xeTable.triggerFooterTooltipEvent(evnt, cellParams);
|
|
170
142
|
}
|
|
171
143
|
};
|
|
172
144
|
}
|
|
173
145
|
if (showTooltip || showAllTip) {
|
|
174
|
-
tfOns.onMouseleave = evnt => {
|
|
146
|
+
tfOns.onMouseleave = (evnt) => {
|
|
175
147
|
if (showTooltip || showAllTip) {
|
|
176
148
|
$xeTable.handleTargetLeaveEvent(evnt);
|
|
177
149
|
}
|
|
178
150
|
};
|
|
179
151
|
}
|
|
180
|
-
tfOns.onClick = evnt => {
|
|
152
|
+
tfOns.onClick = (evnt) => {
|
|
181
153
|
$xeTable.triggerFooterCellClickEvent(evnt, cellParams);
|
|
182
154
|
};
|
|
183
|
-
tfOns.onDblclick = evnt => {
|
|
155
|
+
tfOns.onDblclick = (evnt) => {
|
|
184
156
|
$xeTable.triggerFooterCellDblclickEvent(evnt, cellParams);
|
|
185
157
|
};
|
|
186
158
|
let isMergeCell = false;
|
|
187
|
-
// 合并行或列
|
|
188
159
|
if (mergeFootFlag && mergeFooterList.length) {
|
|
189
160
|
const spanRest = mergeFooterCellMaps[`${_rowIndex}:${_columnIndex}`];
|
|
190
161
|
if (spanRest) {
|
|
191
|
-
const {
|
|
192
|
-
rowspan,
|
|
193
|
-
colspan
|
|
194
|
-
} = spanRest;
|
|
162
|
+
const { rowspan, colspan } = spanRest;
|
|
195
163
|
if (!rowspan || !colspan) {
|
|
196
164
|
return null;
|
|
197
165
|
}
|
|
@@ -205,11 +173,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
205
173
|
}
|
|
206
174
|
}
|
|
207
175
|
} else if (footerSpanMethod) {
|
|
208
|
-
|
|
209
|
-
const {
|
|
210
|
-
rowspan = 1,
|
|
211
|
-
colspan = 1
|
|
212
|
-
} = footerSpanMethod(cellParams) || {};
|
|
176
|
+
const { rowspan = 1, colspan = 1 } = footerSpanMethod(cellParams) || {};
|
|
213
177
|
if (!rowspan || !colspan) {
|
|
214
178
|
return null;
|
|
215
179
|
}
|
|
@@ -221,7 +185,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
221
185
|
}
|
|
222
186
|
}
|
|
223
187
|
const isLastColumn = $columnIndex === tableColumn.length - 1;
|
|
224
|
-
const isAutoCellWidth = !column.resizeWidth && (column.minWidth ===
|
|
188
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
|
|
225
189
|
let isVNPreEmptyStatus = false;
|
|
226
190
|
if (isOptimizeMode && overflowX && !isMergeCell) {
|
|
227
191
|
if (scrollXLoad && tableColumn.length > 10 && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
@@ -234,91 +198,71 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
234
198
|
} else {
|
|
235
199
|
tcStyle.minHeight = `${currCellHeight}px`;
|
|
236
200
|
}
|
|
237
|
-
return (0,
|
|
238
|
-
class: [
|
|
201
|
+
return (0, import_vue.h)("td", {
|
|
202
|
+
class: ["vxe-table--column vxe-footer--column", column.id, {
|
|
239
203
|
[`col--${footAlign}`]: footAlign,
|
|
240
204
|
[`col--${type}`]: type,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}, (0,
|
|
251
|
-
|
|
252
|
-
style: footerCellStyle ?
|
|
253
|
-
|
|
205
|
+
"col--last": isLastColumn,
|
|
206
|
+
"fixed--width": !isAutoCellWidth,
|
|
207
|
+
"fixed--hidden": fixedHiddenColumn,
|
|
208
|
+
"is--pg-top": isCellPaddingTop,
|
|
209
|
+
"is--pg-bottom": isCellPaddingBottom,
|
|
210
|
+
"is--pg-left": isCellPaddingLeft,
|
|
211
|
+
"is--pg-right": isCellPaddingRight,
|
|
212
|
+
"col--ellipsis": hasEllipsis,
|
|
213
|
+
"col--current": currColFlag && currentCol === column
|
|
214
|
+
}, (0, import_dom.getPropClass)(footerClassName, cellParams), (0, import_dom.getPropClass)(footerCellClassName, cellParams)],
|
|
215
|
+
...attrs,
|
|
216
|
+
style: footerCellStyle ? import_xe_utils.default.isFunction(footerCellStyle) ? footerCellStyle(cellParams) : footerCellStyle : null,
|
|
217
|
+
...tfOns,
|
|
254
218
|
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
219
|
+
}, [
|
|
220
|
+
(0, import_vue.h)("div", {
|
|
221
|
+
class: ["vxe-cell", {
|
|
222
|
+
"c--title": showTitle,
|
|
223
|
+
"c--tooltip": showTooltip,
|
|
224
|
+
"c--ellipsis": showEllipsis
|
|
225
|
+
}],
|
|
226
|
+
style: tcStyle
|
|
227
|
+
}, isVNPreEmptyStatus ? [] : [
|
|
228
|
+
(0, import_vue.h)("div", {
|
|
229
|
+
colid,
|
|
230
|
+
class: "vxe-cell--wrapper vxe-footer-cell--wrapper"
|
|
231
|
+
}, column.renderFooter(cellParams))
|
|
232
|
+
]),
|
|
233
|
+
/**
|
|
234
|
+
* 列宽拖动
|
|
235
|
+
*/
|
|
236
|
+
!fixedHiddenColumn && showResizable && isAllColumnDrag ? (0, import_vue.h)("div", {
|
|
237
|
+
class: ["vxe-cell--col-resizable", {
|
|
238
|
+
"is--line": !border || border === "none"
|
|
239
|
+
}],
|
|
240
|
+
onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
241
|
+
onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
242
|
+
}) : renderEmptyElement($xeTable)
|
|
243
|
+
]);
|
|
276
244
|
});
|
|
277
245
|
};
|
|
278
246
|
const renderHeads = (isOptimizeMode, renderColumnList) => {
|
|
279
|
-
const {
|
|
280
|
-
|
|
281
|
-
footerTableData
|
|
282
|
-
} = props;
|
|
283
|
-
const {
|
|
284
|
-
footerRowClassName,
|
|
285
|
-
footerRowStyle
|
|
286
|
-
} = tableProps;
|
|
247
|
+
const { fixedType, footerTableData } = props;
|
|
248
|
+
const { footerRowClassName, footerRowStyle } = tableProps;
|
|
287
249
|
return footerTableData.map((row, _rowIndex) => {
|
|
288
250
|
const $rowIndex = _rowIndex;
|
|
289
|
-
const rowParams = {
|
|
290
|
-
|
|
291
|
-
row,
|
|
292
|
-
rowIndex: _rowIndex,
|
|
293
|
-
_rowIndex,
|
|
294
|
-
$rowIndex,
|
|
295
|
-
fixed: fixedType,
|
|
296
|
-
type: renderType
|
|
297
|
-
};
|
|
298
|
-
return (0, _vue.h)('tr', {
|
|
251
|
+
const rowParams = { $table: $xeTable, row, rowIndex: _rowIndex, _rowIndex, $rowIndex, fixed: fixedType, type: renderType };
|
|
252
|
+
return (0, import_vue.h)("tr", {
|
|
299
253
|
key: _rowIndex,
|
|
300
|
-
class: [
|
|
301
|
-
|
|
254
|
+
class: [
|
|
255
|
+
"vxe-footer--row",
|
|
256
|
+
footerRowClassName ? import_xe_utils.default.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ""
|
|
257
|
+
],
|
|
258
|
+
style: footerRowStyle ? import_xe_utils.default.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : null
|
|
302
259
|
}, renderRows(isOptimizeMode, renderColumnList, footerTableData, row, _rowIndex, _rowIndex));
|
|
303
260
|
});
|
|
304
261
|
};
|
|
305
262
|
const renderVN = () => {
|
|
306
|
-
const {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
tableColumn
|
|
310
|
-
} = props;
|
|
311
|
-
const {
|
|
312
|
-
visibleColumn,
|
|
313
|
-
fullColumnIdData
|
|
314
|
-
} = tableInternalData;
|
|
315
|
-
const {
|
|
316
|
-
isGroup,
|
|
317
|
-
isColLoading,
|
|
318
|
-
overflowX,
|
|
319
|
-
scrollXLoad,
|
|
320
|
-
dragCol
|
|
321
|
-
} = tableReactData;
|
|
263
|
+
const { fixedType, fixedColumn, tableColumn } = props;
|
|
264
|
+
const { visibleColumn, fullColumnIdData } = tableInternalData;
|
|
265
|
+
const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
|
|
322
266
|
const isFooterRenderOptimize = computeIsFooterRenderOptimize.value;
|
|
323
267
|
let renderColumnList = tableColumn;
|
|
324
268
|
const isOptimizeMode = isFooterRenderOptimize;
|
|
@@ -331,7 +275,6 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
331
275
|
}
|
|
332
276
|
}
|
|
333
277
|
if (!fixedType && !isGroup) {
|
|
334
|
-
// 列拖拽
|
|
335
278
|
if (scrollXLoad && dragCol) {
|
|
336
279
|
if (renderColumnList.length > 2) {
|
|
337
280
|
const dCowRest = fullColumnIdData[dragCol.id];
|
|
@@ -354,58 +297,60 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
354
297
|
}
|
|
355
298
|
}
|
|
356
299
|
}
|
|
357
|
-
return (0,
|
|
300
|
+
return (0, import_vue.h)("div", {
|
|
358
301
|
ref: refElem,
|
|
359
|
-
class: [
|
|
302
|
+
class: ["vxe-table--footer-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
|
|
360
303
|
xid: xID
|
|
361
|
-
}, [(0, _vue.h)('div', {
|
|
362
|
-
ref: refFooterScroll,
|
|
363
|
-
class: 'vxe-table--footer-inner-wrapper',
|
|
364
|
-
onScroll(evnt) {
|
|
365
|
-
$xeTable.triggerFooterScrollEvent(evnt, fixedType);
|
|
366
|
-
}
|
|
367
|
-
}, [fixedType ? renderEmptyElement($xeTable) : (0, _vue.h)('div', {
|
|
368
|
-
ref: refFooterXSpace,
|
|
369
|
-
class: 'vxe-body--x-space'
|
|
370
|
-
}), (0, _vue.h)('table', {
|
|
371
|
-
ref: refFooterTable,
|
|
372
|
-
class: 'vxe-table--footer',
|
|
373
|
-
xid: xID,
|
|
374
|
-
cellspacing: 0,
|
|
375
|
-
cellpadding: 0,
|
|
376
|
-
border: 0,
|
|
377
|
-
xvm: isOptimizeMode ? '1' : null
|
|
378
304
|
}, [
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}, renderColumnList.map((column, $columnIndex) => {
|
|
385
|
-
return (0, _vue.h)('col', {
|
|
386
|
-
name: column.id,
|
|
387
|
-
key: $columnIndex,
|
|
388
|
-
style: {
|
|
389
|
-
width: `${column.renderWidth}px`
|
|
305
|
+
(0, import_vue.h)("div", {
|
|
306
|
+
ref: refFooterScroll,
|
|
307
|
+
class: "vxe-table--footer-inner-wrapper",
|
|
308
|
+
onScroll(evnt) {
|
|
309
|
+
$xeTable.triggerFooterScrollEvent(evnt, fixedType);
|
|
390
310
|
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
311
|
+
}, [
|
|
312
|
+
fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
|
|
313
|
+
ref: refFooterXSpace,
|
|
314
|
+
class: "vxe-body--x-space"
|
|
315
|
+
}),
|
|
316
|
+
(0, import_vue.h)("table", {
|
|
317
|
+
ref: refFooterTable,
|
|
318
|
+
class: "vxe-table--footer",
|
|
319
|
+
xid: xID,
|
|
320
|
+
cellspacing: 0,
|
|
321
|
+
cellpadding: 0,
|
|
322
|
+
border: 0,
|
|
323
|
+
xvm: isOptimizeMode ? "1" : null
|
|
324
|
+
}, [
|
|
325
|
+
/**
|
|
326
|
+
* 列宽
|
|
327
|
+
*/
|
|
328
|
+
(0, import_vue.h)("colgroup", {
|
|
329
|
+
ref: refFooterColgroup
|
|
330
|
+
}, renderColumnList.map((column, $columnIndex) => {
|
|
331
|
+
return (0, import_vue.h)("col", {
|
|
332
|
+
name: column.id,
|
|
333
|
+
key: $columnIndex,
|
|
334
|
+
style: {
|
|
335
|
+
width: `${column.renderWidth}px`
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
})),
|
|
339
|
+
/**
|
|
340
|
+
* 底部
|
|
341
|
+
*/
|
|
342
|
+
(0, import_vue.h)("tfoot", {
|
|
343
|
+
ref: refFooterTFoot
|
|
344
|
+
}, renderHeads(isOptimizeMode, renderColumnList))
|
|
345
|
+
])
|
|
346
|
+
])
|
|
347
|
+
]);
|
|
399
348
|
};
|
|
400
|
-
(0,
|
|
401
|
-
(0,
|
|
402
|
-
const {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
const {
|
|
406
|
-
elemStore
|
|
407
|
-
} = tableInternalData;
|
|
408
|
-
const prefix = `${fixedType || 'main'}-footer-`;
|
|
349
|
+
(0, import_vue.onMounted)(() => {
|
|
350
|
+
(0, import_vue.nextTick)(() => {
|
|
351
|
+
const { fixedType } = props;
|
|
352
|
+
const { elemStore } = tableInternalData;
|
|
353
|
+
const prefix = `${fixedType || "main"}-footer-`;
|
|
409
354
|
elemStore[`${prefix}wrapper`] = refElem;
|
|
410
355
|
elemStore[`${prefix}scroll`] = refFooterScroll;
|
|
411
356
|
elemStore[`${prefix}table`] = refFooterTable;
|
|
@@ -414,14 +359,10 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
414
359
|
elemStore[`${prefix}xSpace`] = refFooterXSpace;
|
|
415
360
|
});
|
|
416
361
|
});
|
|
417
|
-
(0,
|
|
418
|
-
const {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
const {
|
|
422
|
-
elemStore
|
|
423
|
-
} = tableInternalData;
|
|
424
|
-
const prefix = `${fixedType || 'main'}-footer-`;
|
|
362
|
+
(0, import_vue.onUnmounted)(() => {
|
|
363
|
+
const { fixedType } = props;
|
|
364
|
+
const { elemStore } = tableInternalData;
|
|
365
|
+
const prefix = `${fixedType || "main"}-footer-`;
|
|
425
366
|
elemStore[`${prefix}wrapper`] = null;
|
|
426
367
|
elemStore[`${prefix}scroll`] = null;
|
|
427
368
|
elemStore[`${prefix}table`] = null;
|
|
@@ -431,4 +372,4 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
431
372
|
});
|
|
432
373
|
return renderVN;
|
|
433
374
|
}
|
|
434
|
-
});
|
|
375
|
+
});
|
package/lib/table/src/group.js
CHANGED
|
@@ -1,28 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty
|
|
4
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var group_exports = {};
|
|
30
|
+
__export(group_exports, {
|
|
31
|
+
default: () => group_default
|
|
5
32
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
props
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const refElem = (0, _vue.ref)();
|
|
20
|
-
const $xeTable = (0, _vue.inject)('$xeTable', null);
|
|
21
|
-
const $xeParentColgroup = (0, _vue.inject)('$xeColgroup', null);
|
|
33
|
+
module.exports = __toCommonJS(group_exports);
|
|
34
|
+
var import_vue = require("vue");
|
|
35
|
+
var import_comp = require("../../ui/src/comp");
|
|
36
|
+
var import_column = require("./column");
|
|
37
|
+
var import_util = require("./util");
|
|
38
|
+
var import_cell = __toESM(require("./cell"));
|
|
39
|
+
var group_default = (0, import_comp.defineVxeComponent)({
|
|
40
|
+
name: "VxeColgroup",
|
|
41
|
+
props: import_column.columnProps,
|
|
42
|
+
setup(props, { slots }) {
|
|
43
|
+
const refElem = (0, import_vue.ref)();
|
|
44
|
+
const $xeTable = (0, import_vue.inject)("$xeTable", null);
|
|
45
|
+
const $xeParentColgroup = (0, import_vue.inject)("$xeColgroup", null);
|
|
22
46
|
if (!$xeTable) {
|
|
23
|
-
return () => (0,
|
|
47
|
+
return () => (0, import_vue.createCommentVNode)();
|
|
24
48
|
}
|
|
25
|
-
const columnConfig =
|
|
49
|
+
const columnConfig = import_cell.default.createColumn($xeTable, props);
|
|
26
50
|
const columnSlots = {};
|
|
27
51
|
if (slots.header) {
|
|
28
52
|
columnSlots.header = slots.header;
|
|
@@ -32,28 +56,26 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
32
56
|
}
|
|
33
57
|
columnConfig.slots = columnSlots;
|
|
34
58
|
columnConfig.children = [];
|
|
35
|
-
(0,
|
|
36
|
-
(0,
|
|
59
|
+
(0, import_util.watchColumn)($xeTable, props, columnConfig);
|
|
60
|
+
(0, import_vue.onMounted)(() => {
|
|
37
61
|
const elem = refElem.value;
|
|
38
62
|
if (elem) {
|
|
39
|
-
(0,
|
|
63
|
+
(0, import_util.assembleColumn)($xeTable, elem, columnConfig, $xeParentColgroup);
|
|
40
64
|
}
|
|
41
65
|
});
|
|
42
|
-
(0,
|
|
43
|
-
(0,
|
|
66
|
+
(0, import_vue.onUnmounted)(() => {
|
|
67
|
+
(0, import_util.destroyColumn)($xeTable, columnConfig);
|
|
44
68
|
});
|
|
45
69
|
const renderVN = () => {
|
|
46
70
|
const defaultSlot = slots.default;
|
|
47
|
-
return (0,
|
|
71
|
+
return (0, import_vue.h)("div", {
|
|
48
72
|
ref: refElem
|
|
49
73
|
}, defaultSlot ? defaultSlot() : []);
|
|
50
74
|
};
|
|
51
|
-
const $xeColgroup = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
(0,
|
|
55
|
-
(0, _vue.provide)('$xeGrid', null);
|
|
56
|
-
(0, _vue.provide)('$xeGantt', null);
|
|
75
|
+
const $xeColgroup = { columnConfig };
|
|
76
|
+
(0, import_vue.provide)("$xeColgroup", $xeColgroup);
|
|
77
|
+
(0, import_vue.provide)("$xeGrid", null);
|
|
78
|
+
(0, import_vue.provide)("$xeGantt", null);
|
|
57
79
|
return renderVN;
|
|
58
80
|
}
|
|
59
|
-
});
|
|
81
|
+
});
|