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
package/lib/table/src/column.js
CHANGED
|
@@ -1,14 +1,41 @@
|
|
|
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 column_exports = {};
|
|
30
|
+
__export(column_exports, {
|
|
31
|
+
columnProps: () => columnProps,
|
|
32
|
+
columnWatch: () => columnWatch,
|
|
33
|
+
default: () => column_default
|
|
5
34
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const columnProps = exports.columnProps = {
|
|
35
|
+
module.exports = __toCommonJS(column_exports);
|
|
36
|
+
var import_util = require("./util");
|
|
37
|
+
var import_cell = __toESM(require("./cell"));
|
|
38
|
+
const columnProps = {
|
|
12
39
|
// 列唯一主键
|
|
13
40
|
colId: [String, Number],
|
|
14
41
|
// 渲染类型 seq,radio,checkbox,expand,html
|
|
@@ -152,23 +179,23 @@ const columnProps = exports.columnProps = {
|
|
|
152
179
|
// 额外的参数
|
|
153
180
|
params: Object
|
|
154
181
|
};
|
|
155
|
-
const columnWatch =
|
|
156
|
-
Object.keys(columnProps).forEach(name => {
|
|
157
|
-
columnWatch[name] = function
|
|
182
|
+
const columnWatch = {};
|
|
183
|
+
Object.keys(columnProps).forEach((name) => {
|
|
184
|
+
columnWatch[name] = function(value) {
|
|
158
185
|
const $xeTable = this.$xeTable;
|
|
159
186
|
this.columnConfig.update(name, value);
|
|
160
187
|
if ($xeTable) {
|
|
161
|
-
if (name ===
|
|
188
|
+
if (name === "filters") {
|
|
162
189
|
$xeTable.setFilter(this.columnConfig, value);
|
|
163
190
|
$xeTable.handleUpdateDataQueue();
|
|
164
|
-
} else if ([
|
|
191
|
+
} else if (["visible", "fixed", "width", "minWidth", "maxWidth"].includes(name)) {
|
|
165
192
|
$xeTable.handleRefreshColumnQueue();
|
|
166
193
|
}
|
|
167
194
|
}
|
|
168
195
|
};
|
|
169
196
|
});
|
|
170
|
-
var
|
|
171
|
-
name:
|
|
197
|
+
var column_default = {
|
|
198
|
+
name: "VxeColumn",
|
|
172
199
|
props: columnProps,
|
|
173
200
|
provide() {
|
|
174
201
|
const $xeColumn = this;
|
|
@@ -191,20 +218,19 @@ var _default = exports.default = /* define-vxe-component start */(0, _comp.defin
|
|
|
191
218
|
const $xeColumn = this;
|
|
192
219
|
const props = $xeColumn;
|
|
193
220
|
const $xeTable = this.$xeTable;
|
|
194
|
-
this.columnConfig =
|
|
221
|
+
this.columnConfig = import_cell.default.createColumn($xeTable, props);
|
|
195
222
|
},
|
|
196
223
|
mounted() {
|
|
197
224
|
const $xeColumn = this;
|
|
198
225
|
this.columnConfig.slots = this.$scopedSlots;
|
|
199
|
-
(0,
|
|
226
|
+
(0, import_util.assembleColumn)($xeColumn);
|
|
200
227
|
},
|
|
201
228
|
destroyed() {
|
|
202
229
|
const $xeColumn = this;
|
|
203
|
-
(0,
|
|
230
|
+
(0, import_util.destroyColumn)($xeColumn);
|
|
204
231
|
},
|
|
205
232
|
render(h) {
|
|
206
|
-
return h(
|
|
233
|
+
return h("div", this.$slots.default);
|
|
207
234
|
},
|
|
208
|
-
methods:
|
|
209
|
-
}
|
|
210
|
-
/* define-vxe-component end */
|
|
235
|
+
methods: import_cell.default
|
|
236
|
+
};
|
|
@@ -1,118 +1,113 @@
|
|
|
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 columnInfo_exports = {};
|
|
30
|
+
__export(columnInfo_exports, {
|
|
31
|
+
ColumnInfo: () => ColumnInfo
|
|
5
32
|
});
|
|
6
|
-
exports
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
warnLog,
|
|
16
|
-
errLog
|
|
17
|
-
} = (0, _log.createComponentLog)('table');
|
|
18
|
-
const {
|
|
19
|
-
getI18n,
|
|
20
|
-
formats,
|
|
21
|
-
renderer
|
|
22
|
-
} = _ui.VxeUI;
|
|
33
|
+
module.exports = __toCommonJS(columnInfo_exports);
|
|
34
|
+
var import_xe_utils = __toESM(require("xe-utils"));
|
|
35
|
+
var import_core = require("@vxe-ui/core");
|
|
36
|
+
var import_util = require("./util");
|
|
37
|
+
var import_utils = require("../../ui/src/utils");
|
|
38
|
+
var import_dom = require("../../ui/src/dom");
|
|
39
|
+
var import_log = require("../../ui/src/log");
|
|
40
|
+
const { warnLog, errLog } = (0, import_log.createComponentLog)("table");
|
|
41
|
+
const { getI18n, formats, renderer } = import_core.VxeUI;
|
|
23
42
|
class ColumnInfo {
|
|
24
43
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
25
|
-
constructor($xeTable, colConfs, {
|
|
26
|
-
renderHeader,
|
|
27
|
-
renderCell,
|
|
28
|
-
renderFooter,
|
|
29
|
-
renderData
|
|
30
|
-
} = {}) {
|
|
44
|
+
constructor($xeTable, colConfs, { renderHeader, renderCell, renderFooter, renderData } = {}) {
|
|
31
45
|
const tableProps = $xeTable;
|
|
32
46
|
const $xeGrid = $xeTable.$xeGrid;
|
|
33
47
|
const $xeGantt = $xeTable.$xeGantt;
|
|
34
48
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
|
35
|
-
const {
|
|
36
|
-
|
|
37
|
-
field,
|
|
38
|
-
width,
|
|
39
|
-
visible,
|
|
40
|
-
fixed,
|
|
41
|
-
align,
|
|
42
|
-
headerAlign,
|
|
43
|
-
footerAlign,
|
|
44
|
-
aggFunc,
|
|
45
|
-
formatter,
|
|
46
|
-
filterMultiple,
|
|
47
|
-
cellRender,
|
|
48
|
-
editRender,
|
|
49
|
-
filterRender
|
|
50
|
-
} = colConfs;
|
|
51
|
-
const colId = colConfs.colId || _xeUtils.default.uniqueId('col_');
|
|
49
|
+
const { type, field, width, visible, fixed, align, headerAlign, footerAlign, aggFunc, formatter, filterMultiple, cellRender, editRender, filterRender } = colConfs;
|
|
50
|
+
const colId = colConfs.colId || import_xe_utils.default.uniqueId("col_");
|
|
52
51
|
const proxyOpts = $xeGrid ? $xeGrid.computeProxyOpts : null;
|
|
53
|
-
const defaultVisible =
|
|
54
|
-
const defaultRenderWidth = width && (0,
|
|
52
|
+
const defaultVisible = import_xe_utils.default.isBoolean(visible) ? visible : true;
|
|
53
|
+
const defaultRenderWidth = width && (0, import_dom.isPx)(width) && width !== "auto" ? Math.max(0, import_xe_utils.default.toInteger(width)) : 0;
|
|
55
54
|
const rendererOpts = $xeTable.computeRendererOpts;
|
|
56
|
-
const flCompConf = filterRender && (0,
|
|
55
|
+
const flCompConf = filterRender && (0, import_utils.isEnableConf)(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
|
|
57
56
|
const ctFilterOptions = flCompConf ? flCompConf.createTableFilterOptions : null;
|
|
58
|
-
const filters = (0,
|
|
59
|
-
const types = [
|
|
57
|
+
const filters = (0, import_util.toFilters)(colConfs.filters, colId);
|
|
58
|
+
const types = ["seq", "checkbox", "radio", "expand", "html"];
|
|
60
59
|
if (type && types.indexOf(type) === -1) {
|
|
61
|
-
warnLog(
|
|
60
|
+
warnLog("vxe.error.errProp", [`type=${type}`, types.join(", ")]);
|
|
62
61
|
}
|
|
63
|
-
if (
|
|
64
|
-
warnLog(
|
|
62
|
+
if (import_xe_utils.default.isBoolean(cellRender) || cellRender && !import_xe_utils.default.isObject(cellRender)) {
|
|
63
|
+
warnLog("vxe.error.errProp", [`column.cell-render=${cellRender}`, "column.cell-render={}"]);
|
|
65
64
|
}
|
|
66
|
-
if (
|
|
67
|
-
warnLog(
|
|
65
|
+
if (import_xe_utils.default.isBoolean(editRender) || editRender && !import_xe_utils.default.isObject(editRender)) {
|
|
66
|
+
warnLog("vxe.error.errProp", [`column.edit-render=${editRender}`, "column.edit-render={}"]);
|
|
68
67
|
}
|
|
69
|
-
if (type ===
|
|
70
|
-
const {
|
|
71
|
-
treeConfig
|
|
72
|
-
} = tableProps;
|
|
68
|
+
if (type === "expand") {
|
|
69
|
+
const { treeConfig } = tableProps;
|
|
73
70
|
if (treeConfig && ($xeTable.treeOpts.showLine || $xeTable.treeOpts.line)) {
|
|
74
|
-
errLog(
|
|
71
|
+
errLog("vxe.error.errConflicts", ["tree-config.line", "column.type=expand"]);
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
|
-
// 参数已废弃
|
|
78
74
|
if (colConfs.remoteSort) {
|
|
79
|
-
warnLog(
|
|
75
|
+
warnLog("vxe.error.delProp", ["column.remote-sort", "sort-config.remote"]);
|
|
80
76
|
}
|
|
81
|
-
// 参数已废弃
|
|
82
77
|
if (colConfs.sortMethod) {
|
|
83
|
-
warnLog(
|
|
78
|
+
warnLog("vxe.error.delProp", ["column.sort-method", "sort-config.sortMethod"]);
|
|
84
79
|
}
|
|
85
80
|
if (formatter) {
|
|
86
|
-
if (
|
|
87
|
-
const gFormatOpts = formats.get(formatter) ||
|
|
88
|
-
if (!gFormatOpts || !
|
|
89
|
-
errLog(
|
|
81
|
+
if (import_xe_utils.default.isString(formatter)) {
|
|
82
|
+
const gFormatOpts = formats.get(formatter) || import_xe_utils.default[formatter];
|
|
83
|
+
if (!gFormatOpts || !import_xe_utils.default.isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
|
|
84
|
+
errLog("vxe.error.notFormats", [formatter]);
|
|
90
85
|
}
|
|
91
|
-
} else if (
|
|
92
|
-
const gFormatOpts = formats.get(formatter[0]) ||
|
|
93
|
-
if (!gFormatOpts || !
|
|
94
|
-
errLog(
|
|
86
|
+
} else if (import_xe_utils.default.isArray(formatter)) {
|
|
87
|
+
const gFormatOpts = formats.get(formatter[0]) || import_xe_utils.default[formatter[0]];
|
|
88
|
+
if (!gFormatOpts || !import_xe_utils.default.isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
|
|
89
|
+
errLog("vxe.error.notFormats", [formatter[0]]);
|
|
95
90
|
}
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
93
|
if (aggFunc) {
|
|
99
94
|
if (!$xeTable.handlePivotTableAggData && aggFunc !== true) {
|
|
100
|
-
errLog(
|
|
95
|
+
errLog("vxe.error.errProp", [`column.agg-func=${aggFunc}`, "column.agg-func=true"]);
|
|
101
96
|
}
|
|
102
97
|
}
|
|
103
98
|
if (field && editRender) {
|
|
104
99
|
if (editRender.startField && `${editRender.startField}`.indexOf(field) >= 0) {
|
|
105
|
-
errLog(
|
|
100
|
+
errLog("vxe.error.modelConflicts", [`field=${field}`, `edit-render.startField=${editRender.startField}`]);
|
|
106
101
|
}
|
|
107
102
|
if (editRender.endField && `${editRender.endField}`.indexOf(field) >= 0) {
|
|
108
|
-
errLog(
|
|
103
|
+
errLog("vxe.error.modelConflicts", [`field=${field}`, `edit-render.endField=${editRender.endField}`]);
|
|
109
104
|
}
|
|
110
105
|
}
|
|
111
106
|
Object.assign(this, {
|
|
112
107
|
// 基本属性
|
|
113
108
|
type: colConfs.type,
|
|
114
109
|
property: colConfs.field,
|
|
115
|
-
field
|
|
110
|
+
field,
|
|
116
111
|
title: colConfs.title,
|
|
117
112
|
width: colConfs.width,
|
|
118
113
|
minWidth: colConfs.minWidth,
|
|
@@ -140,12 +135,12 @@ class ColumnInfo {
|
|
|
140
135
|
sortMethod: colConfs.sortMethod,
|
|
141
136
|
// 参数已废弃
|
|
142
137
|
remoteSort: colConfs.remoteSort,
|
|
143
|
-
filters
|
|
144
|
-
filterMultiple:
|
|
138
|
+
filters,
|
|
139
|
+
filterMultiple: import_xe_utils.default.isBoolean(filterMultiple) ? filterMultiple : true,
|
|
145
140
|
filterMethod: colConfs.filterMethod,
|
|
146
141
|
filterResetMethod: colConfs.filterResetMethod,
|
|
147
142
|
filterRecoverMethod: colConfs.filterRecoverMethod,
|
|
148
|
-
filterRender
|
|
143
|
+
filterRender,
|
|
149
144
|
floatingFilters: colConfs.floatingFilters,
|
|
150
145
|
rules: colConfs.rules,
|
|
151
146
|
rowGroupNode: colConfs.rowGroupNode,
|
|
@@ -154,7 +149,7 @@ class ColumnInfo {
|
|
|
154
149
|
rowResize: colConfs.rowResize,
|
|
155
150
|
cellType: colConfs.cellType,
|
|
156
151
|
cellRender: colConfs.cellRender,
|
|
157
|
-
editRender
|
|
152
|
+
editRender,
|
|
158
153
|
contentRender: colConfs.contentRender,
|
|
159
154
|
headerExportMethod: colConfs.headerExportMethod,
|
|
160
155
|
exportMethod: colConfs.exportMethod,
|
|
@@ -175,7 +170,7 @@ class ColumnInfo {
|
|
|
175
170
|
// 内部属性(一旦被使用,将导致不可升级版本)
|
|
176
171
|
defaultParentId: null,
|
|
177
172
|
halfVisible: false,
|
|
178
|
-
defaultVisible
|
|
173
|
+
defaultVisible,
|
|
179
174
|
defaultFixed: fixed,
|
|
180
175
|
defaultAlign: align,
|
|
181
176
|
defaultHeaderAlign: headerAlign,
|
|
@@ -200,13 +195,13 @@ class ColumnInfo {
|
|
|
200
195
|
// 用于记录自定义列顺序
|
|
201
196
|
renderSortNumber: 0,
|
|
202
197
|
// 用于记录自定义列顺序
|
|
203
|
-
renderAggFn:
|
|
198
|
+
renderAggFn: "",
|
|
204
199
|
renderAggDigits: null,
|
|
205
200
|
renderAggFormat: null,
|
|
206
|
-
renderAlign:
|
|
207
|
-
renderHeaderAlign:
|
|
208
|
-
renderFooterAlign:
|
|
209
|
-
renderFixed:
|
|
201
|
+
renderAlign: "",
|
|
202
|
+
renderHeaderAlign: "",
|
|
203
|
+
renderFooterAlign: "",
|
|
204
|
+
renderFixed: "",
|
|
210
205
|
renderVisible: false,
|
|
211
206
|
renderWidth: defaultRenderWidth,
|
|
212
207
|
renderHeight: 0,
|
|
@@ -226,41 +221,28 @@ class ColumnInfo {
|
|
|
226
221
|
slots: colConfs.slots
|
|
227
222
|
});
|
|
228
223
|
if (ctFilterOptions && (!filters || !filters.length)) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
column: this
|
|
232
|
-
}), colId);
|
|
224
|
+
;
|
|
225
|
+
this.filters = (0, import_util.toFilters)(ctFilterOptions({ $table: $xeTable, column: this }), colId);
|
|
233
226
|
}
|
|
234
227
|
if ($xeGGWrapper) {
|
|
235
228
|
if (proxyOpts && proxyOpts.beforeColumn) {
|
|
236
|
-
proxyOpts.beforeColumn({
|
|
237
|
-
$table: $xeTable,
|
|
238
|
-
$grid: $xeGrid,
|
|
239
|
-
$gantt: $xeGantt,
|
|
240
|
-
column: this
|
|
241
|
-
});
|
|
229
|
+
proxyOpts.beforeColumn({ $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, column: this });
|
|
242
230
|
}
|
|
243
231
|
}
|
|
244
232
|
}
|
|
245
233
|
getTitle() {
|
|
246
|
-
return (0,
|
|
234
|
+
return (0, import_utils.getFuncText)(this.title || (this.type === "seq" ? getI18n("vxe.table.seqTitle") : ""));
|
|
247
235
|
}
|
|
248
236
|
getKey() {
|
|
249
|
-
const {
|
|
250
|
-
type,
|
|
251
|
-
field
|
|
252
|
-
} = this;
|
|
237
|
+
const { type, field } = this;
|
|
253
238
|
return field || (type ? `type=${type}` : null);
|
|
254
239
|
}
|
|
255
240
|
update(name, value) {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if (name === 'field') {
|
|
259
|
-
// 兼容旧属性
|
|
241
|
+
if (name !== "filters") {
|
|
242
|
+
if (name === "field") {
|
|
260
243
|
this.property = value;
|
|
261
244
|
}
|
|
262
245
|
this[name] = value;
|
|
263
246
|
}
|
|
264
247
|
}
|
|
265
248
|
}
|
|
266
|
-
exports.ColumnInfo = ColumnInfo;
|
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var expand_height_exports = {};
|
|
20
|
+
__export(expand_height_exports, {
|
|
21
|
+
createExpandHeightCache: () => createExpandHeightCache,
|
|
22
|
+
getRowExpandHeight: () => getRowExpandHeight
|
|
5
23
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
const estimateValues = new WeakMap();
|
|
9
|
-
/** 仅缓存当前挂载的展开区。没有完整观察能力时保留同步测量路径。 */
|
|
24
|
+
module.exports = __toCommonJS(expand_height_exports);
|
|
25
|
+
const estimateValues = /* @__PURE__ */ new WeakMap();
|
|
10
26
|
function createExpandHeightCache($table, onResize) {
|
|
11
|
-
const entries = new Map();
|
|
27
|
+
const entries = /* @__PURE__ */ new Map();
|
|
12
28
|
let disposed = false;
|
|
13
29
|
let queued = false;
|
|
14
30
|
let container = null;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
records.forEach(record => {
|
|
31
|
+
const invalidateMutations = (records) => {
|
|
32
|
+
records.forEach((record) => {
|
|
18
33
|
let node = record.target;
|
|
19
34
|
if (node === container) {
|
|
20
|
-
if (record.type ===
|
|
21
|
-
|
|
22
|
-
|
|
35
|
+
if (record.type === "attributes")
|
|
36
|
+
entries.forEach((entry2) => {
|
|
37
|
+
entry2.dirty = true;
|
|
38
|
+
});
|
|
23
39
|
return;
|
|
24
40
|
}
|
|
25
41
|
while (node && node.parentNode !== container) node = node.parentNode;
|
|
@@ -27,10 +43,10 @@ function createExpandHeightCache($table, onResize) {
|
|
|
27
43
|
if (entry) entry.dirty = true;
|
|
28
44
|
});
|
|
29
45
|
};
|
|
30
|
-
const supported = typeof ResizeObserver !==
|
|
31
|
-
const observer = supported ? new ResizeObserver(records => {
|
|
46
|
+
const supported = typeof ResizeObserver !== "undefined" && typeof MutationObserver !== "undefined";
|
|
47
|
+
const observer = supported ? new ResizeObserver((records) => {
|
|
32
48
|
let changed = false;
|
|
33
|
-
records.forEach(record => {
|
|
49
|
+
records.forEach((record) => {
|
|
34
50
|
const entry = entries.get(record.target);
|
|
35
51
|
if (entry) {
|
|
36
52
|
entry.dirty = true;
|
|
@@ -45,10 +61,9 @@ function createExpandHeightCache($table, onResize) {
|
|
|
45
61
|
});
|
|
46
62
|
}
|
|
47
63
|
}) : null;
|
|
48
|
-
// 内容/样式变化先失效,避免下一次滚动发生在 ResizeObserver 通知之前。
|
|
49
64
|
const mutations = supported ? new MutationObserver(invalidateMutations) : null;
|
|
50
65
|
let width = -1;
|
|
51
|
-
$table.$once(
|
|
66
|
+
$table.$once("hook:beforeDestroy", () => {
|
|
52
67
|
disposed = true;
|
|
53
68
|
if (observer) observer.disconnect();
|
|
54
69
|
if (mutations) mutations.disconnect();
|
|
@@ -57,18 +72,12 @@ function createExpandHeightCache($table, onResize) {
|
|
|
57
72
|
});
|
|
58
73
|
return {
|
|
59
74
|
sync(element) {
|
|
60
|
-
// nextTick 可能先于观察器回调执行,测量前消费尚未投递的失效记录。
|
|
61
75
|
if (mutations) invalidateMutations(mutations.takeRecords());
|
|
62
76
|
const nextWidth = element.clientWidth;
|
|
63
77
|
if (container !== element) {
|
|
64
78
|
if (mutations) {
|
|
65
79
|
mutations.disconnect();
|
|
66
|
-
mutations.observe(element, {
|
|
67
|
-
subtree: true,
|
|
68
|
-
childList: true,
|
|
69
|
-
attributes: true,
|
|
70
|
-
characterData: true
|
|
71
|
-
});
|
|
80
|
+
mutations.observe(element, { subtree: true, childList: true, attributes: true, characterData: true });
|
|
72
81
|
}
|
|
73
82
|
container = element;
|
|
74
83
|
width = -1;
|
|
@@ -87,9 +96,8 @@ function createExpandHeightCache($table, onResize) {
|
|
|
87
96
|
if (element.style.top === top) return;
|
|
88
97
|
if (mutations) invalidateMutations(mutations.takeRecords());
|
|
89
98
|
element.style.top = top;
|
|
90
|
-
// 仅忽略本次同步位置写入;之前的业务样式变更已在上面处理。
|
|
91
99
|
if (mutations) {
|
|
92
|
-
invalidateMutations(mutations.takeRecords().filter(record => record.target !== element || record.type !==
|
|
100
|
+
invalidateMutations(mutations.takeRecords().filter((record) => record.target !== element || record.type !== "attributes" || record.attributeName !== "style"));
|
|
93
101
|
}
|
|
94
102
|
},
|
|
95
103
|
measure(element, binding, reuseMeasurement) {
|
|
@@ -98,17 +106,10 @@ function createExpandHeightCache($table, onResize) {
|
|
|
98
106
|
return previous.height;
|
|
99
107
|
}
|
|
100
108
|
const height = element.offsetHeight;
|
|
101
|
-
entries.set(element, {
|
|
102
|
-
binding,
|
|
103
|
-
height,
|
|
104
|
-
dirty: false
|
|
105
|
-
});
|
|
109
|
+
entries.set(element, { binding, height, dirty: false });
|
|
106
110
|
if (observer && !previous) {
|
|
107
|
-
// 旧实现不支持 box 选项时继续使用原有同步读取,不缓存滚动测量。
|
|
108
111
|
try {
|
|
109
|
-
observer.observe(element, {
|
|
110
|
-
box: 'border-box'
|
|
111
|
-
});
|
|
112
|
+
observer.observe(element, { box: "border-box" });
|
|
112
113
|
} catch (e) {
|
|
113
114
|
entries.delete(element);
|
|
114
115
|
}
|
|
@@ -117,22 +118,17 @@ function createExpandHeightCache($table, onResize) {
|
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
|
-
/** 估算只用于未测量的占位及滚动几何,不约束展开内容的实际 CSS 高度。 */
|
|
121
121
|
function getRowExpandHeight($table, row, record) {
|
|
122
122
|
const options = $table.computeExpandOpts;
|
|
123
123
|
let estimatedHeight = 0;
|
|
124
|
-
if (!options.height && options.mode ===
|
|
125
|
-
const estimate = options.estimateHeight({
|
|
126
|
-
|
|
127
|
-
$table
|
|
128
|
-
});
|
|
129
|
-
if (typeof estimate === 'number' && Number.isFinite(estimate) && estimate >= 0) {
|
|
130
|
-
// 例如未挂载子表的条数变化:不能继续使用旧条数的实测高度。
|
|
124
|
+
if (!options.height && options.mode === "fixed" && options.estimateHeight) {
|
|
125
|
+
const estimate = options.estimateHeight({ row, $table });
|
|
126
|
+
if (typeof estimate === "number" && Number.isFinite(estimate) && estimate >= 0) {
|
|
131
127
|
const previous = estimateValues.get(record);
|
|
132
|
-
if (previous !==
|
|
128
|
+
if (previous !== void 0 && previous !== estimate) record.expandHeight = 0;
|
|
133
129
|
estimateValues.set(record, estimate);
|
|
134
130
|
estimatedHeight = estimate;
|
|
135
131
|
}
|
|
136
132
|
}
|
|
137
133
|
return record.expandHeight || options.height || estimatedHeight;
|
|
138
|
-
}
|
|
134
|
+
}
|