vxe-table 4.23.5 → 4.23.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.esm.js +32456 -33938
- package/dist/style.css +4501 -1
- package/dist/style.mini.css +1 -0
- package/es/colgroup/index.d.ts +760 -0
- package/es/colgroup/index.js +16 -13
- package/es/column/index.d.ts +760 -0
- package/es/column/index.js +16 -13
- package/es/components.d.ts +9 -0
- package/es/components.js +29 -29
- package/es/grid/index.d.ts +2824 -0
- package/es/grid/index.js +14 -9
- package/es/grid/src/emits.d.ts +2 -0
- package/es/grid/src/emits.js +18 -15
- package/es/grid/src/grid.d.ts +556 -0
- package/es/grid/src/grid.js +1695 -1758
- package/es/grid/src/props.d.ts +200 -0
- package/es/grid/src/props.js +19 -6
- package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +6 -3
- package/es/index.js +6 -0
- package/es/locale/lang/ar-EG.d.ts +908 -2
- package/es/locale/lang/ar-EG.js +906 -903
- package/es/locale/lang/de-DE.d.ts +908 -2
- package/es/locale/lang/de-DE.js +906 -903
- package/es/locale/lang/en-US.d.ts +908 -2
- package/es/locale/lang/en-US.js +906 -903
- package/es/locale/lang/es-ES.d.ts +908 -2
- package/es/locale/lang/es-ES.js +906 -903
- package/es/locale/lang/fr-FR.d.ts +908 -2
- package/es/locale/lang/fr-FR.js +906 -903
- package/es/locale/lang/hu-HU.d.ts +908 -2
- package/es/locale/lang/hu-HU.js +906 -903
- package/es/locale/lang/hy-AM.d.ts +908 -2
- package/es/locale/lang/hy-AM.js +906 -903
- package/es/locale/lang/id-ID.d.ts +908 -2
- package/es/locale/lang/id-ID.js +906 -903
- package/es/locale/lang/it-IT.d.ts +908 -2
- package/es/locale/lang/it-IT.js +906 -903
- package/es/locale/lang/ja-JP.d.ts +908 -2
- package/es/locale/lang/ja-JP.js +906 -903
- package/es/locale/lang/ko-KR.d.ts +908 -2
- package/es/locale/lang/ko-KR.js +906 -903
- package/es/locale/lang/ms-MY.d.ts +908 -2
- package/es/locale/lang/ms-MY.js +906 -903
- package/es/locale/lang/nb-NO.d.ts +908 -2
- package/es/locale/lang/nb-NO.js +906 -903
- package/es/locale/lang/pt-BR.d.ts +908 -2
- package/es/locale/lang/pt-BR.js +906 -903
- package/es/locale/lang/ru-RU.d.ts +908 -2
- package/es/locale/lang/ru-RU.js +906 -903
- package/es/locale/lang/th-TH.d.ts +908 -2
- package/es/locale/lang/th-TH.js +906 -903
- package/es/locale/lang/ug-CN.d.ts +908 -2
- package/es/locale/lang/ug-CN.js +906 -903
- package/es/locale/lang/uk-UA.d.ts +908 -2
- package/es/locale/lang/uk-UA.js +906 -903
- package/es/locale/lang/uz-UZ.d.ts +908 -2
- package/es/locale/lang/uz-UZ.js +906 -903
- package/es/locale/lang/vi-VN.d.ts +908 -2
- package/es/locale/lang/vi-VN.js +906 -903
- package/es/locale/lang/zh-CHT.d.ts +908 -2
- package/es/locale/lang/zh-CHT.js +906 -903
- package/es/locale/lang/zh-CN.d.ts +908 -2
- package/es/locale/lang/zh-CN.js +906 -903
- package/es/locale/lang/zh-HK.d.ts +908 -2
- package/es/locale/lang/zh-HK.js +910 -2
- package/es/locale/lang/zh-MO.d.ts +908 -2
- package/es/locale/lang/zh-MO.js +910 -2
- package/es/locale/lang/zh-TC.d.ts +908 -0
- package/es/locale/lang/zh-TC.js +910 -2
- package/es/locale/lang/zh-TW.d.ts +908 -2
- package/es/locale/lang/zh-TW.js +910 -2
- package/es/style.css +4501 -1
- package/es/style.mini.css +1 -0
- package/es/table/index.d.ts +2672 -0
- package/es/table/index.js +16 -11
- package/es/table/module/custom/hook.d.ts +1 -0
- package/es/table/module/custom/hook.js +462 -483
- package/es/table/module/custom/panel.d.ts +17 -0
- package/es/table/module/custom/panel.js +1482 -1559
- package/es/table/module/edit/hook.d.ts +1 -0
- package/es/table/module/edit/hook.js +1008 -1078
- package/es/table/module/export/export-panel.d.ts +27 -0
- package/es/table/module/export/export-panel.js +523 -575
- package/es/table/module/export/hook.d.ts +1 -0
- package/es/table/module/export/hook.js +1805 -1884
- package/es/table/module/export/import-panel.d.ts +27 -0
- package/es/table/module/export/import-panel.js +244 -252
- package/es/table/module/export/util.d.ts +5 -0
- package/es/table/module/export/util.js +20 -17
- package/es/table/module/filter/hook.d.ts +1 -0
- package/es/table/module/filter/hook.js +472 -487
- package/es/table/module/filter/panel.d.ts +16 -0
- package/es/table/module/filter/panel.js +251 -275
- package/es/table/module/keyboard/hook.d.ts +1 -0
- package/es/table/module/keyboard/hook.js +445 -497
- package/es/table/module/menu/hook.d.ts +1 -0
- package/es/table/module/menu/hook.js +295 -315
- package/es/table/module/menu/panel.d.ts +2 -0
- package/es/table/module/menu/panel.js +164 -183
- package/es/table/module/validator/hook.d.ts +1 -0
- package/es/table/module/validator/hook.js +522 -571
- package/es/table/render/index.d.ts +1 -0
- package/es/table/render/index.js +1402 -1362
- package/es/table/src/body.d.ts +24 -0
- package/es/table/src/body.js +850 -865
- package/es/table/src/cell.d.ts +192 -0
- package/es/table/src/cell.js +1209 -1207
- package/es/table/src/column.d.ts +263 -0
- package/es/table/src/column.js +178 -174
- package/es/table/src/columnInfo.d.ts +13 -0
- package/es/table/src/columnInfo.js +202 -196
- package/es/table/src/emits.d.ts +2 -0
- package/es/table/src/emits.js +126 -119
- package/es/table/src/footer.d.ts +45 -0
- package/es/table/src/footer.js +336 -340
- package/es/table/src/group.d.ts +178 -0
- package/es/table/src/group.js +49 -46
- package/es/table/src/header.d.ts +26 -0
- package/es/table/src/header.js +517 -519
- package/es/table/src/props.d.ts +238 -0
- package/es/table/src/props.js +331 -328
- package/es/table/src/store.d.ts +6 -0
- package/es/table/src/store.js +9 -6
- package/es/table/src/table.d.ts +539 -0
- package/es/table/src/table.js +14061 -15071
- package/es/table/src/use/cell-view.d.ts +10 -0
- package/es/table/src/use/cell-view.js +36 -33
- package/es/table/src/use/index.d.ts +1 -0
- package/es/table/src/use/index.js +1 -1
- package/es/table/src/util.d.ts +74 -0
- package/es/table/src/util.js +1038 -1026
- package/es/table/style.css +1 -1
- package/es/table/style.mini.css +1 -0
- package/es/toolbar/index.d.ts +340 -0
- package/es/toolbar/index.js +14 -9
- package/es/toolbar/src/toolbar.d.ts +75 -0
- package/es/toolbar/src/toolbar.js +605 -613
- package/es/toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/ui/index.d.ts +86 -0
- package/es/ui/index.js +457 -501
- package/es/ui/src/anime.d.ts +10 -0
- package/es/ui/src/anime.js +40 -40
- package/es/ui/src/comp.d.ts +2 -0
- package/es/ui/src/comp.js +5 -2
- package/es/ui/src/dom.d.ts +80 -0
- package/es/ui/src/dom.js +377 -380
- package/es/ui/src/log.d.ts +6 -0
- package/es/ui/src/log.js +18 -13
- package/es/ui/src/utils.d.ts +23 -0
- package/es/ui/src/utils.js +57 -53
- package/es/ui/src/vn.d.ts +7 -0
- package/es/ui/src/vn.js +49 -42
- package/es/v-x-e-table/index.d.ts +3 -0
- package/es/v-x-e-table/index.js +6 -3
- package/es/vxe-colgroup/index.d.ts +3 -0
- package/es/vxe-colgroup/index.js +6 -3
- package/es/vxe-column/index.d.ts +3 -0
- package/es/vxe-column/index.js +6 -3
- package/es/vxe-grid/index.d.ts +3 -0
- package/es/vxe-grid/index.js +6 -3
- package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
- package/es/vxe-table/index.d.ts +3 -0
- package/es/vxe-table/index.js +6 -3
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.mini.css +1 -0
- package/es/vxe-toolbar/index.d.ts +3 -0
- package/es/vxe-toolbar/index.js +6 -3
- package/es/vxe-toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/vxe-ui/index.d.ts +3 -0
- package/es/vxe-ui/index.js +6 -3
- package/lib/colgroup/index.js +44 -18
- package/lib/colgroup/style/index.js +1 -1
- package/lib/column/index.js +44 -18
- package/lib/column/style/index.js +1 -1
- package/lib/components.js +58 -92
- package/lib/grid/index.js +42 -14
- package/lib/grid/src/emits.js +37 -6
- package/lib/grid/src/grid.js +850 -1195
- package/lib/grid/src/props.js +27 -11
- package/lib/grid/style/index.js +1 -1
- package/lib/{vxe-grid/style/style.min.css → grid/style/style.mini.css} +1 -1
- package/lib/iconfont.1792979665397.ttf +0 -0
- package/lib/iconfont.1792979665397.woff +0 -0
- package/lib/iconfont.1792979665397.woff2 +0 -0
- package/lib/index.common.js +35 -19
- package/lib/index.js +37 -0
- package/lib/index.umd.js +30584 -24324
- package/lib/index.umd.min.js +3 -1
- package/lib/locale/ar-EG.umd.js +948 -0
- package/lib/locale/de-DE.umd.js +948 -0
- package/lib/locale/en-US.umd.js +948 -0
- package/lib/locale/es-ES.umd.js +948 -0
- package/lib/locale/fr-FR.umd.js +948 -0
- package/lib/locale/hu-HU.umd.js +948 -0
- package/lib/locale/hy-AM.umd.js +948 -0
- package/lib/locale/id-ID.umd.js +948 -0
- package/lib/locale/it-IT.umd.js +948 -0
- package/lib/locale/ja-JP.umd.js +948 -0
- package/lib/locale/ko-KR.umd.js +948 -0
- package/lib/locale/lang/ar-EG.js +681 -664
- package/lib/locale/lang/ar-EG.umd.js +913 -892
- package/lib/locale/lang/de-DE.js +681 -664
- package/lib/locale/lang/de-DE.umd.js +913 -892
- package/lib/locale/lang/en-US.js +678 -661
- package/lib/locale/lang/en-US.umd.js +913 -892
- package/lib/locale/lang/es-ES.js +681 -664
- package/lib/locale/lang/es-ES.umd.js +913 -892
- package/lib/locale/lang/fr-FR.js +654 -637
- package/lib/locale/lang/fr-FR.umd.js +913 -892
- package/lib/locale/lang/hu-HU.js +681 -664
- package/lib/locale/lang/hu-HU.umd.js +913 -892
- package/lib/locale/lang/hy-AM.js +681 -664
- package/lib/locale/lang/hy-AM.umd.js +913 -892
- package/lib/locale/lang/id-ID.js +681 -664
- package/lib/locale/lang/id-ID.umd.js +913 -892
- package/lib/locale/lang/it-IT.js +661 -644
- package/lib/locale/lang/it-IT.umd.js +912 -891
- package/lib/locale/lang/ja-JP.js +710 -693
- package/lib/locale/lang/ja-JP.umd.js +913 -892
- package/lib/locale/lang/ko-KR.js +681 -664
- package/lib/locale/lang/ko-KR.umd.js +913 -892
- package/lib/locale/lang/ms-MY.js +681 -664
- package/lib/locale/lang/ms-MY.umd.js +913 -892
- package/lib/locale/lang/nb-NO.js +681 -664
- package/lib/locale/lang/nb-NO.umd.js +913 -892
- package/lib/locale/lang/pt-BR.js +681 -664
- package/lib/locale/lang/pt-BR.umd.js +913 -892
- package/lib/locale/lang/ru-RU.js +690 -673
- package/lib/locale/lang/ru-RU.umd.js +913 -892
- package/lib/locale/lang/th-TH.js +681 -664
- package/lib/locale/lang/th-TH.umd.js +913 -892
- package/lib/locale/lang/ug-CN.js +681 -664
- package/lib/locale/lang/ug-CN.umd.js +913 -892
- package/lib/locale/lang/uk-UA.js +674 -657
- package/lib/locale/lang/uk-UA.umd.js +913 -892
- package/lib/locale/lang/uz-UZ.js +583 -566
- package/lib/locale/lang/uz-UZ.umd.js +908 -887
- package/lib/locale/lang/vi-VN.js +681 -664
- package/lib/locale/lang/vi-VN.umd.js +913 -892
- package/lib/locale/lang/zh-CHT.js +681 -664
- package/lib/locale/lang/zh-CHT.umd.js +913 -892
- package/lib/locale/lang/zh-CN.js +681 -664
- package/lib/locale/lang/zh-CN.umd.js +913 -892
- package/lib/locale/lang/zh-HK.js +928 -7
- package/lib/locale/lang/zh-HK.umd.js +945 -20
- package/lib/locale/lang/zh-MO.js +928 -7
- package/lib/locale/lang/zh-MO.umd.js +945 -20
- package/lib/locale/lang/zh-TC.js +928 -7
- package/lib/locale/lang/zh-TC.umd.js +948 -0
- package/lib/locale/lang/zh-TW.js +928 -7
- package/lib/locale/lang/zh-TW.umd.js +945 -20
- package/lib/locale/ms-MY.umd.js +948 -0
- package/lib/locale/nb-NO.umd.js +948 -0
- package/lib/locale/pt-BR.umd.js +948 -0
- package/lib/locale/ru-RU.umd.js +948 -0
- package/lib/locale/th-TH.umd.js +948 -0
- package/lib/locale/ug-CN.umd.js +948 -0
- package/lib/locale/uk-UA.umd.js +948 -0
- package/lib/locale/uz-UZ.umd.js +948 -0
- package/lib/locale/vi-VN.umd.js +948 -0
- package/lib/locale/zh-CHT.umd.js +948 -0
- package/lib/locale/zh-CN.umd.js +948 -0
- package/lib/locale/zh-HK.umd.js +948 -0
- package/lib/locale/zh-MO.umd.js +948 -0
- package/lib/locale/zh-TC.umd.js +948 -0
- package/lib/locale/zh-TW.umd.js +948 -0
- package/lib/style.css +4501 -1
- package/lib/style.mini.css +1 -0
- package/lib/table/index.js +45 -17
- package/lib/table/module/custom/hook.js +132 -252
- package/lib/table/module/custom/panel.js +919 -970
- package/lib/table/module/edit/hook.js +248 -618
- package/lib/table/module/export/export-panel.js +390 -347
- package/lib/table/module/export/hook.js +745 -1179
- package/lib/table/module/export/import-panel.js +170 -136
- package/lib/table/module/export/util.js +37 -14
- package/lib/table/module/filter/hook.js +127 -227
- package/lib/table/module/filter/panel.js +177 -208
- package/lib/table/module/keyboard/hook.js +93 -172
- package/lib/table/module/menu/hook.js +86 -165
- package/lib/table/module/menu/panel.js +176 -141
- package/lib/table/module/validator/hook.js +164 -271
- package/lib/table/render/index.js +700 -1147
- package/lib/table/src/body.js +426 -559
- package/lib/table/src/cell.js +619 -987
- package/lib/table/src/column.js +55 -30
- package/lib/table/src/columnInfo.js +88 -110
- package/lib/table/src/emits.js +145 -13
- package/lib/table/src/footer.js +181 -240
- package/lib/table/src/group.js +56 -34
- package/lib/table/src/header.js +292 -367
- package/lib/table/src/props.js +27 -12
- package/lib/table/src/store.js +25 -9
- package/lib/table/src/table.js +14179 -1023
- package/lib/table/src/use/cell-view.js +47 -37
- package/lib/table/src/use/index.js +17 -15
- package/lib/table/src/util.js +236 -337
- package/lib/table/style/index.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.mini.css +1 -0
- package/lib/toolbar/index.js +42 -14
- package/lib/toolbar/src/toolbar.js +271 -379
- package/lib/toolbar/style/index.js +1 -1
- package/lib/toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/ui/index.js +153 -195
- package/lib/ui/src/anime.js +49 -29
- package/lib/ui/src/comp.js +23 -6
- package/lib/ui/src/dom.js +114 -147
- package/lib/ui/src/log.js +34 -18
- package/lib/ui/src/utils.js +57 -45
- package/lib/ui/src/vn.js +60 -34
- package/lib/ui/style/index.js +1 -1
- package/lib/v-x-e-table/index.js +35 -19
- package/lib/vxe-colgroup/index.js +35 -19
- package/lib/vxe-colgroup/style/index.js +1 -1
- package/lib/vxe-column/index.js +35 -19
- package/lib/vxe-column/style/index.js +1 -1
- package/lib/vxe-grid/index.js +35 -19
- package/lib/vxe-grid/style/index.js +1 -1
- package/{es/grid/style.min.css → lib/vxe-grid/style/style.mini.css} +1 -1
- package/lib/vxe-table/index.js +35 -19
- package/lib/vxe-table/style/index.js +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.mini.css +1 -0
- package/lib/vxe-toolbar/index.js +35 -19
- package/lib/vxe-toolbar/style/index.js +1 -1
- package/lib/vxe-toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/vxe-ui/index.js +35 -19
- package/lib/vxe-ui/style/index.js +1 -1
- package/package.json +8 -4
- package/packages/locale/lang/zh-HK.ts +907 -3
- package/packages/locale/lang/zh-MO.ts +907 -3
- package/packages/locale/lang/zh-TC.ts +907 -3
- package/packages/locale/lang/zh-TW.ts +907 -3
- package/packages/ui/index.ts +1 -28
- package/dist/style.min.css +0 -1
- package/es/index.css +0 -1
- package/es/index.min.css +0 -1
- package/es/style.min.css +0 -1
- package/es/table/style.min.css +0 -1
- package/es/vxe-table/style.min.css +0 -1
- package/es/vxe-v-x-e-table/index.js +0 -3
- package/lib/colgroup/index.min.js +0 -1
- package/lib/column/index.min.js +0 -1
- package/lib/components.min.js +0 -1
- package/lib/grid/index.min.js +0 -1
- package/lib/grid/src/emits.min.js +0 -1
- package/lib/grid/src/grid.min.js +0 -1
- package/lib/grid/src/props.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/index.min.css +0 -1
- package/lib/locale/lang/ar-EG.d.ts +0 -2
- package/lib/locale/lang/ar-EG.min.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.min.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.min.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.min.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.min.js +0 -1
- package/lib/locale/lang/hu-HU.d.ts +0 -2
- package/lib/locale/lang/hu-HU.min.js +0 -1
- package/lib/locale/lang/hy-AM.d.ts +0 -2
- package/lib/locale/lang/hy-AM.min.js +0 -1
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.min.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.min.js +0 -1
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.min.js +0 -1
- package/lib/locale/lang/ms-MY.d.ts +0 -2
- package/lib/locale/lang/ms-MY.min.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.min.js +0 -1
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.min.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.min.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.min.js +0 -1
- package/lib/locale/lang/ug-CN.d.ts +0 -2
- package/lib/locale/lang/ug-CN.min.js +0 -1
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.min.js +0 -1
- package/lib/locale/lang/uz-UZ.d.ts +0 -2
- package/lib/locale/lang/uz-UZ.min.js +0 -1
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.min.js +0 -1
- package/lib/locale/lang/zh-CHT.d.ts +0 -2
- package/lib/locale/lang/zh-CHT.min.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.min.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.min.js +0 -1
- package/lib/locale/lang/zh-MO.d.ts +0 -2
- package/lib/locale/lang/zh-MO.min.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.min.js +0 -1
- package/lib/style.min.css +0 -1
- package/lib/table/index.min.js +0 -1
- package/lib/table/module/custom/hook.min.js +0 -1
- package/lib/table/module/custom/panel.min.js +0 -1
- package/lib/table/module/edit/hook.min.js +0 -1
- package/lib/table/module/export/export-panel.min.js +0 -1
- package/lib/table/module/export/hook.min.js +0 -1
- package/lib/table/module/export/import-panel.min.js +0 -1
- package/lib/table/module/export/util.min.js +0 -1
- package/lib/table/module/filter/hook.min.js +0 -1
- package/lib/table/module/filter/panel.min.js +0 -1
- package/lib/table/module/keyboard/hook.min.js +0 -1
- package/lib/table/module/menu/hook.min.js +0 -1
- package/lib/table/module/menu/panel.min.js +0 -1
- package/lib/table/module/validator/hook.min.js +0 -1
- package/lib/table/render/index.min.js +0 -1
- package/lib/table/src/body.min.js +0 -1
- package/lib/table/src/cell.min.js +0 -1
- package/lib/table/src/column.min.js +0 -1
- package/lib/table/src/columnInfo.min.js +0 -1
- package/lib/table/src/emits.min.js +0 -1
- package/lib/table/src/footer.min.js +0 -1
- package/lib/table/src/group.min.js +0 -1
- package/lib/table/src/header.min.js +0 -1
- package/lib/table/src/props.min.js +0 -1
- package/lib/table/src/store.min.js +0 -1
- package/lib/table/src/table.min.js +0 -1
- package/lib/table/src/use/cell-view.min.js +0 -1
- package/lib/table/src/use/index.min.js +0 -1
- package/lib/table/src/util.min.js +0 -1
- package/lib/table/style/style.min.css +0 -1
- package/lib/toolbar/index.min.js +0 -1
- package/lib/toolbar/src/toolbar.min.js +0 -1
- package/lib/ui/index.min.js +0 -1
- package/lib/ui/src/anime.min.js +0 -1
- package/lib/ui/src/comp.min.js +0 -1
- package/lib/ui/src/dom.min.js +0 -1
- package/lib/ui/src/log.min.js +0 -1
- package/lib/ui/src/utils.min.js +0 -1
- package/lib/ui/src/vn.min.js +0 -1
- package/lib/ui/style/style.min.css +0 -0
- package/lib/v-x-e-table/index.min.js +0 -1
- package/lib/v-x-e-table/style/index.js +0 -1
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-colgroup/index.min.js +0 -1
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/index.min.js +0 -1
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-grid/index.min.js +0 -1
- package/lib/vxe-table/index.min.js +0 -1
- package/lib/vxe-table/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.min.js +0 -1
- package/lib/vxe-ui/index.min.js +0 -1
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/lib/vxe-v-x-e-table/index.js +0 -21
- package/lib/vxe-v-x-e-table/index.min.js +0 -1
- package/lib/vxe-v-x-e-table/style/index.js +0 -1
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- /package/{es/iconfont.1792838769925.ttf → dist/iconfont.1792979665397.ttf} +0 -0
- /package/{es/iconfont.1792838769925.woff → dist/iconfont.1792979665397.woff} +0 -0
- /package/{es/iconfont.1792838769925.woff2 → dist/iconfont.1792979665397.woff2} +0 -0
- /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
- /package/es/column/{style.min.css → style.mini.css} +0 -0
- /package/{lib/iconfont.1792838769925.ttf → es/iconfont.1792979665397.ttf} +0 -0
- /package/{lib/iconfont.1792838769925.woff → es/iconfont.1792979665397.woff} +0 -0
- /package/{lib/iconfont.1792838769925.woff2 → es/iconfont.1792979665397.woff2} +0 -0
- /package/es/ui/{style.min.css → style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
- /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
- /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
- /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
- /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
- /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
|
@@ -1,580 +1,528 @@
|
|
|
1
|
-
import { h, ref, computed, reactive, inject, nextTick } from
|
|
2
|
-
import { defineVxeComponent } from
|
|
3
|
-
import { VxeUI } from
|
|
4
|
-
import XEUtils from
|
|
5
|
-
import { formatText, getDefaultConfig } from
|
|
6
|
-
import { createComponentLog } from
|
|
7
|
-
const { errLog } = createComponentLog(
|
|
1
|
+
import { h, ref, computed, reactive, inject, nextTick } from "vue";
|
|
2
|
+
import { defineVxeComponent } from "../../../ui/src/comp";
|
|
3
|
+
import { VxeUI } from "../../../ui";
|
|
4
|
+
import XEUtils from "xe-utils";
|
|
5
|
+
import { formatText, getDefaultConfig } from "../../../ui/src/utils";
|
|
6
|
+
import { createComponentLog } from "../../../ui/src/log";
|
|
7
|
+
const { errLog } = createComponentLog("table");
|
|
8
8
|
const { getI18n, getIcon, renderEmptyElement } = VxeUI;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
storeData: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => ({})
|
|
19
|
-
}
|
|
9
|
+
var export_panel_default = defineVxeComponent({
|
|
10
|
+
name: "VxeTableExportPanel",
|
|
11
|
+
props: {
|
|
12
|
+
defaultOptions: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => ({})
|
|
20
15
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
16
|
+
storeData: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => ({})
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(props) {
|
|
22
|
+
const VxeUIModalComponent = VxeUI.getComponent("VxeModal");
|
|
23
|
+
const VxeUIButtonComponent = VxeUI.getComponent("VxeButton");
|
|
24
|
+
const VxeUISelectComponent = VxeUI.getComponent("VxeSelect");
|
|
25
|
+
const VxeUIInputComponent = VxeUI.getComponent("VxeInput");
|
|
26
|
+
const VxeUICheckboxComponent = VxeUI.getComponent("VxeCheckbox");
|
|
27
|
+
const $xeTable = inject("$xeTable", {});
|
|
28
|
+
const { computeExportOpts, computePrintOpts } = $xeTable.getComputeMaps();
|
|
29
|
+
const reactData = reactive({
|
|
30
|
+
isAll: false,
|
|
31
|
+
isIndeterminate: false,
|
|
32
|
+
loading: false
|
|
33
|
+
});
|
|
34
|
+
const xButtonConfirm = ref();
|
|
35
|
+
const xInputFilename = ref();
|
|
36
|
+
const xInputSheetname = ref();
|
|
37
|
+
const computeColWidthModeOptions = computed(() => {
|
|
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
|
+
const computeCheckedAll = computed(() => {
|
|
45
|
+
const { storeData } = props;
|
|
46
|
+
return storeData.columns.every((column) => column.checked);
|
|
47
|
+
});
|
|
48
|
+
const computeShowSheet = computed(() => {
|
|
49
|
+
const { defaultOptions } = props;
|
|
50
|
+
return ["html", "xml", "xlsx", "pdf"].indexOf(defaultOptions.type) > -1;
|
|
51
|
+
});
|
|
52
|
+
const computeSupportMerge = computed(() => {
|
|
53
|
+
const { storeData, defaultOptions } = props;
|
|
54
|
+
return !defaultOptions.original && defaultOptions.mode === "current" && (storeData.isPrint || ["html", "xlsx"].indexOf(defaultOptions.type) > -1);
|
|
55
|
+
});
|
|
56
|
+
const computeSupportStyle = computed(() => {
|
|
57
|
+
const { defaultOptions } = props;
|
|
58
|
+
return !defaultOptions.original && ["xlsx"].indexOf(defaultOptions.type) > -1;
|
|
59
|
+
});
|
|
60
|
+
const handleOptionCheck = (column) => {
|
|
61
|
+
const { storeData } = props;
|
|
62
|
+
const matchObj = XEUtils.findTree(storeData.columns, (item) => item === column);
|
|
63
|
+
if (matchObj && matchObj.parent) {
|
|
64
|
+
const { parent } = matchObj;
|
|
65
|
+
if (parent.children && parent.children.length) {
|
|
66
|
+
parent.checked = parent.children.every((column2) => column2.checked);
|
|
67
|
+
parent.halfChecked = !parent.checked && parent.children.some((column2) => column2.checked || column2.halfChecked);
|
|
68
|
+
handleOptionCheck(parent);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const checkStatus = () => {
|
|
73
|
+
const { storeData } = props;
|
|
74
|
+
const columns = storeData.columns;
|
|
75
|
+
reactData.isAll = columns.every((column) => column.disabled || column.checked);
|
|
76
|
+
reactData.isIndeterminate = !reactData.isAll && columns.some((column) => !column.disabled && (column.checked || column.halfChecked));
|
|
77
|
+
};
|
|
78
|
+
const changeOption = (column) => {
|
|
79
|
+
const isChecked = !column.checked;
|
|
80
|
+
XEUtils.eachTree([column], (item) => {
|
|
81
|
+
item.checked = isChecked;
|
|
82
|
+
item.halfChecked = false;
|
|
83
|
+
});
|
|
84
|
+
handleOptionCheck(column);
|
|
85
|
+
checkStatus();
|
|
86
|
+
};
|
|
87
|
+
const allColumnEvent = () => {
|
|
88
|
+
const { storeData } = props;
|
|
89
|
+
const isAll = !reactData.isAll;
|
|
90
|
+
XEUtils.eachTree(storeData.columns, (column) => {
|
|
91
|
+
if (!column.disabled) {
|
|
92
|
+
column.checked = isAll;
|
|
93
|
+
column.halfChecked = false;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
reactData.isAll = isAll;
|
|
97
|
+
checkStatus();
|
|
98
|
+
};
|
|
99
|
+
const showEvent = () => {
|
|
100
|
+
nextTick(() => {
|
|
101
|
+
const filenameInp = xInputFilename.value;
|
|
102
|
+
const sheetnameInp = xInputSheetname.value;
|
|
103
|
+
const confirmBtn = xButtonConfirm.value;
|
|
104
|
+
const targetElem = filenameInp || sheetnameInp || confirmBtn;
|
|
105
|
+
if (targetElem) {
|
|
106
|
+
targetElem.focus();
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
checkStatus();
|
|
110
|
+
};
|
|
111
|
+
const getExportOption = () => {
|
|
112
|
+
const { storeData, defaultOptions } = props;
|
|
113
|
+
const { hasMerge, columns } = storeData;
|
|
114
|
+
const checkedAll = computeCheckedAll.value;
|
|
115
|
+
const supportMerge = computeSupportMerge.value;
|
|
116
|
+
const expColumns = XEUtils.searchTree(columns, (column) => column.checked, { children: "children", mapChildren: "_children", original: true });
|
|
117
|
+
return Object.assign({}, defaultOptions, {
|
|
118
|
+
_columns: expColumns,
|
|
119
|
+
isMerge: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
const printEvent = () => {
|
|
123
|
+
const { storeData } = props;
|
|
124
|
+
const printOpts = computePrintOpts.value;
|
|
125
|
+
storeData.visible = false;
|
|
126
|
+
$xeTable.print(Object.assign({}, printOpts, getExportOption()));
|
|
127
|
+
};
|
|
128
|
+
const exportEvent = () => {
|
|
129
|
+
const { storeData } = props;
|
|
130
|
+
const exportOpts = computeExportOpts.value;
|
|
131
|
+
reactData.loading = true;
|
|
132
|
+
$xeTable.exportData(Object.assign({}, exportOpts, getExportOption())).then(() => {
|
|
133
|
+
reactData.loading = false;
|
|
134
|
+
storeData.visible = false;
|
|
135
|
+
}).catch(() => {
|
|
136
|
+
reactData.loading = false;
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
const cancelEvent = () => {
|
|
140
|
+
const { storeData } = props;
|
|
141
|
+
storeData.visible = false;
|
|
142
|
+
};
|
|
143
|
+
const confirmEvent = () => {
|
|
144
|
+
const { storeData } = props;
|
|
145
|
+
if (storeData.isPrint) {
|
|
146
|
+
printEvent();
|
|
147
|
+
} else {
|
|
148
|
+
exportEvent();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const renderVN = () => {
|
|
152
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
153
|
+
const $xeGantt = $xeTable.xeGantt;
|
|
154
|
+
const { defaultOptions, storeData } = props;
|
|
155
|
+
const { isAll: isAllChecked, isIndeterminate: isAllIndeterminate } = reactData;
|
|
156
|
+
const { hasTree, hasRowGroup, hasMerge, isPrint, hasColgroup, columns } = storeData;
|
|
157
|
+
const { isHeader } = defaultOptions;
|
|
158
|
+
const colVNs = [];
|
|
159
|
+
const exportOpts = computeExportOpts.value;
|
|
160
|
+
const printOpts = computePrintOpts.value;
|
|
161
|
+
const modelOptions = (isPrint ? printOpts : exportOpts).modelOptions || {};
|
|
162
|
+
const settingOptions = (isPrint ? printOpts : exportOpts).settingOptions || {};
|
|
163
|
+
const checkedAll = computeCheckedAll.value;
|
|
164
|
+
const showSheet = computeShowSheet.value;
|
|
165
|
+
const supportMerge = computeSupportMerge.value;
|
|
166
|
+
const supportStyle = computeSupportStyle.value;
|
|
167
|
+
const colWidthModeOptions = computeColWidthModeOptions.value;
|
|
168
|
+
const slots = defaultOptions.slots || {};
|
|
169
|
+
const topSlot = slots.top;
|
|
170
|
+
const bottomSlot = slots.bottom;
|
|
171
|
+
const defaultSlot = slots.default;
|
|
172
|
+
const footerSlot = slots.footer;
|
|
173
|
+
const parameterSlot = slots.parameter;
|
|
174
|
+
XEUtils.eachTree(columns, (column) => {
|
|
175
|
+
const colTitle = formatText(column.getTitle(), 1);
|
|
176
|
+
const isColGroup = column.children && column.children.length;
|
|
177
|
+
const isChecked = column.checked;
|
|
178
|
+
const indeterminate = column.halfChecked;
|
|
179
|
+
const isHtml = column.type === "html";
|
|
180
|
+
colVNs.push(
|
|
181
|
+
h("li", {
|
|
182
|
+
key: column.id,
|
|
183
|
+
class: ["vxe-table-export--panel-column-option", `level--${column.level}`, {
|
|
184
|
+
"is--group": isColGroup,
|
|
185
|
+
"is--checked": isChecked,
|
|
186
|
+
"is--indeterminate": indeterminate,
|
|
187
|
+
"is--disabled": column.disabled
|
|
188
|
+
}],
|
|
189
|
+
title: isHtml ? "" : colTitle,
|
|
190
|
+
onClick: () => {
|
|
191
|
+
if (!column.disabled) {
|
|
192
|
+
changeOption(column);
|
|
193
|
+
}
|
|
155
194
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
195
|
+
}, [
|
|
196
|
+
h("span", {
|
|
197
|
+
class: ["vxe-checkbox--icon", indeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
198
|
+
}),
|
|
199
|
+
isHtml ? h("span", {
|
|
200
|
+
key: "1",
|
|
201
|
+
class: "vxe-checkbox--label",
|
|
202
|
+
innerHTML: colTitle
|
|
203
|
+
}) : h("span", {
|
|
204
|
+
key: "0",
|
|
205
|
+
class: "vxe-checkbox--label"
|
|
206
|
+
}, colTitle)
|
|
207
|
+
])
|
|
208
|
+
);
|
|
209
|
+
});
|
|
210
|
+
return VxeUIModalComponent ? h(VxeUIModalComponent, {
|
|
211
|
+
id: "VXE_EXPORT_MODAL",
|
|
212
|
+
modelValue: storeData.visible,
|
|
213
|
+
title: modelOptions.title || getI18n(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle"),
|
|
214
|
+
className: "vxe-table-export-popup-wrapper",
|
|
215
|
+
width: modelOptions.width || 660,
|
|
216
|
+
height: modelOptions.height,
|
|
217
|
+
minWidth: modelOptions.minWidth || 500,
|
|
218
|
+
minHeight: modelOptions.minHeight || 400,
|
|
219
|
+
mask: getDefaultConfig(modelOptions.mask, true),
|
|
220
|
+
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
221
|
+
showFooter: true,
|
|
222
|
+
escClosable: true,
|
|
223
|
+
maskClosable: true,
|
|
224
|
+
position: modelOptions.position,
|
|
225
|
+
fullscreen: modelOptions.fullscreen,
|
|
226
|
+
remember: modelOptions.remember,
|
|
227
|
+
showMinimize: modelOptions.showMinimize,
|
|
228
|
+
showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
|
|
229
|
+
resize: getDefaultConfig(modelOptions.resize, true),
|
|
230
|
+
loading: reactData.loading,
|
|
231
|
+
"onUpdate:modelValue"(value) {
|
|
232
|
+
storeData.visible = value;
|
|
233
|
+
},
|
|
234
|
+
onShow: showEvent
|
|
235
|
+
}, {
|
|
236
|
+
default: () => {
|
|
237
|
+
const params = {
|
|
238
|
+
$table: $xeTable,
|
|
239
|
+
$grid: $xeGrid,
|
|
240
|
+
$gantt: $xeGantt,
|
|
241
|
+
options: defaultOptions,
|
|
242
|
+
columns,
|
|
243
|
+
params: defaultOptions.params
|
|
244
|
+
};
|
|
245
|
+
const hasEmptyData = defaultOptions.mode === "empty";
|
|
246
|
+
return h("div", {
|
|
247
|
+
class: "vxe-table-export--panel"
|
|
248
|
+
}, [
|
|
249
|
+
topSlot ? h("div", {
|
|
250
|
+
class: "vxe-table-export--panel-top"
|
|
251
|
+
}, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable),
|
|
252
|
+
h("div", {
|
|
253
|
+
class: "vxe-table-export--panel-body"
|
|
254
|
+
}, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
|
|
255
|
+
h("table", {
|
|
256
|
+
class: "vxe-table-export--panel-table",
|
|
257
|
+
cellspacing: 0,
|
|
258
|
+
cellpadding: 0,
|
|
259
|
+
border: 0
|
|
260
|
+
}, [
|
|
261
|
+
h("tbody", [
|
|
262
|
+
[
|
|
263
|
+
isPrint || settingOptions.showFileName === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
264
|
+
h("td", getI18n("vxe.export.expName")),
|
|
265
|
+
h("td", [
|
|
266
|
+
VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
267
|
+
ref: xInputFilename,
|
|
268
|
+
modelValue: defaultOptions.filename,
|
|
269
|
+
type: "text",
|
|
270
|
+
clearable: true,
|
|
271
|
+
placeholder: getI18n("vxe.export.expNamePlaceholder"),
|
|
272
|
+
"onUpdate:modelValue"(value) {
|
|
273
|
+
defaultOptions.filename = value;
|
|
274
|
+
}
|
|
275
|
+
}) : renderEmptyElement($xeTable)
|
|
276
|
+
])
|
|
277
|
+
]),
|
|
278
|
+
isPrint || settingOptions.showType === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
279
|
+
h("td", getI18n("vxe.export.expType")),
|
|
280
|
+
h("td", [
|
|
281
|
+
VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
282
|
+
modelValue: defaultOptions.type,
|
|
283
|
+
options: storeData.typeList,
|
|
284
|
+
"onUpdate:modelValue"(value) {
|
|
285
|
+
defaultOptions.type = value;
|
|
286
|
+
}
|
|
287
|
+
}) : renderEmptyElement($xeTable)
|
|
288
|
+
])
|
|
289
|
+
]),
|
|
290
|
+
(isPrint || showSheet) && settingOptions.showSheet !== false ? h("tr", [
|
|
291
|
+
h("td", getI18n("vxe.export.expSheetName")),
|
|
292
|
+
h("td", [
|
|
293
|
+
VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
294
|
+
ref: xInputSheetname,
|
|
295
|
+
modelValue: defaultOptions.sheetName,
|
|
296
|
+
type: "text",
|
|
297
|
+
clearable: true,
|
|
298
|
+
placeholder: getI18n("vxe.export.expSheetNamePlaceholder"),
|
|
299
|
+
"onUpdate:modelValue"(value) {
|
|
300
|
+
defaultOptions.sheetName = value;
|
|
301
|
+
}
|
|
302
|
+
}) : renderEmptyElement($xeTable)
|
|
303
|
+
])
|
|
304
|
+
]) : renderEmptyElement($xeTable),
|
|
305
|
+
settingOptions.showMode === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
306
|
+
h("td", getI18n("vxe.export.expMode")),
|
|
307
|
+
h("td", [
|
|
308
|
+
VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
309
|
+
modelValue: defaultOptions.mode,
|
|
310
|
+
options: storeData.modeList.map((item) => {
|
|
311
|
+
return {
|
|
312
|
+
value: item.value,
|
|
313
|
+
label: getI18n(item.label)
|
|
314
|
+
};
|
|
315
|
+
}),
|
|
316
|
+
"onUpdate:modelValue"(value) {
|
|
317
|
+
defaultOptions.mode = value;
|
|
318
|
+
}
|
|
319
|
+
}) : renderEmptyElement($xeTable)
|
|
320
|
+
])
|
|
321
|
+
]),
|
|
322
|
+
settingOptions.showColumn === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
323
|
+
h("td", [getI18n("vxe.export.expColumn")]),
|
|
324
|
+
h("td", [
|
|
325
|
+
h("div", {
|
|
326
|
+
class: "vxe-table-export--panel-column"
|
|
256
327
|
}, [
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}, VxeUICheckboxComponent
|
|
455
|
-
? [
|
|
456
|
-
h(VxeUICheckboxComponent, {
|
|
457
|
-
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
458
|
-
disabled: hasEmptyData,
|
|
459
|
-
title: getI18n('vxe.export.expOriginalTitle'),
|
|
460
|
-
content: getI18n('vxe.export.expOptOriginal'),
|
|
461
|
-
'onUpdate:modelValue'(value) {
|
|
462
|
-
defaultOptions.original = value;
|
|
463
|
-
}
|
|
464
|
-
}),
|
|
465
|
-
h(VxeUICheckboxComponent, {
|
|
466
|
-
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
467
|
-
title: getI18n('vxe.export.expMergeTitle'),
|
|
468
|
-
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
469
|
-
content: getI18n('vxe.export.expOptMerge'),
|
|
470
|
-
'onUpdate:modelValue'(value) {
|
|
471
|
-
defaultOptions.isMerge = value;
|
|
472
|
-
}
|
|
473
|
-
}),
|
|
474
|
-
isPrint
|
|
475
|
-
? renderEmptyElement($xeTable)
|
|
476
|
-
: h(VxeUICheckboxComponent, {
|
|
477
|
-
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
478
|
-
disabled: !supportStyle,
|
|
479
|
-
title: getI18n('vxe.export.expUseStyleTitle'),
|
|
480
|
-
content: getI18n('vxe.export.expOptUseStyle'),
|
|
481
|
-
'onUpdate:modelValue'(value) {
|
|
482
|
-
defaultOptions.useStyle = value;
|
|
483
|
-
}
|
|
484
|
-
})
|
|
485
|
-
]
|
|
486
|
-
: []),
|
|
487
|
-
h('div', {
|
|
488
|
-
class: 'vxe-table-export--panel-option-row'
|
|
489
|
-
}, VxeUICheckboxComponent
|
|
490
|
-
? [
|
|
491
|
-
h(VxeUICheckboxComponent, {
|
|
492
|
-
modelValue: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
493
|
-
disabled: hasEmptyData || !hasTree,
|
|
494
|
-
title: getI18n('vxe.export.expTreeAllExpandTitle'),
|
|
495
|
-
content: getI18n('vxe.export.expOptTreeAllExpand'),
|
|
496
|
-
'onUpdate:modelValue'(value) {
|
|
497
|
-
defaultOptions.isTreeAllExpanded = value;
|
|
498
|
-
}
|
|
499
|
-
}),
|
|
500
|
-
h(VxeUICheckboxComponent, {
|
|
501
|
-
modelValue: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
502
|
-
disabled: hasEmptyData || !hasRowGroup,
|
|
503
|
-
title: getI18n('vxe.export.expRowGroupAllExpandTitle'),
|
|
504
|
-
content: getI18n('vxe.export.expOptRowGroupAllExpand'),
|
|
505
|
-
'onUpdate:modelValue'(value) {
|
|
506
|
-
defaultOptions.isRowGroupAllExpanded = value;
|
|
507
|
-
}
|
|
508
|
-
})
|
|
509
|
-
]
|
|
510
|
-
: [])
|
|
511
|
-
])
|
|
512
|
-
])
|
|
513
|
-
]
|
|
514
|
-
])
|
|
515
|
-
])
|
|
516
|
-
]),
|
|
517
|
-
bottomSlot
|
|
518
|
-
? h('div', {
|
|
519
|
-
class: 'vxe-table-export--panel-bottom'
|
|
520
|
-
}, $xeTable.callSlot(bottomSlot, params))
|
|
521
|
-
: renderEmptyElement($xeTable)
|
|
522
|
-
]);
|
|
523
|
-
},
|
|
524
|
-
footer() {
|
|
525
|
-
const params = {
|
|
526
|
-
$table: $xeTable,
|
|
527
|
-
$grid: $xeGrid,
|
|
528
|
-
$gantt: $xeGantt,
|
|
529
|
-
options: defaultOptions,
|
|
530
|
-
columns,
|
|
531
|
-
params: defaultOptions.params
|
|
532
|
-
};
|
|
533
|
-
return h('div', {
|
|
534
|
-
class: 'vxe-table-export--panel-footer'
|
|
535
|
-
}, footerSlot
|
|
536
|
-
? $xeTable.callSlot(footerSlot, params)
|
|
537
|
-
: [
|
|
538
|
-
h('div', {
|
|
539
|
-
class: 'vxe-table-export--panel-btns'
|
|
540
|
-
}, [
|
|
541
|
-
VxeUIButtonComponent
|
|
542
|
-
? h(VxeUIButtonComponent, {
|
|
543
|
-
content: getI18n('vxe.export.expCancel'),
|
|
544
|
-
onClick: cancelEvent
|
|
545
|
-
})
|
|
546
|
-
: renderEmptyElement($xeTable),
|
|
547
|
-
VxeUIButtonComponent
|
|
548
|
-
? h(VxeUIButtonComponent, {
|
|
549
|
-
ref: xButtonConfirm,
|
|
550
|
-
status: 'primary',
|
|
551
|
-
content: getI18n(isPrint ? 'vxe.export.expPrint' : 'vxe.export.expConfirm'),
|
|
552
|
-
onClick: confirmEvent
|
|
553
|
-
})
|
|
554
|
-
: renderEmptyElement($xeTable)
|
|
555
|
-
])
|
|
556
|
-
]);
|
|
557
|
-
}
|
|
558
|
-
})
|
|
559
|
-
: renderEmptyElement($xeTable);
|
|
560
|
-
};
|
|
561
|
-
nextTick(() => {
|
|
562
|
-
if (!VxeUIModalComponent) {
|
|
563
|
-
errLog('vxe.error.reqComp', ['vxe-modal']);
|
|
564
|
-
}
|
|
565
|
-
if (!VxeUIButtonComponent) {
|
|
566
|
-
errLog('vxe.error.reqComp', ['vxe-button']);
|
|
567
|
-
}
|
|
568
|
-
if (!VxeUISelectComponent) {
|
|
569
|
-
errLog('vxe.error.reqComp', ['vxe-select']);
|
|
570
|
-
}
|
|
571
|
-
if (!VxeUIInputComponent) {
|
|
572
|
-
errLog('vxe.error.reqComp', ['vxe-input']);
|
|
573
|
-
}
|
|
574
|
-
if (!VxeUICheckboxComponent) {
|
|
575
|
-
errLog('vxe.error.reqComp', ['vxe-checkbox']);
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
return renderVN;
|
|
579
|
-
}
|
|
328
|
+
h("ul", {
|
|
329
|
+
class: "vxe-table-export--panel-column-header"
|
|
330
|
+
}, [
|
|
331
|
+
h("li", {
|
|
332
|
+
class: ["vxe-table-export--panel-column-option", {
|
|
333
|
+
"is--checked": isAllChecked,
|
|
334
|
+
"is--indeterminate": isAllIndeterminate
|
|
335
|
+
}],
|
|
336
|
+
title: getI18n("vxe.table.allTitle"),
|
|
337
|
+
onClick: allColumnEvent
|
|
338
|
+
}, [
|
|
339
|
+
h("span", {
|
|
340
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
341
|
+
}),
|
|
342
|
+
h("span", {
|
|
343
|
+
class: "vxe-checkbox--label"
|
|
344
|
+
}, getI18n("vxe.export.expCurrentColumn"))
|
|
345
|
+
])
|
|
346
|
+
]),
|
|
347
|
+
h("ul", {
|
|
348
|
+
class: "vxe-table-export--panel-column-body"
|
|
349
|
+
}, colVNs)
|
|
350
|
+
])
|
|
351
|
+
])
|
|
352
|
+
]),
|
|
353
|
+
isPrint && settingOptions.showWidthMode !== false ? h("tr", [
|
|
354
|
+
h("td", getI18n("vxe.export.widthMode")),
|
|
355
|
+
h("td", [
|
|
356
|
+
VxeUISelectComponent ? h(VxeUISelectComponent, {
|
|
357
|
+
modelValue: defaultOptions.widthMode,
|
|
358
|
+
options: colWidthModeOptions,
|
|
359
|
+
"onUpdate:modelValue"(value) {
|
|
360
|
+
defaultOptions.widthMode = value;
|
|
361
|
+
}
|
|
362
|
+
}) : renderEmptyElement($xeTable)
|
|
363
|
+
])
|
|
364
|
+
]) : renderEmptyElement($xeTable),
|
|
365
|
+
settingOptions.showParameter === false ? renderEmptyElement($xeTable) : h("tr", [
|
|
366
|
+
h("td", getI18n("vxe.export.expOpts")),
|
|
367
|
+
parameterSlot ? h("td", [
|
|
368
|
+
h("div", {
|
|
369
|
+
class: "vxe-table-export--panel-option-row"
|
|
370
|
+
}, $xeTable.callSlot(parameterSlot, params))
|
|
371
|
+
]) : h("td", [
|
|
372
|
+
h("div", {
|
|
373
|
+
class: "vxe-table-export--panel-option-row"
|
|
374
|
+
}, VxeUICheckboxComponent ? [
|
|
375
|
+
h(VxeUICheckboxComponent, {
|
|
376
|
+
modelValue: hasEmptyData || isHeader,
|
|
377
|
+
disabled: hasEmptyData,
|
|
378
|
+
title: getI18n("vxe.export.expHeaderTitle"),
|
|
379
|
+
content: getI18n("vxe.export.expOptHeader"),
|
|
380
|
+
"onUpdate:modelValue"(value) {
|
|
381
|
+
defaultOptions.isHeader = value;
|
|
382
|
+
}
|
|
383
|
+
}),
|
|
384
|
+
h(VxeUICheckboxComponent, {
|
|
385
|
+
modelValue: defaultOptions.isFooter,
|
|
386
|
+
disabled: !storeData.hasFooter,
|
|
387
|
+
title: getI18n("vxe.export.expFooterTitle"),
|
|
388
|
+
content: getI18n("vxe.export.expOptFooter"),
|
|
389
|
+
"onUpdate:modelValue"(value) {
|
|
390
|
+
defaultOptions.isFooter = value;
|
|
391
|
+
}
|
|
392
|
+
}),
|
|
393
|
+
h(VxeUICheckboxComponent, {
|
|
394
|
+
modelValue: isHeader ? defaultOptions.isTitle : false,
|
|
395
|
+
disabled: !isHeader,
|
|
396
|
+
title: getI18n("vxe.export.expTitleTitle"),
|
|
397
|
+
content: getI18n("vxe.export.expOptTitle"),
|
|
398
|
+
"onUpdate:modelValue"(value) {
|
|
399
|
+
defaultOptions.isTitle = value;
|
|
400
|
+
}
|
|
401
|
+
}),
|
|
402
|
+
h(VxeUICheckboxComponent, {
|
|
403
|
+
modelValue: isHeader && hasColgroup && supportMerge ? defaultOptions.isColgroup : false,
|
|
404
|
+
title: getI18n("vxe.export.expColgroupTitle"),
|
|
405
|
+
disabled: !isHeader || !hasColgroup || !supportMerge,
|
|
406
|
+
content: getI18n("vxe.export.expOptColgroup"),
|
|
407
|
+
"onUpdate:modelValue"(value) {
|
|
408
|
+
defaultOptions.isColgroup = value;
|
|
409
|
+
}
|
|
410
|
+
})
|
|
411
|
+
] : []),
|
|
412
|
+
h("div", {
|
|
413
|
+
class: "vxe-table-export--panel-option-row"
|
|
414
|
+
}, VxeUICheckboxComponent ? [
|
|
415
|
+
h(VxeUICheckboxComponent, {
|
|
416
|
+
modelValue: hasEmptyData ? false : defaultOptions.original,
|
|
417
|
+
disabled: hasEmptyData,
|
|
418
|
+
title: getI18n("vxe.export.expOriginalTitle"),
|
|
419
|
+
content: getI18n("vxe.export.expOptOriginal"),
|
|
420
|
+
"onUpdate:modelValue"(value) {
|
|
421
|
+
defaultOptions.original = value;
|
|
422
|
+
}
|
|
423
|
+
}),
|
|
424
|
+
h(VxeUICheckboxComponent, {
|
|
425
|
+
modelValue: hasMerge && supportMerge && checkedAll ? defaultOptions.isMerge : false,
|
|
426
|
+
title: getI18n("vxe.export.expMergeTitle"),
|
|
427
|
+
disabled: hasEmptyData || !hasMerge || !supportMerge || !checkedAll,
|
|
428
|
+
content: getI18n("vxe.export.expOptMerge"),
|
|
429
|
+
"onUpdate:modelValue"(value) {
|
|
430
|
+
defaultOptions.isMerge = value;
|
|
431
|
+
}
|
|
432
|
+
}),
|
|
433
|
+
isPrint ? renderEmptyElement($xeTable) : h(VxeUICheckboxComponent, {
|
|
434
|
+
modelValue: supportStyle ? defaultOptions.useStyle : false,
|
|
435
|
+
disabled: !supportStyle,
|
|
436
|
+
title: getI18n("vxe.export.expUseStyleTitle"),
|
|
437
|
+
content: getI18n("vxe.export.expOptUseStyle"),
|
|
438
|
+
"onUpdate:modelValue"(value) {
|
|
439
|
+
defaultOptions.useStyle = value;
|
|
440
|
+
}
|
|
441
|
+
})
|
|
442
|
+
] : []),
|
|
443
|
+
h("div", {
|
|
444
|
+
class: "vxe-table-export--panel-option-row"
|
|
445
|
+
}, VxeUICheckboxComponent ? [
|
|
446
|
+
h(VxeUICheckboxComponent, {
|
|
447
|
+
modelValue: hasTree ? defaultOptions.isTreeAllExpanded : false,
|
|
448
|
+
disabled: hasEmptyData || !hasTree,
|
|
449
|
+
title: getI18n("vxe.export.expTreeAllExpandTitle"),
|
|
450
|
+
content: getI18n("vxe.export.expOptTreeAllExpand"),
|
|
451
|
+
"onUpdate:modelValue"(value) {
|
|
452
|
+
defaultOptions.isTreeAllExpanded = value;
|
|
453
|
+
}
|
|
454
|
+
}),
|
|
455
|
+
h(VxeUICheckboxComponent, {
|
|
456
|
+
modelValue: hasRowGroup ? defaultOptions.isRowGroupAllExpanded : false,
|
|
457
|
+
disabled: hasEmptyData || !hasRowGroup,
|
|
458
|
+
title: getI18n("vxe.export.expRowGroupAllExpandTitle"),
|
|
459
|
+
content: getI18n("vxe.export.expOptRowGroupAllExpand"),
|
|
460
|
+
"onUpdate:modelValue"(value) {
|
|
461
|
+
defaultOptions.isRowGroupAllExpanded = value;
|
|
462
|
+
}
|
|
463
|
+
})
|
|
464
|
+
] : [])
|
|
465
|
+
])
|
|
466
|
+
])
|
|
467
|
+
]
|
|
468
|
+
])
|
|
469
|
+
])
|
|
470
|
+
]),
|
|
471
|
+
bottomSlot ? h("div", {
|
|
472
|
+
class: "vxe-table-export--panel-bottom"
|
|
473
|
+
}, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable)
|
|
474
|
+
]);
|
|
475
|
+
},
|
|
476
|
+
footer() {
|
|
477
|
+
const params = {
|
|
478
|
+
$table: $xeTable,
|
|
479
|
+
$grid: $xeGrid,
|
|
480
|
+
$gantt: $xeGantt,
|
|
481
|
+
options: defaultOptions,
|
|
482
|
+
columns,
|
|
483
|
+
params: defaultOptions.params
|
|
484
|
+
};
|
|
485
|
+
return h("div", {
|
|
486
|
+
class: "vxe-table-export--panel-footer"
|
|
487
|
+
}, footerSlot ? $xeTable.callSlot(footerSlot, params) : [
|
|
488
|
+
h("div", {
|
|
489
|
+
class: "vxe-table-export--panel-btns"
|
|
490
|
+
}, [
|
|
491
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
492
|
+
content: getI18n("vxe.export.expCancel"),
|
|
493
|
+
onClick: cancelEvent
|
|
494
|
+
}) : renderEmptyElement($xeTable),
|
|
495
|
+
VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
496
|
+
ref: xButtonConfirm,
|
|
497
|
+
status: "primary",
|
|
498
|
+
content: getI18n(isPrint ? "vxe.export.expPrint" : "vxe.export.expConfirm"),
|
|
499
|
+
onClick: confirmEvent
|
|
500
|
+
}) : renderEmptyElement($xeTable)
|
|
501
|
+
])
|
|
502
|
+
]);
|
|
503
|
+
}
|
|
504
|
+
}) : renderEmptyElement($xeTable);
|
|
505
|
+
};
|
|
506
|
+
nextTick(() => {
|
|
507
|
+
if (!VxeUIModalComponent) {
|
|
508
|
+
errLog("vxe.error.reqComp", ["vxe-modal"]);
|
|
509
|
+
}
|
|
510
|
+
if (!VxeUIButtonComponent) {
|
|
511
|
+
errLog("vxe.error.reqComp", ["vxe-button"]);
|
|
512
|
+
}
|
|
513
|
+
if (!VxeUISelectComponent) {
|
|
514
|
+
errLog("vxe.error.reqComp", ["vxe-select"]);
|
|
515
|
+
}
|
|
516
|
+
if (!VxeUIInputComponent) {
|
|
517
|
+
errLog("vxe.error.reqComp", ["vxe-input"]);
|
|
518
|
+
}
|
|
519
|
+
if (!VxeUICheckboxComponent) {
|
|
520
|
+
errLog("vxe.error.reqComp", ["vxe-checkbox"]);
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
return renderVN;
|
|
524
|
+
}
|
|
580
525
|
});
|
|
526
|
+
export {
|
|
527
|
+
export_panel_default as default
|
|
528
|
+
};
|