vxe-table 4.23.4 → 4.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.esm.js +32459 -33908
- package/dist/style.css +4501 -1
- package/dist/style.mini.css +1 -0
- package/es/colgroup/index.d.ts +760 -0
- package/es/colgroup/index.js +16 -13
- package/es/column/index.d.ts +760 -0
- package/es/column/index.js +16 -13
- package/es/components.d.ts +9 -0
- package/es/components.js +29 -29
- package/es/grid/index.d.ts +2824 -0
- package/es/grid/index.js +14 -9
- package/es/grid/src/emits.d.ts +2 -0
- package/es/grid/src/emits.js +18 -15
- package/es/grid/src/grid.d.ts +556 -0
- package/es/grid/src/grid.js +1695 -1758
- package/es/grid/src/props.d.ts +200 -0
- package/es/grid/src/props.js +19 -6
- package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +6 -3
- package/es/index.js +6 -0
- package/es/locale/lang/ar-EG.d.ts +908 -2
- package/es/locale/lang/ar-EG.js +906 -903
- package/es/locale/lang/de-DE.d.ts +908 -2
- package/es/locale/lang/de-DE.js +906 -903
- package/es/locale/lang/en-US.d.ts +908 -2
- package/es/locale/lang/en-US.js +906 -903
- package/es/locale/lang/es-ES.d.ts +908 -2
- package/es/locale/lang/es-ES.js +906 -903
- package/es/locale/lang/fr-FR.d.ts +908 -2
- package/es/locale/lang/fr-FR.js +906 -903
- package/es/locale/lang/hu-HU.d.ts +908 -2
- package/es/locale/lang/hu-HU.js +906 -903
- package/es/locale/lang/hy-AM.d.ts +908 -2
- package/es/locale/lang/hy-AM.js +906 -903
- package/es/locale/lang/id-ID.d.ts +908 -2
- package/es/locale/lang/id-ID.js +906 -903
- package/es/locale/lang/it-IT.d.ts +908 -2
- package/es/locale/lang/it-IT.js +906 -903
- package/es/locale/lang/ja-JP.d.ts +908 -2
- package/es/locale/lang/ja-JP.js +906 -903
- package/es/locale/lang/ko-KR.d.ts +908 -2
- package/es/locale/lang/ko-KR.js +906 -903
- package/es/locale/lang/ms-MY.d.ts +908 -2
- package/es/locale/lang/ms-MY.js +906 -903
- package/es/locale/lang/nb-NO.d.ts +908 -2
- package/es/locale/lang/nb-NO.js +906 -903
- package/es/locale/lang/pt-BR.d.ts +908 -2
- package/es/locale/lang/pt-BR.js +906 -903
- package/es/locale/lang/ru-RU.d.ts +908 -2
- package/es/locale/lang/ru-RU.js +906 -903
- package/es/locale/lang/th-TH.d.ts +908 -2
- package/es/locale/lang/th-TH.js +906 -903
- package/es/locale/lang/ug-CN.d.ts +908 -2
- package/es/locale/lang/ug-CN.js +906 -903
- package/es/locale/lang/uk-UA.d.ts +908 -2
- package/es/locale/lang/uk-UA.js +906 -903
- package/es/locale/lang/uz-UZ.d.ts +908 -2
- package/es/locale/lang/uz-UZ.js +906 -903
- package/es/locale/lang/vi-VN.d.ts +908 -2
- package/es/locale/lang/vi-VN.js +906 -903
- package/es/locale/lang/zh-CHT.d.ts +908 -2
- package/es/locale/lang/zh-CHT.js +906 -903
- package/es/locale/lang/zh-CN.d.ts +908 -2
- package/es/locale/lang/zh-CN.js +906 -903
- package/es/locale/lang/zh-HK.d.ts +908 -2
- package/es/locale/lang/zh-HK.js +910 -2
- package/es/locale/lang/zh-MO.d.ts +908 -2
- package/es/locale/lang/zh-MO.js +910 -2
- package/es/locale/lang/zh-TC.d.ts +908 -0
- package/es/locale/lang/zh-TC.js +910 -2
- package/es/locale/lang/zh-TW.d.ts +908 -2
- package/es/locale/lang/zh-TW.js +910 -2
- package/es/table/index.d.ts +2672 -0
- package/es/table/index.js +16 -11
- package/es/table/module/custom/hook.d.ts +1 -0
- package/es/table/module/custom/hook.js +462 -483
- package/es/table/module/custom/panel.d.ts +17 -0
- package/es/table/module/custom/panel.js +1482 -1559
- package/es/table/module/edit/hook.d.ts +1 -0
- package/es/table/module/edit/hook.js +1008 -1078
- package/es/table/module/export/export-panel.d.ts +27 -0
- package/es/table/module/export/export-panel.js +523 -575
- package/es/table/module/export/hook.d.ts +1 -0
- package/es/table/module/export/hook.js +1805 -1884
- package/es/table/module/export/import-panel.d.ts +27 -0
- package/es/table/module/export/import-panel.js +244 -252
- package/es/table/module/export/util.d.ts +5 -0
- package/es/table/module/export/util.js +20 -17
- package/es/table/module/filter/hook.d.ts +1 -0
- package/es/table/module/filter/hook.js +472 -487
- package/es/table/module/filter/panel.d.ts +16 -0
- package/es/table/module/filter/panel.js +251 -275
- package/es/table/module/keyboard/hook.d.ts +1 -0
- package/es/table/module/keyboard/hook.js +445 -497
- package/es/table/module/menu/hook.d.ts +1 -0
- package/es/table/module/menu/hook.js +295 -315
- package/es/table/module/menu/panel.d.ts +2 -0
- package/es/table/module/menu/panel.js +164 -183
- package/es/table/module/validator/hook.d.ts +1 -0
- package/es/table/module/validator/hook.js +522 -571
- package/es/table/render/index.d.ts +1 -0
- package/es/table/render/index.js +1402 -1362
- package/es/table/src/body.d.ts +24 -0
- package/es/table/src/body.js +850 -865
- package/es/table/src/cell.d.ts +192 -0
- package/es/table/src/cell.js +1209 -1207
- package/es/table/src/column.d.ts +263 -0
- package/es/table/src/column.js +178 -174
- package/es/table/src/columnInfo.d.ts +13 -0
- package/es/table/src/columnInfo.js +202 -196
- package/es/table/src/emits.d.ts +2 -0
- package/es/table/src/emits.js +126 -119
- package/es/table/src/footer.d.ts +45 -0
- package/es/table/src/footer.js +336 -340
- package/es/table/src/group.d.ts +178 -0
- package/es/table/src/group.js +49 -46
- package/es/table/src/header.d.ts +26 -0
- package/es/table/src/header.js +517 -519
- package/es/table/src/props.d.ts +238 -0
- package/es/table/src/props.js +331 -328
- package/es/table/src/store.d.ts +6 -0
- package/es/table/src/store.js +9 -6
- package/es/table/src/table.d.ts +539 -0
- package/es/table/src/table.js +14064 -15041
- package/es/table/src/use/cell-view.d.ts +10 -0
- package/es/table/src/use/cell-view.js +36 -33
- package/es/table/src/use/index.d.ts +1 -0
- package/es/table/src/use/index.js +1 -1
- package/es/table/src/util.d.ts +74 -0
- package/es/table/src/util.js +1038 -1026
- package/es/table/style.css +1 -1
- package/es/table/style.mini.css +1 -0
- package/es/toolbar/index.d.ts +340 -0
- package/es/toolbar/index.js +14 -9
- package/es/toolbar/src/toolbar.d.ts +75 -0
- package/es/toolbar/src/toolbar.js +605 -613
- package/es/toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/ui/index.d.ts +86 -0
- package/es/ui/index.js +457 -501
- package/es/ui/src/anime.d.ts +10 -0
- package/es/ui/src/anime.js +40 -40
- package/es/ui/src/comp.d.ts +2 -0
- package/es/ui/src/comp.js +5 -2
- package/es/ui/src/dom.d.ts +80 -0
- package/es/ui/src/dom.js +377 -380
- package/es/ui/src/log.d.ts +6 -0
- package/es/ui/src/log.js +18 -13
- package/es/ui/src/utils.d.ts +23 -0
- package/es/ui/src/utils.js +57 -53
- package/es/ui/src/vn.d.ts +7 -0
- package/es/ui/src/vn.js +49 -42
- package/es/v-x-e-table/index.d.ts +3 -0
- package/es/v-x-e-table/index.js +6 -3
- package/es/vxe-colgroup/index.d.ts +3 -0
- package/es/vxe-colgroup/index.js +6 -3
- package/es/vxe-column/index.d.ts +3 -0
- package/es/vxe-column/index.js +6 -3
- package/es/vxe-grid/index.d.ts +3 -0
- package/es/vxe-grid/index.js +6 -3
- package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
- package/es/vxe-table/index.d.ts +3 -0
- package/es/vxe-table/index.js +6 -3
- package/es/vxe-table/style.css +1 -1
- package/es/vxe-table/style.mini.css +1 -0
- package/es/vxe-toolbar/index.d.ts +3 -0
- package/es/vxe-toolbar/index.js +6 -3
- package/es/vxe-toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/vxe-ui/index.d.ts +3 -0
- package/es/vxe-ui/index.js +6 -3
- package/lib/colgroup/index.js +44 -18
- package/lib/colgroup/style/index.js +1 -1
- package/lib/column/index.js +44 -18
- package/lib/column/style/index.js +1 -1
- package/lib/components.js +58 -92
- package/lib/grid/index.js +42 -14
- package/lib/grid/src/emits.js +37 -6
- package/lib/grid/src/grid.js +850 -1195
- package/lib/grid/src/props.js +27 -11
- package/lib/grid/style/index.js +1 -1
- package/lib/{vxe-grid/style/style.min.css → grid/style/style.mini.css} +1 -1
- package/lib/iconfont.1792977622800.ttf +0 -0
- package/lib/iconfont.1792977622800.woff +0 -0
- package/lib/iconfont.1792977622800.woff2 +0 -0
- package/lib/index.common.js +35 -19
- package/lib/index.js +37 -0
- package/lib/index.umd.js +30586 -24322
- package/lib/index.umd.min.js +3 -1
- package/lib/locale/ar-EG.umd.js +948 -0
- package/lib/locale/de-DE.umd.js +948 -0
- package/lib/locale/en-US.umd.js +948 -0
- package/lib/locale/es-ES.umd.js +948 -0
- package/lib/locale/fr-FR.umd.js +948 -0
- package/lib/locale/hu-HU.umd.js +948 -0
- package/lib/locale/hy-AM.umd.js +948 -0
- package/lib/locale/id-ID.umd.js +948 -0
- package/lib/locale/it-IT.umd.js +948 -0
- package/lib/locale/ja-JP.umd.js +948 -0
- package/lib/locale/ko-KR.umd.js +948 -0
- package/lib/locale/lang/ar-EG.js +681 -664
- package/lib/locale/lang/ar-EG.umd.js +913 -892
- package/lib/locale/lang/de-DE.js +681 -664
- package/lib/locale/lang/de-DE.umd.js +913 -892
- package/lib/locale/lang/en-US.js +678 -661
- package/lib/locale/lang/en-US.umd.js +913 -892
- package/lib/locale/lang/es-ES.js +681 -664
- package/lib/locale/lang/es-ES.umd.js +913 -892
- package/lib/locale/lang/fr-FR.js +654 -637
- package/lib/locale/lang/fr-FR.umd.js +913 -892
- package/lib/locale/lang/hu-HU.js +681 -664
- package/lib/locale/lang/hu-HU.umd.js +913 -892
- package/lib/locale/lang/hy-AM.js +681 -664
- package/lib/locale/lang/hy-AM.umd.js +913 -892
- package/lib/locale/lang/id-ID.js +681 -664
- package/lib/locale/lang/id-ID.umd.js +913 -892
- package/lib/locale/lang/it-IT.js +661 -644
- package/lib/locale/lang/it-IT.umd.js +912 -891
- package/lib/locale/lang/ja-JP.js +710 -693
- package/lib/locale/lang/ja-JP.umd.js +913 -892
- package/lib/locale/lang/ko-KR.js +681 -664
- package/lib/locale/lang/ko-KR.umd.js +913 -892
- package/lib/locale/lang/ms-MY.js +681 -664
- package/lib/locale/lang/ms-MY.umd.js +913 -892
- package/lib/locale/lang/nb-NO.js +681 -664
- package/lib/locale/lang/nb-NO.umd.js +913 -892
- package/lib/locale/lang/pt-BR.js +681 -664
- package/lib/locale/lang/pt-BR.umd.js +913 -892
- package/lib/locale/lang/ru-RU.js +690 -673
- package/lib/locale/lang/ru-RU.umd.js +913 -892
- package/lib/locale/lang/th-TH.js +681 -664
- package/lib/locale/lang/th-TH.umd.js +913 -892
- package/lib/locale/lang/ug-CN.js +681 -664
- package/lib/locale/lang/ug-CN.umd.js +913 -892
- package/lib/locale/lang/uk-UA.js +674 -657
- package/lib/locale/lang/uk-UA.umd.js +913 -892
- package/lib/locale/lang/uz-UZ.js +583 -566
- package/lib/locale/lang/uz-UZ.umd.js +908 -887
- package/lib/locale/lang/vi-VN.js +681 -664
- package/lib/locale/lang/vi-VN.umd.js +913 -892
- package/lib/locale/lang/zh-CHT.js +681 -664
- package/lib/locale/lang/zh-CHT.umd.js +913 -892
- package/lib/locale/lang/zh-CN.js +681 -664
- package/lib/locale/lang/zh-CN.umd.js +913 -892
- package/lib/locale/lang/zh-HK.js +928 -7
- package/lib/locale/lang/zh-HK.umd.js +945 -20
- package/lib/locale/lang/zh-MO.js +928 -7
- package/lib/locale/lang/zh-MO.umd.js +945 -20
- package/lib/locale/lang/zh-TC.js +928 -7
- package/lib/locale/lang/zh-TC.umd.js +948 -0
- package/lib/locale/lang/zh-TW.js +928 -7
- package/lib/locale/lang/zh-TW.umd.js +945 -20
- package/lib/locale/ms-MY.umd.js +948 -0
- package/lib/locale/nb-NO.umd.js +948 -0
- package/lib/locale/pt-BR.umd.js +948 -0
- package/lib/locale/ru-RU.umd.js +948 -0
- package/lib/locale/th-TH.umd.js +948 -0
- package/lib/locale/ug-CN.umd.js +948 -0
- package/lib/locale/uk-UA.umd.js +948 -0
- package/lib/locale/uz-UZ.umd.js +948 -0
- package/lib/locale/vi-VN.umd.js +948 -0
- package/lib/locale/zh-CHT.umd.js +948 -0
- package/lib/locale/zh-CN.umd.js +948 -0
- package/lib/locale/zh-HK.umd.js +948 -0
- package/lib/locale/zh-MO.umd.js +948 -0
- package/lib/locale/zh-TC.umd.js +948 -0
- package/lib/locale/zh-TW.umd.js +948 -0
- package/lib/style.css +4501 -1
- package/lib/style.mini.css +1 -0
- package/lib/table/index.js +45 -17
- package/lib/table/module/custom/hook.js +132 -252
- package/lib/table/module/custom/panel.js +919 -970
- package/lib/table/module/edit/hook.js +250 -620
- package/lib/table/module/export/export-panel.js +390 -347
- package/lib/table/module/export/hook.js +745 -1179
- package/lib/table/module/export/import-panel.js +170 -136
- package/lib/table/module/export/util.js +37 -14
- package/lib/table/module/filter/hook.js +127 -227
- package/lib/table/module/filter/panel.js +177 -208
- package/lib/table/module/keyboard/hook.js +93 -172
- package/lib/table/module/menu/hook.js +86 -165
- package/lib/table/module/menu/panel.js +176 -141
- package/lib/table/module/validator/hook.js +164 -271
- package/lib/table/render/index.js +700 -1147
- package/lib/table/src/body.js +426 -559
- package/lib/table/src/cell.js +619 -987
- package/lib/table/src/column.js +55 -30
- package/lib/table/src/columnInfo.js +88 -110
- package/lib/table/src/emits.js +145 -13
- package/lib/table/src/footer.js +181 -240
- package/lib/table/src/group.js +56 -34
- package/lib/table/src/header.js +292 -367
- package/lib/table/src/props.js +27 -12
- package/lib/table/src/store.js +25 -9
- package/lib/table/src/table.js +14179 -1019
- package/lib/table/src/use/cell-view.js +47 -37
- package/lib/table/src/use/index.js +17 -15
- package/lib/table/src/util.js +236 -337
- package/lib/table/style/index.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/style/style.mini.css +1 -0
- package/lib/toolbar/index.js +42 -14
- package/lib/toolbar/src/toolbar.js +271 -379
- package/lib/toolbar/style/index.js +1 -1
- package/lib/toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/ui/index.js +153 -195
- package/lib/ui/src/anime.js +49 -29
- package/lib/ui/src/comp.js +23 -6
- package/lib/ui/src/dom.js +114 -147
- package/lib/ui/src/log.js +34 -18
- package/lib/ui/src/utils.js +57 -45
- package/lib/ui/src/vn.js +60 -34
- package/lib/ui/style/index.js +1 -1
- package/lib/v-x-e-table/index.js +35 -19
- package/lib/vxe-colgroup/index.js +35 -19
- package/lib/vxe-colgroup/style/index.js +1 -1
- package/lib/vxe-column/index.js +35 -19
- package/lib/vxe-column/style/index.js +1 -1
- package/lib/vxe-grid/index.js +35 -19
- package/lib/vxe-grid/style/index.js +1 -1
- package/{es/grid/style.min.css → lib/vxe-grid/style/style.mini.css} +1 -1
- package/lib/vxe-table/index.js +35 -19
- package/lib/vxe-table/style/index.js +1 -1
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.mini.css +1 -0
- package/lib/vxe-toolbar/index.js +35 -19
- package/lib/vxe-toolbar/style/index.js +1 -1
- package/lib/vxe-toolbar/style/{style.min.css → style.mini.css} +1 -1
- package/lib/vxe-ui/index.js +35 -19
- package/lib/vxe-ui/style/index.js +1 -1
- package/package.json +8 -4
- package/packages/locale/lang/zh-HK.ts +907 -3
- package/packages/locale/lang/zh-MO.ts +907 -3
- package/packages/locale/lang/zh-TC.ts +907 -3
- package/packages/locale/lang/zh-TW.ts +907 -3
- package/packages/table/module/edit/hook.ts +2 -2
- package/packages/table/src/table.ts +64 -28
- package/packages/ui/index.ts +1 -28
- package/dist/style.min.css +0 -1
- package/es/index.css +0 -1
- package/es/index.min.css +0 -1
- package/es/style.css +0 -1
- package/es/style.min.css +0 -1
- package/es/table/style.min.css +0 -1
- package/es/vxe-table/style.min.css +0 -1
- package/es/vxe-v-x-e-table/index.js +0 -3
- package/lib/colgroup/index.min.js +0 -1
- package/lib/column/index.min.js +0 -1
- package/lib/components.min.js +0 -1
- package/lib/grid/index.min.js +0 -1
- package/lib/grid/src/emits.min.js +0 -1
- package/lib/grid/src/grid.min.js +0 -1
- package/lib/grid/src/props.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/index.min.css +0 -1
- package/lib/locale/lang/ar-EG.d.ts +0 -2
- package/lib/locale/lang/ar-EG.min.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.min.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.min.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.min.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.min.js +0 -1
- package/lib/locale/lang/hu-HU.d.ts +0 -2
- package/lib/locale/lang/hu-HU.min.js +0 -1
- package/lib/locale/lang/hy-AM.d.ts +0 -2
- package/lib/locale/lang/hy-AM.min.js +0 -1
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.min.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.min.js +0 -1
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.min.js +0 -1
- package/lib/locale/lang/ms-MY.d.ts +0 -2
- package/lib/locale/lang/ms-MY.min.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.min.js +0 -1
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.min.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.min.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.min.js +0 -1
- package/lib/locale/lang/ug-CN.d.ts +0 -2
- package/lib/locale/lang/ug-CN.min.js +0 -1
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.min.js +0 -1
- package/lib/locale/lang/uz-UZ.d.ts +0 -2
- package/lib/locale/lang/uz-UZ.min.js +0 -1
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.min.js +0 -1
- package/lib/locale/lang/zh-CHT.d.ts +0 -2
- package/lib/locale/lang/zh-CHT.min.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.min.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.min.js +0 -1
- package/lib/locale/lang/zh-MO.d.ts +0 -2
- package/lib/locale/lang/zh-MO.min.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.min.js +0 -1
- package/lib/style.min.css +0 -1
- package/lib/table/index.min.js +0 -1
- package/lib/table/module/custom/hook.min.js +0 -1
- package/lib/table/module/custom/panel.min.js +0 -1
- package/lib/table/module/edit/hook.min.js +0 -1
- package/lib/table/module/export/export-panel.min.js +0 -1
- package/lib/table/module/export/hook.min.js +0 -1
- package/lib/table/module/export/import-panel.min.js +0 -1
- package/lib/table/module/export/util.min.js +0 -1
- package/lib/table/module/filter/hook.min.js +0 -1
- package/lib/table/module/filter/panel.min.js +0 -1
- package/lib/table/module/keyboard/hook.min.js +0 -1
- package/lib/table/module/menu/hook.min.js +0 -1
- package/lib/table/module/menu/panel.min.js +0 -1
- package/lib/table/module/validator/hook.min.js +0 -1
- package/lib/table/render/index.min.js +0 -1
- package/lib/table/src/body.min.js +0 -1
- package/lib/table/src/cell.min.js +0 -1
- package/lib/table/src/column.min.js +0 -1
- package/lib/table/src/columnInfo.min.js +0 -1
- package/lib/table/src/emits.min.js +0 -1
- package/lib/table/src/footer.min.js +0 -1
- package/lib/table/src/group.min.js +0 -1
- package/lib/table/src/header.min.js +0 -1
- package/lib/table/src/props.min.js +0 -1
- package/lib/table/src/store.min.js +0 -1
- package/lib/table/src/table.min.js +0 -1
- package/lib/table/src/use/cell-view.min.js +0 -1
- package/lib/table/src/use/index.min.js +0 -1
- package/lib/table/src/util.min.js +0 -1
- package/lib/table/style/style.min.css +0 -1
- package/lib/toolbar/index.min.js +0 -1
- package/lib/toolbar/src/toolbar.min.js +0 -1
- package/lib/ui/index.min.js +0 -1
- package/lib/ui/src/anime.min.js +0 -1
- package/lib/ui/src/comp.min.js +0 -1
- package/lib/ui/src/dom.min.js +0 -1
- package/lib/ui/src/log.min.js +0 -1
- package/lib/ui/src/utils.min.js +0 -1
- package/lib/ui/src/vn.min.js +0 -1
- package/lib/ui/style/style.min.css +0 -0
- package/lib/v-x-e-table/index.min.js +0 -1
- package/lib/v-x-e-table/style/index.js +0 -1
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-colgroup/index.min.js +0 -1
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/index.min.js +0 -1
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-grid/index.min.js +0 -1
- package/lib/vxe-table/index.min.js +0 -1
- package/lib/vxe-table/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.min.js +0 -1
- package/lib/vxe-ui/index.min.js +0 -1
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/lib/vxe-v-x-e-table/index.js +0 -21
- package/lib/vxe-v-x-e-table/index.min.js +0 -1
- package/lib/vxe-v-x-e-table/style/index.js +0 -1
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- /package/{es/iconfont.1792740941484.ttf → dist/iconfont.1792977622800.ttf} +0 -0
- /package/{es/iconfont.1792740941484.woff → dist/iconfont.1792977622800.woff} +0 -0
- /package/{es/iconfont.1792740941484.woff2 → dist/iconfont.1792977622800.woff2} +0 -0
- /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
- /package/es/column/{style.min.css → style.mini.css} +0 -0
- /package/{lib/iconfont.1792740941484.ttf → es/iconfont.1792977622800.ttf} +0 -0
- /package/{lib/iconfont.1792740941484.woff → es/iconfont.1792977622800.woff} +0 -0
- /package/{lib/iconfont.1792740941484.woff2 → es/iconfont.1792977622800.woff2} +0 -0
- /package/es/ui/{style.min.css → style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
- /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
- /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
- /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
- /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
- /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { VxeTableDefines } from '../../../../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
filterStore: {
|
|
5
|
+
type: PropType<VxeTableDefines.FilterStoreObj>;
|
|
6
|
+
default: () => VxeTableDefines.FilterStoreObj;
|
|
7
|
+
};
|
|
8
|
+
}, any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
filterStore: {
|
|
10
|
+
type: PropType<VxeTableDefines.FilterStoreObj>;
|
|
11
|
+
default: () => VxeTableDefines.FilterStoreObj;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
filterStore: VxeTableDefines.FilterStoreObj;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export default _default;
|
|
@@ -1,280 +1,256 @@
|
|
|
1
|
-
import { h, ref, computed, inject, Teleport } from
|
|
2
|
-
import { defineVxeComponent } from
|
|
3
|
-
import { VxeUI } from
|
|
4
|
-
import { formatText, isEnableConf } from
|
|
5
|
-
import { getPropClass } from
|
|
6
|
-
import { getSlotVNs } from
|
|
7
|
-
import { createComponentLog } from
|
|
8
|
-
import XEUtils from
|
|
9
|
-
const { warnLog } = createComponentLog(
|
|
1
|
+
import { h, ref, computed, inject, Teleport } from "vue";
|
|
2
|
+
import { defineVxeComponent } from "../../../ui/src/comp";
|
|
3
|
+
import { VxeUI } from "../../../ui";
|
|
4
|
+
import { formatText, isEnableConf } from "../../../ui/src/utils";
|
|
5
|
+
import { getPropClass } from "../../../ui/src/dom";
|
|
6
|
+
import { getSlotVNs } from "../../../ui/src/vn";
|
|
7
|
+
import { createComponentLog } from "../../../ui/src/log";
|
|
8
|
+
import XEUtils from "xe-utils";
|
|
9
|
+
const { warnLog } = createComponentLog("table");
|
|
10
10
|
const { getI18n, getIcon, renderer, renderEmptyElement } = VxeUI;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
11
|
+
var panel_default = defineVxeComponent({
|
|
12
|
+
name: "VxeTableFilterPanel",
|
|
13
|
+
props: {
|
|
14
|
+
filterStore: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => ({})
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(props, context) {
|
|
20
|
+
const xID = XEUtils.uniqueId();
|
|
21
|
+
const VxeUIScrollbarComponent = VxeUI.getComponent("VxeScrollbar");
|
|
22
|
+
const $xeTable = inject("$xeTable", {});
|
|
23
|
+
const { reactData: tableReactData, internalData: tableInternalData, getComputeMaps } = $xeTable;
|
|
24
|
+
const { computeFilterOpts, computeRendererOpts } = getComputeMaps();
|
|
25
|
+
const refElem = ref();
|
|
26
|
+
const refMaps = {
|
|
27
|
+
refElem
|
|
28
|
+
};
|
|
29
|
+
const $xeFilterPanel = {
|
|
30
|
+
xID,
|
|
31
|
+
props,
|
|
32
|
+
context,
|
|
33
|
+
getRefMaps: () => refMaps
|
|
34
|
+
};
|
|
35
|
+
const computeHasCheckOption = computed(() => {
|
|
36
|
+
const { filterStore } = props;
|
|
37
|
+
const { column } = filterStore;
|
|
38
|
+
return column && column.filters && column.filters.some((option) => option.checked);
|
|
39
|
+
});
|
|
40
|
+
const filterCheckAllEvent = (evnt, value) => {
|
|
41
|
+
const { filterStore } = props;
|
|
42
|
+
const { column } = filterStore;
|
|
43
|
+
if (column && column.filters) {
|
|
44
|
+
column.filters.forEach((option) => {
|
|
45
|
+
option._checked = value;
|
|
46
|
+
option.checked = value;
|
|
39
47
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
48
|
+
}
|
|
49
|
+
filterStore.isAllSelected = value;
|
|
50
|
+
filterStore.isIndeterminate = false;
|
|
51
|
+
};
|
|
52
|
+
const confirmFilter = (evnt) => {
|
|
53
|
+
const { filterStore } = props;
|
|
54
|
+
if (!evnt) {
|
|
55
|
+
warnLog("vxe.error.delFunc", ["confirmFilter", "saveFilterPanelByEvent"]);
|
|
56
|
+
}
|
|
57
|
+
$xeTable.handleFilterConfirmFilter(evnt || new Event("click"), filterStore.column || null);
|
|
58
|
+
};
|
|
59
|
+
const changeRadioOption = (evnt, checked, item) => {
|
|
60
|
+
$xeTable.handleFilterChangeRadioOption(evnt, checked, item);
|
|
61
|
+
};
|
|
62
|
+
const resetFilter = (evnt) => {
|
|
63
|
+
const { filterStore } = props;
|
|
64
|
+
$xeTable.handleFilterResetFilter(evnt, filterStore.column || null);
|
|
65
|
+
};
|
|
66
|
+
const changeMultipleOption = (evnt, checked, item) => {
|
|
67
|
+
$xeTable.handleFilterChangeMultipleOption(evnt, checked, item);
|
|
68
|
+
};
|
|
69
|
+
const changeOption = (evnt, checked, item) => {
|
|
70
|
+
$xeTable.handleFilterChangeOption(evnt, checked, item);
|
|
71
|
+
};
|
|
72
|
+
const changeAllOption = (evnt, checked) => {
|
|
73
|
+
const { filterStore } = props;
|
|
74
|
+
const { column } = filterStore;
|
|
75
|
+
if (column && column.filterMultiple) {
|
|
76
|
+
filterCheckAllEvent(evnt, checked);
|
|
77
|
+
} else {
|
|
78
|
+
resetFilter(evnt);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const filterPanelMethods = {
|
|
82
|
+
changeRadioOption,
|
|
83
|
+
changeMultipleOption,
|
|
84
|
+
changeAllOption,
|
|
85
|
+
changeOption,
|
|
86
|
+
confirmFilter,
|
|
87
|
+
resetFilter
|
|
88
|
+
};
|
|
89
|
+
Object.assign($xeFilterPanel, filterPanelMethods);
|
|
90
|
+
const renderOptions = (filterRender, compConf) => {
|
|
91
|
+
const { filterStore } = props;
|
|
92
|
+
const { column } = filterStore;
|
|
93
|
+
if (!column) {
|
|
94
|
+
return [];
|
|
95
|
+
}
|
|
96
|
+
const filterOpts = computeFilterOpts.value;
|
|
97
|
+
const { useScrollbar } = filterOpts;
|
|
98
|
+
const { filterMultiple, filters, slots } = column;
|
|
99
|
+
const filterOptions = filters || [];
|
|
100
|
+
const filterSlot = slots ? slots.filter : null;
|
|
101
|
+
const params = Object.assign({}, tableInternalData._currFilterParams, { option: filterOptions[0], $panel: $xeFilterPanel, $table: $xeTable });
|
|
102
|
+
const rtFilter = compConf ? compConf.renderTableFilter || compConf.renderFilter : null;
|
|
103
|
+
if (filterSlot) {
|
|
104
|
+
return [
|
|
105
|
+
h("div", {
|
|
106
|
+
class: "vxe-table--filter-template"
|
|
107
|
+
}, $xeTable.callSlot(filterSlot, params))
|
|
108
|
+
];
|
|
109
|
+
} else if (filterRender && rtFilter) {
|
|
110
|
+
return [
|
|
111
|
+
h("div", {
|
|
112
|
+
class: "vxe-table--filter-template"
|
|
113
|
+
}, getSlotVNs(rtFilter(filterRender, params)))
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
const isAllChecked = filterMultiple ? filterStore.isAllSelected : !filterOptions.some((item) => item._checked);
|
|
117
|
+
const isAllIndeterminate = filterMultiple && filterStore.isIndeterminate;
|
|
118
|
+
const optVNs = filterOptions.map((item) => {
|
|
119
|
+
const isChecked = item._checked;
|
|
120
|
+
const isIndeterminate = false;
|
|
121
|
+
return h("div", {
|
|
122
|
+
class: ["vxe-table--filter-option", {
|
|
123
|
+
"is--checked": item._checked
|
|
124
|
+
}],
|
|
125
|
+
title: item.label,
|
|
126
|
+
onClick: (evnt) => {
|
|
127
|
+
changeOption(evnt, !item._checked, item);
|
|
128
|
+
}
|
|
129
|
+
}, (filterMultiple ? [
|
|
130
|
+
h("span", {
|
|
131
|
+
class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
132
|
+
})
|
|
133
|
+
] : []).concat([
|
|
134
|
+
h("span", {
|
|
135
|
+
class: "vxe-checkbox--label"
|
|
136
|
+
}, formatText(item.label, 1))
|
|
137
|
+
]));
|
|
138
|
+
});
|
|
139
|
+
return [
|
|
140
|
+
h("div", {
|
|
141
|
+
class: "vxe-table--filter-header"
|
|
142
|
+
}, [
|
|
143
|
+
h("div", {
|
|
144
|
+
class: ["vxe-table--filter-option", {
|
|
145
|
+
"is--checked": isAllChecked,
|
|
146
|
+
"is--indeterminate": isAllIndeterminate
|
|
147
|
+
}],
|
|
148
|
+
title: getI18n(filterMultiple ? "vxe.table.allTitle" : "vxe.table.allFilter"),
|
|
149
|
+
onClick: (evnt) => {
|
|
150
|
+
changeAllOption(evnt, !filterStore.isAllSelected);
|
|
126
151
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
152
|
+
}, (filterMultiple ? [
|
|
153
|
+
h("span", {
|
|
154
|
+
class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
|
|
155
|
+
})
|
|
156
|
+
] : []).concat([
|
|
157
|
+
h("span", {
|
|
158
|
+
class: "vxe-checkbox--label"
|
|
159
|
+
}, getI18n("vxe.table.allFilter"))
|
|
160
|
+
]))
|
|
161
|
+
]),
|
|
162
|
+
useScrollbar ? h(VxeUIScrollbarComponent, {
|
|
163
|
+
class: "vxe-table--scrollbar-filter-body",
|
|
164
|
+
viewClassName: "vxe-table--scrollbar-filter-body-view"
|
|
165
|
+
}, {
|
|
166
|
+
default: () => optVNs
|
|
167
|
+
}) : h("div", {
|
|
168
|
+
class: "vxe-table--filter-body"
|
|
169
|
+
}, optVNs)
|
|
170
|
+
];
|
|
171
|
+
};
|
|
172
|
+
const renderFooters = () => {
|
|
173
|
+
const { filterStore } = props;
|
|
174
|
+
const { column } = filterStore;
|
|
175
|
+
if (!column) {
|
|
176
|
+
return [];
|
|
177
|
+
}
|
|
178
|
+
const filterOpts = computeFilterOpts.value;
|
|
179
|
+
const rendererOpts = computeRendererOpts.value;
|
|
180
|
+
const hasCheckOption = computeHasCheckOption.value;
|
|
181
|
+
const { filterRender, filterMultiple } = column;
|
|
182
|
+
const { confirmButtonText, resetButtonText, showFooter } = filterOpts;
|
|
183
|
+
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
|
|
184
|
+
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
185
|
+
let showFlFoot = !!filterMultiple;
|
|
186
|
+
if (XEUtils.isBoolean(showFooter)) {
|
|
187
|
+
showFlFoot = showFooter;
|
|
188
|
+
} else if (compConf) {
|
|
189
|
+
showFlFoot = !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false);
|
|
190
|
+
}
|
|
191
|
+
return showFlFoot ? [
|
|
192
|
+
h("div", {
|
|
193
|
+
class: "vxe-table--filter-footer"
|
|
194
|
+
}, [
|
|
195
|
+
h("button", {
|
|
196
|
+
class: {
|
|
197
|
+
"is--disabled": isDisabled
|
|
198
|
+
},
|
|
199
|
+
disabled: isDisabled,
|
|
200
|
+
onClick: confirmFilter
|
|
201
|
+
}, confirmButtonText || getI18n("vxe.table.confirmFilter")),
|
|
202
|
+
h("button", {
|
|
203
|
+
onClick: resetFilter
|
|
204
|
+
}, resetButtonText || getI18n("vxe.table.resetFilter"))
|
|
205
|
+
])
|
|
206
|
+
] : [];
|
|
207
|
+
};
|
|
208
|
+
const renderVN = () => {
|
|
209
|
+
const { filterStore } = props;
|
|
210
|
+
const { initStore } = tableReactData;
|
|
211
|
+
const { visible, column } = filterStore;
|
|
212
|
+
if (!column) {
|
|
213
|
+
return renderEmptyElement($xeFilterPanel);
|
|
214
|
+
}
|
|
215
|
+
const rendererOpts = computeRendererOpts.value;
|
|
216
|
+
const filterRender = column ? column.filterRender : null;
|
|
217
|
+
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
|
|
218
|
+
const filterClassName = compConf ? compConf.tableFilterClassName || compConf.filterClassName : "";
|
|
219
|
+
const params = Object.assign({}, tableInternalData._currFilterParams, { $panel: $xeFilterPanel, $table: $xeTable });
|
|
220
|
+
const tableProps = $xeTable.props;
|
|
221
|
+
const { computeSize } = $xeTable.getComputeMaps();
|
|
222
|
+
const vSize = computeSize.value;
|
|
223
|
+
const filterOpts = computeFilterOpts.value;
|
|
224
|
+
const { transfer, destroyOnClose, className } = filterOpts;
|
|
225
|
+
return h(Teleport, {
|
|
226
|
+
to: "body",
|
|
227
|
+
disabled: !transfer
|
|
228
|
+
}, [
|
|
229
|
+
h("div", {
|
|
230
|
+
ref: refElem,
|
|
231
|
+
class: [
|
|
232
|
+
"vxe-table--filter-wrapper",
|
|
233
|
+
"filter--prevent-default",
|
|
234
|
+
className,
|
|
235
|
+
getPropClass(filterClassName, params),
|
|
236
|
+
{
|
|
237
|
+
[`size--${vSize}`]: vSize,
|
|
238
|
+
"is--animat": tableProps.animat,
|
|
239
|
+
"is--multiple": column.filterMultiple,
|
|
240
|
+
"is--active": visible
|
|
133
241
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
changeOption(evnt, !item._checked, item);
|
|
146
|
-
}
|
|
147
|
-
}, (filterMultiple
|
|
148
|
-
? [
|
|
149
|
-
h('span', {
|
|
150
|
-
class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
151
|
-
})
|
|
152
|
-
]
|
|
153
|
-
: []).concat([
|
|
154
|
-
h('span', {
|
|
155
|
-
class: 'vxe-checkbox--label'
|
|
156
|
-
}, formatText(item.label, 1))
|
|
157
|
-
]));
|
|
158
|
-
});
|
|
159
|
-
return [
|
|
160
|
-
h('div', {
|
|
161
|
-
class: 'vxe-table--filter-header'
|
|
162
|
-
}, [
|
|
163
|
-
h('div', {
|
|
164
|
-
class: ['vxe-table--filter-option', {
|
|
165
|
-
'is--checked': isAllChecked,
|
|
166
|
-
'is--indeterminate': isAllIndeterminate
|
|
167
|
-
}],
|
|
168
|
-
title: getI18n(filterMultiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter'),
|
|
169
|
-
onClick: (evnt) => {
|
|
170
|
-
changeAllOption(evnt, !filterStore.isAllSelected);
|
|
171
|
-
}
|
|
172
|
-
}, (filterMultiple
|
|
173
|
-
? [
|
|
174
|
-
h('span', {
|
|
175
|
-
class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
|
|
176
|
-
})
|
|
177
|
-
]
|
|
178
|
-
: []).concat([
|
|
179
|
-
h('span', {
|
|
180
|
-
class: 'vxe-checkbox--label'
|
|
181
|
-
}, getI18n('vxe.table.allFilter'))
|
|
182
|
-
]))
|
|
183
|
-
]),
|
|
184
|
-
useScrollbar
|
|
185
|
-
? h(VxeUIScrollbarComponent, {
|
|
186
|
-
class: 'vxe-table--scrollbar-filter-body',
|
|
187
|
-
viewClassName: 'vxe-table--scrollbar-filter-body-view'
|
|
188
|
-
}, {
|
|
189
|
-
default: () => optVNs
|
|
190
|
-
})
|
|
191
|
-
: h('div', {
|
|
192
|
-
class: 'vxe-table--filter-body'
|
|
193
|
-
}, optVNs)
|
|
194
|
-
];
|
|
195
|
-
};
|
|
196
|
-
const renderFooters = () => {
|
|
197
|
-
const { filterStore } = props;
|
|
198
|
-
const { column } = filterStore;
|
|
199
|
-
if (!column) {
|
|
200
|
-
return [];
|
|
201
|
-
}
|
|
202
|
-
const filterOpts = computeFilterOpts.value;
|
|
203
|
-
const rendererOpts = computeRendererOpts.value;
|
|
204
|
-
const hasCheckOption = computeHasCheckOption.value;
|
|
205
|
-
const { filterRender, filterMultiple } = column;
|
|
206
|
-
const { confirmButtonText, resetButtonText, showFooter } = filterOpts;
|
|
207
|
-
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? (rendererOpts[filterRender.name] || renderer.get(filterRender.name)) : null;
|
|
208
|
-
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate;
|
|
209
|
-
let showFlFoot = !!filterMultiple;
|
|
210
|
-
if (XEUtils.isBoolean(showFooter)) {
|
|
211
|
-
showFlFoot = showFooter;
|
|
212
|
-
}
|
|
213
|
-
else if (compConf) {
|
|
214
|
-
showFlFoot = !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false);
|
|
215
|
-
}
|
|
216
|
-
return showFlFoot
|
|
217
|
-
? [
|
|
218
|
-
h('div', {
|
|
219
|
-
class: 'vxe-table--filter-footer'
|
|
220
|
-
}, [
|
|
221
|
-
h('button', {
|
|
222
|
-
class: {
|
|
223
|
-
'is--disabled': isDisabled
|
|
224
|
-
},
|
|
225
|
-
disabled: isDisabled,
|
|
226
|
-
onClick: confirmFilter
|
|
227
|
-
}, confirmButtonText || getI18n('vxe.table.confirmFilter')),
|
|
228
|
-
h('button', {
|
|
229
|
-
onClick: resetFilter
|
|
230
|
-
}, resetButtonText || getI18n('vxe.table.resetFilter'))
|
|
231
|
-
])
|
|
232
|
-
]
|
|
233
|
-
: [];
|
|
234
|
-
};
|
|
235
|
-
const renderVN = () => {
|
|
236
|
-
const { filterStore } = props;
|
|
237
|
-
const { initStore } = tableReactData;
|
|
238
|
-
const { visible, column } = filterStore;
|
|
239
|
-
if (!column) {
|
|
240
|
-
return renderEmptyElement($xeFilterPanel);
|
|
241
|
-
}
|
|
242
|
-
const rendererOpts = computeRendererOpts.value;
|
|
243
|
-
const filterRender = column ? column.filterRender : null;
|
|
244
|
-
const compConf = filterRender && isEnableConf(filterRender) && filterRender.name ? (rendererOpts[filterRender.name] || renderer.get(filterRender.name)) : null;
|
|
245
|
-
const filterClassName = compConf ? (compConf.tableFilterClassName || compConf.filterClassName) : '';
|
|
246
|
-
const params = Object.assign({}, tableInternalData._currFilterParams, { $panel: $xeFilterPanel, $table: $xeTable });
|
|
247
|
-
const tableProps = $xeTable.props;
|
|
248
|
-
const { computeSize } = $xeTable.getComputeMaps();
|
|
249
|
-
const vSize = computeSize.value;
|
|
250
|
-
const filterOpts = computeFilterOpts.value;
|
|
251
|
-
const { transfer, destroyOnClose, className } = filterOpts;
|
|
252
|
-
return h(Teleport, {
|
|
253
|
-
to: 'body',
|
|
254
|
-
disabled: !transfer
|
|
255
|
-
}, [
|
|
256
|
-
h('div', {
|
|
257
|
-
ref: refElem,
|
|
258
|
-
class: [
|
|
259
|
-
'vxe-table--filter-wrapper',
|
|
260
|
-
'filter--prevent-default',
|
|
261
|
-
className,
|
|
262
|
-
getPropClass(filterClassName, params),
|
|
263
|
-
{
|
|
264
|
-
[`size--${vSize}`]: vSize,
|
|
265
|
-
'is--animat': tableProps.animat,
|
|
266
|
-
'is--multiple': column.filterMultiple,
|
|
267
|
-
'is--active': visible
|
|
268
|
-
}
|
|
269
|
-
],
|
|
270
|
-
style: filterStore.style
|
|
271
|
-
}, initStore.filter && (destroyOnClose ? visible : true) && column ? renderOptions(filterRender, compConf).concat(renderFooters()) : [])
|
|
272
|
-
]);
|
|
273
|
-
};
|
|
274
|
-
$xeFilterPanel.renderVN = renderVN;
|
|
275
|
-
return $xeFilterPanel;
|
|
276
|
-
},
|
|
277
|
-
render() {
|
|
278
|
-
return this.renderVN();
|
|
279
|
-
}
|
|
242
|
+
],
|
|
243
|
+
style: filterStore.style
|
|
244
|
+
}, initStore.filter && (destroyOnClose ? visible : true) && column ? renderOptions(filterRender, compConf).concat(renderFooters()) : [])
|
|
245
|
+
]);
|
|
246
|
+
};
|
|
247
|
+
$xeFilterPanel.renderVN = renderVN;
|
|
248
|
+
return $xeFilterPanel;
|
|
249
|
+
},
|
|
250
|
+
render() {
|
|
251
|
+
return this.renderVN();
|
|
252
|
+
}
|
|
280
253
|
});
|
|
254
|
+
export {
|
|
255
|
+
panel_default as default
|
|
256
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|