tomtaw-vxe-table 3.25.13 → 3.25.14
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/es/colgroup/index.d.ts +122 -0
- package/es/colgroup/index.js +16 -13
- package/es/column/index.d.ts +122 -0
- package/es/column/index.js +16 -13
- package/es/components.d.ts +12 -0
- package/es/components.js +28 -31
- package/es/grid/index.d.ts +1252 -0
- package/es/grid/index.js +18 -13
- package/es/grid/src/grid.d.ts +638 -0
- package/es/grid/src/grid.js +1883 -1876
- 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 +14 -21
- package/es/index.js +15 -0
- package/es/locale/lang/ar-EG.d.ts +908 -2
- package/es/locale/lang/ar-EG.js +906 -899
- package/es/locale/lang/de-DE.d.ts +908 -2
- package/es/locale/lang/de-DE.js +906 -899
- package/es/locale/lang/en-US.d.ts +908 -2
- package/es/locale/lang/en-US.js +906 -899
- package/es/locale/lang/es-ES.d.ts +908 -2
- package/es/locale/lang/es-ES.js +906 -899
- package/es/locale/lang/fr-FR.d.ts +908 -2
- package/es/locale/lang/fr-FR.js +906 -899
- package/es/locale/lang/hu-HU.d.ts +908 -2
- package/es/locale/lang/hu-HU.js +906 -899
- package/es/locale/lang/hy-AM.d.ts +908 -2
- package/es/locale/lang/hy-AM.js +906 -899
- package/es/locale/lang/id-ID.d.ts +908 -2
- package/es/locale/lang/id-ID.js +906 -899
- package/es/locale/lang/it-IT.d.ts +908 -2
- package/es/locale/lang/it-IT.js +906 -899
- package/es/locale/lang/ja-JP.d.ts +908 -2
- package/es/locale/lang/ja-JP.js +906 -899
- package/es/locale/lang/ko-KR.d.ts +908 -2
- package/es/locale/lang/ko-KR.js +906 -899
- package/es/locale/lang/ms-MY.d.ts +908 -2
- package/es/locale/lang/ms-MY.js +906 -899
- package/es/locale/lang/nb-NO.d.ts +908 -2
- package/es/locale/lang/nb-NO.js +906 -899
- package/es/locale/lang/pt-BR.d.ts +908 -2
- package/es/locale/lang/pt-BR.js +906 -899
- package/es/locale/lang/ru-RU.d.ts +908 -2
- package/es/locale/lang/ru-RU.js +906 -899
- package/es/locale/lang/th-TH.d.ts +908 -2
- package/es/locale/lang/th-TH.js +906 -899
- package/es/locale/lang/ug-CN.d.ts +908 -2
- package/es/locale/lang/ug-CN.js +906 -899
- package/es/locale/lang/uk-UA.d.ts +908 -2
- package/es/locale/lang/uk-UA.js +906 -899
- package/es/locale/lang/uz-UZ.d.ts +908 -2
- package/es/locale/lang/uz-UZ.js +906 -899
- package/es/locale/lang/vi-VN.d.ts +908 -2
- package/es/locale/lang/vi-VN.js +906 -899
- package/es/locale/lang/zh-CHT.d.ts +908 -2
- package/es/locale/lang/zh-CHT.js +906 -899
- package/es/locale/lang/zh-CN.d.ts +908 -2
- package/es/locale/lang/zh-CN.js +906 -899
- 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 +4499 -1
- package/es/style.mini.css +1 -0
- package/es/table/index.d.ts +4 -0
- package/es/table/index.js +49 -44
- package/es/table/module/custom/mixin.d.ts +4 -0
- package/es/table/module/custom/mixin.js +476 -487
- package/es/table/module/custom/panel.d.ts +57 -0
- package/es/table/module/custom/panel.js +1939 -1771
- package/es/table/module/edit/mixin.d.ts +2 -0
- package/es/table/module/edit/mixin.js +1097 -1110
- package/es/table/module/export/export-panel.d.ts +51 -0
- package/es/table/module/export/export-panel.js +718 -683
- package/es/table/module/export/import-panel.d.ts +39 -0
- package/es/table/module/export/import-panel.js +327 -294
- package/es/table/module/export/mixin.d.ts +2 -0
- package/es/table/module/export/mixin.js +1838 -1860
- package/es/table/module/export/util.d.ts +5 -0
- package/es/table/module/export/util.js +20 -17
- package/es/table/module/filter/mixin.d.ts +4 -0
- package/es/table/module/filter/mixin.js +492 -508
- package/es/table/module/filter/panel.d.ts +41 -0
- package/es/table/module/filter/panel.js +342 -293
- package/es/table/module/keyboard/mixin.d.ts +12 -0
- package/es/table/module/keyboard/mixin.js +462 -507
- package/es/table/module/menu/mixin.d.ts +25 -0
- package/es/table/module/menu/mixin.js +302 -320
- package/es/table/module/menu/panel.d.ts +22 -0
- package/es/table/module/menu/panel.js +246 -197
- package/es/table/module/validator/mixin.d.ts +4 -0
- package/es/table/module/validator/mixin.js +516 -561
- package/es/table/render/index.d.ts +1 -0
- package/es/table/render/index.js +1472 -1476
- package/es/table/src/body.d.ts +8 -0
- package/es/table/src/body.js +950 -886
- package/es/table/src/cell.d.ts +148 -0
- package/es/table/src/cell.js +1348 -1212
- package/es/table/src/column.d.ts +150 -0
- package/es/table/src/column.js +202 -199
- package/es/table/src/columnInfo.d.ts +12 -0
- package/es/table/src/columnInfo.js +210 -205
- package/es/table/src/expand-height.d.ts +14 -0
- package/es/table/src/expand-height.js +109 -127
- package/es/table/src/footer.d.ts +8 -0
- package/es/table/src/footer.js +388 -354
- package/es/table/src/group.d.ts +59 -0
- package/es/table/src/group.js +52 -50
- package/es/table/src/header.d.ts +11 -0
- package/es/table/src/header.js +611 -564
- package/es/table/src/layout-scheduler.d.ts +13 -0
- package/es/table/src/layout-scheduler.js +118 -138
- package/es/table/src/methods.d.ts +2 -0
- package/es/table/src/methods.js +13243 -13956
- package/es/table/src/props.d.ts +239 -0
- package/es/table/src/props.js +315 -312
- package/es/table/src/scroll-sync.d.ts +9 -0
- package/es/table/src/scroll-sync.js +57 -65
- package/es/table/src/store.d.ts +7 -0
- package/es/table/src/store.js +9 -6
- package/es/table/src/table.d.ts +2 -0
- package/es/table/src/table.js +2729 -2668
- package/es/table/src/util.d.ts +70 -0
- package/es/table/src/util.js +1018 -1017
- package/es/table/style.css +31 -12
- package/es/table/style.mini.css +1 -0
- package/es/toolbar/index.d.ts +148 -0
- package/es/toolbar/index.js +14 -9
- package/es/toolbar/src/toolbar.d.ts +81 -0
- package/es/toolbar/src/toolbar.js +791 -766
- package/es/toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/ui/index.d.ts +85 -0
- package/es/ui/index.js +460 -503
- 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 +4 -1
- package/es/ui/src/dom.d.ts +80 -0
- package/es/ui/src/dom.js +373 -378
- package/es/ui/src/log.d.ts +6 -0
- package/es/ui/src/log.js +18 -13
- package/es/ui/src/utils.d.ts +24 -0
- package/es/ui/src/utils.js +61 -56
- package/es/ui/src/vn.d.ts +7 -0
- package/es/ui/src/vn.js +61 -52
- package/es/v-x-e-table/index.d.ts +2 -0
- package/es/v-x-e-table/index.js +5 -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 +31 -12
- 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/{lib/toolbar/style/style.min.css → es/vxe-toolbar/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 +55 -92
- package/lib/grid/index.js +42 -14
- package/lib/grid/src/grid.js +860 -1112
- package/lib/grid/style/index.js +1 -1
- package/{es/grid/style.min.css → lib/grid/style/style.mini.css} +1 -1
- package/lib/index.common.js +43 -19
- package/lib/index.js +46 -0
- package/lib/index.umd.js +26848 -20027
- package/lib/index.umd.min.js +3 -1
- package/lib/locale/ar-EG.umd.js +948 -0
- package/lib/locale/ar-EG.umd.min.js +1 -0
- package/lib/locale/de-DE.umd.js +948 -0
- package/lib/locale/de-DE.umd.min.js +1 -0
- package/lib/locale/en-US.umd.js +948 -0
- package/lib/locale/en-US.umd.min.js +1 -0
- package/lib/locale/es-ES.umd.js +948 -0
- package/lib/locale/es-ES.umd.min.js +1 -0
- package/lib/locale/fr-FR.umd.js +948 -0
- package/lib/locale/fr-FR.umd.min.js +1 -0
- package/lib/locale/hu-HU.umd.js +948 -0
- package/lib/locale/hu-HU.umd.min.js +1 -0
- package/lib/locale/hy-AM.umd.js +948 -0
- package/lib/locale/hy-AM.umd.min.js +1 -0
- package/lib/locale/id-ID.umd.js +948 -0
- package/lib/locale/id-ID.umd.min.js +1 -0
- package/lib/locale/it-IT.umd.js +948 -0
- package/lib/locale/it-IT.umd.min.js +1 -0
- package/lib/locale/ja-JP.umd.js +948 -0
- package/lib/locale/ja-JP.umd.min.js +1 -0
- package/lib/locale/ko-KR.umd.js +948 -0
- package/lib/locale/ko-KR.umd.min.js +1 -0
- package/lib/locale/lang/ar-EG.js +683 -662
- package/lib/locale/lang/ar-EG.umd.js +913 -888
- package/lib/locale/lang/ar-EG.umd.min.js +1 -0
- package/lib/locale/lang/de-DE.js +683 -662
- package/lib/locale/lang/de-DE.umd.js +913 -888
- package/lib/locale/lang/de-DE.umd.min.js +1 -0
- package/lib/locale/lang/en-US.js +680 -659
- package/lib/locale/lang/en-US.umd.js +913 -888
- package/lib/locale/lang/en-US.umd.min.js +1 -0
- package/lib/locale/lang/es-ES.js +683 -662
- package/lib/locale/lang/es-ES.umd.js +913 -888
- package/lib/locale/lang/es-ES.umd.min.js +1 -0
- package/lib/locale/lang/fr-FR.js +656 -635
- package/lib/locale/lang/fr-FR.umd.js +913 -888
- package/lib/locale/lang/fr-FR.umd.min.js +1 -0
- package/lib/locale/lang/hu-HU.js +683 -662
- package/lib/locale/lang/hu-HU.umd.js +913 -888
- package/lib/locale/lang/hu-HU.umd.min.js +1 -0
- package/lib/locale/lang/hy-AM.js +683 -662
- package/lib/locale/lang/hy-AM.umd.js +913 -888
- package/lib/locale/lang/hy-AM.umd.min.js +1 -0
- package/lib/locale/lang/id-ID.js +683 -662
- package/lib/locale/lang/id-ID.umd.js +913 -888
- package/lib/locale/lang/id-ID.umd.min.js +1 -0
- package/lib/locale/lang/it-IT.js +663 -642
- package/lib/locale/lang/it-IT.umd.js +912 -887
- package/lib/locale/lang/it-IT.umd.min.js +1 -0
- package/lib/locale/lang/ja-JP.js +712 -691
- package/lib/locale/lang/ja-JP.umd.js +913 -888
- package/lib/locale/lang/ja-JP.umd.min.js +1 -0
- package/lib/locale/lang/ko-KR.js +683 -662
- package/lib/locale/lang/ko-KR.umd.js +913 -888
- package/lib/locale/lang/ko-KR.umd.min.js +1 -0
- package/lib/locale/lang/ms-MY.js +683 -662
- package/lib/locale/lang/ms-MY.umd.js +913 -888
- package/lib/locale/lang/ms-MY.umd.min.js +1 -0
- package/lib/locale/lang/nb-NO.js +683 -662
- package/lib/locale/lang/nb-NO.umd.js +913 -888
- package/lib/locale/lang/nb-NO.umd.min.js +1 -0
- package/lib/locale/lang/pt-BR.js +683 -662
- package/lib/locale/lang/pt-BR.umd.js +913 -888
- package/lib/locale/lang/pt-BR.umd.min.js +1 -0
- package/lib/locale/lang/ru-RU.js +692 -671
- package/lib/locale/lang/ru-RU.umd.js +913 -888
- package/lib/locale/lang/ru-RU.umd.min.js +1 -0
- package/lib/locale/lang/th-TH.js +683 -662
- package/lib/locale/lang/th-TH.umd.js +913 -888
- package/lib/locale/lang/th-TH.umd.min.js +1 -0
- package/lib/locale/lang/ug-CN.js +683 -662
- package/lib/locale/lang/ug-CN.umd.js +913 -888
- package/lib/locale/lang/ug-CN.umd.min.js +1 -0
- package/lib/locale/lang/uk-UA.js +676 -655
- package/lib/locale/lang/uk-UA.umd.js +913 -888
- package/lib/locale/lang/uk-UA.umd.min.js +1 -0
- package/lib/locale/lang/uz-UZ.js +585 -564
- package/lib/locale/lang/uz-UZ.umd.js +908 -883
- package/lib/locale/lang/uz-UZ.umd.min.js +1 -0
- package/lib/locale/lang/vi-VN.js +683 -662
- package/lib/locale/lang/vi-VN.umd.js +913 -888
- package/lib/locale/lang/vi-VN.umd.min.js +1 -0
- package/lib/locale/lang/zh-CHT.js +683 -662
- package/lib/locale/lang/zh-CHT.umd.js +913 -888
- package/lib/locale/lang/zh-CHT.umd.min.js +1 -0
- package/lib/locale/lang/zh-CN.js +683 -662
- package/lib/locale/lang/zh-CN.umd.js +913 -888
- package/lib/locale/lang/zh-CN.umd.min.js +1 -0
- package/lib/locale/lang/zh-HK.js +928 -7
- package/lib/locale/lang/zh-HK.umd.js +945 -20
- package/lib/locale/lang/zh-HK.umd.min.js +1 -0
- package/lib/locale/lang/zh-MO.js +928 -7
- package/lib/locale/lang/zh-MO.umd.js +945 -20
- package/lib/locale/lang/zh-MO.umd.min.js +1 -0
- package/lib/locale/lang/zh-TC.js +928 -7
- package/lib/locale/lang/zh-TC.umd.js +948 -0
- package/lib/locale/lang/zh-TC.umd.min.js +1 -0
- package/lib/locale/lang/zh-TW.js +928 -7
- package/lib/locale/lang/zh-TW.umd.js +945 -20
- package/lib/locale/lang/zh-TW.umd.min.js +1 -0
- package/lib/locale/ms-MY.umd.js +948 -0
- package/lib/locale/ms-MY.umd.min.js +1 -0
- package/lib/locale/nb-NO.umd.js +948 -0
- package/lib/locale/nb-NO.umd.min.js +1 -0
- package/lib/locale/pt-BR.umd.js +948 -0
- package/lib/locale/pt-BR.umd.min.js +1 -0
- package/lib/locale/ru-RU.umd.js +948 -0
- package/lib/locale/ru-RU.umd.min.js +1 -0
- package/lib/locale/th-TH.umd.js +948 -0
- package/lib/locale/th-TH.umd.min.js +1 -0
- package/lib/locale/ug-CN.umd.js +948 -0
- package/lib/locale/ug-CN.umd.min.js +1 -0
- package/lib/locale/uk-UA.umd.js +948 -0
- package/lib/locale/uk-UA.umd.min.js +1 -0
- package/lib/locale/uz-UZ.umd.js +948 -0
- package/lib/locale/uz-UZ.umd.min.js +1 -0
- package/lib/locale/vi-VN.umd.js +948 -0
- package/lib/locale/vi-VN.umd.min.js +1 -0
- package/lib/locale/zh-CHT.umd.js +948 -0
- package/lib/locale/zh-CHT.umd.min.js +1 -0
- package/lib/locale/zh-CN.umd.js +948 -0
- package/lib/locale/zh-CN.umd.min.js +1 -0
- package/lib/locale/zh-HK.umd.js +948 -0
- package/lib/locale/zh-HK.umd.min.js +1 -0
- package/lib/locale/zh-MO.umd.js +948 -0
- package/lib/locale/zh-MO.umd.min.js +1 -0
- package/lib/locale/zh-TC.umd.js +948 -0
- package/lib/locale/zh-TC.umd.min.js +1 -0
- package/lib/locale/zh-TW.umd.js +948 -0
- package/lib/locale/zh-TW.umd.min.js +1 -0
- package/lib/style.css +4499 -1
- package/lib/style.mini.css +1 -0
- package/lib/table/index.js +60 -32
- package/lib/table/module/custom/mixin.js +166 -262
- package/lib/table/module/custom/panel.js +1277 -1076
- package/lib/table/module/edit/mixin.js +347 -645
- package/lib/table/module/export/export-panel.js +526 -399
- package/lib/table/module/export/import-panel.js +210 -141
- package/lib/table/module/export/mixin.js +898 -1253
- package/lib/table/module/export/util.js +37 -14
- package/lib/table/module/filter/mixin.js +110 -196
- package/lib/table/module/filter/panel.js +229 -186
- package/lib/table/module/keyboard/mixin.js +104 -153
- package/lib/table/module/menu/mixin.js +89 -151
- package/lib/table/module/menu/panel.js +243 -140
- package/lib/table/module/validator/mixin.js +188 -278
- package/lib/table/render/index.js +777 -1230
- package/lib/table/src/body.js +542 -556
- package/lib/table/src/cell.js +783 -933
- package/lib/table/src/column.js +49 -23
- package/lib/table/src/columnInfo.js +86 -104
- package/lib/table/src/expand-height.js +43 -47
- package/lib/table/src/footer.js +231 -234
- package/lib/table/src/group.js +45 -23
- package/lib/table/src/header.js +352 -357
- package/lib/table/src/layout-scheduler.js +44 -48
- package/lib/table/src/methods.js +13656 -945
- package/lib/table/src/props.js +33 -36
- package/lib/table/src/scroll-sync.js +28 -17
- package/lib/table/src/store.js +24 -8
- package/lib/table/src/table.js +1217 -1302
- package/lib/table/src/util.js +218 -304
- package/lib/table/style/index.js +1 -1
- package/lib/table/style/style.css +31 -12
- package/lib/table/style/style.mini.css +1 -0
- package/lib/toolbar/index.js +42 -14
- package/lib/toolbar/src/toolbar.js +302 -357
- package/lib/toolbar/style/index.js +1 -1
- package/lib/{vxe-toolbar/style/style.min.css → toolbar/style/style.mini.css} +1 -1
- package/lib/ui/index.js +152 -194
- package/lib/ui/src/anime.js +49 -29
- package/lib/ui/src/comp.js +22 -6
- package/lib/ui/src/dom.js +126 -158
- package/lib/ui/src/log.js +34 -18
- package/lib/ui/src/utils.js +59 -47
- package/lib/ui/src/vn.js +72 -45
- package/lib/ui/style/index.js +1 -1
- package/lib/v-x-e-table/index.js +33 -20
- package/lib/vxe-colgroup/index.js +35 -20
- package/lib/vxe-colgroup/style/index.js +1 -1
- package/lib/vxe-column/index.js +35 -20
- package/lib/vxe-column/style/index.js +1 -1
- package/lib/vxe-grid/index.js +35 -20
- package/lib/vxe-grid/style/index.js +1 -1
- package/lib/vxe-grid/style/{style.min.css → style.mini.css} +1 -1
- package/lib/vxe-table/index.js +35 -20
- package/lib/vxe-table/style/index.js +1 -1
- package/lib/vxe-table/style/style.css +31 -12
- package/lib/vxe-table/style/style.mini.css +1 -0
- package/lib/vxe-toolbar/index.js +35 -20
- package/lib/vxe-toolbar/style/index.js +1 -1
- package/{es/vxe-toolbar/style.min.css → lib/vxe-toolbar/style/style.mini.css} +1 -1
- package/lib/vxe-ui/index.js +35 -20
- package/lib/vxe-ui/style/index.js +1 -1
- package/package.json +21 -6
- package/packages/colgroup/index.ts +2 -2
- package/packages/column/index.ts +2 -2
- package/packages/components.ts +12 -10
- package/packages/grid/index.ts +2 -2
- package/packages/grid/src/grid.ts +437 -351
- package/packages/index.ts +11 -0
- package/packages/locale/lang/ar-EG.ts +4 -0
- package/packages/locale/lang/de-DE.ts +4 -0
- package/packages/locale/lang/en-US.ts +4 -0
- package/packages/locale/lang/es-ES.ts +4 -0
- package/packages/locale/lang/fr-FR.ts +22 -18
- package/packages/locale/lang/hu-HU.ts +4 -0
- package/packages/locale/lang/hy-AM.ts +4 -0
- package/packages/locale/lang/id-ID.ts +4 -0
- package/packages/locale/lang/it-IT.ts +8 -4
- package/packages/locale/lang/ja-JP.ts +4 -0
- package/packages/locale/lang/ko-KR.ts +4 -0
- package/packages/locale/lang/ms-MY.ts +4 -0
- package/packages/locale/lang/nb-NO.ts +4 -0
- package/packages/locale/lang/pt-BR.ts +4 -0
- package/packages/locale/lang/ru-RU.ts +4 -0
- package/packages/locale/lang/th-TH.ts +4 -0
- package/packages/locale/lang/ug-CN.ts +4 -0
- package/packages/locale/lang/uk-UA.ts +5 -1
- package/packages/locale/lang/uz-UZ.ts +17 -13
- package/packages/locale/lang/vi-VN.ts +4 -0
- package/packages/locale/lang/zh-CHT.ts +4 -0
- package/packages/locale/lang/zh-CN.ts +4 -0
- 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/index.ts +6 -6
- package/packages/table/module/custom/mixin.ts +73 -66
- package/packages/table/module/custom/panel.ts +1176 -925
- package/packages/table/module/edit/mixin.ts +253 -173
- package/packages/table/module/export/export-panel.ts +541 -461
- package/packages/table/module/export/import-panel.ts +179 -136
- package/packages/table/module/export/mixin.ts +725 -633
- package/packages/table/module/export/util.ts +4 -3
- package/packages/table/module/filter/mixin.ts +58 -54
- package/packages/table/module/filter/panel.ts +176 -122
- package/packages/table/module/keyboard/mixin.ts +35 -31
- package/packages/table/module/menu/mixin.ts +12 -12
- package/packages/table/module/menu/panel.ts +225 -158
- package/packages/table/module/validator/mixin.ts +179 -162
- package/packages/table/render/index.ts +362 -285
- package/packages/table/src/body.ts +383 -284
- package/packages/table/src/cell.ts +579 -410
- package/packages/table/src/column.ts +6 -6
- package/packages/table/src/columnInfo.ts +7 -7
- package/packages/table/src/expand-height.ts +27 -26
- package/packages/table/src/footer.ts +172 -127
- package/packages/table/src/group.ts +5 -5
- package/packages/table/src/header.ts +275 -211
- package/packages/table/src/layout-scheduler.ts +7 -9
- package/packages/table/src/methods.ts +2132 -1809
- package/packages/table/src/props.ts +1 -1
- package/packages/table/src/scroll-sync.ts +5 -5
- package/packages/table/src/store.ts +1 -1
- package/packages/table/src/table.ts +1062 -871
- package/packages/table/src/util.ts +58 -71
- package/packages/toolbar/index.ts +2 -2
- package/packages/toolbar/src/toolbar.ts +245 -191
- package/packages/ui/index.ts +9 -36
- package/packages/ui/src/anime.ts +10 -11
- package/packages/ui/src/dom.ts +52 -49
- package/packages/ui/src/log.ts +2 -2
- package/packages/ui/src/utils.ts +13 -13
- package/packages/ui/src/vn.ts +8 -7
- package/packages/v-x-e-table/index.ts +0 -1
- package/styles/components/table-module/filter.scss +26 -13
- package/styles/components/table.scss +6 -0
- package/styles/theme/base.scss +1 -0
- package/types/all.d.ts +1 -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/grid.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/mixin.min.js +0 -1
- package/lib/table/module/custom/panel.min.js +0 -1
- package/lib/table/module/edit/mixin.min.js +0 -1
- package/lib/table/module/export/export-panel.min.js +0 -1
- package/lib/table/module/export/import-panel.min.js +0 -1
- package/lib/table/module/export/mixin.min.js +0 -1
- package/lib/table/module/export/util.min.js +0 -1
- package/lib/table/module/filter/mixin.min.js +0 -1
- package/lib/table/module/filter/panel.min.js +0 -1
- package/lib/table/module/keyboard/mixin.min.js +0 -1
- package/lib/table/module/menu/mixin.min.js +0 -1
- package/lib/table/module/menu/panel.min.js +0 -1
- package/lib/table/module/validator/mixin.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/expand-height.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/layout-scheduler.min.js +0 -1
- package/lib/table/src/methods.min.js +0 -1
- package/lib/table/src/props.min.js +0 -1
- package/lib/table/src/scroll-sync.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/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 -22
- 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/colgroup/{style.min.css → style.mini.css} +0 -0
- /package/es/column/{style.min.css → style.mini.css} +0 -0
- /package/es/{iconfont.1792648484860.ttf → iconfont.1793178568083.ttf} +0 -0
- /package/es/{iconfont.1792648484860.woff → iconfont.1793178568083.woff} +0 -0
- /package/es/{iconfont.1792648484860.woff2 → iconfont.1793178568083.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/lib/{iconfont.1792648484860.ttf → iconfont.1793178568083.ttf} +0 -0
- /package/lib/{iconfont.1792648484860.woff → iconfont.1793178568083.woff} +0 -0
- /package/lib/{iconfont.1792648484860.woff2 → iconfont.1793178568083.woff2} +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,701 +1,736 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const { errLog } = createComponentLog('table');
|
|
1
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
2
|
+
import XEUtils from "xe-utils";
|
|
3
|
+
import { formatText, getDefaultConfig } from "../../../ui/src/utils";
|
|
4
|
+
import { createComponentLog } from "../../../ui/src/log";
|
|
5
|
+
const { errLog } = createComponentLog("table");
|
|
7
6
|
const { getI18n, getIcon, globalMixins, renderEmptyElement } = VxeUI;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
var export_panel_default = {
|
|
8
|
+
name: "VxeTableExportPanel",
|
|
9
|
+
mixins: [globalMixins.sizeMixin],
|
|
10
|
+
props: {
|
|
11
|
+
defaultOptions: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => ({})
|
|
14
|
+
},
|
|
15
|
+
storeData: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
inject: {
|
|
21
|
+
$xeTable: {
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
data() {
|
|
26
|
+
const reactData = {
|
|
27
|
+
isAll: false,
|
|
28
|
+
isIndeterminate: false,
|
|
29
|
+
loading: false
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
reactData
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
computed: {
|
|
36
|
+
...{},
|
|
37
|
+
computeColWidthModeOptions() {
|
|
38
|
+
return [
|
|
39
|
+
{ value: "", label: getI18n("vxe.export.wdModes.default") },
|
|
40
|
+
{ value: "auto", label: getI18n("vxe.export.wdModes.auto") },
|
|
41
|
+
{ value: "scale", label: getI18n("vxe.export.wdModes.scale") }
|
|
42
|
+
];
|
|
43
|
+
},
|
|
44
|
+
computeCheckedAll() {
|
|
45
|
+
const $xeExportPanel = this;
|
|
46
|
+
const props = $xeExportPanel;
|
|
47
|
+
const { storeData } = props;
|
|
48
|
+
return storeData.columns.every((column) => column.checked);
|
|
49
|
+
},
|
|
50
|
+
computeShowSheet() {
|
|
51
|
+
const $xeExportPanel = this;
|
|
52
|
+
const props = $xeExportPanel;
|
|
53
|
+
const { defaultOptions } = props;
|
|
54
|
+
return ["html", "xml", "xlsx", "pdf"].indexOf(defaultOptions.type) > -1;
|
|
55
|
+
},
|
|
56
|
+
computeSupportMerge() {
|
|
57
|
+
const $xeExportPanel = this;
|
|
58
|
+
const props = $xeExportPanel;
|
|
59
|
+
const { storeData, defaultOptions } = props;
|
|
60
|
+
return !defaultOptions.original && defaultOptions.mode === "current" && (storeData.isPrint || ["html", "xlsx"].indexOf(defaultOptions.type) > -1);
|
|
61
|
+
},
|
|
62
|
+
// computeSupportGroup () {
|
|
63
|
+
// const $xeExportPanel = this
|
|
64
|
+
// const props = $xeExportPanel
|
|
65
|
+
// const { defaultOptions } = props
|
|
66
|
+
// return ['html', 'xlsx', 'csv', 'txt'].indexOf(defaultOptions.type) > -1
|
|
67
|
+
// },
|
|
68
|
+
computeSupportStyle() {
|
|
69
|
+
const $xeExportPanel = this;
|
|
70
|
+
const props = $xeExportPanel;
|
|
71
|
+
const { defaultOptions } = props;
|
|
72
|
+
return !defaultOptions.original && ["xlsx"].indexOf(defaultOptions.type) > -1;
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
created() {
|
|
76
|
+
const $xeTableExportPanel = this;
|
|
77
|
+
const VxeUIModalComponent = VxeUI.getComponent("VxeModal");
|
|
78
|
+
const VxeUIButtonComponent = VxeUI.getComponent("VxeButton");
|
|
79
|
+
const VxeUISelectComponent = VxeUI.getComponent("VxeSelect");
|
|
80
|
+
const VxeUIInputComponent = VxeUI.getComponent("VxeInput");
|
|
81
|
+
const VxeUICheckboxComponent = VxeUI.getComponent("VxeCheckbox");
|
|
82
|
+
$xeTableExportPanel.$nextTick(() => {
|
|
83
|
+
if (!VxeUIModalComponent) {
|
|
84
|
+
errLog("vxe.error.reqComp", ["vxe-modal"]);
|
|
85
|
+
}
|
|
86
|
+
if (!VxeUIButtonComponent) {
|
|
87
|
+
errLog("vxe.error.reqComp", ["vxe-button"]);
|
|
88
|
+
}
|
|
89
|
+
if (!VxeUISelectComponent) {
|
|
90
|
+
errLog("vxe.error.reqComp", ["vxe-select"]);
|
|
91
|
+
}
|
|
92
|
+
if (!VxeUIInputComponent) {
|
|
93
|
+
errLog("vxe.error.reqComp", ["vxe-input"]);
|
|
94
|
+
}
|
|
95
|
+
if (!VxeUICheckboxComponent) {
|
|
96
|
+
errLog("vxe.error.reqComp", ["vxe-checkbox"]);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
},
|
|
100
|
+
methods: {
|
|
101
|
+
changeOption(column) {
|
|
102
|
+
const $xeExportPanel = this;
|
|
103
|
+
const isChecked = !column.checked;
|
|
104
|
+
XEUtils.eachTree([column], (item) => {
|
|
105
|
+
item.checked = isChecked;
|
|
106
|
+
item.halfChecked = false;
|
|
107
|
+
});
|
|
108
|
+
$xeExportPanel.handleOptionCheck(column);
|
|
109
|
+
$xeExportPanel.checkStatus();
|
|
110
|
+
},
|
|
111
|
+
handleOptionCheck(column) {
|
|
112
|
+
const $xeExportPanel = this;
|
|
113
|
+
const props = $xeExportPanel;
|
|
114
|
+
const { storeData } = props;
|
|
115
|
+
const matchObj = XEUtils.findTree(storeData.columns, (item) => item === column);
|
|
116
|
+
if (matchObj && matchObj.parent) {
|
|
117
|
+
const { parent } = matchObj;
|
|
118
|
+
if (parent.children && parent.children.length) {
|
|
119
|
+
parent.checked = parent.children.every((column2) => column2.checked);
|
|
120
|
+
parent.halfChecked = !parent.checked && parent.children.some((column2) => column2.checked || column2.halfChecked);
|
|
121
|
+
$xeExportPanel.handleOptionCheck(parent);
|
|
21
122
|
}
|
|
123
|
+
}
|
|
22
124
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
125
|
+
checkStatus() {
|
|
126
|
+
const $xeExportPanel = this;
|
|
127
|
+
const props = $xeExportPanel;
|
|
128
|
+
const reactData = $xeExportPanel.reactData;
|
|
129
|
+
const { storeData } = props;
|
|
130
|
+
const columns = storeData.columns;
|
|
131
|
+
reactData.isAll = columns.every((column) => column.disabled || column.checked);
|
|
132
|
+
reactData.isIndeterminate = !reactData.isAll && columns.some((column) => !column.disabled && (column.checked || column.halfChecked));
|
|
133
|
+
},
|
|
134
|
+
allColumnEvent() {
|
|
135
|
+
const $xeExportPanel = this;
|
|
136
|
+
const props = $xeExportPanel;
|
|
137
|
+
const reactData = $xeExportPanel.reactData;
|
|
138
|
+
const { storeData } = props;
|
|
139
|
+
const isAll = !reactData.isAll;
|
|
140
|
+
XEUtils.eachTree(storeData.columns, (column) => {
|
|
141
|
+
if (!column.disabled) {
|
|
142
|
+
column.checked = isAll;
|
|
143
|
+
column.halfChecked = false;
|
|
26
144
|
}
|
|
145
|
+
});
|
|
146
|
+
reactData.isAll = isAll;
|
|
147
|
+
$xeExportPanel.checkStatus();
|
|
27
148
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
149
|
+
showEvent() {
|
|
150
|
+
const $xeExportPanel = this;
|
|
151
|
+
$xeExportPanel.$nextTick(() => {
|
|
152
|
+
const targetElem = $xeExportPanel.$refs.filename || $xeExportPanel.$refs.sheetname || $xeExportPanel.$refs.confirmBtn;
|
|
153
|
+
if (targetElem) {
|
|
154
|
+
targetElem.focus();
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
$xeExportPanel.checkStatus();
|
|
37
158
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
computeShowSheet() {
|
|
52
|
-
const $xeExportPanel = this;
|
|
53
|
-
const props = $xeExportPanel;
|
|
54
|
-
const { defaultOptions } = props;
|
|
55
|
-
return ['html', 'xml', 'xlsx', 'pdf'].indexOf(defaultOptions.type) > -1;
|
|
56
|
-
},
|
|
57
|
-
computeSupportMerge() {
|
|
58
|
-
const $xeExportPanel = this;
|
|
59
|
-
const props = $xeExportPanel;
|
|
60
|
-
const { storeData, defaultOptions } = props;
|
|
61
|
-
return !defaultOptions.original && defaultOptions.mode === 'current' && (storeData.isPrint || ['html', 'xlsx'].indexOf(defaultOptions.type) > -1);
|
|
62
|
-
},
|
|
63
|
-
// computeSupportGroup () {
|
|
64
|
-
// const $xeExportPanel = this
|
|
65
|
-
// const props = $xeExportPanel
|
|
66
|
-
// const { defaultOptions } = props
|
|
67
|
-
// return ['html', 'xlsx', 'csv', 'txt'].indexOf(defaultOptions.type) > -1
|
|
68
|
-
// },
|
|
69
|
-
computeSupportStyle() {
|
|
70
|
-
const $xeExportPanel = this;
|
|
71
|
-
const props = $xeExportPanel;
|
|
72
|
-
const { defaultOptions } = props;
|
|
73
|
-
return !defaultOptions.original && ['xlsx'].indexOf(defaultOptions.type) > -1;
|
|
74
|
-
} }),
|
|
75
|
-
created() {
|
|
76
|
-
const $xeTableExportPanel = this;
|
|
77
|
-
const VxeUIModalComponent = VxeUI.getComponent('VxeModal');
|
|
78
|
-
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton');
|
|
79
|
-
const VxeUISelectComponent = VxeUI.getComponent('VxeSelect');
|
|
80
|
-
const VxeUIInputComponent = VxeUI.getComponent('VxeInput');
|
|
81
|
-
const VxeUICheckboxComponent = VxeUI.getComponent('VxeCheckbox');
|
|
82
|
-
$xeTableExportPanel.$nextTick(() => {
|
|
83
|
-
if (!VxeUIModalComponent) {
|
|
84
|
-
errLog('vxe.error.reqComp', ['vxe-modal']);
|
|
85
|
-
}
|
|
86
|
-
if (!VxeUIButtonComponent) {
|
|
87
|
-
errLog('vxe.error.reqComp', ['vxe-button']);
|
|
88
|
-
}
|
|
89
|
-
if (!VxeUISelectComponent) {
|
|
90
|
-
errLog('vxe.error.reqComp', ['vxe-select']);
|
|
91
|
-
}
|
|
92
|
-
if (!VxeUIInputComponent) {
|
|
93
|
-
errLog('vxe.error.reqComp', ['vxe-input']);
|
|
94
|
-
}
|
|
95
|
-
if (!VxeUICheckboxComponent) {
|
|
96
|
-
errLog('vxe.error.reqComp', ['vxe-checkbox']);
|
|
97
|
-
}
|
|
98
|
-
});
|
|
159
|
+
getExportOption() {
|
|
160
|
+
const $xeExportPanel = this;
|
|
161
|
+
const props = $xeExportPanel;
|
|
162
|
+
const { storeData, defaultOptions } = props;
|
|
163
|
+
const { hasMerge, columns } = storeData;
|
|
164
|
+
const checkedAll = $xeExportPanel.computeCheckedAll;
|
|
165
|
+
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
166
|
+
const expColumns = XEUtils.searchTree(columns, (column) => column.checked, { children: "children", mapChildren: "_children", original: true });
|
|
167
|
+
return Object.assign({}, defaultOptions, {
|
|
168
|
+
_columns: expColumns,
|
|
169
|
+
isMerge: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false
|
|
170
|
+
});
|
|
99
171
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
172
|
+
cancelEvent() {
|
|
173
|
+
const $xeExportPanel = this;
|
|
174
|
+
const props = $xeExportPanel;
|
|
175
|
+
const { storeData } = props;
|
|
176
|
+
storeData.visible = false;
|
|
177
|
+
},
|
|
178
|
+
confirmEvent() {
|
|
179
|
+
const $xeExportPanel = this;
|
|
180
|
+
const props = $xeExportPanel;
|
|
181
|
+
const { storeData } = props;
|
|
182
|
+
if (storeData.isPrint) {
|
|
183
|
+
$xeExportPanel.printEvent();
|
|
184
|
+
} else {
|
|
185
|
+
$xeExportPanel.exportEvent();
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
printEvent() {
|
|
189
|
+
const $xeExportPanel = this;
|
|
190
|
+
const props = $xeExportPanel;
|
|
191
|
+
const $xeTable = $xeExportPanel.$xeTable;
|
|
192
|
+
const { storeData } = props;
|
|
193
|
+
storeData.visible = false;
|
|
194
|
+
$xeTable.print(Object.assign({}, $xeTable.printOpts, $xeExportPanel.getExportOption()));
|
|
195
|
+
},
|
|
196
|
+
exportEvent() {
|
|
197
|
+
const $xeExportPanel = this;
|
|
198
|
+
const props = $xeExportPanel;
|
|
199
|
+
const reactData = $xeExportPanel.reactData;
|
|
200
|
+
const $xeTable = $xeExportPanel.$xeTable;
|
|
201
|
+
const { storeData } = props;
|
|
202
|
+
const exportOpts = $xeTable.exportOpts;
|
|
203
|
+
reactData.loading = true;
|
|
204
|
+
$xeTable.exportData(Object.assign({}, exportOpts, $xeExportPanel.getExportOption())).then(() => {
|
|
205
|
+
reactData.loading = false;
|
|
206
|
+
storeData.visible = false;
|
|
207
|
+
}).catch(() => {
|
|
208
|
+
reactData.loading = false;
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
renderVN(h) {
|
|
212
|
+
const VxeUIModalComponent = VxeUI.getComponent("VxeModal");
|
|
213
|
+
const VxeUIButtonComponent = VxeUI.getComponent("VxeButton");
|
|
214
|
+
const VxeUISelectComponent = VxeUI.getComponent("VxeSelect");
|
|
215
|
+
const VxeUIInputComponent = VxeUI.getComponent("VxeInput");
|
|
216
|
+
const VxeUICheckboxComponent = VxeUI.getComponent("VxeCheckbox");
|
|
217
|
+
const $xeExportPanel = this;
|
|
218
|
+
const props = $xeExportPanel;
|
|
219
|
+
const reactData = $xeExportPanel.reactData;
|
|
220
|
+
const $xeTable = $xeExportPanel.$xeTable;
|
|
221
|
+
const $xeGrid = $xeTable.$xeGrid;
|
|
222
|
+
const $xeGantt = $xeTable.$xeGantt;
|
|
223
|
+
const { defaultOptions, storeData } = props;
|
|
224
|
+
const { isAll: isAllChecked, isIndeterminate: isAllIndeterminate } = reactData;
|
|
225
|
+
const { hasTree, hasRowGroup, hasMerge, isPrint, hasColgroup, columns } = storeData;
|
|
226
|
+
const { isHeader } = defaultOptions;
|
|
227
|
+
const colVNs = [];
|
|
228
|
+
const exportOpts = $xeTable.computeExportOpts;
|
|
229
|
+
const printOpts = $xeTable.computePrintOpts;
|
|
230
|
+
const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
|
|
231
|
+
const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
|
|
232
|
+
const checkedAll = $xeExportPanel.computeCheckedAll;
|
|
233
|
+
const showSheet = $xeExportPanel.computeShowSheet;
|
|
234
|
+
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
235
|
+
const supportStyle = $xeExportPanel.computeSupportStyle;
|
|
236
|
+
const colWidthModeOptions = $xeExportPanel.computeColWidthModeOptions;
|
|
237
|
+
const slots = defaultOptions.slots || {};
|
|
238
|
+
const topSlot = slots.top;
|
|
239
|
+
const bottomSlot = slots.bottom;
|
|
240
|
+
const defaultSlot = slots.default;
|
|
241
|
+
const footerSlot = slots.footer;
|
|
242
|
+
const parameterSlot = slots.parameter;
|
|
243
|
+
XEUtils.eachTree(columns, (column) => {
|
|
244
|
+
const colTitle = formatText(column.getTitle(), 1);
|
|
245
|
+
const isColGroup = column.children && column.children.length;
|
|
246
|
+
const isChecked = column.checked;
|
|
247
|
+
const indeterminate = column.halfChecked;
|
|
248
|
+
const isHtml = column.type === "html";
|
|
249
|
+
colVNs.push(
|
|
250
|
+
h(
|
|
251
|
+
"li",
|
|
252
|
+
{
|
|
253
|
+
class: [
|
|
254
|
+
"vxe-table-export--panel-column-option",
|
|
255
|
+
`level--${column.level}`,
|
|
256
|
+
{
|
|
257
|
+
"is--group": isColGroup,
|
|
258
|
+
"is--checked": isChecked,
|
|
259
|
+
"is--indeterminate": indeterminate,
|
|
260
|
+
"is--disabled": column.disabled
|
|
122
261
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
reactData.isIndeterminate = !reactData.isAll && columns.some((column) => !column.disabled && (column.checked || column.halfChecked));
|
|
133
|
-
},
|
|
134
|
-
allColumnEvent() {
|
|
135
|
-
const $xeExportPanel = this;
|
|
136
|
-
const props = $xeExportPanel;
|
|
137
|
-
const reactData = $xeExportPanel.reactData;
|
|
138
|
-
const { storeData } = props;
|
|
139
|
-
const isAll = !reactData.isAll;
|
|
140
|
-
XEUtils.eachTree(storeData.columns, column => {
|
|
141
|
-
if (!column.disabled) {
|
|
142
|
-
column.checked = isAll;
|
|
143
|
-
column.halfChecked = false;
|
|
262
|
+
],
|
|
263
|
+
attrs: {
|
|
264
|
+
title: colTitle
|
|
265
|
+
},
|
|
266
|
+
on: {
|
|
267
|
+
click: () => {
|
|
268
|
+
if (!column.disabled) {
|
|
269
|
+
$xeExportPanel.changeOption(column);
|
|
270
|
+
}
|
|
144
271
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
[
|
|
275
|
+
h("span", {
|
|
276
|
+
class: ["vxe-checkbox--icon", indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
277
|
+
}),
|
|
278
|
+
isHtml ? h("span", {
|
|
279
|
+
key: "1",
|
|
280
|
+
class: "vxe-checkbox--label",
|
|
281
|
+
domProps: {
|
|
282
|
+
innerHTML: colTitle
|
|
155
283
|
}
|
|
156
|
-
|
|
157
|
-
|
|
284
|
+
}) : h(
|
|
285
|
+
"span",
|
|
286
|
+
{
|
|
287
|
+
key: "0",
|
|
288
|
+
class: "vxe-checkbox--label"
|
|
289
|
+
},
|
|
290
|
+
colTitle
|
|
291
|
+
)
|
|
292
|
+
]
|
|
293
|
+
)
|
|
294
|
+
);
|
|
295
|
+
});
|
|
296
|
+
return VxeUIModalComponent ? h(VxeUIModalComponent, {
|
|
297
|
+
ref: "modal",
|
|
298
|
+
props: {
|
|
299
|
+
id: "VXE_EXPORT_MODAL",
|
|
300
|
+
value: storeData.visible,
|
|
301
|
+
title: modelOptions.title || getI18n(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle"),
|
|
302
|
+
width: modelOptions.width || 660,
|
|
303
|
+
height: modelOptions.height,
|
|
304
|
+
minWidth: modelOptions.minWidth || 500,
|
|
305
|
+
minHeight: modelOptions.minHeight || 400,
|
|
306
|
+
mask: getDefaultConfig(modelOptions.mask, true),
|
|
307
|
+
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
308
|
+
showFooter: true,
|
|
309
|
+
escClosable: true,
|
|
310
|
+
maskClosable: true,
|
|
311
|
+
position: modelOptions.position,
|
|
312
|
+
fullscreen: modelOptions.fullscreen,
|
|
313
|
+
remember: modelOptions.remember,
|
|
314
|
+
showMinimize: modelOptions.showMinimize,
|
|
315
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
316
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
317
|
+
loading: reactData.loading
|
|
158
318
|
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const checkedAll = $xeExportPanel.computeCheckedAll;
|
|
165
|
-
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
166
|
-
// 内部导出使用 _columns -> _children 为自定义子集
|
|
167
|
-
const expColumns = XEUtils.searchTree(columns, column => column.checked, { children: 'children', mapChildren: '_children', original: true });
|
|
168
|
-
return Object.assign({}, defaultOptions, {
|
|
169
|
-
_columns: expColumns,
|
|
170
|
-
isMerge: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false
|
|
171
|
-
});
|
|
319
|
+
on: {
|
|
320
|
+
input(value) {
|
|
321
|
+
storeData.visible = value;
|
|
322
|
+
},
|
|
323
|
+
show: $xeExportPanel.showEvent
|
|
172
324
|
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
renderVN(h) {
|
|
214
|
-
const VxeUIModalComponent = VxeUI.getComponent('VxeModal');
|
|
215
|
-
const VxeUIButtonComponent = VxeUI.getComponent('VxeButton');
|
|
216
|
-
const VxeUISelectComponent = VxeUI.getComponent('VxeSelect');
|
|
217
|
-
const VxeUIInputComponent = VxeUI.getComponent('VxeInput');
|
|
218
|
-
const VxeUICheckboxComponent = VxeUI.getComponent('VxeCheckbox');
|
|
219
|
-
const $xeExportPanel = this;
|
|
220
|
-
const props = $xeExportPanel;
|
|
221
|
-
const reactData = $xeExportPanel.reactData;
|
|
222
|
-
const $xeTable = $xeExportPanel.$xeTable;
|
|
223
|
-
const $xeGrid = $xeTable.$xeGrid;
|
|
224
|
-
const $xeGantt = $xeTable.$xeGantt;
|
|
225
|
-
const { defaultOptions, storeData } = props;
|
|
226
|
-
const { isAll: isAllChecked, isIndeterminate: isAllIndeterminate } = reactData;
|
|
227
|
-
const { hasTree, hasRowGroup, hasMerge, isPrint, hasColgroup, columns } = storeData;
|
|
228
|
-
const { isHeader } = defaultOptions;
|
|
229
|
-
const colVNs = [];
|
|
230
|
-
const exportOpts = $xeTable.computeExportOpts;
|
|
231
|
-
const printOpts = $xeTable.computePrintOpts;
|
|
232
|
-
const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
|
|
233
|
-
const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
|
|
234
|
-
const checkedAll = $xeExportPanel.computeCheckedAll;
|
|
235
|
-
const showSheet = $xeExportPanel.computeShowSheet;
|
|
236
|
-
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
237
|
-
const supportStyle = $xeExportPanel.computeSupportStyle;
|
|
238
|
-
const colWidthModeOptions = $xeExportPanel.computeColWidthModeOptions;
|
|
239
|
-
// const supportGroup = $xeExportPanel.computeSupportGroup
|
|
240
|
-
const slots = defaultOptions.slots || {};
|
|
241
|
-
const topSlot = slots.top;
|
|
242
|
-
const bottomSlot = slots.bottom;
|
|
243
|
-
const defaultSlot = slots.default;
|
|
244
|
-
const footerSlot = slots.footer;
|
|
245
|
-
const parameterSlot = slots.parameter;
|
|
246
|
-
XEUtils.eachTree(columns, column => {
|
|
247
|
-
const colTitle = formatText(column.getTitle(), 1);
|
|
248
|
-
const isColGroup = column.children && column.children.length;
|
|
249
|
-
const isChecked = column.checked;
|
|
250
|
-
const indeterminate = column.halfChecked;
|
|
251
|
-
const isHtml = column.type === 'html';
|
|
252
|
-
colVNs.push(h('li', {
|
|
253
|
-
class: ['vxe-table-export--panel-column-option', `level--${column.level}`, {
|
|
254
|
-
'is--group': isColGroup,
|
|
255
|
-
'is--checked': isChecked,
|
|
256
|
-
'is--indeterminate': indeterminate,
|
|
257
|
-
'is--disabled': column.disabled
|
|
258
|
-
}],
|
|
259
|
-
attrs: {
|
|
260
|
-
title: colTitle
|
|
261
|
-
},
|
|
262
|
-
on: {
|
|
263
|
-
click: () => {
|
|
264
|
-
if (!column.disabled) {
|
|
265
|
-
$xeExportPanel.changeOption(column);
|
|
266
|
-
}
|
|
325
|
+
scopedSlots: {
|
|
326
|
+
default() {
|
|
327
|
+
const params = {
|
|
328
|
+
$table: $xeTable,
|
|
329
|
+
$grid: $xeGrid,
|
|
330
|
+
$gantt: $xeGantt,
|
|
331
|
+
options: defaultOptions,
|
|
332
|
+
columns,
|
|
333
|
+
params: defaultOptions.params
|
|
334
|
+
};
|
|
335
|
+
const hasEmptyData = defaultOptions.mode === "empty";
|
|
336
|
+
return h(
|
|
337
|
+
"div",
|
|
338
|
+
{
|
|
339
|
+
class: "vxe-table-export--panel"
|
|
340
|
+
},
|
|
341
|
+
[
|
|
342
|
+
topSlot ? h(
|
|
343
|
+
"div",
|
|
344
|
+
{
|
|
345
|
+
class: "vxe-table-export--panel-top"
|
|
346
|
+
},
|
|
347
|
+
$xeTable.callSlot(topSlot, params, h)
|
|
348
|
+
) : renderEmptyElement($xeTable),
|
|
349
|
+
h(
|
|
350
|
+
"div",
|
|
351
|
+
{
|
|
352
|
+
class: "vxe-table-export--panel-body"
|
|
353
|
+
},
|
|
354
|
+
defaultSlot ? $xeTable.callSlot(defaultSlot, params, h) : [
|
|
355
|
+
h(
|
|
356
|
+
"table",
|
|
357
|
+
{
|
|
358
|
+
attrs: {
|
|
359
|
+
class: "vxe-table-export--panel-table",
|
|
360
|
+
cellspacing: 0,
|
|
361
|
+
cellpadding: 0,
|
|
362
|
+
border: 0
|
|
267
363
|
}
|
|
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
|
-
|
|
364
|
+
},
|
|
365
|
+
[
|
|
366
|
+
h("tbody", [
|
|
367
|
+
[
|
|
368
|
+
isPrint || settingOptions.showFileName === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
369
|
+
h("td", getI18n("vxe.export.expName")),
|
|
370
|
+
h("td", [
|
|
371
|
+
VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
372
|
+
ref: "filename",
|
|
373
|
+
props: {
|
|
374
|
+
value: defaultOptions.filename,
|
|
375
|
+
type: "text",
|
|
376
|
+
clearable: true,
|
|
377
|
+
placeholder: getI18n("vxe.export.expNamePlaceholder")
|
|
378
|
+
},
|
|
379
|
+
on: {
|
|
380
|
+
modelValue(value) {
|
|
381
|
+
defaultOptions.filename = value;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}) : renderEmptyElement($xeTable)
|
|
385
|
+
])
|
|
386
|
+
]),
|
|
387
|
+
isPrint || settingOptions.showType === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
388
|
+
h("td", getI18n("vxe.export.expType")),
|
|
389
|
+
h("td", [
|
|
390
|
+
h("vxe-select", {
|
|
391
|
+
props: {
|
|
392
|
+
value: defaultOptions.type,
|
|
393
|
+
options: storeData.typeList
|
|
394
|
+
},
|
|
395
|
+
on: {
|
|
396
|
+
modelValue(value) {
|
|
397
|
+
defaultOptions.type = value;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
})
|
|
401
|
+
])
|
|
402
|
+
]),
|
|
403
|
+
(isPrint || showSheet) && settingOptions.showSheet !== false ? h("tr", [
|
|
404
|
+
h("td", getI18n("vxe.export.expSheetName")),
|
|
405
|
+
h("td", [
|
|
406
|
+
VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
407
|
+
ref: "sheetname",
|
|
408
|
+
props: {
|
|
409
|
+
value: defaultOptions.sheetName,
|
|
410
|
+
type: "text",
|
|
411
|
+
clearable: true,
|
|
412
|
+
placeholder: getI18n("vxe.export.expSheetNamePlaceholder")
|
|
413
|
+
},
|
|
414
|
+
on: {
|
|
415
|
+
modelValue(value) {
|
|
416
|
+
defaultOptions.sheetName = value;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}) : renderEmptyElement($xeTable)
|
|
420
|
+
])
|
|
421
|
+
]) : renderEmptyElement($xeTable),
|
|
422
|
+
settingOptions.showMode === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
423
|
+
h("td", getI18n("vxe.export.expMode")),
|
|
424
|
+
h("td", [
|
|
425
|
+
h(VxeUISelectComponent, {
|
|
426
|
+
props: {
|
|
427
|
+
value: defaultOptions.mode,
|
|
428
|
+
options: storeData.modeList
|
|
429
|
+
},
|
|
430
|
+
on: {
|
|
431
|
+
modelValue(value) {
|
|
432
|
+
defaultOptions.mode = value;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
})
|
|
436
|
+
])
|
|
437
|
+
]),
|
|
438
|
+
settingOptions.showColumn === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
439
|
+
h("td", [getI18n("vxe.export.expColumn")]),
|
|
440
|
+
h("td", [
|
|
441
|
+
h(
|
|
442
|
+
"div",
|
|
443
|
+
{
|
|
444
|
+
class: "vxe-table-export--panel-column"
|
|
445
|
+
},
|
|
446
|
+
[
|
|
447
|
+
h(
|
|
448
|
+
"ul",
|
|
449
|
+
{
|
|
450
|
+
class: "vxe-table-export--panel-column-header"
|
|
451
|
+
},
|
|
452
|
+
[
|
|
453
|
+
h(
|
|
454
|
+
"li",
|
|
455
|
+
{
|
|
456
|
+
class: [
|
|
457
|
+
"vxe-table-export--panel-column-option",
|
|
458
|
+
{
|
|
459
|
+
"is--checked": isAllChecked,
|
|
460
|
+
"is--indeterminate": isAllIndeterminate
|
|
461
|
+
}
|
|
462
|
+
],
|
|
342
463
|
attrs: {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
464
|
+
title: getI18n("vxe.table.allTitle")
|
|
465
|
+
},
|
|
466
|
+
on: {
|
|
467
|
+
click: $xeExportPanel.allColumnEvent
|
|
347
468
|
}
|
|
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
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
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
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
: []),
|
|
606
|
-
h('div', {
|
|
607
|
-
class: 'vxe-table-export--panel-option-row'
|
|
608
|
-
}, VxeUICheckboxComponent
|
|
609
|
-
? [
|
|
610
|
-
h(VxeUICheckboxComponent, {
|
|
611
|
-
props: {
|
|
612
|
-
value: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
613
|
-
disabled: hasEmptyData || !hasTree,
|
|
614
|
-
title: getI18n('vxe.export.expTreeAllExpandTitle'),
|
|
615
|
-
content: getI18n('vxe.export.expOptTreeAllExpand')
|
|
616
|
-
},
|
|
617
|
-
on: {
|
|
618
|
-
input(value) {
|
|
619
|
-
defaultOptions.isTreeAllExpanded = value;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}),
|
|
623
|
-
h(VxeUICheckboxComponent, {
|
|
624
|
-
props: {
|
|
625
|
-
value: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
626
|
-
disabled: hasEmptyData || !hasRowGroup,
|
|
627
|
-
title: getI18n('vxe.export.expRowGroupAllExpandTitle'),
|
|
628
|
-
content: getI18n('vxe.export.expOptRowGroupAllExpand')
|
|
629
|
-
},
|
|
630
|
-
on: {
|
|
631
|
-
input(value) {
|
|
632
|
-
defaultOptions.isRowGroupAllExpanded = value;
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
})
|
|
636
|
-
]
|
|
637
|
-
: [])
|
|
638
|
-
])
|
|
639
|
-
])
|
|
640
|
-
]
|
|
641
|
-
])
|
|
642
|
-
])
|
|
643
|
-
]),
|
|
644
|
-
bottomSlot
|
|
645
|
-
? h('div', {
|
|
646
|
-
class: 'vxe-table-export--panel-bottom'
|
|
647
|
-
}, $xeTable.callSlot(bottomSlot, params, h))
|
|
648
|
-
: renderEmptyElement($xeTable)
|
|
649
|
-
]);
|
|
650
|
-
},
|
|
651
|
-
footer() {
|
|
652
|
-
const params = {
|
|
653
|
-
$table: $xeTable,
|
|
654
|
-
$grid: $xeGrid,
|
|
655
|
-
$gantt: $xeGantt,
|
|
656
|
-
options: defaultOptions,
|
|
657
|
-
columns,
|
|
658
|
-
params: defaultOptions.params
|
|
659
|
-
};
|
|
660
|
-
return h('div', {
|
|
661
|
-
class: 'vxe-table-export--panel-footer'
|
|
662
|
-
}, footerSlot
|
|
663
|
-
? $xeTable.callSlot(footerSlot, params, h)
|
|
664
|
-
: [
|
|
665
|
-
h('div', {
|
|
666
|
-
class: 'vxe-table-export--panel-btns'
|
|
667
|
-
}, [
|
|
668
|
-
VxeUIButtonComponent
|
|
669
|
-
? h(VxeUIButtonComponent, {
|
|
670
|
-
props: {
|
|
671
|
-
content: getI18n('vxe.export.expCancel')
|
|
672
|
-
},
|
|
673
|
-
on: {
|
|
674
|
-
click: $xeExportPanel.cancelEvent
|
|
675
|
-
}
|
|
676
|
-
})
|
|
677
|
-
: renderEmptyElement($xeTable),
|
|
678
|
-
VxeUIButtonComponent
|
|
679
|
-
? h(VxeUIButtonComponent, {
|
|
680
|
-
ref: 'confirmBtn',
|
|
681
|
-
props: {
|
|
682
|
-
status: 'primary',
|
|
683
|
-
content: getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm')
|
|
684
|
-
},
|
|
685
|
-
on: {
|
|
686
|
-
click: $xeExportPanel.confirmEvent
|
|
687
|
-
}
|
|
688
|
-
})
|
|
689
|
-
: renderEmptyElement($xeTable)
|
|
690
|
-
])
|
|
691
|
-
]);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
})
|
|
695
|
-
: renderEmptyElement($xeTable);
|
|
469
|
+
},
|
|
470
|
+
[
|
|
471
|
+
h("span", {
|
|
472
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
473
|
+
}),
|
|
474
|
+
h(
|
|
475
|
+
"span",
|
|
476
|
+
{
|
|
477
|
+
class: "vxe-checkbox--label"
|
|
478
|
+
},
|
|
479
|
+
getI18n("vxe.export.expCurrentColumn")
|
|
480
|
+
)
|
|
481
|
+
]
|
|
482
|
+
)
|
|
483
|
+
]
|
|
484
|
+
),
|
|
485
|
+
h(
|
|
486
|
+
"ul",
|
|
487
|
+
{
|
|
488
|
+
class: "vxe-table-export--panel-column-body"
|
|
489
|
+
},
|
|
490
|
+
colVNs
|
|
491
|
+
)
|
|
492
|
+
]
|
|
493
|
+
)
|
|
494
|
+
])
|
|
495
|
+
]),
|
|
496
|
+
isPrint && settingOptions.showWidthMode !== false ? h("tr", [
|
|
497
|
+
h("td", getI18n("vxe.export.widthMode")),
|
|
498
|
+
h("td", [
|
|
499
|
+
VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
500
|
+
props: {
|
|
501
|
+
value: defaultOptions.widthMode,
|
|
502
|
+
options: colWidthModeOptions
|
|
503
|
+
},
|
|
504
|
+
on: {
|
|
505
|
+
modelValue(value) {
|
|
506
|
+
defaultOptions.widthMode = value;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}) : renderEmptyElement($xeTable)
|
|
510
|
+
])
|
|
511
|
+
]) : renderEmptyElement($xeTable),
|
|
512
|
+
settingOptions.showParameter === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
513
|
+
h("td", getI18n("vxe.export.expOpts")),
|
|
514
|
+
parameterSlot ? h("td", [
|
|
515
|
+
h(
|
|
516
|
+
"div",
|
|
517
|
+
{
|
|
518
|
+
class: "vxe-table-export--panel-option-row"
|
|
519
|
+
},
|
|
520
|
+
$xeTable.callSlot(parameterSlot, params, h)
|
|
521
|
+
)
|
|
522
|
+
]) : h("td", [
|
|
523
|
+
h(
|
|
524
|
+
"div",
|
|
525
|
+
{
|
|
526
|
+
class: "vxe-table-export--panel-option-row"
|
|
527
|
+
},
|
|
528
|
+
VxeUICheckboxComponent ? [
|
|
529
|
+
h(VxeUICheckboxComponent, {
|
|
530
|
+
props: {
|
|
531
|
+
value: hasEmptyData || isHeader,
|
|
532
|
+
disabled: hasEmptyData,
|
|
533
|
+
title: getI18n("vxe.export.expHeaderTitle"),
|
|
534
|
+
content: getI18n("vxe.export.expOptHeader")
|
|
535
|
+
},
|
|
536
|
+
on: {
|
|
537
|
+
input(value) {
|
|
538
|
+
defaultOptions.isHeader = value;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}),
|
|
542
|
+
h(VxeUICheckboxComponent, {
|
|
543
|
+
props: {
|
|
544
|
+
value: defaultOptions.isFooter,
|
|
545
|
+
disabled: !storeData.hasFooter,
|
|
546
|
+
title: getI18n("vxe.export.expFooterTitle"),
|
|
547
|
+
content: getI18n("vxe.export.expOptFooter")
|
|
548
|
+
},
|
|
549
|
+
on: {
|
|
550
|
+
input(value) {
|
|
551
|
+
defaultOptions.isFooter = value;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}),
|
|
555
|
+
h(VxeUICheckboxComponent, {
|
|
556
|
+
props: {
|
|
557
|
+
value: isHeader ? defaultOptions.isTitle : false,
|
|
558
|
+
disabled: !isHeader,
|
|
559
|
+
title: getI18n("vxe.export.expTitleTitle"),
|
|
560
|
+
content: getI18n("vxe.export.expOptTitle")
|
|
561
|
+
},
|
|
562
|
+
on: {
|
|
563
|
+
input(value) {
|
|
564
|
+
defaultOptions.isTitle = value;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}),
|
|
568
|
+
h(VxeUICheckboxComponent, {
|
|
569
|
+
props: {
|
|
570
|
+
value: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
571
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
572
|
+
title: getI18n("vxe.export.expColgroupTitle"),
|
|
573
|
+
content: getI18n("vxe.export.expOptColgroup")
|
|
574
|
+
},
|
|
575
|
+
on: {
|
|
576
|
+
input(value) {
|
|
577
|
+
defaultOptions.isColgroup = value;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
})
|
|
581
|
+
] : []
|
|
582
|
+
),
|
|
583
|
+
h(
|
|
584
|
+
"div",
|
|
585
|
+
{
|
|
586
|
+
class: "vxe-table-export--panel-option-row"
|
|
587
|
+
},
|
|
588
|
+
VxeUICheckboxComponent ? [
|
|
589
|
+
h(VxeUICheckboxComponent, {
|
|
590
|
+
props: {
|
|
591
|
+
value: hasEmptyData ? false : defaultOptions.original,
|
|
592
|
+
disabled: hasEmptyData,
|
|
593
|
+
title: getI18n("vxe.export.expOriginalTitle"),
|
|
594
|
+
content: getI18n("vxe.export.expOptOriginal")
|
|
595
|
+
},
|
|
596
|
+
on: {
|
|
597
|
+
input(value) {
|
|
598
|
+
defaultOptions.original = value;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}),
|
|
602
|
+
h(VxeUICheckboxComponent, {
|
|
603
|
+
props: {
|
|
604
|
+
value: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
605
|
+
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
606
|
+
title: getI18n("vxe.export.expMergeTitle"),
|
|
607
|
+
content: getI18n("vxe.export.expOptMerge")
|
|
608
|
+
},
|
|
609
|
+
on: {
|
|
610
|
+
input(value) {
|
|
611
|
+
defaultOptions.isMerge = value;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}),
|
|
615
|
+
isPrint ? renderEmptyElement($xeTable) : h(VxeUICheckboxComponent, {
|
|
616
|
+
props: {
|
|
617
|
+
value: supportStyle ? defaultOptions.useStyle : false,
|
|
618
|
+
disabled: !supportStyle,
|
|
619
|
+
title: getI18n("vxe.export.expUseStyleTitle"),
|
|
620
|
+
content: getI18n("vxe.export.expOptUseStyle")
|
|
621
|
+
},
|
|
622
|
+
on: {
|
|
623
|
+
input(value) {
|
|
624
|
+
defaultOptions.useStyle = value;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
})
|
|
628
|
+
] : []
|
|
629
|
+
),
|
|
630
|
+
h(
|
|
631
|
+
"div",
|
|
632
|
+
{
|
|
633
|
+
class: "vxe-table-export--panel-option-row"
|
|
634
|
+
},
|
|
635
|
+
VxeUICheckboxComponent ? [
|
|
636
|
+
h(VxeUICheckboxComponent, {
|
|
637
|
+
props: {
|
|
638
|
+
value: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
639
|
+
disabled: hasEmptyData || !hasTree,
|
|
640
|
+
title: getI18n("vxe.export.expTreeAllExpandTitle"),
|
|
641
|
+
content: getI18n("vxe.export.expOptTreeAllExpand")
|
|
642
|
+
},
|
|
643
|
+
on: {
|
|
644
|
+
input(value) {
|
|
645
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}),
|
|
649
|
+
h(VxeUICheckboxComponent, {
|
|
650
|
+
props: {
|
|
651
|
+
value: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
652
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
653
|
+
title: getI18n("vxe.export.expRowGroupAllExpandTitle"),
|
|
654
|
+
content: getI18n("vxe.export.expOptRowGroupAllExpand")
|
|
655
|
+
},
|
|
656
|
+
on: {
|
|
657
|
+
input(value) {
|
|
658
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
})
|
|
662
|
+
] : []
|
|
663
|
+
)
|
|
664
|
+
])
|
|
665
|
+
])
|
|
666
|
+
]
|
|
667
|
+
])
|
|
668
|
+
]
|
|
669
|
+
)
|
|
670
|
+
]
|
|
671
|
+
),
|
|
672
|
+
bottomSlot ? h(
|
|
673
|
+
"div",
|
|
674
|
+
{
|
|
675
|
+
class: "vxe-table-export--panel-bottom"
|
|
676
|
+
},
|
|
677
|
+
$xeTable.callSlot(bottomSlot, params, h)
|
|
678
|
+
) : renderEmptyElement($xeTable)
|
|
679
|
+
]
|
|
680
|
+
);
|
|
681
|
+
},
|
|
682
|
+
footer() {
|
|
683
|
+
const params = {
|
|
684
|
+
$table: $xeTable,
|
|
685
|
+
$grid: $xeGrid,
|
|
686
|
+
$gantt: $xeGantt,
|
|
687
|
+
options: defaultOptions,
|
|
688
|
+
columns,
|
|
689
|
+
params: defaultOptions.params
|
|
690
|
+
};
|
|
691
|
+
return h(
|
|
692
|
+
"div",
|
|
693
|
+
{
|
|
694
|
+
class: "vxe-table-export--panel-footer"
|
|
695
|
+
},
|
|
696
|
+
footerSlot ? $xeTable.callSlot(footerSlot, params, h) : [
|
|
697
|
+
h(
|
|
698
|
+
"div",
|
|
699
|
+
{
|
|
700
|
+
class: "vxe-table-export--panel-btns"
|
|
701
|
+
},
|
|
702
|
+
[
|
|
703
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
704
|
+
props: {
|
|
705
|
+
content: getI18n("vxe.export.expCancel")
|
|
706
|
+
},
|
|
707
|
+
on: {
|
|
708
|
+
click: $xeExportPanel.cancelEvent
|
|
709
|
+
}
|
|
710
|
+
}) : renderEmptyElement($xeTable),
|
|
711
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
712
|
+
ref: "confirmBtn",
|
|
713
|
+
props: {
|
|
714
|
+
status: "primary",
|
|
715
|
+
content: getI18n(isPrint ? "vxe.export.expPrint" : "vxe.export.expConfirm")
|
|
716
|
+
},
|
|
717
|
+
on: {
|
|
718
|
+
click: $xeExportPanel.confirmEvent
|
|
719
|
+
}
|
|
720
|
+
}) : renderEmptyElement($xeTable)
|
|
721
|
+
]
|
|
722
|
+
)
|
|
723
|
+
]
|
|
724
|
+
);
|
|
725
|
+
}
|
|
696
726
|
}
|
|
697
|
-
|
|
698
|
-
render(h) {
|
|
699
|
-
return this.renderVN(h);
|
|
727
|
+
}) : renderEmptyElement($xeTable);
|
|
700
728
|
}
|
|
729
|
+
},
|
|
730
|
+
render(h) {
|
|
731
|
+
return this.renderVN(h);
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
export {
|
|
735
|
+
export_panel_default as default
|
|
701
736
|
};
|