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,306 +1,355 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const { warnLog } = createComponentLog('table');
|
|
1
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
2
|
+
import { formatText, isEnableConf } from "../../../ui/src/utils";
|
|
3
|
+
import { getPropClass } from "../../../ui/src/dom";
|
|
4
|
+
import { getSlotVNs } from "../../../ui/src/vn";
|
|
5
|
+
import { createComponentLog } from "../../../ui/src/log";
|
|
6
|
+
const { warnLog } = createComponentLog("table");
|
|
8
7
|
const { getI18n, getIcon, renderer, globalMixins, renderEmptyElement } = VxeUI;
|
|
9
|
-
// 全部筛选事件
|
|
10
8
|
function filterCheckAllEvent($xeFilterPanel, evnt, value) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const props = $xeFilterPanel;
|
|
10
|
+
const { filterStore } = props;
|
|
11
|
+
const { column } = filterStore;
|
|
12
|
+
if (column && column.filters) {
|
|
13
|
+
column.filters.forEach((option) => {
|
|
14
|
+
option._checked = value;
|
|
15
|
+
option.checked = value;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
filterStore.isAllSelected = value;
|
|
19
|
+
filterStore.isIndeterminate = false;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
var panel_default = {
|
|
22
|
+
name: "VxeTableFilterPanel",
|
|
23
|
+
mixins: [globalMixins.sizeMixin],
|
|
24
|
+
props: {
|
|
25
|
+
filterStore: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
inject: {
|
|
31
|
+
$xeTable: {
|
|
32
|
+
default: null
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
computed: {
|
|
36
|
+
...{},
|
|
37
|
+
computeHasCheckOption() {
|
|
38
|
+
const $xeFilterPanel = this;
|
|
39
|
+
const props = $xeFilterPanel;
|
|
40
|
+
const { filterStore } = props;
|
|
41
|
+
const { column } = filterStore;
|
|
42
|
+
return column && column.filters && column.filters.some((option) => option.checked);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
mounted() {
|
|
46
|
+
const $xeFilterPanel = this;
|
|
47
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
48
|
+
const filterOpts = $xeTable.computeFilterOpts;
|
|
49
|
+
const { transfer } = filterOpts;
|
|
50
|
+
const el = $xeFilterPanel.$refs.refElem;
|
|
51
|
+
if (transfer && el) {
|
|
52
|
+
document.body.appendChild(el);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
beforeDestroy() {
|
|
56
|
+
const $xeFilterPanel = this;
|
|
57
|
+
const el = $xeFilterPanel.$refs.refElem;
|
|
58
|
+
if (el && el.parentNode) {
|
|
59
|
+
el.parentNode.removeChild(el);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
/*************************
|
|
64
|
+
* Publish methods
|
|
65
|
+
*************************/
|
|
66
|
+
// (单选)筛选发生改变
|
|
67
|
+
changeRadioOption(evnt, checked, item) {
|
|
68
|
+
const $xeFilterPanel = this;
|
|
69
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
70
|
+
$xeTable.handleFilterChangeRadioOption(evnt, checked, item);
|
|
33
71
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
72
|
+
// (多选)筛选发生改变
|
|
73
|
+
changeMultipleOption(evnt, checked, item) {
|
|
74
|
+
const $xeFilterPanel = this;
|
|
75
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
76
|
+
item._checked = checked;
|
|
77
|
+
$xeTable.checkFilterOptions();
|
|
38
78
|
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const { transfer } = filterOpts;
|
|
51
|
-
const el = $xeFilterPanel.$refs.refElem;
|
|
52
|
-
if (transfer && el) {
|
|
53
|
-
document.body.appendChild(el);
|
|
54
|
-
}
|
|
79
|
+
changeAllOption(evnt, checked) {
|
|
80
|
+
const $xeFilterPanel = this;
|
|
81
|
+
const props = $xeFilterPanel;
|
|
82
|
+
const { filterStore } = props;
|
|
83
|
+
const { column } = filterStore;
|
|
84
|
+
if (column && column.filterMultiple) {
|
|
85
|
+
filterCheckAllEvent($xeFilterPanel, evnt, checked);
|
|
86
|
+
} else {
|
|
87
|
+
;
|
|
88
|
+
$xeFilterPanel.resetFilter(evnt);
|
|
89
|
+
}
|
|
55
90
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
91
|
+
// 筛选发生改变
|
|
92
|
+
changeOption(evnt, checked, item) {
|
|
93
|
+
const $xeFilterPanel = this;
|
|
94
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
95
|
+
$xeTable.handleFilterChangeOption(evnt, checked, item);
|
|
62
96
|
},
|
|
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
|
-
return [
|
|
147
|
-
h('div', {
|
|
148
|
-
class: 'vxe-table--filter-template'
|
|
149
|
-
}, getSlotVNs(rtFilter.call($xeTable, h, filterRender, params)))
|
|
150
|
-
];
|
|
151
|
-
}
|
|
152
|
-
const isAllChecked = filterMultiple ? filterStore.isAllSelected : !filterOptions.some((item) => item._checked);
|
|
153
|
-
const isAllIndeterminate = filterMultiple && filterStore.isIndeterminate;
|
|
154
|
-
const optVNs = filterOptions.map((item) => {
|
|
155
|
-
const isChecked = item._checked;
|
|
156
|
-
const isIndeterminate = false;
|
|
157
|
-
return h('div', {
|
|
158
|
-
class: ['vxe-table--filter-option', {
|
|
159
|
-
'is--checked': isChecked
|
|
160
|
-
}],
|
|
161
|
-
attrs: {
|
|
162
|
-
title: item.label
|
|
163
|
-
},
|
|
164
|
-
on: {
|
|
165
|
-
click: (evnt) => {
|
|
166
|
-
$xeFilterPanel.changeOption(evnt, !item._checked, item);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, (filterMultiple
|
|
170
|
-
? [
|
|
171
|
-
h('span', {
|
|
172
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
173
|
-
})
|
|
174
|
-
]
|
|
175
|
-
: []).concat([
|
|
176
|
-
h('span', {
|
|
177
|
-
class: 'vxe-checkbox--label'
|
|
178
|
-
}, formatText(item.label, 1))
|
|
179
|
-
]));
|
|
180
|
-
});
|
|
181
|
-
return [
|
|
182
|
-
h('div', {
|
|
183
|
-
class: 'vxe-table--filter-header'
|
|
184
|
-
}, [
|
|
185
|
-
h('div', {
|
|
186
|
-
class: ['vxe-table--filter-option', {
|
|
187
|
-
'is--checked': isAllChecked,
|
|
188
|
-
'is--indeterminate': isAllIndeterminate
|
|
189
|
-
}],
|
|
190
|
-
attrs: {
|
|
191
|
-
title: getI18n(filterMultiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter')
|
|
192
|
-
},
|
|
193
|
-
on: {
|
|
194
|
-
click: (evnt) => {
|
|
195
|
-
$xeFilterPanel.changeAllOption(evnt, !filterStore.isAllSelected);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}, (filterMultiple
|
|
199
|
-
? [
|
|
200
|
-
h('span', {
|
|
201
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
202
|
-
})
|
|
203
|
-
]
|
|
204
|
-
: []).concat([
|
|
205
|
-
h('span', {
|
|
206
|
-
class: 'vxe-checkbox--label'
|
|
207
|
-
}, getI18n('vxe.table.allFilter'))
|
|
208
|
-
]))
|
|
209
|
-
]),
|
|
210
|
-
useScrollbar
|
|
211
|
-
? h(VxeUIScrollbarComponent, {
|
|
212
|
-
class: 'vxe-table--scrollbar-filter-body',
|
|
213
|
-
props: {
|
|
214
|
-
viewClassName: 'vxe-table--scrollbar-filter-body-view'
|
|
215
|
-
},
|
|
216
|
-
scopedSlots: {
|
|
217
|
-
default: () => optVNs
|
|
218
|
-
}
|
|
219
|
-
})
|
|
220
|
-
: h('div', {
|
|
221
|
-
class: 'vxe-table--filter-body'
|
|
222
|
-
}, optVNs)
|
|
223
|
-
];
|
|
224
|
-
},
|
|
225
|
-
renderFooter(h) {
|
|
226
|
-
const $xeFilterPanel = this;
|
|
227
|
-
const props = $xeFilterPanel;
|
|
228
|
-
const $xeTable = $xeFilterPanel.$xeTable;
|
|
229
|
-
const { filterStore } = props;
|
|
230
|
-
const { column } = filterStore;
|
|
231
|
-
if (!column) {
|
|
232
|
-
return [];
|
|
233
|
-
}
|
|
234
|
-
const filterOpts = $xeTable.computeFilterOpts;
|
|
235
|
-
const rendererOpts = $xeTable.computeRendererOpts;
|
|
236
|
-
const hasCheckOption = $xeFilterPanel.computeHasCheckOption;
|
|
237
|
-
const { filterRender, filterMultiple } = column;
|
|
238
|
-
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? (rendererOpts[filterRender.name] || renderer.get(filterRender.name)) : null;
|
|
239
|
-
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
240
|
-
return filterMultiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false) : true)
|
|
241
|
-
? [
|
|
242
|
-
h('div', {
|
|
243
|
-
class: 'vxe-table--filter-footer'
|
|
244
|
-
}, [
|
|
245
|
-
h('button', {
|
|
246
|
-
class: {
|
|
247
|
-
'is--disabled': isDisabled
|
|
248
|
-
},
|
|
249
|
-
attrs: {
|
|
250
|
-
disabled: isDisabled
|
|
251
|
-
},
|
|
252
|
-
on: {
|
|
253
|
-
click: $xeFilterPanel.confirmFilter
|
|
254
|
-
}
|
|
255
|
-
}, filterOpts.confirmButtonText || getI18n('vxe.table.confirmFilter')),
|
|
256
|
-
h('button', {
|
|
257
|
-
on: {
|
|
258
|
-
click: $xeFilterPanel.resetFilter
|
|
259
|
-
}
|
|
260
|
-
}, filterOpts.resetButtonText || getI18n('vxe.table.resetFilter'))
|
|
261
|
-
])
|
|
262
|
-
]
|
|
263
|
-
: [];
|
|
264
|
-
},
|
|
265
|
-
renderVN(h) {
|
|
266
|
-
const $xeFilterPanel = this;
|
|
267
|
-
const props = $xeFilterPanel;
|
|
268
|
-
const $xeTable = $xeFilterPanel.$xeTable;
|
|
269
|
-
const tableInternalData = $xeTable;
|
|
270
|
-
const { filterStore } = props;
|
|
271
|
-
const { visible, column } = filterStore;
|
|
272
|
-
if (!column) {
|
|
273
|
-
return renderEmptyElement($xeFilterPanel);
|
|
97
|
+
// 确认筛选
|
|
98
|
+
confirmFilter(evnt) {
|
|
99
|
+
const $xeFilterPanel = this;
|
|
100
|
+
const props = $xeFilterPanel;
|
|
101
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
102
|
+
const { filterStore } = props;
|
|
103
|
+
if (!evnt) {
|
|
104
|
+
warnLog("vxe.error.delFunc", ["confirmFilter", "saveFilterPanelByEvent"]);
|
|
105
|
+
}
|
|
106
|
+
$xeTable.handleFilterConfirmFilter(evnt || new Event("click"), filterStore.column || null);
|
|
107
|
+
},
|
|
108
|
+
// 重置筛选
|
|
109
|
+
resetFilter(evnt) {
|
|
110
|
+
const $xeFilterPanel = this;
|
|
111
|
+
const props = $xeFilterPanel;
|
|
112
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
113
|
+
const { filterStore } = props;
|
|
114
|
+
$xeTable.handleFilterResetFilter(evnt, filterStore.column || null);
|
|
115
|
+
},
|
|
116
|
+
/*************************
|
|
117
|
+
* Publish methods
|
|
118
|
+
*************************/
|
|
119
|
+
renderOptions(h, filterRender, compConf) {
|
|
120
|
+
const VxeUIScrollbarComponent = VxeUI.getComponent("VxeScrollbar");
|
|
121
|
+
const $xeFilterPanel = this;
|
|
122
|
+
const props = $xeFilterPanel;
|
|
123
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
124
|
+
const tableInternalData = $xeTable;
|
|
125
|
+
const { filterStore } = props;
|
|
126
|
+
const { column } = filterStore;
|
|
127
|
+
if (!column) {
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
130
|
+
const filterOpts = $xeTable.computeFilterOpts;
|
|
131
|
+
const { useScrollbar } = filterOpts;
|
|
132
|
+
const { filterMultiple, filters, slots } = column;
|
|
133
|
+
const filterOptions = filters || [];
|
|
134
|
+
const filterSlot = slots ? slots.filter : null;
|
|
135
|
+
const params = Object.assign({}, tableInternalData._currFilterParams, { option: filterOptions[0], $panel: $xeFilterPanel, $table: $xeTable });
|
|
136
|
+
const rtFilter = compConf ? compConf.renderTableFilter || compConf.renderFilter : null;
|
|
137
|
+
if (filterSlot) {
|
|
138
|
+
return [
|
|
139
|
+
h(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
class: "vxe-table--filter-template"
|
|
143
|
+
},
|
|
144
|
+
$xeTable.callSlot(filterSlot, params, h)
|
|
145
|
+
)
|
|
146
|
+
];
|
|
147
|
+
} else if (filterRender && rtFilter) {
|
|
148
|
+
return [
|
|
149
|
+
h(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
class: "vxe-table--filter-template"
|
|
153
|
+
},
|
|
154
|
+
getSlotVNs(rtFilter.call($xeTable, h, filterRender, params))
|
|
155
|
+
)
|
|
156
|
+
];
|
|
157
|
+
}
|
|
158
|
+
const isAllChecked = filterMultiple ? filterStore.isAllSelected : !filterOptions.some((item) => item._checked);
|
|
159
|
+
const isAllIndeterminate = filterMultiple && filterStore.isIndeterminate;
|
|
160
|
+
const optVNs = filterOptions.map((item) => {
|
|
161
|
+
const isChecked = item._checked;
|
|
162
|
+
const isIndeterminate = false;
|
|
163
|
+
return h(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
class: [
|
|
167
|
+
"vxe-table--filter-option",
|
|
168
|
+
{
|
|
169
|
+
"is--checked": isChecked
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
attrs: {
|
|
173
|
+
title: item.label
|
|
174
|
+
},
|
|
175
|
+
on: {
|
|
176
|
+
click: (evnt) => {
|
|
177
|
+
;
|
|
178
|
+
$xeFilterPanel.changeOption(evnt, !item._checked, item);
|
|
179
|
+
}
|
|
274
180
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
181
|
+
},
|
|
182
|
+
(filterMultiple ? [
|
|
183
|
+
h("span", {
|
|
184
|
+
class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
185
|
+
})
|
|
186
|
+
] : []).concat([
|
|
187
|
+
h(
|
|
188
|
+
"span",
|
|
189
|
+
{
|
|
190
|
+
class: "vxe-checkbox--label"
|
|
191
|
+
},
|
|
192
|
+
formatText(item.label, 1)
|
|
193
|
+
)
|
|
194
|
+
])
|
|
195
|
+
);
|
|
196
|
+
});
|
|
197
|
+
return [
|
|
198
|
+
h(
|
|
199
|
+
"div",
|
|
200
|
+
{
|
|
201
|
+
class: "vxe-table--filter-header"
|
|
202
|
+
},
|
|
203
|
+
[
|
|
204
|
+
h(
|
|
205
|
+
"div",
|
|
206
|
+
{
|
|
286
207
|
class: [
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
{
|
|
293
|
-
[`size--${vSize}`]: vSize,
|
|
294
|
-
'is--animat': tableProps.animat,
|
|
295
|
-
'is--multiple': column.filterMultiple,
|
|
296
|
-
'is--active': visible
|
|
297
|
-
}
|
|
208
|
+
"vxe-table--filter-option",
|
|
209
|
+
{
|
|
210
|
+
"is--checked": isAllChecked,
|
|
211
|
+
"is--indeterminate": isAllIndeterminate
|
|
212
|
+
}
|
|
298
213
|
],
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
214
|
+
attrs: {
|
|
215
|
+
title: getI18n(filterMultiple ? "vxe.table.allTitle" : "vxe.table.allFilter")
|
|
216
|
+
},
|
|
217
|
+
on: {
|
|
218
|
+
click: (evnt) => {
|
|
219
|
+
;
|
|
220
|
+
$xeFilterPanel.changeAllOption(evnt, !filterStore.isAllSelected);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
(filterMultiple ? [
|
|
225
|
+
h("span", {
|
|
226
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
227
|
+
})
|
|
228
|
+
] : []).concat([
|
|
229
|
+
h(
|
|
230
|
+
"span",
|
|
231
|
+
{
|
|
232
|
+
class: "vxe-checkbox--label"
|
|
233
|
+
},
|
|
234
|
+
getI18n("vxe.table.allFilter")
|
|
235
|
+
)
|
|
236
|
+
])
|
|
237
|
+
)
|
|
238
|
+
]
|
|
239
|
+
),
|
|
240
|
+
useScrollbar ? h(VxeUIScrollbarComponent, {
|
|
241
|
+
class: "vxe-table--scrollbar-filter-body",
|
|
242
|
+
props: {
|
|
243
|
+
viewClassName: "vxe-table--scrollbar-filter-body-view"
|
|
244
|
+
},
|
|
245
|
+
scopedSlots: {
|
|
246
|
+
default: () => optVNs
|
|
247
|
+
}
|
|
248
|
+
}) : h(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
class: "vxe-table--filter-body"
|
|
252
|
+
},
|
|
253
|
+
optVNs
|
|
254
|
+
)
|
|
255
|
+
];
|
|
256
|
+
},
|
|
257
|
+
renderFooter(h) {
|
|
258
|
+
const $xeFilterPanel = this;
|
|
259
|
+
const props = $xeFilterPanel;
|
|
260
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
261
|
+
const { filterStore } = props;
|
|
262
|
+
const { column } = filterStore;
|
|
263
|
+
if (!column) {
|
|
264
|
+
return [];
|
|
265
|
+
}
|
|
266
|
+
const filterOpts = $xeTable.computeFilterOpts;
|
|
267
|
+
const rendererOpts = $xeTable.computeRendererOpts;
|
|
268
|
+
const hasCheckOption = $xeFilterPanel.computeHasCheckOption;
|
|
269
|
+
const { filterRender, filterMultiple } = column;
|
|
270
|
+
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
|
|
271
|
+
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
272
|
+
return filterMultiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false) : true) ? [
|
|
273
|
+
h(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
class: "vxe-table--filter-footer"
|
|
277
|
+
},
|
|
278
|
+
[
|
|
279
|
+
h(
|
|
280
|
+
"button",
|
|
281
|
+
{
|
|
282
|
+
class: {
|
|
283
|
+
"is--disabled": isDisabled
|
|
284
|
+
},
|
|
285
|
+
attrs: {
|
|
286
|
+
disabled: isDisabled
|
|
287
|
+
},
|
|
288
|
+
on: {
|
|
289
|
+
click: $xeFilterPanel.confirmFilter
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
filterOpts.confirmButtonText || getI18n("vxe.table.confirmFilter")
|
|
293
|
+
),
|
|
294
|
+
h(
|
|
295
|
+
"button",
|
|
296
|
+
{
|
|
297
|
+
on: {
|
|
298
|
+
click: $xeFilterPanel.resetFilter
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
filterOpts.resetButtonText || getI18n("vxe.table.resetFilter")
|
|
302
|
+
)
|
|
303
|
+
]
|
|
304
|
+
)
|
|
305
|
+
] : [];
|
|
302
306
|
},
|
|
303
|
-
|
|
304
|
-
|
|
307
|
+
renderVN(h) {
|
|
308
|
+
const $xeFilterPanel = this;
|
|
309
|
+
const props = $xeFilterPanel;
|
|
310
|
+
const $xeTable = $xeFilterPanel.$xeTable;
|
|
311
|
+
const tableInternalData = $xeTable;
|
|
312
|
+
const { filterStore } = props;
|
|
313
|
+
const { visible, column } = filterStore;
|
|
314
|
+
if (!column) {
|
|
315
|
+
return renderEmptyElement($xeFilterPanel);
|
|
316
|
+
}
|
|
317
|
+
const rendererOpts = $xeTable.computeRendererOpts;
|
|
318
|
+
const filterRender = column ? column.filterRender : null;
|
|
319
|
+
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
|
|
320
|
+
const filterClassName = compConf ? compConf.tableFilterClassName || compConf.filterClassName : "";
|
|
321
|
+
const params = Object.assign({}, tableInternalData._currFilterParams, { $panel: $xeFilterPanel, $table: $xeTable });
|
|
322
|
+
const tableProps = $xeTable;
|
|
323
|
+
const vSize = $xeFilterPanel.computeSize;
|
|
324
|
+
const filterOpts = $xeTable.computeFilterOpts;
|
|
325
|
+
const { destroyOnClose, className } = filterOpts;
|
|
326
|
+
return h(
|
|
327
|
+
"div",
|
|
328
|
+
{
|
|
329
|
+
ref: "refElem",
|
|
330
|
+
class: [
|
|
331
|
+
"vxe-table--filter-wrapper",
|
|
332
|
+
"filter--prevent-default",
|
|
333
|
+
className,
|
|
334
|
+
compConf && compConf.className ? compConf.className : "",
|
|
335
|
+
getPropClass(filterClassName, params),
|
|
336
|
+
{
|
|
337
|
+
[`size--${vSize}`]: vSize,
|
|
338
|
+
"is--animat": tableProps.animat,
|
|
339
|
+
"is--multiple": column.filterMultiple,
|
|
340
|
+
"is--active": visible
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
style: filterStore.style
|
|
344
|
+
},
|
|
345
|
+
filterStore.visible && (destroyOnClose ? visible : true) && column ? $xeFilterPanel.renderOptions(h, filterRender, compConf).concat($xeFilterPanel.renderFooter(h)) : []
|
|
346
|
+
);
|
|
305
347
|
}
|
|
348
|
+
},
|
|
349
|
+
render(h) {
|
|
350
|
+
return this.renderVN(h);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
export {
|
|
354
|
+
panel_default as default
|
|
306
355
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
methods: {
|
|
3
|
+
moveTabSelected(args: any, isLeft: any, evnt: any): void;
|
|
4
|
+
moveCurrentRow(isUpArrow: boolean, isDwArrow: boolean, evnt: any): void;
|
|
5
|
+
moveCurrentColumn(isLeftArrow: boolean, isRightArrow: boolean, evnt: any): void;
|
|
6
|
+
moveArrowSelected(args: any, isLeftArrow: boolean, isUpArrow: boolean, isRightArrow: boolean, isDwArrow: boolean, evnt: any): void;
|
|
7
|
+
moveEnterSelected(args: any, isLeftArrow: boolean, isUpArrow: boolean, isRightArrow: boolean, isDwArrow: boolean, evnt: any): void;
|
|
8
|
+
moveSelected(args: any, isLeftArrow: boolean, isUpArrow: boolean, isRightArrow: boolean, isDwArrow: boolean, evnt: any): void;
|
|
9
|
+
handleCellMousedownEvent(evnt: any, params: any): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|