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/es/table/src/util.js
CHANGED
|
@@ -1,1104 +1,1116 @@
|
|
|
1
|
-
import { watch, reactive } from
|
|
2
|
-
import XEUtils from
|
|
3
|
-
import { ColumnInfo } from
|
|
4
|
-
import { isPx, isScale, queryElement } from
|
|
5
|
-
import { eqEmptyValue, hasEnableConf } from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
1
|
+
import { watch, reactive } from "vue";
|
|
2
|
+
import XEUtils from "xe-utils";
|
|
3
|
+
import { ColumnInfo } from "./columnInfo";
|
|
4
|
+
import { isPx, isScale, queryElement } from "../../ui/src/dom";
|
|
5
|
+
import { eqEmptyValue, hasEnableConf } from "../../ui/src/utils";
|
|
6
|
+
function createInternalData() {
|
|
7
|
+
return {
|
|
8
|
+
tZindex: 0,
|
|
9
|
+
currKeyField: "",
|
|
10
|
+
isCurrDeepKey: false,
|
|
11
|
+
elemStore: {},
|
|
12
|
+
// 存放横向 X 虚拟滚动相关的信息
|
|
13
|
+
scrollXStore: {
|
|
14
|
+
preloadSize: 0,
|
|
15
|
+
offsetSize: 0,
|
|
16
|
+
visibleSize: 0,
|
|
17
|
+
visibleStartIndex: 0,
|
|
18
|
+
visibleEndIndex: 0,
|
|
19
|
+
startIndex: 0,
|
|
20
|
+
endIndex: 0
|
|
21
|
+
},
|
|
22
|
+
// 存放纵向 Y 虚拟滚动相关信息
|
|
23
|
+
scrollYStore: {
|
|
24
|
+
preloadSize: 0,
|
|
25
|
+
offsetSize: 0,
|
|
26
|
+
visibleSize: 0,
|
|
27
|
+
visibleStartIndex: 0,
|
|
28
|
+
visibleEndIndex: 0,
|
|
29
|
+
startIndex: 0,
|
|
30
|
+
endIndex: 0
|
|
31
|
+
},
|
|
32
|
+
// 表格宽度
|
|
33
|
+
tableWidth: 0,
|
|
34
|
+
// 表格高度
|
|
35
|
+
tableHeight: 0,
|
|
36
|
+
customHeight: 0,
|
|
37
|
+
customMinHeight: 0,
|
|
38
|
+
customMaxHeight: 0,
|
|
39
|
+
// 当前 hover 行
|
|
40
|
+
hoverRow: null,
|
|
41
|
+
hoverCol: null,
|
|
42
|
+
// 当前行
|
|
43
|
+
currentRow: null,
|
|
44
|
+
currentCol: null,
|
|
45
|
+
// resizeObserver: undefined,
|
|
46
|
+
// 滚动条
|
|
47
|
+
// scrollObserver: undefined,
|
|
48
|
+
// isThumbDrag: false,
|
|
49
|
+
thumbDragOffset: 0,
|
|
50
|
+
yThumbTop: 0,
|
|
51
|
+
xThumbLeft: 0,
|
|
52
|
+
lastScrollTop: 0,
|
|
53
|
+
lastScrollLeft: 0,
|
|
54
|
+
// 单选框属性,已选中保留的行
|
|
55
|
+
radioReserveRow: null,
|
|
56
|
+
// 复选框属性,已选中保留的行集合
|
|
57
|
+
checkboxReserveRowMap: {},
|
|
58
|
+
// 行数据,已展开保留的行集合
|
|
59
|
+
rowExpandedReserveRowMap: {},
|
|
60
|
+
// 树结构数据,已展开保留的行集合
|
|
61
|
+
treeExpandedReserveRowMap: {},
|
|
62
|
+
// 树结构数据,不确定状态的集合
|
|
63
|
+
treeIndeterminateRowMaps: {},
|
|
64
|
+
// 列表完整数据、条件处理后
|
|
65
|
+
tableFullData: [],
|
|
66
|
+
afterFullData: [],
|
|
67
|
+
afterTreeFullData: [],
|
|
68
|
+
afterGroupFullData: [],
|
|
69
|
+
// 列表条件处理后数据集合
|
|
70
|
+
afterFullRowMaps: {},
|
|
71
|
+
// 树结构完整数据、条件处理后
|
|
72
|
+
tableFullTreeData: [],
|
|
73
|
+
// 行分组全量数据、条件处理后
|
|
74
|
+
tableFullGroupData: [],
|
|
75
|
+
tableSynchData: [],
|
|
76
|
+
tableSourceData: [],
|
|
77
|
+
// 收集的列配置(带分组)
|
|
78
|
+
collectColumn: [],
|
|
79
|
+
// 完整所有列(不带分组)
|
|
80
|
+
tableFullColumn: [],
|
|
81
|
+
// 渲染所有列
|
|
82
|
+
visibleColumn: [],
|
|
83
|
+
// 全量数据集(包括当前和已删除)
|
|
84
|
+
fullAllDataRowIdData: {},
|
|
85
|
+
// 数据集(仅当前)
|
|
86
|
+
fullDataRowIdData: {},
|
|
87
|
+
// 数据集(仅可视)
|
|
88
|
+
visibleDataRowIdData: {},
|
|
89
|
+
keepUpdateFieldMaps: {},
|
|
90
|
+
headerFullDataColData: {},
|
|
91
|
+
footerFullDataRowData: {},
|
|
92
|
+
// 渲染中缓存数据
|
|
93
|
+
sourceDataRowIdData: {},
|
|
94
|
+
fullColumnIdData: {},
|
|
95
|
+
fullColumnFieldData: {},
|
|
96
|
+
fullCellHeightMaps: {},
|
|
97
|
+
fullCellStoreMaps: {},
|
|
98
|
+
// 合并表头单元格的数据
|
|
99
|
+
mergeHeaderList: [],
|
|
100
|
+
mergeHeaderMaps: {},
|
|
101
|
+
// 已合并单元格数据集合
|
|
102
|
+
mergeHeaderCellMaps: {},
|
|
103
|
+
mergeHeaderRowMaps: {},
|
|
104
|
+
mergeHeaderColMaps: {},
|
|
105
|
+
// 合并单元格的数据
|
|
106
|
+
mergeBodyList: [],
|
|
107
|
+
mergeBodyMaps: {},
|
|
108
|
+
// 已合并单元格数据集合
|
|
109
|
+
mergeBodyCellMaps: {},
|
|
110
|
+
mergeBodyRowMaps: {},
|
|
111
|
+
mergeBodyColMaps: {},
|
|
112
|
+
// 合并表尾的数据
|
|
113
|
+
mergeFooterList: [],
|
|
114
|
+
mergeFooterMaps: {},
|
|
115
|
+
// 已合并表尾数据集合
|
|
116
|
+
mergeFooterCellMaps: {},
|
|
117
|
+
mergeFooterRowMaps: {},
|
|
118
|
+
mergeFooterColMaps: {},
|
|
119
|
+
// 已展开的行集合
|
|
120
|
+
rowExpandedMaps: {},
|
|
121
|
+
// 懒加载中的展开行的集合
|
|
122
|
+
rowExpandLazyLoadedMaps: {},
|
|
123
|
+
// 已展开的分组行
|
|
124
|
+
rowGroupExpandedMaps: {},
|
|
125
|
+
// 已展开树节点集合
|
|
126
|
+
treeExpandedMaps: {},
|
|
127
|
+
// 懒加载中的树节点的集合
|
|
128
|
+
treeExpandLazyLoadedMaps: {},
|
|
129
|
+
// 复选框属性,已选中的行集合
|
|
130
|
+
selectCheckboxMaps: {},
|
|
131
|
+
// 已标记的对象集
|
|
132
|
+
pendingRowMaps: {},
|
|
133
|
+
// 已新增的临时行
|
|
134
|
+
insertRowMaps: {},
|
|
135
|
+
// 已删除行
|
|
136
|
+
removeRowMaps: {},
|
|
137
|
+
cvCacheMaps: {},
|
|
138
|
+
// 表头高度
|
|
139
|
+
tHeaderHeight: 0,
|
|
140
|
+
// 表体高度
|
|
141
|
+
tBodyHeight: 0,
|
|
142
|
+
// 表尾高度
|
|
143
|
+
tFooterHeight: 0,
|
|
144
|
+
stackHistoryStore: {
|
|
145
|
+
undoStacks: [],
|
|
146
|
+
redoStacks: []
|
|
147
|
+
},
|
|
148
|
+
teleportToWrapperElem: null,
|
|
149
|
+
popupToWrapperElem: null,
|
|
150
|
+
customPopupToElem: null,
|
|
151
|
+
lastSTime: 0,
|
|
152
|
+
// isCustomDragStatus: false,
|
|
153
|
+
inited: false,
|
|
154
|
+
tooltipTimeout: null,
|
|
155
|
+
initStatus: false,
|
|
156
|
+
isActivated: false,
|
|
157
|
+
// keyCtxTimeout: undefined,
|
|
158
|
+
// 刷新布局
|
|
159
|
+
// rceTimeout: undefined,
|
|
160
|
+
// rceRunTime: undefined,
|
|
161
|
+
rceDelay: 0
|
|
162
|
+
// rsePending: false,
|
|
163
|
+
// 滚动属性
|
|
164
|
+
// intoRunScroll: false,
|
|
165
|
+
// inVirtualScroll: false,
|
|
166
|
+
// inWheelScroll: false,
|
|
167
|
+
// inHeaderScroll: false,
|
|
168
|
+
// inBodyScroll: false,
|
|
169
|
+
// inFooterScroll: false,
|
|
170
|
+
// scrollRenderType?: '',
|
|
171
|
+
// isSyncGanttScrollTop: false,
|
|
172
|
+
// 同步滚动
|
|
173
|
+
// lcsTimeout: undefined,
|
|
174
|
+
// lcsRunTime: undefined,
|
|
175
|
+
// 横向虚拟
|
|
176
|
+
// lxRunTime: undefined,
|
|
177
|
+
// lxTimeout: undefined,
|
|
178
|
+
// 纵向虚拟
|
|
179
|
+
// lyRunTime: undefined,
|
|
180
|
+
// lyTimeout: undefined,
|
|
181
|
+
// 动态高度
|
|
182
|
+
// chRunTime: undefined,
|
|
183
|
+
// chTimeout: undefined,
|
|
184
|
+
// isResizeCellHeight: false,
|
|
185
|
+
// _sToTime: null
|
|
186
|
+
};
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
188
|
+
function createReactData() {
|
|
189
|
+
return {
|
|
190
|
+
updateColFlag: 0,
|
|
191
|
+
// 低性能的静态列
|
|
192
|
+
staticColumns: [],
|
|
193
|
+
// 渲染的列分组
|
|
194
|
+
tableGroupColumn: [],
|
|
195
|
+
// 可视区渲染的列
|
|
196
|
+
tableColumn: [],
|
|
197
|
+
// 渲染中的数据
|
|
198
|
+
tableData: [],
|
|
199
|
+
// 是否启用了横向 X 可视渲染方式加载
|
|
200
|
+
scrollXLoad: false,
|
|
201
|
+
// 是否启用了纵向 Y 可视渲染方式加载
|
|
202
|
+
scrollYLoad: false,
|
|
203
|
+
// 是否存在纵向滚动条
|
|
204
|
+
overflowY: true,
|
|
205
|
+
// 是否存在横向滚动条
|
|
206
|
+
overflowX: false,
|
|
207
|
+
// 纵向滚动条的宽度
|
|
208
|
+
scrollbarWidth: 0,
|
|
209
|
+
// 横向滚动条的高度
|
|
210
|
+
scrollbarHeight: 0,
|
|
211
|
+
// 滚动条
|
|
212
|
+
yThumbHeight: 0,
|
|
213
|
+
xThumbWidth: 0,
|
|
214
|
+
// 行高
|
|
215
|
+
rowHeight: 0,
|
|
216
|
+
// 表格父容器的高度
|
|
217
|
+
parentHeight: 0,
|
|
218
|
+
// 是否使用分组表头
|
|
219
|
+
isGroup: false,
|
|
220
|
+
isAllOverflow: false,
|
|
221
|
+
// 复选框属性,是否全选
|
|
222
|
+
isAllSelected: false,
|
|
223
|
+
// 复选框属性,有选中且非全选状态
|
|
224
|
+
isIndeterminate: false,
|
|
225
|
+
// 单选框属性,选中行
|
|
226
|
+
selectRadioRow: null,
|
|
227
|
+
// 表尾合计数据
|
|
228
|
+
footerTableData: [],
|
|
229
|
+
// 行分组列信息
|
|
230
|
+
rowGroupColumn: null,
|
|
231
|
+
// 展开列信息
|
|
232
|
+
expandColumn: null,
|
|
233
|
+
checkboxColumn: null,
|
|
234
|
+
radioColumn: null,
|
|
235
|
+
// 树节点列信息
|
|
236
|
+
treeNodeColumn: null,
|
|
237
|
+
hasFixedColumn: false,
|
|
238
|
+
// 刷新列标识,当列筛选被改变时,触发表格刷新数据
|
|
239
|
+
upDataFlag: 0,
|
|
240
|
+
// 刷新列标识,当列的特定属性被改变时,触发表格刷新列
|
|
241
|
+
reColumnFlag: 0,
|
|
242
|
+
// 初始化标识
|
|
243
|
+
initStore: {
|
|
244
|
+
filter: false,
|
|
245
|
+
import: false,
|
|
246
|
+
export: false,
|
|
247
|
+
custom: false
|
|
248
|
+
},
|
|
249
|
+
// 自定义列相关的信息
|
|
250
|
+
customStore: {
|
|
251
|
+
btnEl: null,
|
|
252
|
+
isAll: false,
|
|
253
|
+
isIndeterminate: false,
|
|
254
|
+
activeBtn: false,
|
|
255
|
+
activeWrapper: false,
|
|
256
|
+
visible: false,
|
|
257
|
+
maxHeight: null,
|
|
258
|
+
defPopupStyle: {},
|
|
259
|
+
panePopupStyle: {},
|
|
260
|
+
oldSortMaps: {},
|
|
261
|
+
oldFixedMaps: {},
|
|
262
|
+
oldVisibleMaps: {}
|
|
263
|
+
},
|
|
264
|
+
customColumnList: [],
|
|
265
|
+
// 当前选中的筛选列
|
|
266
|
+
filterStore: {
|
|
267
|
+
targetEl: null,
|
|
268
|
+
isAllSelected: false,
|
|
269
|
+
isIndeterminate: false,
|
|
270
|
+
style: null,
|
|
271
|
+
column: null,
|
|
272
|
+
visible: false
|
|
273
|
+
},
|
|
274
|
+
// 存放列相关的信息
|
|
275
|
+
columnStore: {
|
|
276
|
+
leftList: [],
|
|
277
|
+
centerList: [],
|
|
278
|
+
rightList: [],
|
|
279
|
+
resizeList: [],
|
|
280
|
+
pxList: [],
|
|
281
|
+
pxMinList: [],
|
|
282
|
+
autoMinList: [],
|
|
283
|
+
scaleList: [],
|
|
284
|
+
scaleMinList: [],
|
|
285
|
+
autoList: [],
|
|
286
|
+
remainList: []
|
|
287
|
+
},
|
|
288
|
+
// 存放快捷菜单的信息
|
|
289
|
+
ctxMenuStore: {
|
|
290
|
+
selected: null,
|
|
291
|
+
visible: false,
|
|
292
|
+
showChild: false,
|
|
293
|
+
selectChild: null,
|
|
294
|
+
list: [],
|
|
295
|
+
style: null
|
|
296
|
+
},
|
|
297
|
+
// 存放可编辑相关信息
|
|
298
|
+
editStore: {
|
|
299
|
+
indexs: {
|
|
300
|
+
columns: []
|
|
301
|
+
},
|
|
302
|
+
titles: {
|
|
303
|
+
columns: []
|
|
304
|
+
},
|
|
305
|
+
// 选中源
|
|
306
|
+
selected: {
|
|
307
|
+
row: null,
|
|
308
|
+
column: null
|
|
309
|
+
},
|
|
310
|
+
// 已复制源
|
|
311
|
+
copyed: {
|
|
312
|
+
cut: false,
|
|
313
|
+
rows: [],
|
|
314
|
+
columns: []
|
|
315
|
+
},
|
|
316
|
+
// 激活
|
|
317
|
+
actived: {
|
|
318
|
+
row: null,
|
|
319
|
+
column: null
|
|
320
|
+
},
|
|
321
|
+
// 当前被强制聚焦单元格,只会在鼠标点击后算聚焦
|
|
322
|
+
focused: {
|
|
323
|
+
row: null,
|
|
324
|
+
column: null
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
// 存放 tooltip 相关信息
|
|
328
|
+
tooltipStore: {
|
|
329
|
+
row: null,
|
|
330
|
+
column: null,
|
|
331
|
+
content: "",
|
|
332
|
+
visible: false,
|
|
333
|
+
type: null,
|
|
334
|
+
currOpts: {}
|
|
335
|
+
},
|
|
336
|
+
// 存放数据校验相关信息
|
|
337
|
+
validStore: {
|
|
338
|
+
visible: false
|
|
339
|
+
},
|
|
340
|
+
validErrorMaps: {},
|
|
341
|
+
// 导入相关信息
|
|
342
|
+
importStore: {
|
|
343
|
+
inited: false,
|
|
344
|
+
file: null,
|
|
345
|
+
type: "",
|
|
346
|
+
modeList: [],
|
|
347
|
+
typeList: [],
|
|
348
|
+
filename: "",
|
|
349
|
+
visible: false
|
|
350
|
+
},
|
|
351
|
+
importParams: {
|
|
352
|
+
mode: "",
|
|
353
|
+
types: null,
|
|
354
|
+
message: true
|
|
355
|
+
},
|
|
356
|
+
// 导出相关信息
|
|
357
|
+
exportStore: {
|
|
358
|
+
inited: false,
|
|
359
|
+
name: "",
|
|
360
|
+
modeList: [],
|
|
361
|
+
typeList: [],
|
|
362
|
+
columns: [],
|
|
363
|
+
isPrint: false,
|
|
364
|
+
hasFooter: false,
|
|
365
|
+
hasMerge: false,
|
|
366
|
+
hasTree: false,
|
|
367
|
+
hasRowGroup: false,
|
|
368
|
+
hasColgroup: false,
|
|
369
|
+
visible: false
|
|
370
|
+
},
|
|
371
|
+
exportParams: {
|
|
372
|
+
filename: "",
|
|
373
|
+
sheetName: "",
|
|
374
|
+
mode: "",
|
|
375
|
+
type: "",
|
|
376
|
+
isColgroup: false,
|
|
377
|
+
isMerge: false,
|
|
378
|
+
isTreeAllExpanded: false,
|
|
379
|
+
isRowGroupAllExpanded: false,
|
|
380
|
+
useStyle: false,
|
|
381
|
+
original: false,
|
|
382
|
+
message: true,
|
|
383
|
+
isHeader: false,
|
|
384
|
+
isTitle: false,
|
|
385
|
+
isFooter: false
|
|
386
|
+
},
|
|
387
|
+
visiblwRowsFlag: 1,
|
|
388
|
+
isRowGroupStatus: false,
|
|
389
|
+
rowGroupList: [],
|
|
390
|
+
aggHandleFields: [],
|
|
391
|
+
aggHandleAggColumns: [],
|
|
392
|
+
rowGroupExpandedFlag: 1,
|
|
393
|
+
rowExpandedFlag: 1,
|
|
394
|
+
treeExpandedFlag: 1,
|
|
395
|
+
updateCheckboxFlag: 1,
|
|
396
|
+
pendingRowFlag: 1,
|
|
397
|
+
insertRowFlag: 1,
|
|
398
|
+
removeRowFlag: 1,
|
|
399
|
+
mergeHeadFlag: 1,
|
|
400
|
+
mergeBodyFlag: 1,
|
|
401
|
+
mergeFootFlag: 1,
|
|
402
|
+
rowHeightStore: {
|
|
403
|
+
xlarge: 54,
|
|
404
|
+
large: 52,
|
|
405
|
+
default: 48,
|
|
406
|
+
medium: 44,
|
|
407
|
+
small: 40,
|
|
408
|
+
mini: 36
|
|
409
|
+
},
|
|
410
|
+
scrollVMLoading: false,
|
|
411
|
+
scrollYHeight: 0,
|
|
412
|
+
scrollYTop: 0,
|
|
413
|
+
isScrollYBig: false,
|
|
414
|
+
scrollXLeft: 0,
|
|
415
|
+
scrollXWidth: 0,
|
|
416
|
+
isScrollXBig: false,
|
|
417
|
+
lazScrollLoading: false,
|
|
418
|
+
rowExpandHeightFlag: 1,
|
|
419
|
+
calcCellHeightFlag: 1,
|
|
420
|
+
resizeHeightFlag: 1,
|
|
421
|
+
resizeWidthFlag: 1,
|
|
422
|
+
isCustomStatus: false,
|
|
423
|
+
isCustomDragStatus: true,
|
|
424
|
+
ctPopupFlag: 1,
|
|
425
|
+
isCrossDragRow: false,
|
|
426
|
+
dragRow: null,
|
|
427
|
+
isCrossDragCol: false,
|
|
428
|
+
dragCol: null,
|
|
429
|
+
dragTipText: "",
|
|
430
|
+
isDragResize: false,
|
|
431
|
+
isRowLoading: false,
|
|
432
|
+
isColLoading: false,
|
|
433
|
+
currColFlag: 1
|
|
434
|
+
};
|
|
435
435
|
}
|
|
436
|
-
const maxKey =
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
chRest[maxKey] = max;
|
|
447
|
-
return max;
|
|
436
|
+
const maxKey = "__max";
|
|
437
|
+
function getRowMaxHeight(chRest, isForce) {
|
|
438
|
+
if (isForce || !chRest[maxKey]) {
|
|
439
|
+
let max = 0;
|
|
440
|
+
for (const key in chRest) {
|
|
441
|
+
const val = chRest[key];
|
|
442
|
+
if (key !== maxKey && XEUtils.isNumber(val) && val > max) {
|
|
443
|
+
max = val;
|
|
444
|
+
}
|
|
448
445
|
}
|
|
449
|
-
|
|
446
|
+
chRest[maxKey] = max;
|
|
447
|
+
return max;
|
|
448
|
+
}
|
|
449
|
+
return chRest[maxKey];
|
|
450
450
|
}
|
|
451
451
|
const getAllConvertColumns = (columns, parentColumn) => {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
return result;
|
|
452
|
+
const result = [];
|
|
453
|
+
columns.forEach((column) => {
|
|
454
|
+
column.parentId = parentColumn ? parentColumn.id : null;
|
|
455
|
+
if (column.visible) {
|
|
456
|
+
if (column.children && column.children.length && column.children.some((column2) => column2.visible)) {
|
|
457
|
+
result.push(column);
|
|
458
|
+
result.push(...getAllConvertColumns(column.children, column));
|
|
459
|
+
} else {
|
|
460
|
+
result.push(column);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
return result;
|
|
466
465
|
};
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
}
|
|
476
|
-
if (column.children && column.children.length && column.children.some((column) => column.visible)) {
|
|
477
|
-
let colSpan = 0;
|
|
478
|
-
column.children.forEach((subColumn) => {
|
|
479
|
-
if (subColumn.visible) {
|
|
480
|
-
traverse(subColumn, column);
|
|
481
|
-
colSpan += subColumn.colSpan;
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
column.colSpan = colSpan;
|
|
485
|
-
}
|
|
486
|
-
else {
|
|
487
|
-
column.colSpan = 1;
|
|
488
|
-
}
|
|
489
|
-
};
|
|
490
|
-
originColumns.forEach((column) => {
|
|
491
|
-
column.level = 1;
|
|
492
|
-
traverse(column);
|
|
493
|
-
});
|
|
494
|
-
const rows = [];
|
|
495
|
-
for (let i = 0; i < maxLevel; i++) {
|
|
496
|
-
rows.push([]);
|
|
466
|
+
const convertHeaderColumnToRows = (originColumns) => {
|
|
467
|
+
let maxLevel = 1;
|
|
468
|
+
const traverse = (column, parent) => {
|
|
469
|
+
if (parent) {
|
|
470
|
+
column.level = parent.level + 1;
|
|
471
|
+
if (maxLevel < column.level) {
|
|
472
|
+
maxLevel = column.level;
|
|
473
|
+
}
|
|
497
474
|
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
column.rowSpan = maxLevel - column.level + 1;
|
|
475
|
+
if (column.children && column.children.length && column.children.some((column2) => column2.visible)) {
|
|
476
|
+
let colSpan = 0;
|
|
477
|
+
column.children.forEach((subColumn) => {
|
|
478
|
+
if (subColumn.visible) {
|
|
479
|
+
traverse(subColumn, column);
|
|
480
|
+
colSpan += subColumn.colSpan;
|
|
505
481
|
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
482
|
+
});
|
|
483
|
+
column.colSpan = colSpan;
|
|
484
|
+
} else {
|
|
485
|
+
column.colSpan = 1;
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
originColumns.forEach((column) => {
|
|
489
|
+
column.level = 1;
|
|
490
|
+
traverse(column);
|
|
491
|
+
});
|
|
492
|
+
const rows = [];
|
|
493
|
+
for (let i = 0; i < maxLevel; i++) {
|
|
494
|
+
rows.push([]);
|
|
495
|
+
}
|
|
496
|
+
const allColumns = getAllConvertColumns(originColumns);
|
|
497
|
+
allColumns.forEach((column) => {
|
|
498
|
+
if (column.children && column.children.length && column.children.some((column2) => column2.visible)) {
|
|
499
|
+
column.rowSpan = 1;
|
|
500
|
+
} else {
|
|
501
|
+
column.rowSpan = maxLevel - column.level + 1;
|
|
502
|
+
}
|
|
503
|
+
rows[column.level - 1].push(column);
|
|
504
|
+
});
|
|
505
|
+
return rows;
|
|
509
506
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
522
|
-
occupiedRows.push(oCols);
|
|
523
|
-
fullRows.push(dCols);
|
|
507
|
+
function convertHeaderToGridRows(spanColumns) {
|
|
508
|
+
const rSize = spanColumns.length;
|
|
509
|
+
const cSize = spanColumns[0].reduce((sum, cell) => sum + cell.colSpan, 0);
|
|
510
|
+
const occupiedRows = [];
|
|
511
|
+
const fullRows = [];
|
|
512
|
+
for (let rIndex = 0; rIndex < rSize; rIndex++) {
|
|
513
|
+
const oCols = [];
|
|
514
|
+
const dCols = [];
|
|
515
|
+
for (let cIndex = 0; cIndex < cSize; cIndex++) {
|
|
516
|
+
oCols.push(false);
|
|
517
|
+
dCols.push("");
|
|
524
518
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
startColIndex = j;
|
|
554
|
-
break;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
if (startColIndex === -1) {
|
|
558
|
-
// error
|
|
559
|
-
break;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
for (let srIndex = rIndex; srIndex < rIndex + rowSpan; srIndex++) {
|
|
563
|
-
for (let scIndex = startColIndex; scIndex < startColIndex + colSpan; scIndex++) {
|
|
564
|
-
occupiedRows[srIndex][scIndex] = true;
|
|
565
|
-
fullRows[srIndex][scIndex] = column;
|
|
566
|
-
}
|
|
519
|
+
occupiedRows.push(oCols);
|
|
520
|
+
fullRows.push(dCols);
|
|
521
|
+
}
|
|
522
|
+
for (let rIndex = 0; rIndex < rSize; rIndex++) {
|
|
523
|
+
let currColIndex = 0;
|
|
524
|
+
for (const column of spanColumns[rIndex]) {
|
|
525
|
+
const { colSpan, rowSpan } = column;
|
|
526
|
+
let startColIndex = -1;
|
|
527
|
+
for (let ccIndex = currColIndex; ccIndex <= cSize - colSpan; ccIndex++) {
|
|
528
|
+
let oFlag = true;
|
|
529
|
+
for (let csIndex = 0; csIndex < colSpan; csIndex++) {
|
|
530
|
+
if (occupiedRows[rIndex][ccIndex + csIndex]) {
|
|
531
|
+
oFlag = false;
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
if (oFlag) {
|
|
536
|
+
startColIndex = ccIndex;
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
if (startColIndex === -1) {
|
|
541
|
+
for (let j = 0; j <= cSize - colSpan; j++) {
|
|
542
|
+
let oFlag = true;
|
|
543
|
+
for (let k = 0; k < colSpan; k++) {
|
|
544
|
+
if (occupiedRows[rIndex][j + k]) {
|
|
545
|
+
oFlag = false;
|
|
546
|
+
break;
|
|
567
547
|
}
|
|
568
|
-
|
|
548
|
+
}
|
|
549
|
+
if (oFlag) {
|
|
550
|
+
startColIndex = j;
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
if (startColIndex === -1) {
|
|
555
|
+
break;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
for (let srIndex = rIndex; srIndex < rIndex + rowSpan; srIndex++) {
|
|
559
|
+
for (let scIndex = startColIndex; scIndex < startColIndex + colSpan; scIndex++) {
|
|
560
|
+
occupiedRows[srIndex][scIndex] = true;
|
|
561
|
+
fullRows[srIndex][scIndex] = column;
|
|
569
562
|
}
|
|
563
|
+
}
|
|
564
|
+
currColIndex = startColIndex + colSpan;
|
|
570
565
|
}
|
|
571
|
-
|
|
566
|
+
}
|
|
567
|
+
return fullRows;
|
|
572
568
|
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
return $xeTable.clearScroll();
|
|
569
|
+
function restoreScrollLocation($xeTable, scrollLeft, scrollTop) {
|
|
570
|
+
const internalData = $xeTable.internalData;
|
|
571
|
+
if (scrollLeft || scrollTop) {
|
|
572
|
+
internalData.intoRunScroll = false;
|
|
573
|
+
internalData.inVirtualScroll = false;
|
|
574
|
+
internalData.inWheelScroll = false;
|
|
575
|
+
internalData.inHeaderScroll = false;
|
|
576
|
+
internalData.inBodyScroll = false;
|
|
577
|
+
internalData.inFooterScroll = false;
|
|
578
|
+
internalData.scrollRenderType = "";
|
|
579
|
+
return $xeTable.scrollTo(scrollLeft, scrollTop);
|
|
580
|
+
}
|
|
581
|
+
return $xeTable.clearScroll();
|
|
587
582
|
}
|
|
588
|
-
|
|
589
|
-
|
|
583
|
+
function getRowUniqueId() {
|
|
584
|
+
return XEUtils.uniqueId("row_");
|
|
590
585
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
return createKeyMethod({ row, keyField });
|
|
598
|
-
}
|
|
599
|
-
return getRowUniqueId();
|
|
586
|
+
function createRowId(rowOpts, row, keyField) {
|
|
587
|
+
const { createKeyMethod } = rowOpts;
|
|
588
|
+
if (createKeyMethod) {
|
|
589
|
+
return createKeyMethod({ row, keyField });
|
|
590
|
+
}
|
|
591
|
+
return getRowUniqueId();
|
|
600
592
|
}
|
|
601
|
-
|
|
602
|
-
|
|
593
|
+
function hasDeepKey(rowKey) {
|
|
594
|
+
return rowKey.indexOf(".") > -1;
|
|
603
595
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
return currKeyField;
|
|
596
|
+
function getRowkey($xeTable) {
|
|
597
|
+
const { currKeyField } = $xeTable.internalData;
|
|
598
|
+
return currKeyField;
|
|
608
599
|
}
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
return row ? encodeRowid((isCurrDeepKey ? getDeepRowIdByKey : getFastRowIdByKey)(row, currKeyField)) : '';
|
|
600
|
+
function getRowid($xeTable, row) {
|
|
601
|
+
const internalData = $xeTable.internalData;
|
|
602
|
+
const { isCurrDeepKey, currKeyField } = internalData;
|
|
603
|
+
return row ? encodeRowid((isCurrDeepKey ? getDeepRowIdByKey : getFastRowIdByKey)(row, currKeyField)) : "";
|
|
614
604
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
605
|
+
function createHandleUpdateRowId($xeTable) {
|
|
606
|
+
const internalData = $xeTable.internalData;
|
|
607
|
+
const { isCurrDeepKey, currKeyField } = internalData;
|
|
608
|
+
const { computeRowOpts } = $xeTable.getComputeMaps();
|
|
609
|
+
const rowOpts = computeRowOpts.value;
|
|
610
|
+
const updateRId = isCurrDeepKey ? updateDeepRowKey : updateFastRowKey;
|
|
611
|
+
return {
|
|
612
|
+
rowKey: currKeyField,
|
|
613
|
+
handleUpdateRowId(row) {
|
|
614
|
+
return row ? updateRId(rowOpts, row, currKeyField) : "";
|
|
615
|
+
}
|
|
616
|
+
};
|
|
627
617
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
618
|
+
function createHandleGetRowId($xeTable) {
|
|
619
|
+
const internalData = $xeTable.internalData;
|
|
620
|
+
const { isCurrDeepKey, currKeyField } = internalData;
|
|
621
|
+
const getRId = isCurrDeepKey ? getDeepRowIdByKey : getFastRowIdByKey;
|
|
622
|
+
return {
|
|
623
|
+
rowKey: currKeyField,
|
|
624
|
+
handleGetRowId(row) {
|
|
625
|
+
return row ? encodeRowid(getRId(row, currKeyField)) : "";
|
|
626
|
+
}
|
|
627
|
+
};
|
|
638
628
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
return XEUtils.eqNull(rowVal) ? '' : encodeURIComponent(rowVal);
|
|
629
|
+
function encodeRowid(rowVal) {
|
|
630
|
+
return XEUtils.eqNull(rowVal) ? "" : encodeURIComponent(rowVal);
|
|
642
631
|
}
|
|
643
632
|
function getDeepRowIdByKey(row, rowKey) {
|
|
644
|
-
|
|
633
|
+
return XEUtils.get(row, rowKey);
|
|
645
634
|
}
|
|
646
635
|
function updateDeepRowKey(rowOpts, row, rowKey) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
636
|
+
let rowid = encodeRowid(getDeepRowIdByKey(row, rowKey));
|
|
637
|
+
if (eqEmptyValue(rowid)) {
|
|
638
|
+
const newRowid = createRowId(rowOpts, row, rowKey);
|
|
639
|
+
rowid = "" + newRowid;
|
|
640
|
+
XEUtils.set(row, rowKey, rowid);
|
|
641
|
+
}
|
|
642
|
+
return rowid;
|
|
654
643
|
}
|
|
655
644
|
function getFastRowIdByKey(row, rowKey) {
|
|
656
|
-
|
|
645
|
+
return row[rowKey];
|
|
657
646
|
}
|
|
658
647
|
function updateFastRowKey(rowOpts, row, rowKey) {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
648
|
+
let rowid = encodeRowid(getFastRowIdByKey(row, rowKey));
|
|
649
|
+
if (eqEmptyValue(rowid)) {
|
|
650
|
+
const newRowid = createRowId(rowOpts, row, rowKey);
|
|
651
|
+
rowid = "" + newRowid;
|
|
652
|
+
row[rowKey] = newRowid;
|
|
653
|
+
}
|
|
654
|
+
return rowid;
|
|
666
655
|
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
656
|
+
function handleFieldOrColumn($xeTable, fieldOrColumn) {
|
|
657
|
+
if (fieldOrColumn) {
|
|
658
|
+
return XEUtils.isString(fieldOrColumn) || XEUtils.isNumber(fieldOrColumn) ? $xeTable.getColumnByField(`${fieldOrColumn}`) : fieldOrColumn;
|
|
659
|
+
}
|
|
660
|
+
return null;
|
|
672
661
|
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
662
|
+
function handleRowidOrRow($xeTable, rowidOrRow) {
|
|
663
|
+
if (rowidOrRow) {
|
|
664
|
+
const rowid = XEUtils.isString(rowidOrRow) || XEUtils.isNumber(rowidOrRow) ? rowidOrRow : getRowid($xeTable, rowidOrRow);
|
|
665
|
+
return $xeTable.getRowById(rowid);
|
|
666
|
+
}
|
|
667
|
+
return null;
|
|
679
668
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
669
|
+
function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
|
|
670
|
+
const { height, minHeight, maxHeight } = cellOpts;
|
|
671
|
+
let cellHeight = rowRest.resizeHeight || height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
672
|
+
if (maxHeight && maxHeight <= cellHeight) {
|
|
673
|
+
cellHeight = maxHeight;
|
|
674
|
+
}
|
|
675
|
+
if (minHeight && minHeight >= cellHeight) {
|
|
676
|
+
cellHeight = minHeight;
|
|
677
|
+
}
|
|
678
|
+
return cellHeight;
|
|
690
679
|
}
|
|
691
680
|
function getPaddingLeftRightSize(elem) {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
681
|
+
if (elem) {
|
|
682
|
+
const computedStyle = getComputedStyle(elem);
|
|
683
|
+
const paddingLeft = XEUtils.toNumber(computedStyle.paddingLeft);
|
|
684
|
+
const paddingRight = XEUtils.toNumber(computedStyle.paddingRight);
|
|
685
|
+
return paddingLeft + paddingRight;
|
|
686
|
+
}
|
|
687
|
+
return 0;
|
|
699
688
|
}
|
|
700
689
|
function getElementMarginAndWidth(elem) {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
690
|
+
if (elem) {
|
|
691
|
+
const computedStyle = getComputedStyle(elem);
|
|
692
|
+
const marginLeft = XEUtils.toNumber(computedStyle.marginLeft);
|
|
693
|
+
const marginRight = XEUtils.toNumber(computedStyle.marginRight);
|
|
694
|
+
return elem.offsetWidth + marginLeft + marginRight;
|
|
695
|
+
}
|
|
696
|
+
return 0;
|
|
708
697
|
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
return [];
|
|
698
|
+
function toFilters(filters, colid) {
|
|
699
|
+
if (filters) {
|
|
700
|
+
if (XEUtils.isArray(filters)) {
|
|
701
|
+
return filters.map(({ label, value, data, resetValue, checked }) => {
|
|
702
|
+
return { label, value, data, resetValue, checked: !!checked, _checked: !!checked, _colId: colid };
|
|
703
|
+
});
|
|
717
704
|
}
|
|
718
|
-
return
|
|
705
|
+
return [];
|
|
706
|
+
}
|
|
707
|
+
return filters;
|
|
719
708
|
}
|
|
720
|
-
|
|
721
|
-
|
|
709
|
+
function toTreePathSeq(path) {
|
|
710
|
+
return path.map((num, i) => i % 2 === 0 ? Number(num) + 1 : ".").join("");
|
|
722
711
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
712
|
+
function getCellValue(row, column) {
|
|
713
|
+
if (column) {
|
|
714
|
+
return XEUtils.get(row, column.field);
|
|
715
|
+
}
|
|
716
|
+
return null;
|
|
728
717
|
}
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
718
|
+
function setCellValue(row, column, value) {
|
|
719
|
+
if (column) {
|
|
720
|
+
XEUtils.set(row, column.field, value);
|
|
721
|
+
}
|
|
733
722
|
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
723
|
+
function getRefElem(refEl) {
|
|
724
|
+
if (refEl) {
|
|
725
|
+
const rest = refEl.value;
|
|
726
|
+
if (rest) {
|
|
727
|
+
return rest.$el || rest;
|
|
740
728
|
}
|
|
741
|
-
|
|
729
|
+
}
|
|
730
|
+
return null;
|
|
742
731
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
732
|
+
function getCalcHeight(height) {
|
|
733
|
+
if (height === "unset") {
|
|
734
|
+
return 0;
|
|
735
|
+
}
|
|
736
|
+
return height || 0;
|
|
748
737
|
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
if (reMaxWidth) {
|
|
763
|
-
const customMaxWidth = XEUtils.isFunction(reMaxWidth) ? reMaxWidth(params) : reMaxWidth;
|
|
764
|
-
if (customMaxWidth !== 'auto') {
|
|
765
|
-
return Math.max(1, XEUtils.toNumber(customMaxWidth));
|
|
766
|
-
}
|
|
738
|
+
function getColReMaxWidth(params) {
|
|
739
|
+
const { $table, column, cell } = params;
|
|
740
|
+
const internalData = $table.internalData;
|
|
741
|
+
const { elemStore } = internalData;
|
|
742
|
+
const { computeColumnOpts, computeResizableOpts } = $table.getComputeMaps();
|
|
743
|
+
const resizableOpts = computeResizableOpts.value;
|
|
744
|
+
const columnOpts = computeColumnOpts.value;
|
|
745
|
+
const { maxWidth: reMaxWidth } = resizableOpts;
|
|
746
|
+
const colMaxWidth = column.maxWidth || columnOpts.maxWidth;
|
|
747
|
+
if (reMaxWidth) {
|
|
748
|
+
const customMaxWidth = XEUtils.isFunction(reMaxWidth) ? reMaxWidth(params) : reMaxWidth;
|
|
749
|
+
if (customMaxWidth !== "auto") {
|
|
750
|
+
return Math.max(1, XEUtils.toNumber(customMaxWidth));
|
|
767
751
|
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
}
|
|
752
|
+
}
|
|
753
|
+
const minTitleWidth = XEUtils.floor((XEUtils.toNumber(getComputedStyle(cell).fontSize) || 14) * 1.8);
|
|
754
|
+
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(queryElement(cell, ".vxe-cell"));
|
|
755
|
+
const mWidth = minTitleWidth + paddingLeftRight;
|
|
756
|
+
if (colMaxWidth) {
|
|
757
|
+
const bodyScrollElem = getRefElem(elemStore["main-body-scroll"]);
|
|
758
|
+
if (bodyScrollElem) {
|
|
759
|
+
if (isScale(colMaxWidth)) {
|
|
760
|
+
const bodyWidth = bodyScrollElem.clientWidth - 1;
|
|
761
|
+
const meanWidth = bodyWidth / 100;
|
|
762
|
+
return Math.max(mWidth, Math.floor(XEUtils.toInteger(colMaxWidth) * meanWidth));
|
|
763
|
+
} else if (isPx(colMaxWidth)) {
|
|
764
|
+
return Math.max(mWidth, XEUtils.toInteger(colMaxWidth));
|
|
765
|
+
}
|
|
784
766
|
}
|
|
785
|
-
|
|
767
|
+
}
|
|
768
|
+
return -1;
|
|
786
769
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
if (reMinWidth) {
|
|
800
|
-
const customMinWidth = XEUtils.isFunction(reMinWidth) ? reMinWidth(params) : reMinWidth;
|
|
801
|
-
if (customMinWidth !== 'auto') {
|
|
802
|
-
return Math.max(1, XEUtils.toNumber(customMinWidth));
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
const { elemStore } = internalData;
|
|
806
|
-
const { showHeaderOverflow: allColumnHeaderOverflow } = tableProps;
|
|
807
|
-
const { showHeaderOverflow } = column;
|
|
808
|
-
const colMinWidth = column.minWidth || columnOpts.minWidth;
|
|
809
|
-
const headOverflow = XEUtils.isUndefined(showHeaderOverflow) || XEUtils.isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
810
|
-
const showEllipsis = headOverflow === 'ellipsis';
|
|
811
|
-
const showTitle = headOverflow === 'title';
|
|
812
|
-
const showTooltip = headOverflow === true || headOverflow === 'tooltip';
|
|
813
|
-
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
814
|
-
const minTitleWidth = XEUtils.floor((XEUtils.toNumber(getComputedStyle(cell).fontSize) || 14) * 1.8);
|
|
815
|
-
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(queryElement(cell, '.vxe-cell'));
|
|
816
|
-
let mWidth = minTitleWidth + paddingLeftRight;
|
|
817
|
-
// 默认最小宽处理
|
|
818
|
-
if (hasEllipsis) {
|
|
819
|
-
const dragIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--drag-handle'));
|
|
820
|
-
const checkboxIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--checkbox'));
|
|
821
|
-
const requiredIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--required-icon'));
|
|
822
|
-
const editIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--edit-icon'));
|
|
823
|
-
const prefixIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell-title-prefix-icon'));
|
|
824
|
-
const suffixIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell-title-suffix-icon'));
|
|
825
|
-
const sortIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--sort'));
|
|
826
|
-
const filterIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--filter'));
|
|
827
|
-
mWidth += dragIconWidth + checkboxIconWidth + requiredIconWidth + editIconWidth + prefixIconWidth + suffixIconWidth + filterIconWidth + sortIconWidth;
|
|
770
|
+
function getColReMinWidth(params) {
|
|
771
|
+
const { $table, column, cell } = params;
|
|
772
|
+
const tableProps = $table.props;
|
|
773
|
+
const internalData = $table.internalData;
|
|
774
|
+
const { computeColumnOpts, computeResizableOpts } = $table.getComputeMaps();
|
|
775
|
+
const resizableOpts = computeResizableOpts.value;
|
|
776
|
+
const columnOpts = computeColumnOpts.value;
|
|
777
|
+
const { minWidth: reMinWidth } = resizableOpts;
|
|
778
|
+
if (reMinWidth) {
|
|
779
|
+
const customMinWidth = XEUtils.isFunction(reMinWidth) ? reMinWidth(params) : reMinWidth;
|
|
780
|
+
if (customMinWidth !== "auto") {
|
|
781
|
+
return Math.max(1, XEUtils.toNumber(customMinWidth));
|
|
828
782
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
783
|
+
}
|
|
784
|
+
const { elemStore } = internalData;
|
|
785
|
+
const { showHeaderOverflow: allColumnHeaderOverflow } = tableProps;
|
|
786
|
+
const { showHeaderOverflow } = column;
|
|
787
|
+
const colMinWidth = column.minWidth || columnOpts.minWidth;
|
|
788
|
+
const headOverflow = XEUtils.isUndefined(showHeaderOverflow) || XEUtils.isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
|
|
789
|
+
const showEllipsis = headOverflow === "ellipsis";
|
|
790
|
+
const showTitle = headOverflow === "title";
|
|
791
|
+
const showTooltip = headOverflow === true || headOverflow === "tooltip";
|
|
792
|
+
const hasEllipsis = showTitle || showTooltip || showEllipsis;
|
|
793
|
+
const minTitleWidth = XEUtils.floor((XEUtils.toNumber(getComputedStyle(cell).fontSize) || 14) * 1.8);
|
|
794
|
+
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(queryElement(cell, ".vxe-cell"));
|
|
795
|
+
let mWidth = minTitleWidth + paddingLeftRight;
|
|
796
|
+
if (hasEllipsis) {
|
|
797
|
+
const dragIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell--drag-handle"));
|
|
798
|
+
const checkboxIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell--checkbox"));
|
|
799
|
+
const requiredIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell--required-icon"));
|
|
800
|
+
const editIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell--edit-icon"));
|
|
801
|
+
const prefixIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell-title-prefix-icon"));
|
|
802
|
+
const suffixIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell-title-suffix-icon"));
|
|
803
|
+
const sortIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell--sort"));
|
|
804
|
+
const filterIconWidth = getElementMarginAndWidth(queryElement(cell, ".vxe-cell--filter"));
|
|
805
|
+
mWidth += dragIconWidth + checkboxIconWidth + requiredIconWidth + editIconWidth + prefixIconWidth + suffixIconWidth + filterIconWidth + sortIconWidth;
|
|
806
|
+
}
|
|
807
|
+
if (colMinWidth) {
|
|
808
|
+
const bodyScrollElem = getRefElem(elemStore["main-body-scroll"]);
|
|
809
|
+
if (bodyScrollElem) {
|
|
810
|
+
if (isScale(colMinWidth)) {
|
|
811
|
+
const bodyWidth = bodyScrollElem.clientWidth - 1;
|
|
812
|
+
const meanWidth = bodyWidth / 100;
|
|
813
|
+
return Math.max(mWidth, Math.floor(XEUtils.toInteger(colMinWidth) * meanWidth));
|
|
814
|
+
} else if (isPx(colMinWidth)) {
|
|
815
|
+
return Math.max(mWidth, XEUtils.toInteger(colMinWidth));
|
|
816
|
+
}
|
|
842
817
|
}
|
|
843
|
-
|
|
818
|
+
}
|
|
819
|
+
return mWidth;
|
|
844
820
|
}
|
|
845
|
-
|
|
846
|
-
|
|
821
|
+
function isColumnInfo(column) {
|
|
822
|
+
return column && (column.constructor === ColumnInfo || column instanceof ColumnInfo);
|
|
847
823
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
return result;
|
|
824
|
+
function getColumnList(columns) {
|
|
825
|
+
const result = [];
|
|
826
|
+
columns.forEach((column) => {
|
|
827
|
+
result.push(...column.children && column.children.length ? getColumnList(column.children) : [column]);
|
|
828
|
+
});
|
|
829
|
+
return result;
|
|
855
830
|
}
|
|
856
|
-
|
|
857
|
-
|
|
831
|
+
function createColumn($xeTable, options, renderOptions) {
|
|
832
|
+
return isColumnInfo(options) ? options : reactive(new ColumnInfo($xeTable, options, renderOptions));
|
|
858
833
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
}
|
|
872
|
-
});
|
|
834
|
+
function watchColumn($xeTable, props, column) {
|
|
835
|
+
Object.keys(props).forEach((name) => {
|
|
836
|
+
watch(() => props[name], (value) => {
|
|
837
|
+
column.update(name, value);
|
|
838
|
+
if ($xeTable) {
|
|
839
|
+
if (name === "filters") {
|
|
840
|
+
$xeTable.setFilter(column, value);
|
|
841
|
+
$xeTable.handleUpdateDataQueue();
|
|
842
|
+
} else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
|
|
843
|
+
$xeTable.handleRefreshColumnQueue();
|
|
844
|
+
}
|
|
845
|
+
}
|
|
873
846
|
});
|
|
847
|
+
});
|
|
874
848
|
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
reactData.staticColumns = staticColumns.slice(0);
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
export function destroyColumn($xeTable, column) {
|
|
888
|
-
const { reactData } = $xeTable;
|
|
889
|
-
const { staticColumns } = reactData;
|
|
890
|
-
const matchObj = XEUtils.findTree(staticColumns, item => item.id === column.id, { children: 'children' });
|
|
891
|
-
if (matchObj) {
|
|
892
|
-
matchObj.items.splice(matchObj.index, 1);
|
|
893
|
-
}
|
|
849
|
+
function assembleColumn($xeTable, elem, column, colgroup) {
|
|
850
|
+
const { reactData } = $xeTable;
|
|
851
|
+
const { staticColumns } = reactData;
|
|
852
|
+
const parentElem = elem.parentNode;
|
|
853
|
+
const parentColumn = colgroup ? colgroup.columnConfig : null;
|
|
854
|
+
const parentCols = parentColumn ? parentColumn.children : staticColumns;
|
|
855
|
+
if (parentElem && parentCols) {
|
|
856
|
+
column.defaultParentId = parentColumn ? parentColumn.id : null;
|
|
857
|
+
parentCols.splice(XEUtils.arrayIndexOf(parentElem.children, elem), 0, column);
|
|
894
858
|
reactData.staticColumns = staticColumns.slice(0);
|
|
859
|
+
}
|
|
895
860
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
const column = fullColumnIdData[parentColId].column;
|
|
905
|
-
parentColId = column.parentId;
|
|
906
|
-
if (!parentColId) {
|
|
907
|
-
return column;
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
return column;
|
|
861
|
+
function destroyColumn($xeTable, column) {
|
|
862
|
+
const { reactData } = $xeTable;
|
|
863
|
+
const { staticColumns } = reactData;
|
|
864
|
+
const matchObj = XEUtils.findTree(staticColumns, (item) => item.id === column.id, { children: "children" });
|
|
865
|
+
if (matchObj) {
|
|
866
|
+
matchObj.items.splice(matchObj.index, 1);
|
|
867
|
+
}
|
|
868
|
+
reactData.staticColumns = staticColumns.slice(0);
|
|
911
869
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
870
|
+
function getRootColumn($xeTable, column) {
|
|
871
|
+
const { internalData } = $xeTable;
|
|
872
|
+
const { fullColumnIdData } = internalData;
|
|
873
|
+
if (!column) {
|
|
874
|
+
return null;
|
|
875
|
+
}
|
|
876
|
+
let parentColId = column.parentId;
|
|
877
|
+
while (fullColumnIdData[parentColId]) {
|
|
878
|
+
const column2 = fullColumnIdData[parentColId].column;
|
|
879
|
+
parentColId = column2.parentId;
|
|
880
|
+
if (!parentColId) {
|
|
881
|
+
return column2;
|
|
916
882
|
}
|
|
917
|
-
|
|
883
|
+
}
|
|
884
|
+
return column;
|
|
918
885
|
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
886
|
+
function getFirstChildColumn(column) {
|
|
887
|
+
const { children } = column;
|
|
888
|
+
if (children && children.length) {
|
|
889
|
+
return getFirstChildColumn(XEUtils.first(children));
|
|
890
|
+
}
|
|
891
|
+
return column;
|
|
925
892
|
}
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
internalData.initStatus = false;
|
|
933
|
-
const actionList = [
|
|
934
|
-
$xeTable.clearSort(),
|
|
935
|
-
$xeTable.clearCurrentRow(),
|
|
936
|
-
$xeTable.clearCurrentColumn(),
|
|
937
|
-
$xeTable.clearRadioRow(),
|
|
938
|
-
$xeTable.clearRadioReserve(),
|
|
939
|
-
$xeTable.clearCheckboxRow(),
|
|
940
|
-
$xeTable.clearCheckboxReserve(),
|
|
941
|
-
$xeTable.clearRowExpand(),
|
|
942
|
-
$xeTable.clearTreeExpand(),
|
|
943
|
-
$xeTable.clearTreeExpandReserve(),
|
|
944
|
-
$xeTable.clearPendingRow()
|
|
945
|
-
];
|
|
946
|
-
if ($xeTable.clearFilter) {
|
|
947
|
-
actionList.push($xeTable.clearFilter());
|
|
948
|
-
}
|
|
949
|
-
if ($xeTable.clearSelected && (hasEnableConf(keyboardConfig, keyboardOpts) || hasEnableConf(mouseConfig, mouseOpts))) {
|
|
950
|
-
actionList.push($xeTable.clearSelected());
|
|
951
|
-
}
|
|
952
|
-
if ($xeTable.clearCellAreas && hasEnableConf(mouseConfig, mouseOpts)) {
|
|
953
|
-
actionList.push($xeTable.clearCellAreas(), $xeTable.clearCopyCellArea());
|
|
954
|
-
}
|
|
955
|
-
return Promise.all(actionList).then(() => {
|
|
956
|
-
return $xeTable.clearScroll();
|
|
957
|
-
});
|
|
893
|
+
function getLastChildColumn(column) {
|
|
894
|
+
const { children } = column;
|
|
895
|
+
if (children && children.length) {
|
|
896
|
+
return getFirstChildColumn(XEUtils.last(children));
|
|
897
|
+
}
|
|
898
|
+
return column;
|
|
958
899
|
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
900
|
+
function clearTableDefaultStatus($xeTable) {
|
|
901
|
+
const { props, internalData } = $xeTable;
|
|
902
|
+
const { keyboardConfig, mouseConfig } = props;
|
|
903
|
+
const { computeMouseOpts, computeKeyboardOpts } = $xeTable.getComputeMaps();
|
|
904
|
+
const mouseOpts = computeMouseOpts.value;
|
|
905
|
+
const keyboardOpts = computeKeyboardOpts.value;
|
|
906
|
+
internalData.initStatus = false;
|
|
907
|
+
const actionList = [
|
|
908
|
+
$xeTable.clearSort(),
|
|
909
|
+
$xeTable.clearCurrentRow(),
|
|
910
|
+
$xeTable.clearCurrentColumn(),
|
|
911
|
+
$xeTable.clearRadioRow(),
|
|
912
|
+
$xeTable.clearRadioReserve(),
|
|
913
|
+
$xeTable.clearCheckboxRow(),
|
|
914
|
+
$xeTable.clearCheckboxReserve(),
|
|
915
|
+
$xeTable.clearRowExpand(),
|
|
916
|
+
$xeTable.clearTreeExpand(),
|
|
917
|
+
$xeTable.clearTreeExpandReserve(),
|
|
918
|
+
$xeTable.clearPendingRow()
|
|
919
|
+
];
|
|
920
|
+
if ($xeTable.clearFilter) {
|
|
921
|
+
actionList.push(
|
|
922
|
+
$xeTable.clearFilter()
|
|
923
|
+
);
|
|
924
|
+
}
|
|
925
|
+
if ($xeTable.clearSelected && (hasEnableConf(keyboardConfig, keyboardOpts) || hasEnableConf(mouseConfig, mouseOpts))) {
|
|
926
|
+
actionList.push(
|
|
927
|
+
$xeTable.clearSelected()
|
|
928
|
+
);
|
|
929
|
+
}
|
|
930
|
+
if ($xeTable.clearCellAreas && hasEnableConf(mouseConfig, mouseOpts)) {
|
|
931
|
+
actionList.push(
|
|
932
|
+
$xeTable.clearCellAreas(),
|
|
933
|
+
$xeTable.clearCopyCellArea()
|
|
934
|
+
);
|
|
935
|
+
}
|
|
936
|
+
return Promise.all(actionList).then(() => {
|
|
937
|
+
return $xeTable.clearScroll();
|
|
938
|
+
});
|
|
964
939
|
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
940
|
+
function clearTableAllStatus($xeTable) {
|
|
941
|
+
if ($xeTable.clearFilter) {
|
|
942
|
+
$xeTable.clearFilter();
|
|
943
|
+
}
|
|
944
|
+
return clearTableDefaultStatus($xeTable);
|
|
945
|
+
}
|
|
946
|
+
function rowToVisible($xeTable, row) {
|
|
947
|
+
const reactData = $xeTable.reactData;
|
|
948
|
+
const internalData = $xeTable.internalData;
|
|
949
|
+
const { computeLeftFixedWidth, computeRightFixedWidth, computeRowOpts, computeCellOpts, computeDefaultRowHeight } = $xeTable.getComputeMaps();
|
|
950
|
+
const { scrollYLoad, scrollYTop, isAllOverflow } = reactData;
|
|
951
|
+
const { elemStore, afterFullData, fullAllDataRowIdData, isResizeCellHeight } = internalData;
|
|
952
|
+
const rowOpts = computeRowOpts.value;
|
|
953
|
+
const cellOpts = computeCellOpts.value;
|
|
954
|
+
const defaultRowHeight = computeDefaultRowHeight.value;
|
|
955
|
+
const leftFixedWidth = computeLeftFixedWidth.value;
|
|
956
|
+
const rightFixedWidth = computeRightFixedWidth.value;
|
|
957
|
+
const bodyScrollElem = getRefElem(elemStore["main-body-scroll"]);
|
|
958
|
+
const rowid = getRowid($xeTable, row);
|
|
959
|
+
if (bodyScrollElem) {
|
|
960
|
+
const bodyHeight = bodyScrollElem.clientHeight;
|
|
961
|
+
const bodyScrollTop = bodyScrollElem.scrollTop;
|
|
962
|
+
const trElem = bodyScrollElem.querySelector(`[rowid="${rowid}"]`);
|
|
963
|
+
if (trElem) {
|
|
964
|
+
const trOffsetTop = trElem.offsetTop + (scrollYLoad ? scrollYTop : 0);
|
|
965
|
+
const trHeight = trElem.clientHeight;
|
|
966
|
+
if (trOffsetTop < bodyScrollTop || trOffsetTop > bodyScrollTop + bodyHeight) {
|
|
967
|
+
return $xeTable.scrollTo(null, trOffsetTop);
|
|
968
|
+
} else if (trOffsetTop + trHeight >= bodyHeight + bodyScrollTop) {
|
|
969
|
+
return $xeTable.scrollTo(null, bodyScrollTop + trHeight);
|
|
970
|
+
}
|
|
971
|
+
} else {
|
|
972
|
+
if (scrollYLoad) {
|
|
973
|
+
const isCustomCellHeight = isResizeCellHeight || cellOpts.height || rowOpts.height;
|
|
974
|
+
if (!isCustomCellHeight && isAllOverflow) {
|
|
975
|
+
return $xeTable.scrollTo(null, ($xeTable.findRowIndexOf(afterFullData, row) - 1) * defaultRowHeight);
|
|
992
976
|
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
return $xeTable.scrollTo(null, ($xeTable.findRowIndexOf(afterFullData, row) - 1) * defaultRowHeight);
|
|
999
|
-
}
|
|
1000
|
-
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
1001
|
-
const rHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
1002
|
-
const scrollTop = rowRest.oTop;
|
|
1003
|
-
if (scrollTop < bodyScrollTop) {
|
|
1004
|
-
return $xeTable.scrollTo(null, scrollTop - leftFixedWidth - 1);
|
|
1005
|
-
}
|
|
1006
|
-
return $xeTable.scrollTo(null, (scrollTop + rHeight) - (bodyHeight - rightFixedWidth - 1));
|
|
1007
|
-
}
|
|
977
|
+
const rowRest = fullAllDataRowIdData[rowid] || {};
|
|
978
|
+
const rHeight = rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
979
|
+
const scrollTop = rowRest.oTop;
|
|
980
|
+
if (scrollTop < bodyScrollTop) {
|
|
981
|
+
return $xeTable.scrollTo(null, scrollTop - leftFixedWidth - 1);
|
|
1008
982
|
}
|
|
983
|
+
return $xeTable.scrollTo(null, scrollTop + rHeight - (bodyHeight - rightFixedWidth - 1));
|
|
984
|
+
}
|
|
1009
985
|
}
|
|
1010
|
-
|
|
986
|
+
}
|
|
987
|
+
return Promise.resolve();
|
|
1011
988
|
}
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
989
|
+
function colToVisible($xeTable, isForce, column, row) {
|
|
990
|
+
const reactData = $xeTable.reactData;
|
|
991
|
+
const internalData = $xeTable.internalData;
|
|
992
|
+
const { computeLeftFixedWidth, computeRightFixedWidth } = $xeTable.getComputeMaps();
|
|
993
|
+
const { scrollXLoad, scrollXLeft } = reactData;
|
|
994
|
+
const { elemStore, visibleColumn } = internalData;
|
|
995
|
+
const leftFixedWidth = computeLeftFixedWidth.value;
|
|
996
|
+
const rightFixedWidth = computeRightFixedWidth.value;
|
|
997
|
+
const bodyScrollElem = getRefElem(elemStore["main-body-scroll"]);
|
|
998
|
+
if (column.fixed) {
|
|
999
|
+
return Promise.resolve();
|
|
1000
|
+
}
|
|
1001
|
+
if (bodyScrollElem) {
|
|
1002
|
+
const bodyWidth = bodyScrollElem.clientWidth;
|
|
1003
|
+
const bodyScrollLeft = bodyScrollElem.scrollLeft;
|
|
1004
|
+
let tdElem = null;
|
|
1005
|
+
if (row) {
|
|
1006
|
+
const rowid = getRowid($xeTable, row);
|
|
1007
|
+
tdElem = bodyScrollElem.querySelector(`[rowid="${rowid}"] .${column.id}`);
|
|
1023
1008
|
}
|
|
1024
|
-
if (
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1009
|
+
if (!tdElem) {
|
|
1010
|
+
tdElem = bodyScrollElem.querySelector(`.${column.id}`);
|
|
1011
|
+
}
|
|
1012
|
+
if (tdElem) {
|
|
1013
|
+
const tdOffsetLeft = tdElem.offsetLeft + (scrollXLoad ? scrollXLeft : 0);
|
|
1014
|
+
const cellWidth = tdElem.clientWidth;
|
|
1015
|
+
if (isForce || !(tdOffsetLeft <= bodyScrollLeft + leftFixedWidth && tdOffsetLeft + cellWidth > bodyScrollLeft + leftFixedWidth) && !(tdOffsetLeft >= bodyScrollLeft + leftFixedWidth && tdOffsetLeft < bodyScrollLeft + bodyWidth - rightFixedWidth)) {
|
|
1016
|
+
if (tdOffsetLeft < bodyScrollLeft + leftFixedWidth) {
|
|
1017
|
+
return $xeTable.scrollTo(tdOffsetLeft - leftFixedWidth - 1);
|
|
1018
|
+
} else if (tdOffsetLeft + cellWidth - bodyScrollLeft > bodyWidth - rightFixedWidth) {
|
|
1019
|
+
return $xeTable.scrollTo(tdOffsetLeft + cellWidth - (bodyWidth - rightFixedWidth - 1));
|
|
1034
1020
|
}
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1021
|
+
}
|
|
1022
|
+
} else {
|
|
1023
|
+
if (scrollXLoad) {
|
|
1024
|
+
let tdOffsetLeft = 0;
|
|
1025
|
+
const cellWidth = column.renderWidth;
|
|
1026
|
+
for (let i = 0; i < visibleColumn.length; i++) {
|
|
1027
|
+
const currCol = visibleColumn[i];
|
|
1028
|
+
if (currCol === column || currCol.id === column.id) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
tdOffsetLeft += currCol.renderWidth;
|
|
1048
1032
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
const currCol = visibleColumn[i];
|
|
1055
|
-
if (currCol === column || currCol.id === column.id) {
|
|
1056
|
-
break;
|
|
1057
|
-
}
|
|
1058
|
-
tdOffsetLeft += currCol.renderWidth;
|
|
1059
|
-
}
|
|
1060
|
-
// 检测是否在可视区中
|
|
1061
|
-
if (isForce || (!(tdOffsetLeft <= (bodyScrollLeft + leftFixedWidth) && (tdOffsetLeft + cellWidth) > (bodyScrollLeft + leftFixedWidth)) &&
|
|
1062
|
-
!(tdOffsetLeft >= (bodyScrollLeft + leftFixedWidth) && tdOffsetLeft < (bodyScrollLeft + bodyWidth - rightFixedWidth)))) {
|
|
1063
|
-
if (tdOffsetLeft < bodyScrollLeft) {
|
|
1064
|
-
return $xeTable.scrollTo(tdOffsetLeft - leftFixedWidth - 1);
|
|
1065
|
-
}
|
|
1066
|
-
return $xeTable.scrollTo((tdOffsetLeft + cellWidth) - (bodyWidth - rightFixedWidth - 1));
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1033
|
+
if (isForce || !(tdOffsetLeft <= bodyScrollLeft + leftFixedWidth && tdOffsetLeft + cellWidth > bodyScrollLeft + leftFixedWidth) && !(tdOffsetLeft >= bodyScrollLeft + leftFixedWidth && tdOffsetLeft < bodyScrollLeft + bodyWidth - rightFixedWidth)) {
|
|
1034
|
+
if (tdOffsetLeft < bodyScrollLeft) {
|
|
1035
|
+
return $xeTable.scrollTo(tdOffsetLeft - leftFixedWidth - 1);
|
|
1036
|
+
}
|
|
1037
|
+
return $xeTable.scrollTo(tdOffsetLeft + cellWidth - (bodyWidth - rightFixedWidth - 1));
|
|
1069
1038
|
}
|
|
1039
|
+
}
|
|
1070
1040
|
}
|
|
1071
|
-
|
|
1041
|
+
}
|
|
1042
|
+
return Promise.resolve();
|
|
1072
1043
|
}
|
|
1073
1044
|
function hangleBolleanDefaultValue(currVal, defVal) {
|
|
1074
|
-
|
|
1045
|
+
return XEUtils.isBoolean(currVal) ? currVal : defVal;
|
|
1075
1046
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1047
|
+
function handleCustomStoreConfig($xeTable) {
|
|
1048
|
+
const { computeCustomOpts } = $xeTable.getComputeMaps();
|
|
1049
|
+
const customOpts = computeCustomOpts.value;
|
|
1050
|
+
const { storage, storeOptions } = customOpts;
|
|
1051
|
+
const isAllCustom = storage === true;
|
|
1052
|
+
const storageOpts = Object.assign({}, isAllCustom ? {} : storage || {}, storeOptions);
|
|
1053
|
+
const isCustomAlign = hangleBolleanDefaultValue(storageOpts.align, isAllCustom);
|
|
1054
|
+
const isCustomHeaderAlign = hangleBolleanDefaultValue(storageOpts.headerAlign, isAllCustom);
|
|
1055
|
+
const isCustomFooterAlign = hangleBolleanDefaultValue(storageOpts.footerAlign, isAllCustom);
|
|
1056
|
+
const isCustomResizable = hangleBolleanDefaultValue(storageOpts.resizable, isAllCustom);
|
|
1057
|
+
const isCustomVisible = hangleBolleanDefaultValue(storageOpts.visible, isAllCustom);
|
|
1058
|
+
const isCustomFixed = hangleBolleanDefaultValue(storageOpts.fixed, isAllCustom);
|
|
1059
|
+
const isCustomSort = hangleBolleanDefaultValue(storageOpts.sort, isAllCustom);
|
|
1060
|
+
const isCustomAggGroup = hangleBolleanDefaultValue(storageOpts.aggGroup, isAllCustom);
|
|
1061
|
+
const isCustomAggFunc = hangleBolleanDefaultValue(storageOpts.aggFunc, isAllCustom);
|
|
1062
|
+
const isCustomPager = hangleBolleanDefaultValue(storageOpts.pager, isAllCustom);
|
|
1063
|
+
return {
|
|
1064
|
+
isCustomAlign,
|
|
1065
|
+
isCustomHeaderAlign,
|
|
1066
|
+
isCustomFooterAlign,
|
|
1067
|
+
isCustomResizable,
|
|
1068
|
+
isCustomVisible,
|
|
1069
|
+
isCustomFixed,
|
|
1070
|
+
isCustomSort,
|
|
1071
|
+
isCustomAggGroup,
|
|
1072
|
+
isCustomAggFunc,
|
|
1073
|
+
isCustomPager
|
|
1074
|
+
};
|
|
1104
1075
|
}
|
|
1076
|
+
export {
|
|
1077
|
+
assembleColumn,
|
|
1078
|
+
clearTableAllStatus,
|
|
1079
|
+
clearTableDefaultStatus,
|
|
1080
|
+
colToVisible,
|
|
1081
|
+
convertHeaderColumnToRows,
|
|
1082
|
+
convertHeaderToGridRows,
|
|
1083
|
+
createColumn,
|
|
1084
|
+
createHandleGetRowId,
|
|
1085
|
+
createHandleUpdateRowId,
|
|
1086
|
+
createInternalData,
|
|
1087
|
+
createReactData,
|
|
1088
|
+
createRowId,
|
|
1089
|
+
destroyColumn,
|
|
1090
|
+
encodeRowid,
|
|
1091
|
+
getCalcHeight,
|
|
1092
|
+
getCellRestHeight,
|
|
1093
|
+
getCellValue,
|
|
1094
|
+
getColReMaxWidth,
|
|
1095
|
+
getColReMinWidth,
|
|
1096
|
+
getColumnList,
|
|
1097
|
+
getFirstChildColumn,
|
|
1098
|
+
getLastChildColumn,
|
|
1099
|
+
getRefElem,
|
|
1100
|
+
getRootColumn,
|
|
1101
|
+
getRowMaxHeight,
|
|
1102
|
+
getRowUniqueId,
|
|
1103
|
+
getRowid,
|
|
1104
|
+
getRowkey,
|
|
1105
|
+
handleCustomStoreConfig,
|
|
1106
|
+
handleFieldOrColumn,
|
|
1107
|
+
handleRowidOrRow,
|
|
1108
|
+
hasDeepKey,
|
|
1109
|
+
isColumnInfo,
|
|
1110
|
+
restoreScrollLocation,
|
|
1111
|
+
rowToVisible,
|
|
1112
|
+
setCellValue,
|
|
1113
|
+
toFilters,
|
|
1114
|
+
toTreePathSeq,
|
|
1115
|
+
watchColumn
|
|
1116
|
+
};
|