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,26 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty
|
|
4
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var export_panel_exports = {};
|
|
30
|
+
__export(export_panel_exports, {
|
|
31
|
+
default: () => export_panel_default
|
|
5
32
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = (0, _log.createComponentLog)('table');
|
|
16
|
-
const {
|
|
17
|
-
getI18n,
|
|
18
|
-
getIcon,
|
|
19
|
-
globalMixins,
|
|
20
|
-
renderEmptyElement
|
|
21
|
-
} = _ui.VxeUI;
|
|
22
|
-
var _default = exports.default = /* define-vxe-component start */(0, _comp.defineVxeComponent)({
|
|
23
|
-
name: 'VxeTableExportPanel',
|
|
33
|
+
module.exports = __toCommonJS(export_panel_exports);
|
|
34
|
+
var import_core = require("@vxe-ui/core");
|
|
35
|
+
var import_xe_utils = __toESM(require("xe-utils"));
|
|
36
|
+
var import_utils = require("../../../ui/src/utils");
|
|
37
|
+
var import_log = require("../../../ui/src/log");
|
|
38
|
+
const { errLog } = (0, import_log.createComponentLog)("table");
|
|
39
|
+
const { getI18n, getIcon, globalMixins, renderEmptyElement } = import_core.VxeUI;
|
|
40
|
+
var export_panel_default = {
|
|
41
|
+
name: "VxeTableExportPanel",
|
|
24
42
|
mixins: [globalMixins.sizeMixin],
|
|
25
43
|
props: {
|
|
26
44
|
defaultOptions: {
|
|
@@ -47,43 +65,32 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
47
65
|
reactData
|
|
48
66
|
};
|
|
49
67
|
},
|
|
50
|
-
computed:
|
|
68
|
+
computed: {
|
|
69
|
+
...{},
|
|
51
70
|
computeColWidthModeOptions() {
|
|
52
|
-
return [
|
|
53
|
-
value:
|
|
54
|
-
label: getI18n(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
label: getI18n('vxe.export.wdModes.auto')
|
|
58
|
-
}, {
|
|
59
|
-
value: 'scale',
|
|
60
|
-
label: getI18n('vxe.export.wdModes.scale')
|
|
61
|
-
}];
|
|
71
|
+
return [
|
|
72
|
+
{ value: "", label: getI18n("vxe.export.wdModes.default") },
|
|
73
|
+
{ value: "auto", label: getI18n("vxe.export.wdModes.auto") },
|
|
74
|
+
{ value: "scale", label: getI18n("vxe.export.wdModes.scale") }
|
|
75
|
+
];
|
|
62
76
|
},
|
|
63
77
|
computeCheckedAll() {
|
|
64
78
|
const $xeExportPanel = this;
|
|
65
79
|
const props = $xeExportPanel;
|
|
66
|
-
const {
|
|
67
|
-
|
|
68
|
-
} = props;
|
|
69
|
-
return storeData.columns.every(column => column.checked);
|
|
80
|
+
const { storeData } = props;
|
|
81
|
+
return storeData.columns.every((column) => column.checked);
|
|
70
82
|
},
|
|
71
83
|
computeShowSheet() {
|
|
72
84
|
const $xeExportPanel = this;
|
|
73
85
|
const props = $xeExportPanel;
|
|
74
|
-
const {
|
|
75
|
-
|
|
76
|
-
} = props;
|
|
77
|
-
return ['html', 'xml', 'xlsx', 'pdf'].indexOf(defaultOptions.type) > -1;
|
|
86
|
+
const { defaultOptions } = props;
|
|
87
|
+
return ["html", "xml", "xlsx", "pdf"].indexOf(defaultOptions.type) > -1;
|
|
78
88
|
},
|
|
79
89
|
computeSupportMerge() {
|
|
80
90
|
const $xeExportPanel = this;
|
|
81
91
|
const props = $xeExportPanel;
|
|
82
|
-
const {
|
|
83
|
-
|
|
84
|
-
defaultOptions
|
|
85
|
-
} = props;
|
|
86
|
-
return !defaultOptions.original && defaultOptions.mode === 'current' && (storeData.isPrint || ['html', 'xlsx'].indexOf(defaultOptions.type) > -1);
|
|
92
|
+
const { storeData, defaultOptions } = props;
|
|
93
|
+
return !defaultOptions.original && defaultOptions.mode === "current" && (storeData.isPrint || ["html", "xlsx"].indexOf(defaultOptions.type) > -1);
|
|
87
94
|
},
|
|
88
95
|
// computeSupportGroup () {
|
|
89
96
|
// const $xeExportPanel = this
|
|
@@ -94,34 +101,32 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
94
101
|
computeSupportStyle() {
|
|
95
102
|
const $xeExportPanel = this;
|
|
96
103
|
const props = $xeExportPanel;
|
|
97
|
-
const {
|
|
98
|
-
|
|
99
|
-
} = props;
|
|
100
|
-
return !defaultOptions.original && ['xlsx'].indexOf(defaultOptions.type) > -1;
|
|
104
|
+
const { defaultOptions } = props;
|
|
105
|
+
return !defaultOptions.original && ["xlsx"].indexOf(defaultOptions.type) > -1;
|
|
101
106
|
}
|
|
102
|
-
}
|
|
107
|
+
},
|
|
103
108
|
created() {
|
|
104
109
|
const $xeTableExportPanel = this;
|
|
105
|
-
const VxeUIModalComponent =
|
|
106
|
-
const VxeUIButtonComponent =
|
|
107
|
-
const VxeUISelectComponent =
|
|
108
|
-
const VxeUIInputComponent =
|
|
109
|
-
const VxeUICheckboxComponent =
|
|
110
|
+
const VxeUIModalComponent = import_core.VxeUI.getComponent("VxeModal");
|
|
111
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
112
|
+
const VxeUISelectComponent = import_core.VxeUI.getComponent("VxeSelect");
|
|
113
|
+
const VxeUIInputComponent = import_core.VxeUI.getComponent("VxeInput");
|
|
114
|
+
const VxeUICheckboxComponent = import_core.VxeUI.getComponent("VxeCheckbox");
|
|
110
115
|
$xeTableExportPanel.$nextTick(() => {
|
|
111
116
|
if (!VxeUIModalComponent) {
|
|
112
|
-
errLog(
|
|
117
|
+
errLog("vxe.error.reqComp", ["vxe-modal"]);
|
|
113
118
|
}
|
|
114
119
|
if (!VxeUIButtonComponent) {
|
|
115
|
-
errLog(
|
|
120
|
+
errLog("vxe.error.reqComp", ["vxe-button"]);
|
|
116
121
|
}
|
|
117
122
|
if (!VxeUISelectComponent) {
|
|
118
|
-
errLog(
|
|
123
|
+
errLog("vxe.error.reqComp", ["vxe-select"]);
|
|
119
124
|
}
|
|
120
125
|
if (!VxeUIInputComponent) {
|
|
121
|
-
errLog(
|
|
126
|
+
errLog("vxe.error.reqComp", ["vxe-input"]);
|
|
122
127
|
}
|
|
123
128
|
if (!VxeUICheckboxComponent) {
|
|
124
|
-
errLog(
|
|
129
|
+
errLog("vxe.error.reqComp", ["vxe-checkbox"]);
|
|
125
130
|
}
|
|
126
131
|
});
|
|
127
132
|
},
|
|
@@ -129,7 +134,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
129
134
|
changeOption(column) {
|
|
130
135
|
const $xeExportPanel = this;
|
|
131
136
|
const isChecked = !column.checked;
|
|
132
|
-
|
|
137
|
+
import_xe_utils.default.eachTree([column], (item) => {
|
|
133
138
|
item.checked = isChecked;
|
|
134
139
|
item.halfChecked = false;
|
|
135
140
|
});
|
|
@@ -139,17 +144,13 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
139
144
|
handleOptionCheck(column) {
|
|
140
145
|
const $xeExportPanel = this;
|
|
141
146
|
const props = $xeExportPanel;
|
|
142
|
-
const {
|
|
143
|
-
|
|
144
|
-
} = props;
|
|
145
|
-
const matchObj = _xeUtils.default.findTree(storeData.columns, item => item === column);
|
|
147
|
+
const { storeData } = props;
|
|
148
|
+
const matchObj = import_xe_utils.default.findTree(storeData.columns, (item) => item === column);
|
|
146
149
|
if (matchObj && matchObj.parent) {
|
|
147
|
-
const {
|
|
148
|
-
parent
|
|
149
|
-
} = matchObj;
|
|
150
|
+
const { parent } = matchObj;
|
|
150
151
|
if (parent.children && parent.children.length) {
|
|
151
|
-
parent.checked = parent.children.every(
|
|
152
|
-
parent.halfChecked = !parent.checked && parent.children.some(
|
|
152
|
+
parent.checked = parent.children.every((column2) => column2.checked);
|
|
153
|
+
parent.halfChecked = !parent.checked && parent.children.some((column2) => column2.checked || column2.halfChecked);
|
|
153
154
|
$xeExportPanel.handleOptionCheck(parent);
|
|
154
155
|
}
|
|
155
156
|
}
|
|
@@ -158,22 +159,18 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
158
159
|
const $xeExportPanel = this;
|
|
159
160
|
const props = $xeExportPanel;
|
|
160
161
|
const reactData = $xeExportPanel.reactData;
|
|
161
|
-
const {
|
|
162
|
-
storeData
|
|
163
|
-
} = props;
|
|
162
|
+
const { storeData } = props;
|
|
164
163
|
const columns = storeData.columns;
|
|
165
|
-
reactData.isAll = columns.every(column => column.disabled || column.checked);
|
|
166
|
-
reactData.isIndeterminate = !reactData.isAll && columns.some(column => !column.disabled && (column.checked || column.halfChecked));
|
|
164
|
+
reactData.isAll = columns.every((column) => column.disabled || column.checked);
|
|
165
|
+
reactData.isIndeterminate = !reactData.isAll && columns.some((column) => !column.disabled && (column.checked || column.halfChecked));
|
|
167
166
|
},
|
|
168
167
|
allColumnEvent() {
|
|
169
168
|
const $xeExportPanel = this;
|
|
170
169
|
const props = $xeExportPanel;
|
|
171
170
|
const reactData = $xeExportPanel.reactData;
|
|
172
|
-
const {
|
|
173
|
-
storeData
|
|
174
|
-
} = props;
|
|
171
|
+
const { storeData } = props;
|
|
175
172
|
const isAll = !reactData.isAll;
|
|
176
|
-
|
|
173
|
+
import_xe_utils.default.eachTree(storeData.columns, (column) => {
|
|
177
174
|
if (!column.disabled) {
|
|
178
175
|
column.checked = isAll;
|
|
179
176
|
column.halfChecked = false;
|
|
@@ -195,22 +192,11 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
195
192
|
getExportOption() {
|
|
196
193
|
const $xeExportPanel = this;
|
|
197
194
|
const props = $xeExportPanel;
|
|
198
|
-
const {
|
|
199
|
-
|
|
200
|
-
defaultOptions
|
|
201
|
-
} = props;
|
|
202
|
-
const {
|
|
203
|
-
hasMerge,
|
|
204
|
-
columns
|
|
205
|
-
} = storeData;
|
|
195
|
+
const { storeData, defaultOptions } = props;
|
|
196
|
+
const { hasMerge, columns } = storeData;
|
|
206
197
|
const checkedAll = $xeExportPanel.computeCheckedAll;
|
|
207
198
|
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
208
|
-
|
|
209
|
-
const expColumns = _xeUtils.default.searchTree(columns, column => column.checked, {
|
|
210
|
-
children: 'children',
|
|
211
|
-
mapChildren: '_children',
|
|
212
|
-
original: true
|
|
213
|
-
});
|
|
199
|
+
const expColumns = import_xe_utils.default.searchTree(columns, (column) => column.checked, { children: "children", mapChildren: "_children", original: true });
|
|
214
200
|
return Object.assign({}, defaultOptions, {
|
|
215
201
|
_columns: expColumns,
|
|
216
202
|
isMerge: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false
|
|
@@ -219,17 +205,13 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
219
205
|
cancelEvent() {
|
|
220
206
|
const $xeExportPanel = this;
|
|
221
207
|
const props = $xeExportPanel;
|
|
222
|
-
const {
|
|
223
|
-
storeData
|
|
224
|
-
} = props;
|
|
208
|
+
const { storeData } = props;
|
|
225
209
|
storeData.visible = false;
|
|
226
210
|
},
|
|
227
211
|
confirmEvent() {
|
|
228
212
|
const $xeExportPanel = this;
|
|
229
213
|
const props = $xeExportPanel;
|
|
230
|
-
const {
|
|
231
|
-
storeData
|
|
232
|
-
} = props;
|
|
214
|
+
const { storeData } = props;
|
|
233
215
|
if (storeData.isPrint) {
|
|
234
216
|
$xeExportPanel.printEvent();
|
|
235
217
|
} else {
|
|
@@ -240,9 +222,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
240
222
|
const $xeExportPanel = this;
|
|
241
223
|
const props = $xeExportPanel;
|
|
242
224
|
const $xeTable = $xeExportPanel.$xeTable;
|
|
243
|
-
const {
|
|
244
|
-
storeData
|
|
245
|
-
} = props;
|
|
225
|
+
const { storeData } = props;
|
|
246
226
|
storeData.visible = false;
|
|
247
227
|
$xeTable.print(Object.assign({}, $xeTable.printOpts, $xeExportPanel.getExportOption()));
|
|
248
228
|
},
|
|
@@ -251,9 +231,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
251
231
|
const props = $xeExportPanel;
|
|
252
232
|
const reactData = $xeExportPanel.reactData;
|
|
253
233
|
const $xeTable = $xeExportPanel.$xeTable;
|
|
254
|
-
const {
|
|
255
|
-
storeData
|
|
256
|
-
} = props;
|
|
234
|
+
const { storeData } = props;
|
|
257
235
|
const exportOpts = $xeTable.exportOpts;
|
|
258
236
|
reactData.loading = true;
|
|
259
237
|
$xeTable.exportData(Object.assign({}, exportOpts, $xeExportPanel.getExportOption())).then(() => {
|
|
@@ -264,36 +242,21 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
264
242
|
});
|
|
265
243
|
},
|
|
266
244
|
renderVN(h) {
|
|
267
|
-
const VxeUIModalComponent =
|
|
268
|
-
const VxeUIButtonComponent =
|
|
269
|
-
const VxeUISelectComponent =
|
|
270
|
-
const VxeUIInputComponent =
|
|
271
|
-
const VxeUICheckboxComponent =
|
|
245
|
+
const VxeUIModalComponent = import_core.VxeUI.getComponent("VxeModal");
|
|
246
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
247
|
+
const VxeUISelectComponent = import_core.VxeUI.getComponent("VxeSelect");
|
|
248
|
+
const VxeUIInputComponent = import_core.VxeUI.getComponent("VxeInput");
|
|
249
|
+
const VxeUICheckboxComponent = import_core.VxeUI.getComponent("VxeCheckbox");
|
|
272
250
|
const $xeExportPanel = this;
|
|
273
251
|
const props = $xeExportPanel;
|
|
274
252
|
const reactData = $xeExportPanel.reactData;
|
|
275
253
|
const $xeTable = $xeExportPanel.$xeTable;
|
|
276
254
|
const $xeGrid = $xeTable.$xeGrid;
|
|
277
255
|
const $xeGantt = $xeTable.$xeGantt;
|
|
278
|
-
const {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
} =
|
|
282
|
-
const {
|
|
283
|
-
isAll: isAllChecked,
|
|
284
|
-
isIndeterminate: isAllIndeterminate
|
|
285
|
-
} = reactData;
|
|
286
|
-
const {
|
|
287
|
-
hasTree,
|
|
288
|
-
hasRowGroup,
|
|
289
|
-
hasMerge,
|
|
290
|
-
isPrint,
|
|
291
|
-
hasColgroup,
|
|
292
|
-
columns
|
|
293
|
-
} = storeData;
|
|
294
|
-
const {
|
|
295
|
-
isHeader
|
|
296
|
-
} = defaultOptions;
|
|
256
|
+
const { defaultOptions, storeData } = props;
|
|
257
|
+
const { isAll: isAllChecked, isIndeterminate: isAllIndeterminate } = reactData;
|
|
258
|
+
const { hasTree, hasRowGroup, hasMerge, isPrint, hasColgroup, columns } = storeData;
|
|
259
|
+
const { isHeader } = defaultOptions;
|
|
297
260
|
const colVNs = [];
|
|
298
261
|
const exportOpts = $xeTable.computeExportOpts;
|
|
299
262
|
const printOpts = $xeTable.computePrintOpts;
|
|
@@ -304,61 +267,77 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
304
267
|
const supportMerge = $xeExportPanel.computeSupportMerge;
|
|
305
268
|
const supportStyle = $xeExportPanel.computeSupportStyle;
|
|
306
269
|
const colWidthModeOptions = $xeExportPanel.computeColWidthModeOptions;
|
|
307
|
-
// const supportGroup = $xeExportPanel.computeSupportGroup
|
|
308
270
|
const slots = defaultOptions.slots || {};
|
|
309
271
|
const topSlot = slots.top;
|
|
310
272
|
const bottomSlot = slots.bottom;
|
|
311
273
|
const defaultSlot = slots.default;
|
|
312
274
|
const footerSlot = slots.footer;
|
|
313
275
|
const parameterSlot = slots.parameter;
|
|
314
|
-
|
|
315
|
-
const colTitle = (0,
|
|
276
|
+
import_xe_utils.default.eachTree(columns, (column) => {
|
|
277
|
+
const colTitle = (0, import_utils.formatText)(column.getTitle(), 1);
|
|
316
278
|
const isColGroup = column.children && column.children.length;
|
|
317
279
|
const isChecked = column.checked;
|
|
318
280
|
const indeterminate = column.halfChecked;
|
|
319
|
-
const isHtml = column.type ===
|
|
320
|
-
colVNs.push(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
281
|
+
const isHtml = column.type === "html";
|
|
282
|
+
colVNs.push(
|
|
283
|
+
h(
|
|
284
|
+
"li",
|
|
285
|
+
{
|
|
286
|
+
class: [
|
|
287
|
+
"vxe-table-export--panel-column-option",
|
|
288
|
+
`level--${column.level}`,
|
|
289
|
+
{
|
|
290
|
+
"is--group": isColGroup,
|
|
291
|
+
"is--checked": isChecked,
|
|
292
|
+
"is--indeterminate": indeterminate,
|
|
293
|
+
"is--disabled": column.disabled
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
attrs: {
|
|
297
|
+
title: colTitle
|
|
298
|
+
},
|
|
299
|
+
on: {
|
|
300
|
+
click: () => {
|
|
301
|
+
if (!column.disabled) {
|
|
302
|
+
$xeExportPanel.changeOption(column);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
334
305
|
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
306
|
+
},
|
|
307
|
+
[
|
|
308
|
+
h("span", {
|
|
309
|
+
class: ["vxe-checkbox--icon", indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
310
|
+
}),
|
|
311
|
+
isHtml ? h("span", {
|
|
312
|
+
key: "1",
|
|
313
|
+
class: "vxe-checkbox--label",
|
|
314
|
+
domProps: {
|
|
315
|
+
innerHTML: colTitle
|
|
316
|
+
}
|
|
317
|
+
}) : h(
|
|
318
|
+
"span",
|
|
319
|
+
{
|
|
320
|
+
key: "0",
|
|
321
|
+
class: "vxe-checkbox--label"
|
|
322
|
+
},
|
|
323
|
+
colTitle
|
|
324
|
+
)
|
|
325
|
+
]
|
|
326
|
+
)
|
|
327
|
+
);
|
|
349
328
|
});
|
|
350
329
|
return VxeUIModalComponent ? h(VxeUIModalComponent, {
|
|
351
|
-
ref:
|
|
330
|
+
ref: "modal",
|
|
352
331
|
props: {
|
|
353
|
-
id:
|
|
332
|
+
id: "VXE_EXPORT_MODAL",
|
|
354
333
|
value: storeData.visible,
|
|
355
|
-
title: modelOptions.title || getI18n(isPrint ?
|
|
334
|
+
title: modelOptions.title || getI18n(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle"),
|
|
356
335
|
width: modelOptions.width || 660,
|
|
357
336
|
height: modelOptions.height,
|
|
358
337
|
minWidth: modelOptions.minWidth || 500,
|
|
359
338
|
minHeight: modelOptions.minHeight || 400,
|
|
360
|
-
mask: (0,
|
|
361
|
-
lockView: (0,
|
|
339
|
+
mask: (0, import_utils.getDefaultConfig)(modelOptions.mask, true),
|
|
340
|
+
lockView: (0, import_utils.getDefaultConfig)(modelOptions.lockView, true),
|
|
362
341
|
showFooter: true,
|
|
363
342
|
escClosable: true,
|
|
364
343
|
maskClosable: true,
|
|
@@ -366,8 +345,8 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
366
345
|
fullscreen: modelOptions.fullscreen,
|
|
367
346
|
remember: modelOptions.remember,
|
|
368
347
|
showMinimize: modelOptions.showMinimize,
|
|
369
|
-
showMaximize: (0,
|
|
370
|
-
resize: (0,
|
|
348
|
+
showMaximize: (0, import_utils.getDefaultConfig)(modelOptions.showMaximize, true),
|
|
349
|
+
resize: (0, import_utils.getDefaultConfig)(modelOptions.resize, true),
|
|
371
350
|
loading: reactData.loading
|
|
372
351
|
},
|
|
373
352
|
on: {
|
|
@@ -386,216 +365,352 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
386
365
|
columns,
|
|
387
366
|
params: defaultOptions.params
|
|
388
367
|
};
|
|
389
|
-
const hasEmptyData = defaultOptions.mode ===
|
|
390
|
-
return h(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}, $xeTable.callSlot(topSlot, params, h)) : renderEmptyElement($xeTable), h('div', {
|
|
395
|
-
class: 'vxe-table-export--panel-body'
|
|
396
|
-
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params, h) : [h('table', {
|
|
397
|
-
attrs: {
|
|
398
|
-
class: 'vxe-table-export--panel-table',
|
|
399
|
-
cellspacing: 0,
|
|
400
|
-
cellpadding: 0,
|
|
401
|
-
border: 0
|
|
402
|
-
}
|
|
403
|
-
}, [h('tbody', [[isPrint || settingOptions.showFileName === false ? renderEmptyElement($xeTable) : h('tr', [h('td', getI18n('vxe.export.expName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
404
|
-
ref: 'filename',
|
|
405
|
-
props: {
|
|
406
|
-
value: defaultOptions.filename,
|
|
407
|
-
type: 'text',
|
|
408
|
-
clearable: true,
|
|
409
|
-
placeholder: getI18n('vxe.export.expNamePlaceholder')
|
|
410
|
-
},
|
|
411
|
-
on: {
|
|
412
|
-
modelValue(value) {
|
|
413
|
-
defaultOptions.filename = value;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}) : renderEmptyElement($xeTable)])]), isPrint || settingOptions.showType === false ? renderEmptyElement($xeTable) : h('tr', [h('td', getI18n('vxe.export.expType')), h('td', [h('vxe-select', {
|
|
417
|
-
props: {
|
|
418
|
-
value: defaultOptions.type,
|
|
419
|
-
options: storeData.typeList
|
|
420
|
-
},
|
|
421
|
-
on: {
|
|
422
|
-
modelValue(value) {
|
|
423
|
-
defaultOptions.type = value;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
})])]), (isPrint || showSheet) && settingOptions.showSheet !== false ? h('tr', [h('td', getI18n('vxe.export.expSheetName')), h('td', [VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
427
|
-
ref: 'sheetname',
|
|
428
|
-
props: {
|
|
429
|
-
value: defaultOptions.sheetName,
|
|
430
|
-
type: 'text',
|
|
431
|
-
clearable: true,
|
|
432
|
-
placeholder: getI18n('vxe.export.expSheetNamePlaceholder')
|
|
433
|
-
},
|
|
434
|
-
on: {
|
|
435
|
-
modelValue(value) {
|
|
436
|
-
defaultOptions.sheetName = value;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}) : renderEmptyElement($xeTable)])]) : renderEmptyElement($xeTable), settingOptions.showMode === false ? renderEmptyElement($xeTable) : h('tr', [h('td', getI18n('vxe.export.expMode')), h('td', [h(VxeUISelectComponent, {
|
|
440
|
-
props: {
|
|
441
|
-
value: defaultOptions.mode,
|
|
442
|
-
options: storeData.modeList
|
|
443
|
-
},
|
|
444
|
-
on: {
|
|
445
|
-
modelValue(value) {
|
|
446
|
-
defaultOptions.mode = value;
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
})])]), settingOptions.showColumn === false ? renderEmptyElement($xeTable) : h('tr', [h('td', [getI18n('vxe.export.expColumn')]), h('td', [h('div', {
|
|
450
|
-
class: 'vxe-table-export--panel-column'
|
|
451
|
-
}, [h('ul', {
|
|
452
|
-
class: 'vxe-table-export--panel-column-header'
|
|
453
|
-
}, [h('li', {
|
|
454
|
-
class: ['vxe-table-export--panel-column-option', {
|
|
455
|
-
'is--checked': isAllChecked,
|
|
456
|
-
'is--indeterminate': isAllIndeterminate
|
|
457
|
-
}],
|
|
458
|
-
attrs: {
|
|
459
|
-
title: getI18n('vxe.table.allTitle')
|
|
460
|
-
},
|
|
461
|
-
on: {
|
|
462
|
-
click: $xeExportPanel.allColumnEvent
|
|
463
|
-
}
|
|
464
|
-
}, [h('span', {
|
|
465
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
466
|
-
}), h('span', {
|
|
467
|
-
class: 'vxe-checkbox--label'
|
|
468
|
-
}, getI18n('vxe.export.expCurrentColumn'))])]), h('ul', {
|
|
469
|
-
class: 'vxe-table-export--panel-column-body'
|
|
470
|
-
}, colVNs)])])]), isPrint && settingOptions.showWidthMode !== false ? h('tr', [h('td', getI18n('vxe.export.widthMode')), h('td', [VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
471
|
-
props: {
|
|
472
|
-
value: defaultOptions.widthMode,
|
|
473
|
-
options: colWidthModeOptions
|
|
474
|
-
},
|
|
475
|
-
on: {
|
|
476
|
-
modelValue(value) {
|
|
477
|
-
defaultOptions.widthMode = value;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}) : renderEmptyElement($xeTable)])]) : renderEmptyElement($xeTable), settingOptions.showParameter === false ? renderEmptyElement($xeTable) : h('tr', [h('td', getI18n('vxe.export.expOpts')), parameterSlot ? h('td', [h('div', {
|
|
481
|
-
class: 'vxe-table-export--panel-option-row'
|
|
482
|
-
}, $xeTable.callSlot(parameterSlot, params, h))]) : h('td', [h('div', {
|
|
483
|
-
class: 'vxe-table-export--panel-option-row'
|
|
484
|
-
}, VxeUICheckboxComponent ? [h(VxeUICheckboxComponent, {
|
|
485
|
-
props: {
|
|
486
|
-
value: hasEmptyData || isHeader,
|
|
487
|
-
disabled: hasEmptyData,
|
|
488
|
-
title: getI18n('vxe.export.expHeaderTitle'),
|
|
489
|
-
content: getI18n('vxe.export.expOptHeader')
|
|
368
|
+
const hasEmptyData = defaultOptions.mode === "empty";
|
|
369
|
+
return h(
|
|
370
|
+
"div",
|
|
371
|
+
{
|
|
372
|
+
class: "vxe-table-export--panel"
|
|
490
373
|
},
|
|
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
|
-
|
|
374
|
+
[
|
|
375
|
+
topSlot ? h(
|
|
376
|
+
"div",
|
|
377
|
+
{
|
|
378
|
+
class: "vxe-table-export--panel-top"
|
|
379
|
+
},
|
|
380
|
+
$xeTable.callSlot(topSlot, params, h)
|
|
381
|
+
) : renderEmptyElement($xeTable),
|
|
382
|
+
h(
|
|
383
|
+
"div",
|
|
384
|
+
{
|
|
385
|
+
class: "vxe-table-export--panel-body"
|
|
386
|
+
},
|
|
387
|
+
defaultSlot ? $xeTable.callSlot(defaultSlot, params, h) : [
|
|
388
|
+
h(
|
|
389
|
+
"table",
|
|
390
|
+
{
|
|
391
|
+
attrs: {
|
|
392
|
+
class: "vxe-table-export--panel-table",
|
|
393
|
+
cellspacing: 0,
|
|
394
|
+
cellpadding: 0,
|
|
395
|
+
border: 0
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
[
|
|
399
|
+
h("tbody", [
|
|
400
|
+
[
|
|
401
|
+
isPrint || settingOptions.showFileName === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
402
|
+
h("td", getI18n("vxe.export.expName")),
|
|
403
|
+
h("td", [
|
|
404
|
+
VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
405
|
+
ref: "filename",
|
|
406
|
+
props: {
|
|
407
|
+
value: defaultOptions.filename,
|
|
408
|
+
type: "text",
|
|
409
|
+
clearable: true,
|
|
410
|
+
placeholder: getI18n("vxe.export.expNamePlaceholder")
|
|
411
|
+
},
|
|
412
|
+
on: {
|
|
413
|
+
modelValue(value) {
|
|
414
|
+
defaultOptions.filename = value;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}) : renderEmptyElement($xeTable)
|
|
418
|
+
])
|
|
419
|
+
]),
|
|
420
|
+
isPrint || settingOptions.showType === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
421
|
+
h("td", getI18n("vxe.export.expType")),
|
|
422
|
+
h("td", [
|
|
423
|
+
h("vxe-select", {
|
|
424
|
+
props: {
|
|
425
|
+
value: defaultOptions.type,
|
|
426
|
+
options: storeData.typeList
|
|
427
|
+
},
|
|
428
|
+
on: {
|
|
429
|
+
modelValue(value) {
|
|
430
|
+
defaultOptions.type = value;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
})
|
|
434
|
+
])
|
|
435
|
+
]),
|
|
436
|
+
(isPrint || showSheet) && settingOptions.showSheet !== false ? h("tr", [
|
|
437
|
+
h("td", getI18n("vxe.export.expSheetName")),
|
|
438
|
+
h("td", [
|
|
439
|
+
VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
440
|
+
ref: "sheetname",
|
|
441
|
+
props: {
|
|
442
|
+
value: defaultOptions.sheetName,
|
|
443
|
+
type: "text",
|
|
444
|
+
clearable: true,
|
|
445
|
+
placeholder: getI18n("vxe.export.expSheetNamePlaceholder")
|
|
446
|
+
},
|
|
447
|
+
on: {
|
|
448
|
+
modelValue(value) {
|
|
449
|
+
defaultOptions.sheetName = value;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}) : renderEmptyElement($xeTable)
|
|
453
|
+
])
|
|
454
|
+
]) : renderEmptyElement($xeTable),
|
|
455
|
+
settingOptions.showMode === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
456
|
+
h("td", getI18n("vxe.export.expMode")),
|
|
457
|
+
h("td", [
|
|
458
|
+
h(VxeUISelectComponent, {
|
|
459
|
+
props: {
|
|
460
|
+
value: defaultOptions.mode,
|
|
461
|
+
options: storeData.modeList
|
|
462
|
+
},
|
|
463
|
+
on: {
|
|
464
|
+
modelValue(value) {
|
|
465
|
+
defaultOptions.mode = value;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
})
|
|
469
|
+
])
|
|
470
|
+
]),
|
|
471
|
+
settingOptions.showColumn === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
472
|
+
h("td", [getI18n("vxe.export.expColumn")]),
|
|
473
|
+
h("td", [
|
|
474
|
+
h(
|
|
475
|
+
"div",
|
|
476
|
+
{
|
|
477
|
+
class: "vxe-table-export--panel-column"
|
|
478
|
+
},
|
|
479
|
+
[
|
|
480
|
+
h(
|
|
481
|
+
"ul",
|
|
482
|
+
{
|
|
483
|
+
class: "vxe-table-export--panel-column-header"
|
|
484
|
+
},
|
|
485
|
+
[
|
|
486
|
+
h(
|
|
487
|
+
"li",
|
|
488
|
+
{
|
|
489
|
+
class: [
|
|
490
|
+
"vxe-table-export--panel-column-option",
|
|
491
|
+
{
|
|
492
|
+
"is--checked": isAllChecked,
|
|
493
|
+
"is--indeterminate": isAllIndeterminate
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
attrs: {
|
|
497
|
+
title: getI18n("vxe.table.allTitle")
|
|
498
|
+
},
|
|
499
|
+
on: {
|
|
500
|
+
click: $xeExportPanel.allColumnEvent
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
[
|
|
504
|
+
h("span", {
|
|
505
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
506
|
+
}),
|
|
507
|
+
h(
|
|
508
|
+
"span",
|
|
509
|
+
{
|
|
510
|
+
class: "vxe-checkbox--label"
|
|
511
|
+
},
|
|
512
|
+
getI18n("vxe.export.expCurrentColumn")
|
|
513
|
+
)
|
|
514
|
+
]
|
|
515
|
+
)
|
|
516
|
+
]
|
|
517
|
+
),
|
|
518
|
+
h(
|
|
519
|
+
"ul",
|
|
520
|
+
{
|
|
521
|
+
class: "vxe-table-export--panel-column-body"
|
|
522
|
+
},
|
|
523
|
+
colVNs
|
|
524
|
+
)
|
|
525
|
+
]
|
|
526
|
+
)
|
|
527
|
+
])
|
|
528
|
+
]),
|
|
529
|
+
isPrint && settingOptions.showWidthMode !== false ? h("tr", [
|
|
530
|
+
h("td", getI18n("vxe.export.widthMode")),
|
|
531
|
+
h("td", [
|
|
532
|
+
VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
533
|
+
props: {
|
|
534
|
+
value: defaultOptions.widthMode,
|
|
535
|
+
options: colWidthModeOptions
|
|
536
|
+
},
|
|
537
|
+
on: {
|
|
538
|
+
modelValue(value) {
|
|
539
|
+
defaultOptions.widthMode = value;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}) : renderEmptyElement($xeTable)
|
|
543
|
+
])
|
|
544
|
+
]) : renderEmptyElement($xeTable),
|
|
545
|
+
settingOptions.showParameter === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
546
|
+
h("td", getI18n("vxe.export.expOpts")),
|
|
547
|
+
parameterSlot ? h("td", [
|
|
548
|
+
h(
|
|
549
|
+
"div",
|
|
550
|
+
{
|
|
551
|
+
class: "vxe-table-export--panel-option-row"
|
|
552
|
+
},
|
|
553
|
+
$xeTable.callSlot(parameterSlot, params, h)
|
|
554
|
+
)
|
|
555
|
+
]) : h("td", [
|
|
556
|
+
h(
|
|
557
|
+
"div",
|
|
558
|
+
{
|
|
559
|
+
class: "vxe-table-export--panel-option-row"
|
|
560
|
+
},
|
|
561
|
+
VxeUICheckboxComponent ? [
|
|
562
|
+
h(VxeUICheckboxComponent, {
|
|
563
|
+
props: {
|
|
564
|
+
value: hasEmptyData || isHeader,
|
|
565
|
+
disabled: hasEmptyData,
|
|
566
|
+
title: getI18n("vxe.export.expHeaderTitle"),
|
|
567
|
+
content: getI18n("vxe.export.expOptHeader")
|
|
568
|
+
},
|
|
569
|
+
on: {
|
|
570
|
+
input(value) {
|
|
571
|
+
defaultOptions.isHeader = value;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}),
|
|
575
|
+
h(VxeUICheckboxComponent, {
|
|
576
|
+
props: {
|
|
577
|
+
value: defaultOptions.isFooter,
|
|
578
|
+
disabled: !storeData.hasFooter,
|
|
579
|
+
title: getI18n("vxe.export.expFooterTitle"),
|
|
580
|
+
content: getI18n("vxe.export.expOptFooter")
|
|
581
|
+
},
|
|
582
|
+
on: {
|
|
583
|
+
input(value) {
|
|
584
|
+
defaultOptions.isFooter = value;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}),
|
|
588
|
+
h(VxeUICheckboxComponent, {
|
|
589
|
+
props: {
|
|
590
|
+
value: isHeader ? defaultOptions.isTitle : false,
|
|
591
|
+
disabled: !isHeader,
|
|
592
|
+
title: getI18n("vxe.export.expTitleTitle"),
|
|
593
|
+
content: getI18n("vxe.export.expOptTitle")
|
|
594
|
+
},
|
|
595
|
+
on: {
|
|
596
|
+
input(value) {
|
|
597
|
+
defaultOptions.isTitle = value;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}),
|
|
601
|
+
h(VxeUICheckboxComponent, {
|
|
602
|
+
props: {
|
|
603
|
+
value: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
604
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
605
|
+
title: getI18n("vxe.export.expColgroupTitle"),
|
|
606
|
+
content: getI18n("vxe.export.expOptColgroup")
|
|
607
|
+
},
|
|
608
|
+
on: {
|
|
609
|
+
input(value) {
|
|
610
|
+
defaultOptions.isColgroup = value;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
})
|
|
614
|
+
] : []
|
|
615
|
+
),
|
|
616
|
+
h(
|
|
617
|
+
"div",
|
|
618
|
+
{
|
|
619
|
+
class: "vxe-table-export--panel-option-row"
|
|
620
|
+
},
|
|
621
|
+
VxeUICheckboxComponent ? [
|
|
622
|
+
h(VxeUICheckboxComponent, {
|
|
623
|
+
props: {
|
|
624
|
+
value: hasEmptyData ? false : defaultOptions.original,
|
|
625
|
+
disabled: hasEmptyData,
|
|
626
|
+
title: getI18n("vxe.export.expOriginalTitle"),
|
|
627
|
+
content: getI18n("vxe.export.expOptOriginal")
|
|
628
|
+
},
|
|
629
|
+
on: {
|
|
630
|
+
input(value) {
|
|
631
|
+
defaultOptions.original = value;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}),
|
|
635
|
+
h(VxeUICheckboxComponent, {
|
|
636
|
+
props: {
|
|
637
|
+
value: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
638
|
+
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
639
|
+
title: getI18n("vxe.export.expMergeTitle"),
|
|
640
|
+
content: getI18n("vxe.export.expOptMerge")
|
|
641
|
+
},
|
|
642
|
+
on: {
|
|
643
|
+
input(value) {
|
|
644
|
+
defaultOptions.isMerge = value;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}),
|
|
648
|
+
isPrint ? renderEmptyElement($xeTable) : h(VxeUICheckboxComponent, {
|
|
649
|
+
props: {
|
|
650
|
+
value: supportStyle ? defaultOptions.useStyle : false,
|
|
651
|
+
disabled: !supportStyle,
|
|
652
|
+
title: getI18n("vxe.export.expUseStyleTitle"),
|
|
653
|
+
content: getI18n("vxe.export.expOptUseStyle")
|
|
654
|
+
},
|
|
655
|
+
on: {
|
|
656
|
+
input(value) {
|
|
657
|
+
defaultOptions.useStyle = value;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
})
|
|
661
|
+
] : []
|
|
662
|
+
),
|
|
663
|
+
h(
|
|
664
|
+
"div",
|
|
665
|
+
{
|
|
666
|
+
class: "vxe-table-export--panel-option-row"
|
|
667
|
+
},
|
|
668
|
+
VxeUICheckboxComponent ? [
|
|
669
|
+
h(VxeUICheckboxComponent, {
|
|
670
|
+
props: {
|
|
671
|
+
value: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
672
|
+
disabled: hasEmptyData || !hasTree,
|
|
673
|
+
title: getI18n("vxe.export.expTreeAllExpandTitle"),
|
|
674
|
+
content: getI18n("vxe.export.expOptTreeAllExpand")
|
|
675
|
+
},
|
|
676
|
+
on: {
|
|
677
|
+
input(value) {
|
|
678
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}),
|
|
682
|
+
h(VxeUICheckboxComponent, {
|
|
683
|
+
props: {
|
|
684
|
+
value: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
685
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
686
|
+
title: getI18n("vxe.export.expRowGroupAllExpandTitle"),
|
|
687
|
+
content: getI18n("vxe.export.expOptRowGroupAllExpand")
|
|
688
|
+
},
|
|
689
|
+
on: {
|
|
690
|
+
input(value) {
|
|
691
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
})
|
|
695
|
+
] : []
|
|
696
|
+
)
|
|
697
|
+
])
|
|
698
|
+
])
|
|
699
|
+
]
|
|
700
|
+
])
|
|
701
|
+
]
|
|
702
|
+
)
|
|
703
|
+
]
|
|
704
|
+
),
|
|
705
|
+
bottomSlot ? h(
|
|
706
|
+
"div",
|
|
707
|
+
{
|
|
708
|
+
class: "vxe-table-export--panel-bottom"
|
|
709
|
+
},
|
|
710
|
+
$xeTable.callSlot(bottomSlot, params, h)
|
|
711
|
+
) : renderEmptyElement($xeTable)
|
|
712
|
+
]
|
|
713
|
+
);
|
|
599
714
|
},
|
|
600
715
|
footer() {
|
|
601
716
|
const params = {
|
|
@@ -606,27 +721,40 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
606
721
|
columns,
|
|
607
722
|
params: defaultOptions.params
|
|
608
723
|
};
|
|
609
|
-
return h(
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}, [VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
614
|
-
props: {
|
|
615
|
-
content: getI18n('vxe.export.expCancel')
|
|
724
|
+
return h(
|
|
725
|
+
"div",
|
|
726
|
+
{
|
|
727
|
+
class: "vxe-table-export--panel-footer"
|
|
616
728
|
},
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
729
|
+
footerSlot ? $xeTable.callSlot(footerSlot, params, h) : [
|
|
730
|
+
h(
|
|
731
|
+
"div",
|
|
732
|
+
{
|
|
733
|
+
class: "vxe-table-export--panel-btns"
|
|
734
|
+
},
|
|
735
|
+
[
|
|
736
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
737
|
+
props: {
|
|
738
|
+
content: getI18n("vxe.export.expCancel")
|
|
739
|
+
},
|
|
740
|
+
on: {
|
|
741
|
+
click: $xeExportPanel.cancelEvent
|
|
742
|
+
}
|
|
743
|
+
}) : renderEmptyElement($xeTable),
|
|
744
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
745
|
+
ref: "confirmBtn",
|
|
746
|
+
props: {
|
|
747
|
+
status: "primary",
|
|
748
|
+
content: getI18n(isPrint ? "vxe.export.expPrint" : "vxe.export.expConfirm")
|
|
749
|
+
},
|
|
750
|
+
on: {
|
|
751
|
+
click: $xeExportPanel.confirmEvent
|
|
752
|
+
}
|
|
753
|
+
}) : renderEmptyElement($xeTable)
|
|
754
|
+
]
|
|
755
|
+
)
|
|
756
|
+
]
|
|
757
|
+
);
|
|
630
758
|
}
|
|
631
759
|
}
|
|
632
760
|
}) : renderEmptyElement($xeTable);
|
|
@@ -635,5 +763,4 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
635
763
|
render(h) {
|
|
636
764
|
return this.renderVN(h);
|
|
637
765
|
}
|
|
638
|
-
}
|
|
639
|
-
/* define-vxe-component end */
|
|
766
|
+
};
|