vxe-table 3.8.0-beta.2 → 3.8.0-beta.4
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 +2 -2
- package/helper/vetur/attributes.json +28 -0
- package/helper/vetur/tags.json +12 -0
- package/lib/all.js +38 -28
- package/lib/all.min.js +1 -1
- package/lib/button/index.d.ts +2 -2
- package/lib/button/index.js +4 -5
- package/lib/button/index.min.js +1 -1
- package/lib/button/src/button.js +40 -19
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/src/group.js +8 -6
- package/lib/button/src/group.min.js +1 -1
- package/lib/button/style/style.css +8 -4
- package/lib/button/style/style.min.css +1 -1
- package/lib/button-group/index.d.ts +2 -2
- package/lib/button-group/index.js +4 -5
- package/lib/button-group/index.min.js +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +4 -5
- package/lib/checkbox/index.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +7 -6
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +2 -3
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox/style/style.css +18 -19
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.d.ts +2 -2
- package/lib/checkbox-group/index.js +4 -5
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/colgroup/index.d.ts +2 -2
- package/lib/colgroup/index.js +4 -5
- package/lib/colgroup/index.min.js +1 -1
- package/lib/column/index.d.ts +2 -2
- package/lib/column/index.js +4 -5
- package/lib/column/index.min.js +1 -1
- package/lib/custom/index.d.ts +4 -0
- package/lib/custom/index.js +21 -0
- package/lib/custom/index.min.js +1 -0
- package/lib/custom/src/mixin.js +100 -0
- package/lib/custom/src/mixin.min.js +1 -0
- package/lib/custom/src/panel.js +409 -0
- package/lib/custom/src/panel.min.js +1 -0
- package/lib/custom/style/index.js +1 -0
- package/lib/custom/style/style.css +294 -0
- package/lib/custom/style/style.min.css +1 -0
- package/lib/edit/index.d.ts +3 -3
- package/lib/edit/index.js +4 -5
- package/lib/edit/index.min.js +1 -1
- package/lib/edit/src/mixin.js +19 -12
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/index.d.ts +3 -3
- package/lib/export/index.js +7 -8
- package/lib/export/index.min.js +1 -1
- package/lib/export/src/export-panel.js +3 -4
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/import-panel.js +3 -4
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/mixin.js +3 -4
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/export/style/style.css +36 -36
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/index.d.ts +3 -3
- package/lib/filter/index.js +4 -5
- package/lib/filter/index.min.js +1 -1
- package/lib/filter/src/mixin.js +2 -3
- package/lib/filter/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +3 -4
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/filter/style/style.css +36 -36
- package/lib/filter/style/style.min.css +1 -1
- package/lib/form/index.d.ts +2 -2
- package/lib/form/index.js +4 -5
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-config-item.js +1 -2
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +2 -3
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +2 -3
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +11 -12
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +6 -3
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +6 -5
- package/lib/form/src/util.min.js +1 -1
- package/lib/form-gather/index.d.ts +2 -2
- package/lib/form-gather/index.js +4 -5
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-item/index.d.ts +2 -2
- package/lib/form-item/index.js +4 -5
- package/lib/form-item/index.min.js +1 -1
- package/lib/grid/index.d.ts +2 -2
- package/lib/grid/index.js +4 -5
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +12 -12
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/icon/index.d.ts +2 -2
- package/lib/icon/index.js +4 -5
- package/lib/icon/index.min.js +1 -1
- package/lib/icon/src/icon.js +2 -3
- package/lib/icon/src/icon.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.common.js +4 -5
- package/lib/index.common.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +3530 -3578
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.d.ts +2 -2
- package/lib/input/index.js +4 -5
- package/lib/input/index.min.js +1 -1
- package/lib/input/src/input.js +12 -13
- package/lib/input/src/input.min.js +1 -1
- package/lib/keyboard/index.d.ts +3 -3
- package/lib/keyboard/index.js +4 -5
- package/lib/keyboard/index.min.js +1 -1
- package/lib/keyboard/src/mixin.js +5 -6
- package/lib/keyboard/src/mixin.min.js +1 -1
- package/lib/list/index.d.ts +2 -2
- package/lib/list/index.js +4 -5
- package/lib/list/index.min.js +1 -1
- package/lib/list/src/list.js +2 -3
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/loading/index.js +4 -5
- package/lib/loading/index.min.js +1 -1
- package/lib/loading/src/loading.js +2 -3
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/locale/lang/en-US.js +8 -3
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +7 -2
- package/lib/locale/lang/es-ES.js +8 -3
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +7 -2
- package/lib/locale/lang/ja-JP.js +8 -3
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +7 -2
- package/lib/locale/lang/pt-BR.js +8 -3
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +7 -2
- package/lib/locale/lang/zh-CN.js +8 -3
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +7 -2
- package/lib/locale/lang/zh-HK.js +1 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -2
- package/lib/locale/lang/zh-MO.js +1 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -2
- package/lib/locale/lang/zh-TC.js +8 -3
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -2
- package/lib/locale/lang/zh-TW.js +1 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -2
- package/lib/menu/index.d.ts +3 -3
- package/lib/menu/index.js +4 -5
- package/lib/menu/index.min.js +1 -1
- package/lib/menu/src/mixin.js +5 -6
- package/lib/menu/src/mixin.min.js +1 -1
- package/lib/menu/src/panel.js +3 -4
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/mixins/size.js +2 -3
- package/lib/mixins/size.min.js +1 -1
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +9 -10
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +13 -14
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/optgroup/index.d.ts +2 -2
- package/lib/optgroup/index.js +4 -5
- package/lib/optgroup/index.min.js +1 -1
- package/lib/option/index.d.ts +2 -2
- package/lib/option/index.js +4 -5
- package/lib/option/index.min.js +1 -1
- package/lib/pager/index.d.ts +2 -2
- package/lib/pager/index.js +4 -5
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +10 -9
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pulldown/index.d.ts +2 -2
- package/lib/pulldown/index.js +4 -5
- package/lib/pulldown/index.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +8 -7
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +4 -5
- package/lib/radio/index.min.js +1 -1
- package/lib/radio/src/button.js +7 -6
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/group.js +6 -4
- package/lib/radio/src/group.min.js +1 -1
- package/lib/radio/src/radio.js +7 -6
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/radio/style/style.css +20 -23
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.d.ts +2 -2
- package/lib/radio-button/index.js +4 -5
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-group/index.d.ts +2 -2
- package/lib/radio-group/index.js +4 -5
- package/lib/radio-group/index.min.js +1 -1
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +4 -5
- package/lib/select/index.min.js +1 -1
- package/lib/select/src/optgroup.js +2 -3
- package/lib/select/src/optgroup.min.js +1 -1
- package/lib/select/src/option.js +2 -3
- package/lib/select/src/option.min.js +1 -1
- package/lib/select/src/select.js +11 -12
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/src/util.js +5 -3
- package/lib/select/src/util.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +4 -5
- package/lib/switch/index.min.js +1 -1
- package/lib/switch/src/switch.js +7 -6
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table/index.d.ts +2 -2
- package/lib/table/index.js +4 -5
- package/lib/table/index.min.js +1 -1
- package/lib/table/src/body.js +12 -11
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +14 -12
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +2 -3
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +7 -6
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +7 -6
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/group.js +2 -3
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/header.js +9 -8
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +44 -12
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +36 -14
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -3
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +73 -81
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.d.ts +2 -2
- package/lib/textarea/index.js +4 -5
- package/lib/textarea/index.min.js +1 -1
- package/lib/textarea/src/textarea.js +7 -6
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/index.d.ts +2 -2
- package/lib/toolbar/index.js +4 -5
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +106 -360
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +0 -194
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +3 -6
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/event.js +3 -6
- package/lib/tools/event.min.js +1 -1
- package/lib/tools/log.js +3 -5
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/resize.js +5 -3
- package/lib/tools/resize.min.js +1 -1
- package/lib/tools/utils.js +3 -5
- package/lib/tools/utils.min.js +1 -1
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +4 -5
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +7 -6
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/v-x-e-table/index.js +12 -16
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +6 -5
- package/lib/v-x-e-table/src/commands.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +8 -14
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/formats.js +6 -5
- package/lib/v-x-e-table/src/formats.min.js +1 -1
- package/lib/v-x-e-table/src/interceptor.js +2 -3
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/menus.js +6 -5
- package/lib/v-x-e-table/src/menus.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +10 -9
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +6 -5
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/v-x-e-table/src/validators.js +1 -2
- package/lib/v-x-e-table/src/validators.min.js +1 -1
- package/lib/validator/index.d.ts +3 -3
- package/lib/validator/index.js +4 -5
- package/lib/validator/index.min.js +1 -1
- package/lib/validator/src/mixin.js +8 -7
- package/lib/validator/src/mixin.min.js +1 -1
- package/lib/vxe-button/index.d.ts +2 -2
- package/lib/vxe-button/index.js +4 -5
- package/lib/vxe-button/index.min.js +1 -1
- package/lib/vxe-button/style/style.css +8 -4
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-button-group/index.d.ts +2 -2
- package/lib/vxe-button-group/index.js +4 -5
- package/lib/vxe-button-group/index.min.js +1 -1
- package/lib/vxe-checkbox/index.d.ts +2 -2
- package/lib/vxe-checkbox/index.js +4 -5
- package/lib/vxe-checkbox/index.min.js +1 -1
- package/lib/vxe-checkbox/style/style.css +18 -19
- package/lib/vxe-checkbox/style/style.min.css +1 -1
- package/lib/vxe-checkbox-group/index.d.ts +2 -2
- package/lib/vxe-checkbox-group/index.js +4 -5
- package/lib/vxe-checkbox-group/index.min.js +1 -1
- package/lib/vxe-colgroup/index.d.ts +2 -2
- package/lib/vxe-colgroup/index.js +4 -5
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.d.ts +2 -2
- package/lib/vxe-column/index.js +4 -5
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-form/index.d.ts +2 -2
- package/lib/vxe-form/index.js +4 -5
- package/lib/vxe-form/index.min.js +1 -1
- package/lib/vxe-form-gather/index.d.ts +2 -2
- package/lib/vxe-form-gather/index.js +4 -5
- package/lib/vxe-form-gather/index.min.js +1 -1
- package/lib/vxe-form-item/index.d.ts +2 -2
- package/lib/vxe-form-item/index.js +4 -5
- package/lib/vxe-form-item/index.min.js +1 -1
- package/lib/vxe-grid/index.d.ts +2 -2
- package/lib/vxe-grid/index.js +4 -5
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-icon/index.d.ts +2 -2
- package/lib/vxe-icon/index.js +4 -5
- package/lib/vxe-icon/index.min.js +1 -1
- package/lib/vxe-input/index.d.ts +2 -2
- package/lib/vxe-input/index.js +4 -5
- package/lib/vxe-input/index.min.js +1 -1
- package/lib/vxe-list/index.d.ts +2 -2
- package/lib/vxe-list/index.js +4 -5
- package/lib/vxe-list/index.min.js +1 -1
- package/lib/vxe-loading/index.d.ts +2 -2
- package/lib/vxe-loading/index.js +4 -5
- package/lib/vxe-loading/index.min.js +1 -1
- package/lib/vxe-modal/index.d.ts +2 -2
- package/lib/vxe-modal/index.js +4 -5
- package/lib/vxe-modal/index.min.js +1 -1
- package/lib/vxe-optgroup/index.d.ts +2 -2
- package/lib/vxe-optgroup/index.js +4 -5
- package/lib/vxe-optgroup/index.min.js +1 -1
- package/lib/vxe-option/index.d.ts +2 -2
- package/lib/vxe-option/index.js +4 -5
- package/lib/vxe-option/index.min.js +1 -1
- package/lib/vxe-pager/index.d.ts +2 -2
- package/lib/vxe-pager/index.js +4 -5
- package/lib/vxe-pager/index.min.js +1 -1
- package/lib/vxe-pulldown/index.d.ts +2 -2
- package/lib/vxe-pulldown/index.js +4 -5
- package/lib/vxe-pulldown/index.min.js +1 -1
- package/lib/vxe-radio/index.d.ts +2 -2
- package/lib/vxe-radio/index.js +4 -5
- package/lib/vxe-radio/index.min.js +1 -1
- package/lib/vxe-radio/style/style.css +20 -23
- package/lib/vxe-radio/style/style.min.css +1 -1
- package/lib/vxe-radio-button/index.d.ts +2 -2
- package/lib/vxe-radio-button/index.js +4 -5
- package/lib/vxe-radio-button/index.min.js +1 -1
- package/lib/vxe-radio-group/index.d.ts +2 -2
- package/lib/vxe-radio-group/index.js +4 -5
- package/lib/vxe-radio-group/index.min.js +1 -1
- package/lib/vxe-select/index.d.ts +2 -2
- package/lib/vxe-select/index.js +4 -5
- package/lib/vxe-select/index.min.js +1 -1
- package/lib/vxe-switch/index.js +4 -5
- package/lib/vxe-switch/index.min.js +1 -1
- package/lib/vxe-table/index.d.ts +2 -2
- package/lib/vxe-table/index.js +4 -5
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +73 -81
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-custom-module/index.d.ts +4 -0
- package/lib/vxe-table-custom-module/index.js +23 -0
- package/lib/vxe-table-custom-module/index.min.js +1 -0
- package/lib/vxe-table-custom-module/style/index.js +1 -0
- package/lib/vxe-table-custom-module/style/style.css +294 -0
- package/lib/vxe-table-custom-module/style/style.min.css +1 -0
- package/lib/vxe-table-edit-module/index.d.ts +3 -3
- package/lib/vxe-table-edit-module/index.js +4 -5
- package/lib/vxe-table-edit-module/index.min.js +1 -1
- package/lib/vxe-table-export-module/index.d.ts +3 -3
- package/lib/vxe-table-export-module/index.js +4 -5
- package/lib/vxe-table-export-module/index.min.js +1 -1
- package/lib/vxe-table-export-module/style/style.css +36 -36
- package/lib/vxe-table-export-module/style/style.min.css +1 -1
- package/lib/vxe-table-filter-module/index.d.ts +3 -3
- package/lib/vxe-table-filter-module/index.js +4 -5
- package/lib/vxe-table-filter-module/index.min.js +1 -1
- package/lib/vxe-table-filter-module/style/style.css +36 -36
- package/lib/vxe-table-filter-module/style/style.min.css +1 -1
- package/lib/vxe-table-keyboard-module/index.d.ts +3 -3
- package/lib/vxe-table-keyboard-module/index.js +4 -5
- package/lib/vxe-table-keyboard-module/index.min.js +1 -1
- package/lib/vxe-table-menu-module/index.d.ts +3 -3
- package/lib/vxe-table-menu-module/index.js +4 -5
- package/lib/vxe-table-menu-module/index.min.js +1 -1
- package/lib/vxe-table-validator-module/index.d.ts +3 -3
- package/lib/vxe-table-validator-module/index.js +4 -5
- package/lib/vxe-table-validator-module/index.min.js +1 -1
- package/lib/vxe-textarea/index.d.ts +2 -2
- package/lib/vxe-textarea/index.js +4 -5
- package/lib/vxe-textarea/index.min.js +1 -1
- package/lib/vxe-toolbar/index.d.ts +2 -2
- package/lib/vxe-toolbar/index.js +4 -5
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-toolbar/style/style.css +0 -194
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/lib/vxe-tooltip/index.d.ts +2 -2
- package/lib/vxe-tooltip/index.js +4 -5
- package/lib/vxe-tooltip/index.min.js +1 -1
- package/package.json +16 -19
- package/packages/all.js +11 -12
- package/packages/button/index.d.ts +2 -2
- package/packages/button/index.js +6 -4
- package/packages/button/src/button.js +21 -9
- package/packages/button-group/index.d.ts +2 -2
- package/packages/button-group/index.js +6 -4
- package/packages/checkbox/index.d.ts +2 -2
- package/packages/checkbox/index.js +6 -4
- package/packages/checkbox-group/index.d.ts +2 -2
- package/packages/checkbox-group/index.js +6 -4
- package/packages/colgroup/index.d.ts +2 -2
- package/packages/colgroup/index.js +7 -5
- package/packages/column/index.d.ts +2 -2
- package/packages/column/index.js +7 -5
- package/packages/custom/index.d.ts +4 -0
- package/packages/custom/index.js +17 -0
- package/packages/custom/src/mixin.js +74 -0
- package/packages/custom/src/panel.js +430 -0
- package/packages/edit/index.d.ts +3 -3
- package/packages/edit/index.js +4 -2
- package/packages/edit/src/mixin.js +4 -0
- package/packages/export/index.d.ts +3 -3
- package/packages/export/index.js +4 -2
- package/packages/export/src/export-panel.js +1 -1
- package/packages/export/src/import-panel.js +1 -1
- package/packages/filter/index.d.ts +3 -3
- package/packages/filter/index.js +7 -5
- package/packages/filter/src/panel.js +1 -1
- package/packages/form/index.d.ts +2 -2
- package/packages/form/index.js +6 -4
- package/packages/form-gather/index.d.ts +2 -2
- package/packages/form-gather/index.js +6 -4
- package/packages/form-item/index.d.ts +2 -2
- package/packages/form-item/index.js +6 -4
- package/packages/grid/index.d.ts +2 -2
- package/packages/grid/index.js +8 -6
- package/packages/icon/index.d.ts +2 -2
- package/packages/icon/index.js +6 -4
- package/packages/input/index.d.ts +2 -2
- package/packages/input/index.js +6 -4
- package/packages/keyboard/index.d.ts +3 -3
- package/packages/keyboard/index.js +4 -2
- package/packages/list/index.d.ts +2 -2
- package/packages/list/index.js +6 -4
- package/packages/loading/index.d.ts +2 -2
- package/packages/loading/index.js +5 -3
- package/packages/locale/lang/en-US.js +6 -0
- package/packages/locale/lang/es-ES.js +6 -0
- package/packages/locale/lang/ja-JP.js +6 -0
- package/packages/locale/lang/pt-BR.js +6 -0
- package/packages/locale/lang/zh-CN.js +6 -0
- package/packages/locale/lang/zh-TC.js +6 -0
- package/packages/menu/index.d.ts +3 -3
- package/packages/menu/index.js +4 -2
- package/packages/menu/src/panel.js +1 -1
- package/packages/modal/index.d.ts +2 -2
- package/packages/modal/index.js +8 -5
- package/packages/modal/src/modal.js +1 -1
- package/packages/optgroup/index.d.ts +2 -2
- package/packages/optgroup/index.js +6 -4
- package/packages/option/index.d.ts +2 -2
- package/packages/option/index.js +6 -4
- package/packages/pager/index.d.ts +2 -2
- package/packages/pager/index.js +6 -4
- package/packages/pulldown/index.d.ts +2 -2
- package/packages/pulldown/index.js +6 -4
- package/packages/radio/index.d.ts +2 -2
- package/packages/radio/index.js +6 -4
- package/packages/radio/src/group.js +4 -2
- package/packages/radio-button/index.d.ts +2 -2
- package/packages/radio-button/index.js +6 -4
- package/packages/radio-group/index.d.ts +2 -2
- package/packages/radio-group/index.js +6 -4
- package/packages/select/index.d.ts +2 -2
- package/packages/select/index.js +12 -10
- package/packages/select/src/select.js +3 -3
- package/packages/switch/index.js +6 -4
- package/packages/switch/src/switch.js +1 -1
- package/packages/table/index.d.ts +2 -2
- package/packages/table/index.js +11 -9
- package/packages/table/src/body.js +1 -1
- package/packages/table/src/cell.js +4 -2
- package/packages/table/src/columnInfo.js +2 -2
- package/packages/table/src/methods.js +31 -4
- package/packages/table/src/table.js +27 -7
- package/packages/textarea/index.d.ts +2 -2
- package/packages/textarea/index.js +6 -4
- package/packages/toolbar/index.d.ts +2 -2
- package/packages/toolbar/index.js +6 -4
- package/packages/toolbar/src/toolbar.js +106 -354
- package/packages/tools/dom.js +2 -1
- package/packages/tooltip/index.d.ts +2 -2
- package/packages/tooltip/index.js +6 -4
- package/packages/v-x-e-table/src/conf.js +4 -2
- package/packages/validator/index.d.ts +3 -3
- package/packages/validator/index.js +4 -2
- package/styles/all.scss +3 -1
- package/styles/button.scss +4 -1
- package/styles/checkbox.scss +1 -2
- package/styles/custom.scss +168 -0
- package/styles/export.scss +2 -2
- package/styles/filter.scss +2 -2
- package/styles/helpers/mixin.scss +76 -0
- package/styles/icon.scss +787 -787
- package/styles/modules.scss +2 -1
- package/styles/radio.scss +1 -2
- package/styles/table.scss +2 -8
- package/styles/toolbar.scss +1 -112
- package/types/all.d.ts +3 -6
- package/types/button-group.d.ts +3 -1
- package/types/button.d.ts +3 -1
- package/types/checkbox-group.d.ts +3 -1
- package/types/checkbox.d.ts +3 -1
- package/types/colgroup.d.ts +5 -4
- package/types/column.d.ts +5 -4
- package/types/form-gather.d.ts +3 -1
- package/types/form-item.d.ts +2 -1
- package/types/form.d.ts +2 -1
- package/types/grid.d.ts +2 -1
- package/types/icon.d.ts +2 -1
- package/types/input.d.ts +2 -1
- package/types/list.d.ts +2 -1
- package/types/loading.d.ts +1 -1
- package/types/modal.d.ts +2 -1
- package/types/module/custom.d.ts +11 -0
- package/types/{edit.d.ts → module/edit.d.ts} +8 -3
- package/types/{export.d.ts → module/export.d.ts} +11 -6
- package/types/{filter.d.ts → module/filter.d.ts} +9 -4
- package/types/module/index.d.ts +7 -0
- package/types/module/keyboard.d.ts +11 -0
- package/types/{menu.d.ts → module/menu.d.ts} +8 -3
- package/types/{validator.d.ts → module/validator.d.ts} +9 -4
- package/types/optgroup.d.ts +2 -1
- package/types/option.d.ts +2 -1
- package/types/pager.d.ts +2 -1
- package/types/pulldown.d.ts +2 -1
- package/types/radio-button.d.ts +2 -1
- package/types/radio-group.d.ts +2 -1
- package/types/radio.d.ts +2 -1
- package/types/select.d.ts +2 -1
- package/types/switch.d.ts +2 -1
- package/types/table.d.ts +7 -5
- package/types/textarea.d.ts +2 -1
- package/types/toolbar.d.ts +2 -1
- package/types/tooltip.d.ts +2 -1
- package/types/v-x-e-table/index.d.ts +1 -1
- package/types/v-x-e-table/interceptor.d.ts +2 -2
- package/types/v-x-e-table/menus.d.ts +1 -1
- package/types/v-x-e-table/renderer.d.ts +3 -3
- package/types/v-x-e-table/validators.d.ts +1 -1
- package/lib/footer/index.d.ts +0 -4
- package/lib/footer/index.js +0 -16
- package/lib/footer/index.min.js +0 -1
- package/lib/header/index.d.ts +0 -4
- package/lib/header/index.js +0 -16
- package/lib/header/index.min.js +0 -1
- package/packages/footer/index.d.ts +0 -4
- package/packages/footer/index.js +0 -9
- package/packages/header/index.d.ts +0 -4
- package/packages/header/index.js +0 -9
- package/styles/base/checked.scss +0 -75
- package/types/footer.d.ts +0 -47
- package/types/header.d.ts +0 -34
- package/types/keyboard.d.ts +0 -6
- package/types/vxe-table/index.d.ts +0 -4
- /package/lib/icon/style/{iconfont.1713239799481.ttf → iconfont.1713750567034.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1713239799481.woff → iconfont.1713750567034.woff} +0 -0
- /package/lib/icon/style/{iconfont.1713239799481.woff2 → iconfont.1713750567034.woff2} +0 -0
- /package/lib/{iconfont.1713239799481.ttf → iconfont.1713750567034.ttf} +0 -0
- /package/lib/{iconfont.1713239799481.woff → iconfont.1713750567034.woff} +0 -0
- /package/lib/{iconfont.1713239799481.woff2 → iconfont.1713750567034.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -8,8 +8,8 @@ var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
|
8
8
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
9
9
|
var _vXETable = _interopRequireDefault(require("../../v-x-e-table"));
|
|
10
10
|
var _body = _interopRequireDefault(require("./body"));
|
|
11
|
-
var _header = _interopRequireDefault(require("
|
|
12
|
-
var _footer = _interopRequireDefault(require("
|
|
11
|
+
var _header = _interopRequireDefault(require("./header"));
|
|
12
|
+
var _footer = _interopRequireDefault(require("./footer"));
|
|
13
13
|
var _size = _interopRequireDefault(require("../../mixins/size"));
|
|
14
14
|
var _utils = require("../../tools/utils");
|
|
15
15
|
var _resize = require("../../tools/resize");
|
|
@@ -19,9 +19,12 @@ var _methods = _interopRequireDefault(require("./methods"));
|
|
|
19
19
|
var _log = require("../../tools/log");
|
|
20
20
|
var _index = _interopRequireDefault(require("../../loading/index"));
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
function
|
|
22
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
23
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
28
|
/**
|
|
26
29
|
* 渲染浮固定列
|
|
27
30
|
* 分别渲染左边固定列和右边固定列
|
|
@@ -100,7 +103,7 @@ function handleUupdateResize(_vm) {
|
|
|
100
103
|
_vm.recalculate();
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
|
-
var _default2 = {
|
|
106
|
+
var _default2 = exports.default = {
|
|
104
107
|
name: 'VxeTable',
|
|
105
108
|
mixins: [_size.default],
|
|
106
109
|
props: {
|
|
@@ -479,6 +482,16 @@ var _default2 = {
|
|
|
479
482
|
pendingRowMaps: {},
|
|
480
483
|
// 已标记的行
|
|
481
484
|
pendingRowList: [],
|
|
485
|
+
// 自定义列相关的信息
|
|
486
|
+
customStore: {
|
|
487
|
+
btnEl: null,
|
|
488
|
+
isAll: false,
|
|
489
|
+
isIndeterminate: false,
|
|
490
|
+
activeBtn: false,
|
|
491
|
+
activeWrapper: false,
|
|
492
|
+
visible: false,
|
|
493
|
+
maxHeight: 0
|
|
494
|
+
},
|
|
482
495
|
// 当前选中的筛选列
|
|
483
496
|
filterStore: {
|
|
484
497
|
isAllSelected: false,
|
|
@@ -1230,6 +1243,7 @@ var _default2 = {
|
|
|
1230
1243
|
initStore = this.initStore,
|
|
1231
1244
|
columnStore = this.columnStore,
|
|
1232
1245
|
filterStore = this.filterStore,
|
|
1246
|
+
customStore = this.customStore,
|
|
1233
1247
|
ctxMenuStore = this.ctxMenuStore,
|
|
1234
1248
|
ctxMenuOpts = this.ctxMenuOpts,
|
|
1235
1249
|
footerTableData = this.footerTableData,
|
|
@@ -1241,7 +1255,7 @@ var _default2 = {
|
|
|
1241
1255
|
var leftList = columnStore.leftList,
|
|
1242
1256
|
rightList = columnStore.rightList;
|
|
1243
1257
|
return h('div', {
|
|
1244
|
-
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules),
|
|
1258
|
+
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "vaild-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && _conf.default.cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'is--header', showHeader), 'is--footer', showFooter), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--round', this.round), 'is--stripe', !treeConfig && stripe), 'is--loading', loading), 'is--empty', !loading && !tableData.length), 'is--scroll-y', overflowY), _defineProperty(_defineProperty(_defineProperty(_ref, 'is--scroll-x', overflowX), 'is--virtual-x', scrollXLoad), 'is--virtual-y', scrollYLoad))],
|
|
1245
1259
|
on: {
|
|
1246
1260
|
keydown: this.keydownEvent
|
|
1247
1261
|
}
|
|
@@ -1283,7 +1297,7 @@ var _default2 = {
|
|
|
1283
1297
|
/**
|
|
1284
1298
|
* 表尾
|
|
1285
1299
|
*/
|
|
1286
|
-
showFooter ? h(
|
|
1300
|
+
showFooter ? h(_footer.default, {
|
|
1287
1301
|
ref: 'tableFooter',
|
|
1288
1302
|
props: {
|
|
1289
1303
|
footerTableData: footerTableData,
|
|
@@ -1337,10 +1351,19 @@ var _default2 = {
|
|
|
1337
1351
|
text: loadingOpts.text
|
|
1338
1352
|
}
|
|
1339
1353
|
}, this.callSlot($scopedSlots.loading, {}, h)),
|
|
1354
|
+
/**
|
|
1355
|
+
* 自定义列
|
|
1356
|
+
*/
|
|
1357
|
+
h('vxe-table-custom-panel', {
|
|
1358
|
+
ref: 'customWrapper',
|
|
1359
|
+
props: {
|
|
1360
|
+
customStore: customStore
|
|
1361
|
+
}
|
|
1362
|
+
}),
|
|
1340
1363
|
/**
|
|
1341
1364
|
* 筛选
|
|
1342
1365
|
*/
|
|
1343
|
-
initStore.filter ? h('vxe-table-filter', {
|
|
1366
|
+
initStore.filter ? h('vxe-table-filter-panel', {
|
|
1344
1367
|
ref: 'filterWrapper',
|
|
1345
1368
|
props: {
|
|
1346
1369
|
filterStore: filterStore
|
|
@@ -1349,7 +1372,7 @@ var _default2 = {
|
|
|
1349
1372
|
/**
|
|
1350
1373
|
* 导入
|
|
1351
1374
|
*/
|
|
1352
|
-
initStore.import && this.importConfig ? h('vxe-import-panel', {
|
|
1375
|
+
initStore.import && this.importConfig ? h('vxe-table-import-panel', {
|
|
1353
1376
|
props: {
|
|
1354
1377
|
defaultOptions: this.importParams,
|
|
1355
1378
|
storeData: this.importStore
|
|
@@ -1358,7 +1381,7 @@ var _default2 = {
|
|
|
1358
1381
|
/**
|
|
1359
1382
|
* 导出/打印
|
|
1360
1383
|
*/
|
|
1361
|
-
initStore.export && (this.exportConfig || this.printConfig) ? h('vxe-export-panel', {
|
|
1384
|
+
initStore.export && (this.exportConfig || this.printConfig) ? h('vxe-table-export-panel', {
|
|
1362
1385
|
props: {
|
|
1363
1386
|
defaultOptions: this.exportParams,
|
|
1364
1387
|
storeData: this.exportStore
|
|
@@ -1367,7 +1390,7 @@ var _default2 = {
|
|
|
1367
1390
|
/**
|
|
1368
1391
|
* 快捷菜单
|
|
1369
1392
|
*/
|
|
1370
|
-
ctxMenuStore.visible && this.isCtxMenu ? h('vxe-table-
|
|
1393
|
+
ctxMenuStore.visible && this.isCtxMenu ? h('vxe-table-menu-panel', {
|
|
1371
1394
|
ref: 'ctxWrapper',
|
|
1372
1395
|
props: {
|
|
1373
1396
|
ctxMenuStore: ctxMenuStore,
|
|
@@ -1403,5 +1426,4 @@ var _default2 = {
|
|
|
1403
1426
|
}) : _e()]);
|
|
1404
1427
|
},
|
|
1405
1428
|
methods: _methods.default
|
|
1406
|
-
};
|
|
1407
|
-
exports.default = _default2;
|
|
1429
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_body=_interopRequireDefault(require("./body")),_header=_interopRequireDefault(require("../../header")),_footer=_interopRequireDefault(require("../../footer")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=require("../../tools/utils"),_resize=require("../../tools/resize"),_event=require("../../tools/event"),_vn=require("../../tools/vn"),_methods=_interopRequireDefault(require("./methods")),_log=require("../../tools/log"),_index=_interopRequireDefault(require("../../loading/index"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function renderFixed(e,t,o){var n=t._e,i=t.tableData,r=t.tableColumn,l=t.tableGroupColumn,s=t.vSize,a=t.showHeader,u=t.showFooter,f=t.columnStore,t=t.footerTableData,f=f["".concat(o,"List")];return e("div",{class:"vxe-table--fixed-".concat(o,"-wrapper"),ref:"".concat(o,"Container")},[a?e(_header.default,{props:{fixedType:o,tableData:i,tableColumn:r,tableGroupColumn:l,size:s,fixedColumn:f},ref:"".concat(o,"Header")}):n(),e(_body.default,{props:{fixedType:o,tableData:i,tableColumn:r,fixedColumn:f,size:s},ref:"".concat(o,"Body")}),u?e(_footer.default,{props:{footerTableData:t,tableColumn:r,fixedColumn:f,fixedType:o,size:s},ref:"".concat(o,"Footer")}):n()])}function renderEmptyContenet(e,t){var o=t.$scopedSlots,n=t.emptyOpts,i={$table:t};return o.empty?o.empty.call(t,i,e):(o=(o=n.name?_vXETable.default.renderer.get(n.name):null)?o.renderEmpty:null)?(0,_vn.getSlotVNs)(o.call(t,e,n,i)):(0,_utils.getFuncText)(t.emptyText)||_conf.default.i18n("vxe.table.emptyText")}function handleUupdateResize(e){var t=e.$el;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}var _default2={name:"VxeTable",mixins:[_size.default],props:{id:String,data:Array,height:[Number,String],minHeight:{type:[Number,String],default:function(){return _conf.default.table.minHeight}},maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return _conf.default.table.resizable}},stripe:{type:Boolean,default:function(){return _conf.default.table.stripe}},border:{type:[Boolean,String],default:function(){return _conf.default.table.border}},round:{type:Boolean,default:function(){return _conf.default.table.round}},size:{type:String,default:function(){return _conf.default.table.size||_conf.default.size}},fit:{type:Boolean,default:function(){return _conf.default.table.fit}},loading:Boolean,align:{type:String,default:function(){return _conf.default.table.align}},headerAlign:{type:String,default:function(){return _conf.default.table.headerAlign}},footerAlign:{type:String,default:function(){return _conf.default.table.footerAlign}},showHeader:{type:Boolean,default:function(){return _conf.default.table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return _conf.default.table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return _conf.default.table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return _conf.default.table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return _conf.default.table.emptyText}},keepSource:{type:Boolean,default:function(){return _conf.default.table.keepSource}},autoResize:{type:Boolean,default:function(){return _conf.default.table.autoResize}},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,rowConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return _conf.default.table.animat}},delayHover:{type:Number,default:function(){return _conf.default.table.delayHover}},params:Object},provide:function(){return{$xetable:this,xecolgroup:null}},inject:{$xegrid:{default:null}},data:function(){return{tId:"".concat(_xeUtils.default.uniqueId()),staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectCheckboxMaps:{},currentRow:null,currentColumn:null,selectRadioRow:null,footerTableData:[],expandColumn:null,hasFixedColumn:!1,treeNodeColumn:null,rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},treeIndeterminateMaps:{},mergeList:[],mergeFooterList:[],initStore:{filter:!1,import:!1,export:!1},upDataFlag:0,reColumnFlag:0,pendingRowMaps:{},pendingRowList:[],filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},insertList:[],insertMaps:{},removeList:[],removeMaps:{}},tooltipStore:{row:null,column:null,visible:!1,currOpts:null},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasTree:!1,hasMerge:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1}}},computed:{validOpts:function(){return Object.assign({message:"default"},_conf.default.table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},_conf.default.table.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},_conf.default.table.scrollY,this.scrollY)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},_conf.default.table.columnConfig,this.columnConfig)},rowOpts:function(){return Object.assign({},_conf.default.table.rowConfig,this.rowConfig)},resizeOpts:function(){return Object.assign({},_conf.default.table.resizeConfig,this.resizeConfig)},resizableOpts:function(){return Object.assign({},_conf.default.table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},_conf.default.table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},_conf.default.table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},_conf.default.table.checkboxConfig,this.checkboxConfig)},tooltipOpts:function(){return Object.assign({},_conf.default.tooltip,_conf.default.table.tooltipConfig,this.tooltipConfig)},tipConfig:function(){return _objectSpread(_objectSpread({},this.tooltipOpts),this.tooltipStore.currOpts)},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},_conf.default.table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},_conf.default.table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},_conf.default.table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},_conf.default.table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},_conf.default.table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},_conf.default.table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},_conf.default.table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},_conf.default.table.fnrConfig,this.fnrConfig)},hasTip:function(){return _vXETable.default._tooltip},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return!(!this.contextMenu&&!this.menuConfig||!(0,_utils.isEnableConf)(this.ctxMenuOpts)||!(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length))},ctxMenuOpts:function(){return Object.assign({},_conf.default.table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var t=[];return this.ctxMenuStore.list.forEach(function(e){e.forEach(function(e){t.push(e)})}),t},exportOpts:function(){return Object.assign({},_conf.default.table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},_conf.default.table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},_conf.default.table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},_conf.default.table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},_conf.default.table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},_conf.default.table.emptyRender,this.emptyRender)},loadingOpts:function(){return Object.assign({},_conf.default.table.loadingConfig,this.loadingConfig)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts:function(){return Object.assign({},_conf.default.table.customConfig,this.customConfig)},fixedColumnSize:function(){var e=this.tableFullColumn,t=0;return e.forEach(function(e){e.fixed&&t++}),t},isMaxFixedColumn:function(){var e=this.columnOpts.maxFixedSize;return!!e&&this.fixedColumnSize>=e},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=this.tableData,o=(this.treeConfig,this.checkboxOpts),n=o.strict,i=o.checkMethod;return!!n&&(!t.length&&!e.length||!!i&&e.every(function(e){return!i({row:e})}))}},watch:{data:function(e){var t=this,o=this.inited,n=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,n||t.handleLoadDefaults(),o||t.handleInitDefaults(),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&(0,_log.warnLog)("vxe.error.scrollErrProp",["column.type=expand"]),t.recalculate()})},staticColumns:function(e){this.handleColumn(e)},tableColumn:function(){this.analyColumnWidth()},upDataFlag:function(){var e=this;this.$nextTick().then(function(){return e.updateData()})},reColumnFlag:function(){var e=this;this.$nextTick().then(function(){return e.refreshColumn()})},showHeader:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},showFooter:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},height:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},maxHeight:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},syncResize:function(e){var t=this;e&&(handleUupdateResize(this),this.$nextTick(function(){handleUupdateResize(t),setTimeout(function(){return handleUupdateResize(t)})}))},mergeCells:function(e){var t=this;this.clearMergeCells(),this.$nextTick(function(){return t.setMergeCells(e)})},mergeFooterItems:function(e){var t=this;this.clearMergeFooterItems(),this.$nextTick(function(){return t.setMergeFooterItems(e)})}},created:function(){var e=this,t=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],afterFullRowMaps:{},collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),o=t.scrollXStore,n=t.sYOpts,i=t.scrollYStore,r=t.data,l=t.editOpts,s=t.treeOpts,a=t.treeConfig,u=t.showOverflow,t=t.rowOpts;if("development"===process.env.NODE_ENV&&(this.rowId||t.keyField||!(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)||(0,_log.warnLog)("vxe.error.reqProp",["row-config.keyField"]),this.editConfig&&l.showStatus&&!this.keepSource&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),!a||!s.showLine&&!s.line||(this.rowKey||t.useKey)&&u||(0,_log.warnLog)("vxe.error.reqProp",["row-config.useKey | show-overflow"]),!this.showFooter||this.footerMethod||this.footerData||(0,_log.warnLog)("vxe.error.reqProp",["footer-data | footer-method"]),a&&this.stripe&&(0,_log.warnLog)("vxe.error.noTree",["stripe"]),this.tooltipOpts.enabled&&(0,_log.warnLog)("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),l=this.exportConfig,t=this.exportOpts,u=this.importConfig,a=this.importOpts,u&&a.types&&!a.importMethod&&!_xeUtils.default.includeArrays(_vXETable.default.globalConfs.importTypes,a.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(a.types.join(",")),a.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.globalConfs.importTypes,e)}).join(",")||_vXETable.default.globalConfs.importTypes.join(",")]),l)&&t.types&&!t.exportMethod&&!_xeUtils.default.includeArrays(_vXETable.default.globalConfs.exportTypes,t.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(t.types.join(",")),t.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.globalConfs.exportTypes,e)}).join(",")||_vXETable.default.globalConfs.exportTypes.join(",")]),"development"===process.env.NODE_ENV){u=this.customOpts;if(!this.id&&this.customConfig&&(!0===u.storage||u.storage&&u.storage.resizable||u.storage&&u.storage.visible)&&(0,_log.errLog)("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&(0,_log.errLog)("vxe.error.noTree",["checkbox-config.range"]),this.rowOpts.height&&!this.showOverflow&&(0,_log.warnLog)("vxe.error.notProp",["table.show-overflow"]),!this.handleUpdateCellAreas&&(this.clipConfig&&(0,_log.warnLog)("vxe.error.notProp",["clip-config"]),this.fnrConfig&&(0,_log.warnLog)("vxe.error.notProp",["fnr-config"]),this.mouseOpts.area))return void(0,_log.errLog)("vxe.error.notProp",["mouse-config.area"]);this.treeConfig&&s.children&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.children","tree-config.childrenField"]),this.treeConfig&&s.line&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.line","tree-config.showLine"]),this.mouseOpts.area&&this.mouseOpts.selected&&(0,_log.warnLog)("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),this.mouseOpts.area&&this.checkboxOpts.range&&(0,_log.warnLog)("vxe.error.errConflicts",["mouse-config.area","checkbox-config.range"]),this.treeConfig&&this.mouseOpts.area&&(0,_log.errLog)("vxe.error.noTree",["mouse-config.area"])}"development"===process.env.NODE_ENV&&(this.contextMenu&&((0,_log.warnLog)("vxe.error.delProp",["context-menu","menu-config"]),_xeUtils.default.isObject(this.contextMenu)||(0,_log.warnLog)("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!_xeUtils.default.isObject(this.menuConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!_xeUtils.default.isObject(this.exportConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!_xeUtils.default.isObject(this.importConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!_xeUtils.default.isObject(this.printConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!_xeUtils.default.isObject(this.treeConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!_xeUtils.default.isObject(this.customConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!_xeUtils.default.isObject(this.editConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!_xeUtils.default.isObject(this.emptyRender)&&(0,_log.warnLog)("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"]),this.editConfig&&this.editOpts.activeMethod&&(0,_log.warnLog)("vxe.error.delProp",["table.edit-config.activeMethod","table.edit-config.beforeEditMethod"]),this.treeConfig&&this.checkboxOpts.isShiftKey&&(0,_log.errLog)("vxe.error.errConflicts",["tree-config","checkbox-config.isShiftKey"]),this.checkboxOpts.halfField)&&(0,_log.warnLog)("vxe.error.delProp",["checkbox-config.halfField","checkbox-config.indeterminateField"]),"development"===process.env.NODE_ENV&&(this.editConfig&&!this._insert&&(0,_log.errLog)("vxe.error.reqModule",["Edit"]),this.editRules&&!this._validate&&(0,_log.errLog)("vxe.error.reqModule",["Validator"]),(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)&&!this.triggerCellMousedownEvent&&(0,_log.errLog)("vxe.error.reqModule",["Keyboard"]),this.printConfig||this.importConfig||this.exportConfig)&&!this._exportData&&(0,_log.errLog)("vxe.error.reqModule",["Export"]),Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0,adaptive:!1!==n.adaptive}),Object.assign(o,{startIndex:0,endIndex:1,visibleSize:0}),this.loadTableData(r).then(function(){r&&r.length&&(e.inited=!0,e.initStatus=!0,e.handleLoadDefaults(),e.handleInitDefaults()),e.updateStyle()}),_event.GlobalEvent.on(this,"paste",this.handleGlobalPasteEvent),_event.GlobalEvent.on(this,"copy",this.handleGlobalCopyEvent),_event.GlobalEvent.on(this,"cut",this.handleGlobalCutEvent),_event.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_event.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent),_event.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_event.GlobalEvent.on(this,"resize",this.handleGlobalResizeEvent),_event.GlobalEvent.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")},mounted:function(){var e,t,o=this;"development"===process.env.NODE_ENV&&(t=this.$listeners,!this.menuConfig&&(t["menu-click"]||t["cell-menu"]||t["header-cell-menu"]||t["footer-cell-menu"])&&(0,_log.warnLog)("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!t["cell-mouseenter"]&&!t["cell-mouseleave"]||(0,_log.warnLog)("vxe.error.reqProp",["tooltip-config"])),this.autoResize&&(e=this.resizeOpts.refreshDelay?_xeUtils.default.throttle(function(){return o.recalculate(!0)},this.resizeOpts.refreshDelay,{leading:!0,trailing:!0}):null,(t=(0,_resize.createResizeEvent)(e?function(){o.autoResize&&requestAnimationFrame(e)}:function(){o.autoResize&&o.recalculate(!0)})).observe(this.$el),t.observe(this.getParentElem()),this.$resize=t),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then(function(){return e.refreshScroll()}),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){_event.GlobalEvent.off(this,"paste"),_event.GlobalEvent.off(this,"copy"),_event.GlobalEvent.off(this,"cut"),_event.GlobalEvent.off(this,"mousedown"),_event.GlobalEvent.off(this,"blur"),_event.GlobalEvent.off(this,"mousewheel"),_event.GlobalEvent.off(this,"keydown"),_event.GlobalEvent.off(this,"resize"),_event.GlobalEvent.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t=this._e,o=this.$scopedSlots,n=this.tId,i=this.tableData,r=this.tableColumn,l=this.tableGroupColumn,s=this.isGroup,a=this.loading,u=this.stripe,f=this.showHeader,c=this.height,d=this.tableBorder,h=this.treeOpts,p=this.treeConfig,g=this.mouseConfig,b=this.mouseOpts,v=this.vSize,m=this.validOpts,x=this.showFooter,C=this.overflowX,_=this.overflowY,O=this.scrollXLoad,y=this.scrollYLoad,w=this.scrollbarHeight,j=this.highlightCell,S=this.highlightHoverRow,M=this.highlightHoverColumn,E=this.editConfig,k=this.validTipOpts,L=this.initStore,P=this.columnStore,q=this.filterStore,R=this.ctxMenuStore,B=this.ctxMenuOpts,G=this.footerTableData,D=this.hasTip,H=this.columnOpts,N=this.rowOpts,z=this.loadingOpts,F=this.editRules,T=P.leftList,P=P.rightList;return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(n),v?"size--".concat(v):"","border--".concat(d),(_defineProperty(n={},"vaild-msg--".concat(m.msgMode),!!F),_defineProperty(n,"vxe-editable",!!E),_defineProperty(n,"old-cell-valid",F&&"obsolete"===_conf.default.cellVaildMode),_defineProperty(n,"cell--highlight",j),_defineProperty(n,"cell--selected",g&&b.selected),_defineProperty(n,"cell--area",g&&b.area),_defineProperty(n,"row--highlight",N.isHover||S),_defineProperty(n,"column--highlight",H.isHover||M),_defineProperty(n,"is--header",f),_defineProperty(n,"is--footer",x),_defineProperty(n,"is--group",s),_defineProperty(n,"is--tree-line",p&&(h.showLine||h.line)),_defineProperty(n,"is--fixed-left",T.length),_defineProperty(n,"is--fixed-right",P.length),_defineProperty(n,"is--animat",!!this.animat),_defineProperty(n,"is--round",this.round),_defineProperty(n,"is--stripe",!p&&u),_defineProperty(n,"is--loading",a),_defineProperty(n,"is--empty",!a&&!i.length),_defineProperty(n,"is--scroll-y",_),_defineProperty(n,"is--scroll-x",C),_defineProperty(n,"is--virtual-x",O),_defineProperty(n,"is--virtual-y",y),n)],on:{keydown:this.keydownEvent}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--render-wrapper"},[e("div",{class:"vxe-table--main-wrapper"},[f?e(_header.default,{ref:"tableHeader",props:{tableData:i,tableColumn:r,tableGroupColumn:l,size:v}}):t(),e("vxe-table-body",{ref:"tableBody",props:{tableData:i,tableColumn:r,size:v}}),x?e("vxe-table-footer",{ref:"tableFooter",props:{footerTableData:G,tableColumn:r,size:v}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[T&&T.length&&C?renderFixed(e,this,"left"):t(),P&&P.length&&C?renderFixed(e,this,"right"):t()])]),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},renderEmptyContenet(e,this))]),e("div",{class:"vxe-table--border-line"}),e("div",{class:"vxe-table--resizable-bar",style:C?{"padding-bottom":"".concat(w,"px")}:null,ref:"resizeBar"}),e(_index.default,{class:"vxe-table--loading",props:{value:a,icon:z.icon,text:z.text}},this.callSlot(o.loading,{},e)),L.filter?e("vxe-table-filter",{ref:"filterWrapper",props:{filterStore:q}}):t(),L.import&&this.importConfig?e("vxe-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),L.export&&(this.exportConfig||this.printConfig)?e("vxe-export-panel",{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):t(),R.visible&&this.isCtxMenu?e("vxe-table-context-menu",{ref:"ctxWrapper",props:{ctxMenuStore:R,ctxMenuOpts:B}}):t(),D?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),D?e("vxe-tooltip",{ref:"tooltip",props:this.tipConfig}):t(),D&&this.editRules&&m.showMessage&&("default"===m.message?!c:"tooltip"===m.message)?e("vxe-tooltip",{ref:"validTip",class:[{"old-cell-valid":F&&"obsolete"===_conf.default.cellVaildMode},"vxe-table--valid-error"],props:"tooltip"===m.message||1===i.length?k:null}):t()])},methods:_methods.default};exports.default=_default2;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_body=_interopRequireDefault(require("./body")),_header=_interopRequireDefault(require("./header")),_footer=_interopRequireDefault(require("./footer")),_size=_interopRequireDefault(require("../../mixins/size")),_utils=require("../../tools/utils"),_resize=require("../../tools/resize"),_event=require("../../tools/event"),_vn=require("../../tools/vn"),_methods=_interopRequireDefault(require("./methods")),_log=require("../../tools/log"),_index=_interopRequireDefault(require("../../loading/index"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function renderFixed(e,t,o){var n=t._e,i=t.tableData,r=t.tableColumn,l=t.tableGroupColumn,s=t.vSize,a=t.showHeader,u=t.showFooter,f=t.columnStore,t=t.footerTableData,f=f["".concat(o,"List")];return e("div",{class:"vxe-table--fixed-".concat(o,"-wrapper"),ref:"".concat(o,"Container")},[a?e(_header.default,{props:{fixedType:o,tableData:i,tableColumn:r,tableGroupColumn:l,size:s,fixedColumn:f},ref:"".concat(o,"Header")}):n(),e(_body.default,{props:{fixedType:o,tableData:i,tableColumn:r,fixedColumn:f,size:s},ref:"".concat(o,"Body")}),u?e(_footer.default,{props:{footerTableData:t,tableColumn:r,fixedColumn:f,fixedType:o,size:s},ref:"".concat(o,"Footer")}):n()])}function renderEmptyContenet(e,t){var o=t.$scopedSlots,n=t.emptyOpts,i={$table:t};return o.empty?o.empty.call(t,i,e):(o=(o=n.name?_vXETable.default.renderer.get(n.name):null)?o.renderEmpty:null)?(0,_vn.getSlotVNs)(o.call(t,e,n,i)):(0,_utils.getFuncText)(t.emptyText)||_conf.default.i18n("vxe.table.emptyText")}function handleUupdateResize(e){var t=e.$el;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}var _default2=exports.default={name:"VxeTable",mixins:[_size.default],props:{id:String,data:Array,height:[Number,String],minHeight:{type:[Number,String],default:function(){return _conf.default.table.minHeight}},maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return _conf.default.table.resizable}},stripe:{type:Boolean,default:function(){return _conf.default.table.stripe}},border:{type:[Boolean,String],default:function(){return _conf.default.table.border}},round:{type:Boolean,default:function(){return _conf.default.table.round}},size:{type:String,default:function(){return _conf.default.table.size||_conf.default.size}},fit:{type:Boolean,default:function(){return _conf.default.table.fit}},loading:Boolean,align:{type:String,default:function(){return _conf.default.table.align}},headerAlign:{type:String,default:function(){return _conf.default.table.headerAlign}},footerAlign:{type:String,default:function(){return _conf.default.table.footerAlign}},showHeader:{type:Boolean,default:function(){return _conf.default.table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return _conf.default.table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return _conf.default.table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return _conf.default.table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return _conf.default.table.emptyText}},keepSource:{type:Boolean,default:function(){return _conf.default.table.keepSource}},autoResize:{type:Boolean,default:function(){return _conf.default.table.autoResize}},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,rowConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return _conf.default.table.animat}},delayHover:{type:Number,default:function(){return _conf.default.table.delayHover}},params:Object},provide:function(){return{$xetable:this,xecolgroup:null}},inject:{$xegrid:{default:null}},data:function(){return{tId:"".concat(_xeUtils.default.uniqueId()),staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selectCheckboxMaps:{},currentRow:null,currentColumn:null,selectRadioRow:null,footerTableData:[],expandColumn:null,hasFixedColumn:!1,treeNodeColumn:null,rowExpandedMaps:{},rowExpandLazyLoadedMaps:{},treeExpandedMaps:{},treeExpandLazyLoadedMaps:{},treeIndeterminateMaps:{},mergeList:[],mergeFooterList:[],initStore:{filter:!1,import:!1,export:!1},upDataFlag:0,reColumnFlag:0,pendingRowMaps:{},pendingRowList:[],customStore:{btnEl:null,isAll:!1,isIndeterminate:!1,activeBtn:!1,activeWrapper:!1,visible:!1,maxHeight:0},filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},insertList:[],insertMaps:{},removeList:[],removeMaps:{}},tooltipStore:{row:null,column:null,visible:!1,currOpts:null},validStore:{visible:!1},validErrorMaps:{},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasTree:!1,hasMerge:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1}}},computed:{validOpts:function(){return Object.assign({message:"default"},_conf.default.table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},_conf.default.table.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},_conf.default.table.scrollY,this.scrollY)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},_conf.default.table.columnConfig,this.columnConfig)},rowOpts:function(){return Object.assign({},_conf.default.table.rowConfig,this.rowConfig)},resizeOpts:function(){return Object.assign({},_conf.default.table.resizeConfig,this.resizeConfig)},resizableOpts:function(){return Object.assign({},_conf.default.table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},_conf.default.table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},_conf.default.table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},_conf.default.table.checkboxConfig,this.checkboxConfig)},tooltipOpts:function(){return Object.assign({},_conf.default.tooltip,_conf.default.table.tooltipConfig,this.tooltipConfig)},tipConfig:function(){return _objectSpread(_objectSpread({},this.tooltipOpts),this.tooltipStore.currOpts)},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},_conf.default.table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},_conf.default.table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},_conf.default.table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},_conf.default.table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},_conf.default.table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},_conf.default.table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},_conf.default.table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},_conf.default.table.fnrConfig,this.fnrConfig)},hasTip:function(){return _vXETable.default._tooltip},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return!(!this.contextMenu&&!this.menuConfig||!(0,_utils.isEnableConf)(this.ctxMenuOpts)||!(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length))},ctxMenuOpts:function(){return Object.assign({},_conf.default.table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var t=[];return this.ctxMenuStore.list.forEach(function(e){e.forEach(function(e){t.push(e)})}),t},exportOpts:function(){return Object.assign({},_conf.default.table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},_conf.default.table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},_conf.default.table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},_conf.default.table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},_conf.default.table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},_conf.default.table.emptyRender,this.emptyRender)},loadingOpts:function(){return Object.assign({},_conf.default.table.loadingConfig,this.loadingConfig)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts:function(){return Object.assign({},_conf.default.table.customConfig,this.customConfig)},fixedColumnSize:function(){var e=this.tableFullColumn,t=0;return e.forEach(function(e){e.fixed&&t++}),t},isMaxFixedColumn:function(){var e=this.columnOpts.maxFixedSize;return!!e&&this.fixedColumnSize>=e},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=this.tableData,o=(this.treeConfig,this.checkboxOpts),n=o.strict,i=o.checkMethod;return!!n&&(!t.length&&!e.length||!!i&&e.every(function(e){return!i({row:e})}))}},watch:{data:function(e){var t=this,o=this.inited,n=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,n||t.handleLoadDefaults(),o||t.handleInitDefaults(),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&(0,_log.warnLog)("vxe.error.scrollErrProp",["column.type=expand"]),t.recalculate()})},staticColumns:function(e){this.handleColumn(e)},tableColumn:function(){this.analyColumnWidth()},upDataFlag:function(){var e=this;this.$nextTick().then(function(){return e.updateData()})},reColumnFlag:function(){var e=this;this.$nextTick().then(function(){return e.refreshColumn()})},showHeader:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},showFooter:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},height:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},maxHeight:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},syncResize:function(e){var t=this;e&&(handleUupdateResize(this),this.$nextTick(function(){handleUupdateResize(t),setTimeout(function(){return handleUupdateResize(t)})}))},mergeCells:function(e){var t=this;this.clearMergeCells(),this.$nextTick(function(){return t.setMergeCells(e)})},mergeFooterItems:function(e){var t=this;this.clearMergeFooterItems(),this.$nextTick(function(){return t.setMergeFooterItems(e)})}},created:function(){var e=this,t=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],afterFullRowMaps:{},collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),o=t.scrollXStore,n=t.sYOpts,i=t.scrollYStore,r=t.data,l=t.editOpts,s=t.treeOpts,a=t.treeConfig,u=t.showOverflow,t=t.rowOpts;if("development"===process.env.NODE_ENV&&(this.rowId||t.keyField||!(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)||(0,_log.warnLog)("vxe.error.reqProp",["row-config.keyField"]),this.editConfig&&l.showStatus&&!this.keepSource&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),!a||!s.showLine&&!s.line||(this.rowKey||t.useKey)&&u||(0,_log.warnLog)("vxe.error.reqProp",["row-config.useKey | show-overflow"]),!this.showFooter||this.footerMethod||this.footerData||(0,_log.warnLog)("vxe.error.reqProp",["footer-data | footer-method"]),a&&this.stripe&&(0,_log.warnLog)("vxe.error.noTree",["stripe"]),this.tooltipOpts.enabled&&(0,_log.warnLog)("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),l=this.exportConfig,t=this.exportOpts,u=this.importConfig,a=this.importOpts,u&&a.types&&!a.importMethod&&!_xeUtils.default.includeArrays(_vXETable.default.globalConfs.importTypes,a.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(a.types.join(",")),a.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.globalConfs.importTypes,e)}).join(",")||_vXETable.default.globalConfs.importTypes.join(",")]),l)&&t.types&&!t.exportMethod&&!_xeUtils.default.includeArrays(_vXETable.default.globalConfs.exportTypes,t.types)&&(0,_log.warnLog)("vxe.error.errProp",["export-config.types=".concat(t.types.join(",")),t.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.globalConfs.exportTypes,e)}).join(",")||_vXETable.default.globalConfs.exportTypes.join(",")]),"development"===process.env.NODE_ENV){u=this.customOpts;if(!this.id&&this.customConfig&&(!0===u.storage||u.storage&&u.storage.resizable||u.storage&&u.storage.visible)&&(0,_log.errLog)("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&(0,_log.errLog)("vxe.error.noTree",["checkbox-config.range"]),this.rowOpts.height&&!this.showOverflow&&(0,_log.warnLog)("vxe.error.notProp",["table.show-overflow"]),!this.handleUpdateCellAreas&&(this.clipConfig&&(0,_log.warnLog)("vxe.error.notProp",["clip-config"]),this.fnrConfig&&(0,_log.warnLog)("vxe.error.notProp",["fnr-config"]),this.mouseOpts.area))return void(0,_log.errLog)("vxe.error.notProp",["mouse-config.area"]);this.treeConfig&&s.children&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.children","tree-config.childrenField"]),this.treeConfig&&s.line&&(0,_log.warnLog)("vxe.error.delProp",["tree-config.line","tree-config.showLine"]),this.mouseOpts.area&&this.mouseOpts.selected&&(0,_log.warnLog)("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),this.mouseOpts.area&&this.checkboxOpts.range&&(0,_log.warnLog)("vxe.error.errConflicts",["mouse-config.area","checkbox-config.range"]),this.treeConfig&&this.mouseOpts.area&&(0,_log.errLog)("vxe.error.noTree",["mouse-config.area"])}"development"===process.env.NODE_ENV&&(this.contextMenu&&((0,_log.warnLog)("vxe.error.delProp",["context-menu","menu-config"]),_xeUtils.default.isObject(this.contextMenu)||(0,_log.warnLog)("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!_xeUtils.default.isObject(this.menuConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!_xeUtils.default.isObject(this.exportConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!_xeUtils.default.isObject(this.importConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!_xeUtils.default.isObject(this.printConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!_xeUtils.default.isObject(this.treeConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!_xeUtils.default.isObject(this.customConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!_xeUtils.default.isObject(this.editConfig)&&(0,_log.warnLog)("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!_xeUtils.default.isObject(this.emptyRender)&&(0,_log.warnLog)("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"]),this.editConfig&&this.editOpts.activeMethod&&(0,_log.warnLog)("vxe.error.delProp",["table.edit-config.activeMethod","table.edit-config.beforeEditMethod"]),this.treeConfig&&this.checkboxOpts.isShiftKey&&(0,_log.errLog)("vxe.error.errConflicts",["tree-config","checkbox-config.isShiftKey"]),this.checkboxOpts.halfField)&&(0,_log.warnLog)("vxe.error.delProp",["checkbox-config.halfField","checkbox-config.indeterminateField"]),"development"===process.env.NODE_ENV&&(this.editConfig&&!this._insert&&(0,_log.errLog)("vxe.error.reqModule",["Edit"]),this.editRules&&!this._validate&&(0,_log.errLog)("vxe.error.reqModule",["Validator"]),(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)&&!this.triggerCellMousedownEvent&&(0,_log.errLog)("vxe.error.reqModule",["Keyboard"]),this.printConfig||this.importConfig||this.exportConfig)&&!this._exportData&&(0,_log.errLog)("vxe.error.reqModule",["Export"]),Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0,adaptive:!1!==n.adaptive}),Object.assign(o,{startIndex:0,endIndex:1,visibleSize:0}),this.loadTableData(r).then(function(){r&&r.length&&(e.inited=!0,e.initStatus=!0,e.handleLoadDefaults(),e.handleInitDefaults()),e.updateStyle()}),_event.GlobalEvent.on(this,"paste",this.handleGlobalPasteEvent),_event.GlobalEvent.on(this,"copy",this.handleGlobalCopyEvent),_event.GlobalEvent.on(this,"cut",this.handleGlobalCutEvent),_event.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_event.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent),_event.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_event.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_event.GlobalEvent.on(this,"resize",this.handleGlobalResizeEvent),_event.GlobalEvent.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")},mounted:function(){var e,t,o=this;"development"===process.env.NODE_ENV&&(t=this.$listeners,!this.menuConfig&&(t["menu-click"]||t["cell-menu"]||t["header-cell-menu"]||t["footer-cell-menu"])&&(0,_log.warnLog)("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!t["cell-mouseenter"]&&!t["cell-mouseleave"]||(0,_log.warnLog)("vxe.error.reqProp",["tooltip-config"])),this.autoResize&&(e=this.resizeOpts.refreshDelay?_xeUtils.default.throttle(function(){return o.recalculate(!0)},this.resizeOpts.refreshDelay,{leading:!0,trailing:!0}):null,(t=(0,_resize.createResizeEvent)(e?function(){o.autoResize&&requestAnimationFrame(e)}:function(){o.autoResize&&o.recalculate(!0)})).observe(this.$el),t.observe(this.getParentElem()),this.$resize=t),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then(function(){return e.refreshScroll()}),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){_event.GlobalEvent.off(this,"paste"),_event.GlobalEvent.off(this,"copy"),_event.GlobalEvent.off(this,"cut"),_event.GlobalEvent.off(this,"mousedown"),_event.GlobalEvent.off(this,"blur"),_event.GlobalEvent.off(this,"mousewheel"),_event.GlobalEvent.off(this,"keydown"),_event.GlobalEvent.off(this,"resize"),_event.GlobalEvent.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t=this._e,o=this.$scopedSlots,n=this.tId,i=this.tableData,r=this.tableColumn,l=this.tableGroupColumn,s=this.isGroup,a=this.loading,u=this.stripe,f=this.showHeader,c=this.height,d=this.tableBorder,p=this.treeOpts,h=this.treeConfig,g=this.mouseConfig,b=this.mouseOpts,m=this.vSize,v=this.validOpts,x=this.showFooter,_=this.overflowX,C=this.overflowY,y=this.scrollXLoad,O=this.scrollYLoad,w=this.scrollbarHeight,j=this.highlightCell,S=this.highlightHoverRow,M=this.highlightHoverColumn,E=this.editConfig,k=this.validTipOpts,P=this.initStore,L=this.columnStore,q=this.filterStore,B=this.customStore,R=this.ctxMenuStore,H=this.ctxMenuOpts,G=this.footerTableData,D=this.hasTip,N=this.columnOpts,I=this.rowOpts,z=this.loadingOpts,F=this.editRules,T=L.leftList,L=L.rightList;return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(n),m?"size--".concat(m):"","border--".concat(d),(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n={},"vaild-msg--".concat(v.msgMode),!!F),"vxe-editable",!!E),"old-cell-valid",F&&"obsolete"===_conf.default.cellVaildMode),"cell--highlight",j),"cell--selected",g&&b.selected),"cell--area",g&&b.area),"row--highlight",I.isHover||S),"column--highlight",N.isHover||M),"is--header",f),"is--footer",x),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(n,"is--group",s),"is--tree-line",h&&(p.showLine||p.line)),"is--fixed-left",T.length),"is--fixed-right",L.length),"is--animat",!!this.animat),"is--round",this.round),"is--stripe",!h&&u),"is--loading",a),"is--empty",!a&&!i.length),"is--scroll-y",C),_defineProperty(_defineProperty(_defineProperty(n,"is--scroll-x",_),"is--virtual-x",y),"is--virtual-y",O))],on:{keydown:this.keydownEvent}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--render-wrapper"},[e("div",{class:"vxe-table--main-wrapper"},[f?e(_header.default,{ref:"tableHeader",props:{tableData:i,tableColumn:r,tableGroupColumn:l,size:m}}):t(),e("vxe-table-body",{ref:"tableBody",props:{tableData:i,tableColumn:r,size:m}}),x?e(_footer.default,{ref:"tableFooter",props:{footerTableData:G,tableColumn:r,size:m}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[T&&T.length&&_?renderFixed(e,this,"left"):t(),L&&L.length&&_?renderFixed(e,this,"right"):t()])]),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},renderEmptyContenet(e,this))]),e("div",{class:"vxe-table--border-line"}),e("div",{class:"vxe-table--resizable-bar",style:_?{"padding-bottom":"".concat(w,"px")}:null,ref:"resizeBar"}),e(_index.default,{class:"vxe-table--loading",props:{value:a,icon:z.icon,text:z.text}},this.callSlot(o.loading,{},e)),e("vxe-table-custom-panel",{ref:"customWrapper",props:{customStore:B}}),P.filter?e("vxe-table-filter-panel",{ref:"filterWrapper",props:{filterStore:q}}):t(),P.import&&this.importConfig?e("vxe-table-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),P.export&&(this.exportConfig||this.printConfig)?e("vxe-table-export-panel",{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):t(),R.visible&&this.isCtxMenu?e("vxe-table-menu-panel",{ref:"ctxWrapper",props:{ctxMenuStore:R,ctxMenuOpts:H}}):t(),D?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),D?e("vxe-tooltip",{ref:"tooltip",props:this.tipConfig}):t(),D&&this.editRules&&v.showMessage&&("default"===v.message?!c:"tooltip"===v.message)?e("vxe-tooltip",{ref:"validTip",class:[{"old-cell-valid":F&&"obsolete"===_conf.default.cellVaildMode},"vxe-table--valid-error"],props:"tooltip"===v.message||1===i.length?k:null}):t()])},methods:_methods.default};
|
package/lib/table/src/util.js
CHANGED
|
@@ -33,7 +33,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
|
|
|
33
33
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
34
34
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
35
35
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
36
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
36
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
37
37
|
var getAllConvertColumns = function getAllConvertColumns(columns, parentColumn) {
|
|
38
38
|
var result = [];
|
|
39
39
|
columns.forEach(function (column) {
|
|
@@ -51,7 +51,7 @@ var getAllConvertColumns = function getAllConvertColumns(columns, parentColumn)
|
|
|
51
51
|
});
|
|
52
52
|
return result;
|
|
53
53
|
};
|
|
54
|
-
var convertHeaderColumnToRows = function convertHeaderColumnToRows(originColumns) {
|
|
54
|
+
var convertHeaderColumnToRows = exports.convertHeaderColumnToRows = function convertHeaderColumnToRows(originColumns) {
|
|
55
55
|
var maxLevel = 1;
|
|
56
56
|
var traverse = function traverse(column, parent) {
|
|
57
57
|
if (parent) {
|
|
@@ -96,7 +96,6 @@ var convertHeaderColumnToRows = function convertHeaderColumnToRows(originColumns
|
|
|
96
96
|
});
|
|
97
97
|
return rows;
|
|
98
98
|
};
|
|
99
|
-
exports.convertHeaderColumnToRows = convertHeaderColumnToRows;
|
|
100
99
|
var lineOffsetSizes = {
|
|
101
100
|
mini: 3,
|
|
102
101
|
small: 2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcTreeLine=calcTreeLine,exports.clearTableAllStatus=clearTableAllStatus,exports.clearTableDefaultStatus=clearTableDefaultStatus,exports.colToVisible=colToVisible,exports.convertHeaderColumnToRows=void 0,exports.getColReMinWidth=getColReMinWidth,exports.getColumnConfig=getColumnConfig,exports.getOffsetSize=getOffsetSize,exports.getRootColumn=getRootColumn,exports.getRowid=getRowid,exports.getRowkey=getRowkey,exports.handleFieldOrColumn=handleFieldOrColumn,exports.isColumnInfo=isColumnInfo,exports.mergeBodyMethod=mergeBodyMethod,exports.removeScrollListener=removeScrollListener,exports.restoreScrollListener=restoreScrollListener,exports.restoreScrollLocation=restoreScrollLocation,exports.rowToVisible=rowToVisible,exports.toFilters=toFilters,exports.toTreePathSeq=toTreePathSeq;var _vXETable=_interopRequireDefault(require("../../v-x-e-table")),_xeUtils=_interopRequireDefault(require("xe-utils")),_columnInfo=require("./columnInfo"),_dom=_interopRequireDefault(require("../../tools/dom"));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,r){var t;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):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,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,l=new Array(r);t<r;t++)l[t]=e[t];return l}var getAllConvertColumns=function r(e,t){var l=[];return e.forEach(function(e){e.parentId=t?t.id:null,e.visible&&(e.children&&e.children.length&&e.children.some(function(e){return e.visible})?(l.push(e),l.push.apply(l,_toConsumableArray(r(e.children,e)))):l.push(e))}),l},convertHeaderColumnToRows=function(e){for(var o=1,r=function r(t,e){var l;e&&(t.level=e.level+1,o<t.level)&&(o=t.level),t.children&&t.children.length&&t.children.some(function(e){return e.visible})?(l=0,t.children.forEach(function(e){e.visible&&(r(e,t),l+=e.colSpan)}),t.colSpan=l):t.colSpan=1},t=(e.forEach(function(e){e.level=1,r(e)}),[]),l=0;l<o;l++)t.push([]);return getAllConvertColumns(e).forEach(function(e){e.children&&e.children.length&&e.children.some(function(e){return e.visible})?e.rowSpan=1:e.rowSpan=o-e.level+1,t[e.level-1].push(e)}),t},lineOffsetSizes=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcTreeLine=calcTreeLine,exports.clearTableAllStatus=clearTableAllStatus,exports.clearTableDefaultStatus=clearTableDefaultStatus,exports.colToVisible=colToVisible,exports.convertHeaderColumnToRows=void 0,exports.getColReMinWidth=getColReMinWidth,exports.getColumnConfig=getColumnConfig,exports.getOffsetSize=getOffsetSize,exports.getRootColumn=getRootColumn,exports.getRowid=getRowid,exports.getRowkey=getRowkey,exports.handleFieldOrColumn=handleFieldOrColumn,exports.isColumnInfo=isColumnInfo,exports.mergeBodyMethod=mergeBodyMethod,exports.removeScrollListener=removeScrollListener,exports.restoreScrollListener=restoreScrollListener,exports.restoreScrollLocation=restoreScrollLocation,exports.rowToVisible=rowToVisible,exports.toFilters=toFilters,exports.toTreePathSeq=toTreePathSeq;var _vXETable=_interopRequireDefault(require("../../v-x-e-table")),_xeUtils=_interopRequireDefault(require("xe-utils")),_columnInfo=require("./columnInfo"),_dom=_interopRequireDefault(require("../../tools/dom"));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,r){var t;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):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,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,l=new Array(r);t<r;t++)l[t]=e[t];return l}var getAllConvertColumns=function r(e,t){var l=[];return e.forEach(function(e){e.parentId=t?t.id:null,e.visible&&(e.children&&e.children.length&&e.children.some(function(e){return e.visible})?(l.push(e),l.push.apply(l,_toConsumableArray(r(e.children,e)))):l.push(e))}),l},convertHeaderColumnToRows=exports.convertHeaderColumnToRows=function(e){for(var o=1,r=function r(t,e){var l;e&&(t.level=e.level+1,o<t.level)&&(o=t.level),t.children&&t.children.length&&t.children.some(function(e){return e.visible})?(l=0,t.children.forEach(function(e){e.visible&&(r(e,t),l+=e.colSpan)}),t.colSpan=l):t.colSpan=1},t=(e.forEach(function(e){e.level=1,r(e)}),[]),l=0;l<o;l++)t.push([]);return getAllConvertColumns(e).forEach(function(e){e.children&&e.children.length&&e.children.some(function(e){return e.visible})?e.rowSpan=1:e.rowSpan=o-e.level+1,t[e.level-1].push(e)}),t},lineOffsetSizes={mini:3,small:2,medium:1};function restoreScrollLocation(e,r,t){return e.clearScroll().then(function(){if(r||t)return e.lastScrollLeft=0,e.lastScrollTop=0,e.scrollTo(r,t)})}function toTreePathSeq(e){return e.map(function(e,r){return r%2==0?Number(e)+1:"."}).join("")}function removeScrollListener(e){e&&e._onscroll&&(e.onscroll=null)}function restoreScrollListener(e){e&&e._onscroll&&(e.onscroll=e._onscroll)}function getRowkey(e){return e.rowOpts.keyField||e.rowId||"_X_ROW_KEY"}function getRowid(e,r){r=_xeUtils.default.get(r,getRowkey(e));return _xeUtils.default.eqNull(r)?"":encodeURIComponent(r)}function getPaddingLeftRightSize(e){return e?(e=getComputedStyle(e),_xeUtils.default.toNumber(e.paddingLeft)+_xeUtils.default.toNumber(e.paddingRight)):0}function getElemenMarginWidth(e){var r,t;return e?(t=getComputedStyle(e),r=_xeUtils.default.toNumber(t.marginLeft),t=_xeUtils.default.toNumber(t.marginRight),e.offsetWidth+r+t):0}function handleFieldOrColumn(e,r){return r?_xeUtils.default.isString(r)?e.getColumnByField(r):r:null}function getRootColumn(e,r){var t=e.fullColumnIdData;if(!r)return null;for(var l=r.parentId;t[l];){var o=t[l].column;if(!(l=o.parentId))return o}return r}function queryCellElement(e,r){return e.querySelector(".vxe-cell"+r)}function toFilters(e){return e&&_xeUtils.default.isArray(e)?e.map(function(e){var r=e.label,t=e.value,l=e.data,o=e.resetValue,e=e.checked;return{label:r,value:t,data:l,resetValue:o,checked:!!e,_checked:!!e}}):e}function getColReMinWidth(e){var r=e.$table,t=e.column,l=e.cell,o=r.showHeaderOverflow,n=r.resizableOpts.minWidth;if(n){e=_xeUtils.default.isFunction(n)?n(e):n;if("auto"!==e)return Math.max(1,_xeUtils.default.toNumber(e))}var i,a,u,n=t.showHeaderOverflow,e=t.minWidth,t=_xeUtils.default.isUndefined(n)||_xeUtils.default.isNull(n)?o:n,o="title"===t||(!0===t||"tooltip"===t)||"ellipsis"===t,n=_xeUtils.default.floor(1.6*(_xeUtils.default.toNumber(getComputedStyle(l).fontSize)||14))+(getPaddingLeftRightSize(l)+getPaddingLeftRightSize(queryCellElement(l,"")));if(o&&(t=getPaddingLeftRightSize(queryCellElement(l,"--title>.vxe-cell--checkbox")),o=getElemenMarginWidth(queryCellElement(l,">.vxe-cell--required-icon")),c=getElemenMarginWidth(queryCellElement(l,">.vxe-cell--edit-icon")),i=getElemenMarginWidth(queryCellElement(l,">.vxe-cell-title-prefix-icon")),a=getElemenMarginWidth(queryCellElement(l,">.vxe-cell-title-suffix-icon")),u=getElemenMarginWidth(queryCellElement(l,">.vxe-cell--sort")),n+=t+o+c+i+a+getElemenMarginWidth(queryCellElement(l,">.vxe-cell--filter"))+u),e){var c,t=r.$refs.tableBody,o=t?t.$el:null;if(o){if(_dom.default.isScale(e))return c=(o.clientWidth-1)/100,Math.max(n,Math.floor(_xeUtils.default.toInteger(e)*c));if(_dom.default.isPx(e))return Math.max(n,_xeUtils.default.toInteger(e))}}return n}function countTreeExpand(e,r){var t=1;if(e){var l=r.$table,o=l.treeOpts,n=e[o.children||o.childrenField];if(n&&l.isTreeExpandByRow(e))for(var i=0;i<n.length;i++)t+=countTreeExpand(n[i],r)}return t}function getOffsetSize(e){return lineOffsetSizes[e.vSize]||0}function calcTreeLine(e,r,t){var l=e.$table,o=1;return t&&(o=countTreeExpand(r[t-1],e)),l.rowHeight*o-(t?1:12-getOffsetSize(l))}function mergeBodyMethod(e,r,t){for(var l=0;l<e.length;l++){var o=e[l],n=o.row,i=o.col,a=o.rowspan,o=o.colspan;if(-1<i&&-1<n&&a&&o){if(n===r&&i===t)return{rowspan:a,colspan:o};if(n<=r&&r<n+a&&i<=t&&t<i+o)return{rowspan:0,colspan:0}}}}function clearTableDefaultStatus(e){return e.initStatus=!1,e.clearSort(),e.clearCurrentRow(),e.clearCurrentColumn(),e.clearRadioRow(),e.clearRadioReserve(),e.clearCheckboxRow(),e.clearCheckboxReserve(),e.clearRowExpand(),e.clearTreeExpand(),e.clearTreeExpandReserve(),e.clearActived&&_vXETable.default._edit&&e.clearActived(),e.clearSelected&&(e.keyboardConfig||e.mouseConfig)&&e.clearSelected(),e.clearCellAreas&&e.mouseConfig&&(e.clearCellAreas(),e.clearCopyCellArea()),e.clearScroll()}function clearTableAllStatus(e){return e.clearFilter&&_vXETable.default._filter&&e.clearFilter(),clearTableDefaultStatus(e)}function isColumnInfo(e){return e instanceof _columnInfo.ColumnInfo}function getColumnConfig(e,r,t){return isColumnInfo(r)?r:new _columnInfo.ColumnInfo(e,r,t)}function rowToVisible(e,r){var t=e.$refs.tableBody,t=t?t.$el:null;if(t){var l=t.querySelector('[rowid="'.concat(getRowid(e,r),'"]'));if(l){var o=t.clientHeight,t=t.scrollTop,n=l.offsetTop+(l.offsetParent?l.offsetParent.offsetTop:0),l=l.clientHeight;if(n<t||t+o<n)return e.scrollTo(null,n);if(o+t<=n+l)return e.scrollTo(null,t+l)}else if(e.scrollYLoad)return e.scrollTo(null,(e.afterFullData.indexOf(r)-1)*e.scrollYStore.rowHeight)}return Promise.resolve()}function colToVisible(e,r){var t=e.$refs.tableBody,t=t?t.$el:null;if(t){var l=t.querySelector(".".concat(r.id));if(l){var o=t.clientWidth,t=t.scrollLeft,n=l.offsetLeft+(l.offsetParent?l.offsetParent.offsetLeft:0),l=l.clientWidth;if(n<t||t+o<n)return e.scrollTo(n);if(o+t<=n+l)return e.scrollTo(t+l)}else if(e.scrollXLoad){for(var i=e.visibleColumn,a=0,u=0;u<i.length&&i[u]!==r;u++)a+=i[u].renderWidth;return e.scrollTo(a)}}return Promise.resolve()}
|
|
@@ -24,81 +24,6 @@
|
|
|
24
24
|
/*select*/
|
|
25
25
|
/*switch*/
|
|
26
26
|
/*pulldown*/
|
|
27
|
-
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
|
|
28
|
-
font-size: 1.34em;
|
|
29
|
-
}
|
|
30
|
-
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
|
|
31
|
-
color: #dcdfe6;
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
font-weight: 700;
|
|
34
|
-
-webkit-user-select: none;
|
|
35
|
-
-moz-user-select: none;
|
|
36
|
-
-ms-user-select: none;
|
|
37
|
-
user-select: none;
|
|
38
|
-
}
|
|
39
|
-
.vxe-table--render-default .is--checked.vxe-cell--checkbox, .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox {
|
|
40
|
-
color: #409eff;
|
|
41
|
-
}
|
|
42
|
-
.vxe-table--render-default .is--checked.vxe-cell--checkbox .vxe-checkbox--icon, .vxe-table--render-default .is--indeterminate.vxe-cell--checkbox .vxe-checkbox--icon {
|
|
43
|
-
color: #409eff;
|
|
44
|
-
}
|
|
45
|
-
.vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled) {
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
}
|
|
48
|
-
.vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon {
|
|
49
|
-
color: #409eff;
|
|
50
|
-
}
|
|
51
|
-
.vxe-table--render-default .is--disabled.vxe-cell--checkbox {
|
|
52
|
-
color: #BFBFBF;
|
|
53
|
-
cursor: not-allowed;
|
|
54
|
-
}
|
|
55
|
-
.vxe-table--render-default .is--disabled.vxe-cell--checkbox .vxe-checkbox--icon {
|
|
56
|
-
color: #dcdfe6;
|
|
57
|
-
}
|
|
58
|
-
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--label {
|
|
59
|
-
padding-left: 0.5em;
|
|
60
|
-
vertical-align: middle;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.vxe-table--render-default .vxe-cell--radio {
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
}
|
|
66
|
-
.vxe-table--render-default .vxe-cell--radio .vxe-radio--icon {
|
|
67
|
-
font-size: 1.4em;
|
|
68
|
-
}
|
|
69
|
-
.vxe-table--render-default .vxe-cell--radio .vxe-radio--icon {
|
|
70
|
-
color: #dcdfe6;
|
|
71
|
-
vertical-align: middle;
|
|
72
|
-
font-weight: 700;
|
|
73
|
-
-webkit-user-select: none;
|
|
74
|
-
-moz-user-select: none;
|
|
75
|
-
-ms-user-select: none;
|
|
76
|
-
user-select: none;
|
|
77
|
-
}
|
|
78
|
-
.vxe-table--render-default .is--checked.vxe-cell--radio {
|
|
79
|
-
color: #409eff;
|
|
80
|
-
}
|
|
81
|
-
.vxe-table--render-default .is--checked.vxe-cell--radio .vxe-radio--icon {
|
|
82
|
-
color: #409eff;
|
|
83
|
-
}
|
|
84
|
-
.vxe-table--render-default .vxe-cell--radio:not(.is--disabled) {
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
}
|
|
87
|
-
.vxe-table--render-default .vxe-cell--radio:not(.is--disabled):hover .vxe-radio--icon {
|
|
88
|
-
color: #409eff;
|
|
89
|
-
}
|
|
90
|
-
.vxe-table--render-default .is--disabled.vxe-cell--radio {
|
|
91
|
-
color: #BFBFBF;
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
}
|
|
94
|
-
.vxe-table--render-default .is--disabled.vxe-cell--radio .vxe-radio--icon {
|
|
95
|
-
color: #dcdfe6;
|
|
96
|
-
}
|
|
97
|
-
.vxe-table--render-default .vxe-cell--radio .vxe-radio--label {
|
|
98
|
-
padding-left: 0.5em;
|
|
99
|
-
vertical-align: middle;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
27
|
[class*=vxe-]:after, [class*=vxe-]:before,
|
|
103
28
|
[class*=vxe-] *:after, [class*=vxe-] *:before, [class*=vxe-] {
|
|
104
29
|
box-sizing: border-box;
|
|
@@ -857,12 +782,6 @@
|
|
|
857
782
|
.vxe-table--render-default .vxe-footer--column.col--ellipsis.col--right .vxe-cell {
|
|
858
783
|
justify-content: flex-end;
|
|
859
784
|
}
|
|
860
|
-
.vxe-table--render-default .vxe-body--column.col--checkbox {
|
|
861
|
-
-webkit-user-select: none;
|
|
862
|
-
-moz-user-select: none;
|
|
863
|
-
-ms-user-select: none;
|
|
864
|
-
user-select: none;
|
|
865
|
-
}
|
|
866
785
|
.vxe-table--render-default .vxe-table--footer-wrapper {
|
|
867
786
|
border-top: 1px solid #e8eaec;
|
|
868
787
|
}
|
|
@@ -980,6 +899,79 @@
|
|
|
980
899
|
.vxe-table--render-default .vxe-cell--placeholder {
|
|
981
900
|
color: #C0C4CC;
|
|
982
901
|
}
|
|
902
|
+
.vxe-table--render-default .vxe-cell--radio {
|
|
903
|
+
cursor: pointer;
|
|
904
|
+
}
|
|
905
|
+
.vxe-table--render-default .vxe-cell--radio .vxe-radio--icon {
|
|
906
|
+
font-size: 1.4em;
|
|
907
|
+
}
|
|
908
|
+
.vxe-table--render-default .vxe-cell--radio .vxe-radio--icon {
|
|
909
|
+
color: #dcdfe6;
|
|
910
|
+
vertical-align: middle;
|
|
911
|
+
font-weight: 700;
|
|
912
|
+
-webkit-user-select: none;
|
|
913
|
+
-moz-user-select: none;
|
|
914
|
+
-ms-user-select: none;
|
|
915
|
+
user-select: none;
|
|
916
|
+
}
|
|
917
|
+
.vxe-table--render-default .vxe-cell--radio.is--checked {
|
|
918
|
+
color: #409eff;
|
|
919
|
+
}
|
|
920
|
+
.vxe-table--render-default .vxe-cell--radio.is--checked .vxe-radio--icon {
|
|
921
|
+
color: #409eff;
|
|
922
|
+
}
|
|
923
|
+
.vxe-table--render-default .vxe-cell--radio:not(.is--disabled) {
|
|
924
|
+
cursor: pointer;
|
|
925
|
+
}
|
|
926
|
+
.vxe-table--render-default .vxe-cell--radio:not(.is--disabled):hover .vxe-radio--icon {
|
|
927
|
+
color: #409eff;
|
|
928
|
+
}
|
|
929
|
+
.vxe-table--render-default .vxe-cell--radio.is--disabled {
|
|
930
|
+
color: #BFBFBF;
|
|
931
|
+
cursor: not-allowed;
|
|
932
|
+
}
|
|
933
|
+
.vxe-table--render-default .vxe-cell--radio.is--disabled .vxe-radio--icon {
|
|
934
|
+
color: #dcdfe6;
|
|
935
|
+
}
|
|
936
|
+
.vxe-table--render-default .vxe-cell--radio .vxe-radio--label {
|
|
937
|
+
padding-left: 0.5em;
|
|
938
|
+
vertical-align: middle;
|
|
939
|
+
}
|
|
940
|
+
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
|
|
941
|
+
font-size: 1.34em;
|
|
942
|
+
}
|
|
943
|
+
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon {
|
|
944
|
+
color: #dcdfe6;
|
|
945
|
+
vertical-align: middle;
|
|
946
|
+
font-weight: 700;
|
|
947
|
+
-webkit-user-select: none;
|
|
948
|
+
-moz-user-select: none;
|
|
949
|
+
-ms-user-select: none;
|
|
950
|
+
user-select: none;
|
|
951
|
+
}
|
|
952
|
+
.vxe-table--render-default .vxe-cell--checkbox.is--checked, .vxe-table--render-default .vxe-cell--checkbox.is--indeterminate {
|
|
953
|
+
color: #409eff;
|
|
954
|
+
}
|
|
955
|
+
.vxe-table--render-default .vxe-cell--checkbox.is--checked .vxe-checkbox--icon, .vxe-table--render-default .vxe-cell--checkbox.is--indeterminate .vxe-checkbox--icon {
|
|
956
|
+
color: #409eff;
|
|
957
|
+
}
|
|
958
|
+
.vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled) {
|
|
959
|
+
cursor: pointer;
|
|
960
|
+
}
|
|
961
|
+
.vxe-table--render-default .vxe-cell--checkbox:not(.is--disabled):hover .vxe-checkbox--icon {
|
|
962
|
+
color: #409eff;
|
|
963
|
+
}
|
|
964
|
+
.vxe-table--render-default .vxe-cell--checkbox.is--disabled {
|
|
965
|
+
color: #BFBFBF;
|
|
966
|
+
cursor: not-allowed;
|
|
967
|
+
}
|
|
968
|
+
.vxe-table--render-default .vxe-cell--checkbox.is--disabled .vxe-checkbox--icon {
|
|
969
|
+
color: #dcdfe6;
|
|
970
|
+
}
|
|
971
|
+
.vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--label {
|
|
972
|
+
padding-left: 0.5em;
|
|
973
|
+
vertical-align: middle;
|
|
974
|
+
}
|
|
983
975
|
.vxe-table--render-default .fixed--hidden {
|
|
984
976
|
visibility: hidden;
|
|
985
977
|
}
|