vxe-table 4.23.4 → 4.23.6
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 +32459 -33908
- 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/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 +14064 -15041
- 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.1792977622800.ttf +0 -0
- package/lib/iconfont.1792977622800.woff +0 -0
- package/lib/iconfont.1792977622800.woff2 +0 -0
- package/lib/index.common.js +35 -19
- package/lib/index.js +37 -0
- package/lib/index.umd.js +30586 -24322
- 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 +250 -620
- 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 -1019
- 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/table/module/edit/hook.ts +2 -2
- package/packages/table/src/table.ts +64 -28
- 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.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.1792740941484.ttf → dist/iconfont.1792977622800.ttf} +0 -0
- /package/{es/iconfont.1792740941484.woff → dist/iconfont.1792977622800.woff} +0 -0
- /package/{es/iconfont.1792740941484.woff2 → dist/iconfont.1792977622800.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.1792740941484.ttf → es/iconfont.1792977622800.ttf} +0 -0
- /package/{lib/iconfont.1792740941484.woff → es/iconfont.1792977622800.woff} +0 -0
- /package/{lib/iconfont.1792740941484.woff2 → es/iconfont.1792977622800.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/body.js
CHANGED
|
@@ -1,107 +1,85 @@
|
|
|
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 body_exports = {};
|
|
30
|
+
__export(body_exports, {
|
|
31
|
+
default: () => body_default
|
|
5
32
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} = _ui.VxeUI;
|
|
21
|
-
const sourceType = 'table';
|
|
22
|
-
const renderType = 'body';
|
|
23
|
-
var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
24
|
-
name: 'VxeTableBody',
|
|
33
|
+
module.exports = __toCommonJS(body_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_util = require("./util");
|
|
39
|
+
var import_dom = require("../../ui/src/dom");
|
|
40
|
+
var import_utils = require("../../ui/src/utils");
|
|
41
|
+
var import_vn = require("../../ui/src/vn");
|
|
42
|
+
const { getI18n, renderer, renderEmptyElement } = import_ui.VxeUI;
|
|
43
|
+
const sourceType = "table";
|
|
44
|
+
const renderType = "body";
|
|
45
|
+
var body_default = (0, import_comp.defineVxeComponent)({
|
|
46
|
+
name: "VxeTableBody",
|
|
25
47
|
props: {
|
|
26
48
|
tableData: Array,
|
|
27
49
|
tableColumn: Array,
|
|
28
50
|
fixedColumn: Array,
|
|
29
51
|
fixedType: {
|
|
30
52
|
type: String,
|
|
31
|
-
default:
|
|
53
|
+
default: ""
|
|
32
54
|
}
|
|
33
55
|
},
|
|
34
56
|
setup(props) {
|
|
35
|
-
const $xeTable = (0,
|
|
36
|
-
const {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
computeCellOffsetWidth,
|
|
47
|
-
computeAreaOpts,
|
|
48
|
-
computeDefaultRowHeight,
|
|
49
|
-
computeEmptyOpts,
|
|
50
|
-
computeTooltipOpts,
|
|
51
|
-
computeRadioOpts,
|
|
52
|
-
computeExpandOpts,
|
|
53
|
-
computeTreeOpts,
|
|
54
|
-
computeCheckboxOpts,
|
|
55
|
-
computeCellOpts,
|
|
56
|
-
computeValidOpts,
|
|
57
|
-
computeRowOpts,
|
|
58
|
-
computeColumnOpts,
|
|
59
|
-
computeRowDragOpts,
|
|
60
|
-
computeResizableOpts,
|
|
61
|
-
computeVirtualXOpts,
|
|
62
|
-
computeVirtualYOpts,
|
|
63
|
-
computeIsBodyRenderOptimize,
|
|
64
|
-
computeRendererOpts
|
|
65
|
-
} = $xeTable.getComputeMaps();
|
|
66
|
-
const refElem = (0, _vue.ref)();
|
|
67
|
-
const refBodyScroll = (0, _vue.ref)();
|
|
68
|
-
const refBodyTable = (0, _vue.ref)();
|
|
69
|
-
const refBodyColgroup = (0, _vue.ref)();
|
|
70
|
-
const refBodyTBody = (0, _vue.ref)();
|
|
71
|
-
const refBodyXSpace = (0, _vue.ref)();
|
|
72
|
-
const refBodyYSpace = (0, _vue.ref)();
|
|
73
|
-
const refBodyEmptyBlock = (0, _vue.ref)();
|
|
74
|
-
// 滚动、拖动过程中不需要触发
|
|
57
|
+
const $xeTable = (0, import_vue.inject)("$xeTable", {});
|
|
58
|
+
const { xID, props: tableProps, context: tableContext, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
|
|
59
|
+
const { computeEditOpts, computeMouseOpts, computeCellOffsetWidth, computeAreaOpts, computeDefaultRowHeight, computeEmptyOpts, computeTooltipOpts, computeRadioOpts, computeExpandOpts, computeTreeOpts, computeCheckboxOpts, computeCellOpts, computeValidOpts, computeRowOpts, computeColumnOpts, computeRowDragOpts, computeResizableOpts, computeVirtualXOpts, computeVirtualYOpts, computeIsBodyRenderOptimize, computeRendererOpts } = $xeTable.getComputeMaps();
|
|
60
|
+
const refElem = (0, import_vue.ref)();
|
|
61
|
+
const refBodyScroll = (0, import_vue.ref)();
|
|
62
|
+
const refBodyTable = (0, import_vue.ref)();
|
|
63
|
+
const refBodyColgroup = (0, import_vue.ref)();
|
|
64
|
+
const refBodyTBody = (0, import_vue.ref)();
|
|
65
|
+
const refBodyXSpace = (0, import_vue.ref)();
|
|
66
|
+
const refBodyYSpace = (0, import_vue.ref)();
|
|
67
|
+
const refBodyEmptyBlock = (0, import_vue.ref)();
|
|
75
68
|
const isVMScrollProcess = () => {
|
|
76
|
-
const {
|
|
77
|
-
|
|
78
|
-
} =
|
|
79
|
-
const {
|
|
80
|
-
isDragResize
|
|
81
|
-
} = tableReactData;
|
|
82
|
-
const {
|
|
83
|
-
lastSTime
|
|
84
|
-
} = tableInternalData;
|
|
69
|
+
const { delayHover } = tableProps;
|
|
70
|
+
const { isDragResize } = tableReactData;
|
|
71
|
+
const { lastSTime } = tableInternalData;
|
|
85
72
|
return !!(isDragResize || lastSTime && Date.now() < lastSTime + delayHover);
|
|
86
73
|
};
|
|
87
74
|
const renderLine = (rowid, params, cellHeight) => {
|
|
88
|
-
const {
|
|
89
|
-
|
|
90
|
-
} = params;
|
|
91
|
-
const {
|
|
92
|
-
treeConfig
|
|
93
|
-
} = tableProps;
|
|
75
|
+
const { column } = params;
|
|
76
|
+
const { treeConfig } = tableProps;
|
|
94
77
|
const cellOpts = computeCellOpts.value;
|
|
95
78
|
const rowOpts = computeRowOpts.value;
|
|
96
79
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
97
80
|
const treeOpts = computeTreeOpts.value;
|
|
98
|
-
const {
|
|
99
|
-
|
|
100
|
-
treeNode
|
|
101
|
-
} = column;
|
|
102
|
-
const {
|
|
103
|
-
fullAllDataRowIdData
|
|
104
|
-
} = tableInternalData;
|
|
81
|
+
const { slots, treeNode } = column;
|
|
82
|
+
const { fullAllDataRowIdData } = tableInternalData;
|
|
105
83
|
if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
|
|
106
84
|
if (slots && slots.line) {
|
|
107
85
|
return $xeTable.callSlot(slots.line, params);
|
|
@@ -110,7 +88,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
110
88
|
let rLevel = 0;
|
|
111
89
|
let prevRow = null;
|
|
112
90
|
let parentRow = null;
|
|
113
|
-
let lineHeight =
|
|
91
|
+
let lineHeight = "";
|
|
114
92
|
if (rowRest) {
|
|
115
93
|
rLevel = rowRest.level;
|
|
116
94
|
prevRow = rowRest.items[rowRest.treeIndex - 1];
|
|
@@ -120,78 +98,36 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
120
98
|
return [];
|
|
121
99
|
}
|
|
122
100
|
if (prevRow) {
|
|
123
|
-
const prevRowRest = fullAllDataRowIdData[(0,
|
|
101
|
+
const prevRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, prevRow)] || {};
|
|
124
102
|
lineHeight = `${prevRowRest.lineHeight || 0}px`;
|
|
125
103
|
} else if (rLevel && parentRow) {
|
|
126
|
-
const parentRowRest = fullAllDataRowIdData[(0,
|
|
127
|
-
lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + (0,
|
|
104
|
+
const parentRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, parentRow)] || {};
|
|
105
|
+
lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + (0, import_util.getCellRestHeight)(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
|
|
128
106
|
}
|
|
129
|
-
return [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
107
|
+
return [
|
|
108
|
+
(0, import_vue.h)("div", {
|
|
109
|
+
key: "tl",
|
|
110
|
+
class: "vxe-tree--line-wrapper"
|
|
111
|
+
}, [
|
|
112
|
+
(0, import_vue.h)("div", {
|
|
113
|
+
class: "vxe-tree--line",
|
|
114
|
+
style: {
|
|
115
|
+
height: lineHeight,
|
|
116
|
+
bottom: `-${Math.floor(cellHeight / 2)}px`,
|
|
117
|
+
left: `calc(${rLevel * treeOpts.indent}px + 1em)`
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
])
|
|
121
|
+
];
|
|
140
122
|
}
|
|
141
123
|
return [];
|
|
142
124
|
};
|
|
143
|
-
/**
|
|
144
|
-
* 渲染列
|
|
145
|
-
*/
|
|
146
125
|
const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
|
|
147
126
|
const $xeGrid = $xeTable.xeGrid;
|
|
148
127
|
const $xeGantt = $xeTable.xeGantt;
|
|
149
|
-
const {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
showOverflow: allShowOverflow,
|
|
153
|
-
border,
|
|
154
|
-
height,
|
|
155
|
-
treeConfig,
|
|
156
|
-
cellClassName: allCellClassName,
|
|
157
|
-
cellStyle,
|
|
158
|
-
align: allAlign,
|
|
159
|
-
spanMethod,
|
|
160
|
-
mouseConfig,
|
|
161
|
-
editConfig,
|
|
162
|
-
editRules,
|
|
163
|
-
tooltipConfig,
|
|
164
|
-
padding: allPadding
|
|
165
|
-
} = tableProps;
|
|
166
|
-
const {
|
|
167
|
-
tableData,
|
|
168
|
-
tableColumn,
|
|
169
|
-
dragRow,
|
|
170
|
-
overflowX,
|
|
171
|
-
overflowY,
|
|
172
|
-
scrollXLoad,
|
|
173
|
-
scrollYLoad,
|
|
174
|
-
mergeBodyFlag,
|
|
175
|
-
calcCellHeightFlag,
|
|
176
|
-
resizeHeightFlag,
|
|
177
|
-
resizeWidthFlag,
|
|
178
|
-
editStore,
|
|
179
|
-
isAllOverflow,
|
|
180
|
-
validErrorMaps,
|
|
181
|
-
currColFlag
|
|
182
|
-
} = tableReactData;
|
|
183
|
-
const {
|
|
184
|
-
fullAllDataRowIdData,
|
|
185
|
-
fullColumnIdData,
|
|
186
|
-
mergeBodyCellMaps,
|
|
187
|
-
visibleColumn,
|
|
188
|
-
afterFullData,
|
|
189
|
-
mergeBodyList,
|
|
190
|
-
scrollXStore,
|
|
191
|
-
scrollYStore,
|
|
192
|
-
keepUpdateFieldMaps,
|
|
193
|
-
currentCol
|
|
194
|
-
} = tableInternalData;
|
|
128
|
+
const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
|
|
129
|
+
const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
|
|
130
|
+
const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
|
|
195
131
|
const cellOpts = computeCellOpts.value;
|
|
196
132
|
const validOpts = computeValidOpts.value;
|
|
197
133
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
@@ -201,84 +137,54 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
201
137
|
const virtualXOpts = computeVirtualXOpts.value;
|
|
202
138
|
const virtualYOpts = computeVirtualYOpts.value;
|
|
203
139
|
const rendererOpts = computeRendererOpts.value;
|
|
204
|
-
const {
|
|
205
|
-
isAllColumnDrag,
|
|
206
|
-
isAllRowDrag
|
|
207
|
-
} = resizableOpts;
|
|
140
|
+
const { isAllColumnDrag, isAllRowDrag } = resizableOpts;
|
|
208
141
|
const rowOpts = computeRowOpts.value;
|
|
209
142
|
const rowDragOpts = computeRowDragOpts.value;
|
|
210
143
|
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
211
144
|
const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0;
|
|
212
|
-
const {
|
|
213
|
-
disabledMethod: dragDisabledMethod,
|
|
214
|
-
isCrossDrag,
|
|
215
|
-
isPeerDrag
|
|
216
|
-
} = rowDragOpts;
|
|
145
|
+
const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = rowDragOpts;
|
|
217
146
|
const columnOpts = computeColumnOpts.value;
|
|
218
147
|
const mouseOpts = computeMouseOpts.value;
|
|
219
148
|
const areaOpts = computeAreaOpts.value;
|
|
220
149
|
const cellOffsetWidth = computeCellOffsetWidth.value;
|
|
221
|
-
const {
|
|
222
|
-
|
|
223
|
-
} =
|
|
224
|
-
const {
|
|
225
|
-
field,
|
|
226
|
-
type,
|
|
227
|
-
cellRender,
|
|
228
|
-
editRender,
|
|
229
|
-
align,
|
|
230
|
-
showOverflow,
|
|
231
|
-
className,
|
|
232
|
-
treeNode,
|
|
233
|
-
rowResize,
|
|
234
|
-
padding,
|
|
235
|
-
verticalAlign,
|
|
236
|
-
slots
|
|
237
|
-
} = column;
|
|
238
|
-
const {
|
|
239
|
-
verticalAlign: allVerticalAlign,
|
|
240
|
-
minHeight,
|
|
241
|
-
maxHeight
|
|
242
|
-
} = cellOpts;
|
|
243
|
-
const {
|
|
244
|
-
actived
|
|
245
|
-
} = editStore;
|
|
150
|
+
const { selectCellToRow } = areaOpts;
|
|
151
|
+
const { field, type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column;
|
|
152
|
+
const { verticalAlign: allVerticalAlign, minHeight, maxHeight } = cellOpts;
|
|
153
|
+
const { actived } = editStore;
|
|
246
154
|
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
247
155
|
const colid = column.id;
|
|
248
156
|
const colRest = fullColumnIdData[colid] || {};
|
|
249
157
|
const renderOpts = editRender || cellRender;
|
|
250
158
|
const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
|
|
251
159
|
const compCellClassName = compConf ? compConf.tableCellClassName || compConf.cellClassName : null;
|
|
252
|
-
const compCellStyle = compConf ? compConf.tableCellStyle || compConf.cellStyle :
|
|
160
|
+
const compCellStyle = compConf ? compConf.tableCellStyle || compConf.cellStyle : "";
|
|
253
161
|
const showAllTip = tooltipOpts.showAll;
|
|
254
162
|
const columnIndex = colRest.index;
|
|
255
163
|
const _columnIndex = colRest._index;
|
|
256
|
-
const isEdit = (0,
|
|
164
|
+
const isEdit = (0, import_utils.isEnableConf)(editRender);
|
|
257
165
|
const resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0;
|
|
258
166
|
let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
|
|
259
|
-
const cellPadding = (0,
|
|
167
|
+
const cellPadding = (0, import_utils.getDefaultConfig)(padding, allPadding === null ? cellOpts.padding : allPadding);
|
|
260
168
|
const isAllCellPadding = cellPadding === true;
|
|
261
169
|
const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
|
|
262
170
|
const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
|
|
263
171
|
const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
|
|
264
172
|
const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
|
|
265
|
-
const cellOverflow = (0,
|
|
266
|
-
const showEllipsis = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) ===
|
|
267
|
-
const showTitle = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) ===
|
|
268
|
-
const showTooltip = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) ===
|
|
173
|
+
const cellOverflow = (0, import_utils.getDefaultConfig)(showOverflow, allShowOverflow);
|
|
174
|
+
const showEllipsis = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "ellipsis";
|
|
175
|
+
const showTitle = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "title";
|
|
176
|
+
const showTooltip = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "tooltip";
|
|
269
177
|
const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis;
|
|
270
|
-
const showResizable =
|
|
178
|
+
const showResizable = import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
|
|
271
179
|
const isCsHeight = !!customCellHeight;
|
|
272
180
|
const isRsHeight = resizeHeight > 0;
|
|
273
181
|
let isDirty;
|
|
274
182
|
const tdOns = {};
|
|
275
|
-
const cellAlign = align || (compConf ? compConf.tableCellAlign :
|
|
276
|
-
const cellVerticalAlign =
|
|
183
|
+
const cellAlign = align || (compConf ? compConf.tableCellAlign : "") || allAlign;
|
|
184
|
+
const cellVerticalAlign = import_xe_utils.default.eqNull(verticalAlign) ? allVerticalAlign : verticalAlign;
|
|
277
185
|
const errorValidItem = validErrorMaps[`${rowid}:${colid}`];
|
|
278
|
-
const showValidTip = editRules && validOpts.showErrorMessage && (validOpts.message ===
|
|
279
|
-
const tdAttrs = {
|
|
280
|
-
colid
|
|
281
|
-
};
|
|
186
|
+
const showValidTip = editRules && validOpts.showErrorMessage && (validOpts.message === "default" ? height || tableData.length > 1 : validOpts.message === "inline");
|
|
187
|
+
const tdAttrs = { colid };
|
|
282
188
|
const cellParams = {
|
|
283
189
|
$table: $xeTable,
|
|
284
190
|
$grid: $xeGrid,
|
|
@@ -306,69 +212,54 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
306
212
|
let isRowDragCell = false;
|
|
307
213
|
let isDisabledDrag = false;
|
|
308
214
|
if (rowOpts.drag) {
|
|
309
|
-
isRowDragCell = rowDragOpts.trigger ===
|
|
215
|
+
isRowDragCell = rowDragOpts.trigger === "row" || column.dragSort && rowDragOpts.trigger === "cell";
|
|
310
216
|
}
|
|
311
217
|
if (isRowDragCell) {
|
|
312
218
|
isDisabledDrag = !!(dragDisabledMethod && dragDisabledMethod(cellParams));
|
|
313
219
|
}
|
|
314
|
-
// hover 进入事件
|
|
315
220
|
if (showTitle || showTooltip || showAllTip || tooltipConfig) {
|
|
316
|
-
tdOns.onMouseover = evnt => {
|
|
221
|
+
tdOns.onMouseover = (evnt) => {
|
|
317
222
|
if (!isVMScrollProcess()) {
|
|
318
223
|
if (showTitle) {
|
|
319
|
-
(0,
|
|
224
|
+
(0, import_dom.updateCellTitle)(evnt.currentTarget, column);
|
|
320
225
|
} else if (showTooltip || showAllTip) {
|
|
321
|
-
// 如果配置了显示 tooltip
|
|
322
226
|
$xeTable.triggerBodyTooltipEvent(evnt, cellParams);
|
|
323
227
|
}
|
|
324
228
|
}
|
|
325
|
-
$xeTable.dispatchEvent(
|
|
326
|
-
cell: evnt.currentTarget
|
|
327
|
-
}, cellParams), evnt);
|
|
229
|
+
$xeTable.dispatchEvent("cell-mouseenter", Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
|
|
328
230
|
};
|
|
329
231
|
}
|
|
330
|
-
// hover 退出事件
|
|
331
232
|
if (showTooltip || showAllTip || tooltipConfig) {
|
|
332
|
-
tdOns.onMouseleave = evnt => {
|
|
233
|
+
tdOns.onMouseleave = (evnt) => {
|
|
333
234
|
if (!isVMScrollProcess()) {
|
|
334
235
|
if (showTooltip || showAllTip) {
|
|
335
236
|
$xeTable.handleTargetLeaveEvent(evnt);
|
|
336
237
|
}
|
|
337
238
|
}
|
|
338
|
-
$xeTable.dispatchEvent(
|
|
339
|
-
cell: evnt.currentTarget
|
|
340
|
-
}, cellParams), evnt);
|
|
239
|
+
$xeTable.dispatchEvent("cell-mouseleave", Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
|
|
341
240
|
};
|
|
342
241
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
tdOns.onMousedown = evnt => {
|
|
242
|
+
if (isRowDragCell || checkboxOpts.range || (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts)) {
|
|
243
|
+
tdOns.onMousedown = (evnt) => {
|
|
346
244
|
$xeTable.triggerCellMousedownEvent(evnt, cellParams);
|
|
347
245
|
};
|
|
348
246
|
}
|
|
349
|
-
// 拖拽列事件
|
|
350
247
|
if (isRowDragCell) {
|
|
351
248
|
tdOns.onMouseup = $xeTable.triggerCellMouseupEvent;
|
|
352
249
|
}
|
|
353
|
-
|
|
354
|
-
tdOns.onClick = evnt => {
|
|
250
|
+
tdOns.onClick = (evnt) => {
|
|
355
251
|
$xeTable.triggerCellClickEvent(evnt, cellParams);
|
|
356
252
|
};
|
|
357
|
-
|
|
358
|
-
tdOns.onDblclick = evnt => {
|
|
253
|
+
tdOns.onDblclick = (evnt) => {
|
|
359
254
|
$xeTable.triggerCellDblclickEvent(evnt, cellParams);
|
|
360
255
|
};
|
|
361
256
|
let isMergeCell = false;
|
|
362
257
|
let mergeColspan = 1;
|
|
363
258
|
let mergeRowspan = 1;
|
|
364
|
-
// 合并行或列
|
|
365
259
|
if (mergeBodyFlag && mergeBodyList.length) {
|
|
366
260
|
const spanRest = mergeBodyCellMaps[`${_rowIndex}:${_columnIndex}`];
|
|
367
261
|
if (spanRest) {
|
|
368
|
-
const {
|
|
369
|
-
rowspan,
|
|
370
|
-
colspan
|
|
371
|
-
} = spanRest;
|
|
262
|
+
const { rowspan, colspan } = spanRest;
|
|
372
263
|
if (!rowspan || !colspan) {
|
|
373
264
|
return renderEmptyElement($xeTable);
|
|
374
265
|
}
|
|
@@ -384,11 +275,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
384
275
|
}
|
|
385
276
|
}
|
|
386
277
|
} else if (spanMethod) {
|
|
387
|
-
|
|
388
|
-
const {
|
|
389
|
-
rowspan = 1,
|
|
390
|
-
colspan = 1
|
|
391
|
-
} = spanMethod(cellParams) || {};
|
|
278
|
+
const { rowspan = 1, colspan = 1 } = spanMethod(cellParams) || {};
|
|
392
279
|
if (!rowspan || !colspan) {
|
|
393
280
|
return renderEmptyElement($xeTable);
|
|
394
281
|
}
|
|
@@ -403,23 +290,21 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
403
290
|
tdAttrs.colspan = colspan;
|
|
404
291
|
}
|
|
405
292
|
}
|
|
406
|
-
// 如果被合并不可隐藏
|
|
407
293
|
if (fixedHiddenColumn && isMergeCell) {
|
|
408
294
|
if (tdAttrs.colspan > 1 || tdAttrs.rowspan > 1) {
|
|
409
295
|
fixedHiddenColumn = false;
|
|
410
296
|
}
|
|
411
297
|
}
|
|
412
|
-
// 如果编辑列开启显示状态
|
|
413
298
|
if (!fixedHiddenColumn && editConfig && (editOpts.showStatus || editOpts.showUpdateStatus) && keepUpdateFieldMaps[field]) {
|
|
414
299
|
isDirty = $xeTable.isUpdateByRow(row, field);
|
|
415
300
|
}
|
|
416
301
|
const isVNAutoHeight = !hasEllipsis && (scrollYLoad || scrollXLoad);
|
|
417
|
-
let cellHeight = (0,
|
|
302
|
+
let cellHeight = (0, import_util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
418
303
|
const isLastColumn = $columnIndex === columns.length - 1;
|
|
419
|
-
const isAutoCellWidth = !column.resizeWidth && (column.minWidth ===
|
|
304
|
+
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
|
|
420
305
|
let isVNPreEmptyStatus = false;
|
|
421
306
|
if (!isMergeCell) {
|
|
422
|
-
if (!dragRow || (0,
|
|
307
|
+
if (!dragRow || (0, import_util.getRowid)($xeTable, dragRow) !== rowid) {
|
|
423
308
|
if (overflowY && scrollYLoad && tableData.length > 16 && !treeConfig && !virtualYOpts.immediate && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
|
|
424
309
|
isVNPreEmptyStatus = true;
|
|
425
310
|
} else if (overflowX && scrollXLoad && tableColumn.length > 10 && !virtualXOpts.immediate && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
|
|
@@ -430,15 +315,15 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
430
315
|
if (mergeRowspan > 1) {
|
|
431
316
|
const mEndRow = afterFullData[_rowIndex + mergeRowspan - 1];
|
|
432
317
|
if (mEndRow) {
|
|
433
|
-
const meRowRest = fullAllDataRowIdData[(0,
|
|
318
|
+
const meRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, mEndRow)];
|
|
434
319
|
if (meRowRest) {
|
|
435
|
-
cellHeight += meRowRest.oTop + (0,
|
|
320
|
+
cellHeight += meRowRest.oTop + (0, import_util.getCellRestHeight)(meRowRest, cellOpts, rowOpts, defaultRowHeight) - rowRest.oTop - (0, import_util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
|
|
436
321
|
}
|
|
437
322
|
}
|
|
438
323
|
}
|
|
439
324
|
const tcStyle = {};
|
|
440
325
|
if (maxHeight) {
|
|
441
|
-
tcStyle.maxHeight = maxHeight +
|
|
326
|
+
tcStyle.maxHeight = maxHeight + "px";
|
|
442
327
|
}
|
|
443
328
|
if (hasEllipsis && resizeWidthFlag) {
|
|
444
329
|
let mergeColWidth = 0;
|
|
@@ -450,169 +335,164 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
450
335
|
}
|
|
451
336
|
}
|
|
452
337
|
}
|
|
453
|
-
tcStyle.width = column.renderWidth + mergeColWidth - cellOffsetWidth +
|
|
338
|
+
tcStyle.width = column.renderWidth + mergeColWidth - cellOffsetWidth + "px";
|
|
454
339
|
}
|
|
455
340
|
if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
456
|
-
tcStyle.height = cellHeight +
|
|
341
|
+
tcStyle.height = cellHeight + "px";
|
|
457
342
|
} else {
|
|
458
|
-
tcStyle.minHeight = cellHeight +
|
|
343
|
+
tcStyle.minHeight = cellHeight + "px";
|
|
459
344
|
}
|
|
460
345
|
if (minHeight) {
|
|
461
|
-
tcStyle.minHeight = minHeight +
|
|
346
|
+
tcStyle.minHeight = minHeight + "px";
|
|
462
347
|
}
|
|
463
348
|
const tdVNs = [];
|
|
464
349
|
if (fixedHiddenColumn && isAllOverflow) {
|
|
465
|
-
tdVNs.push(
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
350
|
+
tdVNs.push(
|
|
351
|
+
(0, import_vue.h)("div", {
|
|
352
|
+
key: "tc",
|
|
353
|
+
class: ["vxe-cell", {
|
|
354
|
+
"c--title": showTitle,
|
|
355
|
+
"c--tooltip": showTooltip,
|
|
356
|
+
"c--ellipsis": showEllipsis
|
|
357
|
+
}],
|
|
358
|
+
style: tcStyle
|
|
359
|
+
})
|
|
360
|
+
);
|
|
474
361
|
} else {
|
|
475
|
-
// 渲染单元格
|
|
476
362
|
if (treeConfig) {
|
|
477
363
|
tdVNs.push(...renderLine(rowid, cellParams, cellHeight));
|
|
478
364
|
}
|
|
479
365
|
const clVNs = [];
|
|
480
366
|
if (!isVNPreEmptyStatus) {
|
|
481
|
-
clVNs.push(
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
367
|
+
clVNs.push(
|
|
368
|
+
(0, import_vue.h)("div", {
|
|
369
|
+
colid,
|
|
370
|
+
rowid,
|
|
371
|
+
class: "vxe-cell--wrapper vxe-body-cell--wrapper"
|
|
372
|
+
}, column.renderCell(cellParams))
|
|
373
|
+
);
|
|
486
374
|
}
|
|
487
|
-
tdVNs.push(
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
375
|
+
tdVNs.push(
|
|
376
|
+
(0, import_vue.h)("div", {
|
|
377
|
+
key: "tc",
|
|
378
|
+
class: ["vxe-cell", {
|
|
379
|
+
"c--title": showTitle,
|
|
380
|
+
"c--tooltip": showTooltip,
|
|
381
|
+
"c--ellipsis": showEllipsis
|
|
382
|
+
}],
|
|
383
|
+
style: tcStyle,
|
|
384
|
+
title: showTitle ? $xeTable.getCellLabel(row, column) : null
|
|
385
|
+
}, clVNs)
|
|
386
|
+
);
|
|
497
387
|
if (showValidTip && errorValidItem) {
|
|
498
388
|
const errRule = errorValidItem.rule;
|
|
499
389
|
const validSlot = slots ? slots.valid : null;
|
|
500
|
-
const validParams =
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
390
|
+
const validParams = { ...cellParams, ...errorValidItem, rule: errorValidItem };
|
|
391
|
+
tdVNs.push(
|
|
392
|
+
(0, import_vue.h)("div", {
|
|
393
|
+
key: "tcv",
|
|
394
|
+
class: ["vxe-cell--valid-error-tip", (0, import_dom.getPropClass)(validOpts.className, validParams)],
|
|
395
|
+
style: errRule && errRule.maxWidth ? {
|
|
396
|
+
width: errRule.maxWidth + "px"
|
|
397
|
+
} : null
|
|
398
|
+
}, [
|
|
399
|
+
(0, import_vue.h)("div", {
|
|
400
|
+
class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || "normal"}`
|
|
401
|
+
}, [
|
|
402
|
+
validSlot ? $xeTable.callSlot(validSlot, validParams) : [
|
|
403
|
+
(0, import_vue.h)("span", {
|
|
404
|
+
class: "vxe-cell--valid-error-msg"
|
|
405
|
+
}, errorValidItem.content)
|
|
406
|
+
]
|
|
407
|
+
])
|
|
408
|
+
])
|
|
409
|
+
);
|
|
514
410
|
}
|
|
515
411
|
}
|
|
516
412
|
let showAreaRowStatus = false;
|
|
517
|
-
if ((0,
|
|
413
|
+
if ((0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area && !_columnIndex && selectCellToRow) {
|
|
518
414
|
showAreaRowStatus = true;
|
|
519
415
|
}
|
|
520
416
|
if (!fixedHiddenColumn && showResizable && isAllColumnDrag) {
|
|
521
|
-
tdVNs.push(
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
417
|
+
tdVNs.push(
|
|
418
|
+
(0, import_vue.h)("div", {
|
|
419
|
+
key: "tcc",
|
|
420
|
+
class: ["vxe-cell--col-resizable", {
|
|
421
|
+
"is--line": !border || border === "none"
|
|
422
|
+
}],
|
|
423
|
+
onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
424
|
+
onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
425
|
+
})
|
|
426
|
+
);
|
|
529
427
|
}
|
|
530
428
|
if ((rowResize || isAllRowDrag) && rowOpts.resizable) {
|
|
531
|
-
tdVNs.push(
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
429
|
+
tdVNs.push(
|
|
430
|
+
(0, import_vue.h)("div", {
|
|
431
|
+
key: "tcr",
|
|
432
|
+
class: "vxe-cell--row-resizable",
|
|
433
|
+
onMousedown: (evnt) => $xeTable.handleRowResizeMousedownEvent(evnt, cellParams),
|
|
434
|
+
onDblclick: (evnt) => $xeTable.handleRowResizeDblclickEvent(evnt, cellParams)
|
|
435
|
+
})
|
|
436
|
+
);
|
|
537
437
|
}
|
|
538
|
-
return (0,
|
|
539
|
-
class: [
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
438
|
+
return (0, import_vue.h)("td", {
|
|
439
|
+
class: [
|
|
440
|
+
"vxe-table--column vxe-body--column",
|
|
441
|
+
colid,
|
|
442
|
+
cellVerticalAlign ? `col--vertical-${cellVerticalAlign}` : "",
|
|
443
|
+
cellAlign ? `col--${cellAlign}` : "",
|
|
444
|
+
type ? `col--${type}` : "",
|
|
445
|
+
{
|
|
446
|
+
"col--last": isLastColumn,
|
|
447
|
+
"col--tree-node": treeNode,
|
|
448
|
+
"col--edit": isEdit,
|
|
449
|
+
"col--ellipsis": hasEllipsis,
|
|
450
|
+
"col--cs-height": isCsHeight,
|
|
451
|
+
"col--rs-height": isRsHeight,
|
|
452
|
+
"col--to-row": showAreaRowStatus,
|
|
453
|
+
"col--auto-height": isVNAutoHeight,
|
|
454
|
+
"col--max-height": maxHeight,
|
|
455
|
+
"fixed--width": !isAutoCellWidth,
|
|
456
|
+
"fixed--hidden": fixedHiddenColumn,
|
|
457
|
+
"is--pg-top": isCellPaddingTop,
|
|
458
|
+
"is--pg-bottom": isCellPaddingBottom,
|
|
459
|
+
"is--pg-left": isCellPaddingLeft,
|
|
460
|
+
"is--pg-right": isCellPaddingRight,
|
|
461
|
+
"is--progress": fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
|
|
462
|
+
"is--drag-cell": isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
|
|
463
|
+
"is--drag-disabled": isDisabledDrag,
|
|
464
|
+
"col--dirty": isDirty,
|
|
465
|
+
"col--active": editConfig && isEdit && (actived.row === row && (actived.column === column || editOpts.mode === "row")),
|
|
466
|
+
"col--valid-error": !!errorValidItem,
|
|
467
|
+
"show--valid-bg": errorValidItem && validOpts.showErrorBackground,
|
|
468
|
+
"col--current": currColFlag && currentCol === column
|
|
469
|
+
},
|
|
470
|
+
(0, import_dom.getPropClass)(compCellClassName, cellParams),
|
|
471
|
+
(0, import_dom.getPropClass)(className, cellParams),
|
|
472
|
+
(0, import_dom.getPropClass)(allCellClassName, cellParams)
|
|
473
|
+
],
|
|
474
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
|
|
475
|
+
...tdAttrs,
|
|
476
|
+
style: Object.assign({}, import_xe_utils.default.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, import_xe_utils.default.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
|
|
477
|
+
...tdOns
|
|
478
|
+
}, isOptimizeMode && fixedHiddenColumn ? [] : tdVNs);
|
|
568
479
|
};
|
|
569
480
|
const renderRows = (fixedType, isOptimizeMode, tableData, tableColumn) => {
|
|
570
481
|
const $xeGrid = $xeTable.xeGrid;
|
|
571
482
|
const $xeGantt = $xeTable.xeGantt;
|
|
572
|
-
const {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
highlightHoverRow,
|
|
576
|
-
rowClassName,
|
|
577
|
-
rowStyle,
|
|
578
|
-
editConfig,
|
|
579
|
-
treeConfig
|
|
580
|
-
} = tableProps;
|
|
581
|
-
const {
|
|
582
|
-
hasFixedColumn,
|
|
583
|
-
treeExpandedFlag,
|
|
584
|
-
scrollYLoad,
|
|
585
|
-
isAllOverflow,
|
|
586
|
-
rowExpandedFlag,
|
|
587
|
-
expandColumn,
|
|
588
|
-
selectRadioRow,
|
|
589
|
-
pendingRowFlag,
|
|
590
|
-
rowExpandHeightFlag,
|
|
591
|
-
isRowGroupStatus
|
|
592
|
-
} = tableReactData;
|
|
593
|
-
const {
|
|
594
|
-
fullAllDataRowIdData,
|
|
595
|
-
fullColumnIdData,
|
|
596
|
-
treeExpandedMaps,
|
|
597
|
-
pendingRowMaps,
|
|
598
|
-
rowExpandedMaps,
|
|
599
|
-
currentRow
|
|
600
|
-
} = tableInternalData;
|
|
483
|
+
const { stripe, rowKey, highlightHoverRow, rowClassName, rowStyle, editConfig, treeConfig } = tableProps;
|
|
484
|
+
const { hasFixedColumn, treeExpandedFlag, scrollYLoad, isAllOverflow, rowExpandedFlag, expandColumn, selectRadioRow, pendingRowFlag, rowExpandHeightFlag, isRowGroupStatus } = tableReactData;
|
|
485
|
+
const { fullAllDataRowIdData, fullColumnIdData, treeExpandedMaps, pendingRowMaps, rowExpandedMaps, currentRow } = tableInternalData;
|
|
601
486
|
const checkboxOpts = computeCheckboxOpts.value;
|
|
602
487
|
const radioOpts = computeRadioOpts.value;
|
|
603
488
|
const treeOpts = computeTreeOpts.value;
|
|
604
489
|
const editOpts = computeEditOpts.value;
|
|
605
490
|
const rowOpts = computeRowOpts.value;
|
|
606
491
|
const columnOpts = computeColumnOpts.value;
|
|
607
|
-
const {
|
|
608
|
-
transform,
|
|
609
|
-
seqMode
|
|
610
|
-
} = treeOpts;
|
|
492
|
+
const { transform, seqMode } = treeOpts;
|
|
611
493
|
const childrenField = treeOpts.children || treeOpts.childrenField;
|
|
612
494
|
const rows = [];
|
|
613
|
-
const {
|
|
614
|
-
handleGetRowId
|
|
615
|
-
} = (0, _util.createHandleGetRowId)($xeTable);
|
|
495
|
+
const { handleGetRowId } = (0, import_util.createHandleGetRowId)($xeTable);
|
|
616
496
|
const isDeepRow = treeConfig || isRowGroupStatus;
|
|
617
497
|
tableData.forEach((row, $rowIndex) => {
|
|
618
498
|
const rowid = handleGetRowId(row);
|
|
@@ -623,16 +503,12 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
623
503
|
let _rowIndex = -1;
|
|
624
504
|
const hasRowGroupAggregate = isRowGroupStatus && row.isAggregate;
|
|
625
505
|
const trOn = {};
|
|
626
|
-
// 当前行事件
|
|
627
506
|
if (rowOpts.isHover || highlightHoverRow) {
|
|
628
|
-
trOn.onMouseover = evnt => {
|
|
507
|
+
trOn.onMouseover = (evnt) => {
|
|
629
508
|
if (isVMScrollProcess()) {
|
|
630
509
|
return;
|
|
631
510
|
}
|
|
632
|
-
$xeTable.triggerHoverEvent(evnt, {
|
|
633
|
-
row,
|
|
634
|
-
rowIndex
|
|
635
|
-
});
|
|
511
|
+
$xeTable.triggerHoverEvent(evnt, { row, rowIndex });
|
|
636
512
|
};
|
|
637
513
|
trOn.onMouseleave = () => {
|
|
638
514
|
if (isVMScrollProcess()) {
|
|
@@ -646,9 +522,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
646
522
|
_rowIndex = rowRest._index;
|
|
647
523
|
rowLevel = rowRest.level;
|
|
648
524
|
seq = rowRest.seq;
|
|
649
|
-
if (hasRowGroupAggregate || treeConfig && transform && seqMode ===
|
|
525
|
+
if (hasRowGroupAggregate || treeConfig && transform && seqMode === "increasing") {
|
|
650
526
|
seq = rowRest._index + 1;
|
|
651
|
-
} else if (treeConfig && seqMode ===
|
|
527
|
+
} else if (treeConfig && seqMode === "fixed") {
|
|
652
528
|
seq = rowRest._tIndex + 1;
|
|
653
529
|
}
|
|
654
530
|
}
|
|
@@ -664,9 +540,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
664
540
|
$rowIndex,
|
|
665
541
|
_rowIndex
|
|
666
542
|
};
|
|
667
|
-
// 行是否被展开
|
|
668
543
|
const isExpandRow = expandColumn && !!rowExpandedFlag && !!rowExpandedMaps[rowid];
|
|
669
|
-
// 树节点是否被展开
|
|
670
544
|
let isExpandTree = false;
|
|
671
545
|
let rowChildren = [];
|
|
672
546
|
let isNewRow = false;
|
|
@@ -677,42 +551,44 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
677
551
|
rowChildren = row[childrenField];
|
|
678
552
|
isExpandTree = !!treeExpandedFlag && rowChildren && rowChildren.length > 0 && !!treeExpandedMaps[rowid];
|
|
679
553
|
}
|
|
680
|
-
// 拖拽行事件
|
|
681
554
|
if (rowOpts.drag && !isRowGroupStatus && (!treeConfig || transform)) {
|
|
682
555
|
trOn.onDragstart = $xeTable.handleRowDragDragstartEvent;
|
|
683
556
|
trOn.onDragend = $xeTable.handleRowDragDragendEvent;
|
|
684
557
|
trOn.onDragover = $xeTable.handleRowDragDragoverEvent;
|
|
685
558
|
}
|
|
686
|
-
const trClass = [
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
559
|
+
const trClass = [
|
|
560
|
+
"vxe-body--row",
|
|
561
|
+
isDeepRow ? `row--level-${rowLevel}` : "",
|
|
562
|
+
{
|
|
563
|
+
"row--stripe": stripe && (_rowIndex + 1) % 2 === 0,
|
|
564
|
+
"is--new": isNewRow,
|
|
565
|
+
"is--expand-row": isExpandRow,
|
|
566
|
+
"is--expand-tree": isExpandTree,
|
|
567
|
+
"row--new": isNewRow && (editOpts.showStatus || editOpts.showInsertStatus),
|
|
568
|
+
"row--radio": radioOpts.highlight && $xeTable.eqRow(selectRadioRow, row),
|
|
569
|
+
"row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
|
|
570
|
+
"row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
|
|
571
|
+
"row--group": hasRowGroupAggregate,
|
|
572
|
+
"row--current": currentRow && rowid === (0, import_util.getRowid)($xeTable, currentRow)
|
|
573
|
+
},
|
|
574
|
+
(0, import_dom.getPropClass)(rowClassName, params)
|
|
575
|
+
];
|
|
698
576
|
const tdVNs = tableColumn.map((column, $columnIndex) => {
|
|
699
577
|
return renderTdColumn(seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
|
|
700
578
|
});
|
|
701
|
-
rows.push(
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
579
|
+
rows.push(
|
|
580
|
+
(0, import_vue.h)("tr", {
|
|
581
|
+
class: trClass,
|
|
582
|
+
rowid,
|
|
583
|
+
style: rowStyle ? import_xe_utils.default.isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
|
|
584
|
+
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || isRowGroupStatus || treeConfig ? rowid : $rowIndex,
|
|
585
|
+
...trOn
|
|
586
|
+
}, tdVNs)
|
|
587
|
+
);
|
|
708
588
|
if (isExpandRow) {
|
|
709
589
|
const expandOpts = computeExpandOpts.value;
|
|
710
|
-
const {
|
|
711
|
-
|
|
712
|
-
padding,
|
|
713
|
-
mode: expandMode
|
|
714
|
-
} = expandOpts;
|
|
715
|
-
if (expandMode === 'fixed') {
|
|
590
|
+
const { height: expandHeight, padding, mode: expandMode } = expandOpts;
|
|
591
|
+
if (expandMode === "fixed") {
|
|
716
592
|
const currExpHeight = rowRest.expandHeight;
|
|
717
593
|
let expHeight = 0;
|
|
718
594
|
if (rowExpandHeightFlag) {
|
|
@@ -720,17 +596,21 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
720
596
|
expHeight = (currExpHeight || expandHeight || 0) + 1;
|
|
721
597
|
}
|
|
722
598
|
}
|
|
723
|
-
rows.push(
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
599
|
+
rows.push(
|
|
600
|
+
(0, import_vue.h)("tr", {
|
|
601
|
+
class: "vxe-body--row-expanded-place",
|
|
602
|
+
key: `expand_${rowid}`,
|
|
603
|
+
rowid
|
|
604
|
+
}, [
|
|
605
|
+
(0, import_vue.h)("td", {
|
|
606
|
+
class: "vxe-body--row-expanded-place-column",
|
|
607
|
+
colspan: tableColumn.length,
|
|
608
|
+
style: {
|
|
609
|
+
height: `${expHeight}px`
|
|
610
|
+
}
|
|
611
|
+
})
|
|
612
|
+
])
|
|
613
|
+
);
|
|
734
614
|
} else {
|
|
735
615
|
const cellStyle = {};
|
|
736
616
|
if (expandHeight) {
|
|
@@ -739,12 +619,10 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
739
619
|
if (treeConfig) {
|
|
740
620
|
cellStyle.paddingLeft = `${rowLevel * treeOpts.indent + 30}px`;
|
|
741
621
|
}
|
|
742
|
-
const {
|
|
743
|
-
showOverflow
|
|
744
|
-
} = expandColumn || {};
|
|
622
|
+
const { showOverflow } = expandColumn || {};
|
|
745
623
|
const colid = expandColumn.id;
|
|
746
624
|
const colRest = fullColumnIdData[colid] || {};
|
|
747
|
-
const hasEllipsis =
|
|
625
|
+
const hasEllipsis = import_xe_utils.default.eqNull(showOverflow) ? isAllOverflow : showOverflow;
|
|
748
626
|
let columnIndex = -1;
|
|
749
627
|
let $columnIndex = -1;
|
|
750
628
|
let _columnIndex = -1;
|
|
@@ -777,41 +655,44 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
777
655
|
data: [],
|
|
778
656
|
items: []
|
|
779
657
|
};
|
|
780
|
-
rows.push(
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
658
|
+
rows.push(
|
|
659
|
+
(0, import_vue.h)("tr", {
|
|
660
|
+
class: ["vxe-body--expanded-row", {
|
|
661
|
+
"is--padding": padding
|
|
662
|
+
}],
|
|
663
|
+
key: `expand_${rowid}`
|
|
664
|
+
}, [
|
|
665
|
+
(0, import_vue.h)("td", {
|
|
666
|
+
class: ["vxe-body--expanded-column", {
|
|
667
|
+
"fixed--hidden": fixedType && !hasFixedColumn,
|
|
668
|
+
"col--ellipsis": hasEllipsis
|
|
669
|
+
}],
|
|
670
|
+
colspan: tableColumn.length
|
|
671
|
+
}, [
|
|
672
|
+
(0, import_vue.h)("div", {
|
|
673
|
+
class: ["vxe-body--expanded-cell", {
|
|
674
|
+
"is--ellipsis": expandHeight
|
|
675
|
+
}],
|
|
676
|
+
style: cellStyle
|
|
677
|
+
}, [
|
|
678
|
+
expandColumn.renderData(expandParams)
|
|
679
|
+
])
|
|
680
|
+
])
|
|
681
|
+
])
|
|
682
|
+
);
|
|
797
683
|
}
|
|
798
684
|
}
|
|
799
|
-
// 如果是树形表格
|
|
800
685
|
if (isExpandTree) {
|
|
801
686
|
rows.push(...renderRows(fixedType, isOptimizeMode, rowChildren, tableColumn));
|
|
802
687
|
}
|
|
803
688
|
});
|
|
804
689
|
return rows;
|
|
805
690
|
};
|
|
806
|
-
(0,
|
|
807
|
-
(0,
|
|
808
|
-
const {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
const {
|
|
812
|
-
elemStore
|
|
813
|
-
} = tableInternalData;
|
|
814
|
-
const prefix = `${fixedType || 'main'}-body-`;
|
|
691
|
+
(0, import_vue.onMounted)(() => {
|
|
692
|
+
(0, import_vue.nextTick)(() => {
|
|
693
|
+
const { fixedType } = props;
|
|
694
|
+
const { elemStore } = tableInternalData;
|
|
695
|
+
const prefix = `${fixedType || "main"}-body-`;
|
|
815
696
|
elemStore[`${prefix}wrapper`] = refElem;
|
|
816
697
|
elemStore[`${prefix}scroll`] = refBodyScroll;
|
|
817
698
|
elemStore[`${prefix}table`] = refBodyTable;
|
|
@@ -822,14 +703,10 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
822
703
|
elemStore[`${prefix}emptyBlock`] = refBodyEmptyBlock;
|
|
823
704
|
});
|
|
824
705
|
});
|
|
825
|
-
(0,
|
|
826
|
-
const {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
const {
|
|
830
|
-
elemStore
|
|
831
|
-
} = tableInternalData;
|
|
832
|
-
const prefix = `${fixedType || 'main'}-body-`;
|
|
706
|
+
(0, import_vue.onUnmounted)(() => {
|
|
707
|
+
const { fixedType } = props;
|
|
708
|
+
const { elemStore } = tableInternalData;
|
|
709
|
+
const prefix = `${fixedType || "main"}-body-`;
|
|
833
710
|
elemStore[`${prefix}wrapper`] = null;
|
|
834
711
|
elemStore[`${prefix}scroll`] = null;
|
|
835
712
|
elemStore[`${prefix}table`] = null;
|
|
@@ -840,34 +717,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
840
717
|
elemStore[`${prefix}emptyBlock`] = null;
|
|
841
718
|
});
|
|
842
719
|
const renderVN = () => {
|
|
843
|
-
const {
|
|
844
|
-
slots
|
|
845
|
-
} = tableContext;
|
|
720
|
+
const { slots } = tableContext;
|
|
846
721
|
const $xeGrid = $xeTable.xeGrid;
|
|
847
722
|
const $xeGantt = $xeTable.xeGantt;
|
|
848
|
-
const {
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
} = props;
|
|
853
|
-
const {
|
|
854
|
-
mouseConfig
|
|
855
|
-
} = tableProps;
|
|
856
|
-
const {
|
|
857
|
-
isGroup,
|
|
858
|
-
tableData,
|
|
859
|
-
isColLoading,
|
|
860
|
-
overflowX,
|
|
861
|
-
scrollXLoad,
|
|
862
|
-
scrollYLoad,
|
|
863
|
-
dragRow,
|
|
864
|
-
dragCol
|
|
865
|
-
} = tableReactData;
|
|
866
|
-
const {
|
|
867
|
-
visibleColumn,
|
|
868
|
-
fullAllDataRowIdData,
|
|
869
|
-
fullColumnIdData
|
|
870
|
-
} = tableInternalData;
|
|
723
|
+
const { fixedColumn, fixedType, tableColumn } = props;
|
|
724
|
+
const { mouseConfig } = tableProps;
|
|
725
|
+
const { isGroup, tableData, isColLoading, overflowX, scrollXLoad, scrollYLoad, dragRow, dragCol } = tableReactData;
|
|
726
|
+
const { visibleColumn, fullAllDataRowIdData, fullColumnIdData } = tableInternalData;
|
|
871
727
|
const emptyOpts = computeEmptyOpts.value;
|
|
872
728
|
const mouseOpts = computeMouseOpts.value;
|
|
873
729
|
const isBodyRenderOptimize = computeIsBodyRenderOptimize.value;
|
|
@@ -882,16 +738,15 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
882
738
|
renderColumnList = fixedColumn || [];
|
|
883
739
|
}
|
|
884
740
|
}
|
|
885
|
-
// 行拖拽
|
|
886
741
|
if (scrollYLoad && dragRow) {
|
|
887
742
|
if (renderDataList.length > 2) {
|
|
888
|
-
const dRowRest = fullAllDataRowIdData[(0,
|
|
743
|
+
const dRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, dragRow)];
|
|
889
744
|
if (dRowRest) {
|
|
890
745
|
const drIndex = dRowRest._index;
|
|
891
746
|
const firstRow = renderDataList[0];
|
|
892
747
|
const lastRow = renderDataList[renderDataList.length - 1];
|
|
893
|
-
const firstRowRest = fullAllDataRowIdData[(0,
|
|
894
|
-
const lastRowRest = fullAllDataRowIdData[(0,
|
|
748
|
+
const firstRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, firstRow)];
|
|
749
|
+
const lastRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, lastRow)];
|
|
895
750
|
if (firstRowRest && lastRowRest) {
|
|
896
751
|
const frIndex = firstRowRest._index;
|
|
897
752
|
const lrIndex = lastRowRest._index;
|
|
@@ -905,7 +760,6 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
905
760
|
}
|
|
906
761
|
}
|
|
907
762
|
if (!fixedType && !isGroup) {
|
|
908
|
-
// 列拖拽
|
|
909
763
|
if (scrollXLoad && dragCol) {
|
|
910
764
|
if (renderColumnList.length > 2) {
|
|
911
765
|
const dCowRest = fullColumnIdData[dragCol.id];
|
|
@@ -930,11 +784,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
930
784
|
}
|
|
931
785
|
let emptyContent;
|
|
932
786
|
const emptySlot = slots ? slots.empty : null;
|
|
933
|
-
const emptyParams = {
|
|
934
|
-
$table: $xeTable,
|
|
935
|
-
$grid: $xeGrid,
|
|
936
|
-
$gantt: $xeGantt
|
|
937
|
-
};
|
|
787
|
+
const emptyParams = { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt };
|
|
938
788
|
if (emptySlot) {
|
|
939
789
|
emptyContent = $xeTable.callSlot(emptySlot, emptyParams);
|
|
940
790
|
} else {
|
|
@@ -942,90 +792,107 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
942
792
|
const compConf = emptyOpts.name ? rendererOpts[emptyOpts.name] || renderer.get(emptyOpts.name) : null;
|
|
943
793
|
const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
|
|
944
794
|
if (rtEmptyView) {
|
|
945
|
-
emptyContent = (0,
|
|
795
|
+
emptyContent = (0, import_vn.getSlotVNs)(rtEmptyView(emptyOpts, emptyParams));
|
|
946
796
|
} else {
|
|
947
|
-
emptyContent = tableProps.emptyText || getI18n(
|
|
797
|
+
emptyContent = tableProps.emptyText || getI18n("vxe.table.emptyText");
|
|
948
798
|
}
|
|
949
799
|
}
|
|
950
|
-
return (0,
|
|
800
|
+
return (0, import_vue.h)("div", {
|
|
951
801
|
ref: refElem,
|
|
952
|
-
class: [
|
|
802
|
+
class: ["vxe-table--body-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
|
|
953
803
|
xid: xID
|
|
954
|
-
}, [(0, _vue.h)('div', {
|
|
955
|
-
ref: refBodyScroll,
|
|
956
|
-
class: 'vxe-table--body-inner-wrapper',
|
|
957
|
-
onScroll(evnt) {
|
|
958
|
-
$xeTable.triggerBodyScrollEvent(evnt, fixedType);
|
|
959
|
-
}
|
|
960
|
-
}, [fixedType ? renderEmptyElement($xeTable) : (0, _vue.h)('div', {
|
|
961
|
-
ref: refBodyXSpace,
|
|
962
|
-
class: 'vxe-body--x-space'
|
|
963
|
-
}), (0, _vue.h)('div', {
|
|
964
|
-
ref: refBodyYSpace,
|
|
965
|
-
class: 'vxe-body--y-space'
|
|
966
|
-
}), (0, _vue.h)('table', {
|
|
967
|
-
ref: refBodyTable,
|
|
968
|
-
class: 'vxe-table--body',
|
|
969
|
-
xid: xID,
|
|
970
|
-
cellspacing: 0,
|
|
971
|
-
cellpadding: 0,
|
|
972
|
-
border: 0,
|
|
973
|
-
xvm: isOptimizeMode ? '1' : null
|
|
974
804
|
}, [
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
}, renderColumnList.map((column, $columnIndex) => {
|
|
981
|
-
return (0, _vue.h)('col', {
|
|
982
|
-
name: column.id,
|
|
983
|
-
key: $columnIndex,
|
|
984
|
-
style: {
|
|
985
|
-
width: `${column.renderWidth}px`
|
|
986
|
-
}
|
|
987
|
-
});
|
|
988
|
-
})),
|
|
989
|
-
/**
|
|
990
|
-
* 内容
|
|
991
|
-
*/
|
|
992
|
-
(0, _vue.h)('tbody', {
|
|
993
|
-
ref: refBodyTBody
|
|
994
|
-
}, renderRows(fixedType, isOptimizeMode, renderDataList, renderColumnList))]), (0, _vue.h)('div', {
|
|
995
|
-
class: 'vxe-table--checkbox-range'
|
|
996
|
-
}), (0, _utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, _vue.h)('div', {
|
|
997
|
-
class: 'vxe-table--cell-area',
|
|
998
|
-
xid: xID
|
|
999
|
-
}, [(0, _vue.h)('span', {
|
|
1000
|
-
class: 'vxe-table--cell-main-area'
|
|
1001
|
-
}, mouseOpts.extension ? [(0, _vue.h)('span', {
|
|
1002
|
-
class: 'vxe-table--cell-main-area-btn',
|
|
1003
|
-
onMousedown(evnt) {
|
|
1004
|
-
if ($xeTable.triggerCellAreaExtendMousedownEvent) {
|
|
1005
|
-
$xeTable.triggerCellAreaExtendMousedownEvent(evnt, {
|
|
1006
|
-
$table: $xeTable,
|
|
1007
|
-
fixed: fixedType,
|
|
1008
|
-
type: renderType
|
|
1009
|
-
});
|
|
805
|
+
(0, import_vue.h)("div", {
|
|
806
|
+
ref: refBodyScroll,
|
|
807
|
+
class: "vxe-table--body-inner-wrapper",
|
|
808
|
+
onScroll(evnt) {
|
|
809
|
+
$xeTable.triggerBodyScrollEvent(evnt, fixedType);
|
|
1010
810
|
}
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
811
|
+
}, [
|
|
812
|
+
fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
|
|
813
|
+
ref: refBodyXSpace,
|
|
814
|
+
class: "vxe-body--x-space"
|
|
815
|
+
}),
|
|
816
|
+
(0, import_vue.h)("div", {
|
|
817
|
+
ref: refBodyYSpace,
|
|
818
|
+
class: "vxe-body--y-space"
|
|
819
|
+
}),
|
|
820
|
+
(0, import_vue.h)("table", {
|
|
821
|
+
ref: refBodyTable,
|
|
822
|
+
class: "vxe-table--body",
|
|
823
|
+
xid: xID,
|
|
824
|
+
cellspacing: 0,
|
|
825
|
+
cellpadding: 0,
|
|
826
|
+
border: 0,
|
|
827
|
+
xvm: isOptimizeMode ? "1" : null
|
|
828
|
+
}, [
|
|
829
|
+
/**
|
|
830
|
+
* 列宽
|
|
831
|
+
*/
|
|
832
|
+
(0, import_vue.h)("colgroup", {
|
|
833
|
+
ref: refBodyColgroup
|
|
834
|
+
}, renderColumnList.map((column, $columnIndex) => {
|
|
835
|
+
return (0, import_vue.h)("col", {
|
|
836
|
+
name: column.id,
|
|
837
|
+
key: $columnIndex,
|
|
838
|
+
style: {
|
|
839
|
+
width: `${column.renderWidth}px`
|
|
840
|
+
}
|
|
841
|
+
});
|
|
842
|
+
})),
|
|
843
|
+
/**
|
|
844
|
+
* 内容
|
|
845
|
+
*/
|
|
846
|
+
(0, import_vue.h)("tbody", {
|
|
847
|
+
ref: refBodyTBody
|
|
848
|
+
}, renderRows(fixedType, isOptimizeMode, renderDataList, renderColumnList))
|
|
849
|
+
]),
|
|
850
|
+
(0, import_vue.h)("div", {
|
|
851
|
+
class: "vxe-table--checkbox-range"
|
|
852
|
+
}),
|
|
853
|
+
(0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)("div", {
|
|
854
|
+
class: "vxe-table--cell-area",
|
|
855
|
+
xid: xID
|
|
856
|
+
}, [
|
|
857
|
+
(0, import_vue.h)("span", {
|
|
858
|
+
class: "vxe-table--cell-main-area"
|
|
859
|
+
}, mouseOpts.extension ? [
|
|
860
|
+
(0, import_vue.h)("span", {
|
|
861
|
+
class: "vxe-table--cell-main-area-btn",
|
|
862
|
+
onMousedown(evnt) {
|
|
863
|
+
if ($xeTable.triggerCellAreaExtendMousedownEvent) {
|
|
864
|
+
$xeTable.triggerCellAreaExtendMousedownEvent(evnt, { $table: $xeTable, fixed: fixedType, type: renderType });
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
})
|
|
868
|
+
] : []),
|
|
869
|
+
(0, import_vue.h)("span", {
|
|
870
|
+
class: "vxe-table--cell-clip-area"
|
|
871
|
+
}),
|
|
872
|
+
(0, import_vue.h)("span", {
|
|
873
|
+
class: "vxe-table--cell-extend-area"
|
|
874
|
+
}),
|
|
875
|
+
(0, import_vue.h)("span", {
|
|
876
|
+
class: "vxe-table--cell-multi-area"
|
|
877
|
+
}),
|
|
878
|
+
(0, import_vue.h)("span", {
|
|
879
|
+
class: "vxe-table--cell-active-area"
|
|
880
|
+
}),
|
|
881
|
+
(0, import_vue.h)("span", {
|
|
882
|
+
class: "vxe-table--cell-row-status-area"
|
|
883
|
+
})
|
|
884
|
+
]) : renderEmptyElement($xeTable),
|
|
885
|
+
!fixedType ? (0, import_vue.h)("div", {
|
|
886
|
+
class: "vxe-table--empty-block",
|
|
887
|
+
ref: refBodyEmptyBlock
|
|
888
|
+
}, [
|
|
889
|
+
(0, import_vue.h)("div", {
|
|
890
|
+
class: "vxe-table--empty-content"
|
|
891
|
+
}, emptyContent)
|
|
892
|
+
]) : renderEmptyElement($xeTable)
|
|
893
|
+
])
|
|
894
|
+
]);
|
|
1028
895
|
};
|
|
1029
896
|
return renderVN;
|
|
1030
897
|
}
|
|
1031
|
-
});
|
|
898
|
+
});
|