tomtaw-vxe-table 3.25.13 → 3.25.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/colgroup/index.d.ts +122 -0
- package/es/colgroup/index.js +16 -13
- package/es/column/index.d.ts +122 -0
- package/es/column/index.js +16 -13
- package/es/components.d.ts +12 -0
- package/es/components.js +28 -31
- package/es/grid/index.d.ts +1252 -0
- package/es/grid/index.js +18 -13
- package/es/grid/src/grid.d.ts +638 -0
- package/es/grid/src/grid.js +1883 -1876
- package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.esm.js +14 -21
- package/es/index.js +15 -0
- package/es/locale/lang/ar-EG.d.ts +908 -2
- package/es/locale/lang/ar-EG.js +906 -899
- package/es/locale/lang/de-DE.d.ts +908 -2
- package/es/locale/lang/de-DE.js +906 -899
- package/es/locale/lang/en-US.d.ts +908 -2
- package/es/locale/lang/en-US.js +906 -899
- package/es/locale/lang/es-ES.d.ts +908 -2
- package/es/locale/lang/es-ES.js +906 -899
- package/es/locale/lang/fr-FR.d.ts +908 -2
- package/es/locale/lang/fr-FR.js +906 -899
- package/es/locale/lang/hu-HU.d.ts +908 -2
- package/es/locale/lang/hu-HU.js +906 -899
- package/es/locale/lang/hy-AM.d.ts +908 -2
- package/es/locale/lang/hy-AM.js +906 -899
- package/es/locale/lang/id-ID.d.ts +908 -2
- package/es/locale/lang/id-ID.js +906 -899
- package/es/locale/lang/it-IT.d.ts +908 -2
- package/es/locale/lang/it-IT.js +906 -899
- package/es/locale/lang/ja-JP.d.ts +908 -2
- package/es/locale/lang/ja-JP.js +906 -899
- package/es/locale/lang/ko-KR.d.ts +908 -2
- package/es/locale/lang/ko-KR.js +906 -899
- package/es/locale/lang/ms-MY.d.ts +908 -2
- package/es/locale/lang/ms-MY.js +906 -899
- package/es/locale/lang/nb-NO.d.ts +908 -2
- package/es/locale/lang/nb-NO.js +906 -899
- package/es/locale/lang/pt-BR.d.ts +908 -2
- package/es/locale/lang/pt-BR.js +906 -899
- package/es/locale/lang/ru-RU.d.ts +908 -2
- package/es/locale/lang/ru-RU.js +906 -899
- package/es/locale/lang/th-TH.d.ts +908 -2
- package/es/locale/lang/th-TH.js +906 -899
- package/es/locale/lang/ug-CN.d.ts +908 -2
- package/es/locale/lang/ug-CN.js +906 -899
- package/es/locale/lang/uk-UA.d.ts +908 -2
- package/es/locale/lang/uk-UA.js +906 -899
- package/es/locale/lang/uz-UZ.d.ts +908 -2
- package/es/locale/lang/uz-UZ.js +906 -899
- package/es/locale/lang/vi-VN.d.ts +908 -2
- package/es/locale/lang/vi-VN.js +906 -899
- package/es/locale/lang/zh-CHT.d.ts +908 -2
- package/es/locale/lang/zh-CHT.js +906 -899
- package/es/locale/lang/zh-CN.d.ts +908 -2
- package/es/locale/lang/zh-CN.js +906 -899
- package/es/locale/lang/zh-HK.d.ts +908 -2
- package/es/locale/lang/zh-HK.js +910 -2
- package/es/locale/lang/zh-MO.d.ts +908 -2
- package/es/locale/lang/zh-MO.js +910 -2
- package/es/locale/lang/zh-TC.d.ts +908 -0
- package/es/locale/lang/zh-TC.js +910 -2
- package/es/locale/lang/zh-TW.d.ts +908 -2
- package/es/locale/lang/zh-TW.js +910 -2
- package/es/style.css +4499 -1
- package/es/style.mini.css +1 -0
- package/es/table/index.d.ts +4 -0
- package/es/table/index.js +49 -44
- package/es/table/module/custom/mixin.d.ts +4 -0
- package/es/table/module/custom/mixin.js +476 -487
- package/es/table/module/custom/panel.d.ts +57 -0
- package/es/table/module/custom/panel.js +1939 -1771
- package/es/table/module/edit/mixin.d.ts +2 -0
- package/es/table/module/edit/mixin.js +1097 -1110
- package/es/table/module/export/export-panel.d.ts +51 -0
- package/es/table/module/export/export-panel.js +718 -683
- package/es/table/module/export/import-panel.d.ts +39 -0
- package/es/table/module/export/import-panel.js +327 -294
- package/es/table/module/export/mixin.d.ts +2 -0
- package/es/table/module/export/mixin.js +1838 -1860
- package/es/table/module/export/util.d.ts +5 -0
- package/es/table/module/export/util.js +20 -17
- package/es/table/module/filter/mixin.d.ts +4 -0
- package/es/table/module/filter/mixin.js +492 -508
- package/es/table/module/filter/panel.d.ts +41 -0
- package/es/table/module/filter/panel.js +342 -293
- package/es/table/module/keyboard/mixin.d.ts +12 -0
- package/es/table/module/keyboard/mixin.js +462 -507
- package/es/table/module/menu/mixin.d.ts +25 -0
- package/es/table/module/menu/mixin.js +302 -320
- package/es/table/module/menu/panel.d.ts +22 -0
- package/es/table/module/menu/panel.js +246 -197
- package/es/table/module/validator/mixin.d.ts +4 -0
- package/es/table/module/validator/mixin.js +516 -561
- package/es/table/render/index.d.ts +1 -0
- package/es/table/render/index.js +1472 -1476
- package/es/table/src/body.d.ts +8 -0
- package/es/table/src/body.js +950 -886
- package/es/table/src/cell.d.ts +148 -0
- package/es/table/src/cell.js +1348 -1212
- package/es/table/src/column.d.ts +150 -0
- package/es/table/src/column.js +202 -199
- package/es/table/src/columnInfo.d.ts +12 -0
- package/es/table/src/columnInfo.js +210 -205
- package/es/table/src/expand-height.d.ts +14 -0
- package/es/table/src/expand-height.js +109 -127
- package/es/table/src/footer.d.ts +8 -0
- package/es/table/src/footer.js +388 -354
- package/es/table/src/group.d.ts +59 -0
- package/es/table/src/group.js +52 -50
- package/es/table/src/header.d.ts +11 -0
- package/es/table/src/header.js +611 -564
- package/es/table/src/layout-scheduler.d.ts +13 -0
- package/es/table/src/layout-scheduler.js +118 -138
- package/es/table/src/methods.d.ts +2 -0
- package/es/table/src/methods.js +13243 -13956
- package/es/table/src/props.d.ts +239 -0
- package/es/table/src/props.js +315 -312
- package/es/table/src/scroll-sync.d.ts +9 -0
- package/es/table/src/scroll-sync.js +57 -65
- package/es/table/src/store.d.ts +7 -0
- package/es/table/src/store.js +9 -6
- package/es/table/src/table.d.ts +2 -0
- package/es/table/src/table.js +2729 -2668
- package/es/table/src/util.d.ts +70 -0
- package/es/table/src/util.js +1018 -1017
- package/es/table/style.css +31 -12
- package/es/table/style.mini.css +1 -0
- package/es/toolbar/index.d.ts +148 -0
- package/es/toolbar/index.js +14 -9
- package/es/toolbar/src/toolbar.d.ts +81 -0
- package/es/toolbar/src/toolbar.js +791 -766
- package/es/toolbar/{style.min.css → style.mini.css} +1 -1
- package/es/ui/index.d.ts +85 -0
- package/es/ui/index.js +460 -503
- package/es/ui/src/anime.d.ts +10 -0
- package/es/ui/src/anime.js +40 -40
- package/es/ui/src/comp.d.ts +2 -0
- package/es/ui/src/comp.js +4 -1
- package/es/ui/src/dom.d.ts +80 -0
- package/es/ui/src/dom.js +373 -378
- package/es/ui/src/log.d.ts +6 -0
- package/es/ui/src/log.js +18 -13
- package/es/ui/src/utils.d.ts +24 -0
- package/es/ui/src/utils.js +61 -56
- package/es/ui/src/vn.d.ts +7 -0
- package/es/ui/src/vn.js +61 -52
- package/es/v-x-e-table/index.d.ts +2 -0
- package/es/v-x-e-table/index.js +5 -3
- package/es/vxe-colgroup/index.d.ts +3 -0
- package/es/vxe-colgroup/index.js +6 -3
- package/es/vxe-column/index.d.ts +3 -0
- package/es/vxe-column/index.js +6 -3
- package/es/vxe-grid/index.d.ts +3 -0
- package/es/vxe-grid/index.js +6 -3
- package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
- package/es/vxe-table/index.d.ts +3 -0
- package/es/vxe-table/index.js +6 -3
- package/es/vxe-table/style.css +31 -12
- package/es/vxe-table/style.mini.css +1 -0
- package/es/vxe-toolbar/index.d.ts +3 -0
- package/es/vxe-toolbar/index.js +6 -3
- package/{lib/toolbar/style/style.min.css → es/vxe-toolbar/style.mini.css} +1 -1
- package/es/vxe-ui/index.d.ts +3 -0
- package/es/vxe-ui/index.js +6 -3
- package/lib/colgroup/index.js +44 -18
- package/lib/colgroup/style/index.js +1 -1
- package/lib/column/index.js +44 -18
- package/lib/column/style/index.js +1 -1
- package/lib/components.js +55 -92
- package/lib/grid/index.js +42 -14
- package/lib/grid/src/grid.js +860 -1112
- package/lib/grid/style/index.js +1 -1
- package/{es/grid/style.min.css → lib/grid/style/style.mini.css} +1 -1
- package/lib/index.common.js +43 -19
- package/lib/index.js +46 -0
- package/lib/index.umd.js +26848 -20027
- package/lib/index.umd.min.js +3 -1
- package/lib/locale/ar-EG.umd.js +948 -0
- package/lib/locale/ar-EG.umd.min.js +1 -0
- package/lib/locale/de-DE.umd.js +948 -0
- package/lib/locale/de-DE.umd.min.js +1 -0
- package/lib/locale/en-US.umd.js +948 -0
- package/lib/locale/en-US.umd.min.js +1 -0
- package/lib/locale/es-ES.umd.js +948 -0
- package/lib/locale/es-ES.umd.min.js +1 -0
- package/lib/locale/fr-FR.umd.js +948 -0
- package/lib/locale/fr-FR.umd.min.js +1 -0
- package/lib/locale/hu-HU.umd.js +948 -0
- package/lib/locale/hu-HU.umd.min.js +1 -0
- package/lib/locale/hy-AM.umd.js +948 -0
- package/lib/locale/hy-AM.umd.min.js +1 -0
- package/lib/locale/id-ID.umd.js +948 -0
- package/lib/locale/id-ID.umd.min.js +1 -0
- package/lib/locale/it-IT.umd.js +948 -0
- package/lib/locale/it-IT.umd.min.js +1 -0
- package/lib/locale/ja-JP.umd.js +948 -0
- package/lib/locale/ja-JP.umd.min.js +1 -0
- package/lib/locale/ko-KR.umd.js +948 -0
- package/lib/locale/ko-KR.umd.min.js +1 -0
- package/lib/locale/lang/ar-EG.js +683 -662
- package/lib/locale/lang/ar-EG.umd.js +913 -888
- package/lib/locale/lang/ar-EG.umd.min.js +1 -0
- package/lib/locale/lang/de-DE.js +683 -662
- package/lib/locale/lang/de-DE.umd.js +913 -888
- package/lib/locale/lang/de-DE.umd.min.js +1 -0
- package/lib/locale/lang/en-US.js +680 -659
- package/lib/locale/lang/en-US.umd.js +913 -888
- package/lib/locale/lang/en-US.umd.min.js +1 -0
- package/lib/locale/lang/es-ES.js +683 -662
- package/lib/locale/lang/es-ES.umd.js +913 -888
- package/lib/locale/lang/es-ES.umd.min.js +1 -0
- package/lib/locale/lang/fr-FR.js +656 -635
- package/lib/locale/lang/fr-FR.umd.js +913 -888
- package/lib/locale/lang/fr-FR.umd.min.js +1 -0
- package/lib/locale/lang/hu-HU.js +683 -662
- package/lib/locale/lang/hu-HU.umd.js +913 -888
- package/lib/locale/lang/hu-HU.umd.min.js +1 -0
- package/lib/locale/lang/hy-AM.js +683 -662
- package/lib/locale/lang/hy-AM.umd.js +913 -888
- package/lib/locale/lang/hy-AM.umd.min.js +1 -0
- package/lib/locale/lang/id-ID.js +683 -662
- package/lib/locale/lang/id-ID.umd.js +913 -888
- package/lib/locale/lang/id-ID.umd.min.js +1 -0
- package/lib/locale/lang/it-IT.js +663 -642
- package/lib/locale/lang/it-IT.umd.js +912 -887
- package/lib/locale/lang/it-IT.umd.min.js +1 -0
- package/lib/locale/lang/ja-JP.js +712 -691
- package/lib/locale/lang/ja-JP.umd.js +913 -888
- package/lib/locale/lang/ja-JP.umd.min.js +1 -0
- package/lib/locale/lang/ko-KR.js +683 -662
- package/lib/locale/lang/ko-KR.umd.js +913 -888
- package/lib/locale/lang/ko-KR.umd.min.js +1 -0
- package/lib/locale/lang/ms-MY.js +683 -662
- package/lib/locale/lang/ms-MY.umd.js +913 -888
- package/lib/locale/lang/ms-MY.umd.min.js +1 -0
- package/lib/locale/lang/nb-NO.js +683 -662
- package/lib/locale/lang/nb-NO.umd.js +913 -888
- package/lib/locale/lang/nb-NO.umd.min.js +1 -0
- package/lib/locale/lang/pt-BR.js +683 -662
- package/lib/locale/lang/pt-BR.umd.js +913 -888
- package/lib/locale/lang/pt-BR.umd.min.js +1 -0
- package/lib/locale/lang/ru-RU.js +692 -671
- package/lib/locale/lang/ru-RU.umd.js +913 -888
- package/lib/locale/lang/ru-RU.umd.min.js +1 -0
- package/lib/locale/lang/th-TH.js +683 -662
- package/lib/locale/lang/th-TH.umd.js +913 -888
- package/lib/locale/lang/th-TH.umd.min.js +1 -0
- package/lib/locale/lang/ug-CN.js +683 -662
- package/lib/locale/lang/ug-CN.umd.js +913 -888
- package/lib/locale/lang/ug-CN.umd.min.js +1 -0
- package/lib/locale/lang/uk-UA.js +676 -655
- package/lib/locale/lang/uk-UA.umd.js +913 -888
- package/lib/locale/lang/uk-UA.umd.min.js +1 -0
- package/lib/locale/lang/uz-UZ.js +585 -564
- package/lib/locale/lang/uz-UZ.umd.js +908 -883
- package/lib/locale/lang/uz-UZ.umd.min.js +1 -0
- package/lib/locale/lang/vi-VN.js +683 -662
- package/lib/locale/lang/vi-VN.umd.js +913 -888
- package/lib/locale/lang/vi-VN.umd.min.js +1 -0
- package/lib/locale/lang/zh-CHT.js +683 -662
- package/lib/locale/lang/zh-CHT.umd.js +913 -888
- package/lib/locale/lang/zh-CHT.umd.min.js +1 -0
- package/lib/locale/lang/zh-CN.js +683 -662
- package/lib/locale/lang/zh-CN.umd.js +913 -888
- package/lib/locale/lang/zh-CN.umd.min.js +1 -0
- package/lib/locale/lang/zh-HK.js +928 -7
- package/lib/locale/lang/zh-HK.umd.js +945 -20
- package/lib/locale/lang/zh-HK.umd.min.js +1 -0
- package/lib/locale/lang/zh-MO.js +928 -7
- package/lib/locale/lang/zh-MO.umd.js +945 -20
- package/lib/locale/lang/zh-MO.umd.min.js +1 -0
- package/lib/locale/lang/zh-TC.js +928 -7
- package/lib/locale/lang/zh-TC.umd.js +948 -0
- package/lib/locale/lang/zh-TC.umd.min.js +1 -0
- package/lib/locale/lang/zh-TW.js +928 -7
- package/lib/locale/lang/zh-TW.umd.js +945 -20
- package/lib/locale/lang/zh-TW.umd.min.js +1 -0
- package/lib/locale/ms-MY.umd.js +948 -0
- package/lib/locale/ms-MY.umd.min.js +1 -0
- package/lib/locale/nb-NO.umd.js +948 -0
- package/lib/locale/nb-NO.umd.min.js +1 -0
- package/lib/locale/pt-BR.umd.js +948 -0
- package/lib/locale/pt-BR.umd.min.js +1 -0
- package/lib/locale/ru-RU.umd.js +948 -0
- package/lib/locale/ru-RU.umd.min.js +1 -0
- package/lib/locale/th-TH.umd.js +948 -0
- package/lib/locale/th-TH.umd.min.js +1 -0
- package/lib/locale/ug-CN.umd.js +948 -0
- package/lib/locale/ug-CN.umd.min.js +1 -0
- package/lib/locale/uk-UA.umd.js +948 -0
- package/lib/locale/uk-UA.umd.min.js +1 -0
- package/lib/locale/uz-UZ.umd.js +948 -0
- package/lib/locale/uz-UZ.umd.min.js +1 -0
- package/lib/locale/vi-VN.umd.js +948 -0
- package/lib/locale/vi-VN.umd.min.js +1 -0
- package/lib/locale/zh-CHT.umd.js +948 -0
- package/lib/locale/zh-CHT.umd.min.js +1 -0
- package/lib/locale/zh-CN.umd.js +948 -0
- package/lib/locale/zh-CN.umd.min.js +1 -0
- package/lib/locale/zh-HK.umd.js +948 -0
- package/lib/locale/zh-HK.umd.min.js +1 -0
- package/lib/locale/zh-MO.umd.js +948 -0
- package/lib/locale/zh-MO.umd.min.js +1 -0
- package/lib/locale/zh-TC.umd.js +948 -0
- package/lib/locale/zh-TC.umd.min.js +1 -0
- package/lib/locale/zh-TW.umd.js +948 -0
- package/lib/locale/zh-TW.umd.min.js +1 -0
- package/lib/style.css +4499 -1
- package/lib/style.mini.css +1 -0
- package/lib/table/index.js +60 -32
- package/lib/table/module/custom/mixin.js +166 -262
- package/lib/table/module/custom/panel.js +1277 -1076
- package/lib/table/module/edit/mixin.js +347 -645
- package/lib/table/module/export/export-panel.js +526 -399
- package/lib/table/module/export/import-panel.js +210 -141
- package/lib/table/module/export/mixin.js +898 -1253
- package/lib/table/module/export/util.js +37 -14
- package/lib/table/module/filter/mixin.js +110 -196
- package/lib/table/module/filter/panel.js +229 -186
- package/lib/table/module/keyboard/mixin.js +104 -153
- package/lib/table/module/menu/mixin.js +89 -151
- package/lib/table/module/menu/panel.js +243 -140
- package/lib/table/module/validator/mixin.js +188 -278
- package/lib/table/render/index.js +777 -1230
- package/lib/table/src/body.js +542 -556
- package/lib/table/src/cell.js +783 -933
- package/lib/table/src/column.js +49 -23
- package/lib/table/src/columnInfo.js +86 -104
- package/lib/table/src/expand-height.js +43 -47
- package/lib/table/src/footer.js +231 -234
- package/lib/table/src/group.js +45 -23
- package/lib/table/src/header.js +352 -357
- package/lib/table/src/layout-scheduler.js +44 -48
- package/lib/table/src/methods.js +13656 -945
- package/lib/table/src/props.js +33 -36
- package/lib/table/src/scroll-sync.js +28 -17
- package/lib/table/src/store.js +24 -8
- package/lib/table/src/table.js +1217 -1302
- package/lib/table/src/util.js +218 -304
- package/lib/table/style/index.js +1 -1
- package/lib/table/style/style.css +31 -12
- package/lib/table/style/style.mini.css +1 -0
- package/lib/toolbar/index.js +42 -14
- package/lib/toolbar/src/toolbar.js +302 -357
- package/lib/toolbar/style/index.js +1 -1
- package/lib/{vxe-toolbar/style/style.min.css → toolbar/style/style.mini.css} +1 -1
- package/lib/ui/index.js +152 -194
- package/lib/ui/src/anime.js +49 -29
- package/lib/ui/src/comp.js +22 -6
- package/lib/ui/src/dom.js +126 -158
- package/lib/ui/src/log.js +34 -18
- package/lib/ui/src/utils.js +59 -47
- package/lib/ui/src/vn.js +72 -45
- package/lib/ui/style/index.js +1 -1
- package/lib/v-x-e-table/index.js +33 -20
- package/lib/vxe-colgroup/index.js +35 -20
- package/lib/vxe-colgroup/style/index.js +1 -1
- package/lib/vxe-column/index.js +35 -20
- package/lib/vxe-column/style/index.js +1 -1
- package/lib/vxe-grid/index.js +35 -20
- package/lib/vxe-grid/style/index.js +1 -1
- package/lib/vxe-grid/style/{style.min.css → style.mini.css} +1 -1
- package/lib/vxe-table/index.js +35 -20
- package/lib/vxe-table/style/index.js +1 -1
- package/lib/vxe-table/style/style.css +31 -12
- package/lib/vxe-table/style/style.mini.css +1 -0
- package/lib/vxe-toolbar/index.js +35 -20
- package/lib/vxe-toolbar/style/index.js +1 -1
- package/{es/vxe-toolbar/style.min.css → lib/vxe-toolbar/style/style.mini.css} +1 -1
- package/lib/vxe-ui/index.js +35 -20
- package/lib/vxe-ui/style/index.js +1 -1
- package/package.json +21 -6
- package/packages/colgroup/index.ts +2 -2
- package/packages/column/index.ts +2 -2
- package/packages/components.ts +12 -10
- package/packages/grid/index.ts +2 -2
- package/packages/grid/src/grid.ts +437 -351
- package/packages/index.ts +11 -0
- package/packages/locale/lang/ar-EG.ts +4 -0
- package/packages/locale/lang/de-DE.ts +4 -0
- package/packages/locale/lang/en-US.ts +4 -0
- package/packages/locale/lang/es-ES.ts +4 -0
- package/packages/locale/lang/fr-FR.ts +22 -18
- package/packages/locale/lang/hu-HU.ts +4 -0
- package/packages/locale/lang/hy-AM.ts +4 -0
- package/packages/locale/lang/id-ID.ts +4 -0
- package/packages/locale/lang/it-IT.ts +8 -4
- package/packages/locale/lang/ja-JP.ts +4 -0
- package/packages/locale/lang/ko-KR.ts +4 -0
- package/packages/locale/lang/ms-MY.ts +4 -0
- package/packages/locale/lang/nb-NO.ts +4 -0
- package/packages/locale/lang/pt-BR.ts +4 -0
- package/packages/locale/lang/ru-RU.ts +4 -0
- package/packages/locale/lang/th-TH.ts +4 -0
- package/packages/locale/lang/ug-CN.ts +4 -0
- package/packages/locale/lang/uk-UA.ts +5 -1
- package/packages/locale/lang/uz-UZ.ts +17 -13
- package/packages/locale/lang/vi-VN.ts +4 -0
- package/packages/locale/lang/zh-CHT.ts +4 -0
- package/packages/locale/lang/zh-CN.ts +4 -0
- package/packages/locale/lang/zh-HK.ts +907 -3
- package/packages/locale/lang/zh-MO.ts +907 -3
- package/packages/locale/lang/zh-TC.ts +907 -3
- package/packages/locale/lang/zh-TW.ts +907 -3
- package/packages/table/index.ts +6 -6
- package/packages/table/module/custom/mixin.ts +73 -66
- package/packages/table/module/custom/panel.ts +1176 -925
- package/packages/table/module/edit/mixin.ts +253 -173
- package/packages/table/module/export/export-panel.ts +541 -461
- package/packages/table/module/export/import-panel.ts +179 -136
- package/packages/table/module/export/mixin.ts +725 -633
- package/packages/table/module/export/util.ts +4 -3
- package/packages/table/module/filter/mixin.ts +58 -54
- package/packages/table/module/filter/panel.ts +176 -122
- package/packages/table/module/keyboard/mixin.ts +35 -31
- package/packages/table/module/menu/mixin.ts +12 -12
- package/packages/table/module/menu/panel.ts +225 -158
- package/packages/table/module/validator/mixin.ts +179 -162
- package/packages/table/render/index.ts +362 -285
- package/packages/table/src/body.ts +383 -284
- package/packages/table/src/cell.ts +579 -410
- package/packages/table/src/column.ts +6 -6
- package/packages/table/src/columnInfo.ts +7 -7
- package/packages/table/src/expand-height.ts +27 -26
- package/packages/table/src/footer.ts +172 -127
- package/packages/table/src/group.ts +5 -5
- package/packages/table/src/header.ts +275 -211
- package/packages/table/src/layout-scheduler.ts +7 -9
- package/packages/table/src/methods.ts +2132 -1809
- package/packages/table/src/props.ts +1 -1
- package/packages/table/src/scroll-sync.ts +5 -5
- package/packages/table/src/store.ts +1 -1
- package/packages/table/src/table.ts +1062 -871
- package/packages/table/src/util.ts +58 -71
- package/packages/toolbar/index.ts +2 -2
- package/packages/toolbar/src/toolbar.ts +245 -191
- package/packages/ui/index.ts +9 -36
- package/packages/ui/src/anime.ts +10 -11
- package/packages/ui/src/dom.ts +52 -49
- package/packages/ui/src/log.ts +2 -2
- package/packages/ui/src/utils.ts +13 -13
- package/packages/ui/src/vn.ts +8 -7
- package/packages/v-x-e-table/index.ts +0 -1
- package/styles/components/table-module/filter.scss +26 -13
- package/styles/components/table.scss +6 -0
- package/styles/theme/base.scss +1 -0
- package/types/all.d.ts +1 -1
- package/es/index.css +0 -1
- package/es/index.min.css +0 -1
- package/es/style.min.css +0 -1
- package/es/table/style.min.css +0 -1
- package/es/vxe-table/style.min.css +0 -1
- package/es/vxe-v-x-e-table/index.js +0 -3
- package/lib/colgroup/index.min.js +0 -1
- package/lib/column/index.min.js +0 -1
- package/lib/components.min.js +0 -1
- package/lib/grid/index.min.js +0 -1
- package/lib/grid/src/grid.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/index.min.css +0 -1
- package/lib/locale/lang/ar-EG.d.ts +0 -2
- package/lib/locale/lang/ar-EG.min.js +0 -1
- package/lib/locale/lang/de-DE.d.ts +0 -2
- package/lib/locale/lang/de-DE.min.js +0 -1
- package/lib/locale/lang/en-US.d.ts +0 -2
- package/lib/locale/lang/en-US.min.js +0 -1
- package/lib/locale/lang/es-ES.d.ts +0 -2
- package/lib/locale/lang/es-ES.min.js +0 -1
- package/lib/locale/lang/fr-FR.d.ts +0 -2
- package/lib/locale/lang/fr-FR.min.js +0 -1
- package/lib/locale/lang/hu-HU.d.ts +0 -2
- package/lib/locale/lang/hu-HU.min.js +0 -1
- package/lib/locale/lang/hy-AM.d.ts +0 -2
- package/lib/locale/lang/hy-AM.min.js +0 -1
- package/lib/locale/lang/id-ID.d.ts +0 -2
- package/lib/locale/lang/id-ID.min.js +0 -1
- package/lib/locale/lang/it-IT.d.ts +0 -2
- package/lib/locale/lang/it-IT.min.js +0 -1
- package/lib/locale/lang/ja-JP.d.ts +0 -2
- package/lib/locale/lang/ja-JP.min.js +0 -1
- package/lib/locale/lang/ko-KR.d.ts +0 -2
- package/lib/locale/lang/ko-KR.min.js +0 -1
- package/lib/locale/lang/ms-MY.d.ts +0 -2
- package/lib/locale/lang/ms-MY.min.js +0 -1
- package/lib/locale/lang/nb-NO.d.ts +0 -2
- package/lib/locale/lang/nb-NO.min.js +0 -1
- package/lib/locale/lang/pt-BR.d.ts +0 -2
- package/lib/locale/lang/pt-BR.min.js +0 -1
- package/lib/locale/lang/ru-RU.d.ts +0 -2
- package/lib/locale/lang/ru-RU.min.js +0 -1
- package/lib/locale/lang/th-TH.d.ts +0 -2
- package/lib/locale/lang/th-TH.min.js +0 -1
- package/lib/locale/lang/ug-CN.d.ts +0 -2
- package/lib/locale/lang/ug-CN.min.js +0 -1
- package/lib/locale/lang/uk-UA.d.ts +0 -2
- package/lib/locale/lang/uk-UA.min.js +0 -1
- package/lib/locale/lang/uz-UZ.d.ts +0 -2
- package/lib/locale/lang/uz-UZ.min.js +0 -1
- package/lib/locale/lang/vi-VN.d.ts +0 -2
- package/lib/locale/lang/vi-VN.min.js +0 -1
- package/lib/locale/lang/zh-CHT.d.ts +0 -2
- package/lib/locale/lang/zh-CHT.min.js +0 -1
- package/lib/locale/lang/zh-CN.d.ts +0 -2
- package/lib/locale/lang/zh-CN.min.js +0 -1
- package/lib/locale/lang/zh-HK.d.ts +0 -2
- package/lib/locale/lang/zh-HK.min.js +0 -1
- package/lib/locale/lang/zh-MO.d.ts +0 -2
- package/lib/locale/lang/zh-MO.min.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +0 -1
- package/lib/locale/lang/zh-TW.d.ts +0 -2
- package/lib/locale/lang/zh-TW.min.js +0 -1
- package/lib/style.min.css +0 -1
- package/lib/table/index.min.js +0 -1
- package/lib/table/module/custom/mixin.min.js +0 -1
- package/lib/table/module/custom/panel.min.js +0 -1
- package/lib/table/module/edit/mixin.min.js +0 -1
- package/lib/table/module/export/export-panel.min.js +0 -1
- package/lib/table/module/export/import-panel.min.js +0 -1
- package/lib/table/module/export/mixin.min.js +0 -1
- package/lib/table/module/export/util.min.js +0 -1
- package/lib/table/module/filter/mixin.min.js +0 -1
- package/lib/table/module/filter/panel.min.js +0 -1
- package/lib/table/module/keyboard/mixin.min.js +0 -1
- package/lib/table/module/menu/mixin.min.js +0 -1
- package/lib/table/module/menu/panel.min.js +0 -1
- package/lib/table/module/validator/mixin.min.js +0 -1
- package/lib/table/render/index.min.js +0 -1
- package/lib/table/src/body.min.js +0 -1
- package/lib/table/src/cell.min.js +0 -1
- package/lib/table/src/column.min.js +0 -1
- package/lib/table/src/columnInfo.min.js +0 -1
- package/lib/table/src/expand-height.min.js +0 -1
- package/lib/table/src/footer.min.js +0 -1
- package/lib/table/src/group.min.js +0 -1
- package/lib/table/src/header.min.js +0 -1
- package/lib/table/src/layout-scheduler.min.js +0 -1
- package/lib/table/src/methods.min.js +0 -1
- package/lib/table/src/props.min.js +0 -1
- package/lib/table/src/scroll-sync.min.js +0 -1
- package/lib/table/src/store.min.js +0 -1
- package/lib/table/src/table.min.js +0 -1
- package/lib/table/src/util.min.js +0 -1
- package/lib/table/style/style.min.css +0 -1
- package/lib/toolbar/index.min.js +0 -1
- package/lib/toolbar/src/toolbar.min.js +0 -1
- package/lib/ui/index.min.js +0 -1
- package/lib/ui/src/anime.min.js +0 -1
- package/lib/ui/src/comp.min.js +0 -1
- package/lib/ui/src/dom.min.js +0 -1
- package/lib/ui/src/log.min.js +0 -1
- package/lib/ui/src/utils.min.js +0 -1
- package/lib/ui/src/vn.min.js +0 -1
- package/lib/ui/style/style.min.css +0 -0
- package/lib/v-x-e-table/index.min.js +0 -1
- package/lib/v-x-e-table/style/index.js +0 -1
- package/lib/v-x-e-table/style/style.css +0 -0
- package/lib/v-x-e-table/style/style.min.css +0 -0
- package/lib/vxe-colgroup/index.min.js +0 -1
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/index.min.js +0 -1
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-grid/index.min.js +0 -1
- package/lib/vxe-table/index.min.js +0 -1
- package/lib/vxe-table/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.min.js +0 -1
- package/lib/vxe-ui/index.min.js +0 -1
- package/lib/vxe-ui/style/style.min.css +0 -0
- package/lib/vxe-v-x-e-table/index.js +0 -22
- package/lib/vxe-v-x-e-table/index.min.js +0 -1
- package/lib/vxe-v-x-e-table/style/index.js +0 -1
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
- /package/es/column/{style.min.css → style.mini.css} +0 -0
- /package/es/{iconfont.1792648484860.ttf → iconfont.1793178568083.ttf} +0 -0
- /package/es/{iconfont.1792648484860.woff → iconfont.1793178568083.woff} +0 -0
- /package/es/{iconfont.1792648484860.woff2 → iconfont.1793178568083.woff2} +0 -0
- /package/es/ui/{style.min.css → style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
- /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
- /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
- /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
- /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
- /package/lib/{iconfont.1792648484860.ttf → iconfont.1793178568083.ttf} +0 -0
- /package/lib/{iconfont.1792648484860.woff → iconfont.1793178568083.woff} +0 -0
- /package/lib/{iconfont.1792648484860.woff2 → iconfont.1793178568083.woff2} +0 -0
- /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
- /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
- /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
- /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, CreateElement } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
5
5
|
import { isEnableConf, getClass, getDefaultConfig, hasEnableConf } from '../../ui/src/utils'
|
|
6
6
|
import { getRowid, createHandleGetRowId, getCellRestHeight } from './util'
|
|
@@ -27,7 +27,7 @@ const isVMScrollProcess = ($xeTable: VxeTableConstructor & VxeTablePrivateMethod
|
|
|
27
27
|
return !!(isDragResize || (lastSTime && Date.now() < lastSTime + (delayHover as number)))
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function renderLine
|
|
30
|
+
function renderLine(h: CreateElement, $xeTable: VxeTableConstructor & VxeTablePrivateMethods, rowid: string, params: VxeTableDefines.CellRenderBodyParams, cellHeight: number): VxeComponentSlotType[] {
|
|
31
31
|
const tableProps = $xeTable
|
|
32
32
|
const tableInternalData = $xeTable as unknown as TableInternalData
|
|
33
33
|
|
|
@@ -64,19 +64,23 @@ function renderLine (h: CreateElement, $xeTable : VxeTableConstructor & VxeTable
|
|
|
64
64
|
lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + getCellRestHeight(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`
|
|
65
65
|
}
|
|
66
66
|
return [
|
|
67
|
-
h(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
h(
|
|
68
|
+
'div',
|
|
69
|
+
{
|
|
70
|
+
key: 'tl',
|
|
71
|
+
class: 'vxe-tree--line-wrapper'
|
|
72
|
+
},
|
|
73
|
+
[
|
|
74
|
+
h('div', {
|
|
75
|
+
class: 'vxe-tree--line',
|
|
76
|
+
style: {
|
|
77
|
+
height: lineHeight,
|
|
78
|
+
bottom: `-${Math.floor(cellHeight / 2)}px`,
|
|
79
|
+
left: `calc(${rLevel * treeOpts.indent}px + 1em)`
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
)
|
|
80
84
|
]
|
|
81
85
|
}
|
|
82
86
|
return []
|
|
@@ -85,7 +89,7 @@ function renderLine (h: CreateElement, $xeTable : VxeTableConstructor & VxeTable
|
|
|
85
89
|
/**
|
|
86
90
|
* 渲染列
|
|
87
91
|
*/
|
|
88
|
-
function renderTdColumn
|
|
92
|
+
function renderTdColumn(
|
|
89
93
|
h: CreateElement,
|
|
90
94
|
$xeTable: VxeTableConstructor & VxeTablePrivateMethods,
|
|
91
95
|
seq: number | string,
|
|
@@ -123,7 +127,7 @@ function renderTdColumn (
|
|
|
123
127
|
const rowOpts = $xeTable.computeRowOpts
|
|
124
128
|
const rowDragOpts = $xeTable.computeRowDragOpts
|
|
125
129
|
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
126
|
-
const customCellHeight = calcCellHeightFlag ?
|
|
130
|
+
const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0
|
|
127
131
|
const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = rowDragOpts
|
|
128
132
|
const columnOpts = $xeTable.computeColumnOpts
|
|
129
133
|
const mouseOpts = $xeTable.computeMouseOpts
|
|
@@ -137,28 +141,28 @@ function renderTdColumn (
|
|
|
137
141
|
const colid = column.id
|
|
138
142
|
const colRest = fullColumnIdData[colid] || {}
|
|
139
143
|
const renderOpts = editRender || cellRender
|
|
140
|
-
const compConf = renderOpts && renderOpts.name ?
|
|
141
|
-
const compCellClassName = compConf ?
|
|
142
|
-
const compCellStyle = compConf ?
|
|
144
|
+
const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null
|
|
145
|
+
const compCellClassName = compConf ? compConf.tableCellClassName || compConf.cellClassName : null
|
|
146
|
+
const compCellStyle = compConf ? compConf.tableCellStyle || compConf.cellStyle : ''
|
|
143
147
|
const showAllTip = tooltipOpts.showAll
|
|
144
148
|
const columnIndex = colRest.index
|
|
145
149
|
const _columnIndex = colRest._index
|
|
146
150
|
const isEdit = isEnableConf(editRender)
|
|
147
151
|
const resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0
|
|
148
152
|
let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed)
|
|
149
|
-
const cellPadding = getDefaultConfig(padding,
|
|
153
|
+
const cellPadding = getDefaultConfig(padding, allPadding === null ? cellOpts.padding : allPadding)
|
|
150
154
|
const isAllCellPadding = cellPadding === true
|
|
151
|
-
const isCellPaddingTop = cellPadding ?
|
|
152
|
-
const isCellPaddingBottom = cellPadding ?
|
|
153
|
-
const isCellPaddingLeft = cellPadding ?
|
|
154
|
-
const isCellPaddingRight = cellPadding ?
|
|
155
|
+
const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false
|
|
156
|
+
const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false
|
|
157
|
+
const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false
|
|
158
|
+
const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false
|
|
155
159
|
|
|
156
160
|
const cellOverflow = getDefaultConfig(showOverflow, allShowOverflow)
|
|
157
161
|
const showEllipsis = cellOverflow === 'ellipsis'
|
|
158
162
|
const showTitle = cellOverflow === 'title'
|
|
159
163
|
const showTooltip = cellOverflow === true ? tooltipOpts.mode === 'tooltip' : cellOverflow === 'tooltip'
|
|
160
164
|
const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis
|
|
161
|
-
const showResizable =
|
|
165
|
+
const showResizable = XEUtils.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable
|
|
162
166
|
const isCsHeight = !!customCellHeight
|
|
163
167
|
const isRsHeight = resizeHeight > 0
|
|
164
168
|
let isDirty
|
|
@@ -166,7 +170,7 @@ function renderTdColumn (
|
|
|
166
170
|
const cellAlign = align || (compConf ? compConf.tableCellAlign : '') || allAlign
|
|
167
171
|
const cellVerticalAlign = XEUtils.eqNull(verticalAlign) ? allVerticalAlign : verticalAlign
|
|
168
172
|
const errorValidItem = validErrorMaps[`${rowid}:${colid}`]
|
|
169
|
-
const showValidTip = editRules && validOpts.showErrorMessage && (validOpts.message === 'default' ?
|
|
173
|
+
const showValidTip = editRules && validOpts.showErrorMessage && (validOpts.message === 'default' ? height || tableData.length > 1 : validOpts.message === 'inline')
|
|
170
174
|
const tdAttrs: any = { colid }
|
|
171
175
|
const cellParams: VxeTableDefines.CellRenderBodyParams & {
|
|
172
176
|
$table: VxeTableConstructor<any> & VxeTablePrivateMethods
|
|
@@ -342,7 +346,7 @@ function renderTdColumn (
|
|
|
342
346
|
}
|
|
343
347
|
}
|
|
344
348
|
}
|
|
345
|
-
tcStyle.width =
|
|
349
|
+
tcStyle.width = column.renderWidth + mergeColWidth - cellOffsetWidth + 'px'
|
|
346
350
|
}
|
|
347
351
|
if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
|
|
348
352
|
tcStyle.height = cellHeight + 'px'
|
|
@@ -361,11 +365,14 @@ function renderTdColumn (
|
|
|
361
365
|
tdVNs.push(
|
|
362
366
|
h('div', {
|
|
363
367
|
key: 'tc',
|
|
364
|
-
class: [
|
|
365
|
-
'
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
368
|
+
class: [
|
|
369
|
+
'vxe-cell',
|
|
370
|
+
{
|
|
371
|
+
'c--title': showTitle,
|
|
372
|
+
'c--tooltip': showTooltip,
|
|
373
|
+
'c--ellipsis': showEllipsis
|
|
374
|
+
}
|
|
375
|
+
],
|
|
369
376
|
style: tcStyle
|
|
370
377
|
})
|
|
371
378
|
)
|
|
@@ -377,55 +384,79 @@ function renderTdColumn (
|
|
|
377
384
|
const clVNs: VxeComponentSlotType[] = []
|
|
378
385
|
if (!isVNPreEmptyStatus) {
|
|
379
386
|
clVNs.push(
|
|
380
|
-
h(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
387
|
+
h(
|
|
388
|
+
'div',
|
|
389
|
+
{
|
|
390
|
+
attrs: {
|
|
391
|
+
colid,
|
|
392
|
+
rowid
|
|
393
|
+
},
|
|
394
|
+
class: 'vxe-cell--wrapper vxe-body-cell--wrapper'
|
|
384
395
|
},
|
|
385
|
-
|
|
386
|
-
|
|
396
|
+
column.renderCell(h, cellParams)
|
|
397
|
+
)
|
|
387
398
|
)
|
|
388
399
|
}
|
|
389
400
|
tdVNs.push(
|
|
390
|
-
h(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
'
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
401
|
+
h(
|
|
402
|
+
'div',
|
|
403
|
+
{
|
|
404
|
+
key: 'tc',
|
|
405
|
+
class: [
|
|
406
|
+
'vxe-cell',
|
|
407
|
+
{
|
|
408
|
+
'c--title': showTitle,
|
|
409
|
+
'c--tooltip': showTooltip,
|
|
410
|
+
'c--ellipsis': showEllipsis
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
style: tcStyle,
|
|
414
|
+
attrs: {
|
|
415
|
+
title: showTitle ? $xeTable.getCellLabel(row, column) : null
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
clVNs
|
|
419
|
+
)
|
|
402
420
|
)
|
|
403
421
|
if (showValidTip && errorValidItem) {
|
|
404
422
|
const errRule = errorValidItem.rule
|
|
405
423
|
const validSlot = slots ? slots.valid : null
|
|
406
424
|
const validParams = { ...cellParams, ...errorValidItem, rule: errorValidItem }
|
|
407
425
|
tdVNs.push(
|
|
408
|
-
h(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
h(
|
|
427
|
+
'div',
|
|
428
|
+
{
|
|
429
|
+
key: 'tcv',
|
|
430
|
+
class: ['vxe-cell--valid-error-tip', getClass(validOpts.className, errorValidItem)],
|
|
431
|
+
style:
|
|
432
|
+
errRule && errRule.maxWidth
|
|
433
|
+
? {
|
|
434
|
+
width: errRule.maxWidth + 'px'
|
|
435
|
+
}
|
|
436
|
+
: undefined
|
|
437
|
+
},
|
|
438
|
+
[
|
|
439
|
+
h(
|
|
440
|
+
'div',
|
|
441
|
+
{
|
|
442
|
+
class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || 'normal'}`
|
|
443
|
+
},
|
|
444
|
+
[
|
|
445
|
+
validSlot
|
|
446
|
+
? $xeTable.callSlot(validSlot, validParams, h)
|
|
447
|
+
: [
|
|
448
|
+
h(
|
|
449
|
+
'span',
|
|
450
|
+
{
|
|
451
|
+
class: 'vxe-cell--valid-error-msg'
|
|
452
|
+
},
|
|
453
|
+
errorValidItem.content
|
|
454
|
+
)
|
|
455
|
+
]
|
|
456
|
+
]
|
|
457
|
+
)
|
|
458
|
+
]
|
|
459
|
+
)
|
|
429
460
|
)
|
|
430
461
|
}
|
|
431
462
|
}
|
|
@@ -439,9 +470,12 @@ function renderTdColumn (
|
|
|
439
470
|
tdVNs.push(
|
|
440
471
|
h('div', {
|
|
441
472
|
key: 'tcc',
|
|
442
|
-
class: [
|
|
443
|
-
'
|
|
444
|
-
|
|
473
|
+
class: [
|
|
474
|
+
'vxe-cell--col-resizable',
|
|
475
|
+
{
|
|
476
|
+
'is--line': !border || border === 'none'
|
|
477
|
+
}
|
|
478
|
+
],
|
|
445
479
|
on: {
|
|
446
480
|
mousedown: (evnt: MouseEvent) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
|
|
447
481
|
dblclick: (evnt: MouseEvent) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
|
|
@@ -463,50 +497,54 @@ function renderTdColumn (
|
|
|
463
497
|
)
|
|
464
498
|
}
|
|
465
499
|
|
|
466
|
-
return h(
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
500
|
+
return h(
|
|
501
|
+
'td',
|
|
502
|
+
{
|
|
503
|
+
class: [
|
|
504
|
+
'vxe-table--column vxe-body--column',
|
|
505
|
+
colid,
|
|
506
|
+
cellVerticalAlign ? `col--vertical-${cellVerticalAlign}` : '',
|
|
507
|
+
cellAlign ? `col--${cellAlign}` : '',
|
|
508
|
+
type ? `col--${type}` : '',
|
|
509
|
+
{
|
|
510
|
+
'col--last': isLastColumn,
|
|
511
|
+
'col--tree-node': treeNode,
|
|
512
|
+
'col--edit': isEdit,
|
|
513
|
+
'col--ellipsis': hasEllipsis,
|
|
514
|
+
'col--cs-height': isCsHeight,
|
|
515
|
+
'col--rs-height': isRsHeight,
|
|
516
|
+
'col--to-row': showAreaRowStatus,
|
|
517
|
+
'col--auto-height': isVNAutoHeight,
|
|
518
|
+
'col--max-height': maxHeight,
|
|
519
|
+
'fixed--width': !isAutoCellWidth,
|
|
520
|
+
'fixed--hidden': fixedHiddenColumn,
|
|
521
|
+
'is--pg-top': isCellPaddingTop,
|
|
522
|
+
'is--pg-bottom': isCellPaddingBottom,
|
|
523
|
+
'is--pg-left': isCellPaddingLeft,
|
|
524
|
+
'is--pg-right': isCellPaddingRight,
|
|
525
|
+
'is--progress': (fixedHiddenColumn && isAllOverflow) || isVNPreEmptyStatus,
|
|
526
|
+
'is--drag-cell': isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
|
|
527
|
+
'is--drag-disabled': isDisabledDrag,
|
|
528
|
+
'col--dirty': isDirty,
|
|
529
|
+
'col--active': editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row'),
|
|
530
|
+
'col--valid-error': !!errorValidItem,
|
|
531
|
+
'show--valid-bg': errorValidItem && validOpts.showErrorBackground,
|
|
532
|
+
'col--current': currColFlag && currentCol === column
|
|
533
|
+
},
|
|
534
|
+
getClass(compCellClassName, cellParams),
|
|
535
|
+
getClass(className, cellParams),
|
|
536
|
+
getClass(allCellClassName, cellParams)
|
|
537
|
+
],
|
|
538
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? column.id : $columnIndex,
|
|
539
|
+
attrs: tdAttrs,
|
|
540
|
+
style: Object.assign({}, XEUtils.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, XEUtils.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
|
|
541
|
+
on: tdOns
|
|
542
|
+
},
|
|
543
|
+
isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
|
|
544
|
+
)
|
|
507
545
|
}
|
|
508
546
|
|
|
509
|
-
function renderRows
|
|
547
|
+
function renderRows(h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '', isOptimizeMode: boolean, tableData: any[], tableColumn: VxeTableDefines.ColumnInfo[]) {
|
|
510
548
|
const $xeTable = _vm.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
511
549
|
const tableProps = $xeTable
|
|
512
550
|
const tableReactData = $xeTable as unknown as TableReactData
|
|
@@ -559,7 +597,7 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
559
597
|
seq = rowRest.seq
|
|
560
598
|
if (hasRowGroupAggregate || (treeConfig && transform && seqMode === 'increasing')) {
|
|
561
599
|
seq = rowRest._index + 1
|
|
562
|
-
} else if (
|
|
600
|
+
} else if (treeConfig && seqMode === 'fixed') {
|
|
563
601
|
seq = rowRest._tIndex + 1
|
|
564
602
|
}
|
|
565
603
|
}
|
|
@@ -616,15 +654,19 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
616
654
|
return renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData)
|
|
617
655
|
})
|
|
618
656
|
rows.push(
|
|
619
|
-
h(
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
657
|
+
h(
|
|
658
|
+
'tr',
|
|
659
|
+
{
|
|
660
|
+
class: trClass,
|
|
661
|
+
attrs: {
|
|
662
|
+
rowid
|
|
663
|
+
},
|
|
664
|
+
style: rowStyle ? ((XEUtils.isFunction(rowStyle) ? rowStyle(params) : rowStyle) as VxeComponentStyleType) : undefined,
|
|
665
|
+
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || isRowGroupStatus || treeConfig ? rowid : $rowIndex,
|
|
666
|
+
on: trOn
|
|
623
667
|
},
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
on: trOn
|
|
627
|
-
}, tdVNs)
|
|
668
|
+
tdVNs
|
|
669
|
+
)
|
|
628
670
|
)
|
|
629
671
|
// 如果行被展开了
|
|
630
672
|
if (isExpandRow) {
|
|
@@ -632,27 +674,29 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
632
674
|
const { height: expandHeight, padding, mode: expandMode } = expandOpts
|
|
633
675
|
if (expandMode === 'fixed') {
|
|
634
676
|
// 与位置及总高度计算共用同一规则;估算不改变展开内容的自然高度。
|
|
635
|
-
const expHeight = rowExpandHeightFlag || expandOpts.estimateHeight
|
|
636
|
-
? getRowExpandHeight($xeTable, row, rowRest)
|
|
637
|
-
: 0
|
|
677
|
+
const expHeight = rowExpandHeightFlag || expandOpts.estimateHeight ? getRowExpandHeight($xeTable, row, rowRest) : 0
|
|
638
678
|
rows.push(
|
|
639
|
-
h(
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
rowid
|
|
644
|
-
}
|
|
645
|
-
}, [
|
|
646
|
-
h('td', {
|
|
647
|
-
class: 'vxe-body--row-expanded-place-column',
|
|
679
|
+
h(
|
|
680
|
+
'tr',
|
|
681
|
+
{
|
|
682
|
+
class: 'vxe-body--row-expanded-place',
|
|
683
|
+
key: `expand_${rowid}`,
|
|
648
684
|
attrs: {
|
|
649
|
-
|
|
650
|
-
},
|
|
651
|
-
style: {
|
|
652
|
-
height: `${expHeight}px`
|
|
685
|
+
rowid
|
|
653
686
|
}
|
|
654
|
-
}
|
|
655
|
-
|
|
687
|
+
},
|
|
688
|
+
[
|
|
689
|
+
h('td', {
|
|
690
|
+
class: 'vxe-body--row-expanded-place-column',
|
|
691
|
+
attrs: {
|
|
692
|
+
colspan: tableColumn.length
|
|
693
|
+
},
|
|
694
|
+
style: {
|
|
695
|
+
height: `${expHeight}px`
|
|
696
|
+
}
|
|
697
|
+
})
|
|
698
|
+
]
|
|
699
|
+
)
|
|
656
700
|
)
|
|
657
701
|
} else {
|
|
658
702
|
const cellStyle: any = {}
|
|
@@ -660,7 +704,7 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
660
704
|
cellStyle.height = `${expandHeight}px`
|
|
661
705
|
}
|
|
662
706
|
if (treeConfig) {
|
|
663
|
-
cellStyle.paddingLeft = `${
|
|
707
|
+
cellStyle.paddingLeft = `${rowLevel * treeOpts.indent + 30}px`
|
|
664
708
|
}
|
|
665
709
|
const { showOverflow } = expandColumn || {}
|
|
666
710
|
const colid = expandColumn.id
|
|
@@ -699,31 +743,50 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
699
743
|
items: []
|
|
700
744
|
}
|
|
701
745
|
rows.push(
|
|
702
|
-
h(
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
746
|
+
h(
|
|
747
|
+
'tr',
|
|
748
|
+
{
|
|
749
|
+
class: [
|
|
750
|
+
'vxe-body--expanded-row',
|
|
751
|
+
{
|
|
752
|
+
'is--padding': padding
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
key: `expand_${rowid}`
|
|
756
|
+
},
|
|
757
|
+
[
|
|
758
|
+
h(
|
|
759
|
+
'td',
|
|
760
|
+
{
|
|
761
|
+
class: [
|
|
762
|
+
'vxe-body--expanded-column',
|
|
763
|
+
{
|
|
764
|
+
'fixed--hidden': fixedType && !hasFixedColumn,
|
|
765
|
+
'col--ellipsis': hasEllipsis
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
attrs: {
|
|
769
|
+
colspan: tableColumn.length
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
[
|
|
773
|
+
h(
|
|
774
|
+
'div',
|
|
775
|
+
{
|
|
776
|
+
class: [
|
|
777
|
+
'vxe-body--expanded-cell',
|
|
778
|
+
{
|
|
779
|
+
'is--ellipsis': expandHeight
|
|
780
|
+
}
|
|
781
|
+
],
|
|
782
|
+
style: cellStyle
|
|
783
|
+
},
|
|
784
|
+
[expandColumn.renderData(h, expandParams)]
|
|
785
|
+
)
|
|
786
|
+
]
|
|
787
|
+
)
|
|
788
|
+
]
|
|
789
|
+
)
|
|
727
790
|
)
|
|
728
791
|
}
|
|
729
792
|
}
|
|
@@ -746,7 +809,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
746
809
|
default: '' as 'right' | 'left' | ''
|
|
747
810
|
}
|
|
748
811
|
},
|
|
749
|
-
mounted
|
|
812
|
+
mounted() {
|
|
750
813
|
const _vm = this
|
|
751
814
|
const props = _vm
|
|
752
815
|
const $xeTable = _vm.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
@@ -764,7 +827,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
764
827
|
elemStore[`${prefix}ySpace`] = _vm.$refs.refBodyYSpace
|
|
765
828
|
elemStore[`${prefix}emptyBlock`] = _vm.$refs.refBodyEmptyBlock
|
|
766
829
|
},
|
|
767
|
-
destroyed
|
|
830
|
+
destroyed() {
|
|
768
831
|
const props = this
|
|
769
832
|
const $xeTable = this.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
770
833
|
const tableInternalData = $xeTable as unknown as TableInternalData
|
|
@@ -781,7 +844,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
781
844
|
elemStore[`${prefix}ySpace`] = null
|
|
782
845
|
elemStore[`${prefix}emptyBlock`] = null
|
|
783
846
|
},
|
|
784
|
-
render
|
|
847
|
+
render(h: CreateElement) {
|
|
785
848
|
const props = this
|
|
786
849
|
const $xeTable = this.$parent as VxeTableConstructor & VxeTablePrivateMethods
|
|
787
850
|
const tableProps = $xeTable
|
|
@@ -870,8 +933,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
870
933
|
emptyContent = emptySlot.call($xeTable, emptyParams)
|
|
871
934
|
} else {
|
|
872
935
|
const rendererOpts = $xeTable.computeRendererOpts
|
|
873
|
-
const compConf = emptyOpts.name ?
|
|
874
|
-
const rtEmptyView = compConf ?
|
|
936
|
+
const compConf = emptyOpts.name ? rendererOpts[emptyOpts.name] || renderer.get(emptyOpts.name) : null
|
|
937
|
+
const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null
|
|
875
938
|
if (rtEmptyView) {
|
|
876
939
|
emptyContent = getSlotVNs(rtEmptyView.call($xeTable, h, emptyOpts, emptyParams))
|
|
877
940
|
} else {
|
|
@@ -879,120 +942,156 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
879
942
|
}
|
|
880
943
|
}
|
|
881
944
|
|
|
882
|
-
return h(
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
h('div', {
|
|
890
|
-
ref: 'refBodyScroll',
|
|
891
|
-
class: 'vxe-table--body-inner-wrapper',
|
|
892
|
-
on: {
|
|
893
|
-
scroll (evnt: Event) {
|
|
894
|
-
$xeTable.triggerBodyScrollEvent(evnt, fixedType)
|
|
895
|
-
}
|
|
945
|
+
return h(
|
|
946
|
+
'div',
|
|
947
|
+
{
|
|
948
|
+
ref: 'refElem',
|
|
949
|
+
class: ['vxe-table--body-wrapper', fixedType ? `fixed-${fixedType}--wrapper` : 'body--wrapper'],
|
|
950
|
+
attrs: {
|
|
951
|
+
xid: xID
|
|
896
952
|
}
|
|
897
|
-
},
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}),
|
|
908
|
-
h('table', {
|
|
909
|
-
ref: 'refBodyTable',
|
|
910
|
-
class: 'vxe-table--body',
|
|
911
|
-
attrs: {
|
|
912
|
-
xid: xID,
|
|
913
|
-
cellspacing: 0,
|
|
914
|
-
cellpadding: 0,
|
|
915
|
-
border: 0,
|
|
916
|
-
xvm: isOptimizeMode ? '1' : null
|
|
917
|
-
}
|
|
918
|
-
}, [
|
|
919
|
-
/**
|
|
920
|
-
* 列宽
|
|
921
|
-
*/
|
|
922
|
-
h('colgroup', {
|
|
923
|
-
ref: 'refBodyColgroup'
|
|
924
|
-
}, renderColumnList.map((column, $columnIndex) => {
|
|
925
|
-
return h('col', {
|
|
926
|
-
attrs: {
|
|
927
|
-
name: column.id
|
|
928
|
-
},
|
|
929
|
-
key: $columnIndex,
|
|
930
|
-
style: {
|
|
931
|
-
width: `${column.renderWidth}px`
|
|
953
|
+
},
|
|
954
|
+
[
|
|
955
|
+
h(
|
|
956
|
+
'div',
|
|
957
|
+
{
|
|
958
|
+
ref: 'refBodyScroll',
|
|
959
|
+
class: 'vxe-table--body-inner-wrapper',
|
|
960
|
+
on: {
|
|
961
|
+
scroll(evnt: Event) {
|
|
962
|
+
$xeTable.triggerBodyScrollEvent(evnt, fixedType)
|
|
932
963
|
}
|
|
933
|
-
})
|
|
934
|
-
})),
|
|
935
|
-
/**
|
|
936
|
-
* 内容
|
|
937
|
-
*/
|
|
938
|
-
h('tbody', {
|
|
939
|
-
ref: 'refBodyTBody'
|
|
940
|
-
}, renderRows(h, this, fixedType, isOptimizeMode, renderDataList, renderColumnList))
|
|
941
|
-
]),
|
|
942
|
-
h('div', {
|
|
943
|
-
class: 'vxe-table--checkbox-range'
|
|
944
|
-
}),
|
|
945
|
-
hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area
|
|
946
|
-
? h('div', {
|
|
947
|
-
class: 'vxe-table--cell-area',
|
|
948
|
-
attrs: {
|
|
949
|
-
xid: xID
|
|
950
964
|
}
|
|
951
|
-
},
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
965
|
+
},
|
|
966
|
+
[
|
|
967
|
+
fixedType
|
|
968
|
+
? renderEmptyElement($xeTable)
|
|
969
|
+
: h('div', {
|
|
970
|
+
ref: 'refBodyXSpace',
|
|
971
|
+
class: 'vxe-body--x-space'
|
|
972
|
+
}),
|
|
973
|
+
h('div', {
|
|
974
|
+
ref: 'refBodyYSpace',
|
|
975
|
+
class: 'vxe-body--y-space'
|
|
976
|
+
}),
|
|
977
|
+
h(
|
|
978
|
+
'table',
|
|
979
|
+
{
|
|
980
|
+
ref: 'refBodyTable',
|
|
981
|
+
class: 'vxe-table--body',
|
|
982
|
+
attrs: {
|
|
983
|
+
xid: xID,
|
|
984
|
+
cellspacing: 0,
|
|
985
|
+
cellpadding: 0,
|
|
986
|
+
border: 0,
|
|
987
|
+
xvm: isOptimizeMode ? '1' : null
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
[
|
|
991
|
+
/**
|
|
992
|
+
* 列宽
|
|
993
|
+
*/
|
|
994
|
+
h(
|
|
995
|
+
'colgroup',
|
|
996
|
+
{
|
|
997
|
+
ref: 'refBodyColgroup'
|
|
998
|
+
},
|
|
999
|
+
renderColumnList.map((column, $columnIndex) => {
|
|
1000
|
+
return h('col', {
|
|
1001
|
+
attrs: {
|
|
1002
|
+
name: column.id
|
|
1003
|
+
},
|
|
1004
|
+
key: $columnIndex,
|
|
1005
|
+
style: {
|
|
1006
|
+
width: `${column.renderWidth}px`
|
|
963
1007
|
}
|
|
964
|
-
}
|
|
1008
|
+
})
|
|
965
1009
|
})
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}),
|
|
980
|
-
h('span', {
|
|
981
|
-
class: 'vxe-table--cell-row-status-area'
|
|
982
|
-
})
|
|
983
|
-
])
|
|
984
|
-
: renderEmptyElement($xeTable),
|
|
985
|
-
!fixedType
|
|
986
|
-
? h('div', {
|
|
987
|
-
class: 'vxe-table--empty-block',
|
|
988
|
-
ref: 'emptyBlock'
|
|
989
|
-
}, [
|
|
1010
|
+
),
|
|
1011
|
+
/**
|
|
1012
|
+
* 内容
|
|
1013
|
+
*/
|
|
1014
|
+
h(
|
|
1015
|
+
'tbody',
|
|
1016
|
+
{
|
|
1017
|
+
ref: 'refBodyTBody'
|
|
1018
|
+
},
|
|
1019
|
+
renderRows(h, this, fixedType, isOptimizeMode, renderDataList, renderColumnList)
|
|
1020
|
+
)
|
|
1021
|
+
]
|
|
1022
|
+
),
|
|
990
1023
|
h('div', {
|
|
991
|
-
class: 'vxe-table--
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1024
|
+
class: 'vxe-table--checkbox-range'
|
|
1025
|
+
}),
|
|
1026
|
+
hasEnableConf(mouseConfig, mouseOpts) && mouseOpts.area
|
|
1027
|
+
? h(
|
|
1028
|
+
'div',
|
|
1029
|
+
{
|
|
1030
|
+
class: 'vxe-table--cell-area',
|
|
1031
|
+
attrs: {
|
|
1032
|
+
xid: xID
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
[
|
|
1036
|
+
h(
|
|
1037
|
+
'span',
|
|
1038
|
+
{
|
|
1039
|
+
class: 'vxe-table--cell-main-area'
|
|
1040
|
+
},
|
|
1041
|
+
mouseOpts.extension
|
|
1042
|
+
? [
|
|
1043
|
+
h('span', {
|
|
1044
|
+
class: 'vxe-table--cell-main-area-btn',
|
|
1045
|
+
on: {
|
|
1046
|
+
mousedown(evnt: MouseEvent) {
|
|
1047
|
+
if ($xeTable.triggerCellAreaExtendMousedownEvent) {
|
|
1048
|
+
$xeTable.triggerCellAreaExtendMousedownEvent(evnt, { $table: $xeTable, fixed: fixedType, type: renderType })
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
})
|
|
1053
|
+
]
|
|
1054
|
+
: null
|
|
1055
|
+
),
|
|
1056
|
+
h('span', {
|
|
1057
|
+
class: 'vxe-table--cell-clip-area'
|
|
1058
|
+
}),
|
|
1059
|
+
h('span', {
|
|
1060
|
+
class: 'vxe-table--cell-extend-area'
|
|
1061
|
+
}),
|
|
1062
|
+
h('span', {
|
|
1063
|
+
class: 'vxe-table--cell-multi-area'
|
|
1064
|
+
}),
|
|
1065
|
+
h('span', {
|
|
1066
|
+
class: 'vxe-table--cell-active-area'
|
|
1067
|
+
}),
|
|
1068
|
+
h('span', {
|
|
1069
|
+
class: 'vxe-table--cell-row-status-area'
|
|
1070
|
+
})
|
|
1071
|
+
]
|
|
1072
|
+
)
|
|
1073
|
+
: renderEmptyElement($xeTable),
|
|
1074
|
+
!fixedType
|
|
1075
|
+
? h(
|
|
1076
|
+
'div',
|
|
1077
|
+
{
|
|
1078
|
+
class: 'vxe-table--empty-block',
|
|
1079
|
+
ref: 'emptyBlock'
|
|
1080
|
+
},
|
|
1081
|
+
[
|
|
1082
|
+
h(
|
|
1083
|
+
'div',
|
|
1084
|
+
{
|
|
1085
|
+
class: 'vxe-table--empty-content'
|
|
1086
|
+
},
|
|
1087
|
+
emptyContent
|
|
1088
|
+
)
|
|
1089
|
+
]
|
|
1090
|
+
)
|
|
1091
|
+
: renderEmptyElement($xeTable)
|
|
1092
|
+
]
|
|
1093
|
+
)
|
|
1094
|
+
]
|
|
1095
|
+
)
|
|
997
1096
|
}
|
|
998
1097
|
}) /* define-vxe-component end */
|