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,29 +1,42 @@
|
|
|
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 toolbar_exports = {};
|
|
30
|
+
__export(toolbar_exports, {
|
|
31
|
+
default: () => toolbar_default
|
|
5
32
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const {
|
|
14
|
-
warnLog,
|
|
15
|
-
errLog
|
|
16
|
-
} = (0, _log.createComponentLog)('toolbar');
|
|
17
|
-
const {
|
|
18
|
-
getConfig,
|
|
19
|
-
getIcon,
|
|
20
|
-
getI18n,
|
|
21
|
-
renderer,
|
|
22
|
-
commands,
|
|
23
|
-
createEvent,
|
|
24
|
-
globalMixins,
|
|
25
|
-
renderEmptyElement
|
|
26
|
-
} = _ui.VxeUI;
|
|
33
|
+
module.exports = __toCommonJS(toolbar_exports);
|
|
34
|
+
var import_xe_utils = __toESM(require("xe-utils"));
|
|
35
|
+
var import_core = require("@vxe-ui/core");
|
|
36
|
+
var import_vn = require("../../ui/src/vn");
|
|
37
|
+
var import_log = require("../../ui/src/log");
|
|
38
|
+
const { warnLog, errLog } = (0, import_log.createComponentLog)("toolbar");
|
|
39
|
+
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, globalMixins, renderEmptyElement } = import_core.VxeUI;
|
|
27
40
|
function createReactData() {
|
|
28
41
|
return {
|
|
29
42
|
isRefresh: false,
|
|
@@ -36,8 +49,8 @@ function createInternalData() {
|
|
|
36
49
|
connectTable: null
|
|
37
50
|
};
|
|
38
51
|
}
|
|
39
|
-
var
|
|
40
|
-
name:
|
|
52
|
+
var toolbar_default = {
|
|
53
|
+
name: "VxeToolbar",
|
|
41
54
|
mixins: [globalMixins.sizeMixin],
|
|
42
55
|
props: {
|
|
43
56
|
loading: Boolean,
|
|
@@ -80,84 +93,78 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
80
93
|
}
|
|
81
94
|
},
|
|
82
95
|
data() {
|
|
83
|
-
const xID =
|
|
96
|
+
const xID = import_xe_utils.default.uniqueId();
|
|
84
97
|
const reactData = createReactData();
|
|
85
|
-
return
|
|
98
|
+
return {
|
|
99
|
+
...{},
|
|
86
100
|
xID,
|
|
87
101
|
reactData
|
|
88
|
-
}
|
|
102
|
+
};
|
|
89
103
|
},
|
|
90
|
-
computed:
|
|
104
|
+
computed: {
|
|
105
|
+
...{},
|
|
91
106
|
computeRefreshOpts() {
|
|
92
107
|
const $xeToolbar = this;
|
|
93
108
|
const props = $xeToolbar;
|
|
94
|
-
return Object.assign({},
|
|
109
|
+
return Object.assign({}, import_xe_utils.default.clone(getConfig().toolbar.refresh, true), props.refreshOptions, props.refresh);
|
|
95
110
|
},
|
|
96
111
|
computeImportOpts() {
|
|
97
112
|
const $xeToolbar = this;
|
|
98
113
|
const props = $xeToolbar;
|
|
99
|
-
return Object.assign({},
|
|
114
|
+
return Object.assign({}, import_xe_utils.default.clone(getConfig().toolbar.import, true), props.importOptions, props.import);
|
|
100
115
|
},
|
|
101
116
|
computeExportOpts() {
|
|
102
117
|
const $xeToolbar = this;
|
|
103
118
|
const props = $xeToolbar;
|
|
104
|
-
return Object.assign({},
|
|
119
|
+
return Object.assign({}, import_xe_utils.default.clone(getConfig().toolbar.export, true), props.exportOptions, props.export);
|
|
105
120
|
},
|
|
106
121
|
computePrintOpts() {
|
|
107
122
|
const $xeToolbar = this;
|
|
108
123
|
const props = $xeToolbar;
|
|
109
|
-
return Object.assign({},
|
|
124
|
+
return Object.assign({}, import_xe_utils.default.clone(getConfig().toolbar.print, true), props.printOptions, props.print);
|
|
110
125
|
},
|
|
111
126
|
computeZoomOpts() {
|
|
112
127
|
const $xeToolbar = this;
|
|
113
128
|
const props = $xeToolbar;
|
|
114
|
-
return Object.assign({},
|
|
129
|
+
return Object.assign({}, import_xe_utils.default.clone(getConfig().toolbar.zoom, true), props.zoomOptions, props.zoom);
|
|
115
130
|
},
|
|
116
131
|
computeCustomOpts() {
|
|
117
132
|
const $xeToolbar = this;
|
|
118
133
|
const props = $xeToolbar;
|
|
119
|
-
return Object.assign({},
|
|
134
|
+
return Object.assign({}, import_xe_utils.default.clone(getConfig().toolbar.custom, true), props.customOptions, props.custom);
|
|
120
135
|
},
|
|
121
136
|
computeTableCustomOpts() {
|
|
122
137
|
const $xeToolbar = this;
|
|
123
138
|
const reactData = $xeToolbar.reactData;
|
|
124
139
|
const internalData = $xeToolbar.internalData;
|
|
125
|
-
const {
|
|
126
|
-
connectTable
|
|
127
|
-
} = internalData;
|
|
140
|
+
const { connectTable } = internalData;
|
|
128
141
|
const $table = connectTable;
|
|
129
142
|
if (reactData.connectFlag || $table) {
|
|
130
143
|
if ($table) {
|
|
131
144
|
return $table.computeCustomOpts;
|
|
132
145
|
}
|
|
133
146
|
}
|
|
134
|
-
return {
|
|
135
|
-
trigger: ''
|
|
136
|
-
};
|
|
147
|
+
return { trigger: "" };
|
|
137
148
|
},
|
|
138
149
|
computeTrigger() {
|
|
139
150
|
const $xeToolbar = this;
|
|
140
151
|
const tableCustomOpts = $xeToolbar.computeTableCustomOpts;
|
|
141
152
|
return tableCustomOpts.trigger;
|
|
142
153
|
}
|
|
143
|
-
}
|
|
154
|
+
},
|
|
144
155
|
methods: {
|
|
145
156
|
//
|
|
146
157
|
// Method
|
|
147
158
|
//
|
|
148
159
|
dispatchEvent(type, params, evnt) {
|
|
149
160
|
const $xeToolbar = this;
|
|
150
|
-
$xeToolbar.$emit(type, createEvent(evnt, {
|
|
151
|
-
$toolbar: $xeToolbar
|
|
152
|
-
}, params));
|
|
161
|
+
$xeToolbar.$emit(type, createEvent(evnt, { $toolbar: $xeToolbar }, params));
|
|
153
162
|
},
|
|
154
163
|
fintTable() {
|
|
155
164
|
const $xeToolbar = this;
|
|
156
|
-
const {
|
|
157
|
-
$children
|
|
158
|
-
} = this.$parent;
|
|
165
|
+
const { $children } = this.$parent;
|
|
159
166
|
const selfIndex = $children.indexOf($xeToolbar);
|
|
160
|
-
return
|
|
167
|
+
return import_xe_utils.default.find($children, (comp, index) => comp && comp.loadData && index > selfIndex && comp.$vnode.componentOptions.tag === "vxe-table");
|
|
161
168
|
},
|
|
162
169
|
syncUpdate(params) {
|
|
163
170
|
const $xeToolbar = this;
|
|
@@ -170,23 +177,17 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
170
177
|
checkTable() {
|
|
171
178
|
const $xeToolbar = this;
|
|
172
179
|
const internalData = $xeToolbar.internalData;
|
|
173
|
-
const {
|
|
174
|
-
connectTable
|
|
175
|
-
} = internalData;
|
|
180
|
+
const { connectTable } = internalData;
|
|
176
181
|
const $table = connectTable;
|
|
177
182
|
if ($table) {
|
|
178
183
|
return true;
|
|
179
184
|
}
|
|
180
|
-
errLog(
|
|
185
|
+
errLog("vxe.error.barUnableLink");
|
|
181
186
|
},
|
|
182
|
-
handleClickSettingEvent({
|
|
183
|
-
$event
|
|
184
|
-
}) {
|
|
187
|
+
handleClickSettingEvent({ $event }) {
|
|
185
188
|
const $xeToolbar = this;
|
|
186
189
|
const internalData = $xeToolbar.internalData;
|
|
187
|
-
const {
|
|
188
|
-
connectTable
|
|
189
|
-
} = internalData;
|
|
190
|
+
const { connectTable } = internalData;
|
|
190
191
|
const $table = connectTable;
|
|
191
192
|
if ($table) {
|
|
192
193
|
if ($table.triggerCustomEvent) {
|
|
@@ -194,32 +195,22 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
194
195
|
}
|
|
195
196
|
}
|
|
196
197
|
},
|
|
197
|
-
handleMouseenterSettingEvent({
|
|
198
|
-
$event
|
|
199
|
-
}) {
|
|
198
|
+
handleMouseenterSettingEvent({ $event }) {
|
|
200
199
|
const $xeToolbar = this;
|
|
201
200
|
const internalData = $xeToolbar.internalData;
|
|
202
|
-
const {
|
|
203
|
-
connectTable
|
|
204
|
-
} = internalData;
|
|
201
|
+
const { connectTable } = internalData;
|
|
205
202
|
const $table = connectTable;
|
|
206
203
|
if ($table) {
|
|
207
204
|
$table.customOpenEvent($event);
|
|
208
205
|
}
|
|
209
206
|
},
|
|
210
|
-
handleMouseleaveSettingEvent({
|
|
211
|
-
$event
|
|
212
|
-
}) {
|
|
207
|
+
handleMouseleaveSettingEvent({ $event }) {
|
|
213
208
|
const $xeToolbar = this;
|
|
214
209
|
const internalData = $xeToolbar.internalData;
|
|
215
|
-
const {
|
|
216
|
-
connectTable
|
|
217
|
-
} = internalData;
|
|
210
|
+
const { connectTable } = internalData;
|
|
218
211
|
const $table = connectTable;
|
|
219
212
|
if ($table) {
|
|
220
|
-
const {
|
|
221
|
-
customStore
|
|
222
|
-
} = $table.reactData;
|
|
213
|
+
const { customStore } = $table.reactData;
|
|
223
214
|
customStore.activeBtn = false;
|
|
224
215
|
setTimeout(() => {
|
|
225
216
|
if (!customStore.activeBtn && !customStore.activeWrapper) {
|
|
@@ -228,24 +219,20 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
228
219
|
}, 350);
|
|
229
220
|
}
|
|
230
221
|
},
|
|
231
|
-
refreshEvent({
|
|
232
|
-
$event
|
|
233
|
-
}) {
|
|
222
|
+
refreshEvent({ $event }) {
|
|
234
223
|
const $xeToolbar = this;
|
|
235
224
|
const reactData = $xeToolbar.reactData;
|
|
236
225
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
237
226
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
238
227
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
239
|
-
const {
|
|
240
|
-
isRefresh
|
|
241
|
-
} = reactData;
|
|
228
|
+
const { isRefresh } = reactData;
|
|
242
229
|
const refreshOpts = $xeToolbar.computeRefreshOpts;
|
|
243
230
|
if (!isRefresh) {
|
|
244
231
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
245
232
|
if (queryMethod) {
|
|
246
233
|
reactData.isRefresh = true;
|
|
247
234
|
try {
|
|
248
|
-
Promise.resolve(queryMethod({})).catch(e => e).then(() => {
|
|
235
|
+
Promise.resolve(queryMethod({})).catch((e) => e).then(() => {
|
|
249
236
|
reactData.isRefresh = false;
|
|
250
237
|
});
|
|
251
238
|
} catch (e) {
|
|
@@ -253,17 +240,14 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
253
240
|
}
|
|
254
241
|
} else if ($xeGGWrapper) {
|
|
255
242
|
reactData.isRefresh = true;
|
|
256
|
-
$xeGGWrapper.triggerToolbarCommitEvent({
|
|
257
|
-
|
|
258
|
-
}, $event).catch(() => {}).then(() => {
|
|
243
|
+
$xeGGWrapper.triggerToolbarCommitEvent({ code: refreshOpts.code || "reload" }, $event).catch(() => {
|
|
244
|
+
}).then(() => {
|
|
259
245
|
reactData.isRefresh = false;
|
|
260
246
|
});
|
|
261
247
|
}
|
|
262
248
|
}
|
|
263
249
|
},
|
|
264
|
-
zoomEvent({
|
|
265
|
-
$event
|
|
266
|
-
}) {
|
|
250
|
+
zoomEvent({ $event }) {
|
|
267
251
|
const $xeToolbar = this;
|
|
268
252
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
269
253
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
@@ -271,16 +255,14 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
271
255
|
if ($xeGGWrapper) {
|
|
272
256
|
$xeGGWrapper.triggerZoomEvent($event);
|
|
273
257
|
} else {
|
|
274
|
-
warnLog(
|
|
258
|
+
warnLog("vxe.error.notProp", ["zoom"]);
|
|
275
259
|
}
|
|
276
260
|
},
|
|
277
261
|
importEvent() {
|
|
278
262
|
const $xeToolbar = this;
|
|
279
263
|
const internalData = $xeToolbar.internalData;
|
|
280
264
|
if ($xeToolbar.checkTable()) {
|
|
281
|
-
const {
|
|
282
|
-
connectTable
|
|
283
|
-
} = internalData;
|
|
265
|
+
const { connectTable } = internalData;
|
|
284
266
|
const $table = connectTable;
|
|
285
267
|
if ($table) {
|
|
286
268
|
$table.importData();
|
|
@@ -291,9 +273,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
291
273
|
const $xeToolbar = this;
|
|
292
274
|
const internalData = $xeToolbar.internalData;
|
|
293
275
|
if ($xeToolbar.checkTable()) {
|
|
294
|
-
const {
|
|
295
|
-
connectTable
|
|
296
|
-
} = internalData;
|
|
276
|
+
const { connectTable } = internalData;
|
|
297
277
|
const $table = connectTable;
|
|
298
278
|
if ($table) {
|
|
299
279
|
$table.openImport();
|
|
@@ -304,9 +284,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
304
284
|
const $xeToolbar = this;
|
|
305
285
|
const internalData = $xeToolbar.internalData;
|
|
306
286
|
if ($xeToolbar.checkTable()) {
|
|
307
|
-
const {
|
|
308
|
-
connectTable
|
|
309
|
-
} = internalData;
|
|
287
|
+
const { connectTable } = internalData;
|
|
310
288
|
const $table = connectTable;
|
|
311
289
|
if ($table) {
|
|
312
290
|
$table.exportData();
|
|
@@ -317,9 +295,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
317
295
|
const $xeToolbar = this;
|
|
318
296
|
const internalData = $xeToolbar.internalData;
|
|
319
297
|
if ($xeToolbar.checkTable()) {
|
|
320
|
-
const {
|
|
321
|
-
connectTable
|
|
322
|
-
} = internalData;
|
|
298
|
+
const { connectTable } = internalData;
|
|
323
299
|
const $table = connectTable;
|
|
324
300
|
if ($table) {
|
|
325
301
|
$table.openExport();
|
|
@@ -330,9 +306,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
330
306
|
const $xeToolbar = this;
|
|
331
307
|
const internalData = $xeToolbar.internalData;
|
|
332
308
|
if ($xeToolbar.checkTable()) {
|
|
333
|
-
const {
|
|
334
|
-
connectTable
|
|
335
|
-
} = internalData;
|
|
309
|
+
const { connectTable } = internalData;
|
|
336
310
|
const $table = connectTable;
|
|
337
311
|
if ($table) {
|
|
338
312
|
$table.print();
|
|
@@ -343,9 +317,7 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
343
317
|
const $xeToolbar = this;
|
|
344
318
|
const internalData = $xeToolbar.internalData;
|
|
345
319
|
if ($xeToolbar.checkTable()) {
|
|
346
|
-
const {
|
|
347
|
-
connectTable
|
|
348
|
-
} = internalData;
|
|
320
|
+
const { connectTable } = internalData;
|
|
349
321
|
const $table = connectTable;
|
|
350
322
|
if ($table) {
|
|
351
323
|
$table.openPrint();
|
|
@@ -355,31 +327,31 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
355
327
|
handleDefaultCodeEvent(eventParams, item, cb) {
|
|
356
328
|
const $xeToolbar = this;
|
|
357
329
|
switch (item.code) {
|
|
358
|
-
case
|
|
330
|
+
case "print":
|
|
359
331
|
$xeToolbar.printEvent();
|
|
360
332
|
break;
|
|
361
|
-
case
|
|
333
|
+
case "open_print":
|
|
362
334
|
$xeToolbar.openPrintEvent();
|
|
363
335
|
break;
|
|
364
|
-
case
|
|
336
|
+
case "custom":
|
|
365
337
|
$xeToolbar.handleClickSettingEvent(eventParams);
|
|
366
338
|
break;
|
|
367
|
-
case
|
|
339
|
+
case "export":
|
|
368
340
|
$xeToolbar.exportEvent();
|
|
369
341
|
break;
|
|
370
|
-
case
|
|
342
|
+
case "open_export":
|
|
371
343
|
$xeToolbar.openExportEvent();
|
|
372
344
|
break;
|
|
373
|
-
case
|
|
345
|
+
case "import":
|
|
374
346
|
$xeToolbar.importEvent();
|
|
375
347
|
break;
|
|
376
|
-
case
|
|
348
|
+
case "open_import":
|
|
377
349
|
$xeToolbar.openImportEvent();
|
|
378
350
|
break;
|
|
379
|
-
case
|
|
351
|
+
case "zoom":
|
|
380
352
|
$xeToolbar.zoomEvent(eventParams);
|
|
381
353
|
break;
|
|
382
|
-
case
|
|
354
|
+
case "refresh":
|
|
383
355
|
$xeToolbar.refreshEvent(eventParams);
|
|
384
356
|
break;
|
|
385
357
|
default:
|
|
@@ -393,39 +365,26 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
393
365
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
394
366
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
395
367
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
396
|
-
const {
|
|
397
|
-
|
|
398
|
-
} = eventParams;
|
|
399
|
-
const {
|
|
400
|
-
connectTable
|
|
401
|
-
} = internalData;
|
|
368
|
+
const { $event } = eventParams;
|
|
369
|
+
const { connectTable } = internalData;
|
|
402
370
|
const $table = connectTable;
|
|
403
|
-
const {
|
|
404
|
-
code
|
|
405
|
-
} = item;
|
|
371
|
+
const { code } = item;
|
|
406
372
|
if (code) {
|
|
407
373
|
$xeToolbar.handleDefaultCodeEvent(eventParams, item, () => {
|
|
408
374
|
if ($xeGGWrapper) {
|
|
409
375
|
$xeGGWrapper.triggerToolbarBtnEvent(item, $event);
|
|
410
376
|
} else {
|
|
411
377
|
const gCommandOpts = commands.get(code);
|
|
412
|
-
const params = {
|
|
413
|
-
code,
|
|
414
|
-
button: item,
|
|
415
|
-
$table: $table,
|
|
416
|
-
$grid: $xeGrid,
|
|
417
|
-
$gantt: $xeGantt,
|
|
418
|
-
$event
|
|
419
|
-
};
|
|
378
|
+
const params = { code, button: item, $table, $grid: $xeGrid, $gantt: $xeGantt, $event };
|
|
420
379
|
if (gCommandOpts) {
|
|
421
380
|
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
422
381
|
if (tCommandMethod) {
|
|
423
382
|
tCommandMethod(params);
|
|
424
383
|
} else {
|
|
425
|
-
errLog(
|
|
384
|
+
errLog("vxe.error.notCommands", [code]);
|
|
426
385
|
}
|
|
427
386
|
}
|
|
428
|
-
$xeToolbar.dispatchEvent(
|
|
387
|
+
$xeToolbar.dispatchEvent("button-click", params, $event);
|
|
429
388
|
}
|
|
430
389
|
});
|
|
431
390
|
}
|
|
@@ -436,40 +395,26 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
436
395
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
437
396
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
438
397
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
439
|
-
const {
|
|
440
|
-
|
|
441
|
-
} = eventParams;
|
|
442
|
-
const {
|
|
443
|
-
connectTable
|
|
444
|
-
} = internalData;
|
|
398
|
+
const { $event } = eventParams;
|
|
399
|
+
const { connectTable } = internalData;
|
|
445
400
|
const $table = connectTable;
|
|
446
|
-
const {
|
|
447
|
-
code
|
|
448
|
-
} = item;
|
|
401
|
+
const { code } = item;
|
|
449
402
|
if (code) {
|
|
450
403
|
$xeToolbar.handleDefaultCodeEvent(eventParams, item, () => {
|
|
451
404
|
if ($xeGGWrapper) {
|
|
452
405
|
$xeGGWrapper.triggerToolbarTolEvent(item, $event);
|
|
453
406
|
} else {
|
|
454
407
|
const gCommandOpts = commands.get(code);
|
|
455
|
-
const params = {
|
|
456
|
-
code,
|
|
457
|
-
button: null,
|
|
458
|
-
tool: item,
|
|
459
|
-
$table: $table,
|
|
460
|
-
$grid: $xeGrid,
|
|
461
|
-
$gantt: $xeGantt,
|
|
462
|
-
$event
|
|
463
|
-
};
|
|
408
|
+
const params = { code, button: null, tool: item, $table, $grid: $xeGrid, $gantt: $xeGantt, $event };
|
|
464
409
|
if (gCommandOpts) {
|
|
465
410
|
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod;
|
|
466
411
|
if (tCommandMethod) {
|
|
467
412
|
tCommandMethod(params);
|
|
468
413
|
} else {
|
|
469
|
-
errLog(
|
|
414
|
+
errLog("vxe.error.notCommands", [code]);
|
|
470
415
|
}
|
|
471
416
|
}
|
|
472
|
-
$xeToolbar.dispatchEvent(
|
|
417
|
+
$xeToolbar.dispatchEvent("tool-click", params, $event);
|
|
473
418
|
}
|
|
474
419
|
});
|
|
475
420
|
}
|
|
@@ -478,12 +423,9 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
478
423
|
// Render
|
|
479
424
|
//
|
|
480
425
|
renderDropdowns(h, item, isBtn) {
|
|
481
|
-
|
|
482
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
426
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
483
427
|
const $xeToolbar = this;
|
|
484
|
-
const {
|
|
485
|
-
dropdowns
|
|
486
|
-
} = item;
|
|
428
|
+
const { dropdowns } = item;
|
|
487
429
|
const downVNs = [];
|
|
488
430
|
if (dropdowns) {
|
|
489
431
|
return dropdowns.map((child, index) => {
|
|
@@ -494,10 +436,10 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
494
436
|
key: index,
|
|
495
437
|
props: Object.assign({}, child, {
|
|
496
438
|
content: child.content || child.name,
|
|
497
|
-
options:
|
|
439
|
+
options: void 0
|
|
498
440
|
}),
|
|
499
441
|
on: {
|
|
500
|
-
click: eventParams => isBtn ? $xeToolbar.btnEvent(eventParams, child) : $xeToolbar.tolEvent(eventParams, child)
|
|
442
|
+
click: (eventParams) => isBtn ? $xeToolbar.btnEvent(eventParams, child) : $xeToolbar.tolEvent(eventParams, child)
|
|
501
443
|
}
|
|
502
444
|
}) : renderEmptyElement($xeToolbar);
|
|
503
445
|
});
|
|
@@ -508,185 +450,176 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
508
450
|
* 渲染按钮
|
|
509
451
|
*/
|
|
510
452
|
renderLeftBtns(h) {
|
|
511
|
-
|
|
512
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
453
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
513
454
|
const $xeToolbar = this;
|
|
514
455
|
const props = $xeToolbar;
|
|
515
456
|
const slots = $xeToolbar.$scopedSlots;
|
|
516
457
|
const internalData = $xeToolbar.internalData;
|
|
517
458
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
518
459
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
519
|
-
const {
|
|
520
|
-
|
|
521
|
-
} = props;
|
|
522
|
-
const {
|
|
523
|
-
connectTable
|
|
524
|
-
} = internalData;
|
|
460
|
+
const { buttons } = props;
|
|
461
|
+
const { connectTable } = internalData;
|
|
525
462
|
const $table = connectTable;
|
|
526
463
|
const buttonsSlot = slots.buttons;
|
|
527
|
-
const buttonPrefixSlot = slots.buttonPrefix || slots[
|
|
528
|
-
const buttonSuffixSlot = slots.buttonSuffix || slots[
|
|
464
|
+
const buttonPrefixSlot = slots.buttonPrefix || slots["button-prefix"];
|
|
465
|
+
const buttonSuffixSlot = slots.buttonSuffix || slots["button-suffix"];
|
|
529
466
|
const btnVNs = [];
|
|
530
467
|
if (buttons) {
|
|
531
468
|
const rendererOpts = ($table ? $table.computeRendererOpts : null) || {};
|
|
532
|
-
buttons.forEach(item => {
|
|
533
|
-
const {
|
|
534
|
-
dropdowns,
|
|
535
|
-
buttonRender
|
|
536
|
-
} = item;
|
|
469
|
+
buttons.forEach((item) => {
|
|
470
|
+
const { dropdowns, buttonRender } = item;
|
|
537
471
|
if (item.visible !== false) {
|
|
538
472
|
const compConf = buttonRender && buttonRender.name ? rendererOpts[buttonRender.name] || renderer.get(buttonRender.name) : null;
|
|
539
473
|
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
540
474
|
const toolbarButtonClassName = compConf.toolbarButtonClassName;
|
|
541
|
-
const params = {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
475
|
+
const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, button: item };
|
|
476
|
+
btnVNs.push(
|
|
477
|
+
h(
|
|
478
|
+
"span",
|
|
479
|
+
{
|
|
480
|
+
class: ["vxe-button--item", toolbarButtonClassName ? import_xe_utils.default.isFunction(toolbarButtonClassName) ? toolbarButtonClassName(params) : toolbarButtonClassName : ""]
|
|
481
|
+
},
|
|
482
|
+
(0, import_vn.getSlotVNs)(compConf.renderToolbarButton(h, buttonRender, params))
|
|
483
|
+
)
|
|
484
|
+
);
|
|
550
485
|
} else {
|
|
551
486
|
if (VxeUIButtonComponent) {
|
|
552
|
-
btnVNs.push(
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
487
|
+
btnVNs.push(
|
|
488
|
+
h(VxeUIButtonComponent, {
|
|
489
|
+
props: Object.assign({}, item, {
|
|
490
|
+
content: item.content || item.name,
|
|
491
|
+
options: void 0
|
|
492
|
+
}),
|
|
493
|
+
on: {
|
|
494
|
+
click: (eventParams) => $xeToolbar.btnEvent(eventParams, item)
|
|
495
|
+
},
|
|
496
|
+
scopedSlots: dropdowns && dropdowns.length ? {
|
|
497
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, true)
|
|
498
|
+
} : {}
|
|
499
|
+
})
|
|
500
|
+
);
|
|
564
501
|
}
|
|
565
502
|
}
|
|
566
503
|
}
|
|
567
504
|
});
|
|
568
505
|
}
|
|
569
|
-
return [
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
506
|
+
return [
|
|
507
|
+
h(
|
|
508
|
+
"div",
|
|
509
|
+
{
|
|
510
|
+
class: "vxe-button--prefix-wrapper"
|
|
511
|
+
},
|
|
512
|
+
buttonPrefixSlot ? (0, import_vn.getSlotVNs)(buttonPrefixSlot.call($xeToolbar, { buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
513
|
+
),
|
|
514
|
+
h(
|
|
515
|
+
"div",
|
|
516
|
+
{
|
|
517
|
+
class: "vxe-button--item-wrapper"
|
|
518
|
+
},
|
|
519
|
+
buttonsSlot ? (0, import_vn.getSlotVNs)(buttonsSlot.call($xeToolbar, { buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
|
|
520
|
+
),
|
|
521
|
+
h(
|
|
522
|
+
"div",
|
|
523
|
+
{
|
|
524
|
+
class: "vxe-button--suffix-wrapper"
|
|
525
|
+
},
|
|
526
|
+
buttonSuffixSlot ? (0, import_vn.getSlotVNs)(buttonSuffixSlot.call($xeToolbar, { buttons: buttons || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
527
|
+
)
|
|
528
|
+
];
|
|
591
529
|
},
|
|
592
530
|
/**
|
|
593
531
|
* 渲染右侧工具
|
|
594
532
|
*/
|
|
595
533
|
renderRightTools(h) {
|
|
596
|
-
|
|
597
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
534
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
598
535
|
const $xeToolbar = this;
|
|
599
536
|
const props = $xeToolbar;
|
|
600
537
|
const slots = $xeToolbar.$scopedSlots;
|
|
601
538
|
const internalData = $xeToolbar.internalData;
|
|
602
539
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
603
540
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
604
|
-
const {
|
|
605
|
-
|
|
606
|
-
} = props;
|
|
607
|
-
const {
|
|
608
|
-
connectTable
|
|
609
|
-
} = internalData;
|
|
541
|
+
const { tools } = props;
|
|
542
|
+
const { connectTable } = internalData;
|
|
610
543
|
const $table = connectTable;
|
|
611
544
|
const toolsSlot = slots.tools;
|
|
612
|
-
const toolPrefixSlot = slots.toolPrefix || slots[
|
|
613
|
-
const toolSuffixSlot = slots.toolSuffix || slots[
|
|
545
|
+
const toolPrefixSlot = slots.toolPrefix || slots["tool-prefix"];
|
|
546
|
+
const toolSuffixSlot = slots.toolSuffix || slots["tool-suffix"];
|
|
614
547
|
const btnVNs = [];
|
|
615
548
|
if (tools) {
|
|
616
549
|
const rendererOpts = ($table ? $table.computeRendererOpts : null) || {};
|
|
617
550
|
tools.forEach((item, tIndex) => {
|
|
618
|
-
const {
|
|
619
|
-
dropdowns,
|
|
620
|
-
toolRender
|
|
621
|
-
} = item;
|
|
551
|
+
const { dropdowns, toolRender } = item;
|
|
622
552
|
if (item.visible !== false) {
|
|
623
553
|
const compConf = toolRender && toolRender.name ? rendererOpts[toolRender.name] || renderer.get(toolRender.name) : null;
|
|
624
554
|
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
625
555
|
const toolbarToolClassName = compConf.toolbarToolClassName;
|
|
626
|
-
const params = {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
556
|
+
const params = { $grid: $xeGrid, $gantt: $xeGantt, $table, tool: item };
|
|
557
|
+
btnVNs.push(
|
|
558
|
+
h(
|
|
559
|
+
"span",
|
|
560
|
+
{
|
|
561
|
+
key: tIndex,
|
|
562
|
+
class: ["vxe-tool--item", toolbarToolClassName ? import_xe_utils.default.isFunction(toolbarToolClassName) ? toolbarToolClassName(params) : toolbarToolClassName : ""]
|
|
563
|
+
},
|
|
564
|
+
(0, import_vn.getSlotVNs)(compConf.renderToolbarTool(h, toolRender, params))
|
|
565
|
+
)
|
|
566
|
+
);
|
|
636
567
|
} else {
|
|
637
568
|
if (VxeUIButtonComponent) {
|
|
638
|
-
btnVNs.push(
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
569
|
+
btnVNs.push(
|
|
570
|
+
h(VxeUIButtonComponent, {
|
|
571
|
+
key: tIndex,
|
|
572
|
+
props: Object.assign({}, item, {
|
|
573
|
+
content: item.content || item.name,
|
|
574
|
+
options: void 0
|
|
575
|
+
}),
|
|
576
|
+
on: {
|
|
577
|
+
click: (eventParams) => $xeToolbar.tolEvent(eventParams, item)
|
|
578
|
+
},
|
|
579
|
+
scopedSlots: dropdowns && dropdowns.length ? {
|
|
580
|
+
dropdowns: () => $xeToolbar.renderDropdowns(h, item, false)
|
|
581
|
+
} : {}
|
|
582
|
+
})
|
|
583
|
+
);
|
|
651
584
|
}
|
|
652
585
|
}
|
|
653
586
|
}
|
|
654
587
|
});
|
|
655
588
|
}
|
|
656
|
-
return [
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
589
|
+
return [
|
|
590
|
+
h(
|
|
591
|
+
"div",
|
|
592
|
+
{
|
|
593
|
+
class: "vxe-tool--prefix-wrapper"
|
|
594
|
+
},
|
|
595
|
+
toolPrefixSlot ? (0, import_vn.getSlotVNs)(toolPrefixSlot.call($xeToolbar, { tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
596
|
+
),
|
|
597
|
+
h(
|
|
598
|
+
"div",
|
|
599
|
+
{
|
|
600
|
+
class: "vxe-tool--item-wrapper"
|
|
601
|
+
},
|
|
602
|
+
toolsSlot ? (0, import_vn.getSlotVNs)(toolsSlot.call($xeToolbar, { tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : btnVNs
|
|
603
|
+
),
|
|
604
|
+
h(
|
|
605
|
+
"div",
|
|
606
|
+
{
|
|
607
|
+
class: "vxe-tool--suffix-wrapper"
|
|
608
|
+
},
|
|
609
|
+
toolSuffixSlot ? (0, import_vn.getSlotVNs)(toolSuffixSlot.call($xeToolbar, { tools: tools || [], $grid: $xeGrid, $gantt: $xeGantt, $table })) : []
|
|
610
|
+
)
|
|
611
|
+
];
|
|
678
612
|
},
|
|
679
613
|
renderToolImport(h) {
|
|
680
|
-
|
|
681
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
614
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
682
615
|
const $xeToolbar = this;
|
|
683
616
|
const importOpts = $xeToolbar.computeImportOpts;
|
|
684
617
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
685
|
-
key:
|
|
618
|
+
key: "import",
|
|
686
619
|
props: {
|
|
687
620
|
circle: true,
|
|
688
621
|
icon: importOpts.icon || getIcon().TOOLBAR_TOOLS_IMPORT,
|
|
689
|
-
title: getI18n(
|
|
622
|
+
title: getI18n("vxe.toolbar.import")
|
|
690
623
|
},
|
|
691
624
|
on: {
|
|
692
625
|
click: $xeToolbar.openImportEvent
|
|
@@ -694,16 +627,15 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
694
627
|
}) : renderEmptyElement($xeToolbar);
|
|
695
628
|
},
|
|
696
629
|
renderToolExport(h) {
|
|
697
|
-
|
|
698
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
630
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
699
631
|
const $xeToolbar = this;
|
|
700
632
|
const exportOpts = $xeToolbar.computeExportOpts;
|
|
701
633
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
702
|
-
key:
|
|
634
|
+
key: "export",
|
|
703
635
|
props: {
|
|
704
636
|
circle: true,
|
|
705
637
|
icon: exportOpts.icon || getIcon().TOOLBAR_TOOLS_EXPORT,
|
|
706
|
-
title: getI18n(
|
|
638
|
+
title: getI18n("vxe.toolbar.export")
|
|
707
639
|
},
|
|
708
640
|
on: {
|
|
709
641
|
click: $xeToolbar.openExportEvent
|
|
@@ -711,16 +643,15 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
711
643
|
}) : renderEmptyElement($xeToolbar);
|
|
712
644
|
},
|
|
713
645
|
renderToolPrint(h) {
|
|
714
|
-
|
|
715
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
646
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
716
647
|
const $xeToolbar = this;
|
|
717
648
|
const printOpts = $xeToolbar.computePrintOpts;
|
|
718
649
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
719
|
-
key:
|
|
650
|
+
key: "print",
|
|
720
651
|
props: {
|
|
721
652
|
circle: true,
|
|
722
653
|
icon: printOpts.icon || getIcon().TOOLBAR_TOOLS_PRINT,
|
|
723
|
-
title: getI18n(
|
|
654
|
+
title: getI18n("vxe.toolbar.print")
|
|
724
655
|
},
|
|
725
656
|
on: {
|
|
726
657
|
click: $xeToolbar.openPrintEvent
|
|
@@ -728,17 +659,16 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
728
659
|
}) : renderEmptyElement($xeToolbar);
|
|
729
660
|
},
|
|
730
661
|
renderToolRefresh(h) {
|
|
731
|
-
|
|
732
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
662
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
733
663
|
const $xeToolbar = this;
|
|
734
664
|
const reactData = $xeToolbar.reactData;
|
|
735
665
|
const refreshOpts = $xeToolbar.computeRefreshOpts;
|
|
736
666
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
737
|
-
key:
|
|
667
|
+
key: "refresh",
|
|
738
668
|
props: {
|
|
739
669
|
circle: true,
|
|
740
670
|
icon: reactData.isRefresh ? refreshOpts.iconLoading || getIcon().TOOLBAR_TOOLS_REFRESH_LOADING : refreshOpts.icon || getIcon().TOOLBAR_TOOLS_REFRESH,
|
|
741
|
-
title: getI18n(
|
|
671
|
+
title: getI18n("vxe.toolbar.refresh")
|
|
742
672
|
},
|
|
743
673
|
on: {
|
|
744
674
|
click: $xeToolbar.refreshEvent
|
|
@@ -746,19 +676,18 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
746
676
|
}) : renderEmptyElement($xeToolbar);
|
|
747
677
|
},
|
|
748
678
|
renderToolZoom(h) {
|
|
749
|
-
|
|
750
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
679
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
751
680
|
const $xeToolbar = this;
|
|
752
681
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
753
682
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
754
683
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
755
684
|
const zoomOpts = $xeToolbar.computeZoomOpts;
|
|
756
685
|
return $xeGGWrapper && VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
757
|
-
key:
|
|
686
|
+
key: "zoom",
|
|
758
687
|
props: {
|
|
759
688
|
circle: true,
|
|
760
689
|
icon: $xeGGWrapper.isMaximized() ? zoomOpts.iconOut || getIcon().TOOLBAR_TOOLS_MINIMIZE : zoomOpts.iconIn || getIcon().TOOLBAR_TOOLS_FULLSCREEN,
|
|
761
|
-
title: getI18n(`vxe.toolbar.zoom${$xeGGWrapper.isMaximized() ?
|
|
690
|
+
title: getI18n(`vxe.toolbar.zoom${$xeGGWrapper.isMaximized() ? "Out" : "In"}`)
|
|
762
691
|
},
|
|
763
692
|
on: {
|
|
764
693
|
click: $xeToolbar.zoomEvent
|
|
@@ -766,29 +695,25 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
766
695
|
}) : renderEmptyElement($xeToolbar);
|
|
767
696
|
},
|
|
768
697
|
renderToolCustom(h) {
|
|
769
|
-
|
|
770
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
698
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
771
699
|
const $xeToolbar = this;
|
|
772
700
|
const customOpts = $xeToolbar.computeCustomOpts;
|
|
773
701
|
const btnTrigger = $xeToolbar.computeTrigger;
|
|
774
702
|
const customBtnOns = {};
|
|
775
|
-
if (btnTrigger ===
|
|
776
|
-
|
|
777
|
-
} else if (btnTrigger === 'hover') {
|
|
778
|
-
// hover 触发
|
|
703
|
+
if (btnTrigger === "manual") {
|
|
704
|
+
} else if (btnTrigger === "hover") {
|
|
779
705
|
customBtnOns.mouseenter = $xeToolbar.handleMouseenterSettingEvent;
|
|
780
706
|
customBtnOns.mouseleave = $xeToolbar.handleMouseleaveSettingEvent;
|
|
781
707
|
} else {
|
|
782
|
-
// 点击触发
|
|
783
708
|
customBtnOns.click = $xeToolbar.handleClickSettingEvent;
|
|
784
709
|
}
|
|
785
710
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
786
|
-
key:
|
|
711
|
+
key: "custom",
|
|
787
712
|
props: {
|
|
788
713
|
circle: true,
|
|
789
714
|
icon: customOpts.icon || getIcon().TOOLBAR_TOOLS_CUSTOM,
|
|
790
|
-
title: getI18n(
|
|
791
|
-
className:
|
|
715
|
+
title: getI18n("vxe.toolbar.custom"),
|
|
716
|
+
className: "vxe-toolbar-custom-target"
|
|
792
717
|
},
|
|
793
718
|
on: customBtnOns
|
|
794
719
|
}) : renderEmptyElement($xeToolbar);
|
|
@@ -799,31 +724,53 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
799
724
|
const $xeGrid = $xeToolbar.$xeGrid;
|
|
800
725
|
const $xeGantt = $xeToolbar.$xeGantt;
|
|
801
726
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
802
|
-
const {
|
|
803
|
-
perfect,
|
|
804
|
-
loading,
|
|
805
|
-
refresh,
|
|
806
|
-
zoom,
|
|
807
|
-
custom,
|
|
808
|
-
className
|
|
809
|
-
} = props;
|
|
727
|
+
const { perfect, loading, refresh, zoom, custom, className } = props;
|
|
810
728
|
const vSize = $xeToolbar.computeSize;
|
|
811
|
-
return h(
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
729
|
+
return h(
|
|
730
|
+
"div",
|
|
731
|
+
{
|
|
732
|
+
ref: "refElem",
|
|
733
|
+
class: [
|
|
734
|
+
"vxe-toolbar",
|
|
735
|
+
className ? import_xe_utils.default.isFunction(className) ? className({ $toolbar: $xeToolbar }) : className : "",
|
|
736
|
+
{
|
|
737
|
+
[`size--${vSize}`]: vSize,
|
|
738
|
+
"is--perfect": perfect,
|
|
739
|
+
"is--loading": loading
|
|
740
|
+
}
|
|
741
|
+
]
|
|
742
|
+
},
|
|
743
|
+
[
|
|
744
|
+
h(
|
|
745
|
+
"div",
|
|
746
|
+
{
|
|
747
|
+
class: "vxe-buttons--wrapper"
|
|
748
|
+
},
|
|
749
|
+
$xeToolbar.renderLeftBtns(h)
|
|
750
|
+
),
|
|
751
|
+
h(
|
|
752
|
+
"div",
|
|
753
|
+
{
|
|
754
|
+
class: "vxe-tools--wrapper"
|
|
755
|
+
},
|
|
756
|
+
$xeToolbar.renderRightTools(h)
|
|
757
|
+
),
|
|
758
|
+
h(
|
|
759
|
+
"div",
|
|
760
|
+
{
|
|
761
|
+
class: "vxe-tools--operate"
|
|
762
|
+
},
|
|
763
|
+
[
|
|
764
|
+
props.import ? $xeToolbar.renderToolImport(h) : renderEmptyElement($xeToolbar),
|
|
765
|
+
props.export ? $xeToolbar.renderToolExport(h) : renderEmptyElement($xeToolbar),
|
|
766
|
+
props.print ? $xeToolbar.renderToolPrint(h) : renderEmptyElement($xeToolbar),
|
|
767
|
+
refresh ? $xeToolbar.renderToolRefresh(h) : renderEmptyElement($xeToolbar),
|
|
768
|
+
zoom && $xeGGWrapper ? $xeToolbar.renderToolZoom(h) : renderEmptyElement($xeToolbar),
|
|
769
|
+
custom ? $xeToolbar.renderToolCustom(h) : renderEmptyElement($xeToolbar)
|
|
770
|
+
]
|
|
771
|
+
)
|
|
772
|
+
]
|
|
773
|
+
);
|
|
827
774
|
}
|
|
828
775
|
},
|
|
829
776
|
created() {
|
|
@@ -838,48 +785,47 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
838
785
|
const $xeTable = $xeToolbar.fintTable();
|
|
839
786
|
const queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
840
787
|
if (props.refresh && !$xeGGWrapper && !queryMethod) {
|
|
841
|
-
warnLog(
|
|
788
|
+
warnLog("vxe.error.notFunc", ["queryMethod"]);
|
|
842
789
|
}
|
|
843
|
-
if (
|
|
844
|
-
warnLog(
|
|
790
|
+
if (import_xe_utils.default.isPlainObject(props.custom)) {
|
|
791
|
+
warnLog("vxe.error.delProp", ["custom={...}", "custom=boolean & custom-options={...}"]);
|
|
845
792
|
}
|
|
846
|
-
if (
|
|
847
|
-
warnLog(
|
|
793
|
+
if (import_xe_utils.default.isPlainObject(props.print)) {
|
|
794
|
+
warnLog("vxe.error.delProp", ["print={...}", "print=boolean & print-options={...}"]);
|
|
848
795
|
}
|
|
849
|
-
if (
|
|
850
|
-
warnLog(
|
|
796
|
+
if (import_xe_utils.default.isPlainObject(props.export)) {
|
|
797
|
+
warnLog("vxe.error.delProp", ["export={...}", "export=boolean & export-options={...}"]);
|
|
851
798
|
}
|
|
852
|
-
if (
|
|
853
|
-
warnLog(
|
|
799
|
+
if (import_xe_utils.default.isPlainObject(props.import)) {
|
|
800
|
+
warnLog("vxe.error.delProp", ["import={...}", "import=boolean & import-options={...}"]);
|
|
854
801
|
}
|
|
855
|
-
if (
|
|
856
|
-
warnLog(
|
|
802
|
+
if (import_xe_utils.default.isPlainObject(props.refresh)) {
|
|
803
|
+
warnLog("vxe.error.delProp", ["refresh={...}", "refresh=boolean & refresh-options={...}"]);
|
|
857
804
|
}
|
|
858
|
-
if (
|
|
859
|
-
warnLog(
|
|
805
|
+
if (import_xe_utils.default.isPlainObject(props.refresh)) {
|
|
806
|
+
warnLog("vxe.error.delProp", ["zoom={...}", "zoom=boolean & zoom-options={...}"]);
|
|
860
807
|
}
|
|
861
808
|
if ($xeTable) {
|
|
862
809
|
$xeTable.connect($xeToolbar);
|
|
863
810
|
}
|
|
864
811
|
const customOpts = $xeToolbar.computeCustomOpts;
|
|
865
812
|
if (customOpts.isFooter) {
|
|
866
|
-
warnLog(
|
|
813
|
+
warnLog("vxe.error.delProp", ["toolbar.custom.isFooter", "table.custom-config.showFooter"]);
|
|
867
814
|
}
|
|
868
815
|
if (customOpts.showFooter) {
|
|
869
|
-
warnLog(
|
|
816
|
+
warnLog("vxe.error.delProp", ["toolbar.custom.showFooter", "table.custom-config.showFooter"]);
|
|
870
817
|
}
|
|
871
818
|
if (customOpts.immediate) {
|
|
872
|
-
warnLog(
|
|
819
|
+
warnLog("vxe.error.delProp", ["toolbar.custom.immediate", "table.custom-config.immediate"]);
|
|
873
820
|
}
|
|
874
821
|
if (customOpts.trigger) {
|
|
875
|
-
warnLog(
|
|
822
|
+
warnLog("vxe.error.delProp", ["toolbar.custom.trigger", "table.custom-config.trigger"]);
|
|
876
823
|
}
|
|
877
824
|
});
|
|
878
|
-
|
|
879
|
-
const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
|
|
825
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
880
826
|
if (props.refresh || props.import || props.export || props.print || props.zoom) {
|
|
881
827
|
if (!VxeUIButtonComponent) {
|
|
882
|
-
errLog(
|
|
828
|
+
errLog("vxe.error.reqComp", ["vxe-button"]);
|
|
883
829
|
}
|
|
884
830
|
}
|
|
885
831
|
},
|
|
@@ -887,11 +833,10 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
887
833
|
const $xeToolbar = this;
|
|
888
834
|
const reactData = $xeToolbar.reactData;
|
|
889
835
|
const internalData = $xeToolbar.internalData;
|
|
890
|
-
|
|
891
|
-
|
|
836
|
+
import_xe_utils.default.assign(reactData, createReactData());
|
|
837
|
+
import_xe_utils.default.assign(internalData, createInternalData());
|
|
892
838
|
},
|
|
893
839
|
render(h) {
|
|
894
840
|
return this.renderVN(h);
|
|
895
841
|
}
|
|
896
|
-
}
|
|
897
|
-
/* define-vxe-component end */
|
|
842
|
+
};
|