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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.handlePrint=handlePrint,exports.readLocalFile=readLocalFile,exports.saveLocalFile=saveLocalFile;var _xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../../ui"),_util=require("../../src/util"),_utils=require("../../../ui/src/utils"),_dom=require("../../../ui/src/dom"),_util2=require("./util"),_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 o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_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 o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}var htmlCellElem,fileForm,fileInput,printFrame,getI18n=_ui.VxeUI.getI18n,renderer=_ui.VxeUI.renderer,csvBOM="\ufeff",enterSymbol="\r\n";function createFrame(){var e=document.createElement("iframe");return e.className="vxe-table--print-frame",e}function hasTreeChildren(e,t){e=e.treeOpts,e=e.children||e.childrenField;return t[e]&&0<t[e].length}function getSeq(e,t,o,n,r,a){var l=e.seqOpts.seqMethod||r.seqMethod;return l?l({row:o,rowIndex:e.getRowIndex(o),$rowIndex:n,column:r,columnIndex:e.getColumnIndex(r),$columnIndex:a}):t}function defaultFilterExportColumn(e){return e.property||-1<["seq","checkbox","radio"].indexOf(e.type)}function toTableBorder(e){return!0===e?"full":e||"default"}function toBooleanValue(e){return _xeUtils.default.isBoolean(e)?e?"TRUE":"FALSE":e}function getLabelData(d,u,r,e){var a,p,m=u.isAllExpand,h=u.mode,t=d.treeConfig,o=d.treeOpts,f=d.radioOpts,g=d.checkboxOpts,x=d.columnOpts,o=o.children||o.childrenField;return htmlCellElem=htmlCellElem||document.createElement("div"),t?(a=[],p=new Map,_xeUtils.default.eachTree(e,function(e,l,t,i,o,n){var c,s=e._row||e,e=o&&o._row?o._row:o;(m||!e||p.has(e)&&d.isTreeExpandByRow(e))&&(o=hasTreeChildren(d,s),c={_row:s,_level:n.length-1,_hasChild:o,_expand:o&&d.isTreeExpandByRow(s)},r.forEach(function(e,t){var o="",n=e.editRender||e.cellRender,r=e.exportMethod;if(r=(r=!r&&n&&n.name&&(n=renderer.get(n.name))?n.tableExportMethod||n.exportMethod||n.cellExportMethod:r)||x.exportMethod)o=r({$table:d,row:s,column:e,options:u});else switch(e.type){case"seq":var a=i.map(function(e,t){return t%2==0?Number(e)+1:"."}).join(""),o="all"===h?a:getSeq(d,a,s,l,e,t);break;case"checkbox":o=toBooleanValue(d.isCheckedByCheckboxRow(s)),c._checkboxLabel=g.labelField?_xeUtils.default.get(s,g.labelField):"",c._checkboxDisabled=g.checkMethod&&!g.checkMethod({row:s});break;case"radio":o=toBooleanValue(d.isCheckedByRadioRow(s)),c._radioLabel=f.labelField?_xeUtils.default.get(s,f.labelField):"",c._radioDisabled=f.checkMethod&&!f.checkMethod({row:s});break;default:u.original?o=(0,_util.getCellValue)(s,e):(o=d.getCellLabel(s,e),"html"===e.type?(htmlCellElem.innerHTML=o,o=htmlCellElem.innerText.trim()):(a=d.getCellElement(s,e))&&(o=a.innerText.trim()))}c[e.id]=_xeUtils.default.toValueString(o)}),p.set(s,1),a.push(Object.assign(c,s)))},{children:o}),a):e.map(function(l,i){var c={_row:l};return r.forEach(function(e,t){var o="",n=e.editRender||e.cellRender,r=e.exportMethod;if(r=!r&&n&&n.name&&(n=renderer.get(n.name))?n.tableExportMethod||n.exportMethod||n.cellExportMethod:r)o=r({$table:d,row:l,column:e,options:u});else switch(e.type){case"seq":var a=i+1,o="all"===h?a:getSeq(d,a,l,i,e,t);break;case"checkbox":o=toBooleanValue(d.isCheckedByCheckboxRow(l)),c._checkboxLabel=g.labelField?_xeUtils.default.get(l,g.labelField):"",c._checkboxDisabled=g.checkMethod&&!g.checkMethod({row:l});break;case"radio":o=toBooleanValue(d.isCheckedByRadioRow(l)),c._radioLabel=f.labelField?_xeUtils.default.get(l,f.labelField):"",c._radioDisabled=f.checkMethod&&!f.checkMethod({row:l});break;default:u.original?o=(0,_util.getCellValue)(l,e):(o=d.getCellLabel(l,e),"html"===e.type?(htmlCellElem.innerHTML=o,o=htmlCellElem.innerText.trim()):(a=d.getCellElement(l,e))&&(o=a.innerText.trim()))}c[e.id]=_xeUtils.default.toValueString(o)}),c})}function getExportData(e,t){var o=t.columns,n=t.dataFilterMethod,r=t.data;return getLabelData(e,t,o,r=n?r.filter(function(e,t){return n({row:e,$rowIndex:t})}):r)}function getBooleanValue(e){return"TRUE"===e||"true"===e||!0===e}function getHeaderTitle(e,t,o){var n=e.columnOpts,n=o.headerExportMethod||n.headerExportMethod;return n?n({column:o,options:t,$table:e}):(t.original?o.property:o.getTitle())||""}function getFooterCellValue(e,t,o,n){var r=e.columnOpts,a=n.editRender||n.cellRender,l=n.footerExportMethod,a=(l=(l=!l&&a&&a.name&&(a=renderer.get(a.name))?a.tableFooterExportMethod||a.footerExportMethod||a.footerCellExportMethod:l)||r.footerExportMethod,e.getVTColumnIndex(n));return l?l({$table:e,items:o,itemIndex:a,row:o,_columnIndex:a,column:n,options:t}):_xeUtils.default.isArray(o)?_xeUtils.default.toValueString(o[a]):_xeUtils.default.get(o,n.field)}function getFooterData(e,t){var o=e.footerFilterMethod;return o?t.filter(function(e,t){return o({items:e,$rowIndex:t})}):t}function getCsvCellTypeLabel(e,t){if(t){if("seq"===e.type)return"\t".concat(t);switch(e.cellType){case"string":if(isNaN(t))break;return"\t".concat(t);case"number":break;default:if(12<=t.length&&!isNaN(t))return"\t".concat(t)}}return t}function toTxtCellLabel(e){return/[",\s\n]/.test(e)?'"'.concat(e.replace(/"/g,'""'),'"'):e}function toCsv(o,n,e,t){var r=csvBOM;return n.isHeader&&(r+=e.map(function(e){return toTxtCellLabel(getHeaderTitle(o,n,e))}).join(",")+enterSymbol),t.forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(getCsvCellTypeLabel(e,t[e.id]))}).join(",")+enterSymbol}),n.isFooter&&(t=o.footerTableData,getFooterData(n,t).forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(getFooterCellValue(o,n,t,e))}).join(",")+enterSymbol})),r}function toTxt(o,n,e,t){var r="";return n.isHeader&&(r+=e.map(function(e){return toTxtCellLabel(getHeaderTitle(o,n,e))}).join("\t")+enterSymbol),t.forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(t[e.id])}).join("\t")+enterSymbol}),n.isFooter&&(t=o.footerTableData,getFooterData(n,t).forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(getFooterCellValue(o,n,t,e))}).join(",")+enterSymbol})),r}function hasEllipsis(e,t,o,n){t=t[o],o=_xeUtils.default.isUndefined(t)||_xeUtils.default.isNull(t)?n:t,n="title"===o||(!0===o||"tooltip"===o)||"ellipsis"===o;return n=e.scrollXLoad||e.scrollYLoad?n||!0:n}function toHtml(s,i,e,t){var d=s.id,o=s.treeConfig,a=s.treeOpts,c=s.isAllSelected,n=s.isIndeterminate,u=s.headerAlign,p=s.align,l=s.footerAlign,m=s.showOverflow,h=s.showHeaderOverflow,f=s.mergeList,g=i.print,r=i.isHeader,x=i.isFooter,v=i.isColgroup,_=i.isMerge,b=i.colgroups,y=i.original,E="check-all",w=["vxe-table","border--".concat(toTableBorder(s.border)),g?"is--print":"",r?"is--header":""].filter(function(e){return e}),C=['<table class="'.concat(w.join(" "),'" border="0" cellspacing="0" cellpadding="0">'),"<colgroup>".concat(e.map(function(e){return'<col style="width:'.concat(e.renderWidth,'px">')}).join(""),"</colgroup>")],v=(r&&(C.push("<thead>"),v&&!y?b.forEach(function(e){C.push("<tr>".concat(e.map(function(t){var e=t.headerAlign||t.align||u||p,o=hasEllipsis(s,t,"showHeaderOverflow",h)?["col--ellipsis"]:[],n=getHeaderTitle(s,i,t),r=0,a=0,l=(_xeUtils.default.eachTree([t],function(e){e.childNodes&&t.childNodes.length||a++,r+=e.renderWidth},{children:"childNodes"}),r-a);return e&&o.push("col--".concat(e)),"checkbox"===t.type?'<th class="'.concat(o.join(" "),'" colspan="').concat(t._colSpan,'" rowspan="').concat(t._rowSpan,'"><div ').concat(g?"":'style="width: '.concat(l,'px"'),'><input type="checkbox" class="').concat(E,'" ').concat(c?"checked":"","><span>").concat(n,"</span></div></th>"):'<th class="'.concat(o.join(" "),'" colspan="').concat(t._colSpan,'" rowspan="').concat(t._rowSpan,'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(l,'px"'),"><span>").concat((0,_utils.formatText)(n,!0),"</span></div></th>")}).join(""),"</tr>"))}):C.push("<tr>".concat(e.map(function(e){var t=e.headerAlign||e.align||u||p,o=hasEllipsis(s,e,"showHeaderOverflow",h)?["col--ellipsis"]:[],n=getHeaderTitle(s,i,e);return t&&o.push("col--".concat(t)),"checkbox"===e.type?'<th class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="checkbox" class="').concat(E,'" ').concat(c?"checked":"","><span>").concat(n,"</span></div></th>"):'<th class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),"><span>").concat((0,_utils.formatText)(n,!0),"</span></div></th>")}).join(""),"</tr>")),C.push("</thead>")),t.length&&(C.push("<tbody>"),o?t.forEach(function(r){C.push("<tr>"+e.map(function(e){var t=e.align||p,o=hasEllipsis(s,e,"showOverflow",m)?["col--ellipsis"]:[],n=r[e.id];return t&&o.push("col--".concat(t)),e.treeNode?(t="",r._hasChild&&(t='<i class="'.concat(r._expand?"vxe-table--tree-fold-icon":"vxe-table--tree-unfold-icon",'"></i>')),o.push("vxe-table--tree-node"),"radio"===e.type?'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(r._level*a.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(t,'</div><div class="vxe-table--tree-cell"><input type="radio" name="radio_').concat(d,'" ').concat(r._radioDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._radioLabel,"</span></div></div></div></td>"):"checkbox"===e.type?'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(r._level*a.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(t,'</div><div class="vxe-table--tree-cell"><input type="checkbox" ').concat(r._checkboxDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._checkboxLabel,"</span></div></div></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(r._level*a.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(t,'</div><div class="vxe-table--tree-cell">').concat(n,"</div></div></div></td>")):"radio"===e.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="radio" name="radio_').concat(d,'" ').concat(r._radioDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._radioLabel,"</span></div></td>"):"checkbox"===e.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="checkbox" ').concat(r._checkboxDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._checkboxLabel,"</span></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),">").concat((0,_utils.formatText)(n,!0),"</div></td>")}).join("")+"</tr>")}):t.forEach(function(c){C.push("<tr>"+e.map(function(e){var t=e.align||p,o=hasEllipsis(s,e,"showOverflow",m)?["col--ellipsis"]:[],n=c[e.id],r=1,a=1;if(_&&f.length){var l=s.getVTRowIndex(c._row),i=s.getVTColumnIndex(e),l=(0,_util.mergeBodyMethod)(f,l,i);if(l){i=l.rowspan,l=l.colspan;if(!i||!l)return"";1<i&&(r=i),1<l&&(a=l)}}return t&&o.push("col--".concat(t)),"radio"===e.type?'<td class="'.concat(o.join(" "),'" rowspan="').concat(r,'" colspan="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="radio" name="radio_').concat(d,'" ').concat(c._radioDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(c._radioLabel,"</span></div></td>"):"checkbox"===e.type?'<td class="'.concat(o.join(" "),'" rowspan="').concat(r,'" colspan="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="checkbox" ').concat(c._checkboxDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(c._checkboxLabel,"</span></div></td>"):'<td class="'.concat(o.join(" "),'" rowspan="').concat(r,'" colspan="').concat(a,'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),">").concat((0,_utils.formatText)(n,!0),"</div></td>")}).join("")+"</tr>")}),C.push("</tbody>")),x&&(w=s.footerTableData,(r=getFooterData(i,w)).length)&&(C.push("<tfoot>"),r.forEach(function(r){C.push("<tr>".concat(e.map(function(e){var t=e.footerAlign||e.align||l||p,o=hasEllipsis(s,e,"showOverflow",m)?["col--ellipsis"]:[],n=getFooterCellValue(s,i,r,e);return t&&o.push("col--".concat(t)),'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),">").concat((0,_utils.formatText)(n,!0),"</div></td>")}).join(""),"</tr>"))}),C.push("</tfoot>")),!c&&n?'<script>(function(){var a=document.querySelector(".'.concat(E,'");if(a){a.indeterminate=true}})()<\/script>'):"");return C.push("</table>",v),g?C.join(""):(0,_util2.createHtmlPage)(i,C.join(""))}function toXML(o,n,e,t){var r=['<?xml version="1.0"?>','<?mso-application progid="Excel.Sheet"?>','<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">','<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">',"<Version>16.00</Version>","</DocumentProperties>",'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">',"<WindowHeight>7920</WindowHeight>","<WindowWidth>21570</WindowWidth>","<WindowTopX>32767</WindowTopX>","<WindowTopY>32767</WindowTopY>","<ProtectStructure>False</ProtectStructure>","<ProtectWindows>False</ProtectWindows>","</ExcelWorkbook>",'<Worksheet ss:Name="'.concat(n.sheetName,'">'),"<Table>",e.map(function(e){return'<Column ss:Width="'.concat(e.renderWidth,'"/>')}).join("")].join("");return n.isHeader&&(r+="<Row>".concat(e.map(function(e){return'<Cell><Data ss:Type="String">'.concat(getHeaderTitle(o,n,e),"</Data></Cell>")}).join(""),"</Row>")),t.forEach(function(t){r+="<Row>"+e.map(function(e){return'<Cell><Data ss:Type="String">'.concat(t[e.id],"</Data></Cell>")}).join("")+"</Row>"}),n.isFooter&&(t=o.footerTableData,getFooterData(n,t).forEach(function(t){r+="<Row>".concat(e.map(function(e){return'<Cell><Data ss:Type="String">'.concat(getFooterCellValue(o,n,t,e),"</Data></Cell>")}).join(""),"</Row>")})),"".concat(r,"</Table></Worksheet></Workbook>")}function getContent(e,t,o,n){if(o.length)switch(t.type){case"csv":return toCsv(e,t,o,n);case"txt":return toTxt(e,t,o,n);case"html":return toHtml(e,t,o,n);case"xml":return toXML(e,t,o,n)}return""}function saveLocalFile(e){var t,o,n=e.filename,r=e.type,a=e.content,n="".concat(n,".").concat(r);return window.Blob?(r=a instanceof Blob?a:(0,_util2.getExportBlobByContent)(_xeUtils.default.toValueString(a),e),navigator.msSaveBlob?navigator.msSaveBlob(r,n):(t=URL.createObjectURL(r),(o=document.createElement("a")).target="_blank",o.download=n,o.href=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),requestAnimationFrame(function(){o.parentNode&&o.parentNode.removeChild(o),URL.revokeObjectURL(t)})),Promise.resolve()):Promise.reject(new Error(getI18n("vxe.error.notExp")))}function downloadFile(e,t,o){var n,r=t.filename,a=t.type;if(!t.download)return n=(0,_util2.getExportBlobByContent)(o,t),Promise.resolve({type:a,content:o,blob:n});saveLocalFile({filename:r,type:a,content:o}).then(function(){!1!==t.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.table.expSuccess"),status:"success"}))})}function clearColumnConvert(e){_xeUtils.default.eachTree(e,function(e){delete e._level,delete e._colSpan,delete e._rowSpan,delete e._children,delete e.childNodes},{children:"children"})}function handleExport(n,r){var a=r.remote,l=r.columns,i=r.colgroups,c=r.exportMethod,t=r.afterExportMethod;return new Promise(function(e){var t,o;a?(t={options:r,$table:n,$grid:n.$xegrid},e(c?c(t):t)):(o=getExportData(n,r),e(n.preventEvent(null,"event.export",{options:r,columns:l,colgroups:i,datas:o},function(){return downloadFile(n,r,getContent(n,r,l,o))})))}).then(function(e){return clearColumnConvert(l),r.print||t&&t({status:!0,options:r,$table:n,$grid:n.$xegrid}),Object.assign({status:!0},e)}).catch(function(){clearColumnConvert(l),r.print||t&&t({status:!1,options:r,$table:n,$grid:n.$xegrid});return Promise.reject({status:!1})})}function getElementsByTagName(e,t){return e.getElementsByTagName(t)}function getTxtCellKey(e){return"#".concat(e,"@").concat(_xeUtils.default.uniqueId())}function replaceTxtCell(e,t){return e.replace(/#\d+@\d+/g,function(e){return _xeUtils.default.hasOwnProp(t,e)?t[e]:e})}function getTxtCellValue(e,t){return replaceTxtCell(e,t).replace(/^"+$/g,function(e){return'"'.repeat(Math.ceil(e.length/2))})}function parseCsvAndTxt(e,t,n){var r,a,t=t.split(enterSymbol),l=[],i=[];return t.length&&(r={},a=Date.now(),t.forEach(function(e){var o;e&&(o={},e=(e=e.replace(/("")|(\n)/g,function(e,t){var o=getTxtCellKey(a);return r[o]=t?'"':"\n",o}).replace(/"(.*?)"/g,function(e,t){var o=getTxtCellKey(a);return r[o]=replaceTxtCell(t,r),o})).split(n),i.length?(e.forEach(function(e,t){t<i.length&&(o[i[t]]=getTxtCellValue(e,r))}),l.push(o)):i=e.map(function(e){return getTxtCellValue(e.trim(),r)}))})),{fields:i,rows:l}}function parseCsv(e,t){return parseCsvAndTxt(e,t,",")}function parseTxt(e,t){return parseCsvAndTxt(e,t,"\t")}function parseHTML(e,t){var o,t=getElementsByTagName((new DOMParser).parseFromString(t,"text/html"),"body"),n=[],r=[];return t.length&&(t=getElementsByTagName(t[0],"table")).length&&(o=getElementsByTagName(t[0],"thead")).length&&(_xeUtils.default.arrayEach(getElementsByTagName(o[0],"tr"),function(e){_xeUtils.default.arrayEach(getElementsByTagName(e,"th"),function(e){r.push(e.textContent)})}),(o=getElementsByTagName(t[0],"tbody")).length)&&_xeUtils.default.arrayEach(getElementsByTagName(o[0],"tr"),function(e){var o={};_xeUtils.default.arrayEach(getElementsByTagName(e,"td"),function(e,t){r[t]&&(o[r[t]]=e.textContent||"")}),n.push(o)}),{fields:r,rows:n}}function parseXML(e,t){var t=getElementsByTagName((new DOMParser).parseFromString(t,"application/xml"),"Worksheet"),n=[],r=[];return t.length&&(t=getElementsByTagName(t[0],"Table")).length&&(t=getElementsByTagName(t[0],"Row")).length&&(_xeUtils.default.arrayEach(getElementsByTagName(t[0],"Cell"),function(e){r.push(e.textContent)}),_xeUtils.default.arrayEach(t,function(e,t){var o;t&&(o={},t=getElementsByTagName(e,"Cell"),_xeUtils.default.arrayEach(t,function(e,t){r[t]&&(o[r[t]]=e.textContent)}),n.push(o))})),{fields:r,rows:n}}function checkImportData(e,t){var o=[];return e.forEach(function(e){e=e.property;e&&o.push(e)}),t.some(function(e){return-1<o.indexOf(e)})}function handleImport(o,e,n){var t=o.tableFullColumn,r=o._importResolve,a=o._importReject,l={fields:[],rows:[]};switch(n.type){case"csv":l=parseCsv(t,e);break;case"txt":l=parseTxt(t,e);break;case"html":l=parseHTML(t,e);break;case"xml":l=parseXML(t,e)}var i=l,c=i.fields,s=i.rows;checkImportData(t,c)?o.createData(s).then(function(e){var t;return"insert"!==n.mode&&"insertBottom"!==n.mode||(t=o.insertAt(e,-1)),t="insertTop"===n.mode?o.insert(e):o.reloadData(e),!1!==n.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.table.impSuccess",[s.length]),status:"success"})),t.then(function(){r&&r({status:!0})})}):!1!==n.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.error.impFields"),status:"error"}),a)&&a({status:!1})}function handleFileImport(a,l,i){var e=a.importOpts,c=i.importMethod,t=i.afterImportMethod,o=(0,_utils.parseFile)(l),s=o.type,d=o.filename;return c||_xeUtils.default.includes(_xeUtils.default.keys(e._typeMaps),s)?new Promise(function(t,o){function e(e){t(e),a._importResolve=null,a._importReject=null}function n(e){o(e),a._importResolve=null,a._importReject=null}var r;a._importResolve=e,a._importReject=n,window.FileReader?(r=Object.assign({mode:"insertTop"},i,{type:s,filename:d})).remote?c?Promise.resolve(c({file:l,options:r,$table:a})).then(function(){e({status:!0})}).catch(function(){e({status:!0})}):e({status:!0}):a.preventEvent(null,"event.import",{file:l,options:r,columns:a.tableFullColumn},function(){var e=new FileReader;e.onerror=function(){(0,_log.errLog)("vxe.error.notType",[s]),n({status:!1})},e.onload=function(e){handleImport(a,e.target.result,r)},e.readAsText(l,r.encoding||"UTF-8")}):("development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.errLog)("vxe.error.notExp"),e({status:!0}))}).then(function(){t&&t({status:!0,options:i,$table:a})}).catch(function(e){return t&&t({status:!1,options:i,$table:a}),Promise.reject(e)}):(!1!==i.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.error.notType",[s]),status:"error"})),Promise.reject({status:!1}))}function readLocalFile(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return fileForm||(fileForm=document.createElement("form"),fileInput=document.createElement("input"),fileForm.className="vxe-table--file-form",fileInput.name="file",fileInput.type="file",fileForm.appendChild(fileInput),document.body.appendChild(fileForm)),new Promise(function(a,l){var i=s.types||[],c=!i.length||i.some(function(e){return"*"===e});fileInput.multiple=!!s.multiple,fileInput.accept=c?"":".".concat(i.join(", .")),fileInput.onchange=function(e){var t,o=e.target.files,e=o[0];if(!c)for(var n=0;n<o.length;n++){var r=(0,_utils.parseFile)(o[n]).type;if(!_xeUtils.default.includes(i,r)){t=r;break}}t?(!1!==s.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.error.notType",[t]),status:"error"})),l({status:!1,files:o,file:e})):a({status:!0,files:o,file:e})},fileForm.reset(),fileInput.click()})}function removePrintFrame(){if(printFrame){if(printFrame.parentNode){try{printFrame.contentDocument.write("")}catch(e){}printFrame.parentNode.removeChild(printFrame)}printFrame=null}}function appendPrintFrame(){printFrame.parentNode||document.body.appendChild(printFrame)}function afterPrintEvent(){requestAnimationFrame(removePrintFrame)}function handlePrint(e,t,o){var n=t.beforePrintMethod,n=(n&&(o=n({content:o,options:t,$table:e})||""),o=(0,_util2.createHtmlPage)(t,o),(0,_util2.getExportBlobByContent)(o,t));_dom.browse.msie?(removePrintFrame(),printFrame=createFrame(),appendPrintFrame(),printFrame.contentDocument.write(o),printFrame.contentDocument.execCommand("print")):(printFrame||((printFrame=createFrame()).onload=function(e){e.target.src&&(e.target.contentWindow.onafterprint=afterPrintEvent,e.target.contentWindow.print())}),appendPrintFrame(),printFrame.src=URL.createObjectURL(n))}function handleExportAndPrint(e,t,o){var n=e.$xegrid,r=e.initStore,a=e.customOpts,l=e.collectColumn,i=e.footerTableData,c=e.treeConfig,s=e.mergeList,d=e.isGroup,u=e.exportParams,p=e.exportOpts,n=n?n.proxyOpts:{},m=e.getCheckboxRecords(),i=!!i.length,s=!c&&s.length,n=Object.assign({message:!0,isHeader:!0,current:"current",modes:["current","selected"].concat(n.ajax&&n.ajax.queryAll?["all"]:[])},t),t=n.types||_xeUtils.default.keys(p._typeMaps),p=n.modes||[],h=a.checkMethod,a=l.slice(0),f=n.columns,l=t.map(function(e){return{value:e,label:getI18n("vxe.export.types.".concat(e))}}),t=p.map(function(e){return e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:getI18n("vxe.export.modes.".concat(e))}});return _xeUtils.default.eachTree(a,function(n,e,t,o,r){(n.children&&n.children.length||defaultFilterExportColumn(n))&&(n.checked=f?f.some(function(e){var t,o;return(0,_util.isColumnInfo)(e)?n===e:_xeUtils.default.isString(e)?n.field===e:(t=e.id||e.colId,o=e.type,e=e.property||e.field,t?n.id===t:e&&o?n.property===e&&n.type===o:e?n.property===e:!!o&&n.type===o)}):n.visible,n.halfChecked=!1,n.disabled=r&&r.disabled||!!h&&!h({column:n}))}),Object.assign(e.exportStore,{columns:a,typeList:l,modeList:t,hasFooter:i,hasMerge:s,hasTree:c,isPrint:o,hasColgroup:d,visible:!0}),Object.assign(u,{mode:m.length?"selected":"current"},n),t.some(function(e){return e.value===u.mode})||(u.mode=t[0].value),l.some(function(e){return e.value===u.type})||(u.type=l[0].value),r.export=!0,e.$nextTick()}var _getConvertColumns=function(e){var t=[];return e.forEach(function(e){e.childNodes&&e.childNodes.length?(t.push(e),t.push.apply(t,_toConsumableArray(_getConvertColumns(e.childNodes)))):t.push(e)}),t},convertToRows=function(e){for(var n=1,r=function(t,e){var o;e&&(t._level=e._level+1,n<t._level)&&(n=t._level),t.childNodes&&t.childNodes.length?(o=0,t.childNodes.forEach(function(e){r(e,t),o+=e._colSpan}),t._colSpan=o):t._colSpan=1},t=(e.forEach(function(e){e._level=1,r(e)}),[]),o=0;o<n;o++)t.push([]);return _getConvertColumns(e).forEach(function(e){e.childNodes&&e.childNodes.length?e._rowSpan=1:e._rowSpan=n-e._level+1,t[e._level-1].push(e)}),t},_default=exports.default={methods:{_exportData:function(e){var a=this,t=this.$xegrid,o=this.isGroup,n=this.tableGroupColumn,l=this.tableFullColumn,r=this.afterFullData,i=this.treeConfig,c=this.treeOpts,s=this.exportOpts,d=Object.assign({isHeader:!0,isFooter:!0,isColgroup:!0,isMerge:!1,isAllExpand:!1,download:!0,type:"csv",mode:"current"},s,{print:!1},e),e=d.type,u=d.mode,p=d.columns,m=d.beforeExportMethod,h=[],p=p&&p.length?p:null,f=d.columnFilterMethod,g=(p||(f=f||(d.original?function(e){return e.column.property}:function(e){return defaultFilterExportColumn(e.column)})),h=p?(d._isCustomColumn=!0,_xeUtils.default.searchTree(_xeUtils.default.mapTree(p,function(e){var t,o,n,r;if(e)return(0,_util.isColumnInfo)(e)?t=e:_xeUtils.default.isString(e)?t=a.getColumnByField(e):(o=e.id||e.colId,n=e.type,r=e.property||e.field,o?t=a.getColumnById(o):r&&n?t=l.find(function(e){return e.property===r&&e.type===n}):r?t=a.getColumnByField(r):n&&(t=l.find(function(e){return e.type===n}))),t||{}},{children:"childNodes",mapChildren:"_children"}),function(e,t){return(0,_util.isColumnInfo)(e)&&(!f||f({column:e,$columnIndex:t}))},{children:"_children",mapChildren:"childNodes",original:!0})):_xeUtils.default.searchTree(o?n:l,function(e,t){return e.visible&&(!f||f({column:e,$columnIndex:t}))},{children:"children",mapChildren:"childNodes",original:!0}),[]);if(_xeUtils.default.eachTree(h,function(e){e.children&&e.children.length||g.push(e)},{children:"childNodes"}),d.columns=g,d.colgroups=convertToRows(h),d.filename||(d.filename=getI18n(d.original?"vxe.table.expOriginFilename":"vxe.table.expFilename",[_xeUtils.default.toDateString(Date.now(),"yyyyMMddHHmmss")])),d.sheetName||(d.sheetName=document.title),!d.exportMethod&&!_xeUtils.default.includes(_xeUtils.default.keys(s._typeMaps),e))return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.errLog)("vxe.error.notType",[e]),Promise.reject({status:!1});if(d.print||m&&m({options:d,$table:this,$grid:t}),!d.data)if(d.data=[],"selected"===u){var x=this.getCheckboxRecords();-1<["html","pdf"].indexOf(e)&&i?d.data=_xeUtils.default.searchTree(this.getTableData().fullData,function(e){return-1<x.indexOf(e)},Object.assign({},c,{data:"_row"})):d.data=x}else if("all"===u){if("development"!==process.env.VUE_APP_VXE_TABLE_ENV||t||(0,_log.warnLog)("vxe.error.errProp",["all","mode=current,selected"]),t&&!d.remote){var v,p=t.proxyOpts,o=p.beforeQueryAll,_=p.afterQueryAll,n=p.ajax,h=void 0===n?{}:n,s=p.props,b=void 0===s?{}:s,m=h.queryAll,y=h.queryAllSuccess,E=h.queryAllError;if("development"!==process.env.VUE_APP_VXE_TABLE_ENV||m||(0,_log.warnLog)("vxe.error.notFunc",["proxy-config.ajax.queryAll"]),m)return v={$table:this,$grid:t,sort:t.sortData,filters:t.filterData,form:t.formData,target:m,options:d},Promise.resolve((o||m)(v)).then(function(e){return d.data=(b.list?_xeUtils.default.get(e,b.list):e)||[],_&&_(v),y&&y(Object.assign(Object.assign({},v),{response:e})),handleExport(a,d)}).catch(function(e){E&&E(Object.assign(Object.assign({},v),{response:e}))})}}else"current"===u&&(d.data=r);return handleExport(this,d)},_importByFile:function(e,t){var t=Object.assign({},t),o=t.beforeImportMethod;return o&&o({options:t,$table:this}),handleFileImport(this,e,t)},_importData:function(e){var t=this,o=this.importOpts,n=Object.assign({types:_xeUtils.default.keys(o._typeMaps)},o,e),o=n.beforeImportMethod,r=n.afterImportMethod;return o&&o({options:n,$table:this}),readLocalFile(n).catch(function(e){return r&&r({status:!1,options:n,$table:t}),Promise.reject(e)}).then(function(e){e=e.file;return handleFileImport(t,e,n)})},_saveFile:function(e){return saveLocalFile(e)},_readFile:function(e){return readLocalFile(e)},_print:function(e){var t=this,o=Object.assign({original:!1},this.printOpts,e,{type:"html",download:!1,remote:!1,print:!0});return o.sheetName||(o.sheetName=document.title),new Promise(function(e){o.content?e(handlePrint(t,o,o.content)):e(t.exportData(o).then(function(e){e=e.content;return handlePrint(t,o,e)}))})},_getPrintHtml:function(e){var t=this.printOpts,t=Object.assign({original:!1},t,e,{type:"html",download:!1,remote:!1,print:!0});return this.exportData(t).then(function(e){return{html:e.content}})},_openImport:function(e){var t=this,o=this.importOpts,e=Object.assign({mode:"insertTop",message:!0,types:_xeUtils.default.keys(o._typeMaps),modes:["insertTop","covering"]},e,o),o=e.types||[],n=e.modes||[];!this.getTreeStatus()?(this.importConfig||(0,_log.errLog)("vxe.error.reqProp",["import-config"]),o=o.map(function(e){return{value:e,label:getI18n("vxe.export.types.".concat(e))}}),n=n.map(function(e){return e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:getI18n("vxe.import.modes.".concat(e))}}),Object.assign(this.importStore,{file:null,type:"",filename:"",modeList:n,typeList:o,visible:!0}),Object.assign(this.importParams,e),n.some(function(e){return e.value===t.importParams.mode})||(this.importParams.mode=n[0].value),this.initStore.import=!0):e.message&&_ui.VxeUI.modal.message({content:getI18n("vxe.error.treeNotImp"),status:"error"})},_openExport:function(e){var t=this.exportOpts;return"development"!==process.env.VUE_APP_VXE_TABLE_ENV||this.exportConfig||(0,_log.errLog)("vxe.error.reqProp",["export-config"]),handleExportAndPrint(this,Object.assign({},t,e))},_openPrint:function(e){var t=this.printOpts;return"development"!==process.env.VUE_APP_VXE_TABLE_ENV||this.printConfig||(0,_log.errLog)("vxe.error.reqProp",["print-config"]),handleExportAndPrint(this,Object.assign({},t,e),!0)}}};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createHtmlPage = createHtmlPage;
|
|
7
|
+
exports.getExportBlobByContent = getExportBlobByContent;
|
|
8
|
+
// 默认导出或打印的 HTML 样式
|
|
9
|
+
var defaultHtmlStyle = 'body{margin:0;padding: 0 1px;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
|
|
10
|
+
function getExportBlobByContent(content, options) {
|
|
11
|
+
return new Blob([content], {
|
|
12
|
+
type: "text/".concat(options.type, ";charset=utf-8;")
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function createHtmlPage(opts, content) {
|
|
16
|
+
var style = opts.style;
|
|
17
|
+
return ['<!DOCTYPE html><html>', '<head>', '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">', "<title>".concat(opts.sheetName, "</title>"), '<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>', "<style>".concat(defaultHtmlStyle, "</style>"), style ? "<style>".concat(style, "</style>") : '', '</head>', "<body>".concat(content, "</body>"), '</html>'].join('');
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHtmlPage=createHtmlPage,exports.getExportBlobByContent=getExportBlobByContent;var defaultHtmlStyle='body{margin:0;padding: 0 1px;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';function getExportBlobByContent(e,t){return new Blob([e],{type:"text/".concat(t.type,";charset=utf-8;")})}function createHtmlPage(e,t){var r=e.style;return["<!DOCTYPE html><html>","<head>",'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',"<title>".concat(e.sheetName,"</title>"),'<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',"<style>".concat(defaultHtmlStyle,"</style>"),r?"<style>".concat(r,"</style>"):"","</head>","<body>".concat(t,"</body>"),"</html>"].join("")}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
8
|
+
var _ui = require("../../../ui");
|
|
9
|
+
var _util = require("../../src/util");
|
|
10
|
+
var _dom = require("../../../ui/src/dom");
|
|
11
|
+
var _utils = require("../../../ui/src/utils");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
var renderer = _ui.VxeUI.renderer;
|
|
14
|
+
var _default = exports.default = {
|
|
15
|
+
methods: {
|
|
16
|
+
/**
|
|
17
|
+
* 手动弹出筛选面板
|
|
18
|
+
* @param column
|
|
19
|
+
*/
|
|
20
|
+
_openFilter: function _openFilter(fieldOrColumn) {
|
|
21
|
+
var column = (0, _util.handleFieldOrColumn)(this, fieldOrColumn);
|
|
22
|
+
if (column && column.filters) {
|
|
23
|
+
var elemStore = this.elemStore;
|
|
24
|
+
var fixed = column.fixed;
|
|
25
|
+
return this.scrollToColumn(column).then(function () {
|
|
26
|
+
var headerWrapperElem = elemStore["".concat(fixed || 'main', "-header-wrapper")] || elemStore['main-header-wrapper'];
|
|
27
|
+
if (headerWrapperElem) {
|
|
28
|
+
var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column.".concat(column.id, " .vxe-filter--btn"));
|
|
29
|
+
(0, _dom.triggerEvent)(filterBtnElem, 'click');
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return this.$nextTick();
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* 修改筛选条件列表
|
|
37
|
+
* @param {ColumnInfo} fieldOrColumn 列
|
|
38
|
+
* @param {Array} options 选项
|
|
39
|
+
*/
|
|
40
|
+
_setFilter: function _setFilter(fieldOrColumn, options, update) {
|
|
41
|
+
var column = (0, _util.handleFieldOrColumn)(this, fieldOrColumn);
|
|
42
|
+
if (column && column.filters) {
|
|
43
|
+
column.filters = (0, _util.toFilters)(options || []);
|
|
44
|
+
}
|
|
45
|
+
return update ? this.updateData() : this.$nextTick();
|
|
46
|
+
},
|
|
47
|
+
checkFilterOptions: function checkFilterOptions() {
|
|
48
|
+
var filterStore = this.filterStore;
|
|
49
|
+
filterStore.isAllSelected = filterStore.options.every(function (item) {
|
|
50
|
+
return item._checked;
|
|
51
|
+
});
|
|
52
|
+
filterStore.isIndeterminate = !filterStore.isAllSelected && filterStore.options.some(function (item) {
|
|
53
|
+
return item._checked;
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* 点击筛选事件
|
|
58
|
+
* 当筛选图标被点击时触发
|
|
59
|
+
* 更新选项是否全部状态
|
|
60
|
+
* 打开筛选面板
|
|
61
|
+
* @param {Event} evnt 事件
|
|
62
|
+
* @param {ColumnInfo} column 列配置
|
|
63
|
+
* @param {Object} params 参数
|
|
64
|
+
*/
|
|
65
|
+
triggerFilterEvent: function triggerFilterEvent(evnt, column, params) {
|
|
66
|
+
var _this = this;
|
|
67
|
+
var filterStore = this.filterStore;
|
|
68
|
+
if (filterStore.column === column && filterStore.visible) {
|
|
69
|
+
filterStore.visible = false;
|
|
70
|
+
} else {
|
|
71
|
+
var targetElem = evnt.target,
|
|
72
|
+
pageX = evnt.pageX;
|
|
73
|
+
var filters = column.filters,
|
|
74
|
+
filterMultiple = column.filterMultiple,
|
|
75
|
+
filterRender = column.filterRender;
|
|
76
|
+
var compConf = (0, _utils.isEnableConf)(filterRender) ? renderer.get(filterRender.name) : null;
|
|
77
|
+
var filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod : null);
|
|
78
|
+
var _getDomNode = (0, _dom.getDomNode)(),
|
|
79
|
+
visibleWidth = _getDomNode.visibleWidth;
|
|
80
|
+
Object.assign(filterStore, {
|
|
81
|
+
args: params,
|
|
82
|
+
multiple: filterMultiple,
|
|
83
|
+
options: filters,
|
|
84
|
+
column: column,
|
|
85
|
+
style: null,
|
|
86
|
+
visible: true
|
|
87
|
+
});
|
|
88
|
+
// 复原状态
|
|
89
|
+
filterStore.options.forEach(function (option) {
|
|
90
|
+
var _checked = option._checked,
|
|
91
|
+
checked = option.checked;
|
|
92
|
+
option._checked = checked;
|
|
93
|
+
if (!checked && _checked !== checked) {
|
|
94
|
+
if (filterRecoverMethod) {
|
|
95
|
+
filterRecoverMethod({
|
|
96
|
+
option: option,
|
|
97
|
+
column: column,
|
|
98
|
+
$table: _this
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
this.checkFilterOptions();
|
|
104
|
+
this.initStore.filter = true;
|
|
105
|
+
this.$nextTick(function () {
|
|
106
|
+
var $refs = _this.$refs;
|
|
107
|
+
var tableHeader = $refs.tableHeader,
|
|
108
|
+
tableBody = $refs.tableBody,
|
|
109
|
+
filterWrapper = $refs.filterWrapper;
|
|
110
|
+
var bodyElem = tableBody.$el;
|
|
111
|
+
var headerElem = tableHeader ? tableHeader.$el : null;
|
|
112
|
+
if (!bodyElem) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
var filterWrapperElem = filterWrapper.$el;
|
|
116
|
+
if (!filterWrapperElem) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
var filterWidth = filterWrapperElem.offsetWidth;
|
|
120
|
+
var filterHeight = filterWrapperElem.offsetHeight;
|
|
121
|
+
var filterHeadElem = filterWrapperElem.querySelector('.vxe-table--filter-header');
|
|
122
|
+
var filterFootElem = filterWrapperElem.querySelector('.vxe-table--filter-footer');
|
|
123
|
+
var centerWidth = filterWidth / 2;
|
|
124
|
+
var minMargin = 10;
|
|
125
|
+
var maxLeft = bodyElem.clientWidth - filterWidth - minMargin;
|
|
126
|
+
var left, right;
|
|
127
|
+
var style = {
|
|
128
|
+
top: "".concat(targetElem.offsetTop + targetElem.offsetParent.offsetTop + targetElem.offsetHeight, "px")
|
|
129
|
+
};
|
|
130
|
+
// 判断面板不能大于表格高度
|
|
131
|
+
var maxHeight = null;
|
|
132
|
+
var bodyHeight = bodyElem.clientHeight - (headerElem ? headerElem.clientHeight / 2 : 0);
|
|
133
|
+
if (filterHeight >= bodyHeight) {
|
|
134
|
+
maxHeight = Math.max(40, bodyHeight - (filterFootElem ? filterFootElem.offsetHeight : 0) - (filterHeadElem ? filterHeadElem.offsetHeight : 0));
|
|
135
|
+
}
|
|
136
|
+
if (column.fixed === 'left') {
|
|
137
|
+
left = targetElem.offsetLeft + targetElem.offsetParent.offsetLeft - centerWidth;
|
|
138
|
+
} else if (column.fixed === 'right') {
|
|
139
|
+
right = targetElem.offsetParent.offsetWidth - targetElem.offsetLeft + (targetElem.offsetParent.offsetParent.offsetWidth - targetElem.offsetParent.offsetLeft) - column.renderWidth - centerWidth;
|
|
140
|
+
} else {
|
|
141
|
+
left = targetElem.offsetLeft + targetElem.offsetParent.offsetLeft - centerWidth - bodyElem.scrollLeft;
|
|
142
|
+
}
|
|
143
|
+
if (left) {
|
|
144
|
+
var overflowWidth = pageX + filterWidth - centerWidth + minMargin - visibleWidth;
|
|
145
|
+
if (overflowWidth > 0) {
|
|
146
|
+
left -= overflowWidth;
|
|
147
|
+
}
|
|
148
|
+
style.left = "".concat(Math.min(maxLeft, Math.max(minMargin, left)), "px");
|
|
149
|
+
} else if (right) {
|
|
150
|
+
var _overflowWidth = pageX + filterWidth - centerWidth + minMargin - visibleWidth;
|
|
151
|
+
if (_overflowWidth > 0) {
|
|
152
|
+
right += _overflowWidth;
|
|
153
|
+
}
|
|
154
|
+
style.right = "".concat(Math.max(minMargin, right), "px");
|
|
155
|
+
}
|
|
156
|
+
filterStore.style = style;
|
|
157
|
+
filterStore.maxHeight = maxHeight;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
this.emitEvent('filter-visible', {
|
|
161
|
+
column: column,
|
|
162
|
+
field: column.field,
|
|
163
|
+
property: column.field,
|
|
164
|
+
filterList: this.getCheckedFilters(),
|
|
165
|
+
visible: filterStore.visible
|
|
166
|
+
}, evnt);
|
|
167
|
+
},
|
|
168
|
+
_getCheckedFilters: function _getCheckedFilters() {
|
|
169
|
+
var tableFullColumn = this.tableFullColumn;
|
|
170
|
+
var filterList = [];
|
|
171
|
+
tableFullColumn.forEach(function (column) {
|
|
172
|
+
var field = column.field,
|
|
173
|
+
filters = column.filters;
|
|
174
|
+
var valueList = [];
|
|
175
|
+
var dataList = [];
|
|
176
|
+
if (filters && filters.length) {
|
|
177
|
+
filters.forEach(function (item) {
|
|
178
|
+
if (item.checked) {
|
|
179
|
+
valueList.push(item.value);
|
|
180
|
+
dataList.push(item.data);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
if (valueList.length) {
|
|
184
|
+
filterList.push({
|
|
185
|
+
column: column,
|
|
186
|
+
field: field,
|
|
187
|
+
property: field,
|
|
188
|
+
values: valueList,
|
|
189
|
+
datas: dataList
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
return filterList;
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* 确认筛选
|
|
198
|
+
* 当筛选面板中的确定按钮被按下时触发
|
|
199
|
+
* @param {Event} evnt 事件
|
|
200
|
+
*/
|
|
201
|
+
confirmFilterEvent: function confirmFilterEvent(evnt) {
|
|
202
|
+
var _this2 = this;
|
|
203
|
+
var filterStore = this.filterStore,
|
|
204
|
+
filterOpts = this.filterOpts,
|
|
205
|
+
oldScrollXLoad = this.scrollXLoad,
|
|
206
|
+
oldScrollYLoad = this.scrollYLoad;
|
|
207
|
+
var column = filterStore.column;
|
|
208
|
+
var field = column.field;
|
|
209
|
+
var values = [];
|
|
210
|
+
var datas = [];
|
|
211
|
+
column.filters.forEach(function (item) {
|
|
212
|
+
if (item.checked) {
|
|
213
|
+
values.push(item.value);
|
|
214
|
+
datas.push(item.data);
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
var filterList = this.getCheckedFilters();
|
|
218
|
+
var params = {
|
|
219
|
+
$table: this,
|
|
220
|
+
$event: evnt,
|
|
221
|
+
column: column,
|
|
222
|
+
field: field,
|
|
223
|
+
property: field,
|
|
224
|
+
values: values,
|
|
225
|
+
datas: datas,
|
|
226
|
+
filters: filterList,
|
|
227
|
+
filterList: filterList
|
|
228
|
+
};
|
|
229
|
+
// 如果是服务端筛选,则跳过本地筛选处理
|
|
230
|
+
if (!filterOpts.remote) {
|
|
231
|
+
this.handleTableData(true);
|
|
232
|
+
this.checkSelectionStatus();
|
|
233
|
+
}
|
|
234
|
+
if (this.mouseConfig && this.mouseOpts.area && this.handleFilterEvent) {
|
|
235
|
+
this.handleFilterEvent(evnt, params);
|
|
236
|
+
}
|
|
237
|
+
this.emitEvent('filter-change', params, evnt);
|
|
238
|
+
this.closeFilter();
|
|
239
|
+
this.updateFooter().then(function () {
|
|
240
|
+
var scrollXLoad = _this2.scrollXLoad,
|
|
241
|
+
scrollYLoad = _this2.scrollYLoad;
|
|
242
|
+
if (oldScrollXLoad || scrollXLoad || oldScrollYLoad || scrollYLoad) {
|
|
243
|
+
if (oldScrollXLoad || scrollXLoad) {
|
|
244
|
+
_this2.updateScrollXSpace();
|
|
245
|
+
}
|
|
246
|
+
if (oldScrollYLoad || scrollYLoad) {
|
|
247
|
+
_this2.updateScrollYSpace();
|
|
248
|
+
}
|
|
249
|
+
return _this2.refreshScroll();
|
|
250
|
+
}
|
|
251
|
+
}).then(function () {
|
|
252
|
+
_this2.updateCellAreas();
|
|
253
|
+
return _this2.recalculate(true);
|
|
254
|
+
}).then(function () {
|
|
255
|
+
// 存在滚动行为未结束情况
|
|
256
|
+
setTimeout(function () {
|
|
257
|
+
return _this2.recalculate();
|
|
258
|
+
}, 50);
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
handleClearFilter: function handleClearFilter(column) {
|
|
262
|
+
if (column) {
|
|
263
|
+
var filters = column.filters,
|
|
264
|
+
filterRender = column.filterRender;
|
|
265
|
+
if (filters) {
|
|
266
|
+
var compConf = (0, _utils.isEnableConf)(filterRender) ? renderer.get(filterRender.name) : null;
|
|
267
|
+
var filterResetMethod = column.filterResetMethod || (compConf ? compConf.tableFilterResetMethod || compConf.filterResetMethod : null);
|
|
268
|
+
filters.forEach(function (item) {
|
|
269
|
+
item._checked = false;
|
|
270
|
+
item.checked = false;
|
|
271
|
+
if (!filterResetMethod) {
|
|
272
|
+
item.data = _xeUtils.default.clone(item.resetValue, true);
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
if (filterResetMethod) {
|
|
276
|
+
filterResetMethod({
|
|
277
|
+
options: filters,
|
|
278
|
+
column: column,
|
|
279
|
+
$table: this
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
* 重置筛选
|
|
287
|
+
* 当筛选面板中的重置按钮被按下时触发
|
|
288
|
+
* @param {Event} evnt 事件
|
|
289
|
+
*/
|
|
290
|
+
resetFilterEvent: function resetFilterEvent(evnt) {
|
|
291
|
+
this.handleClearFilter(this.filterStore.column);
|
|
292
|
+
this.confirmFilterEvent(evnt);
|
|
293
|
+
},
|
|
294
|
+
/**
|
|
295
|
+
* 清空指定列的筛选条件
|
|
296
|
+
* 如果为空则清空所有列的筛选条件
|
|
297
|
+
* @param {String} fieldOrColumn 列
|
|
298
|
+
*/
|
|
299
|
+
_clearFilter: function _clearFilter(fieldOrColumn) {
|
|
300
|
+
var filterStore = this.filterStore;
|
|
301
|
+
var column;
|
|
302
|
+
if (fieldOrColumn) {
|
|
303
|
+
column = (0, _util.handleFieldOrColumn)(this, fieldOrColumn);
|
|
304
|
+
if (column) {
|
|
305
|
+
this.handleClearFilter(column);
|
|
306
|
+
}
|
|
307
|
+
} else {
|
|
308
|
+
this.visibleColumn.forEach(this.handleClearFilter);
|
|
309
|
+
}
|
|
310
|
+
if (!fieldOrColumn || column !== filterStore.column) {
|
|
311
|
+
Object.assign(filterStore, {
|
|
312
|
+
isAllSelected: false,
|
|
313
|
+
isIndeterminate: false,
|
|
314
|
+
style: null,
|
|
315
|
+
options: [],
|
|
316
|
+
column: null,
|
|
317
|
+
multiple: false,
|
|
318
|
+
visible: false
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
return this.updateData();
|
|
322
|
+
},
|
|
323
|
+
_updateFilterOptionStatus: function _updateFilterOptionStatus(item, checked) {
|
|
324
|
+
item._checked = checked;
|
|
325
|
+
item.checked = checked;
|
|
326
|
+
return this.$nextTick();
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../../ui"),_util=require("../../src/util"),_dom=require("../../../ui/src/dom"),_utils=require("../../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var renderer=_ui.VxeUI.renderer,_default=exports.default={methods:{_openFilter:function(e){var t,i,l=(0,_util.handleFieldOrColumn)(this,e);return l&&l.filters?(t=this.elemStore,i=l.fixed,this.scrollToColumn(l).then(function(){var e=t["".concat(i||"main","-header-wrapper")]||t["main-header-wrapper"];e&&(e=e.querySelector(".vxe-header--column.".concat(l.id," .vxe-filter--btn")),(0,_dom.triggerEvent)(e,"click"))})):this.$nextTick()},_setFilter:function(e,t,i){e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.filters&&(e.filters=(0,_util.toFilters)(t||[])),i?this.updateData():this.$nextTick()},checkFilterOptions:function(){var e=this.filterStore;e.isAllSelected=e.options.every(function(e){return e._checked}),e.isIndeterminate=!e.isAllSelected&&e.options.some(function(e){return e._checked})},triggerFilterEvent:function(e,h,t){var d,p,i,l,r,n,m,v=this,_=this.filterStore;_.column===h&&_.visible?_.visible=!1:(d=e.target,p=e.pageX,i=h.filters,l=h.filterMultiple,r=(0,_utils.isEnableConf)(r=h.filterRender)?renderer.get(r.name):null,n=h.filterRecoverMethod||(r?r.tableFilterRecoverMethod||r.filterRecoverMethod:null),m=(0,_dom.getDomNode)().visibleWidth,Object.assign(_,{args:t,multiple:l,options:i,column:h,style:null,visible:!0}),_.options.forEach(function(e){var t=e._checked,i=e.checked;(e._checked=i)||t===i||n&&n({option:e,column:h,$table:v})}),this.checkFilterOptions(),this.initStore.filter=!0,this.$nextTick(function(){var e,t,i,l,r,n,o,s,f,a=v.$refs,c=a.tableHeader,u=a.tableBody.$el,c=c?c.$el:null;u&&(a=a.filterWrapper.$el)&&(e=a.offsetWidth,f=a.offsetHeight,t=a.querySelector(".vxe-table--filter-header"),a=a.querySelector(".vxe-table--filter-footer"),i=e/2,l=u.clientWidth-e-10,o={top:"".concat(d.offsetTop+d.offsetParent.offsetTop+d.offsetHeight,"px")},s=null,(c=u.clientHeight-(c?c.clientHeight/2:0))<=f&&(s=Math.max(40,c-(a?a.offsetHeight:0)-(t?t.offsetHeight:0))),"left"===h.fixed?r=d.offsetLeft+d.offsetParent.offsetLeft-i:"right"===h.fixed?n=d.offsetParent.offsetWidth-d.offsetLeft+(d.offsetParent.offsetParent.offsetWidth-d.offsetParent.offsetLeft)-h.renderWidth-i:r=d.offsetLeft+d.offsetParent.offsetLeft-i-u.scrollLeft,r?(0<(f=p+e-i+10-m)&&(r-=f),o.left="".concat(Math.min(l,Math.max(10,r)),"px")):n&&(0<(c=p+e-i+10-m)&&(n+=c),o.right="".concat(Math.max(10,n),"px")),_.style=o,_.maxHeight=s)})),this.emitEvent("filter-visible",{column:h,field:h.field,property:h.field,filterList:this.getCheckedFilters(),visible:_.visible},e)},_getCheckedFilters:function(){var e=this.tableFullColumn,n=[];return e.forEach(function(e){var t=e.field,i=e.filters,l=[],r=[];i&&i.length&&(i.forEach(function(e){e.checked&&(l.push(e.value),r.push(e.data))}),l.length)&&n.push({column:e,field:t,property:t,values:l,datas:r})}),n},confirmFilterEvent:function(e){var i=this,t=this.filterStore,l=this.filterOpts,r=this.scrollXLoad,n=this.scrollYLoad,t=t.column,o=t.field,s=[],f=[],a=(t.filters.forEach(function(e){e.checked&&(s.push(e.value),f.push(e.data))}),this.getCheckedFilters()),t={$table:this,$event:e,column:t,field:o,property:o,values:s,datas:f,filters:a,filterList:a};l.remote||(this.handleTableData(!0),this.checkSelectionStatus()),this.mouseConfig&&this.mouseOpts.area&&this.handleFilterEvent&&this.handleFilterEvent(e,t),this.emitEvent("filter-change",t,e),this.closeFilter(),this.updateFooter().then(function(){var e=i.scrollXLoad,t=i.scrollYLoad;if(r||e||n||t)return(r||e)&&i.updateScrollXSpace(),(n||t)&&i.updateScrollYSpace(),i.refreshScroll()}).then(function(){return i.updateCellAreas(),i.recalculate(!0)}).then(function(){setTimeout(function(){return i.recalculate()},50)})},handleClearFilter:function(e){var t,i,l;e&&(t=e.filters,i=e.filterRender,t)&&(i=(0,_utils.isEnableConf)(i)?renderer.get(i.name):null,l=e.filterResetMethod||(i?i.tableFilterResetMethod||i.filterResetMethod:null),t.forEach(function(e){e._checked=!1,e.checked=!1,l||(e.data=_xeUtils.default.clone(e.resetValue,!0))}),l)&&l({options:t,column:e,$table:this})},resetFilterEvent:function(e){this.handleClearFilter(this.filterStore.column),this.confirmFilterEvent(e)},_clearFilter:function(e){var t,i=this.filterStore;return e?(t=(0,_util.handleFieldOrColumn)(this,e))&&this.handleClearFilter(t):this.visibleColumn.forEach(this.handleClearFilter),e&&t===i.column||Object.assign(i,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),this.updateData()},_updateFilterOptionStatus:function(e,t){return e._checked=t,e.checked=t,this.$nextTick()}}};
|