vxe-table 4.2.8 → 4.3.0-beta.10
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.en.md +1 -1
- package/README.md +1 -1
- package/README.zh-TW.md +1 -1
- package/es/all.js +64 -67
- package/es/button/index.d.ts +2 -2
- package/es/button/index.js +3 -2
- package/es/button/src/button.js +14 -14
- package/es/button/style.css +15 -61
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/index.js +3 -2
- package/es/checkbox/src/checkbox.js +7 -4
- package/es/checkbox/style.css +37 -58
- package/es/checkbox-group/index.d.ts +2 -2
- package/es/checkbox-group/index.js +3 -2
- package/es/colgroup/index.d.ts +2 -2
- package/es/colgroup/index.js +3 -2
- package/es/column/index.d.ts +2 -2
- package/es/column/index.js +3 -2
- package/es/edit/index.d.ts +2 -2
- package/es/edit/index.js +3 -2
- package/es/edit/src/hook.js +29 -13
- package/es/export/index.d.ts +2 -2
- package/es/export/index.js +3 -2
- package/es/export/src/export-panel.js +10 -20
- package/es/export/src/hook.js +45 -45
- package/es/export/src/import-panel.js +2 -2
- package/es/export/src/util.js +7 -7
- package/es/export/style.css +23 -90
- package/es/filter/index.d.ts +2 -2
- package/es/filter/index.js +3 -2
- package/es/filter/src/hook.js +5 -5
- package/es/filter/src/panel.js +9 -17
- package/es/filter/style.css +23 -87
- package/es/footer/src/footer.js +15 -15
- package/es/form/index.d.ts +2 -2
- package/es/form/index.js +3 -2
- package/es/form/src/form-config-item.js +8 -7
- package/es/form/src/form-item.js +8 -7
- package/es/form/src/form.js +8 -6
- package/es/form/style.css +0 -3
- package/es/form-gather/index.d.ts +2 -2
- package/es/form-gather/index.js +3 -2
- package/es/form-item/index.d.ts +2 -2
- package/es/form-item/index.js +3 -2
- package/es/grid/index.d.ts +2 -2
- package/es/grid/index.js +3 -2
- package/es/grid/src/grid.js +18 -13
- package/es/header/src/header.js +18 -18
- package/es/icon/index.d.ts +2 -2
- package/es/icon/index.js +10 -5
- package/es/icon/src/icon.js +22 -0
- package/es/icon/style.css +443 -495
- package/es/input/index.d.ts +2 -2
- package/es/input/index.js +3 -2
- package/es/input/src/input.js +26 -26
- package/es/input/style.css +13 -4
- package/es/keyboard/index.d.ts +2 -2
- package/es/keyboard/index.js +3 -2
- package/es/keyboard/src/hook.js +7 -7
- package/es/list/index.d.ts +2 -2
- package/es/list/index.js +3 -2
- package/es/list/src/list.js +5 -5
- package/es/loading/index.js +4 -3
- package/es/loading/src/loading.js +1 -1
- package/es/menu/index.d.ts +2 -2
- package/es/menu/index.js +3 -2
- package/es/menu/src/hooks.js +9 -9
- package/es/menu/src/panel.js +2 -2
- package/es/modal/index.d.ts +2 -2
- package/es/modal/index.js +3 -2
- package/es/modal/src/modal.js +67 -56
- package/es/modal/style.css +12 -12
- package/es/optgroup/index.d.ts +2 -2
- package/es/optgroup/index.js +3 -2
- package/es/option/index.d.ts +2 -2
- package/es/option/index.js +3 -2
- package/es/pager/index.d.ts +2 -2
- package/es/pager/index.js +3 -2
- package/es/pager/src/pager.js +3 -3
- package/es/pager/style.css +3 -1
- package/es/pulldown/index.d.ts +2 -2
- package/es/pulldown/index.js +3 -2
- package/es/pulldown/src/pulldown.js +7 -7
- package/es/radio/index.d.ts +2 -2
- package/es/radio/index.js +3 -2
- package/es/radio/src/button.js +1 -1
- package/es/radio/src/radio.js +5 -4
- package/es/radio/style.css +32 -55
- package/es/radio-button/index.d.ts +2 -2
- package/es/radio-button/index.js +3 -2
- package/es/radio-group/index.d.ts +2 -2
- package/es/radio-group/index.js +3 -2
- package/es/select/index.d.ts +2 -2
- package/es/select/index.js +3 -2
- package/es/select/src/select.js +13 -12
- package/es/select/style.css +1 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/index.d.ts +2 -2
- package/es/switch/index.js +3 -2
- package/es/switch/src/switch.js +1 -1
- package/es/table/index.d.ts +2 -2
- package/es/table/index.js +3 -2
- package/es/table/src/body.js +38 -34
- package/es/table/src/cell.js +16 -28
- package/es/table/src/columnInfo.js +4 -4
- package/es/table/src/table.js +68 -62
- package/es/table/src/util.js +2 -2
- package/es/table/style.css +160 -139
- package/es/textarea/index.d.ts +2 -2
- package/es/textarea/index.js +3 -2
- package/es/textarea/src/textarea.js +5 -5
- package/es/toolbar/index.d.ts +2 -2
- package/es/toolbar/index.js +3 -2
- package/es/toolbar/src/toolbar.js +17 -24
- package/es/toolbar/style.css +23 -83
- package/es/tools/dom.js +2 -2
- package/es/tools/log.js +1 -1
- package/es/tools/vn.js +7 -0
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +3 -2
- package/es/tooltip/src/tooltip.js +22 -10
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/src/conf.js +43 -38
- package/es/v-x-e-table/src/interceptor.js +1 -1
- package/es/v-x-e-table/src/renderer.js +19 -15
- package/es/v-x-e-table/style.css +431 -459
- package/es/validator/index.d.ts +2 -2
- package/es/validator/index.js +3 -2
- package/es/vxe-button/index.d.ts +4 -0
- package/es/vxe-button/index.js +3 -0
- package/es/vxe-button/style.css +411 -0
- package/es/vxe-checkbox/index.d.ts +4 -0
- package/es/vxe-checkbox/index.js +3 -0
- package/es/vxe-checkbox/style.css +262 -0
- package/es/vxe-checkbox-group/index.d.ts +4 -0
- package/es/vxe-checkbox-group/index.js +3 -0
- package/es/vxe-checkbox-group/style.css +25 -0
- package/es/vxe-colgroup/index.d.ts +4 -0
- package/es/vxe-colgroup/index.js +3 -0
- package/es/vxe-colgroup/style.css +25 -0
- package/es/vxe-column/index.d.ts +4 -0
- package/es/vxe-column/index.js +3 -0
- package/es/vxe-column/style.css +25 -0
- package/es/vxe-form/index.d.ts +4 -0
- package/es/vxe-form/index.js +3 -0
- package/es/vxe-form/style.css +290 -0
- package/es/vxe-form-gather/index.d.ts +4 -0
- package/es/vxe-form-gather/index.js +3 -0
- package/es/vxe-form-gather/style.css +25 -0
- package/es/vxe-form-item/index.d.ts +4 -0
- package/es/vxe-form-item/index.js +3 -0
- package/es/vxe-form-item/style.css +25 -0
- package/es/vxe-grid/index.d.ts +4 -0
- package/es/vxe-grid/index.js +3 -0
- package/es/vxe-grid/style.css +78 -0
- package/es/vxe-icon/index.d.ts +4 -0
- package/es/vxe-icon/index.js +3 -0
- package/es/vxe-icon/style.css +456 -0
- package/es/vxe-input/index.d.ts +4 -0
- package/es/vxe-input/index.js +3 -0
- package/es/vxe-input/style.css +829 -0
- package/es/vxe-list/index.d.ts +4 -0
- package/es/vxe-list/index.js +3 -0
- package/es/vxe-list/style.css +46 -0
- package/es/vxe-modal/index.d.ts +4 -0
- package/es/vxe-modal/index.js +3 -0
- package/es/vxe-modal/style.css +284 -0
- package/es/vxe-module-edit/index.d.ts +4 -0
- package/es/vxe-module-edit/index.js +3 -0
- package/es/vxe-module-edit/style.css +25 -0
- package/es/vxe-module-export/index.d.ts +4 -0
- package/es/vxe-module-export/index.js +3 -0
- package/es/vxe-module-export/style.css +184 -0
- package/es/vxe-module-filter/index.d.ts +4 -0
- package/es/vxe-module-filter/index.js +3 -0
- package/es/vxe-module-filter/style.css +141 -0
- package/es/vxe-module-keyboard/index.d.ts +4 -0
- package/es/vxe-module-keyboard/index.js +3 -0
- package/es/vxe-module-keyboard/style.css +25 -0
- package/es/vxe-module-menu/index.d.ts +4 -0
- package/es/vxe-module-menu/index.js +3 -0
- package/es/vxe-module-menu/style.css +121 -0
- package/es/vxe-module-validator/index.d.ts +4 -0
- package/es/vxe-module-validator/index.js +3 -0
- package/es/vxe-module-validator/style.css +25 -0
- package/es/vxe-optgroup/index.d.ts +4 -0
- package/es/vxe-optgroup/index.js +3 -0
- package/es/vxe-optgroup/style.css +25 -0
- package/es/vxe-option/index.d.ts +4 -0
- package/es/vxe-option/index.js +3 -0
- package/es/vxe-option/style.css +25 -0
- package/es/vxe-pager/index.d.ts +4 -0
- package/es/vxe-pager/index.js +3 -0
- package/es/vxe-pager/style.css +293 -0
- package/es/vxe-pulldown/index.d.ts +4 -0
- package/es/vxe-pulldown/index.js +3 -0
- package/es/vxe-pulldown/style.css +73 -0
- package/es/vxe-radio/index.d.ts +4 -0
- package/es/vxe-radio/index.js +3 -0
- package/es/vxe-radio/style.css +296 -0
- package/es/vxe-radio-button/index.d.ts +4 -0
- package/es/vxe-radio-button/index.js +3 -0
- package/es/vxe-radio-button/style.css +25 -0
- package/es/vxe-radio-group/index.d.ts +4 -0
- package/es/vxe-radio-group/index.js +3 -0
- package/es/vxe-radio-group/style.css +25 -0
- package/es/vxe-select/index.d.ts +4 -0
- package/es/vxe-select/index.js +3 -0
- package/es/vxe-select/style.css +181 -0
- package/es/vxe-switch/index.d.ts +4 -0
- package/es/vxe-switch/index.js +3 -0
- package/es/vxe-switch/style.css +102 -0
- package/es/vxe-table/index.d.ts +3 -3
- package/es/vxe-table/index.js +3 -3
- package/es/vxe-table/style.css +1026 -0
- package/es/vxe-textarea/index.d.ts +4 -0
- package/es/vxe-textarea/index.js +3 -0
- package/es/vxe-textarea/style.css +111 -0
- package/es/vxe-toolbar/index.d.ts +4 -0
- package/es/vxe-toolbar/index.js +3 -0
- package/es/vxe-toolbar/style.css +234 -0
- package/es/vxe-tooltip/index.d.ts +4 -0
- package/es/vxe-tooltip/index.js +3 -0
- package/es/vxe-tooltip/style.css +111 -0
- package/helper/vetur/attributes.json +17 -5
- package/helper/vetur/tags.json +10 -2
- package/lib/all.js +7 -21
- package/lib/all.min.js +1 -1
- package/lib/button/index.d.ts +2 -2
- package/lib/button/index.js +5 -3
- package/lib/button/index.min.js +1 -1
- package/lib/button/src/button.js +10 -10
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +15 -61
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +5 -3
- package/lib/checkbox/index.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +5 -3
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/style/style.css +37 -58
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.d.ts +2 -2
- package/lib/checkbox-group/index.js +5 -3
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/colgroup/index.d.ts +2 -2
- package/lib/colgroup/index.js +5 -3
- package/lib/colgroup/index.min.js +1 -1
- package/lib/column/index.d.ts +2 -2
- package/lib/column/index.js +5 -3
- package/lib/column/index.min.js +1 -1
- package/lib/edit/index.d.ts +2 -2
- package/lib/edit/index.js +5 -3
- package/lib/edit/index.min.js +1 -1
- package/lib/edit/src/hook.js +14 -13
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/export/index.d.ts +2 -2
- package/lib/export/index.js +5 -3
- package/lib/export/index.min.js +1 -1
- package/lib/export/src/export-panel.js +11 -17
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/hook.js +50 -50
- package/lib/export/src/hook.min.js +1 -1
- package/lib/export/src/import-panel.js +3 -3
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/util.js +4 -4
- package/lib/export/src/util.min.js +1 -1
- package/lib/export/style/style.css +23 -90
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/index.d.ts +2 -2
- package/lib/filter/index.js +5 -3
- package/lib/filter/index.min.js +1 -1
- package/lib/filter/src/hook.js +5 -5
- package/lib/filter/src/hook.min.js +1 -1
- package/lib/filter/src/panel.js +11 -15
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/filter/style/style.css +23 -87
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/src/footer.js +14 -14
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/index.d.ts +2 -2
- package/lib/form/index.js +5 -3
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-config-item.js +9 -7
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +9 -7
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +9 -6
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/style/style.css +0 -3
- package/lib/form/style/style.min.css +1 -1
- package/lib/form-gather/index.d.ts +2 -2
- package/lib/form-gather/index.js +5 -3
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-item/index.d.ts +2 -2
- package/lib/form-item/index.js +5 -3
- package/lib/form-item/index.min.js +1 -1
- package/lib/grid/index.d.ts +2 -2
- package/lib/grid/index.js +5 -3
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +17 -13
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/header/src/header.js +17 -17
- package/lib/header/src/header.min.js +1 -1
- package/lib/icon/index.d.ts +2 -2
- package/lib/icon/index.js +19 -6
- package/lib/icon/index.min.js +1 -1
- package/lib/icon/src/icon.js +34 -0
- package/lib/icon/src/icon.min.js +1 -0
- package/lib/icon/style/style.css +443 -495
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +1602 -1459
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.d.ts +2 -2
- package/lib/input/index.js +5 -3
- package/lib/input/index.min.js +1 -1
- package/lib/input/src/input.js +23 -23
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/style/style.css +13 -4
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/index.d.ts +2 -2
- package/lib/keyboard/index.js +5 -3
- package/lib/keyboard/index.min.js +1 -1
- package/lib/keyboard/src/hook.js +7 -7
- package/lib/keyboard/src/hook.min.js +1 -1
- package/lib/list/index.d.ts +2 -2
- package/lib/list/index.js +5 -3
- package/lib/list/index.min.js +1 -1
- package/lib/list/src/list.js +5 -5
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/index.js +5 -3
- package/lib/loading/index.min.js +1 -1
- package/lib/loading/src/loading.js +1 -1
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/menu/index.d.ts +2 -2
- package/lib/menu/index.js +5 -3
- package/lib/menu/index.min.js +1 -1
- package/lib/menu/src/hooks.js +9 -9
- package/lib/menu/src/hooks.min.js +1 -1
- package/lib/menu/src/panel.js +2 -2
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +5 -3
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +72 -57
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +12 -12
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.d.ts +2 -2
- package/lib/optgroup/index.js +5 -3
- package/lib/optgroup/index.min.js +1 -1
- package/lib/option/index.d.ts +2 -2
- package/lib/option/index.js +5 -3
- package/lib/option/index.min.js +1 -1
- package/lib/pager/index.d.ts +2 -2
- package/lib/pager/index.js +5 -3
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +2 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +3 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.d.ts +2 -2
- package/lib/pulldown/index.js +5 -3
- package/lib/pulldown/index.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +7 -7
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/radio/index.d.ts +2 -2
- package/lib/radio/index.js +5 -3
- package/lib/radio/index.min.js +1 -1
- package/lib/radio/src/button.js +1 -1
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/radio.js +4 -4
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/radio/style/style.css +32 -55
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.d.ts +2 -2
- package/lib/radio-button/index.js +5 -3
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-group/index.d.ts +2 -2
- package/lib/radio-group/index.js +5 -3
- package/lib/radio-group/index.min.js +1 -1
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +5 -3
- package/lib/select/index.min.js +1 -1
- package/lib/select/src/select.js +14 -12
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +1 -0
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.d.ts +2 -2
- package/lib/switch/index.js +5 -3
- package/lib/switch/index.min.js +1 -1
- package/lib/switch/src/switch.js +1 -1
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table/index.d.ts +2 -2
- package/lib/table/index.js +5 -3
- package/lib/table/index.min.js +1 -1
- package/lib/table/src/body.js +36 -34
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +21 -29
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/columnInfo.js +4 -4
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +69 -63
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +2 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +160 -139
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.d.ts +2 -2
- package/lib/textarea/index.js +5 -3
- package/lib/textarea/index.min.js +1 -1
- package/lib/textarea/src/textarea.js +6 -6
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/toolbar/index.d.ts +2 -2
- package/lib/toolbar/index.js +5 -3
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +20 -22
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +23 -83
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +2 -2
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/vn.js +13 -0
- package/lib/tools/vn.min.js +1 -1
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +5 -3
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +22 -8
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +43 -38
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/interceptor.js +1 -1
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +18 -16
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +431 -459
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/index.d.ts +2 -2
- package/lib/validator/index.js +5 -3
- package/lib/validator/index.min.js +1 -1
- package/lib/vxe-button/index.d.ts +4 -0
- package/lib/vxe-button/index.js +30 -0
- package/lib/vxe-button/index.min.js +1 -0
- package/lib/vxe-button/style/style.css +411 -0
- package/lib/vxe-button/style/style.min.css +1 -0
- package/lib/vxe-checkbox/index.d.ts +4 -0
- package/lib/vxe-checkbox/index.js +30 -0
- package/lib/vxe-checkbox/index.min.js +1 -0
- package/lib/vxe-checkbox/style/style.css +262 -0
- package/lib/vxe-checkbox/style/style.min.css +1 -0
- package/lib/vxe-checkbox-group/index.d.ts +4 -0
- package/lib/vxe-checkbox-group/index.js +30 -0
- package/lib/vxe-checkbox-group/index.min.js +1 -0
- package/lib/vxe-checkbox-group/style/style.css +25 -0
- package/lib/vxe-checkbox-group/style/style.min.css +0 -0
- package/lib/vxe-colgroup/index.d.ts +4 -0
- package/lib/vxe-colgroup/index.js +30 -0
- package/lib/vxe-colgroup/index.min.js +1 -0
- package/lib/vxe-colgroup/style/style.css +25 -0
- package/lib/vxe-colgroup/style/style.min.css +0 -0
- package/lib/vxe-column/index.d.ts +4 -0
- package/lib/vxe-column/index.js +30 -0
- package/lib/vxe-column/index.min.js +1 -0
- package/lib/vxe-column/style/style.css +25 -0
- package/lib/vxe-column/style/style.min.css +0 -0
- package/lib/vxe-form/index.d.ts +4 -0
- package/lib/vxe-form/index.js +30 -0
- package/lib/vxe-form/index.min.js +1 -0
- package/lib/vxe-form/style/style.css +290 -0
- package/lib/vxe-form/style/style.min.css +1 -0
- package/lib/vxe-form-gather/index.d.ts +4 -0
- package/lib/vxe-form-gather/index.js +30 -0
- package/lib/vxe-form-gather/index.min.js +1 -0
- package/lib/vxe-form-gather/style/style.css +25 -0
- package/lib/vxe-form-gather/style/style.min.css +0 -0
- package/lib/vxe-form-item/index.d.ts +4 -0
- package/lib/vxe-form-item/index.js +30 -0
- package/lib/vxe-form-item/index.min.js +1 -0
- package/lib/vxe-form-item/style/style.css +25 -0
- package/lib/vxe-form-item/style/style.min.css +0 -0
- package/lib/vxe-grid/index.d.ts +4 -0
- package/lib/vxe-grid/index.js +30 -0
- package/lib/vxe-grid/index.min.js +1 -0
- package/lib/vxe-grid/style/style.css +78 -0
- package/lib/vxe-grid/style/style.min.css +1 -0
- package/lib/vxe-icon/index.d.ts +4 -0
- package/lib/vxe-icon/index.js +30 -0
- package/lib/vxe-icon/index.min.js +1 -0
- package/lib/vxe-icon/style/style.css +456 -0
- package/lib/vxe-icon/style/style.min.css +1 -0
- package/lib/vxe-input/index.d.ts +4 -0
- package/lib/vxe-input/index.js +30 -0
- package/lib/vxe-input/index.min.js +1 -0
- package/lib/vxe-input/style/style.css +829 -0
- package/lib/vxe-input/style/style.min.css +1 -0
- package/lib/vxe-list/index.d.ts +4 -0
- package/lib/vxe-list/index.js +30 -0
- package/lib/vxe-list/index.min.js +1 -0
- package/lib/vxe-list/style/style.css +46 -0
- package/lib/vxe-list/style/style.min.css +1 -0
- package/lib/vxe-modal/index.d.ts +4 -0
- package/lib/vxe-modal/index.js +30 -0
- package/lib/vxe-modal/index.min.js +1 -0
- package/lib/vxe-modal/style/style.css +284 -0
- package/lib/vxe-modal/style/style.min.css +1 -0
- package/lib/vxe-module-edit/index.d.ts +4 -0
- package/lib/vxe-module-edit/index.js +30 -0
- package/lib/vxe-module-edit/index.min.js +1 -0
- package/lib/vxe-module-edit/style/style.css +25 -0
- package/lib/vxe-module-edit/style/style.min.css +0 -0
- package/lib/vxe-module-export/index.d.ts +4 -0
- package/lib/vxe-module-export/index.js +30 -0
- package/lib/vxe-module-export/index.min.js +1 -0
- package/lib/vxe-module-export/style/style.css +184 -0
- package/lib/vxe-module-export/style/style.min.css +1 -0
- package/lib/vxe-module-filter/index.d.ts +4 -0
- package/lib/vxe-module-filter/index.js +30 -0
- package/lib/vxe-module-filter/index.min.js +1 -0
- package/lib/vxe-module-filter/style/style.css +141 -0
- package/lib/vxe-module-filter/style/style.min.css +1 -0
- package/lib/vxe-module-keyboard/index.d.ts +4 -0
- package/lib/vxe-module-keyboard/index.js +30 -0
- package/lib/vxe-module-keyboard/index.min.js +1 -0
- package/lib/vxe-module-keyboard/style/style.css +25 -0
- package/lib/vxe-module-keyboard/style/style.min.css +0 -0
- package/lib/vxe-module-menu/index.d.ts +4 -0
- package/lib/vxe-module-menu/index.js +30 -0
- package/lib/vxe-module-menu/index.min.js +1 -0
- package/lib/vxe-module-menu/style/style.css +121 -0
- package/lib/vxe-module-menu/style/style.min.css +1 -0
- package/lib/vxe-module-validator/index.d.ts +4 -0
- package/lib/vxe-module-validator/index.js +30 -0
- package/lib/vxe-module-validator/index.min.js +1 -0
- package/lib/vxe-module-validator/style/style.css +25 -0
- package/lib/vxe-module-validator/style/style.min.css +0 -0
- package/lib/vxe-optgroup/index.d.ts +4 -0
- package/lib/vxe-optgroup/index.js +30 -0
- package/lib/vxe-optgroup/index.min.js +1 -0
- package/lib/vxe-optgroup/style/style.css +25 -0
- package/lib/vxe-optgroup/style/style.min.css +0 -0
- package/lib/vxe-option/index.d.ts +4 -0
- package/lib/vxe-option/index.js +30 -0
- package/lib/vxe-option/index.min.js +1 -0
- package/lib/vxe-option/style/style.css +25 -0
- package/lib/vxe-option/style/style.min.css +0 -0
- package/lib/vxe-pager/index.d.ts +4 -0
- package/lib/vxe-pager/index.js +30 -0
- package/lib/vxe-pager/index.min.js +1 -0
- package/lib/vxe-pager/style/style.css +293 -0
- package/lib/vxe-pager/style/style.min.css +1 -0
- package/lib/vxe-pulldown/index.d.ts +4 -0
- package/lib/vxe-pulldown/index.js +30 -0
- package/lib/vxe-pulldown/index.min.js +1 -0
- package/lib/vxe-pulldown/style/style.css +73 -0
- package/lib/vxe-pulldown/style/style.min.css +1 -0
- package/lib/vxe-radio/index.d.ts +4 -0
- package/lib/vxe-radio/index.js +30 -0
- package/lib/vxe-radio/index.min.js +1 -0
- package/lib/vxe-radio/style/style.css +296 -0
- package/lib/vxe-radio/style/style.min.css +1 -0
- package/lib/vxe-radio-button/index.d.ts +4 -0
- package/lib/vxe-radio-button/index.js +30 -0
- package/lib/vxe-radio-button/index.min.js +1 -0
- package/lib/vxe-radio-button/style/style.css +25 -0
- package/lib/vxe-radio-button/style/style.min.css +0 -0
- package/lib/vxe-radio-group/index.d.ts +4 -0
- package/lib/vxe-radio-group/index.js +30 -0
- package/lib/vxe-radio-group/index.min.js +1 -0
- package/lib/vxe-radio-group/style/style.css +25 -0
- package/lib/vxe-radio-group/style/style.min.css +0 -0
- package/lib/vxe-select/index.d.ts +4 -0
- package/lib/vxe-select/index.js +30 -0
- package/lib/vxe-select/index.min.js +1 -0
- package/lib/vxe-select/style/style.css +181 -0
- package/lib/vxe-select/style/style.min.css +1 -0
- package/lib/vxe-switch/index.d.ts +4 -0
- package/lib/vxe-switch/index.js +30 -0
- package/lib/vxe-switch/index.min.js +1 -0
- package/lib/vxe-switch/style/style.css +102 -0
- package/lib/vxe-switch/style/style.min.css +1 -0
- package/lib/vxe-table/index.d.ts +3 -3
- package/lib/vxe-table/index.js +12 -5
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +1026 -0
- package/lib/vxe-table/style/style.min.css +1 -0
- package/lib/vxe-textarea/index.d.ts +4 -0
- package/lib/vxe-textarea/index.js +30 -0
- package/lib/vxe-textarea/index.min.js +1 -0
- package/lib/vxe-textarea/style/style.css +111 -0
- package/lib/vxe-textarea/style/style.min.css +1 -0
- package/lib/vxe-toolbar/index.d.ts +4 -0
- package/lib/vxe-toolbar/index.js +30 -0
- package/lib/vxe-toolbar/index.min.js +1 -0
- package/lib/vxe-toolbar/style/style.css +234 -0
- package/lib/vxe-toolbar/style/style.min.css +1 -0
- package/lib/vxe-tooltip/index.d.ts +4 -0
- package/lib/vxe-tooltip/index.js +30 -0
- package/lib/vxe-tooltip/index.min.js +1 -0
- package/lib/vxe-tooltip/style/style.css +111 -0
- package/lib/vxe-tooltip/style/style.min.css +1 -0
- package/package.json +6 -6
- package/packages/all.ts +64 -68
- package/packages/button/index.d.ts +2 -2
- package/packages/button/index.ts +4 -2
- package/packages/checkbox/index.d.ts +2 -2
- package/packages/checkbox/index.ts +4 -2
- package/packages/checkbox/src/checkbox.ts +7 -4
- package/packages/checkbox-group/index.d.ts +2 -2
- package/packages/checkbox-group/index.ts +4 -2
- package/packages/colgroup/index.d.ts +2 -2
- package/packages/colgroup/index.ts +4 -2
- package/packages/column/index.d.ts +2 -2
- package/packages/column/index.ts +4 -2
- package/packages/edit/index.d.ts +2 -2
- package/packages/edit/index.ts +4 -2
- package/packages/edit/src/hook.ts +18 -6
- package/packages/export/index.d.ts +2 -2
- package/packages/export/index.ts +4 -2
- package/packages/export/src/export-panel.ts +9 -19
- package/packages/filter/index.d.ts +2 -2
- package/packages/filter/index.ts +4 -2
- package/packages/filter/src/panel.ts +8 -16
- package/packages/form/index.d.ts +2 -2
- package/packages/form/index.ts +4 -2
- package/packages/form/src/form-config-item.ts +4 -3
- package/packages/form/src/form-item.ts +4 -3
- package/packages/form/src/form.ts +6 -4
- package/packages/form-gather/index.d.ts +2 -2
- package/packages/form-gather/index.ts +4 -2
- package/packages/form-item/index.d.ts +2 -2
- package/packages/form-item/index.ts +4 -2
- package/packages/grid/index.d.ts +2 -2
- package/packages/grid/index.ts +4 -2
- package/packages/grid/src/grid.ts +2 -1
- package/packages/icon/index.d.ts +2 -2
- package/packages/icon/index.ts +14 -5
- package/packages/icon/src/icon.ts +24 -0
- package/packages/input/index.d.ts +2 -2
- package/packages/input/index.ts +4 -2
- package/packages/input/src/input.ts +3 -3
- package/packages/keyboard/index.d.ts +2 -2
- package/packages/keyboard/index.ts +4 -2
- package/packages/list/index.d.ts +2 -2
- package/packages/list/index.ts +4 -2
- package/packages/loading/index.ts +5 -3
- package/packages/menu/index.d.ts +2 -2
- package/packages/menu/index.ts +4 -2
- package/packages/modal/index.d.ts +2 -2
- package/packages/modal/index.ts +4 -2
- package/packages/modal/src/modal.ts +24 -9
- package/packages/optgroup/index.d.ts +2 -2
- package/packages/optgroup/index.ts +4 -2
- package/packages/option/index.d.ts +2 -2
- package/packages/option/index.ts +4 -2
- package/packages/pager/index.d.ts +2 -2
- package/packages/pager/index.ts +4 -2
- package/packages/pulldown/index.d.ts +2 -2
- package/packages/pulldown/index.ts +4 -2
- package/packages/radio/index.d.ts +2 -2
- package/packages/radio/index.ts +4 -2
- package/packages/radio/src/radio.ts +4 -3
- package/packages/radio-button/index.d.ts +2 -2
- package/packages/radio-button/index.ts +4 -2
- package/packages/radio-group/index.d.ts +2 -2
- package/packages/radio-group/index.ts +4 -2
- package/packages/select/index.d.ts +2 -2
- package/packages/select/index.ts +4 -2
- package/packages/select/src/select.ts +2 -1
- package/packages/switch/index.d.ts +2 -2
- package/packages/switch/index.ts +4 -2
- package/packages/table/index.d.ts +2 -2
- package/packages/table/index.ts +4 -2
- package/packages/table/src/cell.ts +18 -35
- package/packages/table/src/table.ts +14 -12
- package/packages/textarea/index.d.ts +2 -2
- package/packages/textarea/index.ts +4 -2
- package/packages/toolbar/index.d.ts +2 -2
- package/packages/toolbar/index.ts +4 -2
- package/packages/toolbar/src/toolbar.ts +14 -21
- package/packages/tools/vn.ts +10 -0
- package/packages/tooltip/index.d.ts +2 -2
- package/packages/tooltip/index.ts +4 -2
- package/packages/tooltip/src/tooltip.ts +8 -4
- package/packages/v-x-e-table/src/conf.ts +43 -38
- package/packages/validator/index.d.ts +2 -2
- package/packages/validator/index.ts +4 -2
- package/styles/base/checked.scss +44 -148
- package/styles/button.scss +5 -45
- package/styles/checkbox.scss +6 -65
- package/styles/export.scss +2 -38
- package/styles/filter.scss +2 -35
- package/styles/form.scss +0 -3
- package/styles/header.scss +0 -134
- package/styles/icon.scss +602 -713
- package/styles/input.scss +8 -0
- package/styles/loading.scss +1 -1
- package/styles/modal.scss +19 -17
- package/styles/old-icon.scss +713 -0
- package/styles/pager.scss +2 -0
- package/styles/radio.scss +9 -77
- package/styles/select.scss +1 -0
- package/styles/table.scss +144 -21
- package/styles/toolbar.scss +2 -26
- package/styles/variable.scss +4 -4
- package/types/all.d.ts +6 -0
- package/types/button.d.ts +5 -1
- package/types/checkbox-group.d.ts +5 -1
- package/types/checkbox.d.ts +5 -1
- package/types/colgroup.d.ts +5 -1
- package/types/column.d.ts +16 -12
- package/types/component.d.ts +3 -1
- package/types/edit.d.ts +4 -0
- package/types/export.d.ts +4 -0
- package/types/filter.d.ts +4 -0
- package/types/footer.d.ts +2 -1
- package/types/form-gather.d.ts +5 -1
- package/types/form-item.d.ts +6 -1
- package/types/form.d.ts +11 -3
- package/types/grid.d.ts +9 -5
- package/types/header.d.ts +2 -1
- package/types/icon.d.ts +50 -2
- package/types/input.d.ts +5 -1
- package/types/keyboard.d.ts +4 -0
- package/types/list.d.ts +5 -1
- package/types/menu.d.ts +5 -1
- package/types/modal.d.ts +7 -2
- package/types/optgroup.d.ts +5 -1
- package/types/option.d.ts +5 -1
- package/types/pager.d.ts +5 -1
- package/types/pulldown.d.ts +4 -0
- package/types/radio-button.d.ts +5 -1
- package/types/radio-group.d.ts +5 -1
- package/types/radio.d.ts +5 -1
- package/types/select.d.ts +5 -1
- package/types/switch.d.ts +5 -1
- package/types/table.d.ts +7 -3
- package/types/textarea.d.ts +5 -1
- package/types/toolbar.d.ts +5 -1
- package/types/tooltip.d.ts +5 -1
- package/types/v-x-e-table/renderer.d.ts +3 -2
- package/types/validator.d.ts +4 -0
- package/es/footer/index.d.ts +0 -4
- package/es/footer/style.css +0 -38
- package/es/header/index.d.ts +0 -4
- package/es/header/style.css +0 -120
- package/lib/footer/index.d.ts +0 -4
- package/lib/footer/style/index.js +0 -1
- package/lib/footer/style/style.css +0 -38
- package/lib/footer/style/style.min.css +0 -1
- package/lib/header/index.d.ts +0 -4
- package/lib/header/style/index.js +0 -1
- package/lib/header/style/style.css +0 -120
- package/lib/header/style/style.min.css +0 -1
- package/lib/vxe-table/style/index.js +0 -1
- package/packages/footer/index.d.ts +0 -4
- package/packages/header/index.d.ts +0 -4
- package/packages/vxe-table/index.d.ts +0 -4
- package/packages/vxe-table/index.ts +0 -4
package/es/export/src/hook.js
CHANGED
|
@@ -88,19 +88,19 @@ function getFooterData(opts, footerTableData) {
|
|
|
88
88
|
function getCsvCellTypeLabel(column, cellValue) {
|
|
89
89
|
if (cellValue) {
|
|
90
90
|
if (column.type === 'seq') {
|
|
91
|
-
return "\t"
|
|
91
|
+
return "\t".concat(cellValue);
|
|
92
92
|
}
|
|
93
93
|
switch (column.cellType) {
|
|
94
94
|
case 'string':
|
|
95
95
|
if (!isNaN(cellValue)) {
|
|
96
|
-
return "\t"
|
|
96
|
+
return "\t".concat(cellValue);
|
|
97
97
|
}
|
|
98
98
|
break;
|
|
99
99
|
case 'number':
|
|
100
100
|
break;
|
|
101
101
|
default:
|
|
102
102
|
if (cellValue.length >= 12 && !isNaN(cellValue)) {
|
|
103
|
-
return "\t"
|
|
103
|
+
return "\t".concat(cellValue);
|
|
104
104
|
}
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
@@ -109,7 +109,7 @@ function getCsvCellTypeLabel(column, cellValue) {
|
|
|
109
109
|
}
|
|
110
110
|
function toTxtCellLabel(val) {
|
|
111
111
|
if (/[",\s\n]/.test(val)) {
|
|
112
|
-
return "\""
|
|
112
|
+
return "\"".concat(val.replace(/"/g, '""'), "\"");
|
|
113
113
|
}
|
|
114
114
|
return val;
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@ function getElementsByTagName(elem, qualifiedName) {
|
|
|
117
117
|
return elem.getElementsByTagName(qualifiedName);
|
|
118
118
|
}
|
|
119
119
|
function getTxtCellKey(now) {
|
|
120
|
-
return "#"
|
|
120
|
+
return "#".concat(now, "@").concat(XEUtils.uniqueId());
|
|
121
121
|
}
|
|
122
122
|
function replaceTxtCell(cell, vMaps) {
|
|
123
123
|
return cell.replace(/#\d+@\d+/g, function (key) { return XEUtils.hasOwnProp(vMaps, key) ? vMaps[key] : key; });
|
|
@@ -496,19 +496,19 @@ var tableExportHook = {
|
|
|
496
496
|
var allCls = 'check-all';
|
|
497
497
|
var clss = [
|
|
498
498
|
'vxe-table',
|
|
499
|
-
"border--"
|
|
499
|
+
"border--".concat(toTableBorder(border)),
|
|
500
500
|
isPrint ? 'is--print' : '',
|
|
501
501
|
isHeader ? 'is--header' : ''
|
|
502
502
|
].filter(function (cls) { return cls; });
|
|
503
503
|
var tables = [
|
|
504
|
-
"<table class=\""
|
|
505
|
-
"<colgroup>"
|
|
504
|
+
"<table class=\"".concat(clss.join(' '), "\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"),
|
|
505
|
+
"<colgroup>".concat(columns.map(function (column) { return "<col style=\"width:".concat(column.renderWidth, "px\">"); }).join(''), "</colgroup>")
|
|
506
506
|
];
|
|
507
507
|
if (isHeader) {
|
|
508
508
|
tables.push('<thead>');
|
|
509
509
|
if (isColgroup && !original) {
|
|
510
510
|
colgroups.forEach(function (cols) {
|
|
511
|
-
tables.push("<tr>"
|
|
511
|
+
tables.push("<tr>".concat(cols.map(function (column) {
|
|
512
512
|
var headAlign = column.headerAlign || column.align || allHeaderAlign || allAlign;
|
|
513
513
|
var classNames = hasEllipsis(column, 'showHeaderOverflow', allColumnHeaderOverflow) ? ['col--ellipsis'] : [];
|
|
514
514
|
var cellTitle = getHeaderTitle(opts, column);
|
|
@@ -522,28 +522,28 @@ var tableExportHook = {
|
|
|
522
522
|
}, { children: 'childNodes' });
|
|
523
523
|
var cellWidth = childWidth - countChild;
|
|
524
524
|
if (headAlign) {
|
|
525
|
-
classNames.push("col--"
|
|
525
|
+
classNames.push("col--".concat(headAlign));
|
|
526
526
|
}
|
|
527
527
|
if (column.type === 'checkbox') {
|
|
528
|
-
return "<th class=\""
|
|
528
|
+
return "<th class=\"".concat(classNames.join(' '), "\" colspan=\"").concat(column._colSpan, "\" rowspan=\"").concat(column._rowSpan, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(cellWidth, "px\""), "><input type=\"checkbox\" class=\"").concat(allCls, "\" ").concat(isAllSelected ? 'checked' : '', "><span>").concat(cellTitle, "</span></div></th>");
|
|
529
529
|
}
|
|
530
|
-
return "<th class=\""
|
|
531
|
-
}).join('')
|
|
530
|
+
return "<th class=\"".concat(classNames.join(' '), "\" colspan=\"").concat(column._colSpan, "\" rowspan=\"").concat(column._rowSpan, "\" title=\"").concat(cellTitle, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(cellWidth, "px\""), "><span>").concat(formatText(cellTitle, true), "</span></div></th>");
|
|
531
|
+
}).join(''), "</tr>"));
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
else {
|
|
535
|
-
tables.push("<tr>"
|
|
535
|
+
tables.push("<tr>".concat(columns.map(function (column) {
|
|
536
536
|
var headAlign = column.headerAlign || column.align || allHeaderAlign || allAlign;
|
|
537
537
|
var classNames = hasEllipsis(column, 'showHeaderOverflow', allColumnHeaderOverflow) ? ['col--ellipsis'] : [];
|
|
538
538
|
var cellTitle = getHeaderTitle(opts, column);
|
|
539
539
|
if (headAlign) {
|
|
540
|
-
classNames.push("col--"
|
|
540
|
+
classNames.push("col--".concat(headAlign));
|
|
541
541
|
}
|
|
542
542
|
if (column.type === 'checkbox') {
|
|
543
|
-
return "<th class=\""
|
|
543
|
+
return "<th class=\"".concat(classNames.join(' '), "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"checkbox\" class=\"").concat(allCls, "\" ").concat(isAllSelected ? 'checked' : '', "><span>").concat(cellTitle, "</span></div></th>");
|
|
544
544
|
}
|
|
545
|
-
return "<th class=\""
|
|
546
|
-
}).join('')
|
|
545
|
+
return "<th class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellTitle, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><span>").concat(formatText(cellTitle, true), "</span></div></th>");
|
|
546
|
+
}).join(''), "</tr>"));
|
|
547
547
|
}
|
|
548
548
|
tables.push('</thead>');
|
|
549
549
|
}
|
|
@@ -556,29 +556,29 @@ var tableExportHook = {
|
|
|
556
556
|
var classNames = hasEllipsis(column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
|
|
557
557
|
var cellValue = item[column.id];
|
|
558
558
|
if (cellAlign) {
|
|
559
|
-
classNames.push("col--"
|
|
559
|
+
classNames.push("col--".concat(cellAlign));
|
|
560
560
|
}
|
|
561
561
|
if (column.treeNode) {
|
|
562
562
|
var treeIcon = '';
|
|
563
563
|
if (item._hasChild) {
|
|
564
|
-
treeIcon = "<i class=\""
|
|
564
|
+
treeIcon = "<i class=\"".concat(item._expand ? 'vxe-table--tree-fold-icon' : 'vxe-table--tree-unfold-icon', "\"></i>");
|
|
565
565
|
}
|
|
566
566
|
classNames.push('vxe-table--tree-node');
|
|
567
567
|
if (column.type === 'radio') {
|
|
568
|
-
return "<td class=\""
|
|
568
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><div class=\"vxe-table--tree-node-wrapper\" style=\"padding-left: ").concat(item._level * treeOpts.indent, "px\"><div class=\"vxe-table--tree-icon-wrapper\">").concat(treeIcon, "</div><div class=\"vxe-table--tree-cell\"><input type=\"radio\" name=\"radio_").concat(id, "\" ").concat(item._radioDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._radioLabel, "</span></div></div></div></td>");
|
|
569
569
|
}
|
|
570
570
|
else if (column.type === 'checkbox') {
|
|
571
|
-
return "<td class=\""
|
|
571
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><div class=\"vxe-table--tree-node-wrapper\" style=\"padding-left: ").concat(item._level * treeOpts.indent, "px\"><div class=\"vxe-table--tree-icon-wrapper\">").concat(treeIcon, "</div><div class=\"vxe-table--tree-cell\"><input type=\"checkbox\" ").concat(item._checkboxDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._checkboxLabel, "</span></div></div></div></td>");
|
|
572
572
|
}
|
|
573
|
-
return "<td class=\""
|
|
573
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><div class=\"vxe-table--tree-node-wrapper\" style=\"padding-left: ").concat(item._level * treeOpts.indent, "px\"><div class=\"vxe-table--tree-icon-wrapper\">").concat(treeIcon, "</div><div class=\"vxe-table--tree-cell\">").concat(cellValue, "</div></div></div></td>");
|
|
574
574
|
}
|
|
575
575
|
if (column.type === 'radio') {
|
|
576
|
-
return "<td class=\""
|
|
576
|
+
return "<td class=\"".concat(classNames.join(' '), "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"radio\" name=\"radio_").concat(id, "\" ").concat(item._radioDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._radioLabel, "</span></div></td>");
|
|
577
577
|
}
|
|
578
578
|
else if (column.type === 'checkbox') {
|
|
579
|
-
return "<td class=\""
|
|
579
|
+
return "<td class=\"".concat(classNames.join(' '), "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"checkbox\" ").concat(item._checkboxDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._checkboxLabel, "</span></div></td>");
|
|
580
580
|
}
|
|
581
|
-
return "<td class=\""
|
|
581
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), ">").concat(formatText(cellValue, true), "</div></td>");
|
|
582
582
|
}).join('') + '</tr>');
|
|
583
583
|
});
|
|
584
584
|
}
|
|
@@ -608,15 +608,15 @@ var tableExportHook = {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
if (cellAlign) {
|
|
611
|
-
classNames.push("col--"
|
|
611
|
+
classNames.push("col--".concat(cellAlign));
|
|
612
612
|
}
|
|
613
613
|
if (column.type === 'radio') {
|
|
614
|
-
return "<td class=\""
|
|
614
|
+
return "<td class=\"".concat(classNames.join(' '), "\" rowspan=\"").concat(rowSpan, "\" colspan=\"").concat(colSpan, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"radio\" name=\"radio_").concat(id, "\" ").concat(item._radioDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._radioLabel, "</span></div></td>");
|
|
615
615
|
}
|
|
616
616
|
else if (column.type === 'checkbox') {
|
|
617
|
-
return "<td class=\""
|
|
617
|
+
return "<td class=\"".concat(classNames.join(' '), "\" rowspan=\"").concat(rowSpan, "\" colspan=\"").concat(colSpan, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), "><input type=\"checkbox\" ").concat(item._checkboxDisabled ? 'disabled ' : '').concat(getBooleanValue(cellValue) ? 'checked' : '', "><span>").concat(item._checkboxLabel, "</span></div></td>");
|
|
618
618
|
}
|
|
619
|
-
return "<td class=\""
|
|
619
|
+
return "<td class=\"".concat(classNames.join(' '), "\" rowspan=\"").concat(rowSpan, "\" colspan=\"").concat(colSpan, "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), ">").concat(formatText(cellValue, true), "</div></td>");
|
|
620
620
|
}).join('') + '</tr>');
|
|
621
621
|
});
|
|
622
622
|
}
|
|
@@ -628,21 +628,21 @@ var tableExportHook = {
|
|
|
628
628
|
if (footers.length) {
|
|
629
629
|
tables.push('<tfoot>');
|
|
630
630
|
footers.forEach(function (rows) {
|
|
631
|
-
tables.push("<tr>"
|
|
631
|
+
tables.push("<tr>".concat(columns.map(function (column) {
|
|
632
632
|
var footAlign = column.footerAlign || column.align || allFooterAlign || allAlign;
|
|
633
633
|
var classNames = hasEllipsis(column, 'showOverflow', allColumnOverflow) ? ['col--ellipsis'] : [];
|
|
634
634
|
var cellValue = getFooterCellValue(opts, rows, column);
|
|
635
635
|
if (footAlign) {
|
|
636
|
-
classNames.push("col--"
|
|
636
|
+
classNames.push("col--".concat(footAlign));
|
|
637
637
|
}
|
|
638
|
-
return "<td class=\""
|
|
639
|
-
}).join('')
|
|
638
|
+
return "<td class=\"".concat(classNames.join(' '), "\" title=\"").concat(cellValue, "\"><div ").concat(isPrint ? '' : "style=\"width: ".concat(column.renderWidth, "px\""), ">").concat(formatText(cellValue, true), "</div></td>");
|
|
639
|
+
}).join(''), "</tr>"));
|
|
640
640
|
});
|
|
641
641
|
tables.push('</tfoot>');
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
// 是否半选状态
|
|
645
|
-
var script = !isAllSelected && isIndeterminate ? "<script>(function(){var a=document.querySelector(\"."
|
|
645
|
+
var script = !isAllSelected && isIndeterminate ? "<script>(function(){var a=document.querySelector(\".".concat(allCls, "\");if(a){a.indeterminate=true}})()</script>") : '';
|
|
646
646
|
tables.push('</table>', script);
|
|
647
647
|
return isPrint ? tables.join('') : createHtmlPage(opts, tables.join(''));
|
|
648
648
|
};
|
|
@@ -662,24 +662,24 @@ var tableExportHook = {
|
|
|
662
662
|
'<ProtectStructure>False</ProtectStructure>',
|
|
663
663
|
'<ProtectWindows>False</ProtectWindows>',
|
|
664
664
|
'</ExcelWorkbook>',
|
|
665
|
-
"<Worksheet ss:Name=\""
|
|
665
|
+
"<Worksheet ss:Name=\"".concat(opts.sheetName, "\">"),
|
|
666
666
|
'<Table>',
|
|
667
|
-
columns.map(function (column) { return "<Column ss:Width=\""
|
|
667
|
+
columns.map(function (column) { return "<Column ss:Width=\"".concat(column.renderWidth, "\"/>"); }).join('')
|
|
668
668
|
].join('');
|
|
669
669
|
if (opts.isHeader) {
|
|
670
|
-
xml += "<Row>"
|
|
670
|
+
xml += "<Row>".concat(columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">".concat(getHeaderTitle(opts, column), "</Data></Cell>"); }).join(''), "</Row>");
|
|
671
671
|
}
|
|
672
672
|
datas.forEach(function (row) {
|
|
673
|
-
xml += '<Row>' + columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">"
|
|
673
|
+
xml += '<Row>' + columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">".concat(row[column.id], "</Data></Cell>"); }).join('') + '</Row>';
|
|
674
674
|
});
|
|
675
675
|
if (opts.isFooter) {
|
|
676
676
|
var footerTableData = reactData.footerTableData;
|
|
677
677
|
var footers = getFooterData(opts, footerTableData);
|
|
678
678
|
footers.forEach(function (rows) {
|
|
679
|
-
xml += "<Row>"
|
|
679
|
+
xml += "<Row>".concat(columns.map(function (column) { return "<Cell><Data ss:Type=\"String\">".concat(getFooterCellValue(opts, rows, column), "</Data></Cell>"); }).join(''), "</Row>");
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
return xml
|
|
682
|
+
return "".concat(xml, "</Table></Worksheet></Workbook>");
|
|
683
683
|
};
|
|
684
684
|
var getContent = function (opts, columns, datas) {
|
|
685
685
|
if (columns.length) {
|
|
@@ -901,13 +901,13 @@ var tableExportHook = {
|
|
|
901
901
|
var typeList = types.map(function (value) {
|
|
902
902
|
return {
|
|
903
903
|
value: value,
|
|
904
|
-
label: "vxe.export.types."
|
|
904
|
+
label: "vxe.export.types.".concat(value)
|
|
905
905
|
};
|
|
906
906
|
});
|
|
907
907
|
var modeList = modes.map(function (value) {
|
|
908
908
|
return {
|
|
909
909
|
value: value,
|
|
910
|
-
label: "vxe.export.modes."
|
|
910
|
+
label: "vxe.export.modes.".concat(value)
|
|
911
911
|
};
|
|
912
912
|
});
|
|
913
913
|
// 默认选中
|
|
@@ -1226,13 +1226,13 @@ var tableExportHook = {
|
|
|
1226
1226
|
var typeList = types.map(function (value) {
|
|
1227
1227
|
return {
|
|
1228
1228
|
value: value,
|
|
1229
|
-
label: "vxe.export.types."
|
|
1229
|
+
label: "vxe.export.types.".concat(value)
|
|
1230
1230
|
};
|
|
1231
1231
|
});
|
|
1232
1232
|
var modeList = defOpts.modes.map(function (value) {
|
|
1233
1233
|
return {
|
|
1234
1234
|
value: value,
|
|
1235
|
-
label: "vxe.import.modes."
|
|
1235
|
+
label: "vxe.import.modes.".concat(value)
|
|
1236
1236
|
};
|
|
1237
1237
|
});
|
|
1238
1238
|
Object.assign(importStore, {
|
|
@@ -21,7 +21,7 @@ export default defineComponent({
|
|
|
21
21
|
var refFileBtn = ref();
|
|
22
22
|
var computeSelectName = computed(function () {
|
|
23
23
|
var storeData = props.storeData;
|
|
24
|
-
return storeData.filename
|
|
24
|
+
return "".concat(storeData.filename, ".").concat(storeData.type);
|
|
25
25
|
});
|
|
26
26
|
var computeHasFile = computed(function () {
|
|
27
27
|
var storeData = props.storeData;
|
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
var selectItem = XEUtils.find(typeList, function (item) { return type === item.value; });
|
|
35
35
|
return selectItem ? GlobalConfig.i18n(selectItem.label) : '*.*';
|
|
36
36
|
}
|
|
37
|
-
return "*."
|
|
37
|
+
return "*.".concat(typeList.map(function (item) { return item.value; }).join(', *.'));
|
|
38
38
|
});
|
|
39
39
|
var clearFileEvent = function () {
|
|
40
40
|
var storeData = props.storeData;
|
package/es/export/src/util.js
CHANGED
|
@@ -17,7 +17,7 @@ export function createFrame() {
|
|
|
17
17
|
return frame;
|
|
18
18
|
}
|
|
19
19
|
export function getExportBlobByContent(content, options) {
|
|
20
|
-
return new Blob([content], { type: "text/"
|
|
20
|
+
return new Blob([content], { type: "text/".concat(options.type, ";charset=utf-8;") });
|
|
21
21
|
}
|
|
22
22
|
export function createHtmlPage(opts, content) {
|
|
23
23
|
var style = opts.style;
|
|
@@ -25,11 +25,11 @@ export function createHtmlPage(opts, content) {
|
|
|
25
25
|
'<!DOCTYPE html><html>',
|
|
26
26
|
'<head>',
|
|
27
27
|
'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',
|
|
28
|
-
"<title>"
|
|
29
|
-
"<style>"
|
|
30
|
-
style ? "<style>"
|
|
28
|
+
"<title>".concat(opts.sheetName, "</title>"),
|
|
29
|
+
"<style>".concat(defaultHtmlStyle, "</style>"),
|
|
30
|
+
style ? "<style>".concat(style, "</style>") : '',
|
|
31
31
|
'</head>',
|
|
32
|
-
"<body>"
|
|
32
|
+
"<body>".concat(content, "</body>"),
|
|
33
33
|
'</html>'
|
|
34
34
|
].join('');
|
|
35
35
|
}
|
|
@@ -52,7 +52,7 @@ export var readLocalFile = function (options) {
|
|
|
52
52
|
var types = opts.types || [];
|
|
53
53
|
var isAllType = !types.length || types.some(function (type) { return type === '*'; });
|
|
54
54
|
fileInput.multiple = !!opts.multiple;
|
|
55
|
-
fileInput.accept = isAllType ? '' : "."
|
|
55
|
+
fileInput.accept = isAllType ? '' : ".".concat(types.join(', .'));
|
|
56
56
|
fileInput.onchange = function (evnt) {
|
|
57
57
|
var files = evnt.target.files;
|
|
58
58
|
var file = files[0];
|
|
@@ -143,7 +143,7 @@ export function handlePrint($xetable, opts, content) {
|
|
|
143
143
|
*/
|
|
144
144
|
export var saveLocalFile = function (options) {
|
|
145
145
|
var filename = options.filename, type = options.type, content = options.content;
|
|
146
|
-
var name = filename
|
|
146
|
+
var name = "".concat(filename, ".").concat(type);
|
|
147
147
|
if (window.Blob) {
|
|
148
148
|
var blob = content instanceof Blob ? content : getExportBlobByContent(XEUtils.toValueString(content), options);
|
|
149
149
|
if (navigator.msSaveBlob) {
|
package/es/export/style.css
CHANGED
|
@@ -23,85 +23,37 @@
|
|
|
23
23
|
/*select*/
|
|
24
24
|
/*switch*/
|
|
25
25
|
/*pulldown*/
|
|
26
|
-
.vxe-export--panel-column-option {
|
|
27
|
-
position: relative;
|
|
28
|
-
-webkit-user-select: none;
|
|
29
|
-
-moz-user-select: none;
|
|
30
|
-
-ms-user-select: none;
|
|
31
|
-
user-select: none;
|
|
32
|
-
cursor: pointer; }
|
|
33
|
-
|
|
34
26
|
.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
35
|
-
|
|
36
|
-
position: absolute;
|
|
37
|
-
height: 1em;
|
|
38
|
-
width: 1em; }
|
|
27
|
+
font-size: 1.4em; }
|
|
39
28
|
|
|
40
29
|
.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
left: 0;
|
|
49
|
-
background-color: #fff;
|
|
50
|
-
border-radius: 2px;
|
|
51
|
-
border: 2px solid #dcdfe6; }
|
|
52
|
-
|
|
53
|
-
.vxe-export--panel-column-option .vxe-checkbox--unchecked-icon {
|
|
54
|
-
display: inline-block; }
|
|
55
|
-
|
|
56
|
-
.vxe-export--panel-column-option .vxe-checkbox--checked-icon:after {
|
|
57
|
-
content: "";
|
|
58
|
-
position: absolute;
|
|
59
|
-
height: 0.64em;
|
|
60
|
-
width: 0.32em;
|
|
61
|
-
top: 50%;
|
|
62
|
-
left: 50%;
|
|
63
|
-
border: 2px solid #fff;
|
|
64
|
-
border-left: 0;
|
|
65
|
-
border-top: 0;
|
|
66
|
-
transform: translate(-50%, -50%) rotate(45deg); }
|
|
67
|
-
|
|
68
|
-
.vxe-export--panel-column-option .vxe-checkbox--indeterminate-icon:after {
|
|
69
|
-
content: "";
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 50%;
|
|
72
|
-
left: 50%;
|
|
73
|
-
height: 2px;
|
|
74
|
-
width: 0.6em;
|
|
75
|
-
background-color: #fff;
|
|
76
|
-
transform: translate(-50%, -50%); }
|
|
30
|
+
color: #dcdfe6;
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
-webkit-user-select: none;
|
|
34
|
+
-moz-user-select: none;
|
|
35
|
+
-ms-user-select: none;
|
|
36
|
+
user-select: none; }
|
|
77
37
|
|
|
78
38
|
.is--checked.vxe-export--panel-column-option, .is--indeterminate.vxe-export--panel-column-option {
|
|
79
39
|
color: #409eff; }
|
|
80
|
-
.is--checked.vxe-export--panel-column-option .vxe-checkbox--
|
|
81
|
-
|
|
82
|
-
.is--checked.vxe-export--panel-column-option .vxe-checkbox--icon:before, .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon:before {
|
|
83
|
-
border-color: #409eff;
|
|
84
|
-
background-color: #409eff; }
|
|
85
|
-
|
|
86
|
-
.is--checked.vxe-export--panel-column-option .vxe-checkbox--checked-icon {
|
|
87
|
-
display: inline-block; }
|
|
88
|
-
|
|
89
|
-
.is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--indeterminate-icon {
|
|
90
|
-
display: inline-block; }
|
|
40
|
+
.is--checked.vxe-export--panel-column-option .vxe-checkbox--icon, .is--indeterminate.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
41
|
+
color: #409eff; }
|
|
91
42
|
|
|
92
|
-
.vxe-export--panel-column-option:not(.is--disabled)
|
|
93
|
-
|
|
43
|
+
.vxe-export--panel-column-option:not(.is--disabled) {
|
|
44
|
+
cursor: pointer; }
|
|
45
|
+
.vxe-export--panel-column-option:not(.is--disabled):hover .vxe-checkbox--icon {
|
|
46
|
+
color: #409eff; }
|
|
94
47
|
|
|
95
48
|
.is--disabled.vxe-export--panel-column-option {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
.is--disabled.vxe-export--panel-column-option .vxe-checkbox--icon
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
background-color: #c0c4cc; }
|
|
49
|
+
color: #BFBFBF;
|
|
50
|
+
cursor: not-allowed; }
|
|
51
|
+
.is--disabled.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
52
|
+
color: #dcdfe6; }
|
|
53
|
+
|
|
54
|
+
.vxe-export--panel-column-option .vxe-checkbox--label {
|
|
55
|
+
padding-left: 0.5em;
|
|
56
|
+
vertical-align: middle; }
|
|
105
57
|
|
|
106
58
|
.vxe-export--panel-column > ul {
|
|
107
59
|
list-style-type: none;
|
|
@@ -147,7 +99,7 @@
|
|
|
147
99
|
-ms-user-select: none;
|
|
148
100
|
user-select: none; }
|
|
149
101
|
.vxe-export--panel .vxe-export--panel-column > ul > li {
|
|
150
|
-
padding: 0.2em 1em 0.2em
|
|
102
|
+
padding: 0.2em 1em 0.2em 1em; }
|
|
151
103
|
.vxe-export--panel .vxe-export--panel-column > ul > li.level--2 {
|
|
152
104
|
padding-left: 3.5em; }
|
|
153
105
|
.vxe-export--panel .vxe-export--panel-column > ul > li.level--2 .vxe-checkbox--icon {
|
|
@@ -230,22 +182,3 @@
|
|
|
230
182
|
.vxe-export--panel .vxe-export--panel-btns {
|
|
231
183
|
text-align: right;
|
|
232
184
|
padding: 0.25em; }
|
|
233
|
-
|
|
234
|
-
.vxe-export--panel-column-option .vxe-checkbox--icon {
|
|
235
|
-
left: 0.6em;
|
|
236
|
-
top: 0.38em; }
|
|
237
|
-
|
|
238
|
-
.vxe-export--panel-column-option:hover {
|
|
239
|
-
background-color: #f5f7fa; }
|
|
240
|
-
|
|
241
|
-
.vxe-modal--wrapper .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
242
|
-
font-size: 16px; }
|
|
243
|
-
|
|
244
|
-
.vxe-modal--wrapper.size--medium .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
245
|
-
font-size: 15px; }
|
|
246
|
-
|
|
247
|
-
.vxe-modal--wrapper.size--small .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
248
|
-
font-size: 14px; }
|
|
249
|
-
|
|
250
|
-
.vxe-modal--wrapper.size--mini .vxe-export--panel-column-option > .vxe-checkbox--icon {
|
|
251
|
-
font-size: 14px; }
|
package/es/filter/index.d.ts
CHANGED
package/es/filter/index.js
CHANGED
|
@@ -2,12 +2,13 @@ import { VXETable } from '../v-x-e-table';
|
|
|
2
2
|
import PanelComponent from './src/panel';
|
|
3
3
|
import filterHook from './src/hook';
|
|
4
4
|
import { dynamicApp } from '../dynamics';
|
|
5
|
-
export var
|
|
5
|
+
export var VxeModuleFilter = {
|
|
6
6
|
Panel: PanelComponent,
|
|
7
7
|
install: function (app) {
|
|
8
8
|
VXETable.hooks.add('$tableFilter', filterHook);
|
|
9
9
|
app.component(PanelComponent.name, PanelComponent);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
+
export var Filter = VxeModuleFilter;
|
|
12
13
|
dynamicApp.component(PanelComponent.name, PanelComponent);
|
|
13
|
-
export default
|
|
14
|
+
export default VxeModuleFilter;
|
package/es/filter/src/hook.js
CHANGED
|
@@ -86,7 +86,7 @@ var tableFilterHook = {
|
|
|
86
86
|
var maxLeft = bodyElem.clientWidth - filterWidth - minMargin;
|
|
87
87
|
var left, right;
|
|
88
88
|
var style = {
|
|
89
|
-
top: targetElem_1.offsetTop + targetElem_1.offsetParent.offsetTop + targetElem_1.offsetHeight + 8
|
|
89
|
+
top: "".concat(targetElem_1.offsetTop + targetElem_1.offsetParent.offsetTop + targetElem_1.offsetHeight + 8, "px")
|
|
90
90
|
};
|
|
91
91
|
// 判断面板不能大于表格高度
|
|
92
92
|
var maxHeight = null;
|
|
@@ -107,14 +107,14 @@ var tableFilterHook = {
|
|
|
107
107
|
if (overflowWidth > 0) {
|
|
108
108
|
left -= overflowWidth;
|
|
109
109
|
}
|
|
110
|
-
style.left = Math.min(maxLeft, Math.max(minMargin, left))
|
|
110
|
+
style.left = "".concat(Math.min(maxLeft, Math.max(minMargin, left)), "px");
|
|
111
111
|
}
|
|
112
112
|
else if (right) {
|
|
113
113
|
var overflowWidth = (pageX_1 + filterWidth - centerWidth + minMargin) - visibleWidth_1;
|
|
114
114
|
if (overflowWidth > 0) {
|
|
115
115
|
right += overflowWidth;
|
|
116
116
|
}
|
|
117
|
-
style.right = Math.max(minMargin, right)
|
|
117
|
+
style.right = "".concat(Math.max(minMargin, right), "px");
|
|
118
118
|
}
|
|
119
119
|
filterStore.style = style;
|
|
120
120
|
filterStore.maxHeight = maxHeight;
|
|
@@ -198,10 +198,10 @@ var tableFilterHook = {
|
|
|
198
198
|
var elemStore_1 = internalData.elemStore;
|
|
199
199
|
var fixed_1 = column.fixed;
|
|
200
200
|
return $xetable.scrollToColumn(column).then(function () {
|
|
201
|
-
var headerWrapperRef = elemStore_1[(fixed_1 || 'main'
|
|
201
|
+
var headerWrapperRef = elemStore_1["".concat(fixed_1 || 'main', "-header-wrapper")] || elemStore_1['main-header-wrapper'];
|
|
202
202
|
var headerWrapperElem = headerWrapperRef ? headerWrapperRef.value : null;
|
|
203
203
|
if (headerWrapperElem) {
|
|
204
|
-
var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column."
|
|
204
|
+
var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column.".concat(column.id, " .vxe-filter--btn"));
|
|
205
205
|
triggerEvent(filterBtnElem, 'click');
|
|
206
206
|
}
|
|
207
207
|
});
|
package/es/filter/src/panel.js
CHANGED
|
@@ -111,14 +111,16 @@ export default defineComponent({
|
|
|
111
111
|
}, compConf.renderFilter(filterRender, params))
|
|
112
112
|
];
|
|
113
113
|
}
|
|
114
|
+
var isAllChecked = multiple ? filterStore.isAllSelected : !filterStore.options.some(function (item) { return item._checked; });
|
|
115
|
+
var isAllIndeterminate = multiple && filterStore.isIndeterminate;
|
|
114
116
|
return [
|
|
115
117
|
h('ul', {
|
|
116
118
|
class: 'vxe-table--filter-header'
|
|
117
119
|
}, [
|
|
118
120
|
h('li', {
|
|
119
121
|
class: ['vxe-table--filter-option', {
|
|
120
|
-
'is--checked':
|
|
121
|
-
'is--indeterminate':
|
|
122
|
+
'is--checked': isAllChecked,
|
|
123
|
+
'is--indeterminate': isAllIndeterminate
|
|
122
124
|
}],
|
|
123
125
|
title: GlobalConfig.i18n(multiple ? 'vxe.table.allTitle' : 'vxe.table.allFilter'),
|
|
124
126
|
onClick: function (evnt) {
|
|
@@ -126,13 +128,7 @@ export default defineComponent({
|
|
|
126
128
|
}
|
|
127
129
|
}, (multiple ? [
|
|
128
130
|
h('span', {
|
|
129
|
-
class: 'vxe-checkbox--icon
|
|
130
|
-
}),
|
|
131
|
-
h('span', {
|
|
132
|
-
class: 'vxe-checkbox--icon vxe-checkbox--unchecked-icon'
|
|
133
|
-
}),
|
|
134
|
-
h('span', {
|
|
135
|
-
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
131
|
+
class: ['vxe-checkbox--icon', isAllIndeterminate ? GlobalConfig.icon.TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? GlobalConfig.icon.TABLE_CHECKBOX_CHECKED : GlobalConfig.icon.TABLE_CHECKBOX_UNCHECKED)]
|
|
136
132
|
})
|
|
137
133
|
] : []).concat([
|
|
138
134
|
h('span', {
|
|
@@ -143,9 +139,11 @@ export default defineComponent({
|
|
|
143
139
|
h('ul', {
|
|
144
140
|
class: 'vxe-table--filter-body',
|
|
145
141
|
style: maxHeight ? {
|
|
146
|
-
maxHeight: maxHeight
|
|
142
|
+
maxHeight: "".concat(maxHeight, "px")
|
|
147
143
|
} : {}
|
|
148
144
|
}, filterStore.options.map(function (item) {
|
|
145
|
+
var isChecked = item._checked;
|
|
146
|
+
var isIndeterminate = false;
|
|
149
147
|
return h('li', {
|
|
150
148
|
class: ['vxe-table--filter-option', {
|
|
151
149
|
'is--checked': item._checked
|
|
@@ -156,13 +154,7 @@ export default defineComponent({
|
|
|
156
154
|
}
|
|
157
155
|
}, (multiple ? [
|
|
158
156
|
h('span', {
|
|
159
|
-
class: 'vxe-checkbox--icon
|
|
160
|
-
}),
|
|
161
|
-
h('span', {
|
|
162
|
-
class: 'vxe-checkbox--icon vxe-checkbox--unchecked-icon'
|
|
163
|
-
}),
|
|
164
|
-
h('span', {
|
|
165
|
-
class: 'vxe-checkbox--icon vxe-checkbox--indeterminate-icon'
|
|
157
|
+
class: ['vxe-checkbox--icon', isIndeterminate ? GlobalConfig.icon.TABLE_CHECKBOX_INDETERMINATE : (isChecked ? GlobalConfig.icon.TABLE_CHECKBOX_CHECKED : GlobalConfig.icon.TABLE_CHECKBOX_UNCHECKED)]
|
|
166
158
|
})
|
|
167
159
|
] : []).concat([
|
|
168
160
|
h('span', {
|