vxe-table 3.8.23 → 3.9.0-rc.0
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/README.md +47 -77
- package/es/colgroup/index.js +17 -0
- package/es/column/index.js +17 -0
- package/es/components.js +33 -0
- package/es/grid/index.js +13 -0
- package/es/grid/src/grid.js +1100 -0
- package/es/grid/style.css +61 -0
- package/es/grid/style.min.css +1 -0
- package/es/iconfont.1725953896189.ttf +0 -0
- package/es/iconfont.1725953896189.woff +0 -0
- package/es/iconfont.1725953896189.woff2 +0 -0
- package/es/index.esm.js +3 -0
- package/es/locale/lang/en-US.d.ts +2 -0
- package/es/locale/lang/en-US.js +673 -0
- package/es/locale/lang/es-ES.d.ts +2 -0
- package/es/locale/lang/es-ES.js +673 -0
- package/es/locale/lang/hu-HU.js +671 -0
- package/es/locale/lang/ja-JP.d.ts +2 -0
- package/es/locale/lang/ja-JP.js +673 -0
- package/es/locale/lang/ko-KR.js +673 -0
- package/es/locale/lang/pt-BR.d.ts +2 -0
- package/es/locale/lang/pt-BR.js +673 -0
- package/es/locale/lang/ru-RU.js +673 -0
- package/es/locale/lang/vi-VN.js +673 -0
- package/es/locale/lang/zh-CN.d.ts +2 -0
- package/es/locale/lang/zh-CN.js +673 -0
- package/es/locale/lang/zh-HK.d.ts +2 -0
- package/es/locale/lang/zh-HK.js +2 -0
- package/es/locale/lang/zh-MO.d.ts +2 -0
- package/es/locale/lang/zh-MO.js +2 -0
- package/es/locale/lang/zh-TC.d.ts +2 -0
- package/es/locale/lang/zh-TC.js +673 -0
- package/es/locale/lang/zh-TW.d.ts +2 -0
- package/es/locale/lang/zh-TW.js +2 -0
- package/es/style.css +1 -0
- package/es/style.min.css +1 -0
- package/es/table/index.js +14 -0
- package/es/table/module/custom/mixin.js +87 -0
- package/es/table/module/custom/panel.js +974 -0
- package/es/table/module/edit/mixin.js +810 -0
- package/es/table/module/export/export-panel.js +448 -0
- package/es/table/module/export/import-panel.js +185 -0
- package/es/table/module/export/mixin.js +1463 -0
- package/es/table/module/export/util.js +20 -0
- package/es/table/module/filter/mixin.js +276 -0
- package/es/table/module/filter/panel.js +219 -0
- package/es/table/module/keyboard/mixin.js +376 -0
- package/es/table/module/menu/mixin.js +282 -0
- package/es/table/module/menu/panel.js +138 -0
- package/es/table/module/validator/mixin.js +487 -0
- package/es/table/render/index.js +796 -0
- package/es/table/src/body.js +771 -0
- package/es/table/src/cell.js +846 -0
- package/es/table/src/column.js +139 -0
- package/es/table/src/columnInfo.js +158 -0
- package/es/table/src/footer.js +279 -0
- package/es/table/src/group.js +11 -0
- package/es/table/src/header.js +302 -0
- package/es/table/src/methods.js +5640 -0
- package/es/table/src/props.js +170 -0
- package/es/table/src/table.js +1132 -0
- package/es/table/src/util.js +384 -0
- package/es/table/style.css +2805 -0
- package/es/table/style.min.css +1 -0
- package/es/toolbar/index.js +13 -0
- package/es/toolbar/src/toolbar.js +675 -0
- package/es/toolbar/style.css +91 -0
- package/es/toolbar/style.min.css +1 -0
- package/es/ui/index.js +377 -0
- package/es/ui/src/comp.js +1 -0
- package/es/ui/src/dom.js +141 -0
- package/es/ui/src/log.js +5 -0
- package/es/ui/src/utils.js +44 -0
- package/es/ui/src/vn.js +10 -0
- package/es/v-x-e-table/index.js +3 -0
- package/es/vxe-colgroup/index.js +3 -0
- package/es/vxe-column/index.js +3 -0
- package/es/vxe-grid/index.js +3 -0
- package/es/vxe-grid/style.css +61 -0
- package/es/vxe-grid/style.min.css +1 -0
- package/es/vxe-table/index.js +3 -0
- package/es/vxe-table/style.css +2805 -0
- package/es/vxe-table/style.min.css +1 -0
- package/es/vxe-toolbar/index.js +3 -0
- package/es/vxe-toolbar/style.css +91 -0
- package/es/vxe-toolbar/style.min.css +1 -0
- package/es/vxe-ui/index.js +3 -0
- package/es/vxe-v-x-e-table/index.js +3 -0
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/colgroup/index.js +12 -7
- package/lib/colgroup/index.min.js +1 -1
- package/lib/colgroup/style/style.css +0 -26
- package/lib/column/index.js +12 -7
- package/lib/column/index.min.js +1 -1
- package/lib/column/style/style.css +0 -26
- package/lib/components.js +101 -0
- package/lib/components.min.js +1 -0
- package/lib/grid/index.js +9 -8
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +114 -121
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +6 -32
- package/lib/grid/style/style.min.css +1 -1
- package/lib/iconfont.1725953896189.ttf +0 -0
- package/lib/iconfont.1725953896189.woff +0 -0
- package/lib/iconfont.1725953896189.woff2 +0 -0
- package/lib/index.common.js +5 -5
- package/lib/index.umd.js +18867 -29242
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.d.ts +2 -8
- package/lib/locale/lang/en-US.js +11 -6
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +11 -6
- package/lib/locale/lang/es-ES.d.ts +2 -8
- package/lib/locale/lang/es-ES.js +11 -6
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +11 -6
- package/lib/locale/lang/hu-HU.js +677 -0
- package/lib/locale/lang/hu-HU.min.js +1 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -8
- package/lib/locale/lang/ja-JP.js +11 -6
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +11 -6
- package/lib/locale/lang/ko-KR.js +679 -0
- package/lib/locale/lang/ko-KR.min.js +1 -0
- package/lib/locale/lang/pt-BR.d.ts +2 -8
- package/lib/locale/lang/pt-BR.js +11 -6
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +11 -6
- package/lib/locale/lang/ru-RU.js +679 -0
- package/lib/locale/lang/ru-RU.min.js +1 -0
- package/lib/locale/lang/vi-VN.js +679 -0
- package/lib/locale/lang/vi-VN.min.js +1 -0
- package/lib/locale/lang/zh-CN.d.ts +2 -8
- package/lib/locale/lang/zh-CN.js +11 -6
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +11 -6
- package/lib/locale/lang/zh-HK.d.ts +2 -8
- package/lib/locale/lang/zh-HK.js +1 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +11 -6
- package/lib/locale/lang/zh-MO.d.ts +2 -8
- package/lib/locale/lang/zh-MO.js +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +11 -6
- package/lib/locale/lang/zh-TC.d.ts +2 -8
- package/lib/locale/lang/zh-TC.js +11 -6
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +11 -6
- package/lib/locale/lang/zh-TW.d.ts +2 -8
- package/lib/locale/lang/zh-TW.js +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +11 -6
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/index.js +10 -31
- package/lib/table/index.min.js +1 -1
- package/lib/table/module/custom/mixin.js +117 -0
- package/lib/table/module/custom/mixin.min.js +1 -0
- package/lib/table/module/custom/panel.js +910 -0
- package/lib/table/module/custom/panel.min.js +1 -0
- package/lib/table/module/edit/mixin.js +975 -0
- package/lib/table/module/edit/mixin.min.js +1 -0
- package/lib/table/module/export/export-panel.js +412 -0
- package/lib/table/module/export/export-panel.min.js +1 -0
- package/lib/table/module/export/import-panel.js +177 -0
- package/lib/table/module/export/import-panel.min.js +1 -0
- package/lib/table/module/export/mixin.js +1735 -0
- package/lib/table/module/export/mixin.min.js +1 -0
- package/lib/table/module/export/util.js +18 -0
- package/lib/table/module/export/util.min.js +1 -0
- package/lib/table/module/filter/mixin.js +329 -0
- package/lib/table/module/filter/mixin.min.js +1 -0
- package/lib/table/module/filter/panel.js +213 -0
- package/lib/table/module/filter/panel.min.js +1 -0
- package/lib/table/module/keyboard/mixin.js +410 -0
- package/lib/table/module/keyboard/mixin.min.js +1 -0
- package/lib/table/module/menu/mixin.js +329 -0
- package/lib/table/module/menu/mixin.min.js +1 -0
- package/lib/table/module/menu/panel.js +117 -0
- package/lib/table/module/menu/panel.min.js +1 -0
- package/lib/table/module/validator/mixin.js +550 -0
- package/lib/table/module/validator/mixin.min.js +1 -0
- package/lib/table/render/index.js +895 -0
- package/lib/table/render/index.min.js +1 -0
- package/lib/table/src/body.js +38 -44
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +83 -87
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +5 -5
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +13 -21
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +14 -14
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/group.js +1 -1
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/header.js +19 -23
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +608 -599
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +296 -0
- package/lib/table/src/props.min.js +1 -0
- package/lib/table/src/table.js +150 -419
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +73 -23
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1715 -361
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/index.js +9 -6
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +579 -413
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +11 -37
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/ui/index.js +382 -16
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +9 -0
- package/lib/ui/src/comp.min.js +1 -0
- package/lib/ui/src/dom.js +184 -0
- package/lib/ui/src/dom.min.js +1 -0
- package/lib/ui/src/log.js +11 -0
- package/lib/ui/src/log.min.js +1 -0
- package/lib/ui/src/utils.js +63 -0
- package/lib/ui/src/utils.min.js +1 -0
- package/lib/ui/src/vn.js +18 -0
- package/lib/ui/src/vn.min.js +1 -0
- package/lib/v-x-e-table/index.js +10 -277
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +0 -1630
- package/lib/v-x-e-table/style/style.min.css +0 -1
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-colgroup/style/style.css +0 -26
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-column/style/style.css +0 -26
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-grid/style/style.css +6 -32
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +1715 -361
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-toolbar/style/style.css +11 -37
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/lib/vxe-ui/index.js +23 -0
- package/lib/vxe-ui/index.min.js +1 -0
- package/lib/vxe-v-x-e-table/index.js +23 -0
- package/lib/vxe-v-x-e-table/index.min.js +1 -0
- 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/package.json +18 -25
- package/packages/colgroup/index.ts +22 -0
- package/packages/column/index.ts +22 -0
- package/packages/components.ts +43 -0
- package/packages/grid/index.ts +18 -0
- package/packages/grid/src/grid.ts +1129 -0
- package/packages/index.ts +4 -0
- package/packages/locale/lang/en-US.ts +675 -0
- package/packages/locale/lang/es-ES.ts +675 -0
- package/packages/locale/lang/hu-HU.ts +673 -0
- package/packages/locale/lang/ja-JP.ts +675 -0
- package/packages/locale/lang/ko-KR.ts +675 -0
- package/packages/locale/lang/pt-BR.ts +675 -0
- package/packages/locale/lang/ru-RU.ts +675 -0
- package/packages/locale/lang/vi-VN.ts +675 -0
- package/packages/locale/lang/zh-CN.ts +675 -0
- package/packages/locale/lang/zh-TC.ts +675 -0
- package/packages/table/index.ts +19 -0
- package/packages/table/module/custom/mixin.ts +87 -0
- package/packages/table/module/custom/panel.ts +984 -0
- package/packages/table/module/edit/mixin.ts +797 -0
- package/packages/table/module/export/export-panel.ts +452 -0
- package/packages/table/module/export/import-panel.ts +188 -0
- package/packages/table/module/export/mixin.ts +1504 -0
- package/packages/table/module/export/util.ts +24 -0
- package/packages/table/module/filter/mixin.ts +273 -0
- package/packages/table/module/filter/panel.ts +220 -0
- package/packages/table/module/keyboard/mixin.ts +355 -0
- package/packages/table/module/menu/mixin.ts +272 -0
- package/packages/table/module/menu/panel.ts +141 -0
- package/packages/table/module/validator/mixin.ts +475 -0
- package/packages/table/render/index.ts +863 -0
- package/packages/table/src/body.ts +842 -0
- package/packages/table/src/cell.ts +872 -0
- package/packages/table/src/column.ts +141 -0
- package/packages/table/src/columnInfo.ts +169 -0
- package/packages/table/src/footer.ts +300 -0
- package/packages/table/src/header.ts +304 -0
- package/packages/table/src/methods.ts +5559 -0
- package/packages/table/src/props.ts +173 -0
- package/packages/table/src/table.ts +1186 -0
- package/packages/table/src/util.ts +410 -0
- package/packages/toolbar/index.ts +18 -0
- package/packages/toolbar/src/toolbar.ts +733 -0
- package/packages/ui/index.ts +397 -0
- package/packages/ui/src/comp.ts +3 -0
- package/packages/ui/src/dom.ts +163 -0
- package/packages/ui/src/log.ts +8 -0
- package/packages/ui/src/utils.ts +54 -0
- package/packages/ui/src/vn.ts +14 -0
- package/packages/v-x-e-table/index.ts +4 -0
- package/styles/all.scss +6 -32
- package/styles/base.scss +16 -0
- package/styles/components/colgroup.scss +0 -0
- package/styles/components/column.scss +0 -0
- package/styles/components/grid.scss +62 -0
- package/styles/components/icon.scss +187 -0
- package/styles/components/old-icon.scss +717 -0
- package/styles/components/table-module/all.scss +7 -0
- package/styles/components/table-module/custom.scss +381 -0
- package/styles/components/table-module/edit.scss +0 -0
- package/styles/components/table-module/export.scss +127 -0
- package/styles/components/table-module/filter.scss +112 -0
- package/styles/components/table-module/keyboard.scss +0 -0
- package/styles/components/table-module/menu.scss +86 -0
- package/styles/components/table-module/validator.scss +0 -0
- package/styles/components/table.scss +1492 -0
- package/styles/components/toolbar.scss +102 -0
- package/styles/components/ui.scss +0 -0
- package/styles/components/v-x-e-table.scss +0 -0
- package/styles/cssvar.scss +3 -2
- package/styles/default.scss +2 -0
- package/styles/helpers/mixin.scss +16 -13
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/modules.scss +6 -33
- package/styles/theme/base.scss +89 -0
- package/styles/theme/dark.scss +41 -0
- package/styles/theme/light.scss +39 -0
- package/styles/variable.scss +2 -275
- package/types/all.d.ts +45 -70
- package/types/index.d.ts +2 -7
- package/lib/all.js +0 -459
- package/lib/all.min.js +0 -1
- package/lib/button/index.d.ts +0 -4
- package/lib/button/index.js +0 -17
- package/lib/button/index.min.js +0 -1
- package/lib/button/src/button.js +0 -512
- package/lib/button/src/button.min.js +0 -1
- package/lib/button/src/group.js +0 -71
- package/lib/button/src/group.min.js +0 -1
- package/lib/button/style/style.css +0 -571
- package/lib/button/style/style.min.css +0 -1
- package/lib/button-group/index.d.ts +0 -4
- package/lib/button-group/index.js +0 -17
- package/lib/button-group/index.min.js +0 -1
- package/lib/button-group/style/style.css +0 -29
- package/lib/button-group/style/style.min.css +0 -1
- package/lib/checkbox/index.d.ts +0 -4
- package/lib/checkbox/index.js +0 -17
- package/lib/checkbox/index.min.js +0 -1
- package/lib/checkbox/src/checkbox.js +0 -138
- package/lib/checkbox/src/checkbox.min.js +0 -1
- package/lib/checkbox/src/group.js +0 -105
- package/lib/checkbox/src/group.min.js +0 -1
- package/lib/checkbox/style/index.js +0 -1
- package/lib/checkbox/style/style.css +0 -292
- package/lib/checkbox/style/style.min.css +0 -1
- package/lib/checkbox-group/index.d.ts +0 -4
- package/lib/checkbox-group/index.js +0 -17
- package/lib/checkbox-group/index.min.js +0 -1
- package/lib/checkbox-group/style/style.css +0 -26
- package/lib/colgroup/index.d.ts +0 -4
- package/lib/column/index.d.ts +0 -4
- package/lib/custom/index.d.ts +0 -4
- package/lib/custom/index.js +0 -21
- package/lib/custom/index.min.js +0 -1
- package/lib/custom/src/mixin.js +0 -117
- package/lib/custom/src/mixin.min.js +0 -1
- package/lib/custom/src/panel.js +0 -865
- package/lib/custom/src/panel.min.js +0 -1
- package/lib/custom/style/index.js +0 -1
- package/lib/custom/style/style.css +0 -629
- package/lib/custom/style/style.min.css +0 -1
- package/lib/edit/index.d.ts +0 -4
- package/lib/edit/index.js +0 -18
- package/lib/edit/index.min.js +0 -1
- package/lib/edit/src/mixin.js +0 -973
- package/lib/edit/src/mixin.min.js +0 -1
- package/lib/edit/style/index.js +0 -1
- package/lib/edit/style/style.css +0 -26
- package/lib/export/index.d.ts +0 -4
- package/lib/export/index.js +0 -59
- package/lib/export/index.min.js +0 -1
- package/lib/export/src/export-panel.js +0 -413
- package/lib/export/src/export-panel.min.js +0 -1
- package/lib/export/src/import-panel.js +0 -176
- package/lib/export/src/import-panel.min.js +0 -1
- package/lib/export/src/mixin.js +0 -1762
- package/lib/export/src/mixin.min.js +0 -1
- package/lib/export/style/index.js +0 -1
- package/lib/export/style/style.css +0 -219
- package/lib/export/style/style.min.css +0 -1
- package/lib/filter/index.d.ts +0 -4
- package/lib/filter/index.js +0 -21
- package/lib/filter/index.min.js +0 -1
- package/lib/filter/src/mixin.js +0 -328
- package/lib/filter/src/mixin.min.js +0 -1
- package/lib/filter/src/panel.js +0 -215
- package/lib/filter/src/panel.min.js +0 -1
- package/lib/filter/style/index.js +0 -1
- package/lib/filter/style/style.css +0 -166
- package/lib/filter/style/style.min.css +0 -1
- package/lib/form/index.d.ts +0 -4
- package/lib/form/index.js +0 -17
- package/lib/form/index.min.js +0 -1
- package/lib/form/src/form-config-item.js +0 -194
- package/lib/form/src/form-config-item.min.js +0 -1
- package/lib/form/src/form-gather.js +0 -36
- package/lib/form/src/form-gather.min.js +0 -1
- package/lib/form/src/form-item.js +0 -259
- package/lib/form/src/form-item.min.js +0 -1
- package/lib/form/src/form.js +0 -764
- package/lib/form/src/form.min.js +0 -1
- package/lib/form/src/render.js +0 -81
- package/lib/form/src/render.min.js +0 -1
- package/lib/form/src/util.js +0 -148
- package/lib/form/src/util.min.js +0 -1
- package/lib/form/style/index.js +0 -1
- package/lib/form/style/style.css +0 -444
- package/lib/form/style/style.min.css +0 -1
- package/lib/form-gather/index.d.ts +0 -4
- package/lib/form-gather/index.js +0 -17
- package/lib/form-gather/index.min.js +0 -1
- package/lib/form-gather/style/index.js +0 -1
- package/lib/form-gather/style/style.css +0 -26
- package/lib/form-item/index.d.ts +0 -4
- package/lib/form-item/index.js +0 -17
- package/lib/form-item/index.min.js +0 -1
- package/lib/form-item/style/index.js +0 -1
- package/lib/form-item/style/style.css +0 -26
- package/lib/grid/index.d.ts +0 -4
- package/lib/icon/index.d.ts +0 -4
- package/lib/icon/index.js +0 -17
- package/lib/icon/index.min.js +0 -1
- package/lib/icon/src/icon.js +0 -32
- package/lib/icon/src/icon.min.js +0 -1
- package/lib/icon/style/iconfont.1724894779531.ttf +0 -0
- package/lib/icon/style/iconfont.1724894779531.woff +0 -0
- package/lib/icon/style/iconfont.1724894779531.woff2 +0 -0
- package/lib/icon/style/index.js +0 -1
- package/lib/icon/style/style.css +0 -1550
- package/lib/icon/style/style.min.css +0 -1550
- package/lib/iconfont.1724894779531.ttf +0 -0
- package/lib/iconfont.1724894779531.woff +0 -0
- package/lib/iconfont.1724894779531.woff2 +0 -0
- package/lib/index.common.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/input/index.d.ts +0 -4
- package/lib/input/index.js +0 -17
- package/lib/input/index.min.js +0 -1
- package/lib/input/src/date.js +0 -44
- package/lib/input/src/date.min.js +0 -1
- package/lib/input/src/input.js +0 -2481
- package/lib/input/src/input.min.js +0 -1
- package/lib/input/src/number.js +0 -18
- package/lib/input/src/number.min.js +0 -1
- package/lib/input/style/index.js +0 -1
- package/lib/input/style/style.css +0 -1039
- package/lib/input/style/style.min.css +0 -1
- package/lib/keyboard/index.d.ts +0 -4
- package/lib/keyboard/index.js +0 -18
- package/lib/keyboard/index.min.js +0 -1
- package/lib/keyboard/src/mixin.js +0 -413
- package/lib/keyboard/src/mixin.min.js +0 -1
- package/lib/keyboard/style/index.js +0 -1
- package/lib/keyboard/style/style.css +0 -26
- package/lib/list/index.d.ts +0 -4
- package/lib/list/index.js +0 -17
- package/lib/list/index.min.js +0 -1
- package/lib/list/src/list.js +0 -356
- package/lib/list/src/list.min.js +0 -1
- package/lib/list/style/index.js +0 -1
- package/lib/list/style/style.css +0 -52
- package/lib/list/style/style.min.css +0 -1
- package/lib/loading/index.d.ts +0 -4
- package/lib/loading/index.js +0 -17
- package/lib/loading/index.min.js +0 -1
- package/lib/loading/src/loading.js +0 -46
- package/lib/loading/src/loading.min.js +0 -1
- package/lib/loading/style/index.js +0 -1
- package/lib/loading/style/style.css +0 -104
- package/lib/loading/style/style.min.css +0 -1
- package/lib/locale/lang/language.d.ts +0 -5
- package/lib/menu/index.d.ts +0 -4
- package/lib/menu/index.js +0 -21
- package/lib/menu/index.min.js +0 -1
- package/lib/menu/src/mixin.js +0 -331
- package/lib/menu/src/mixin.min.js +0 -1
- package/lib/menu/src/panel.js +0 -117
- package/lib/menu/src/panel.min.js +0 -1
- package/lib/menu/style/index.js +0 -1
- package/lib/menu/style/style.css +0 -126
- package/lib/menu/style/style.min.css +0 -1
- package/lib/mixins/size.js +0 -15
- package/lib/mixins/size.min.js +0 -1
- package/lib/modal/index.d.ts +0 -4
- package/lib/modal/index.js +0 -131
- package/lib/modal/index.min.js +0 -1
- package/lib/modal/src/modal.js +0 -1114
- package/lib/modal/src/modal.min.js +0 -1
- package/lib/modal/style/index.js +0 -1
- package/lib/modal/style/style.css +0 -354
- package/lib/modal/style/style.min.css +0 -1
- package/lib/optgroup/index.d.ts +0 -4
- package/lib/optgroup/index.js +0 -17
- package/lib/optgroup/index.min.js +0 -1
- package/lib/optgroup/style/index.js +0 -1
- package/lib/optgroup/style/style.css +0 -26
- package/lib/option/index.d.ts +0 -4
- package/lib/option/index.js +0 -17
- package/lib/option/index.min.js +0 -1
- package/lib/option/style/index.js +0 -1
- package/lib/option/style/style.css +0 -26
- package/lib/pager/index.d.ts +0 -4
- package/lib/pager/index.js +0 -17
- package/lib/pager/index.min.js +0 -1
- package/lib/pager/src/pager.js +0 -550
- package/lib/pager/src/pager.min.js +0 -1
- package/lib/pager/style/index.js +0 -1
- package/lib/pager/style/style.css +0 -329
- package/lib/pager/style/style.min.css +0 -1
- package/lib/pulldown/index.d.ts +0 -4
- package/lib/pulldown/index.js +0 -17
- package/lib/pulldown/index.min.js +0 -1
- package/lib/pulldown/src/pulldown.js +0 -316
- package/lib/pulldown/src/pulldown.min.js +0 -1
- package/lib/pulldown/style/index.js +0 -1
- package/lib/pulldown/style/style.css +0 -85
- package/lib/pulldown/style/style.min.css +0 -1
- package/lib/radio/index.d.ts +0 -4
- package/lib/radio/index.js +0 -17
- package/lib/radio/index.min.js +0 -1
- package/lib/radio/src/button.js +0 -128
- package/lib/radio/src/button.min.js +0 -1
- package/lib/radio/src/group.js +0 -97
- package/lib/radio/src/group.min.js +0 -1
- package/lib/radio/src/radio.js +0 -133
- package/lib/radio/src/radio.min.js +0 -1
- package/lib/radio/style/index.js +0 -1
- package/lib/radio/style/style.css +0 -328
- package/lib/radio/style/style.min.css +0 -1
- package/lib/radio-button/index.d.ts +0 -4
- package/lib/radio-button/index.js +0 -17
- package/lib/radio-button/index.min.js +0 -1
- package/lib/radio-button/style/index.js +0 -1
- package/lib/radio-button/style/style.css +0 -26
- package/lib/radio-group/index.d.ts +0 -4
- package/lib/radio-group/index.js +0 -17
- package/lib/radio-group/index.min.js +0 -1
- package/lib/radio-group/style/index.js +0 -1
- package/lib/radio-group/style/style.css +0 -26
- package/lib/select/index.d.ts +0 -4
- package/lib/select/index.js +0 -23
- package/lib/select/index.min.js +0 -1
- package/lib/select/src/optgroup.js +0 -57
- package/lib/select/src/optgroup.min.js +0 -1
- package/lib/select/src/option.js +0 -51
- package/lib/select/src/option.min.js +0 -1
- package/lib/select/src/select.js +0 -1068
- package/lib/select/src/select.min.js +0 -1
- package/lib/select/src/util.js +0 -74
- package/lib/select/src/util.min.js +0 -1
- package/lib/select/style/index.js +0 -1
- package/lib/select/style/style.css +0 -229
- package/lib/select/style/style.min.css +0 -1
- package/lib/switch/index.d.ts +0 -4
- package/lib/switch/index.js +0 -17
- package/lib/switch/index.min.js +0 -1
- package/lib/switch/src/switch.js +0 -161
- package/lib/switch/src/switch.min.js +0 -1
- package/lib/switch/style/index.js +0 -1
- package/lib/switch/style/style.css +0 -134
- package/lib/switch/style/style.min.css +0 -1
- package/lib/table/index.d.ts +0 -4
- package/lib/textarea/index.d.ts +0 -4
- package/lib/textarea/index.js +0 -17
- package/lib/textarea/index.min.js +0 -1
- package/lib/textarea/src/textarea.js +0 -282
- package/lib/textarea/src/textarea.min.js +0 -1
- package/lib/textarea/style/index.js +0 -1
- package/lib/textarea/style/style.css +0 -131
- package/lib/textarea/style/style.min.css +0 -1
- package/lib/toolbar/index.d.ts +0 -4
- package/lib/tools/dom.js +0 -196
- package/lib/tools/dom.min.js +0 -1
- package/lib/tools/event.js +0 -96
- package/lib/tools/event.min.js +0 -1
- package/lib/tools/log.js +0 -22
- package/lib/tools/log.min.js +0 -1
- package/lib/tools/resize.js +0 -103
- package/lib/tools/resize.min.js +0 -1
- package/lib/tools/utils.js +0 -116
- package/lib/tools/utils.min.js +0 -1
- package/lib/tools/vn.js +0 -14
- package/lib/tools/vn.min.js +0 -1
- package/lib/tooltip/index.d.ts +0 -4
- package/lib/tooltip/index.js +0 -18
- package/lib/tooltip/index.min.js +0 -1
- package/lib/tooltip/src/tooltip.js +0 -361
- package/lib/tooltip/src/tooltip.min.js +0 -1
- package/lib/tooltip/style/index.js +0 -1
- package/lib/tooltip/style/style.css +0 -130
- package/lib/tooltip/style/style.min.css +0 -1
- package/lib/ui/index.d.ts +0 -4
- package/lib/v-x-e-table/index.d.ts +0 -4
- package/lib/v-x-e-table/src/commands.js +0 -74
- package/lib/v-x-e-table/src/commands.min.js +0 -1
- package/lib/v-x-e-table/src/conf.js +0 -420
- package/lib/v-x-e-table/src/conf.min.js +0 -1
- package/lib/v-x-e-table/src/formats.js +0 -74
- package/lib/v-x-e-table/src/formats.min.js +0 -1
- package/lib/v-x-e-table/src/interceptor.js +0 -59
- package/lib/v-x-e-table/src/interceptor.min.js +0 -1
- package/lib/v-x-e-table/src/menus.js +0 -74
- package/lib/v-x-e-table/src/menus.min.js +0 -1
- package/lib/v-x-e-table/src/renderer.js +0 -1026
- package/lib/v-x-e-table/src/renderer.min.js +0 -1
- package/lib/v-x-e-table/src/store.js +0 -62
- package/lib/v-x-e-table/src/store.min.js +0 -1
- package/lib/v-x-e-table/src/theme.js +0 -25
- package/lib/v-x-e-table/src/theme.min.js +0 -1
- package/lib/v-x-e-table/src/validators.js +0 -14
- package/lib/v-x-e-table/src/validators.min.js +0 -1
- package/lib/validator/index.d.ts +0 -4
- package/lib/validator/index.js +0 -18
- package/lib/validator/index.min.js +0 -1
- package/lib/validator/src/mixin.js +0 -545
- package/lib/validator/src/mixin.min.js +0 -1
- package/lib/validator/style/index.js +0 -1
- package/lib/validator/style/style.css +0 -26
- package/lib/vxe-button/index.d.ts +0 -4
- package/lib/vxe-button/index.js +0 -23
- package/lib/vxe-button/index.min.js +0 -1
- package/lib/vxe-button/style/index.js +0 -1
- package/lib/vxe-button/style/style.css +0 -571
- package/lib/vxe-button/style/style.min.css +0 -1
- package/lib/vxe-button-group/index.d.ts +0 -4
- package/lib/vxe-button-group/index.js +0 -23
- package/lib/vxe-button-group/index.min.js +0 -1
- package/lib/vxe-button-group/style/index.js +0 -1
- package/lib/vxe-button-group/style/style.css +0 -29
- package/lib/vxe-button-group/style/style.min.css +0 -1
- package/lib/vxe-checkbox/index.d.ts +0 -4
- package/lib/vxe-checkbox/index.js +0 -23
- package/lib/vxe-checkbox/index.min.js +0 -1
- package/lib/vxe-checkbox/style/index.js +0 -1
- package/lib/vxe-checkbox/style/style.css +0 -292
- package/lib/vxe-checkbox/style/style.min.css +0 -1
- package/lib/vxe-checkbox-group/index.d.ts +0 -4
- package/lib/vxe-checkbox-group/index.js +0 -23
- package/lib/vxe-checkbox-group/index.min.js +0 -1
- package/lib/vxe-checkbox-group/style/index.js +0 -1
- package/lib/vxe-checkbox-group/style/style.css +0 -26
- package/lib/vxe-colgroup/index.d.ts +0 -4
- package/lib/vxe-column/index.d.ts +0 -4
- package/lib/vxe-form/index.d.ts +0 -4
- package/lib/vxe-form/index.js +0 -23
- package/lib/vxe-form/index.min.js +0 -1
- package/lib/vxe-form/style/index.js +0 -1
- package/lib/vxe-form/style/style.css +0 -444
- package/lib/vxe-form/style/style.min.css +0 -1
- package/lib/vxe-form-gather/index.d.ts +0 -4
- package/lib/vxe-form-gather/index.js +0 -23
- package/lib/vxe-form-gather/index.min.js +0 -1
- package/lib/vxe-form-gather/style/index.js +0 -1
- package/lib/vxe-form-gather/style/style.css +0 -26
- package/lib/vxe-form-item/index.d.ts +0 -4
- package/lib/vxe-form-item/index.js +0 -23
- package/lib/vxe-form-item/index.min.js +0 -1
- package/lib/vxe-form-item/style/index.js +0 -1
- package/lib/vxe-form-item/style/style.css +0 -26
- package/lib/vxe-grid/index.d.ts +0 -4
- package/lib/vxe-icon/index.d.ts +0 -4
- package/lib/vxe-icon/index.js +0 -23
- package/lib/vxe-icon/index.min.js +0 -1
- package/lib/vxe-icon/style/index.js +0 -1
- package/lib/vxe-icon/style/style.css +0 -1550
- package/lib/vxe-icon/style/style.min.css +0 -1
- package/lib/vxe-input/index.d.ts +0 -4
- package/lib/vxe-input/index.js +0 -23
- package/lib/vxe-input/index.min.js +0 -1
- package/lib/vxe-input/style/index.js +0 -1
- package/lib/vxe-input/style/style.css +0 -1039
- package/lib/vxe-input/style/style.min.css +0 -1
- package/lib/vxe-list/index.d.ts +0 -4
- package/lib/vxe-list/index.js +0 -23
- package/lib/vxe-list/index.min.js +0 -1
- package/lib/vxe-list/style/index.js +0 -1
- package/lib/vxe-list/style/style.css +0 -52
- package/lib/vxe-list/style/style.min.css +0 -1
- package/lib/vxe-loading/index.d.ts +0 -4
- package/lib/vxe-loading/index.js +0 -23
- package/lib/vxe-loading/index.min.js +0 -1
- package/lib/vxe-loading/style/index.js +0 -1
- package/lib/vxe-loading/style/style.css +0 -104
- package/lib/vxe-loading/style/style.min.css +0 -1
- package/lib/vxe-modal/index.d.ts +0 -4
- package/lib/vxe-modal/index.js +0 -23
- package/lib/vxe-modal/index.min.js +0 -1
- package/lib/vxe-modal/style/index.js +0 -1
- package/lib/vxe-modal/style/style.css +0 -354
- package/lib/vxe-modal/style/style.min.css +0 -1
- package/lib/vxe-optgroup/index.d.ts +0 -4
- package/lib/vxe-optgroup/index.js +0 -23
- package/lib/vxe-optgroup/index.min.js +0 -1
- package/lib/vxe-optgroup/style/index.js +0 -1
- package/lib/vxe-optgroup/style/style.css +0 -26
- package/lib/vxe-option/index.d.ts +0 -4
- package/lib/vxe-option/index.js +0 -23
- package/lib/vxe-option/index.min.js +0 -1
- package/lib/vxe-option/style/index.js +0 -1
- package/lib/vxe-option/style/style.css +0 -26
- package/lib/vxe-pager/index.d.ts +0 -4
- package/lib/vxe-pager/index.js +0 -23
- package/lib/vxe-pager/index.min.js +0 -1
- package/lib/vxe-pager/style/index.js +0 -1
- package/lib/vxe-pager/style/style.css +0 -329
- package/lib/vxe-pager/style/style.min.css +0 -1
- package/lib/vxe-pulldown/index.d.ts +0 -4
- package/lib/vxe-pulldown/index.js +0 -23
- package/lib/vxe-pulldown/index.min.js +0 -1
- package/lib/vxe-pulldown/style/index.js +0 -1
- package/lib/vxe-pulldown/style/style.css +0 -85
- package/lib/vxe-pulldown/style/style.min.css +0 -1
- package/lib/vxe-radio/index.d.ts +0 -4
- package/lib/vxe-radio/index.js +0 -23
- package/lib/vxe-radio/index.min.js +0 -1
- package/lib/vxe-radio/style/index.js +0 -1
- package/lib/vxe-radio/style/style.css +0 -328
- package/lib/vxe-radio/style/style.min.css +0 -1
- package/lib/vxe-radio-button/index.d.ts +0 -4
- package/lib/vxe-radio-button/index.js +0 -23
- package/lib/vxe-radio-button/index.min.js +0 -1
- package/lib/vxe-radio-button/style/index.js +0 -1
- package/lib/vxe-radio-button/style/style.css +0 -26
- package/lib/vxe-radio-group/index.d.ts +0 -4
- package/lib/vxe-radio-group/index.js +0 -23
- package/lib/vxe-radio-group/index.min.js +0 -1
- package/lib/vxe-radio-group/style/index.js +0 -1
- package/lib/vxe-radio-group/style/style.css +0 -26
- package/lib/vxe-select/index.d.ts +0 -4
- package/lib/vxe-select/index.js +0 -23
- package/lib/vxe-select/index.min.js +0 -1
- package/lib/vxe-select/style/index.js +0 -1
- package/lib/vxe-select/style/style.css +0 -229
- package/lib/vxe-select/style/style.min.css +0 -1
- package/lib/vxe-switch/index.d.ts +0 -4
- package/lib/vxe-switch/index.js +0 -23
- package/lib/vxe-switch/index.min.js +0 -1
- package/lib/vxe-switch/style/index.js +0 -1
- package/lib/vxe-switch/style/style.css +0 -134
- package/lib/vxe-switch/style/style.min.css +0 -1
- package/lib/vxe-table/index.d.ts +0 -4
- package/lib/vxe-table-custom-module/index.d.ts +0 -4
- package/lib/vxe-table-custom-module/index.js +0 -23
- package/lib/vxe-table-custom-module/index.min.js +0 -1
- package/lib/vxe-table-custom-module/style/index.js +0 -1
- package/lib/vxe-table-custom-module/style/style.css +0 -629
- package/lib/vxe-table-custom-module/style/style.min.css +0 -1
- package/lib/vxe-table-edit-module/index.d.ts +0 -4
- package/lib/vxe-table-edit-module/index.js +0 -23
- package/lib/vxe-table-edit-module/index.min.js +0 -1
- package/lib/vxe-table-edit-module/style/index.js +0 -1
- package/lib/vxe-table-edit-module/style/style.css +0 -26
- package/lib/vxe-table-export-module/index.d.ts +0 -4
- package/lib/vxe-table-export-module/index.js +0 -23
- package/lib/vxe-table-export-module/index.min.js +0 -1
- package/lib/vxe-table-export-module/style/index.js +0 -1
- package/lib/vxe-table-export-module/style/style.css +0 -219
- package/lib/vxe-table-export-module/style/style.min.css +0 -1
- package/lib/vxe-table-filter-module/index.d.ts +0 -4
- package/lib/vxe-table-filter-module/index.js +0 -23
- package/lib/vxe-table-filter-module/index.min.js +0 -1
- package/lib/vxe-table-filter-module/style/index.js +0 -1
- package/lib/vxe-table-filter-module/style/style.css +0 -166
- package/lib/vxe-table-filter-module/style/style.min.css +0 -1
- package/lib/vxe-table-keyboard-module/index.d.ts +0 -4
- package/lib/vxe-table-keyboard-module/index.js +0 -23
- package/lib/vxe-table-keyboard-module/index.min.js +0 -1
- package/lib/vxe-table-keyboard-module/style/index.js +0 -1
- package/lib/vxe-table-keyboard-module/style/style.css +0 -26
- package/lib/vxe-table-menu-module/index.d.ts +0 -4
- package/lib/vxe-table-menu-module/index.js +0 -23
- package/lib/vxe-table-menu-module/index.min.js +0 -1
- package/lib/vxe-table-menu-module/style/index.js +0 -1
- package/lib/vxe-table-menu-module/style/style.css +0 -126
- package/lib/vxe-table-menu-module/style/style.min.css +0 -1
- package/lib/vxe-table-validator-module/index.d.ts +0 -4
- package/lib/vxe-table-validator-module/index.js +0 -23
- package/lib/vxe-table-validator-module/index.min.js +0 -1
- package/lib/vxe-table-validator-module/style/index.js +0 -1
- package/lib/vxe-table-validator-module/style/style.css +0 -26
- package/lib/vxe-textarea/index.d.ts +0 -4
- package/lib/vxe-textarea/index.js +0 -23
- package/lib/vxe-textarea/index.min.js +0 -1
- package/lib/vxe-textarea/style/index.js +0 -1
- package/lib/vxe-textarea/style/style.css +0 -131
- package/lib/vxe-textarea/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.d.ts +0 -4
- package/lib/vxe-tooltip/index.d.ts +0 -4
- package/lib/vxe-tooltip/index.js +0 -23
- package/lib/vxe-tooltip/index.min.js +0 -1
- package/lib/vxe-tooltip/style/index.js +0 -1
- package/lib/vxe-tooltip/style/style.css +0 -130
- package/lib/vxe-tooltip/style/style.min.css +0 -1
- package/packages/all.js +0 -136
- package/packages/button/index.d.ts +0 -4
- package/packages/button/index.js +0 -13
- package/packages/button/src/button.js +0 -460
- package/packages/button/src/group.js +0 -41
- package/packages/button-group/index.d.ts +0 -4
- package/packages/button-group/index.js +0 -13
- package/packages/checkbox/index.d.ts +0 -4
- package/packages/checkbox/index.js +0 -13
- package/packages/checkbox/src/checkbox.js +0 -108
- package/packages/checkbox/src/group.js +0 -86
- package/packages/checkbox-group/index.d.ts +0 -4
- package/packages/checkbox-group/index.js +0 -13
- package/packages/colgroup/index.d.ts +0 -4
- package/packages/colgroup/index.js +0 -15
- package/packages/column/index.d.ts +0 -4
- package/packages/column/index.js +0 -15
- package/packages/custom/index.d.ts +0 -4
- package/packages/custom/index.js +0 -17
- package/packages/custom/src/mixin.js +0 -87
- package/packages/custom/src/panel.js +0 -919
- package/packages/edit/index.d.ts +0 -4
- package/packages/edit/index.js +0 -14
- package/packages/edit/src/mixin.js +0 -790
- package/packages/export/index.d.ts +0 -4
- package/packages/export/index.js +0 -42
- package/packages/export/src/export-panel.js +0 -444
- package/packages/export/src/import-panel.js +0 -184
- package/packages/export/src/mixin.js +0 -1529
- package/packages/filter/index.d.ts +0 -4
- package/packages/filter/index.js +0 -17
- package/packages/filter/src/mixin.js +0 -271
- package/packages/filter/src/panel.js +0 -210
- package/packages/form/index.d.ts +0 -4
- package/packages/form/index.js +0 -13
- package/packages/form/src/form-config-item.js +0 -182
- package/packages/form/src/form-gather.js +0 -21
- package/packages/form/src/form-item.js +0 -246
- package/packages/form/src/form.js +0 -621
- package/packages/form/src/render.js +0 -81
- package/packages/form/src/util.js +0 -117
- package/packages/form-gather/index.d.ts +0 -4
- package/packages/form-gather/index.js +0 -13
- package/packages/form-item/index.d.ts +0 -4
- package/packages/form-item/index.js +0 -13
- package/packages/grid/index.d.ts +0 -4
- package/packages/grid/index.js +0 -15
- package/packages/grid/src/grid.js +0 -1118
- package/packages/icon/index.d.ts +0 -4
- package/packages/icon/index.js +0 -13
- package/packages/icon/src/icon.js +0 -22
- package/packages/index.common.js +0 -4
- package/packages/input/index.d.ts +0 -4
- package/packages/input/index.js +0 -13
- package/packages/input/src/date.js +0 -38
- package/packages/input/src/input.js +0 -2171
- package/packages/input/src/number.js +0 -12
- package/packages/keyboard/index.d.ts +0 -4
- package/packages/keyboard/index.js +0 -14
- package/packages/keyboard/src/mixin.js +0 -355
- package/packages/list/index.d.ts +0 -4
- package/packages/list/index.js +0 -13
- package/packages/list/src/list.js +0 -294
- package/packages/loading/index.d.ts +0 -4
- package/packages/loading/index.js +0 -13
- package/packages/loading/src/loading.js +0 -45
- package/packages/locale/lang/en-US.d.ts +0 -8
- package/packages/locale/lang/en-US.js +0 -670
- package/packages/locale/lang/es-ES.d.ts +0 -8
- package/packages/locale/lang/es-ES.js +0 -670
- package/packages/locale/lang/ja-JP.d.ts +0 -8
- package/packages/locale/lang/ja-JP.js +0 -670
- package/packages/locale/lang/language.d.ts +0 -5
- package/packages/locale/lang/pt-BR.d.ts +0 -8
- package/packages/locale/lang/pt-BR.js +0 -670
- package/packages/locale/lang/zh-CN.d.ts +0 -8
- package/packages/locale/lang/zh-CN.js +0 -670
- package/packages/locale/lang/zh-HK.d.ts +0 -8
- package/packages/locale/lang/zh-MO.d.ts +0 -8
- package/packages/locale/lang/zh-TC.d.ts +0 -8
- package/packages/locale/lang/zh-TC.js +0 -670
- package/packages/locale/lang/zh-TW.d.ts +0 -8
- package/packages/menu/index.d.ts +0 -4
- package/packages/menu/index.js +0 -17
- package/packages/menu/src/mixin.js +0 -270
- package/packages/menu/src/panel.js +0 -130
- package/packages/mixins/size.js +0 -8
- package/packages/modal/index.d.ts +0 -4
- package/packages/modal/index.js +0 -116
- package/packages/modal/src/modal.js +0 -822
- package/packages/optgroup/index.d.ts +0 -4
- package/packages/optgroup/index.js +0 -13
- package/packages/option/index.d.ts +0 -4
- package/packages/option/index.js +0 -13
- package/packages/pager/index.d.ts +0 -4
- package/packages/pager/index.js +0 -13
- package/packages/pager/src/pager.js +0 -477
- package/packages/pulldown/index.d.ts +0 -4
- package/packages/pulldown/index.js +0 -13
- package/packages/pulldown/src/pulldown.js +0 -273
- package/packages/radio/index.d.ts +0 -4
- package/packages/radio/index.js +0 -13
- package/packages/radio/src/button.js +0 -102
- package/packages/radio/src/group.js +0 -76
- package/packages/radio/src/radio.js +0 -109
- package/packages/radio-button/index.d.ts +0 -4
- package/packages/radio-button/index.js +0 -13
- package/packages/radio-group/index.d.ts +0 -4
- package/packages/radio-group/index.js +0 -13
- package/packages/select/index.d.ts +0 -4
- package/packages/select/index.js +0 -19
- package/packages/select/src/optgroup.js +0 -48
- package/packages/select/src/option.js +0 -42
- package/packages/select/src/select.js +0 -921
- package/packages/select/src/util.js +0 -52
- package/packages/switch/index.d.ts +0 -4
- package/packages/switch/index.js +0 -13
- package/packages/switch/src/switch.js +0 -138
- package/packages/table/index.d.ts +0 -4
- package/packages/table/index.js +0 -35
- package/packages/table/src/body.js +0 -826
- package/packages/table/src/cell.js +0 -842
- package/packages/table/src/column.js +0 -141
- package/packages/table/src/columnInfo.js +0 -168
- package/packages/table/src/footer.js +0 -293
- package/packages/table/src/header.js +0 -295
- package/packages/table/src/methods.js +0 -5532
- package/packages/table/src/table.js +0 -1297
- package/packages/table/src/util.js +0 -364
- package/packages/textarea/index.d.ts +0 -4
- package/packages/textarea/index.js +0 -13
- package/packages/textarea/src/textarea.js +0 -224
- package/packages/toolbar/index.d.ts +0 -4
- package/packages/toolbar/index.js +0 -13
- package/packages/toolbar/src/toolbar.js +0 -467
- package/packages/tools/dom.js +0 -179
- package/packages/tools/event.js +0 -82
- package/packages/tools/log.js +0 -16
- package/packages/tools/resize.js +0 -76
- package/packages/tools/utils.js +0 -94
- package/packages/tools/vn.js +0 -8
- package/packages/tooltip/index.d.ts +0 -4
- package/packages/tooltip/index.js +0 -14
- package/packages/tooltip/src/tooltip.js +0 -285
- package/packages/ui/index.d.ts +0 -4
- package/packages/ui/index.js +0 -4
- package/packages/v-x-e-table/index.d.ts +0 -4
- package/packages/v-x-e-table/index.js +0 -196
- package/packages/v-x-e-table/src/commands.js +0 -55
- package/packages/v-x-e-table/src/conf.js +0 -420
- package/packages/v-x-e-table/src/formats.js +0 -55
- package/packages/v-x-e-table/src/interceptor.js +0 -53
- package/packages/v-x-e-table/src/menus.js +0 -55
- package/packages/v-x-e-table/src/renderer.js +0 -951
- package/packages/v-x-e-table/src/store.js +0 -44
- package/packages/v-x-e-table/src/theme.js +0 -19
- package/packages/v-x-e-table/src/validators.js +0 -7
- package/packages/validator/index.d.ts +0 -4
- package/packages/validator/index.js +0 -14
- package/packages/validator/src/mixin.js +0 -473
- package/styles/base/common.scss +0 -88
- package/styles/button-group.scss +0 -5
- package/styles/button.scss +0 -374
- package/styles/checkbox-group.scss +0 -1
- package/styles/checkbox.scss +0 -91
- package/styles/colgroup.scss +0 -1
- package/styles/column.scss +0 -1
- package/styles/css-variable.scss +0 -272
- package/styles/custom.scss +0 -386
- package/styles/edit.scss +0 -1
- package/styles/export.scss +0 -126
- package/styles/filter.scss +0 -113
- package/styles/footer.scss +0 -1
- package/styles/form-gather.scss +0 -1
- package/styles/form-item.scss +0 -1
- package/styles/form.scss +0 -366
- package/styles/grid.scss +0 -64
- package/styles/header.scss +0 -1
- package/styles/icon.scss +0 -972
- package/styles/input.scss +0 -917
- package/styles/keyboard.scss +0 -1
- package/styles/list.scss +0 -28
- package/styles/loading.scss +0 -87
- package/styles/menu.scss +0 -89
- package/styles/modal.scss +0 -387
- package/styles/old-icon.scss +0 -722
- package/styles/optgroup.scss +0 -1
- package/styles/option.scss +0 -1
- package/styles/pager.scss +0 -270
- package/styles/pulldown.scss +0 -58
- package/styles/radio-button.scss +0 -1
- package/styles/radio-group.scss +0 -1
- package/styles/radio.scss +0 -147
- package/styles/select.scss +0 -228
- package/styles/switch.scss +0 -125
- package/styles/table.scss +0 -1476
- package/styles/textarea.scss +0 -104
- package/styles/toolbar.scss +0 -103
- package/styles/tooltip.scss +0 -127
- package/styles/v-x-e-table.scss +0 -3
- package/styles/validator.scss +0 -1
- package/styles/vxe-table.scss +0 -1
- package/types/button-group.d.ts +0 -11
- package/types/button.d.ts +0 -49
- package/types/checkbox-group.d.ts +0 -17
- package/types/checkbox.d.ts +0 -33
- package/types/colgroup.d.ts +0 -155
- package/types/column.d.ts +0 -433
- package/types/component.d.ts +0 -29
- package/types/form-gather.d.ts +0 -13
- package/types/form-item.d.ts +0 -217
- package/types/form.d.ts +0 -149
- package/types/grid.d.ts +0 -169
- package/types/icon.d.ts +0 -7
- package/types/input.d.ts +0 -163
- package/types/list.d.ts +0 -71
- package/types/loading.d.ts +0 -10
- package/types/modal.d.ts +0 -329
- package/types/module/custom.d.ts +0 -11
- package/types/module/edit.d.ts +0 -67
- package/types/module/export.d.ts +0 -255
- package/types/module/filter.d.ts +0 -133
- package/types/module/index.d.ts +0 -7
- package/types/module/keyboard.d.ts +0 -11
- package/types/module/menu.d.ts +0 -85
- package/types/module/validator.d.ts +0 -77
- package/types/optgroup.d.ts +0 -20
- package/types/option.d.ts +0 -24
- package/types/pager.d.ts +0 -123
- package/types/pulldown.d.ts +0 -44
- package/types/radio-button.d.ts +0 -20
- package/types/radio-group.d.ts +0 -16
- package/types/radio.d.ts +0 -32
- package/types/select.d.ts +0 -66
- package/types/switch.d.ts +0 -22
- package/types/table.d.ts +0 -1662
- package/types/textarea.d.ts +0 -65
- package/types/toolbar.d.ts +0 -191
- package/types/tooltip.d.ts +0 -40
- package/types/v-x-e-table/commands.d.ts +0 -29
- package/types/v-x-e-table/formats.d.ts +0 -28
- package/types/v-x-e-table/index.d.ts +0 -229
- package/types/v-x-e-table/interceptor.d.ts +0 -46
- package/types/v-x-e-table/menus.d.ts +0 -24
- package/types/v-x-e-table/renderer.d.ts +0 -355
- package/types/v-x-e-table/validators.d.ts +0 -30
- /package/{lib/checkbox-group/style/style.min.css → es/colgroup/style.css} +0 -0
- /package/{lib/edit/style → es/colgroup}/style.min.css +0 -0
- /package/{lib/form-gather/style/style.min.css → es/column/style.css} +0 -0
- /package/{lib/form-item/style → es/column}/style.min.css +0 -0
- /package/{lib/keyboard/style/style.min.css → es/ui/style.css} +0 -0
- /package/{lib/optgroup/style → es/ui}/style.min.css +0 -0
- /package/{lib/option/style/style.min.css → es/v-x-e-table/style.css} +0 -0
- /package/{lib/radio-button/style → es/v-x-e-table}/style.min.css +0 -0
- /package/{lib/radio-group/style/style.min.css → es/vxe-colgroup/style.css} +0 -0
- /package/{lib/validator/style → es/vxe-colgroup}/style.min.css +0 -0
- /package/{lib/vxe-checkbox-group/style/style.min.css → es/vxe-column/style.css} +0 -0
- /package/{lib/vxe-form-gather/style → es/vxe-column}/style.min.css +0 -0
- /package/{lib/vxe-form-item/style/style.min.css → es/vxe-ui/style.css} +0 -0
- /package/{lib/vxe-optgroup/style → es/vxe-ui}/style.min.css +0 -0
- /package/{lib/vxe-option/style/style.min.css → es/vxe-v-x-e-table/style.css} +0 -0
- /package/{lib/vxe-radio-button/style → es/vxe-v-x-e-table}/style.min.css +0 -0
- /package/lib/{button-group → ui}/style/index.js +0 -0
- /package/lib/{vxe-radio-group/style/style.min.css → ui/style/style.css} +0 -0
- /package/lib/{vxe-table-edit-module → ui}/style/style.min.css +0 -0
- /package/lib/{button → vxe-ui}/style/index.js +0 -0
- /package/lib/{vxe-table-keyboard-module/style/style.min.css → vxe-ui/style/style.css} +0 -0
- /package/lib/{vxe-table-validator-module → vxe-ui}/style/style.min.css +0 -0
- /package/lib/{checkbox-group → vxe-v-x-e-table}/style/index.js +0 -0
- /package/packages/locale/lang/{zh-HK.js → zh-HK.ts} +0 -0
- /package/packages/locale/lang/{zh-MO.js → zh-MO.ts} +0 -0
- /package/packages/locale/lang/{zh-TW.js → zh-TW.ts} +0 -0
- /package/packages/table/src/{group.js → group.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_body=_interopRequireDefault(require("./body")),_header=_interopRequireDefault(require("./header")),_footer=_interopRequireDefault(require("./footer")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=require("../../tools/utils"),_resize=require("../../tools/resize"),_event=require("../../tools/event"),_vn=require("../../tools/vn"),_methods=_interopRequireDefault(require("./methods")),_log=require("../../tools/log"),_index=_interopRequireDefault(require("../../loading/index"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function renderFixed(e,t,o){var n=t._e,i=t.tableData,r=t.tableColumn,l=t.tableGroupColumn,s=t.vSize,a=t.showHeader,u=t.showFooter,c=t.columnStore,t=t.footerTableData,c=c["".concat(o,"List")];return e("div",{class:"vxe-table--fixed-".concat(o,"-wrapper"),ref:"".concat(o,"Container")},[a?e(_header.default,{props:{fixedType:o,tableData:i,tableColumn:r,tableGroupColumn:l,size:s,fixedColumn:c},ref:"".concat(o,"Header")}):n(),e(_body.default,{props:{fixedType:o,tableData:i,tableColumn:r,fixedColumn:c,size:s},ref:"".concat(o,"Body")}),u?e(_footer.default,{props:{footerTableData:t,tableColumn:r,fixedColumn:c,fixedType:o,size:s},ref:"".concat(o,"Footer")}):n()])}function renderEmptyContenet(e,t){var o=t.$scopedSlots,n=t.emptyOpts,i={$table:t};return o.empty?o.empty.call(t,i,e):(o=(o=n.name?_vXETable.default.renderer.get(n.name):null)?o.renderTableEmptyView||o.renderEmpty:null)?(0,_vn.getSlotVNs)(o.call(t,e,n,i)):(0,_utils.getFuncText)(t.emptyText)||_conf.default.i18n("vxe.table.emptyText")}function handleUupdateResize(e){var t=e.$el;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}var _default2=exports.default={name:"VxeTable",mixins:[_size.default],props:{id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:function(){return _conf.default.table.minHeight}},maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return _conf.default.table.resizable}},stripe:{type:Boolean,default:function(){return _conf.default.table.stripe}},border:{type:[Boolean,String],default:function(){return _conf.default.table.border}},round:{type:Boolean,default:function(){return _conf.default.table.round}},size:{type:String,default:function(){return _conf.default.table.size||_conf.default.size}},fit:{type:Boolean,default:function(){return _conf.default.table.fit}},loading:Boolean,align:{type:String,default:function(){return _conf.default.table.align}},headerAlign:{type:String,default:function(){return _conf.default.table.headerAlign}},footerAlign:{type:String,default:function(){return _conf.default.table.footerAlign}},showHeader:{type:Boolean,default:function(){return _conf.default.table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return _conf.default.table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return _conf.default.table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return _conf.default.table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return _conf.default.table.emptyText}},keepSource:{type:Boolean,default:function(){return _conf.default.table.keepSource}},autoResize:{type:Boolean,default:function(){return _conf.default.table.autoResize}},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,rowConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return _conf.default.table.animat}},delayHover:{type:Number,default:function(){return _conf.default.table.delayHover}},params:Object},provide:function(){return{$xetable:this,xecolgroup:null}},inject:{$xegrid:{default:null}},data:function(){return{tId:"".concat(_xeUtils.default.uniqueId()),isCalcColumn:!1,staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectCheckboxMaps:{},currentRow:null,currentColumn:null,selectRadioRow:null,footerTableData:[],expandColumn:null,hasFixedColumn:!1,treeNodeColumn:null,rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},treeIndeterminateMaps:{},mergeList:[],mergeFooterList:[],initStore:{filter:!1,import:!1,export:!1,custom:!1},customColumnList:[],upDataFlag:0,reColumnFlag:0,pendingRowMaps:{},pendingRowList:[],customStore:{btnEl:null,isAll:!1,isIndeterminate:!1,activeBtn:!1,activeWrapper:!1,visible:!1,maxHeight:0,oldSortMaps:{},oldFixedMaps:{},oldVisibleMaps:{}},filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],autoMinList:[],scaleList:[],scaleMinList:[],autoList:[],remainList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},focused:{row:null,column:null},insertList:[],insertMaps:{},removeList:[],removeMaps:{}},tooltipStore:{row:null,column:null,visible:!1,currOpts:{}},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasTree:!1,hasMerge:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1},_isLoading:!1}},computed:{tableId:function(){var e=this.id;return e?_xeUtils.default.isFunction(e)?"".concat(e({$table:this})||""):"".concat(e):""},validOpts:function(){return Object.assign({message:"default"},_conf.default.table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},_conf.default.table.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},_conf.default.table.scrollY,this.scrollY)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},_conf.default.table.columnConfig,this.columnConfig)},rowOpts:function(){return Object.assign({},_conf.default.table.rowConfig,this.rowConfig)},resizeOpts:function(){return Object.assign({},_conf.default.table.resizeConfig,this.resizeConfig)},resizableOpts:function(){return Object.assign({},_conf.default.table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},_conf.default.table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},_conf.default.table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},_conf.default.table.checkboxConfig,this.checkboxConfig)},tooltipOpts:function(){return Object.assign({},_conf.default.tooltip,_conf.default.table.tooltipConfig,this.tooltipConfig)},tipConfig:function(){return _objectSpread({},this.tooltipOpts)},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},_conf.default.table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},_conf.default.table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},_conf.default.table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},_conf.default.table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},_conf.default.table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},_conf.default.table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},_conf.default.table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},_conf.default.table.fnrConfig,this.fnrConfig)},hasTip:function(){return _vXETable.default._tooltip},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return!(!this.contextMenu&&!this.menuConfig||!(0,_utils.isEnableConf)(this.ctxMenuOpts)||!(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length))},ctxMenuOpts:function(){return Object.assign({},_conf.default.table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var t=[];return this.ctxMenuStore.list.forEach(function(e){e.forEach(function(e){t.push(e)})}),t},exportOpts:function(){return Object.assign({},_conf.default.table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},_conf.default.table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},_conf.default.table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},_conf.default.table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},_conf.default.table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},_conf.default.table.emptyRender,this.emptyRender)},loadingOpts:function(){return Object.assign({},_conf.default.table.loadingConfig,this.loadingConfig)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts:function(){return Object.assign({},_conf.default.table.customConfig,this.customConfig)},autoWidthColumnList:function(){var e=this.tableColumn,t=this.visibleColumn;return e.length||t.length?t.filter(function(e){return"auto"===e.width||"auto"===e.minWidth}):[]},fixedColumnSize:function(){var e=this.collectColumn,t=0;return e.forEach(function(e){e.renderFixed&&t++}),t},isMaxFixedColumn:function(){var e=this.columnOpts.maxFixedSize;return!!e&&this.fixedColumnSize>=e},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=this.tableData,o=(this.treeConfig,this.checkboxOpts),n=o.strict,i=o.checkMethod;return!!n&&(!t.length&&!e.length||!!i&&e.every(function(e){return!i({row:e})}))}},watch:{data:function(e){var t=this,o=this.inited,n=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,n||t.handleLoadDefaults(),o||t.handleInitDefaults(),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&(0,_log.warnLog)("vxe.error.scrollErrProp",["column.type=expand"]),t.recalculate()})},staticColumns:function(e){this.handleColumn(e)},tableColumn:function(){this.analyColumnWidth()},upDataFlag:function(){var e=this;this.$nextTick().then(function(){return e.updateData()})},reColumnFlag:function(){var e=this;this.$nextTick().then(function(){return e.refreshColumn()})},showHeader:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},showFooter:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},height:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},maxHeight:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},syncResize:function(e){var t=this;e&&(handleUupdateResize(this),this.$nextTick(function(){handleUupdateResize(t),setTimeout(function(){return handleUupdateResize(t)})}))},mergeCells:function(e){var t=this;this.clearMergeCells(),this.$nextTick(function(){return t.setMergeCells(e)})},mergeFooterItems:function(e){var t=this;this.clearMergeFooterItems(),this.$nextTick(function(){return t.setMergeFooterItems(e)})}},created:function(){var t,e=this,o=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],afterFullRowMaps:{},collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),n=o.scrollXStore,i=o.sYOpts,r=o.scrollYStore,l=o.data,s=o.editOpts,a=o.treeOpts,u=o.treeConfig,c=o.showOverflow,o=o.rowOpts;if("development"===process.env.NODE_ENV&&(this.rowId&&(0,_log.warnLog)("vxe.error.delProp",["row-id","row-config.keyField"]),this.rowKey&&(0,_log.warnLog)("vxe.error.delProp",["row-key","row-config.useKey"]),this.columnKey&&(0,_log.warnLog)("vxe.error.delProp",["column-id","column-config.useKey"]),this.rowId||o.keyField||!(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)||(0,_log.warnLog)("vxe.error.reqProp",["row-config.keyField"]),this.editConfig&&s.showStatus&&!this.keepSource&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),!u||!a.showLine&&!a.line||(this.rowKey||o.useKey)&&c||(0,_log.warnLog)("vxe.error.reqProp",["row-config.useKey | show-overflow"]),!this.showFooter||this.footerMethod||this.footerData||(0,_log.warnLog)("vxe.error.reqProp",["footer-data | footer-method"]),u&&this.stripe&&(0,_log.warnLog)("vxe.error.noTree",["stripe"]),this.tooltipOpts.enabled&&(0,_log.warnLog)("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),s=this.exportConfig,o=this.exportOpts,c=this.importConfig,t=this.importOpts,c&&t.types&&!t.importMethod&&!_xeUtils.default.includeArrays(_xeUtils.default.keys(t._typeMaps),t.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(t.types.join(",")),t.types.filter(function(e){return _xeUtils.default.includes(_xeUtils.default.keys(t._typeMaps),e)}).join(",")||_xeUtils.default.keys(t._typeMaps).join(",")]),s)&&o.types&&!o.exportMethod&&!_xeUtils.default.includeArrays(_xeUtils.default.keys(t._typeMaps),o.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(o.types.join(",")),o.types.filter(function(e){return _xeUtils.default.includes(_xeUtils.default.keys(t._typeMaps),e)}).join(",")||_xeUtils.default.keys(t._typeMaps).join(",")]),"development"===process.env.NODE_ENV){u=this.customOpts;if(!this.id&&this.customConfig&&(!0===u.storage||u.storage&&u.storage.resizable||u.storage&&u.storage.visible)&&(0,_log.errLog)("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&(0,_log.errLog)("vxe.error.noTree",["checkbox-config.range"]),this.rowOpts.height&&!this.showOverflow&&(0,_log.warnLog)("vxe.error.notProp",["table.show-overflow"]),!this.handleUpdateCellAreas&&(this.clipConfig&&(0,_log.warnLog)("vxe.error.notProp",["clip-config"]),this.fnrConfig&&(0,_log.warnLog)("vxe.error.notProp",["fnr-config"]),this.mouseOpts.area))return void(0,_log.errLog)("vxe.error.notProp",["mouse-config.area"]);this.treeConfig&&a.children&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.children","tree-config.childrenField"]),this.treeConfig&&a.line&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.line","tree-config.showLine"]),this.mouseOpts.area&&this.mouseOpts.selected&&(0,_log.warnLog)("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),this.treeConfig&&this.mouseOpts.area&&(0,_log.errLog)("vxe.error.noTree",["mouse-config.area"])}"development"===process.env.NODE_ENV&&(this.contextMenu&&((0,_log.warnLog)("vxe.error.delProp",["context-menu","menu-config"]),_xeUtils.default.isObject(this.contextMenu)||(0,_log.warnLog)("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!_xeUtils.default.isObject(this.menuConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!_xeUtils.default.isObject(this.exportConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!_xeUtils.default.isObject(this.importConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!_xeUtils.default.isObject(this.printConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!_xeUtils.default.isObject(this.treeConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!_xeUtils.default.isObject(this.customConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!_xeUtils.default.isObject(this.editConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!_xeUtils.default.isObject(this.emptyRender)&&(0,_log.warnLog)("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"]),this.editConfig&&this.editOpts.activeMethod&&(0,_log.warnLog)("vxe.error.delProp",["table.edit-config.activeMethod","table.edit-config.beforeEditMethod"]),this.treeConfig&&this.checkboxOpts.isShiftKey&&(0,_log.errLog)("vxe.error.errConflicts",["tree-config","checkbox-config.isShiftKey"]),this.checkboxOpts.halfField)&&(0,_log.warnLog)("vxe.error.delProp",["checkbox-config.halfField","checkbox-config.indeterminateField"]),"development"===process.env.NODE_ENV&&(this.editConfig&&!this._insert&&(0,_log.errLog)("vxe.error.reqModule",["Edit"]),this.editRules&&!this._validate&&(0,_log.errLog)("vxe.error.reqModule",["Validator"]),(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)&&!this.triggerCellMousedownEvent&&(0,_log.errLog)("vxe.error.reqModule",["Keyboard"]),this.printConfig||this.importConfig||this.exportConfig)&&!this._exportData&&(0,_log.errLog)("vxe.error.reqModule",["Export"]),Object.assign(r,{startIndex:0,endIndex:1,visibleSize:0,adaptive:!1!==i.adaptive}),Object.assign(n,{startIndex:0,endIndex:1,visibleSize:0}),this.loadTableData(l).then(function(){l&&l.length&&(e.inited=!0,e.initStatus=!0,e.handleLoadDefaults(),e.handleInitDefaults()),e.updateStyle()}),_event.GlobalEvent.on(this,"paste",this.handleGlobalPasteEvent),_event.GlobalEvent.on(this,"copy",this.handleGlobalCopyEvent),_event.GlobalEvent.on(this,"cut",this.handleGlobalCutEvent),_event.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_event.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent),_event.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_event.GlobalEvent.on(this,"resize",this.handleGlobalResizeEvent),_event.GlobalEvent.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")},mounted:function(){var e,t,o=this;"development"===process.env.NODE_ENV&&(t=this.$listeners,!this.menuConfig&&(t["menu-click"]||t["cell-menu"]||t["header-cell-menu"]||t["footer-cell-menu"])&&(0,_log.warnLog)("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!t["cell-mouseenter"]&&!t["cell-mouseleave"]||(0,_log.warnLog)("vxe.error.reqProp",["tooltip-config"])),this.autoResize&&(e=this.resizeOpts.refreshDelay?_xeUtils.default.throttle(function(){return o.recalculate(!0)},this.resizeOpts.refreshDelay,{leading:!0,trailing:!0}):null,(t=(0,_resize.createResizeEvent)(e?function(){o.autoResize&&requestAnimationFrame(e)}:function(){o.autoResize&&o.recalculate(!0)})).observe(this.$el),t.observe(this.getParentElem()),this.$resize=t),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then(function(){return e.refreshScroll()}),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){_event.GlobalEvent.off(this,"paste"),_event.GlobalEvent.off(this,"copy"),_event.GlobalEvent.off(this,"cut"),_event.GlobalEvent.off(this,"mousedown"),_event.GlobalEvent.off(this,"blur"),_event.GlobalEvent.off(this,"mousewheel"),_event.GlobalEvent.off(this,"keydown"),_event.GlobalEvent.off(this,"resize"),_event.GlobalEvent.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t=this._e,o=this.$scopedSlots,n=this.tId,i=this.isCalcColumn,r=this.tableData,l=this.tableColumn,s=this.tableGroupColumn,a=this.isGroup,u=this.loading,c=this.stripe,f=this.showHeader,d=this.height,p=this.tableBorder,h=this.treeOpts,g=this.treeConfig,b=this.mouseConfig,m=this.mouseOpts,v=this.vSize,x=this.validOpts,_=this.showFooter,C=this.overflowX,y=this.overflowY,O=this.scrollXLoad,w=this.scrollYLoad,j=this.scrollbarHeight,S=this.highlightCell,M=this.highlightHoverRow,L=this.highlightHoverColumn,T=this.editConfig,q=this.validTipOpts,P=this.initStore,E=this.columnStore,B=this.filterStore,H=this.customStore,R=this.ctxMenuStore,G=this.ctxMenuOpts,U=this.footerTableData,D=this.hasTip,I=this.columnOpts,N=this.rowOpts,A=this.checkboxOpts,F=this.loadingOpts,z=this.editRules,k=E.leftList,E=E.rightList,u=this._isLoading||u;return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(n),v?"size--".concat(v):"","border--".concat(p),(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},"valid-msg--".concat(x.msgMode),!!z),"vxe-editable",!!T),"old-cell-valid",z&&"obsolete"===_conf.default.cellVaildMode),"cell--highlight",S),"cell--selected",b&&m.selected),"cell--area",b&&m.area),"row--highlight",N.isHover||M),"column--highlight",I.isHover||L),"checkbox--range",A.range),"column--calc",i),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,"is--header",f),"is--footer",_),"is--group",a),"is--tree-line",g&&(h.showLine||h.line)),"is--fixed-left",k.length),"is--fixed-right",E.length),"is--animat",!!this.animat),"is--round",this.round),"is--stripe",!g&&c),"is--loading",u),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,"is--empty",!u&&!r.length),"is--scroll-y",y),"is--scroll-x",C),"is--virtual-x",O),"is--virtual-y",w))],attrs:{spellcheck:!1},on:{keydown:this.keydownEvent}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--render-wrapper"},[e("div",{class:"vxe-table--main-wrapper"},[f?e(_header.default,{ref:"tableHeader",props:{tableData:r,tableColumn:l,tableGroupColumn:s,size:v}}):t(),e(_body.default,{ref:"tableBody",props:{tableData:r,tableColumn:l,size:v}}),_?e(_footer.default,{ref:"tableFooter",props:{footerTableData:U,tableColumn:l,size:v}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[k&&k.length&&C?renderFixed(e,this,"left"):t(),E&&E.length&&C?renderFixed(e,this,"right"):t()])]),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},renderEmptyContenet(e,this))]),e("div",{class:"vxe-table--border-line"}),e("div",{class:"vxe-table--resizable-bar",style:C?{"padding-bottom":"".concat(j,"px")}:null,ref:"resizeBar"}),e(_index.default,{class:"vxe-table--loading",props:{value:u,icon:F.icon,text:F.text}},this.callSlot(o.loading,{},e)),P.custom?e("vxe-table-custom-panel",{ref:"customWrapper",props:{customStore:H}}):t(),P.filter?e("vxe-table-filter-panel",{ref:"filterWrapper",props:{filterStore:B}}):t(),P.import&&this.importConfig?e("vxe-table-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),P.export&&(this.exportConfig||this.printConfig)?e("vxe-table-export-panel",{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):t(),R.visible&&this.isCtxMenu?e("vxe-table-menu-panel",{ref:"ctxWrapper",props:{ctxMenuStore:R,ctxMenuOpts:G}}):t(),e("div",{},[D?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),D?e("vxe-tooltip",{ref:"tooltip",props:Object.assign({},this.tipConfig,this.tooltipStore.currOpts)}):t(),D&&this.editRules&&x.showMessage&&("default"===x.message?!d:"tooltip"===x.message)?e("vxe-tooltip",{ref:"validTip",class:[{"old-cell-valid":z&&"obsolete"===_conf.default.cellVaildMode},"vxe-table--valid-error"],props:"tooltip"===x.message||1===r.length?q:null}):t()])])},methods:_methods.default};
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_utils=require("../../ui/src/utils"),_ui=require("../../ui"),_methods=_interopRequireDefault(require("./methods")),_body=_interopRequireDefault(require("./body")),_header=_interopRequireDefault(require("./header")),_footer=_interopRequireDefault(require("./footer")),_props=_interopRequireDefault(require("./props")),_vn=require("../../ui/src/vn"),_log=require("../../ui/src/log"),_panel=_interopRequireDefault(require("../module/custom/panel")),_panel2=_interopRequireDefault(require("../module/filter/panel")),_importPanel=_interopRequireDefault(require("../module/export/import-panel")),_exportPanel=_interopRequireDefault(require("../module/export/export-panel")),_panel3=_interopRequireDefault(require("../module/menu/panel")),_mixin=_interopRequireDefault(require("../module/filter/mixin")),_mixin2=_interopRequireDefault(require("../module/menu/mixin")),_mixin3=_interopRequireDefault(require("../module/edit/mixin")),_mixin4=_interopRequireDefault(require("../module/export/mixin")),_mixin5=_interopRequireDefault(require("../module/keyboard/mixin")),_mixin6=_interopRequireDefault(require("../module/validator/mixin")),_mixin7=_interopRequireDefault(require("../module/custom/mixin"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}var getConfig=_ui.VxeUI.getConfig,getI18n=_ui.VxeUI.getI18n,renderer=_ui.VxeUI.renderer,globalResize=_ui.VxeUI.globalResize,globalEvents=_ui.VxeUI.globalEvents,globalMixins=_ui.VxeUI.globalMixins;function renderFixed(e,t,i){var o=t._e,r=t.tableData,n=t.tableColumn,s=t.tableGroupColumn,l=t.vSize,a=t.showHeader,u=t.showFooter,c=t.footerTableData,t=t.columnStore["".concat(i,"List")];return e("div",{class:"vxe-table--fixed-".concat(i,"-wrapper"),ref:"".concat(i,"Container")},[a?e(_header.default,{props:{fixedType:i,tableData:r,tableColumn:n,tableGroupColumn:s,size:l,fixedColumn:t},ref:"".concat(i,"Header")}):o(),e(_body.default,{props:{fixedType:i,tableData:r,tableColumn:n,fixedColumn:t,size:l},ref:"".concat(i,"Body")}),u?e(_footer.default,{props:{footerTableData:c,tableColumn:n,fixedColumn:t,fixedType:i,size:l},ref:"".concat(i,"Footer")}):o()])}function renderEmptyContenet(e,t){var i=t.$scopedSlots,o=t.emptyOpts,r={$table:t};return i.empty?i.empty.call(t,r,e):(i=(i=o.name?renderer.get(o.name):null)?i.renderTableEmptyView||i.renderEmpty:null)?(0,_vn.getSlotVNs)(i.call(t,e,o,r)):(0,_utils.getFuncText)(t.emptyText)||getI18n("vxe.table.emptyText")}function handleUupdateResize(e){var t=e.$el;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}var _default=exports.default={name:"VxeTable",mixins:[globalMixins.sizeMixin,_mixin.default,_mixin2.default,_mixin3.default,_mixin4.default,_mixin5.default,_mixin6.default,_mixin7.default],props:_props.default,provide:function(){return{$xetable:this,$xeTable:this,xecolgroup:null}},inject:{$xeGrid:{default:null},$xegrid:{default:null}},data:function(){return{tId:"".concat(_xeUtils.default.uniqueId()),isCalcColumn:!1,staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectCheckboxMaps:{},currentRow:null,currentColumn:null,selectRadioRow:null,footerTableData:[],expandColumn:null,hasFixedColumn:!1,treeNodeColumn:null,rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},treeIndeterminateMaps:{},mergeList:[],mergeFooterList:[],initStore:{filter:!1,import:!1,export:!1,custom:!1},customColumnList:[],upDataFlag:0,reColumnFlag:0,pendingRowMaps:{},pendingRowList:[],customStore:{btnEl:null,isAll:!1,isIndeterminate:!1,activeBtn:!1,activeWrapper:!1,visible:!1,maxHeight:0,oldSortMaps:{},oldFixedMaps:{},oldVisibleMaps:{}},filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],autoMinList:[],scaleList:[],scaleMinList:[],autoList:[],remainList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},focused:{row:null,column:null},insertList:[],insertMaps:{},removeList:[],removeMaps:{}},tooltipStore:{row:null,column:null,visible:!1,currOpts:{}},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasTree:!1,hasMerge:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1},_isLoading:!1}},computed:{tableId:function(){var e=this.id;return e?_xeUtils.default.isFunction(e)?"".concat(e({$table:this})||""):"".concat(e):""},validOpts:function(){return Object.assign({message:"default"},getConfig().table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},getConfig().table.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},getConfig().table.scrollY,this.scrollY)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},getConfig().table.columnConfig,this.columnConfig)},rowOpts:function(){return Object.assign({},getConfig().table.rowConfig,this.rowConfig)},resizeOpts:function(){return Object.assign({},getConfig().table.resizeConfig,this.resizeConfig)},resizableOpts:function(){return Object.assign({},getConfig().table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},getConfig().table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},getConfig().table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},getConfig().table.checkboxConfig,this.checkboxConfig)},tooltipOpts:function(){return Object.assign({},getConfig().tooltip,getConfig().table.tooltipConfig,this.tooltipConfig)},tipConfig:function(){return Object.assign({},this.tooltipOpts)},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},getConfig().table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},getConfig().table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},getConfig().table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},getConfig().table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},getConfig().table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},getConfig().table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},getConfig().table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},getConfig().table.fnrConfig,this.fnrConfig)},hasTip:function(){return!0},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return!(!this.contextMenu&&!this.menuConfig||!(0,_utils.isEnableConf)(this.ctxMenuOpts)||!(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length))},ctxMenuOpts:function(){return Object.assign({},getConfig().table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var t=[];return this.ctxMenuStore.list.forEach(function(e){e.forEach(function(e){t.push(e)})}),t},exportOpts:function(){return Object.assign({},getConfig().table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},getConfig().table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},getConfig().table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},getConfig().table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},getConfig().table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},getConfig().table.emptyRender,this.emptyRender)},loadingOpts:function(){return Object.assign({},getConfig().table.loadingConfig,this.loadingConfig)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},computeCustomOpts:function(){return Object.assign({},getConfig().table.customConfig,this.customConfig)},customOpts:function(){return this.computeCustomOpts},autoWidthColumnList:function(){var e=this.tableColumn,t=this.visibleColumn;return e.length||t.length?t.filter(function(e){return"auto"===e.width||"auto"===e.minWidth}):[]},fixedColumnSize:function(){var e=this.collectColumn,t=0;return e.forEach(function(e){e.renderFixed&&t++}),t},isMaxFixedColumn:function(){var e=this.columnOpts.maxFixedSize;return!!e&&this.fixedColumnSize>=e},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=this.tableData,i=(this.treeConfig,this.checkboxOpts),o=i.strict,r=i.checkMethod;return!!o&&(!t.length&&!e.length||!!r&&e.every(function(e){return!r({row:e})}))}},watch:{data:function(e){var t=this,i=this.inited,o=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,o||t.handleLoadDefaults(),i||t.handleInitDefaults(),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&(0,_log.warnLog)("vxe.error.scrollErrProp",["column.type=expand"]),t.recalculate()})},staticColumns:function(e){this.handleColumn(e)},tableColumn:function(){this.analyColumnWidth()},upDataFlag:function(){var e=this;this.$nextTick().then(function(){return e.updateData()})},reColumnFlag:function(){var e=this;this.$nextTick().then(function(){return e.refreshColumn()})},showHeader:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},showFooter:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},height:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},maxHeight:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},syncResize:function(e){var t=this;e&&(handleUupdateResize(this),this.$nextTick(function(){handleUupdateResize(t),setTimeout(function(){return handleUupdateResize(t)})}))},mergeCells:function(e){var t=this;this.clearMergeCells(),this.$nextTick(function(){return t.setMergeCells(e)})},mergeFooterItems:function(e){var t=this;this.clearMergeFooterItems(),this.$nextTick(function(){return t.setMergeFooterItems(e)})}},created:function(){var t,i,e=this,o=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],afterFullRowMaps:{},collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),r=o.scrollXStore,n=o.sYOpts,s=o.scrollYStore,l=o.data,a=o.editOpts,u=o.treeOpts,c=o.treeConfig,f=o.showOverflow,o=o.rowOpts;if("development"===process.env.VUE_APP_VXE_TABLE_ENV&&(this.rowId&&(0,_log.warnLog)("vxe.error.delProp",["row-id","row-config.keyField"]),this.rowKey&&(0,_log.warnLog)("vxe.error.delProp",["row-key","row-config.useKey"]),this.columnKey&&(0,_log.warnLog)("vxe.error.delProp",["column-id","column-config.useKey"]),this.rowId||o.keyField||!(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)||(0,_log.warnLog)("vxe.error.reqProp",["row-config.keyField"]),this.editConfig&&a.showStatus&&!this.keepSource&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),!c||!u.showLine&&!u.line||(this.rowKey||o.useKey)&&f||(0,_log.warnLog)("vxe.error.reqProp",["row-config.useKey | show-overflow"]),!this.showFooter||this.footerMethod||this.footerData||(0,_log.warnLog)("vxe.error.reqProp",["footer-data | footer-method"]),c&&this.stripe&&(0,_log.warnLog)("vxe.error.noTree",["stripe"]),this.tooltipOpts.enabled&&(0,_log.warnLog)("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),a=this.exportConfig,t=this.exportOpts,o=this.importConfig,i=this.importOpts,o&&i.types&&!i.importMethod&&!_xeUtils.default.includeArrays(_xeUtils.default.keys(i._typeMaps),i.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(i.types.join(",")),i.types.filter(function(e){return _xeUtils.default.includes(_xeUtils.default.keys(i._typeMaps),e)}).join(",")||_xeUtils.default.keys(i._typeMaps).join(",")]),a)&&t.types&&!t.exportMethod&&!_xeUtils.default.includeArrays(_xeUtils.default.keys(t._typeMaps),t.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(t.types.join(",")),t.types.filter(function(e){return _xeUtils.default.includes(_xeUtils.default.keys(t._typeMaps),e)}).join(",")||_xeUtils.default.keys(t._typeMaps).join(",")]),"development"===process.env.VUE_APP_VXE_TABLE_ENV){f=this.customOpts;if(!this.id&&this.customConfig&&(!0===f.storage||f.storage&&f.storage.resizable||f.storage&&f.storage.visible)&&(0,_log.errLog)("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&(0,_log.errLog)("vxe.error.noTree",["checkbox-config.range"]),this.rowOpts.height&&!this.showOverflow&&(0,_log.warnLog)("vxe.error.notProp",["table.show-overflow"]),!this.handleUpdateCellAreas&&(this.clipConfig&&(0,_log.warnLog)("vxe.error.notProp",["clip-config"]),this.fnrConfig&&(0,_log.warnLog)("vxe.error.notProp",["fnr-config"]),this.mouseOpts.area))return void(0,_log.errLog)("vxe.error.notProp",["mouse-config.area"]);this.treeConfig&&u.children&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.children","tree-config.childrenField"]),this.treeConfig&&u.line&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.line","tree-config.showLine"]),this.mouseOpts.area&&this.mouseOpts.selected&&(0,_log.warnLog)("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),this.treeConfig&&this.mouseOpts.area&&(0,_log.errLog)("vxe.error.noTree",["mouse-config.area"])}"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(this.contextMenu&&((0,_log.warnLog)("vxe.error.delProp",["context-menu","menu-config"]),_xeUtils.default.isObject(this.contextMenu)||(0,_log.warnLog)("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!_xeUtils.default.isObject(this.menuConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!_xeUtils.default.isObject(this.exportConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!_xeUtils.default.isObject(this.importConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!_xeUtils.default.isObject(this.printConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!_xeUtils.default.isObject(this.treeConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!_xeUtils.default.isObject(this.customConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!_xeUtils.default.isObject(this.editConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!_xeUtils.default.isObject(this.emptyRender)&&(0,_log.warnLog)("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"]),this.editConfig&&this.editOpts.activeMethod&&(0,_log.warnLog)("vxe.error.delProp",["table.edit-config.activeMethod","table.edit-config.beforeEditMethod"]),this.treeConfig&&this.checkboxOpts.isShiftKey&&(0,_log.errLog)("vxe.error.errConflicts",["tree-config","checkbox-config.isShiftKey"]),this.checkboxOpts.halfField)&&(0,_log.warnLog)("vxe.error.delProp",["checkbox-config.halfField","checkbox-config.indeterminateField"]),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(this.editConfig&&!this._insert&&(0,_log.errLog)("vxe.error.reqModule",["Edit"]),this.editRules&&!this._validate&&(0,_log.errLog)("vxe.error.reqModule",["Validator"]),(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)&&!this.triggerCellMousedownEvent&&(0,_log.errLog)("vxe.error.reqModule",["Keyboard"]),this.printConfig||this.importConfig||this.exportConfig)&&!this._exportData&&(0,_log.errLog)("vxe.error.reqModule",["Export"]),Object.assign(s,{startIndex:0,endIndex:1,visibleSize:0,adaptive:!1!==n.adaptive}),Object.assign(r,{startIndex:0,endIndex:1,visibleSize:0}),this.loadTableData(l).then(function(){l&&l.length&&(e.inited=!0,e.initStatus=!0,e.handleLoadDefaults(),e.handleInitDefaults()),e.updateStyle()}),globalEvents.on(this,"paste",this.handleGlobalPasteEvent),globalEvents.on(this,"copy",this.handleGlobalCopyEvent),globalEvents.on(this,"cut",this.handleGlobalCutEvent),globalEvents.on(this,"mousedown",this.handleGlobalMousedownEvent),globalEvents.on(this,"blur",this.handleGlobalBlurEvent),globalEvents.on(this,"mousewheel",this.handleGlobalMousewheelEvent),globalEvents.on(this,"keydown",this.handleGlobalKeydownEvent),globalEvents.on(this,"resize",this.handleGlobalResizeEvent),globalEvents.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")},mounted:function(){var e,t,i=this;"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(t=this.$listeners,!this.menuConfig&&(t["menu-click"]||t["cell-menu"]||t["header-cell-menu"]||t["footer-cell-menu"])&&(0,_log.warnLog)("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!t["cell-mouseenter"]&&!t["cell-mouseleave"]||(0,_log.warnLog)("vxe.error.reqProp",["tooltip-config"])),this.autoResize&&(e=this.resizeOpts.refreshDelay?_xeUtils.default.throttle(function(){return i.recalculate(!0)},this.resizeOpts.refreshDelay,{leading:!0,trailing:!0}):null,(t=globalResize.create(e?function(){i.autoResize&&requestAnimationFrame(e)}:function(){i.autoResize&&i.recalculate(!0)})).observe(this.$el),t.observe(this.getParentElem()),this.$resize=t),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then(function(){return e.refreshScroll()}),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){globalEvents.off(this,"paste"),globalEvents.off(this,"copy"),globalEvents.off(this,"cut"),globalEvents.off(this,"mousedown"),globalEvents.off(this,"blur"),globalEvents.off(this,"mousewheel"),globalEvents.off(this,"keydown"),globalEvents.off(this,"resize"),globalEvents.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t=this._e,i=this.$scopedSlots,o=this.tId,r=this.isCalcColumn,n=this.tableData,s=this.tableColumn,l=this.tableGroupColumn,a=this.isGroup,u=this.loading,c=this.stripe,f=this.showHeader,p=this.height,d=this.tableBorder,h=this.treeOpts,g=this.treeConfig,m=this.mouseConfig,b=this.mouseOpts,x=this.vSize,v=this.validOpts,C=this.showFooter,_=this.overflowX,y=this.overflowY,w=this.scrollXLoad,O=this.scrollYLoad,M=this.scrollbarHeight,L=this.highlightCell,P=this.highlightHoverRow,E=this.highlightHoverColumn,T=this.editConfig,F=this.validTipOpts,S=this.initStore,R=this.columnStore,U=this.filterStore,I=this.customStore,D=this.ctxMenuStore,V=this.ctxMenuOpts,A=this.footerTableData,q=this.hasTip,$=this.columnOpts,H=this.rowOpts,G=this.checkboxOpts,j=this.loadingOpts,k=this.editRules,z=R.leftList,R=R.rightList,u=this._isLoading||u;return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(o),x?"size--".concat(x):"","border--".concat(d),(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(o={},"valid-msg--".concat(v.msgMode),!!k),"vxe-editable",!!T),"old-cell-valid",k&&"obsolete"===getConfig().cellVaildMode),"cell--highlight",L),"cell--selected",m&&b.selected),"cell--area",m&&b.area),"row--highlight",H.isHover||P),"column--highlight",$.isHover||E),"checkbox--range",G.range),"column--calc",r),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(o,"is--header",f),"is--footer",C),"is--group",a),"is--tree-line",g&&(h.showLine||h.line)),"is--fixed-left",z.length),"is--fixed-right",R.length),"is--animat",!!this.animat),"is--round",this.round),"is--stripe",!g&&c),"is--loading",u),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(o,"is--empty",!u&&!n.length),"is--scroll-y",y),"is--scroll-x",_),"is--virtual-x",w),"is--virtual-y",O))],attrs:{spellcheck:!1},on:{keydown:this.keydownEvent}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--render-wrapper"},[e("div",{class:"vxe-table--main-wrapper"},[f?e(_header.default,{ref:"tableHeader",props:{tableData:n,tableColumn:s,tableGroupColumn:l,size:x}}):t(),e(_body.default,{ref:"tableBody",props:{tableData:n,tableColumn:s,size:x}}),C?e(_footer.default,{ref:"tableFooter",props:{footerTableData:A,tableColumn:s,size:x}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[z&&z.length&&_?renderFixed(e,this,"left"):t(),R&&R.length&&_?renderFixed(e,this,"right"):t()])]),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},renderEmptyContenet(e,this))]),e("div",{class:"vxe-table--border-line"}),e("div",{class:"vxe-table--resizable-bar",style:_?{"padding-bottom":"".concat(M,"px")}:{},ref:"resizeBar"}),e("vxe-loading",{class:"vxe-table--loading",props:{value:u,icon:j.icon,text:j.text}},this.callSlot(i.loading,{},e)),S.custom?e(_panel.default,{ref:"customWrapper",props:{customStore:I}}):t(),S.filter?e(_panel2.default,{ref:"filterWrapper",props:{filterStore:U}}):t(),S.import&&this.importConfig?e(_importPanel.default,{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),S.export&&(this.exportConfig||this.printConfig)?e(_exportPanel.default,{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):t(),D.visible&&this.isCtxMenu?e(_panel3.default,{ref:"ctxWrapper",props:{ctxMenuStore:D,ctxMenuOpts:V}}):t(),e("div",{},[q?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),q?e("vxe-tooltip",{ref:"tooltip",props:Object.assign({},this.tipConfig,this.tooltipStore.currOpts)}):t(),q&&this.editRules&&v.showMessage&&("default"===v.message?!p:"tooltip"===v.message)?e("vxe-tooltip",{ref:"validTip",class:[{"old-cell-valid":k&&"obsolete"===getConfig().cellVaildMode},"vxe-table--valid-error"],props:"tooltip"===v.message||1===n.length?F:null}):t()])])},methods:_methods.default};
|
package/lib/table/src/util.js
CHANGED
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.assembleColumn = assembleColumn;
|
|
6
7
|
exports.calcTreeLine = calcTreeLine;
|
|
7
8
|
exports.clearTableAllStatus = clearTableAllStatus;
|
|
8
9
|
exports.clearTableDefaultStatus = clearTableDefaultStatus;
|
|
9
10
|
exports.colToVisible = colToVisible;
|
|
10
11
|
exports.convertHeaderColumnToRows = void 0;
|
|
12
|
+
exports.createColumn = createColumn;
|
|
13
|
+
exports.destroyColumn = destroyColumn;
|
|
14
|
+
exports.getCellValue = getCellValue;
|
|
11
15
|
exports.getColReMinWidth = getColReMinWidth;
|
|
12
|
-
exports.getColumnConfig = getColumnConfig;
|
|
13
16
|
exports.getOffsetSize = getOffsetSize;
|
|
14
17
|
exports.getRootColumn = getRootColumn;
|
|
18
|
+
exports.getRowUniqueId = getRowUniqueId;
|
|
15
19
|
exports.getRowid = getRowid;
|
|
16
20
|
exports.getRowkey = getRowkey;
|
|
17
21
|
exports.handleFieldOrColumn = handleFieldOrColumn;
|
|
@@ -21,20 +25,21 @@ exports.removeScrollListener = removeScrollListener;
|
|
|
21
25
|
exports.restoreScrollListener = restoreScrollListener;
|
|
22
26
|
exports.restoreScrollLocation = restoreScrollLocation;
|
|
23
27
|
exports.rowToVisible = rowToVisible;
|
|
28
|
+
exports.setCellValue = setCellValue;
|
|
24
29
|
exports.toFilters = toFilters;
|
|
25
30
|
exports.toTreePathSeq = toTreePathSeq;
|
|
26
|
-
var _vXETable = _interopRequireDefault(require("../../v-x-e-table"));
|
|
27
31
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
28
32
|
var _columnInfo = require("./columnInfo");
|
|
29
|
-
var _dom =
|
|
30
|
-
|
|
31
|
-
function
|
|
33
|
+
var _dom = require("../../ui/src/dom");
|
|
34
|
+
var _log = require("../../ui/src/log");
|
|
35
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
36
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
32
37
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
33
|
-
function _unsupportedIterableToArray(
|
|
34
|
-
function _iterableToArray(
|
|
35
|
-
function _arrayWithoutHoles(
|
|
36
|
-
function _arrayLikeToArray(
|
|
37
|
-
var
|
|
38
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
39
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
40
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
41
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
42
|
+
var _getAllConvertColumns = function getAllConvertColumns(columns, parentColumn) {
|
|
38
43
|
var result = [];
|
|
39
44
|
columns.forEach(function (column) {
|
|
40
45
|
column.parentId = parentColumn ? parentColumn.id : null;
|
|
@@ -43,7 +48,7 @@ var getAllConvertColumns = function getAllConvertColumns(columns, parentColumn)
|
|
|
43
48
|
return column.visible;
|
|
44
49
|
})) {
|
|
45
50
|
result.push(column);
|
|
46
|
-
result.push.apply(result, _toConsumableArray(
|
|
51
|
+
result.push.apply(result, _toConsumableArray(_getAllConvertColumns(column.children, column)));
|
|
47
52
|
} else {
|
|
48
53
|
result.push(column);
|
|
49
54
|
}
|
|
@@ -53,7 +58,7 @@ var getAllConvertColumns = function getAllConvertColumns(columns, parentColumn)
|
|
|
53
58
|
};
|
|
54
59
|
var convertHeaderColumnToRows = exports.convertHeaderColumnToRows = function convertHeaderColumnToRows(originColumns) {
|
|
55
60
|
var maxLevel = 1;
|
|
56
|
-
var
|
|
61
|
+
var _traverse = function traverse(column, parent) {
|
|
57
62
|
if (parent) {
|
|
58
63
|
column.level = parent.level + 1;
|
|
59
64
|
if (maxLevel < column.level) {
|
|
@@ -66,7 +71,7 @@ var convertHeaderColumnToRows = exports.convertHeaderColumnToRows = function con
|
|
|
66
71
|
var colSpan = 0;
|
|
67
72
|
column.children.forEach(function (subColumn) {
|
|
68
73
|
if (subColumn.visible) {
|
|
69
|
-
|
|
74
|
+
_traverse(subColumn, column);
|
|
70
75
|
colSpan += subColumn.colSpan;
|
|
71
76
|
}
|
|
72
77
|
});
|
|
@@ -77,13 +82,13 @@ var convertHeaderColumnToRows = exports.convertHeaderColumnToRows = function con
|
|
|
77
82
|
};
|
|
78
83
|
originColumns.forEach(function (column) {
|
|
79
84
|
column.level = 1;
|
|
80
|
-
|
|
85
|
+
_traverse(column);
|
|
81
86
|
});
|
|
82
87
|
var rows = [];
|
|
83
88
|
for (var i = 0; i < maxLevel; i++) {
|
|
84
89
|
rows.push([]);
|
|
85
90
|
}
|
|
86
|
-
var allColumns =
|
|
91
|
+
var allColumns = _getAllConvertColumns(originColumns);
|
|
87
92
|
allColumns.forEach(function (column) {
|
|
88
93
|
if (column.children && column.children.length && column.children.some(function (column) {
|
|
89
94
|
return column.visible;
|
|
@@ -127,12 +132,16 @@ function restoreScrollListener(scrollElem) {
|
|
|
127
132
|
scrollElem.onscroll = scrollElem._onscroll;
|
|
128
133
|
}
|
|
129
134
|
}
|
|
130
|
-
|
|
135
|
+
/**
|
|
136
|
+
* 生成行的唯一主键
|
|
137
|
+
*/
|
|
138
|
+
function getRowUniqueId() {
|
|
139
|
+
return _xeUtils.default.uniqueId('row_');
|
|
140
|
+
}
|
|
131
141
|
// 行主键 key
|
|
132
142
|
function getRowkey($xetable) {
|
|
133
143
|
return $xetable.rowOpts.keyField || $xetable.rowId || '_X_ROW_KEY';
|
|
134
144
|
}
|
|
135
|
-
|
|
136
145
|
// 行主键 value
|
|
137
146
|
function getRowid($xetable, row) {
|
|
138
147
|
var rowid = _xeUtils.default.get(row, getRowkey($xetable));
|
|
@@ -162,6 +171,41 @@ function handleFieldOrColumn(_vm, fieldOrColumn) {
|
|
|
162
171
|
}
|
|
163
172
|
return null;
|
|
164
173
|
}
|
|
174
|
+
// 组装列配置
|
|
175
|
+
function assembleColumn(_vm) {
|
|
176
|
+
var $el = _vm.$el,
|
|
177
|
+
$xetable = _vm.$xetable,
|
|
178
|
+
$xecolumn = _vm.$xecolumn,
|
|
179
|
+
columnConfig = _vm.columnConfig;
|
|
180
|
+
var groupConfig = $xecolumn ? $xecolumn.columnConfig : null;
|
|
181
|
+
columnConfig.slots = _vm.$scopedSlots;
|
|
182
|
+
if (groupConfig) {
|
|
183
|
+
if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
|
|
184
|
+
if ($xecolumn.$options._componentTag === 'vxe-table-column') {
|
|
185
|
+
(0, _log.errLog)('vxe.error.groupTag', ["<vxe-table-colgroup title=".concat($xecolumn.title, " ...>"), "<vxe-table-column title=".concat($xecolumn.title, " ...>")]);
|
|
186
|
+
} else if ($xecolumn.$options._componentTag === 'vxe-column') {
|
|
187
|
+
(0, _log.warnLog)('vxe.error.groupTag', ["<vxe-colgroup title=".concat($xecolumn.title, " ...>"), "<vxe-column title=".concat($xecolumn.title, " ...>")]);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!groupConfig.children) {
|
|
191
|
+
groupConfig.children = [];
|
|
192
|
+
}
|
|
193
|
+
groupConfig.children.splice(_xeUtils.default.arrayIndexOf($xecolumn.$el.children, $el), 0, columnConfig);
|
|
194
|
+
} else {
|
|
195
|
+
$xetable.staticColumns.splice(_xeUtils.default.arrayIndexOf($xetable.$refs.hideColumn.children, $el), 0, columnConfig);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// 销毁列
|
|
199
|
+
function destroyColumn(_vm) {
|
|
200
|
+
var $xetable = _vm.$xetable,
|
|
201
|
+
columnConfig = _vm.columnConfig;
|
|
202
|
+
var matchObj = _xeUtils.default.findTree($xetable.staticColumns, function (column) {
|
|
203
|
+
return column === columnConfig;
|
|
204
|
+
});
|
|
205
|
+
if (matchObj) {
|
|
206
|
+
matchObj.items.splice(matchObj.index, 1);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
165
209
|
function getRootColumn($xetable, column) {
|
|
166
210
|
var fullColumnIdData = $xetable.fullColumnIdData;
|
|
167
211
|
if (!column) {
|
|
@@ -240,11 +284,11 @@ function getColReMinWidth(params) {
|
|
|
240
284
|
var tableBody = $table.$refs.tableBody;
|
|
241
285
|
var bodyElem = tableBody ? tableBody.$el : null;
|
|
242
286
|
if (bodyElem) {
|
|
243
|
-
if (_dom.
|
|
287
|
+
if ((0, _dom.isScale)(colMinWidth)) {
|
|
244
288
|
var bodyWidth = bodyElem.clientWidth - 1;
|
|
245
289
|
var meanWidth = bodyWidth / 100;
|
|
246
290
|
return Math.max(mWidth, Math.floor(_xeUtils.default.toInteger(colMinWidth) * meanWidth));
|
|
247
|
-
} else if (_dom.
|
|
291
|
+
} else if ((0, _dom.isPx)(colMinWidth)) {
|
|
248
292
|
return Math.max(mWidth, _xeUtils.default.toInteger(colMinWidth));
|
|
249
293
|
}
|
|
250
294
|
}
|
|
@@ -301,6 +345,12 @@ function mergeBodyMethod(mergeList, _rowIndex, _columnIndex) {
|
|
|
301
345
|
}
|
|
302
346
|
}
|
|
303
347
|
}
|
|
348
|
+
function getCellValue(row, column) {
|
|
349
|
+
return _xeUtils.default.get(row, column.field);
|
|
350
|
+
}
|
|
351
|
+
function setCellValue(row, column, value) {
|
|
352
|
+
return _xeUtils.default.set(row, column.field, value);
|
|
353
|
+
}
|
|
304
354
|
function clearTableDefaultStatus(_vm) {
|
|
305
355
|
_vm.initStatus = false;
|
|
306
356
|
_vm.clearSort();
|
|
@@ -313,7 +363,7 @@ function clearTableDefaultStatus(_vm) {
|
|
|
313
363
|
_vm.clearRowExpand();
|
|
314
364
|
_vm.clearTreeExpand();
|
|
315
365
|
_vm.clearTreeExpandReserve();
|
|
316
|
-
if (_vm.clearEdit
|
|
366
|
+
if (_vm.clearEdit) {
|
|
317
367
|
_vm.clearEdit();
|
|
318
368
|
}
|
|
319
369
|
if (_vm.clearSelected && (_vm.keyboardConfig || _vm.mouseConfig)) {
|
|
@@ -326,7 +376,7 @@ function clearTableDefaultStatus(_vm) {
|
|
|
326
376
|
return _vm.clearScroll();
|
|
327
377
|
}
|
|
328
378
|
function clearTableAllStatus(_vm) {
|
|
329
|
-
if (_vm.clearFilter
|
|
379
|
+
if (_vm.clearFilter) {
|
|
330
380
|
_vm.clearFilter();
|
|
331
381
|
}
|
|
332
382
|
return clearTableDefaultStatus(_vm);
|
|
@@ -334,8 +384,8 @@ function clearTableAllStatus(_vm) {
|
|
|
334
384
|
function isColumnInfo(column) {
|
|
335
385
|
return column instanceof _columnInfo.ColumnInfo;
|
|
336
386
|
}
|
|
337
|
-
function
|
|
338
|
-
return isColumnInfo(
|
|
387
|
+
function createColumn($xeTable, options, renderOptions) {
|
|
388
|
+
return isColumnInfo(options) ? options : new _columnInfo.ColumnInfo($xeTable, options, renderOptions);
|
|
339
389
|
}
|
|
340
390
|
function rowToVisible($xetable, row) {
|
|
341
391
|
var tableBody = $xetable.$refs.tableBody;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.assembleColumn=assembleColumn,exports.calcTreeLine=calcTreeLine,exports.clearTableAllStatus=clearTableAllStatus,exports.clearTableDefaultStatus=clearTableDefaultStatus,exports.colToVisible=colToVisible,exports.convertHeaderColumnToRows=void 0,exports.createColumn=createColumn,exports.destroyColumn=destroyColumn,exports.getCellValue=getCellValue,exports.getColReMinWidth=getColReMinWidth,exports.getOffsetSize=getOffsetSize,exports.getRootColumn=getRootColumn,exports.getRowUniqueId=getRowUniqueId,exports.getRowid=getRowid,exports.getRowkey=getRowkey,exports.handleFieldOrColumn=handleFieldOrColumn,exports.isColumnInfo=isColumnInfo,exports.mergeBodyMethod=mergeBodyMethod,exports.removeScrollListener=removeScrollListener,exports.restoreScrollListener=restoreScrollListener,exports.restoreScrollLocation=restoreScrollLocation,exports.rowToVisible=rowToVisible,exports.setCellValue=setCellValue,exports.toFilters=toFilters,exports.toTreePathSeq=toTreePathSeq;var _xeUtils=_interopRequireDefault(require("xe-utils")),_columnInfo=require("./columnInfo"),_dom=require("../../ui/src/dom"),_log=require("../../ui/src/log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,l=Array(t);r<t;r++)l[r]=e[r];return l}var _getAllConvertColumns=function(e,t){var r=[];return e.forEach(function(e){e.parentId=t?t.id:null,e.visible&&(e.children&&e.children.length&&e.children.some(function(e){return e.visible})?(r.push(e),r.push.apply(r,_toConsumableArray(_getAllConvertColumns(e.children,e)))):r.push(e))}),r},convertHeaderColumnToRows=exports.convertHeaderColumnToRows=function(e){for(var l=1,o=function(t,e){var r;e&&(t.level=e.level+1,l<t.level)&&(l=t.level),t.children&&t.children.length&&t.children.some(function(e){return e.visible})?(r=0,t.children.forEach(function(e){e.visible&&(o(e,t),r+=e.colSpan)}),t.colSpan=r):t.colSpan=1},t=(e.forEach(function(e){e.level=1,o(e)}),[]),r=0;r<l;r++)t.push([]);return _getAllConvertColumns(e).forEach(function(e){e.children&&e.children.length&&e.children.some(function(e){return e.visible})?e.rowSpan=1:e.rowSpan=l-e.level+1,t[e.level-1].push(e)}),t},lineOffsetSizes={mini:3,small:2,medium:1};function restoreScrollLocation(e,t,r){return e.clearScroll().then(function(){if(t||r)return e.lastScrollLeft=0,e.lastScrollTop=0,e.scrollTo(t,r)})}function toTreePathSeq(e){return e.map(function(e,t){return t%2==0?Number(e)+1:"."}).join("")}function removeScrollListener(e){e&&e._onscroll&&(e.onscroll=null)}function restoreScrollListener(e){e&&e._onscroll&&(e.onscroll=e._onscroll)}function getRowUniqueId(){return _xeUtils.default.uniqueId("row_")}function getRowkey(e){return e.rowOpts.keyField||e.rowId||"_X_ROW_KEY"}function getRowid(e,t){t=_xeUtils.default.get(t,getRowkey(e));return _xeUtils.default.eqNull(t)?"":encodeURIComponent(t)}function getPaddingLeftRightSize(e){return e?(e=getComputedStyle(e),_xeUtils.default.toNumber(e.paddingLeft)+_xeUtils.default.toNumber(e.paddingRight)):0}function getElemenMarginWidth(e){var t,r;return e?(r=getComputedStyle(e),t=_xeUtils.default.toNumber(r.marginLeft),r=_xeUtils.default.toNumber(r.marginRight),e.offsetWidth+t+r):0}function handleFieldOrColumn(e,t){return t?_xeUtils.default.isString(t)?e.getColumnByField(t):t:null}function assembleColumn(e){var t=e.$el,r=e.$xetable,l=e.$xecolumn,o=e.columnConfig,n=l?l.columnConfig:null;o.slots=e.$scopedSlots,n?("development"===process.env.VUE_APP_VXE_TABLE_ENV&&("vxe-table-column"===l.$options._componentTag?(0,_log.errLog)("vxe.error.groupTag",["<vxe-table-colgroup title=".concat(l.title," ...>"),"<vxe-table-column title=".concat(l.title," ...>")]):"vxe-column"===l.$options._componentTag&&(0,_log.warnLog)("vxe.error.groupTag",["<vxe-colgroup title=".concat(l.title," ...>"),"<vxe-column title=".concat(l.title," ...>")])),n.children||(n.children=[]),n.children.splice(_xeUtils.default.arrayIndexOf(l.$el.children,t),0,o)):r.staticColumns.splice(_xeUtils.default.arrayIndexOf(r.$refs.hideColumn.children,t),0,o)}function destroyColumn(e){var t=e.$xetable,r=e.columnConfig,e=_xeUtils.default.findTree(t.staticColumns,function(e){return e===r});e&&e.items.splice(e.index,1)}function getRootColumn(e,t){var r=e.fullColumnIdData;if(!t)return null;for(var l=t.parentId;r[l];){var o=r[l].column;if(!(l=o.parentId))return o}return t}function queryCellElement(e,t){return e.querySelector(".vxe-cell"+t)}function toFilters(e){return e&&_xeUtils.default.isArray(e)?e.map(function(e){var t=e.label,r=e.checked;return{label:t,value:e.value,data:e.data,resetValue:e.resetValue,checked:!!r,_checked:!!r}}):e}function getColReMinWidth(e){var t=e.$table,r=e.column,l=e.cell,o=t.showHeaderOverflow,n=t.resizableOpts.minWidth;if(n){e=_xeUtils.default.isFunction(n)?n(e):n;if("auto"!==e)return Math.max(1,_xeUtils.default.toNumber(e))}var i,a,u,n=r.showHeaderOverflow,e=r.minWidth,r=_xeUtils.default.isUndefined(n)||_xeUtils.default.isNull(n)?o:n,o="title"===r||(!0===r||"tooltip"===r)||"ellipsis"===r,n=_xeUtils.default.floor(1.6*(_xeUtils.default.toNumber(getComputedStyle(l).fontSize)||14))+(getPaddingLeftRightSize(l)+getPaddingLeftRightSize(queryCellElement(l,"")));if(o&&(r=getPaddingLeftRightSize(queryCellElement(l,"--title>.vxe-cell--checkbox")),o=getElemenMarginWidth(queryCellElement(l,">.vxe-cell--required-icon")),c=getElemenMarginWidth(queryCellElement(l,">.vxe-cell--edit-icon")),i=getElemenMarginWidth(queryCellElement(l,">.vxe-cell-title-prefix-icon")),a=getElemenMarginWidth(queryCellElement(l,">.vxe-cell-title-suffix-icon")),u=getElemenMarginWidth(queryCellElement(l,">.vxe-cell--sort")),n+=r+o+c+i+a+getElemenMarginWidth(queryCellElement(l,">.vxe-cell--filter"))+u),e){var c,r=t.$refs.tableBody,o=r?r.$el:null;if(o){if((0,_dom.isScale)(e))return c=(o.clientWidth-1)/100,Math.max(n,Math.floor(_xeUtils.default.toInteger(e)*c));if((0,_dom.isPx)(e))return Math.max(n,_xeUtils.default.toInteger(e))}}return n}function countTreeExpand(e,t){var r=1;if(e){var l=t.$table,o=l.treeOpts,n=e[o.children||o.childrenField];if(n&&l.isTreeExpandByRow(e))for(var i=0;i<n.length;i++)r+=countTreeExpand(n[i],t)}return r}function getOffsetSize(e){return lineOffsetSizes[e.vSize]||0}function calcTreeLine(e,t,r){var l=e.$table,o=1;return r&&(o=countTreeExpand(t[r-1],e)),l.rowHeight*o-(r?1:12-getOffsetSize(l))}function mergeBodyMethod(e,t,r){for(var l=0;l<e.length;l++){var o=e[l],n=o.row,i=o.col,a=o.rowspan,o=o.colspan;if(-1<i&&-1<n&&a&&o){if(n===t&&i===r)return{rowspan:a,colspan:o};if(n<=t&&t<n+a&&i<=r&&r<i+o)return{rowspan:0,colspan:0}}}}function getCellValue(e,t){return _xeUtils.default.get(e,t.field)}function setCellValue(e,t,r){return _xeUtils.default.set(e,t.field,r)}function clearTableDefaultStatus(e){return e.initStatus=!1,e.clearSort(),e.clearCurrentRow(),e.clearCurrentColumn(),e.clearRadioRow(),e.clearRadioReserve(),e.clearCheckboxRow(),e.clearCheckboxReserve(),e.clearRowExpand(),e.clearTreeExpand(),e.clearTreeExpandReserve(),e.clearEdit&&e.clearEdit(),e.clearSelected&&(e.keyboardConfig||e.mouseConfig)&&e.clearSelected(),e.clearCellAreas&&e.mouseConfig&&(e.clearCellAreas(),e.clearCopyCellArea()),e.clearScroll()}function clearTableAllStatus(e){return e.clearFilter&&e.clearFilter(),clearTableDefaultStatus(e)}function isColumnInfo(e){return e instanceof _columnInfo.ColumnInfo}function createColumn(e,t,r){return isColumnInfo(t)?t:new _columnInfo.ColumnInfo(e,t,r)}function rowToVisible(e,t){var r=e.$refs.tableBody,r=r?r.$el:null;if(r){var l=r.querySelector('[rowid="'.concat(getRowid(e,t),'"]'));if(l){var o=r.clientHeight,r=r.scrollTop,n=l.offsetTop+(l.offsetParent?l.offsetParent.offsetTop:0),l=l.clientHeight;if(n<r||r+o<n)return e.scrollTo(null,n);if(o+r<=n+l)return e.scrollTo(null,r+l)}else if(e.scrollYLoad)return e.scrollTo(null,(e.afterFullData.indexOf(t)-1)*e.scrollYStore.rowHeight)}return Promise.resolve()}function colToVisible(e,t){var r=e.$refs.tableBody,r=r?r.$el:null;if(r){var l=r.querySelector(".".concat(t.id));if(l){var o=r.clientWidth,r=r.scrollLeft,n=l.offsetLeft+(l.offsetParent?l.offsetParent.offsetLeft:0),l=l.clientWidth;if(n<r||r+o<n)return e.scrollTo(n);if(o+r<=n+l)return e.scrollTo(r+l)}else if(e.scrollXLoad){for(var i=e.visibleColumn,a=0,u=0;u<i.length&&i[u]!==t;u++)a+=i[u].renderWidth;return e.scrollTo(a)}}return Promise.resolve()}
|