vxe-table 4.23.5 → 4.23.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.esm.js +32456 -33938
- package/dist/style.css +4501 -1
- package/dist/style.mini.css +1 -0
- package/es/colgroup/index.d.ts +760 -0
- package/es/colgroup/index.js +16 -13
- package/es/column/index.d.ts +760 -0
- package/es/column/index.js +16 -13
- package/es/components.d.ts +9 -0
- package/es/components.js +29 -29
- package/es/grid/index.d.ts +2824 -0
- package/es/grid/index.js +14 -9
- package/es/grid/src/emits.d.ts +2 -0
- package/es/grid/src/emits.js +18 -15
- package/es/grid/src/grid.d.ts +556 -0
- package/es/grid/src/grid.js +1695 -1758
- package/es/grid/src/props.d.ts +200 -0
- package/es/grid/src/props.js +19 -6
- package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +6 -3
- package/es/index.js +6 -0
- package/es/locale/lang/ar-EG.d.ts +908 -2
- package/es/locale/lang/ar-EG.js +906 -903
- package/es/locale/lang/de-DE.d.ts +908 -2
- package/es/locale/lang/de-DE.js +906 -903
- package/es/locale/lang/en-US.d.ts +908 -2
- package/es/locale/lang/en-US.js +906 -903
- package/es/locale/lang/es-ES.d.ts +908 -2
- package/es/locale/lang/es-ES.js +906 -903
- package/es/locale/lang/fr-FR.d.ts +908 -2
- package/es/locale/lang/fr-FR.js +906 -903
- package/es/locale/lang/hu-HU.d.ts +908 -2
- package/es/locale/lang/hu-HU.js +906 -903
- package/es/locale/lang/hy-AM.d.ts +908 -2
- package/es/locale/lang/hy-AM.js +906 -903
- package/es/locale/lang/id-ID.d.ts +908 -2
- package/es/locale/lang/id-ID.js +906 -903
- package/es/locale/lang/it-IT.d.ts +908 -2
- package/es/locale/lang/it-IT.js +906 -903
- package/es/locale/lang/ja-JP.d.ts +908 -2
- package/es/locale/lang/ja-JP.js +906 -903
- package/es/locale/lang/ko-KR.d.ts +908 -2
- package/es/locale/lang/ko-KR.js +906 -903
- package/es/locale/lang/ms-MY.d.ts +908 -2
- package/es/locale/lang/ms-MY.js +906 -903
- package/es/locale/lang/nb-NO.d.ts +908 -2
- package/es/locale/lang/nb-NO.js +906 -903
- package/es/locale/lang/pt-BR.d.ts +908 -2
- package/es/locale/lang/pt-BR.js +906 -903
- package/es/locale/lang/ru-RU.d.ts +908 -2
- package/es/locale/lang/ru-RU.js +906 -903
- package/es/locale/lang/th-TH.d.ts +908 -2
- package/es/locale/lang/th-TH.js +906 -903
- package/es/locale/lang/ug-CN.d.ts +908 -2
- package/es/locale/lang/ug-CN.js +906 -903
- package/es/locale/lang/uk-UA.d.ts +908 -2
- package/es/locale/lang/uk-UA.js +906 -903
- package/es/locale/lang/uz-UZ.d.ts +908 -2
- package/es/locale/lang/uz-UZ.js +906 -903
- package/es/locale/lang/vi-VN.d.ts +908 -2
- package/es/locale/lang/vi-VN.js +906 -903
- package/es/locale/lang/zh-CHT.d.ts +908 -2
- package/es/locale/lang/zh-CHT.js +906 -903
- package/es/locale/lang/zh-CN.d.ts +908 -2
- package/es/locale/lang/zh-CN.js +906 -903
- package/es/locale/lang/zh-HK.d.ts +908 -2
- package/es/locale/lang/zh-HK.js +910 -2
- package/es/locale/lang/zh-MO.d.ts +908 -2
- package/es/locale/lang/zh-MO.js +910 -2
- package/es/locale/lang/zh-TC.d.ts +908 -0
- package/es/locale/lang/zh-TC.js +910 -2
- package/es/locale/lang/zh-TW.d.ts +908 -2
- package/es/locale/lang/zh-TW.js +910 -2
- package/es/style.css +4501 -1
- package/es/style.mini.css +1 -0
- package/es/table/index.d.ts +2672 -0
- package/es/table/index.js +16 -11
- package/es/table/module/custom/hook.d.ts +1 -0
- package/es/table/module/custom/hook.js +462 -483
- package/es/table/module/custom/panel.d.ts +17 -0
- package/es/table/module/custom/panel.js +1482 -1559
- package/es/table/module/edit/hook.d.ts +1 -0
- package/es/table/module/edit/hook.js +1008 -1078
- package/es/table/module/export/export-panel.d.ts +27 -0
- package/es/table/module/export/export-panel.js +523 -575
- package/es/table/module/export/hook.d.ts +1 -0
- package/es/table/module/export/hook.js +1805 -1884
- package/es/table/module/export/import-panel.d.ts +27 -0
- package/es/table/module/export/import-panel.js +244 -252
- package/es/table/module/export/util.d.ts +5 -0
- package/es/table/module/export/util.js +20 -17
- package/es/table/module/filter/hook.d.ts +1 -0
- package/es/table/module/filter/hook.js +472 -487
- package/es/table/module/filter/panel.d.ts +16 -0
- package/es/table/module/filter/panel.js +251 -275
- package/es/table/module/keyboard/hook.d.ts +1 -0
- package/es/table/module/keyboard/hook.js +445 -497
- package/es/table/module/menu/hook.d.ts +1 -0
- package/es/table/module/menu/hook.js +295 -315
- package/es/table/module/menu/panel.d.ts +2 -0
- package/es/table/module/menu/panel.js +164 -183
- package/es/table/module/validator/hook.d.ts +1 -0
- package/es/table/module/validator/hook.js +522 -571
- package/es/table/render/index.d.ts +1 -0
- package/es/table/render/index.js +1402 -1362
- package/es/table/src/body.d.ts +24 -0
- package/es/table/src/body.js +850 -865
- package/es/table/src/cell.d.ts +192 -0
- package/es/table/src/cell.js +1209 -1207
- package/es/table/src/column.d.ts +263 -0
- package/es/table/src/column.js +178 -174
- package/es/table/src/columnInfo.d.ts +13 -0
- package/es/table/src/columnInfo.js +202 -196
- package/es/table/src/emits.d.ts +2 -0
- package/es/table/src/emits.js +126 -119
- package/es/table/src/footer.d.ts +45 -0
- package/es/table/src/footer.js +336 -340
- package/es/table/src/group.d.ts +178 -0
- package/es/table/src/group.js +49 -46
- package/es/table/src/header.d.ts +26 -0
- package/es/table/src/header.js +517 -519
- package/es/table/src/props.d.ts +238 -0
- package/es/table/src/props.js +331 -328
- package/es/table/src/store.d.ts +6 -0
- package/es/table/src/store.js +9 -6
- package/es/table/src/table.d.ts +539 -0
- package/es/table/src/table.js +14061 -15071
- package/es/table/src/use/cell-view.d.ts +10 -0
- package/es/table/src/use/cell-view.js +36 -33
- package/es/table/src/use/index.d.ts +1 -0
- package/es/table/src/use/index.js +1 -1
- package/es/table/src/util.d.ts +74 -0
- package/es/table/src/util.js +1038 -1026
- package/es/table/style.css +1 -1
- package/es/table/style.mini.css +1 -0
- package/es/toolbar/index.d.ts +340 -0
- package/es/toolbar/index.js +14 -9
- package/es/toolbar/src/toolbar.d.ts +75 -0
- package/es/toolbar/src/toolbar.js +605 -613
- package/es/toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/ui/index.d.ts +86 -0
- package/es/ui/index.js +457 -501
- package/es/ui/src/anime.d.ts +10 -0
- package/es/ui/src/anime.js +40 -40
- package/es/ui/src/comp.d.ts +2 -0
- package/es/ui/src/comp.js +5 -2
- package/es/ui/src/dom.d.ts +80 -0
- package/es/ui/src/dom.js +377 -380
- package/es/ui/src/log.d.ts +6 -0
- package/es/ui/src/log.js +18 -13
- package/es/ui/src/utils.d.ts +23 -0
- package/es/ui/src/utils.js +57 -53
- package/es/ui/src/vn.d.ts +7 -0
- package/es/ui/src/vn.js +49 -42
- package/es/v-x-e-table/index.d.ts +3 -0
- package/es/v-x-e-table/index.js +6 -3
- package/es/vxe-colgroup/index.d.ts +3 -0
- package/es/vxe-colgroup/index.js +6 -3
- package/es/vxe-column/index.d.ts +3 -0
- package/es/vxe-column/index.js +6 -3
- package/es/vxe-grid/index.d.ts +3 -0
- package/es/vxe-grid/index.js +6 -3
- package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
- package/es/vxe-table/index.d.ts +3 -0
- package/es/vxe-table/index.js +6 -3
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.mini.css +1 -0
- package/es/vxe-toolbar/index.d.ts +3 -0
- package/es/vxe-toolbar/index.js +6 -3
- package/es/vxe-toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/vxe-ui/index.d.ts +3 -0
- package/es/vxe-ui/index.js +6 -3
- package/lib/colgroup/index.js +44 -18
- package/lib/colgroup/style/index.js +1 -1
- package/lib/column/index.js +44 -18
- package/lib/column/style/index.js +1 -1
- package/lib/components.js +58 -92
- package/lib/grid/index.js +42 -14
- package/lib/grid/src/emits.js +37 -6
- package/lib/grid/src/grid.js +850 -1195
- package/lib/grid/src/props.js +27 -11
- package/lib/grid/style/index.js +1 -1
- package/lib/{vxe-grid/style/style.min.css → grid/style/style.mini.css} +1 -1
- package/lib/iconfont.1792979665397.ttf +0 -0
- package/lib/iconfont.1792979665397.woff +0 -0
- package/lib/iconfont.1792979665397.woff2 +0 -0
- package/lib/index.common.js +35 -19
- package/lib/index.js +37 -0
- package/lib/index.umd.js +30584 -24324
- package/lib/index.umd.min.js +3 -1
- package/lib/locale/ar-EG.umd.js +948 -0
- package/lib/locale/de-DE.umd.js +948 -0
- package/lib/locale/en-US.umd.js +948 -0
- package/lib/locale/es-ES.umd.js +948 -0
- package/lib/locale/fr-FR.umd.js +948 -0
- package/lib/locale/hu-HU.umd.js +948 -0
- package/lib/locale/hy-AM.umd.js +948 -0
- package/lib/locale/id-ID.umd.js +948 -0
- package/lib/locale/it-IT.umd.js +948 -0
- package/lib/locale/ja-JP.umd.js +948 -0
- package/lib/locale/ko-KR.umd.js +948 -0
- package/lib/locale/lang/ar-EG.js +681 -664
- package/lib/locale/lang/ar-EG.umd.js +913 -892
- package/lib/locale/lang/de-DE.js +681 -664
- package/lib/locale/lang/de-DE.umd.js +913 -892
- package/lib/locale/lang/en-US.js +678 -661
- package/lib/locale/lang/en-US.umd.js +913 -892
- package/lib/locale/lang/es-ES.js +681 -664
- package/lib/locale/lang/es-ES.umd.js +913 -892
- package/lib/locale/lang/fr-FR.js +654 -637
- package/lib/locale/lang/fr-FR.umd.js +913 -892
- package/lib/locale/lang/hu-HU.js +681 -664
- package/lib/locale/lang/hu-HU.umd.js +913 -892
- package/lib/locale/lang/hy-AM.js +681 -664
- package/lib/locale/lang/hy-AM.umd.js +913 -892
- package/lib/locale/lang/id-ID.js +681 -664
- package/lib/locale/lang/id-ID.umd.js +913 -892
- package/lib/locale/lang/it-IT.js +661 -644
- package/lib/locale/lang/it-IT.umd.js +912 -891
- package/lib/locale/lang/ja-JP.js +710 -693
- package/lib/locale/lang/ja-JP.umd.js +913 -892
- package/lib/locale/lang/ko-KR.js +681 -664
- package/lib/locale/lang/ko-KR.umd.js +913 -892
- package/lib/locale/lang/ms-MY.js +681 -664
- package/lib/locale/lang/ms-MY.umd.js +913 -892
- package/lib/locale/lang/nb-NO.js +681 -664
- package/lib/locale/lang/nb-NO.umd.js +913 -892
- package/lib/locale/lang/pt-BR.js +681 -664
- package/lib/locale/lang/pt-BR.umd.js +913 -892
- package/lib/locale/lang/ru-RU.js +690 -673
- package/lib/locale/lang/ru-RU.umd.js +913 -892
- package/lib/locale/lang/th-TH.js +681 -664
- package/lib/locale/lang/th-TH.umd.js +913 -892
- package/lib/locale/lang/ug-CN.js +681 -664
- package/lib/locale/lang/ug-CN.umd.js +913 -892
- package/lib/locale/lang/uk-UA.js +674 -657
- package/lib/locale/lang/uk-UA.umd.js +913 -892
- package/lib/locale/lang/uz-UZ.js +583 -566
- package/lib/locale/lang/uz-UZ.umd.js +908 -887
- package/lib/locale/lang/vi-VN.js +681 -664
- package/lib/locale/lang/vi-VN.umd.js +913 -892
- package/lib/locale/lang/zh-CHT.js +681 -664
- package/lib/locale/lang/zh-CHT.umd.js +913 -892
- package/lib/locale/lang/zh-CN.js +681 -664
- package/lib/locale/lang/zh-CN.umd.js +913 -892
- package/lib/locale/lang/zh-HK.js +928 -7
- package/lib/locale/lang/zh-HK.umd.js +945 -20
- package/lib/locale/lang/zh-MO.js +928 -7
- package/lib/locale/lang/zh-MO.umd.js +945 -20
- package/lib/locale/lang/zh-TC.js +928 -7
- package/lib/locale/lang/zh-TC.umd.js +948 -0
- package/lib/locale/lang/zh-TW.js +928 -7
- package/lib/locale/lang/zh-TW.umd.js +945 -20
- package/lib/locale/ms-MY.umd.js +948 -0
- package/lib/locale/nb-NO.umd.js +948 -0
- package/lib/locale/pt-BR.umd.js +948 -0
- package/lib/locale/ru-RU.umd.js +948 -0
- package/lib/locale/th-TH.umd.js +948 -0
- package/lib/locale/ug-CN.umd.js +948 -0
- package/lib/locale/uk-UA.umd.js +948 -0
- package/lib/locale/uz-UZ.umd.js +948 -0
- package/lib/locale/vi-VN.umd.js +948 -0
- package/lib/locale/zh-CHT.umd.js +948 -0
- package/lib/locale/zh-CN.umd.js +948 -0
- package/lib/locale/zh-HK.umd.js +948 -0
- package/lib/locale/zh-MO.umd.js +948 -0
- package/lib/locale/zh-TC.umd.js +948 -0
- package/lib/locale/zh-TW.umd.js +948 -0
- package/lib/style.css +4501 -1
- package/lib/style.mini.css +1 -0
- package/lib/table/index.js +45 -17
- package/lib/table/module/custom/hook.js +132 -252
- package/lib/table/module/custom/panel.js +919 -970
- package/lib/table/module/edit/hook.js +248 -618
- package/lib/table/module/export/export-panel.js +390 -347
- package/lib/table/module/export/hook.js +745 -1179
- package/lib/table/module/export/import-panel.js +170 -136
- package/lib/table/module/export/util.js +37 -14
- package/lib/table/module/filter/hook.js +127 -227
- package/lib/table/module/filter/panel.js +177 -208
- package/lib/table/module/keyboard/hook.js +93 -172
- package/lib/table/module/menu/hook.js +86 -165
- package/lib/table/module/menu/panel.js +176 -141
- package/lib/table/module/validator/hook.js +164 -271
- package/lib/table/render/index.js +700 -1147
- package/lib/table/src/body.js +426 -559
- package/lib/table/src/cell.js +619 -987
- package/lib/table/src/column.js +55 -30
- package/lib/table/src/columnInfo.js +88 -110
- package/lib/table/src/emits.js +145 -13
- package/lib/table/src/footer.js +181 -240
- package/lib/table/src/group.js +56 -34
- package/lib/table/src/header.js +292 -367
- package/lib/table/src/props.js +27 -12
- package/lib/table/src/store.js +25 -9
- package/lib/table/src/table.js +14179 -1023
- package/lib/table/src/use/cell-view.js +47 -37
- package/lib/table/src/use/index.js +17 -15
- package/lib/table/src/util.js +236 -337
- package/lib/table/style/index.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.mini.css +1 -0
- package/lib/toolbar/index.js +42 -14
- package/lib/toolbar/src/toolbar.js +271 -379
- package/lib/toolbar/style/index.js +1 -1
- package/lib/toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/ui/index.js +153 -195
- package/lib/ui/src/anime.js +49 -29
- package/lib/ui/src/comp.js +23 -6
- package/lib/ui/src/dom.js +114 -147
- package/lib/ui/src/log.js +34 -18
- package/lib/ui/src/utils.js +57 -45
- package/lib/ui/src/vn.js +60 -34
- package/lib/ui/style/index.js +1 -1
- package/lib/v-x-e-table/index.js +35 -19
- package/lib/vxe-colgroup/index.js +35 -19
- package/lib/vxe-colgroup/style/index.js +1 -1
- package/lib/vxe-column/index.js +35 -19
- package/lib/vxe-column/style/index.js +1 -1
- package/lib/vxe-grid/index.js +35 -19
- package/lib/vxe-grid/style/index.js +1 -1
- package/{es/grid/style.min.css → lib/vxe-grid/style/style.mini.css} +1 -1
- package/lib/vxe-table/index.js +35 -19
- package/lib/vxe-table/style/index.js +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.mini.css +1 -0
- package/lib/vxe-toolbar/index.js +35 -19
- package/lib/vxe-toolbar/style/index.js +1 -1
- package/lib/vxe-toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/vxe-ui/index.js +35 -19
- package/lib/vxe-ui/style/index.js +1 -1
- package/package.json +8 -4
- package/packages/locale/lang/zh-HK.ts +907 -3
- package/packages/locale/lang/zh-MO.ts +907 -3
- package/packages/locale/lang/zh-TC.ts +907 -3
- package/packages/locale/lang/zh-TW.ts +907 -3
- package/packages/ui/index.ts +1 -28
- package/dist/style.min.css +0 -1
- package/es/index.css +0 -1
- package/es/index.min.css +0 -1
- package/es/style.min.css +0 -1
- package/es/table/style.min.css +0 -1
- package/es/vxe-table/style.min.css +0 -1
- package/es/vxe-v-x-e-table/index.js +0 -3
- package/lib/colgroup/index.min.js +0 -1
- package/lib/column/index.min.js +0 -1
- package/lib/components.min.js +0 -1
- package/lib/grid/index.min.js +0 -1
- package/lib/grid/src/emits.min.js +0 -1
- package/lib/grid/src/grid.min.js +0 -1
- package/lib/grid/src/props.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/index.min.css +0 -1
- package/lib/locale/lang/ar-EG.d.ts +0 -2
- package/lib/locale/lang/ar-EG.min.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.min.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.min.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.min.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.min.js +0 -1
- package/lib/locale/lang/hu-HU.d.ts +0 -2
- package/lib/locale/lang/hu-HU.min.js +0 -1
- package/lib/locale/lang/hy-AM.d.ts +0 -2
- package/lib/locale/lang/hy-AM.min.js +0 -1
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.min.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.min.js +0 -1
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.min.js +0 -1
- package/lib/locale/lang/ms-MY.d.ts +0 -2
- package/lib/locale/lang/ms-MY.min.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.min.js +0 -1
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.min.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.min.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.min.js +0 -1
- package/lib/locale/lang/ug-CN.d.ts +0 -2
- package/lib/locale/lang/ug-CN.min.js +0 -1
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.min.js +0 -1
- package/lib/locale/lang/uz-UZ.d.ts +0 -2
- package/lib/locale/lang/uz-UZ.min.js +0 -1
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.min.js +0 -1
- package/lib/locale/lang/zh-CHT.d.ts +0 -2
- package/lib/locale/lang/zh-CHT.min.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.min.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.min.js +0 -1
- package/lib/locale/lang/zh-MO.d.ts +0 -2
- package/lib/locale/lang/zh-MO.min.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.min.js +0 -1
- package/lib/style.min.css +0 -1
- package/lib/table/index.min.js +0 -1
- package/lib/table/module/custom/hook.min.js +0 -1
- package/lib/table/module/custom/panel.min.js +0 -1
- package/lib/table/module/edit/hook.min.js +0 -1
- package/lib/table/module/export/export-panel.min.js +0 -1
- package/lib/table/module/export/hook.min.js +0 -1
- package/lib/table/module/export/import-panel.min.js +0 -1
- package/lib/table/module/export/util.min.js +0 -1
- package/lib/table/module/filter/hook.min.js +0 -1
- package/lib/table/module/filter/panel.min.js +0 -1
- package/lib/table/module/keyboard/hook.min.js +0 -1
- package/lib/table/module/menu/hook.min.js +0 -1
- package/lib/table/module/menu/panel.min.js +0 -1
- package/lib/table/module/validator/hook.min.js +0 -1
- package/lib/table/render/index.min.js +0 -1
- package/lib/table/src/body.min.js +0 -1
- package/lib/table/src/cell.min.js +0 -1
- package/lib/table/src/column.min.js +0 -1
- package/lib/table/src/columnInfo.min.js +0 -1
- package/lib/table/src/emits.min.js +0 -1
- package/lib/table/src/footer.min.js +0 -1
- package/lib/table/src/group.min.js +0 -1
- package/lib/table/src/header.min.js +0 -1
- package/lib/table/src/props.min.js +0 -1
- package/lib/table/src/store.min.js +0 -1
- package/lib/table/src/table.min.js +0 -1
- package/lib/table/src/use/cell-view.min.js +0 -1
- package/lib/table/src/use/index.min.js +0 -1
- package/lib/table/src/util.min.js +0 -1
- package/lib/table/style/style.min.css +0 -1
- package/lib/toolbar/index.min.js +0 -1
- package/lib/toolbar/src/toolbar.min.js +0 -1
- package/lib/ui/index.min.js +0 -1
- package/lib/ui/src/anime.min.js +0 -1
- package/lib/ui/src/comp.min.js +0 -1
- package/lib/ui/src/dom.min.js +0 -1
- package/lib/ui/src/log.min.js +0 -1
- package/lib/ui/src/utils.min.js +0 -1
- package/lib/ui/src/vn.min.js +0 -1
- package/lib/ui/style/style.min.css +0 -0
- package/lib/v-x-e-table/index.min.js +0 -1
- package/lib/v-x-e-table/style/index.js +0 -1
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-colgroup/index.min.js +0 -1
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/index.min.js +0 -1
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-grid/index.min.js +0 -1
- package/lib/vxe-table/index.min.js +0 -1
- package/lib/vxe-table/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.min.js +0 -1
- package/lib/vxe-ui/index.min.js +0 -1
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/lib/vxe-v-x-e-table/index.js +0 -21
- package/lib/vxe-v-x-e-table/index.min.js +0 -1
- package/lib/vxe-v-x-e-table/style/index.js +0 -1
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- /package/{es/iconfont.1792838769925.ttf → dist/iconfont.1792979665397.ttf} +0 -0
- /package/{es/iconfont.1792838769925.woff → dist/iconfont.1792979665397.woff} +0 -0
- /package/{es/iconfont.1792838769925.woff2 → dist/iconfont.1792979665397.woff2} +0 -0
- /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
- /package/es/column/{style.min.css → style.mini.css} +0 -0
- /package/{lib/iconfont.1792838769925.ttf → es/iconfont.1792979665397.ttf} +0 -0
- /package/{lib/iconfont.1792838769925.woff → es/iconfont.1792979665397.woff} +0 -0
- /package/{lib/iconfont.1792838769925.woff2 → es/iconfont.1792979665397.woff2} +0 -0
- /package/es/ui/{style.min.css → style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
- /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
- /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
- /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
- /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
- /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var import_vue = require("vue");
|
|
25
|
+
var import_ui = require("../../../ui");
|
|
26
|
+
var import_xe_utils = __toESM(require("xe-utils"));
|
|
27
|
+
var import_util = require("../../src/util");
|
|
28
|
+
var import_dom = require("../../../ui/src/dom");
|
|
29
|
+
const tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
30
|
+
const customColumnCssKeys = ["checkbox", "sort", "title", "width", "fixed", "align", "header-align", "footer-align"];
|
|
31
|
+
import_ui.VxeUI.hooks.add("tableCustomModule", {
|
|
12
32
|
setupTable($xeTable) {
|
|
13
|
-
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = $xeTable;
|
|
17
|
-
const {
|
|
18
|
-
computeCustomOpts,
|
|
19
|
-
computeRowGroupFields,
|
|
20
|
-
computeCustomSimpleMode
|
|
21
|
-
} = $xeTable.getComputeMaps();
|
|
22
|
-
const {
|
|
23
|
-
refElem
|
|
24
|
-
} = $xeTable.getRefMaps();
|
|
33
|
+
const { reactData, internalData } = $xeTable;
|
|
34
|
+
const { computeCustomOpts, computeRowGroupFields, computeCustomSimpleMode } = $xeTable.getComputeMaps();
|
|
35
|
+
const { refElem } = $xeTable.getRefMaps();
|
|
25
36
|
const $xeGrid = $xeTable.xeGrid;
|
|
26
37
|
const $xeGantt = $xeTable.xeGantt;
|
|
27
38
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
28
39
|
const updatePopupStyle = () => {
|
|
29
|
-
const {
|
|
30
|
-
customStore
|
|
31
|
-
} = reactData;
|
|
40
|
+
const { customStore } = reactData;
|
|
32
41
|
const customOpts = computeCustomOpts.value;
|
|
33
|
-
const {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
popupOptions
|
|
37
|
-
} = customOpts;
|
|
38
|
-
const showSimple = !(mode === 'modal' || mode === 'drawer');
|
|
39
|
-
const {
|
|
40
|
-
transfer,
|
|
41
|
-
minWidth,
|
|
42
|
-
maxWidth,
|
|
43
|
-
maxHeight
|
|
44
|
-
} = popupOptions || {};
|
|
42
|
+
const { mode, placement, popupOptions } = customOpts;
|
|
43
|
+
const showSimple = !(mode === "modal" || mode === "drawer");
|
|
44
|
+
const { transfer, minWidth, maxWidth, maxHeight } = popupOptions || {};
|
|
45
45
|
const customSimpleMode = computeCustomSimpleMode.value;
|
|
46
|
-
const showCustomSimpleOutside = customSimpleMode ===
|
|
46
|
+
const showCustomSimpleOutside = customSimpleMode === "outside";
|
|
47
47
|
const bodyEl = document.documentElement;
|
|
48
48
|
let wrapperEl = refElem.value;
|
|
49
49
|
let popupTop = 0;
|
|
@@ -51,99 +51,83 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
51
51
|
const defPupStys = {};
|
|
52
52
|
const panePupStys = {};
|
|
53
53
|
if ($xeGantt) {
|
|
54
|
-
const {
|
|
55
|
-
refGanttContainerElem
|
|
56
|
-
} = $xeGantt.getRefMaps();
|
|
54
|
+
const { refGanttContainerElem } = $xeGantt.getRefMaps();
|
|
57
55
|
const ganttContainerElem = refGanttContainerElem.value;
|
|
58
56
|
if (ganttContainerElem) {
|
|
59
57
|
wrapperEl = ganttContainerElem;
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
const tableRect = wrapperEl.getBoundingClientRect();
|
|
63
|
-
// 多种模式,指定元素插入
|
|
64
61
|
if (showSimple && transfer) {
|
|
65
62
|
popupTop = tableRect.top + bodyEl.scrollTop;
|
|
66
|
-
popupMaxHeight =
|
|
63
|
+
popupMaxHeight = import_xe_utils.default.eqNull(maxHeight) ? 360 : maxHeight;
|
|
67
64
|
} else if (showCustomSimpleOutside) {
|
|
68
65
|
if ($xeGGWrapper && wrapperEl) {
|
|
69
66
|
popupTop = wrapperEl.offsetTop;
|
|
70
67
|
}
|
|
71
|
-
popupMaxHeight =
|
|
68
|
+
popupMaxHeight = import_xe_utils.default.eqNull(maxHeight) ? 360 : maxHeight;
|
|
72
69
|
} else {
|
|
73
|
-
// 判断面板不能大于表格高度
|
|
74
70
|
if (wrapperEl) {
|
|
75
71
|
popupMaxHeight = wrapperEl.clientHeight - 22;
|
|
76
72
|
}
|
|
77
73
|
popupMaxHeight = Math.max(88, popupMaxHeight);
|
|
78
74
|
}
|
|
79
75
|
let popupMxHeight = 0;
|
|
80
|
-
if (!(placement ===
|
|
81
|
-
popupMxHeight =
|
|
76
|
+
if (!(placement === "left" || placement === "right")) {
|
|
77
|
+
popupMxHeight = import_xe_utils.default.eqNull(maxHeight) ? popupMaxHeight : maxHeight;
|
|
82
78
|
}
|
|
83
|
-
if (!placement || ![
|
|
79
|
+
if (!placement || !["left", "right", "bottom-left", "bottom-right"].includes(placement)) {
|
|
84
80
|
if (popupTop) {
|
|
85
|
-
defPupStys.top = (0,
|
|
81
|
+
defPupStys.top = (0, import_dom.toCssUnit)(popupTop);
|
|
86
82
|
}
|
|
87
83
|
}
|
|
88
84
|
if (showSimple && transfer) {
|
|
89
|
-
if (placement ===
|
|
90
|
-
defPupStys.bottom = (0,
|
|
85
|
+
if (placement === "bottom-left" || placement === "bottom-right") {
|
|
86
|
+
defPupStys.bottom = (0, import_dom.toCssUnit)(bodyEl.scrollHeight - tableRect.top - tableRect.height + 1);
|
|
91
87
|
}
|
|
92
|
-
if (placement ===
|
|
93
|
-
defPupStys.left = (0,
|
|
94
|
-
} else if (!placement || placement ===
|
|
95
|
-
defPupStys.right = (0,
|
|
88
|
+
if (placement === "top-left" || placement === "bottom-left") {
|
|
89
|
+
defPupStys.left = (0, import_dom.toCssUnit)(tableRect.left);
|
|
90
|
+
} else if (!placement || placement === "top-right" || placement === "bottom-right") {
|
|
91
|
+
defPupStys.right = (0, import_dom.toCssUnit)(bodyEl.scrollWidth - tableRect.left - tableRect.width + 1);
|
|
96
92
|
}
|
|
97
93
|
}
|
|
98
|
-
// 同步表格的css变量到弹窗中
|
|
99
94
|
const bodyComputeStyle = getComputedStyle(bodyEl);
|
|
100
95
|
const tableComputeStyle = getComputedStyle(wrapperEl);
|
|
101
|
-
customColumnCssKeys.forEach(key => {
|
|
102
|
-
const currCssKey = `--vxe-ui-vxe-table-custom-column-${key}-${key ===
|
|
96
|
+
customColumnCssKeys.forEach((key) => {
|
|
97
|
+
const currCssKey = `--vxe-ui-vxe-table-custom-column-${key}-${key === "title" ? "min-" : ""}width`;
|
|
103
98
|
const currCssVal = tableComputeStyle.getPropertyValue(currCssKey);
|
|
104
99
|
if (currCssVal && currCssVal !== bodyComputeStyle.getPropertyValue(currCssKey)) {
|
|
105
100
|
panePupStys[currCssKey] = currCssVal;
|
|
106
101
|
}
|
|
107
102
|
});
|
|
108
103
|
if (minWidth) {
|
|
109
|
-
defPupStys[
|
|
104
|
+
defPupStys["--vxe-ui-vxe-table-custom-default-min-width"] = (0, import_dom.toCssUnit)(minWidth);
|
|
110
105
|
}
|
|
111
106
|
if (maxWidth) {
|
|
112
|
-
defPupStys[
|
|
107
|
+
defPupStys["--vxe-ui-vxe-table-custom-default-max-width"] = (0, import_dom.toCssUnit)(maxWidth);
|
|
113
108
|
}
|
|
114
109
|
if (popupMxHeight) {
|
|
115
|
-
defPupStys.maxHeight = (0,
|
|
110
|
+
defPupStys.maxHeight = (0, import_dom.toCssUnit)(popupMxHeight);
|
|
116
111
|
}
|
|
117
112
|
customStore.defPopupStyle = defPupStys;
|
|
118
113
|
customStore.panePopupStyle = panePupStys;
|
|
119
114
|
customStore.maxHeight = popupMxHeight;
|
|
120
|
-
return (0,
|
|
115
|
+
return (0, import_vue.nextTick)();
|
|
121
116
|
};
|
|
122
117
|
const openCustom = () => {
|
|
123
|
-
const {
|
|
124
|
-
initStore,
|
|
125
|
-
customStore
|
|
126
|
-
} = reactData;
|
|
118
|
+
const { initStore, customStore } = reactData;
|
|
127
119
|
const customOpts = computeCustomOpts.value;
|
|
128
|
-
const {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
} = customOpts;
|
|
132
|
-
const showSimple = !(mode === 'modal' || mode === 'drawer');
|
|
133
|
-
const {
|
|
134
|
-
transfer
|
|
135
|
-
} = popupOptions || {};
|
|
120
|
+
const { mode, popupOptions } = customOpts;
|
|
121
|
+
const showSimple = !(mode === "modal" || mode === "drawer");
|
|
122
|
+
const { transfer } = popupOptions || {};
|
|
136
123
|
const customSimpleMode = computeCustomSimpleMode.value;
|
|
137
|
-
const showCustomSimpleOutside = customSimpleMode ===
|
|
124
|
+
const showCustomSimpleOutside = customSimpleMode === "outside";
|
|
138
125
|
let cpToElem = null;
|
|
139
|
-
// 多种模式,指定元素插入
|
|
140
126
|
if (showSimple && transfer) {
|
|
141
127
|
cpToElem = document.body;
|
|
142
128
|
} else {
|
|
143
129
|
if (showCustomSimpleOutside && $xeGGWrapper) {
|
|
144
|
-
const {
|
|
145
|
-
refPopupContainerElem
|
|
146
|
-
} = $xeGGWrapper.getRefMaps();
|
|
130
|
+
const { refPopupContainerElem } = $xeGGWrapper.getRefMaps();
|
|
147
131
|
const popupContainerElem = refPopupContainerElem.value;
|
|
148
132
|
if (popupContainerElem) {
|
|
149
133
|
cpToElem = popupContainerElem;
|
|
@@ -159,20 +143,16 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
159
143
|
handleUpdateCustomColumn();
|
|
160
144
|
checkCustomStatus();
|
|
161
145
|
updatePopupStyle();
|
|
162
|
-
return (0,
|
|
146
|
+
return (0, import_vue.nextTick)().then(() => updatePopupStyle());
|
|
163
147
|
};
|
|
164
148
|
const handleUpdateCustomColumn = () => {
|
|
165
|
-
const {
|
|
166
|
-
|
|
167
|
-
} = reactData;
|
|
168
|
-
const {
|
|
169
|
-
collectColumn
|
|
170
|
-
} = internalData;
|
|
149
|
+
const { customStore } = reactData;
|
|
150
|
+
const { collectColumn } = internalData;
|
|
171
151
|
if (customStore.visible) {
|
|
172
152
|
const sortMaps = {};
|
|
173
153
|
const fixedMaps = {};
|
|
174
154
|
const visibleMaps = {};
|
|
175
|
-
|
|
155
|
+
import_xe_utils.default.eachTree(collectColumn, (column) => {
|
|
176
156
|
const colid = column.getKey();
|
|
177
157
|
column.renderFixed = column.fixed;
|
|
178
158
|
column.renderVisible = column.visible;
|
|
@@ -191,9 +171,7 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
191
171
|
}
|
|
192
172
|
};
|
|
193
173
|
const closeCustom = () => {
|
|
194
|
-
const {
|
|
195
|
-
customStore
|
|
196
|
-
} = reactData;
|
|
174
|
+
const { customStore } = reactData;
|
|
197
175
|
const customOpts = computeCustomOpts.value;
|
|
198
176
|
if (customStore.visible) {
|
|
199
177
|
customStore.visible = false;
|
|
@@ -201,47 +179,30 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
201
179
|
$xeTable.handleCustom();
|
|
202
180
|
}
|
|
203
181
|
}
|
|
204
|
-
return (0,
|
|
182
|
+
return (0, import_vue.nextTick)();
|
|
205
183
|
};
|
|
206
184
|
const toggleCustom = () => {
|
|
207
|
-
const {
|
|
208
|
-
customStore
|
|
209
|
-
} = reactData;
|
|
185
|
+
const { customStore } = reactData;
|
|
210
186
|
if (customStore.visible) {
|
|
211
187
|
return closeCustom();
|
|
212
188
|
}
|
|
213
189
|
return openCustom();
|
|
214
190
|
};
|
|
215
|
-
const saveCustom = isDirectly => {
|
|
216
|
-
const {
|
|
217
|
-
customColumnList,
|
|
218
|
-
aggHandleFields,
|
|
219
|
-
rowGroupList
|
|
220
|
-
} = reactData;
|
|
191
|
+
const saveCustom = (isDirectly) => {
|
|
192
|
+
const { customColumnList, aggHandleFields, rowGroupList } = reactData;
|
|
221
193
|
const customOpts = computeCustomOpts.value;
|
|
222
|
-
const {
|
|
223
|
-
allowVisible,
|
|
224
|
-
allowSort,
|
|
225
|
-
allowFixed,
|
|
226
|
-
allowResizable,
|
|
227
|
-
allowAlign,
|
|
228
|
-
allowHeaderAlign,
|
|
229
|
-
allowFooterAlign,
|
|
230
|
-
allowGroup,
|
|
231
|
-
allowValues
|
|
232
|
-
} = customOpts;
|
|
194
|
+
const { allowVisible, allowSort, allowFixed, allowResizable, allowAlign, allowHeaderAlign, allowFooterAlign, allowGroup, allowValues } = customOpts;
|
|
233
195
|
if (isDirectly) {
|
|
234
|
-
|
|
196
|
+
import_xe_utils.default.eachTree(customColumnList, (column) => {
|
|
235
197
|
if (allowResizable) {
|
|
236
198
|
if (column.renderVisible && (!column.children || !column.children.length)) {
|
|
237
|
-
column.resizeWidth = Math.max(0,
|
|
199
|
+
column.resizeWidth = Math.max(0, import_xe_utils.default.toNumber(column.renderWidth));
|
|
238
200
|
}
|
|
239
201
|
}
|
|
240
202
|
});
|
|
241
203
|
} else {
|
|
242
|
-
|
|
204
|
+
import_xe_utils.default.eachTree(customColumnList, (column, index, items, path, parentColumn) => {
|
|
243
205
|
if (parentColumn) {
|
|
244
|
-
// 更新子列信息
|
|
245
206
|
column.fixed = parentColumn.fixed;
|
|
246
207
|
} else {
|
|
247
208
|
if (allowSort) {
|
|
@@ -280,48 +241,29 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
280
241
|
reactData.isCustomStatus = true;
|
|
281
242
|
if (allowGroup && !!$xeTable.handlePivotTableAggData) {
|
|
282
243
|
if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
|
|
283
|
-
// 更新数据分组
|
|
284
244
|
if (aggHandleFields.length) {
|
|
285
245
|
$xeTable.setRowGroups(aggHandleFields);
|
|
286
246
|
} else {
|
|
287
247
|
$xeTable.clearRowGroups();
|
|
288
248
|
}
|
|
289
249
|
} else if (allowValues) {
|
|
290
|
-
// 更新聚合函数
|
|
291
250
|
$xeTable.handleUpdateAggData();
|
|
292
251
|
}
|
|
293
252
|
}
|
|
294
253
|
if (allowSort) {
|
|
295
254
|
internalData.collectColumn = customColumnList;
|
|
296
255
|
}
|
|
297
|
-
return $xeTable.saveCustomStore(
|
|
256
|
+
return $xeTable.saveCustomStore("confirm");
|
|
298
257
|
};
|
|
299
258
|
const cancelCustom = () => {
|
|
300
|
-
const {
|
|
301
|
-
|
|
302
|
-
customStore
|
|
303
|
-
} = reactData;
|
|
304
|
-
const {
|
|
305
|
-
oldSortMaps,
|
|
306
|
-
oldFixedMaps,
|
|
307
|
-
oldVisibleMaps
|
|
308
|
-
} = customStore;
|
|
259
|
+
const { customColumnList, customStore } = reactData;
|
|
260
|
+
const { oldSortMaps, oldFixedMaps, oldVisibleMaps } = customStore;
|
|
309
261
|
const customOpts = computeCustomOpts.value;
|
|
310
|
-
const {
|
|
311
|
-
|
|
312
|
-
allowSort,
|
|
313
|
-
allowFixed,
|
|
314
|
-
allowAlign,
|
|
315
|
-
allowHeaderAlign,
|
|
316
|
-
allowFooterAlign,
|
|
317
|
-
allowResizable,
|
|
318
|
-
allowGroup,
|
|
319
|
-
allowValues
|
|
320
|
-
} = customOpts;
|
|
321
|
-
_xeUtils.default.eachTree(customColumnList, column => {
|
|
262
|
+
const { allowVisible, allowSort, allowFixed, allowAlign, allowHeaderAlign, allowFooterAlign, allowResizable, allowGroup, allowValues } = customOpts;
|
|
263
|
+
import_xe_utils.default.eachTree(customColumnList, (column) => {
|
|
322
264
|
const colid = column.getKey();
|
|
323
265
|
const visible = !!oldVisibleMaps[colid];
|
|
324
|
-
const fixed = oldFixedMaps[colid] ||
|
|
266
|
+
const fixed = oldFixedMaps[colid] || "";
|
|
325
267
|
if (allowVisible) {
|
|
326
268
|
column.renderVisible = visible;
|
|
327
269
|
column.visible = visible;
|
|
@@ -346,41 +288,24 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
346
288
|
column.footerAlign = column.renderFooterAlign;
|
|
347
289
|
}
|
|
348
290
|
if (allowGroup) {
|
|
349
|
-
// 无
|
|
350
291
|
}
|
|
351
292
|
if (allowValues) {
|
|
352
|
-
// 无
|
|
353
293
|
}
|
|
354
|
-
}, {
|
|
355
|
-
|
|
356
|
-
});
|
|
357
|
-
return (0, _vue.nextTick)();
|
|
294
|
+
}, { children: "children" });
|
|
295
|
+
return (0, import_vue.nextTick)();
|
|
358
296
|
};
|
|
359
|
-
const setCustomAllCheckbox = checked => {
|
|
360
|
-
const {
|
|
361
|
-
|
|
362
|
-
} = reactData;
|
|
363
|
-
const {
|
|
364
|
-
customColumnList
|
|
365
|
-
} = reactData;
|
|
297
|
+
const setCustomAllCheckbox = (checked) => {
|
|
298
|
+
const { customStore } = reactData;
|
|
299
|
+
const { customColumnList } = reactData;
|
|
366
300
|
const customOpts = computeCustomOpts.value;
|
|
367
|
-
const {
|
|
368
|
-
checkMethod,
|
|
369
|
-
visibleMethod
|
|
370
|
-
} = customOpts;
|
|
301
|
+
const { checkMethod, visibleMethod } = customOpts;
|
|
371
302
|
const isAll = !!checked;
|
|
372
303
|
if (customOpts.immediate) {
|
|
373
|
-
|
|
374
|
-
if (visibleMethod && !visibleMethod({
|
|
375
|
-
$table: $xeTable,
|
|
376
|
-
column
|
|
377
|
-
})) {
|
|
304
|
+
import_xe_utils.default.eachTree(customColumnList, (column) => {
|
|
305
|
+
if (visibleMethod && !visibleMethod({ $table: $xeTable, column })) {
|
|
378
306
|
return;
|
|
379
307
|
}
|
|
380
|
-
if (checkMethod && !checkMethod({
|
|
381
|
-
$table: $xeTable,
|
|
382
|
-
column
|
|
383
|
-
})) {
|
|
308
|
+
if (checkMethod && !checkMethod({ $table: $xeTable, column })) {
|
|
384
309
|
return;
|
|
385
310
|
}
|
|
386
311
|
column.visible = isAll;
|
|
@@ -390,19 +315,13 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
390
315
|
customStore.isAll = isAll;
|
|
391
316
|
reactData.isCustomStatus = true;
|
|
392
317
|
$xeTable.handleCustom();
|
|
393
|
-
$xeTable.saveCustomStore(
|
|
318
|
+
$xeTable.saveCustomStore("update:visible");
|
|
394
319
|
} else {
|
|
395
|
-
|
|
396
|
-
if (visibleMethod && !visibleMethod({
|
|
397
|
-
$table: $xeTable,
|
|
398
|
-
column
|
|
399
|
-
})) {
|
|
320
|
+
import_xe_utils.default.eachTree(customColumnList, (column) => {
|
|
321
|
+
if (visibleMethod && !visibleMethod({ $table: $xeTable, column })) {
|
|
400
322
|
return;
|
|
401
323
|
}
|
|
402
|
-
if (checkMethod && !checkMethod({
|
|
403
|
-
$table: $xeTable,
|
|
404
|
-
column
|
|
405
|
-
})) {
|
|
324
|
+
if (checkMethod && !checkMethod({ $table: $xeTable, column })) {
|
|
406
325
|
return;
|
|
407
326
|
}
|
|
408
327
|
column.renderVisible = isAll;
|
|
@@ -411,13 +330,11 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
411
330
|
customStore.isAll = isAll;
|
|
412
331
|
}
|
|
413
332
|
$xeTable.checkCustomStatus();
|
|
414
|
-
return (0,
|
|
333
|
+
return (0, import_vue.nextTick)();
|
|
415
334
|
};
|
|
416
335
|
const customMethods = {
|
|
417
336
|
getCustomVisible() {
|
|
418
|
-
const {
|
|
419
|
-
customStore
|
|
420
|
-
} = reactData;
|
|
337
|
+
const { customStore } = reactData;
|
|
421
338
|
return customStore.visible;
|
|
422
339
|
},
|
|
423
340
|
openCustom,
|
|
@@ -426,16 +343,10 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
426
343
|
saveCustom,
|
|
427
344
|
cancelCustom,
|
|
428
345
|
resetCustom(options) {
|
|
429
|
-
const {
|
|
430
|
-
|
|
431
|
-
} = reactData;
|
|
432
|
-
const {
|
|
433
|
-
collectColumn
|
|
434
|
-
} = internalData;
|
|
346
|
+
const { rowGroupList } = reactData;
|
|
347
|
+
const { collectColumn } = internalData;
|
|
435
348
|
const customOpts = computeCustomOpts.value;
|
|
436
|
-
const {
|
|
437
|
-
checkMethod
|
|
438
|
-
} = customOpts;
|
|
349
|
+
const { checkMethod } = customOpts;
|
|
439
350
|
const opts = Object.assign({
|
|
440
351
|
visible: true,
|
|
441
352
|
resizable: options === true,
|
|
@@ -447,7 +358,7 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
447
358
|
footerAlign: options === true
|
|
448
359
|
}, options);
|
|
449
360
|
const allCols = [];
|
|
450
|
-
|
|
361
|
+
import_xe_utils.default.eachTree(collectColumn, (column) => {
|
|
451
362
|
if (opts.resizable) {
|
|
452
363
|
column.resizeWidth = 0;
|
|
453
364
|
}
|
|
@@ -459,10 +370,7 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
459
370
|
column.renderSortNumber = column.sortNumber;
|
|
460
371
|
column.parentId = column.defaultParentId;
|
|
461
372
|
}
|
|
462
|
-
if (!checkMethod || checkMethod({
|
|
463
|
-
$table: $xeTable,
|
|
464
|
-
column
|
|
465
|
-
})) {
|
|
373
|
+
if (!checkMethod || checkMethod({ $table: $xeTable, column })) {
|
|
466
374
|
column.visible = column.defaultVisible;
|
|
467
375
|
}
|
|
468
376
|
if (opts.align) {
|
|
@@ -485,13 +393,9 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
485
393
|
allCols.push(column);
|
|
486
394
|
});
|
|
487
395
|
if (opts.sort) {
|
|
488
|
-
const newCollectCols =
|
|
489
|
-
key: 'id',
|
|
490
|
-
parentKey: 'parentId',
|
|
491
|
-
children: 'children'
|
|
492
|
-
});
|
|
396
|
+
const newCollectCols = import_xe_utils.default.toArrayTree(import_xe_utils.default.orderBy(allCols, "renderSortNumber"), { key: "id", parentKey: "parentId", children: "children" });
|
|
493
397
|
internalData.collectColumn = newCollectCols;
|
|
494
|
-
internalData.tableFullColumn = (0,
|
|
398
|
+
internalData.tableFullColumn = (0, import_util.getColumnList)(newCollectCols);
|
|
495
399
|
}
|
|
496
400
|
reactData.isCustomStatus = false;
|
|
497
401
|
return $xeTable.handleCustom().then(() => {
|
|
@@ -507,101 +411,77 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
507
411
|
$xeTable.handleUpdateAggData();
|
|
508
412
|
}
|
|
509
413
|
}
|
|
510
|
-
$xeTable.saveCustomStore(
|
|
414
|
+
$xeTable.saveCustomStore("reset");
|
|
511
415
|
});
|
|
512
416
|
},
|
|
513
417
|
toggleCustomAllCheckbox() {
|
|
514
|
-
const {
|
|
515
|
-
customStore
|
|
516
|
-
} = reactData;
|
|
418
|
+
const { customStore } = reactData;
|
|
517
419
|
const isAll = !customStore.isAll;
|
|
518
420
|
return setCustomAllCheckbox(isAll);
|
|
519
421
|
},
|
|
520
422
|
setCustomAllCheckbox
|
|
521
423
|
};
|
|
522
424
|
const checkCustomStatus = () => {
|
|
523
|
-
const {
|
|
524
|
-
|
|
525
|
-
} = reactData;
|
|
526
|
-
const {
|
|
527
|
-
collectColumn
|
|
528
|
-
} = internalData;
|
|
425
|
+
const { customStore } = reactData;
|
|
426
|
+
const { collectColumn } = internalData;
|
|
529
427
|
const customOpts = computeCustomOpts.value;
|
|
530
|
-
const {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
customStore.isAll = collectColumn.every(column => (checkMethod ? !checkMethod({
|
|
534
|
-
$table: $xeTable,
|
|
535
|
-
column
|
|
536
|
-
}) : false) || column.renderVisible);
|
|
537
|
-
customStore.isIndeterminate = !customStore.isAll && collectColumn.some(column => (!checkMethod || checkMethod({
|
|
538
|
-
$table: $xeTable,
|
|
539
|
-
column
|
|
540
|
-
})) && (column.renderVisible || column.halfVisible));
|
|
428
|
+
const { checkMethod } = customOpts;
|
|
429
|
+
customStore.isAll = collectColumn.every((column) => (checkMethod ? !checkMethod({ $table: $xeTable, column }) : false) || column.renderVisible);
|
|
430
|
+
customStore.isIndeterminate = !customStore.isAll && collectColumn.some((column) => (!checkMethod || checkMethod({ $table: $xeTable, column })) && (column.renderVisible || column.halfVisible));
|
|
541
431
|
};
|
|
542
432
|
const emitCustomEvent = (type, evnt) => {
|
|
543
|
-
$xeTable.dispatchEvent(
|
|
544
|
-
type
|
|
545
|
-
}, evnt);
|
|
433
|
+
$xeTable.dispatchEvent("custom", { type }, evnt);
|
|
546
434
|
};
|
|
547
435
|
const customPrivateMethods = {
|
|
548
436
|
checkCustomStatus,
|
|
549
437
|
emitCustomEvent,
|
|
550
438
|
triggerCustomEvent(evnt) {
|
|
551
|
-
const
|
|
552
|
-
const {
|
|
553
|
-
customStore
|
|
554
|
-
} = reactData;
|
|
439
|
+
const reactData2 = $xeTable.reactData;
|
|
440
|
+
const { customStore } = reactData2;
|
|
555
441
|
if (customStore.visible) {
|
|
556
442
|
closeCustom();
|
|
557
|
-
emitCustomEvent(
|
|
558
|
-
$xeTable.dispatchEvent(
|
|
443
|
+
emitCustomEvent("close", evnt);
|
|
444
|
+
$xeTable.dispatchEvent("custom-close", {}, evnt);
|
|
559
445
|
} else {
|
|
560
446
|
customStore.btnEl = evnt.target;
|
|
561
447
|
openCustom();
|
|
562
|
-
emitCustomEvent(
|
|
563
|
-
$xeTable.dispatchEvent(
|
|
448
|
+
emitCustomEvent("open", evnt);
|
|
449
|
+
$xeTable.dispatchEvent("custom-open", {}, evnt);
|
|
564
450
|
}
|
|
565
451
|
},
|
|
566
452
|
customOpenEvent(evnt) {
|
|
567
|
-
const
|
|
568
|
-
const {
|
|
569
|
-
customStore
|
|
570
|
-
} = reactData;
|
|
453
|
+
const reactData2 = $xeTable.reactData;
|
|
454
|
+
const { customStore } = reactData2;
|
|
571
455
|
if (!customStore.visible) {
|
|
572
456
|
customStore.activeBtn = true;
|
|
573
457
|
customStore.btnEl = evnt.target;
|
|
574
458
|
$xeTable.openCustom();
|
|
575
|
-
$xeTable.emitCustomEvent(
|
|
576
|
-
$xeTable.dispatchEvent(
|
|
459
|
+
$xeTable.emitCustomEvent("open", evnt);
|
|
460
|
+
$xeTable.dispatchEvent("custom-open", {}, evnt);
|
|
577
461
|
}
|
|
578
462
|
},
|
|
579
463
|
customCloseEvent(evnt) {
|
|
580
|
-
const
|
|
581
|
-
const {
|
|
582
|
-
customStore
|
|
583
|
-
} = reactData;
|
|
464
|
+
const reactData2 = $xeTable.reactData;
|
|
465
|
+
const { customStore } = reactData2;
|
|
584
466
|
if (customStore.visible) {
|
|
585
467
|
customStore.activeBtn = false;
|
|
586
468
|
$xeTable.closeCustom();
|
|
587
|
-
$xeTable.emitCustomEvent(
|
|
588
|
-
$xeTable.dispatchEvent(
|
|
469
|
+
$xeTable.emitCustomEvent("close", evnt);
|
|
470
|
+
$xeTable.dispatchEvent("custom-close", {}, evnt);
|
|
589
471
|
}
|
|
590
472
|
},
|
|
591
473
|
handleUpdateCustomColumn,
|
|
592
474
|
handleCustomStyle() {
|
|
593
|
-
const
|
|
594
|
-
const {
|
|
595
|
-
customStore
|
|
596
|
-
} = reactData;
|
|
475
|
+
const reactData2 = $xeTable.reactData;
|
|
476
|
+
const { customStore } = reactData2;
|
|
597
477
|
if (!customStore.visible) {
|
|
598
|
-
return (0,
|
|
478
|
+
return (0, import_vue.nextTick)();
|
|
599
479
|
}
|
|
600
|
-
|
|
480
|
+
reactData2.isCustomDragStatus = false;
|
|
601
481
|
return updatePopupStyle();
|
|
602
482
|
}
|
|
603
483
|
};
|
|
604
|
-
return
|
|
484
|
+
return { ...customMethods, ...customPrivateMethods };
|
|
605
485
|
},
|
|
606
486
|
setupGrid($xeGrid) {
|
|
607
487
|
return $xeGrid.extendTableMethods(tableCustomMethodKeys);
|
|
@@ -609,4 +489,4 @@ _ui.VxeUI.hooks.add('tableCustomModule', {
|
|
|
609
489
|
setupGantt($xeGantt) {
|
|
610
490
|
return $xeGantt.extendTableMethods(tableCustomMethodKeys);
|
|
611
491
|
}
|
|
612
|
-
});
|
|
492
|
+
});
|