vxe-table 4.3.5 → 4.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/button/style.css +465 -341
- package/es/checkbox/style.css +156 -127
- package/es/checkbox-group/style.css +1 -1
- package/es/colgroup/style.css +1 -1
- package/es/column/style.css +1 -1
- package/es/edit/style.css +1 -1
- package/es/export/src/hook.js +1 -0
- package/es/export/style.css +136 -108
- package/es/filter/src/hook.js +1 -1
- package/es/filter/style.css +103 -82
- package/es/form/src/form.js +5 -4
- package/es/form/style.css +201 -168
- package/es/form-gather/style.css +1 -1
- package/es/form-item/style.css +1 -1
- package/es/grid/style.css +61 -50
- package/es/icon/style/iconfont.1669214286403.ttf +0 -0
- package/es/icon/style/iconfont.1669214286403.woff +0 -0
- package/es/icon/style/iconfont.1669214286403.woff2 +0 -0
- package/es/icon/style.css +372 -195
- package/es/iconfont.1669214286403.ttf +0 -0
- package/es/iconfont.1669214286403.woff +0 -0
- package/es/iconfont.1669214286403.woff2 +0 -0
- package/es/input/style.css +771 -595
- package/es/keyboard/style.css +1 -1
- package/es/list/src/list.js +7 -1
- package/es/list/style.css +19 -14
- package/es/loading/style.css +52 -48
- package/es/menu/style.css +79 -59
- package/es/modal/style.css +311 -247
- package/es/optgroup/style.css +1 -1
- package/es/option/style.css +1 -1
- package/es/pager/style.css +307 -257
- package/es/pulldown/src/pulldown.js +9 -3
- package/es/pulldown/style.css +42 -31
- package/es/radio/style.css +184 -151
- package/es/radio-button/style.css +1 -1
- package/es/radio-group/style.css +1 -1
- package/es/select/style.css +108 -79
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/style.css +87 -67
- package/es/table/src/column.js +2 -0
- package/es/table/src/columnInfo.js +1 -0
- package/es/table/src/table.js +16 -16
- package/es/table/style.css +1025 -835
- package/es/textarea/style.css +57 -41
- package/es/toolbar/style.css +216 -174
- package/es/tools/log.js +1 -1
- package/es/tooltip/style.css +87 -63
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +424 -243
- package/es/validator/style.css +1 -1
- package/es/vxe-button/style.css +465 -341
- package/es/vxe-checkbox/style.css +156 -127
- package/es/vxe-checkbox-group/style.css +1 -1
- package/es/vxe-colgroup/style.css +1 -1
- package/es/vxe-column/style.css +1 -1
- package/es/vxe-form/style.css +201 -168
- package/es/vxe-form-gather/style.css +1 -1
- package/es/vxe-form-item/style.css +1 -1
- package/es/vxe-grid/style.css +61 -50
- package/es/vxe-icon/style.css +372 -195
- package/es/vxe-input/style.css +771 -595
- package/es/vxe-list/style.css +19 -14
- package/es/vxe-loading/style.css +52 -48
- package/es/vxe-modal/style.css +311 -247
- package/es/vxe-module-edit/style.css +1 -1
- package/es/vxe-module-export/style.css +136 -108
- package/es/vxe-module-filter/style.css +103 -82
- package/es/vxe-module-keyboard/style.css +1 -1
- package/es/vxe-module-menu/style.css +79 -59
- package/es/vxe-module-validator/style.css +1 -1
- package/es/vxe-optgroup/style.css +1 -1
- package/es/vxe-option/style.css +1 -1
- package/es/vxe-pager/style.css +307 -257
- package/es/vxe-pulldown/style.css +42 -31
- package/es/vxe-radio/style.css +184 -151
- package/es/vxe-radio-button/style.css +1 -1
- package/es/vxe-radio-group/style.css +1 -1
- package/es/vxe-select/style.css +108 -79
- package/es/vxe-switch/style.css +87 -67
- package/es/vxe-table/style.css +1025 -835
- package/es/vxe-textarea/style.css +57 -41
- package/es/vxe-toolbar/style.css +216 -174
- package/es/vxe-tooltip/style.css +87 -63
- package/lib/all.js +45 -115
- package/lib/all.min.js +1 -1
- package/lib/button/index.js +1 -7
- package/lib/button/index.min.js +1 -1
- package/lib/button/src/button.js +48 -113
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +465 -341
- package/lib/button/style/style.min.css +1 -1
- package/lib/checkbox/index.js +1 -7
- package/lib/checkbox/index.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +12 -32
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +13 -28
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox/style/style.css +156 -127
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/checkbox-group/index.js +1 -7
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/checkbox-group/style/style.css +1 -1
- package/lib/colgroup/index.js +5 -12
- package/lib/colgroup/index.min.js +1 -1
- package/lib/colgroup/style/style.css +1 -1
- package/lib/column/index.js +5 -12
- package/lib/column/index.min.js +1 -1
- package/lib/column/style/style.css +1 -1
- package/lib/dynamics/index.js +1 -5
- package/lib/dynamics/index.min.js +1 -1
- package/lib/edit/index.js +1 -5
- package/lib/edit/index.min.js +1 -1
- package/lib/edit/src/hook.js +102 -248
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/edit/style/style.css +1 -1
- package/lib/export/index.js +4 -19
- package/lib/export/index.min.js +1 -1
- package/lib/export/src/export-panel.js +38 -77
- package/lib/export/src/export-panel.min.js +1 -1
- package/lib/export/src/hook.js +127 -380
- package/lib/export/src/hook.min.js +1 -1
- package/lib/export/src/import-panel.js +17 -39
- package/lib/export/src/import-panel.min.js +1 -1
- package/lib/export/src/util.js +10 -52
- package/lib/export/src/util.min.js +1 -1
- package/lib/export/style/style.css +136 -108
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/index.js +1 -10
- package/lib/filter/index.min.js +1 -1
- package/lib/filter/src/hook.js +31 -82
- package/lib/filter/src/hook.min.js +1 -1
- package/lib/filter/src/panel.js +25 -52
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/filter/style/style.css +103 -82
- package/lib/filter/style/style.min.css +1 -1
- package/lib/footer/index.js +1 -7
- package/lib/footer/index.min.js +1 -1
- package/lib/footer/src/footer.js +51 -96
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/index.js +1 -7
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-config-item.js +27 -56
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +3 -12
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +23 -52
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +78 -185
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/itemInfo.js +1 -9
- package/lib/form/src/render.js +7 -26
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +4 -28
- package/lib/form/src/util.min.js +1 -1
- package/lib/form/style/style.css +201 -168
- package/lib/form/style/style.min.css +1 -1
- package/lib/form-gather/index.js +1 -7
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-gather/style/style.css +1 -1
- package/lib/form-item/index.js +1 -7
- package/lib/form-item/index.min.js +1 -1
- package/lib/form-item/style/style.css +1 -1
- package/lib/grid/index.js +1 -7
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +97 -315
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +61 -50
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/index.js +1 -7
- package/lib/header/index.min.js +1 -1
- package/lib/header/src/header.js +47 -87
- package/lib/header/src/header.min.js +1 -1
- package/lib/header/src/util.js +3 -14
- package/lib/header/src/util.min.js +1 -1
- package/lib/hooks/size.js +0 -2
- package/lib/icon/index.js +1 -7
- package/lib/icon/index.min.js +1 -1
- package/lib/icon/src/icon.js +2 -7
- package/lib/icon/style/iconfont.1669214286403.ttf +0 -0
- package/lib/icon/style/iconfont.1669214286403.woff +0 -0
- package/lib/icon/style/iconfont.1669214286403.woff2 +0 -0
- package/lib/icon/style/style.css +372 -195
- package/lib/icon/style/style.min.css +719 -1
- package/lib/iconfont.1669214286403.ttf +0 -0
- package/lib/iconfont.1669214286403.woff +0 -0
- package/lib/iconfont.1669214286403.woff2 +0 -0
- package/lib/index.common.js +3 -10
- package/lib/index.common.min.js +1 -1
- package/lib/index.umd.js +14466 -23839
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +1 -7
- package/lib/input/index.min.js +1 -1
- package/lib/input/src/date.js +0 -10
- package/lib/input/src/date.min.js +1 -1
- package/lib/input/src/input.js +217 -553
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/src/number.js +0 -5
- package/lib/input/style/style.css +771 -595
- package/lib/input/style/style.min.css +1 -1
- package/lib/keyboard/index.js +1 -5
- package/lib/keyboard/index.min.js +1 -1
- package/lib/keyboard/src/hook.js +40 -106
- package/lib/keyboard/src/hook.min.js +1 -1
- package/lib/keyboard/style/style.css +1 -1
- package/lib/list/index.js +1 -7
- package/lib/list/index.min.js +1 -1
- package/lib/list/src/list.js +39 -91
- package/lib/list/src/list.min.js +1 -1
- package/lib/list/style/style.css +19 -14
- package/lib/loading/index.js +1 -4
- package/lib/loading/index.min.js +1 -1
- package/lib/loading/src/loading.js +1 -6
- package/lib/loading/style/style.css +52 -48
- package/lib/loading/style/style.min.css +1 -1
- package/lib/locale/lang/zh-HK.js +0 -3
- package/lib/locale/lang/zh-MO.js +0 -3
- package/lib/locale/lang/zh-TW.js +0 -3
- package/lib/menu/index.js +1 -10
- package/lib/menu/index.min.js +1 -1
- package/lib/menu/src/hooks.js +45 -109
- package/lib/menu/src/hooks.min.js +1 -1
- package/lib/menu/src/panel.js +10 -19
- package/lib/menu/src/panel.min.js +1 -1
- package/lib/menu/style/style.css +79 -59
- package/lib/menu/style/style.min.css +1 -1
- package/lib/modal/index.js +5 -36
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +128 -315
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +311 -247
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +1 -7
- package/lib/optgroup/index.min.js +1 -1
- package/lib/optgroup/style/style.css +1 -1
- package/lib/option/index.js +1 -7
- package/lib/option/index.min.js +1 -1
- package/lib/option/style/style.css +1 -1
- package/lib/pager/index.js +1 -7
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +74 -151
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +307 -257
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +1 -7
- package/lib/pulldown/index.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +46 -90
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/pulldown/style/style.css +42 -31
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +1 -7
- package/lib/radio/index.min.js +1 -1
- package/lib/radio/src/button.js +14 -32
- package/lib/radio/src/button.min.js +1 -1
- package/lib/radio/src/group.js +11 -22
- package/lib/radio/src/group.min.js +1 -1
- package/lib/radio/src/radio.js +15 -34
- package/lib/radio/src/radio.min.js +1 -1
- package/lib/radio/style/style.css +184 -151
- package/lib/radio/style/style.min.css +1 -1
- package/lib/radio-button/index.js +1 -7
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-button/style/style.css +1 -1
- package/lib/radio-group/index.js +1 -7
- package/lib/radio-group/index.min.js +1 -1
- package/lib/radio-group/style/style.css +1 -1
- package/lib/select/index.js +1 -7
- package/lib/select/index.min.js +1 -1
- package/lib/select/src/optgroup.js +1 -5
- package/lib/select/src/option.js +1 -5
- package/lib/select/src/optionInfo.js +1 -9
- package/lib/select/src/select.js +103 -256
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/src/util.js +0 -13
- package/lib/select/src/util.min.js +1 -1
- package/lib/select/style/style.css +108 -79
- 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.js +1 -7
- package/lib/switch/index.min.js +1 -1
- package/lib/switch/src/switch.js +16 -35
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/switch/style/style.css +87 -67
- package/lib/switch/style/style.min.css +1 -1
- package/lib/table/index.js +1 -7
- package/lib/table/index.min.js +1 -1
- package/lib/table/src/body.js +143 -262
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +138 -259
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +4 -13
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +6 -35
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/group.js +2 -15
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/props.js +25 -29
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +650 -1593
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +32 -102
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1025 -835
- package/lib/table/style/style.min.css +1 -1
- package/lib/textarea/index.js +1 -7
- package/lib/textarea/index.min.js +1 -1
- package/lib/textarea/src/textarea.js +31 -71
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/textarea/style/style.css +57 -41
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/toolbar/index.js +1 -7
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +60 -167
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +216 -174
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/dom.js +6 -48
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/event.js +8 -20
- package/lib/tools/event.min.js +1 -1
- package/lib/tools/log.js +1 -6
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/resize.js +3 -27
- package/lib/tools/utils.js +0 -16
- package/lib/tools/utils.min.js +1 -1
- package/lib/tools/vn.js +0 -5
- package/lib/tooltip/index.js +1 -8
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +47 -111
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tooltip/style/style.css +87 -63
- package/lib/v-x-e-table/index.js +13 -44
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/commands.js +0 -4
- package/lib/v-x-e-table/src/conf.js +31 -19
- package/lib/v-x-e-table/src/formats.js +0 -4
- package/lib/v-x-e-table/src/hooks.js +0 -3
- package/lib/v-x-e-table/src/interceptor.js +6 -18
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/menus.js +0 -4
- package/lib/v-x-e-table/src/renderer.js +66 -199
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/setup.js +1 -6
- package/lib/v-x-e-table/src/store.js +3 -19
- package/lib/v-x-e-table/style/style.css +424 -243
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/index.js +1 -5
- package/lib/validator/index.min.js +1 -1
- package/lib/validator/src/hook.js +50 -116
- package/lib/validator/src/hook.min.js +1 -1
- package/lib/validator/style/style.css +1 -1
- package/lib/vxe-button/index.js +3 -10
- package/lib/vxe-button/index.min.js +1 -1
- package/lib/vxe-button/style/style.css +465 -341
- package/lib/vxe-button/style/style.min.css +1 -1
- package/lib/vxe-checkbox/index.js +3 -10
- package/lib/vxe-checkbox/index.min.js +1 -1
- package/lib/vxe-checkbox/style/style.css +156 -127
- package/lib/vxe-checkbox/style/style.min.css +1 -1
- package/lib/vxe-checkbox-group/index.js +3 -10
- package/lib/vxe-checkbox-group/index.min.js +1 -1
- package/lib/vxe-checkbox-group/style/style.css +1 -1
- package/lib/vxe-colgroup/index.js +3 -10
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-colgroup/style/style.css +1 -1
- package/lib/vxe-column/index.js +3 -10
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-column/style/style.css +1 -1
- package/lib/vxe-form/index.js +3 -10
- package/lib/vxe-form/index.min.js +1 -1
- package/lib/vxe-form/style/style.css +201 -168
- package/lib/vxe-form/style/style.min.css +1 -1
- package/lib/vxe-form-gather/index.js +3 -10
- package/lib/vxe-form-gather/index.min.js +1 -1
- package/lib/vxe-form-gather/style/style.css +1 -1
- package/lib/vxe-form-item/index.js +3 -10
- package/lib/vxe-form-item/index.min.js +1 -1
- package/lib/vxe-form-item/style/style.css +1 -1
- package/lib/vxe-grid/index.js +3 -10
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-grid/style/style.css +61 -50
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-icon/index.js +3 -10
- package/lib/vxe-icon/index.min.js +1 -1
- package/lib/vxe-icon/style/style.css +372 -195
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-input/index.js +3 -10
- package/lib/vxe-input/index.min.js +1 -1
- package/lib/vxe-input/style/style.css +771 -595
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-list/index.js +3 -10
- package/lib/vxe-list/index.min.js +1 -1
- package/lib/vxe-list/style/style.css +19 -14
- package/lib/vxe-loading/index.js +3 -10
- package/lib/vxe-loading/index.min.js +1 -1
- package/lib/vxe-loading/style/style.css +52 -48
- package/lib/vxe-loading/style/style.min.css +1 -1
- package/lib/vxe-modal/index.js +3 -10
- package/lib/vxe-modal/index.min.js +1 -1
- package/lib/vxe-modal/style/style.css +311 -247
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-module-edit/index.js +3 -10
- package/lib/vxe-module-edit/index.min.js +1 -1
- package/lib/vxe-module-edit/style/style.css +1 -1
- package/lib/vxe-module-export/index.js +3 -10
- package/lib/vxe-module-export/index.min.js +1 -1
- package/lib/vxe-module-export/style/style.css +136 -108
- package/lib/vxe-module-export/style/style.min.css +1 -1
- package/lib/vxe-module-filter/index.js +3 -10
- package/lib/vxe-module-filter/index.min.js +1 -1
- package/lib/vxe-module-filter/style/style.css +103 -82
- package/lib/vxe-module-filter/style/style.min.css +1 -1
- package/lib/vxe-module-keyboard/index.js +3 -10
- package/lib/vxe-module-keyboard/index.min.js +1 -1
- package/lib/vxe-module-keyboard/style/style.css +1 -1
- package/lib/vxe-module-menu/index.js +3 -10
- package/lib/vxe-module-menu/index.min.js +1 -1
- package/lib/vxe-module-menu/style/style.css +79 -59
- package/lib/vxe-module-menu/style/style.min.css +1 -1
- package/lib/vxe-module-validator/index.js +3 -10
- package/lib/vxe-module-validator/index.min.js +1 -1
- package/lib/vxe-module-validator/style/style.css +1 -1
- package/lib/vxe-optgroup/index.js +3 -10
- package/lib/vxe-optgroup/index.min.js +1 -1
- package/lib/vxe-optgroup/style/style.css +1 -1
- package/lib/vxe-option/index.js +3 -10
- package/lib/vxe-option/index.min.js +1 -1
- package/lib/vxe-option/style/style.css +1 -1
- package/lib/vxe-pager/index.js +3 -10
- package/lib/vxe-pager/index.min.js +1 -1
- package/lib/vxe-pager/style/style.css +307 -257
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-pulldown/index.js +3 -10
- package/lib/vxe-pulldown/index.min.js +1 -1
- package/lib/vxe-pulldown/style/style.css +42 -31
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/lib/vxe-radio/index.js +3 -10
- package/lib/vxe-radio/index.min.js +1 -1
- package/lib/vxe-radio/style/style.css +184 -151
- package/lib/vxe-radio/style/style.min.css +1 -1
- package/lib/vxe-radio-button/index.js +3 -10
- package/lib/vxe-radio-button/index.min.js +1 -1
- package/lib/vxe-radio-button/style/style.css +1 -1
- package/lib/vxe-radio-group/index.js +3 -10
- package/lib/vxe-radio-group/index.min.js +1 -1
- package/lib/vxe-radio-group/style/style.css +1 -1
- package/lib/vxe-select/index.js +3 -10
- package/lib/vxe-select/index.min.js +1 -1
- package/lib/vxe-select/style/style.css +108 -79
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-switch/index.js +3 -10
- package/lib/vxe-switch/index.min.js +1 -1
- package/lib/vxe-switch/style/style.css +87 -67
- package/lib/vxe-switch/style/style.min.css +1 -1
- package/lib/vxe-table/index.js +3 -10
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +1025 -835
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-textarea/index.js +3 -10
- package/lib/vxe-textarea/index.min.js +1 -1
- package/lib/vxe-textarea/style/style.css +57 -41
- package/lib/vxe-textarea/style/style.min.css +1 -1
- package/lib/vxe-toolbar/index.js +3 -10
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-toolbar/style/style.css +216 -174
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/lib/vxe-tooltip/index.js +3 -10
- package/lib/vxe-tooltip/index.min.js +1 -1
- package/lib/vxe-tooltip/style/style.css +87 -63
- package/package.json +27 -33
- package/packages/export/src/hook.ts +1 -0
- package/packages/filter/src/hook.ts +1 -1
- package/packages/form/src/form.ts +5 -4
- package/packages/list/src/list.ts +8 -2
- package/packages/pulldown/src/pulldown.ts +11 -5
- package/packages/table/src/column.ts +2 -0
- package/packages/table/src/columnInfo.ts +1 -0
- package/packages/table/src/table.ts +95 -87
- package/packages/table/src/util.ts +1 -1
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/icon.scss +10 -2
- package/styles/table.scss +1 -1
- package/styles/variable.scss +2 -2
- package/types/column.d.ts +6 -1
- package/types/list.d.ts +4 -4
- package/types/pulldown.d.ts +61 -61
- package/types/table.d.ts +11 -1
package/lib/toolbar/index.js
CHANGED
|
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.VxeToolbar = exports.Toolbar = void 0;
|
|
7
|
-
|
|
8
7
|
var _toolbar = _interopRequireDefault(require("./src/toolbar"));
|
|
9
|
-
|
|
10
8
|
var _dynamics = require("../dynamics");
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
var VxeToolbar = Object.assign(_toolbar.default, {
|
|
15
|
-
install: function
|
|
11
|
+
install: function (app) {
|
|
16
12
|
app.component(_toolbar.default.name, _toolbar.default);
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
exports.VxeToolbar = VxeToolbar;
|
|
20
16
|
var Toolbar = VxeToolbar;
|
|
21
17
|
exports.Toolbar = Toolbar;
|
|
22
|
-
|
|
23
18
|
_dynamics.dynamicApp.component(_toolbar.default.name, _toolbar.default);
|
|
24
|
-
|
|
25
19
|
var _default = VxeToolbar;
|
|
26
20
|
exports.default = _default;
|
package/lib/toolbar/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeToolbar=exports.Toolbar=void 0;var _toolbar=_interopRequireDefault(require("./src/toolbar")),_dynamics=require("../dynamics");function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var VxeToolbar=Object.assign(_toolbar.default,{install:function(o){o.component(_toolbar.default.name,_toolbar.default)}}),Toolbar=exports.VxeToolbar=VxeToolbar
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeToolbar=exports.Toolbar=void 0;var _toolbar=_interopRequireDefault(require("./src/toolbar")),_dynamics=require("../dynamics");function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var VxeToolbar=Object.assign(_toolbar.default,{install:function(o){o.component(_toolbar.default.name,_toolbar.default)}}),Toolbar=exports.VxeToolbar=VxeToolbar,_default=(exports.Toolbar=Toolbar,_dynamics.dynamicApp.component(_toolbar.default.name,_toolbar.default),VxeToolbar);exports.default=_default;
|
|
@@ -4,46 +4,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _vue = require("vue");
|
|
9
|
-
|
|
10
8
|
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
11
|
-
|
|
12
9
|
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
13
|
-
|
|
14
10
|
var _vXETable = require("../../v-x-e-table");
|
|
15
|
-
|
|
16
11
|
var _size = require("../../hooks/size");
|
|
17
|
-
|
|
18
12
|
var _dom = require("../../tools/dom");
|
|
19
|
-
|
|
20
13
|
var _utils = require("../../tools/utils");
|
|
21
|
-
|
|
22
14
|
var _log = require("../../tools/log");
|
|
23
|
-
|
|
24
15
|
var _event = require("../../tools/event");
|
|
25
|
-
|
|
26
16
|
var _vn = require("../../tools/vn");
|
|
27
|
-
|
|
28
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
-
|
|
30
18
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
31
19
|
__assign = Object.assign || function (t) {
|
|
32
20
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
21
|
s = arguments[i];
|
|
34
|
-
|
|
35
|
-
for (var p in s) {
|
|
36
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
37
|
-
}
|
|
22
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
38
23
|
}
|
|
39
|
-
|
|
40
24
|
return t;
|
|
41
25
|
};
|
|
42
|
-
|
|
43
26
|
return __assign.apply(this, arguments);
|
|
44
27
|
};
|
|
45
|
-
|
|
46
|
-
var _default2 = (0, _vue.defineComponent)({
|
|
28
|
+
var _default = (0, _vue.defineComponent)({
|
|
47
29
|
name: 'VxeToolbar',
|
|
48
30
|
props: {
|
|
49
31
|
loading: Boolean,
|
|
@@ -55,37 +37,35 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
55
37
|
custom: [Boolean, Object],
|
|
56
38
|
buttons: {
|
|
57
39
|
type: Array,
|
|
58
|
-
default: function
|
|
40
|
+
default: function () {
|
|
59
41
|
return _conf.default.toolbar.buttons;
|
|
60
42
|
}
|
|
61
43
|
},
|
|
62
44
|
tools: {
|
|
63
45
|
type: Array,
|
|
64
|
-
default: function
|
|
46
|
+
default: function () {
|
|
65
47
|
return _conf.default.toolbar.tools;
|
|
66
48
|
}
|
|
67
49
|
},
|
|
68
50
|
perfect: {
|
|
69
51
|
type: Boolean,
|
|
70
|
-
default: function
|
|
52
|
+
default: function () {
|
|
71
53
|
return _conf.default.toolbar.perfect;
|
|
72
54
|
}
|
|
73
55
|
},
|
|
74
56
|
size: {
|
|
75
57
|
type: String,
|
|
76
|
-
default: function
|
|
58
|
+
default: function () {
|
|
77
59
|
return _conf.default.toolbar.size || _conf.default.size;
|
|
78
60
|
}
|
|
79
61
|
},
|
|
80
62
|
className: [String, Function]
|
|
81
63
|
},
|
|
82
64
|
emits: ['button-click', 'tool-click'],
|
|
83
|
-
setup: function
|
|
65
|
+
setup: function (props, context) {
|
|
84
66
|
var slots = context.slots,
|
|
85
|
-
|
|
86
|
-
|
|
67
|
+
emit = context.emit;
|
|
87
68
|
var xID = _xeUtils.default.uniqueId();
|
|
88
|
-
|
|
89
69
|
var computeSize = (0, _size.useSize)(props);
|
|
90
70
|
var reactData = (0, _vue.reactive)({
|
|
91
71
|
isRefresh: false,
|
|
@@ -108,7 +88,7 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
108
88
|
props: props,
|
|
109
89
|
context: context,
|
|
110
90
|
reactData: reactData,
|
|
111
|
-
getRefMaps: function
|
|
91
|
+
getRefMaps: function () {
|
|
112
92
|
return refMaps;
|
|
113
93
|
}
|
|
114
94
|
};
|
|
@@ -133,16 +113,13 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
133
113
|
var computeCustomOpts = (0, _vue.computed)(function () {
|
|
134
114
|
return Object.assign({}, _conf.default.toolbar.custom, props.custom);
|
|
135
115
|
});
|
|
136
|
-
|
|
137
|
-
var checkTable = function checkTable() {
|
|
116
|
+
var checkTable = function () {
|
|
138
117
|
if ($xetable) {
|
|
139
118
|
return true;
|
|
140
119
|
}
|
|
141
|
-
|
|
142
120
|
(0, _log.errLog)('vxe.error.barUnableLink');
|
|
143
121
|
};
|
|
144
|
-
|
|
145
|
-
var checkCustomStatus = function checkCustomStatus() {
|
|
122
|
+
var checkCustomStatus = function () {
|
|
146
123
|
var columns = reactData.columns;
|
|
147
124
|
var computeTableCustomOpts = $xetable.getComputeMaps().computeCustomOpts;
|
|
148
125
|
var tableCustomOpts = computeTableCustomOpts.value;
|
|
@@ -158,42 +135,34 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
158
135
|
})) && (column.visible || column.halfVisible);
|
|
159
136
|
});
|
|
160
137
|
};
|
|
161
|
-
|
|
162
|
-
var showCustom = function showCustom() {
|
|
138
|
+
var showCustom = function () {
|
|
163
139
|
customStore.visible = true;
|
|
164
140
|
checkCustomStatus();
|
|
165
141
|
};
|
|
166
|
-
|
|
167
|
-
var handleTableCustom = function handleTableCustom() {
|
|
142
|
+
var handleTableCustom = function () {
|
|
168
143
|
$xetable.handleCustom();
|
|
169
144
|
};
|
|
170
|
-
|
|
171
|
-
var closeCustom = function closeCustom() {
|
|
145
|
+
var closeCustom = function () {
|
|
172
146
|
var custom = props.custom;
|
|
173
147
|
var customOpts = computeCustomOpts.value;
|
|
174
|
-
|
|
175
148
|
if (customStore.visible) {
|
|
176
149
|
customStore.visible = false;
|
|
177
|
-
|
|
178
150
|
if (custom && !customOpts.immediate) {
|
|
179
151
|
handleTableCustom();
|
|
180
152
|
}
|
|
181
153
|
}
|
|
182
154
|
};
|
|
183
|
-
|
|
184
|
-
var emitCustomEvent = function emitCustomEvent(type, evnt) {
|
|
155
|
+
var emitCustomEvent = function (type, evnt) {
|
|
185
156
|
var comp = $xegrid || $xetable;
|
|
186
157
|
comp.dispatchEvent('custom', {
|
|
187
158
|
type: type
|
|
188
159
|
}, evnt);
|
|
189
160
|
};
|
|
190
|
-
|
|
191
|
-
var confirmCustomEvent = function confirmCustomEvent(evnt) {
|
|
161
|
+
var confirmCustomEvent = function (evnt) {
|
|
192
162
|
closeCustom();
|
|
193
163
|
emitCustomEvent('confirm', evnt);
|
|
194
164
|
};
|
|
195
|
-
|
|
196
|
-
var customOpenEvent = function customOpenEvent(evnt) {
|
|
165
|
+
var customOpenEvent = function (evnt) {
|
|
197
166
|
if (checkTable()) {
|
|
198
167
|
if (!customStore.visible) {
|
|
199
168
|
showCustom();
|
|
@@ -201,20 +170,17 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
201
170
|
}
|
|
202
171
|
}
|
|
203
172
|
};
|
|
204
|
-
|
|
205
|
-
var customColseEvent = function customColseEvent(evnt) {
|
|
173
|
+
var customColseEvent = function (evnt) {
|
|
206
174
|
if (customStore.visible) {
|
|
207
175
|
closeCustom();
|
|
208
176
|
emitCustomEvent('close', evnt);
|
|
209
177
|
}
|
|
210
178
|
};
|
|
211
|
-
|
|
212
|
-
var resetCustomEvent = function resetCustomEvent(evnt) {
|
|
179
|
+
var resetCustomEvent = function (evnt) {
|
|
213
180
|
var columns = reactData.columns;
|
|
214
181
|
var computeTableCustomOpts = $xetable.getComputeMaps().computeCustomOpts;
|
|
215
182
|
var tableCustomOpts = computeTableCustomOpts.value;
|
|
216
183
|
var checkMethod = tableCustomOpts.checkMethod;
|
|
217
|
-
|
|
218
184
|
_xeUtils.default.eachTree(columns, function (column) {
|
|
219
185
|
if (!checkMethod || checkMethod({
|
|
220
186
|
column: column
|
|
@@ -222,25 +188,19 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
222
188
|
column.visible = column.defaultVisible;
|
|
223
189
|
column.halfVisible = false;
|
|
224
190
|
}
|
|
225
|
-
|
|
226
191
|
column.resizeWidth = 0;
|
|
227
192
|
});
|
|
228
|
-
|
|
229
193
|
$xetable.saveCustomResizable(true);
|
|
230
194
|
closeCustom();
|
|
231
195
|
emitCustomEvent('reset', evnt);
|
|
232
196
|
};
|
|
233
|
-
|
|
234
|
-
var handleOptionCheck = function handleOptionCheck(column) {
|
|
197
|
+
var handleOptionCheck = function (column) {
|
|
235
198
|
var columns = reactData.columns;
|
|
236
|
-
|
|
237
199
|
var matchObj = _xeUtils.default.findTree(columns, function (item) {
|
|
238
200
|
return item === column;
|
|
239
201
|
});
|
|
240
|
-
|
|
241
202
|
if (matchObj && matchObj.parent) {
|
|
242
203
|
var parent_1 = matchObj.parent;
|
|
243
|
-
|
|
244
204
|
if (parent_1.children && parent_1.children.length) {
|
|
245
205
|
parent_1.visible = parent_1.children.every(function (column) {
|
|
246
206
|
return column.visible;
|
|
@@ -252,32 +212,25 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
252
212
|
}
|
|
253
213
|
}
|
|
254
214
|
};
|
|
255
|
-
|
|
256
|
-
var changeCustomOption = function changeCustomOption(column) {
|
|
215
|
+
var changeCustomOption = function (column) {
|
|
257
216
|
var isChecked = !column.visible;
|
|
258
217
|
var customOpts = computeCustomOpts.value;
|
|
259
|
-
|
|
260
218
|
_xeUtils.default.eachTree([column], function (item) {
|
|
261
219
|
item.visible = isChecked;
|
|
262
220
|
item.halfVisible = false;
|
|
263
221
|
});
|
|
264
|
-
|
|
265
222
|
handleOptionCheck(column);
|
|
266
|
-
|
|
267
223
|
if (props.custom && customOpts.immediate) {
|
|
268
224
|
handleTableCustom();
|
|
269
225
|
}
|
|
270
|
-
|
|
271
226
|
checkCustomStatus();
|
|
272
227
|
};
|
|
273
|
-
|
|
274
|
-
var allCustomEvent = function allCustomEvent() {
|
|
228
|
+
var allCustomEvent = function () {
|
|
275
229
|
var columns = reactData.columns;
|
|
276
230
|
var computeTableCustomOpts = $xetable.getComputeMaps().computeCustomOpts;
|
|
277
231
|
var tableCustomOpts = computeTableCustomOpts.value;
|
|
278
232
|
var checkMethod = tableCustomOpts.checkMethod;
|
|
279
233
|
var isAll = !customStore.isAll;
|
|
280
|
-
|
|
281
234
|
_xeUtils.default.eachTree(columns, function (column) {
|
|
282
235
|
if (!checkMethod || checkMethod({
|
|
283
236
|
column: column
|
|
@@ -286,37 +239,30 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
286
239
|
column.halfVisible = false;
|
|
287
240
|
}
|
|
288
241
|
});
|
|
289
|
-
|
|
290
242
|
customStore.isAll = isAll;
|
|
291
243
|
checkCustomStatus();
|
|
292
244
|
};
|
|
293
|
-
|
|
294
|
-
var handleGlobalMousedownEvent = function handleGlobalMousedownEvent(evnt) {
|
|
245
|
+
var handleGlobalMousedownEvent = function (evnt) {
|
|
295
246
|
var customWrapperElem = refCustomWrapper.value;
|
|
296
|
-
|
|
297
247
|
if (!(0, _dom.getEventTargetNode)(evnt, customWrapperElem).flag) {
|
|
298
248
|
customColseEvent(evnt);
|
|
299
249
|
}
|
|
300
250
|
};
|
|
301
|
-
|
|
302
|
-
var handleGlobalBlurEvent = function handleGlobalBlurEvent(evnt) {
|
|
251
|
+
var handleGlobalBlurEvent = function (evnt) {
|
|
303
252
|
customColseEvent(evnt);
|
|
304
253
|
};
|
|
305
|
-
|
|
306
|
-
var handleClickSettingEvent = function handleClickSettingEvent(evnt) {
|
|
254
|
+
var handleClickSettingEvent = function (evnt) {
|
|
307
255
|
if (customStore.visible) {
|
|
308
256
|
customColseEvent(evnt);
|
|
309
257
|
} else {
|
|
310
258
|
customOpenEvent(evnt);
|
|
311
259
|
}
|
|
312
260
|
};
|
|
313
|
-
|
|
314
|
-
var handleMouseenterSettingEvent = function handleMouseenterSettingEvent(evnt) {
|
|
261
|
+
var handleMouseenterSettingEvent = function (evnt) {
|
|
315
262
|
customStore.activeBtn = true;
|
|
316
263
|
customOpenEvent(evnt);
|
|
317
264
|
};
|
|
318
|
-
|
|
319
|
-
var handleMouseleaveSettingEvent = function handleMouseleaveSettingEvent(evnt) {
|
|
265
|
+
var handleMouseleaveSettingEvent = function (evnt) {
|
|
320
266
|
customStore.activeBtn = false;
|
|
321
267
|
setTimeout(function () {
|
|
322
268
|
if (!customStore.activeBtn && !customStore.activeWrapper) {
|
|
@@ -324,13 +270,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
324
270
|
}
|
|
325
271
|
}, 300);
|
|
326
272
|
};
|
|
327
|
-
|
|
328
|
-
var handleWrapperMouseenterEvent = function handleWrapperMouseenterEvent(evnt) {
|
|
273
|
+
var handleWrapperMouseenterEvent = function (evnt) {
|
|
329
274
|
customStore.activeWrapper = true;
|
|
330
275
|
customOpenEvent(evnt);
|
|
331
276
|
};
|
|
332
|
-
|
|
333
|
-
var handleWrapperMouseleaveEvent = function handleWrapperMouseleaveEvent(evnt) {
|
|
277
|
+
var handleWrapperMouseleaveEvent = function (evnt) {
|
|
334
278
|
customStore.activeWrapper = false;
|
|
335
279
|
setTimeout(function () {
|
|
336
280
|
if (!customStore.activeBtn && !customStore.activeWrapper) {
|
|
@@ -338,17 +282,13 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
338
282
|
}
|
|
339
283
|
}, 300);
|
|
340
284
|
};
|
|
341
|
-
|
|
342
|
-
var refreshEvent = function refreshEvent() {
|
|
285
|
+
var refreshEvent = function () {
|
|
343
286
|
var isRefresh = reactData.isRefresh;
|
|
344
287
|
var refreshOpts = computeRefreshOpts.value;
|
|
345
|
-
|
|
346
288
|
if (!isRefresh) {
|
|
347
289
|
var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
348
|
-
|
|
349
290
|
if (queryMethod) {
|
|
350
291
|
reactData.isRefresh = true;
|
|
351
|
-
|
|
352
292
|
try {
|
|
353
293
|
Promise.resolve(queryMethod({})).catch(function (e) {
|
|
354
294
|
return e;
|
|
@@ -368,91 +308,74 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
368
308
|
}
|
|
369
309
|
}
|
|
370
310
|
};
|
|
371
|
-
|
|
372
|
-
var zoomEvent = function zoomEvent(evnt) {
|
|
311
|
+
var zoomEvent = function (evnt) {
|
|
373
312
|
if ($xegrid) {
|
|
374
313
|
$xegrid.triggerZoomEvent(evnt);
|
|
375
314
|
}
|
|
376
315
|
};
|
|
377
|
-
|
|
378
|
-
var btnEvent = function btnEvent(evnt, item) {
|
|
316
|
+
var btnEvent = function (evnt, item) {
|
|
379
317
|
var code = item.code;
|
|
380
|
-
|
|
381
318
|
if (code) {
|
|
382
319
|
if ($xegrid) {
|
|
383
320
|
$xegrid.triggerToolbarBtnEvent(item, evnt);
|
|
384
321
|
} else {
|
|
385
322
|
var commandMethod = _vXETable.VXETable.commands.get(code);
|
|
386
|
-
|
|
387
323
|
var params = {
|
|
388
324
|
code: code,
|
|
389
325
|
button: item,
|
|
390
326
|
$table: $xetable,
|
|
391
327
|
$event: evnt
|
|
392
328
|
};
|
|
393
|
-
|
|
394
329
|
if (commandMethod) {
|
|
395
330
|
commandMethod(params, evnt);
|
|
396
331
|
}
|
|
397
|
-
|
|
398
332
|
$xetoolbar.dispatchEvent('button-click', params, evnt);
|
|
399
333
|
}
|
|
400
334
|
}
|
|
401
335
|
};
|
|
402
|
-
|
|
403
|
-
var tolEvent = function tolEvent(evnt, item) {
|
|
336
|
+
var tolEvent = function (evnt, item) {
|
|
404
337
|
var code = item.code;
|
|
405
|
-
|
|
406
338
|
if (code) {
|
|
407
339
|
if ($xegrid) {
|
|
408
340
|
$xegrid.triggerToolbarTolEvent(item, evnt);
|
|
409
341
|
} else {
|
|
410
342
|
var commandMethod = _vXETable.VXETable.commands.get(code);
|
|
411
|
-
|
|
412
343
|
var params = {
|
|
413
344
|
code: code,
|
|
414
345
|
tool: item,
|
|
415
346
|
$table: $xetable,
|
|
416
347
|
$event: evnt
|
|
417
348
|
};
|
|
418
|
-
|
|
419
349
|
if (commandMethod) {
|
|
420
350
|
commandMethod(params, evnt);
|
|
421
351
|
}
|
|
422
|
-
|
|
423
352
|
$xetoolbar.dispatchEvent('tool-click', params, evnt);
|
|
424
353
|
}
|
|
425
354
|
}
|
|
426
355
|
};
|
|
427
|
-
|
|
428
|
-
var importEvent = function importEvent() {
|
|
356
|
+
var importEvent = function () {
|
|
429
357
|
if (checkTable()) {
|
|
430
358
|
$xetable.openImport();
|
|
431
359
|
}
|
|
432
360
|
};
|
|
433
|
-
|
|
434
|
-
var exportEvent = function exportEvent() {
|
|
361
|
+
var exportEvent = function () {
|
|
435
362
|
if (checkTable()) {
|
|
436
363
|
$xetable.openExport();
|
|
437
364
|
}
|
|
438
365
|
};
|
|
439
|
-
|
|
440
|
-
var printEvent = function printEvent() {
|
|
366
|
+
var printEvent = function () {
|
|
441
367
|
if (checkTable()) {
|
|
442
368
|
$xetable.openPrint();
|
|
443
369
|
}
|
|
444
370
|
};
|
|
445
|
-
|
|
446
|
-
var renderDropdowns = function renderDropdowns(item, isBtn) {
|
|
371
|
+
var renderDropdowns = function (item, isBtn) {
|
|
447
372
|
var dropdowns = item.dropdowns;
|
|
448
373
|
var downVNs = [];
|
|
449
|
-
|
|
450
374
|
if (dropdowns) {
|
|
451
375
|
return dropdowns.map(function (child, index) {
|
|
452
376
|
if (child.visible === false) {
|
|
453
377
|
return (0, _vue.createCommentVNode)();
|
|
454
378
|
}
|
|
455
|
-
|
|
456
379
|
return (0, _vue.h)((0, _vue.resolveComponent)('vxe-button'), {
|
|
457
380
|
key: index,
|
|
458
381
|
disabled: child.disabled,
|
|
@@ -463,41 +386,33 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
463
386
|
round: child.round,
|
|
464
387
|
status: child.status,
|
|
465
388
|
content: child.name,
|
|
466
|
-
onClick: function
|
|
389
|
+
onClick: function (evnt) {
|
|
467
390
|
return isBtn ? btnEvent(evnt, child) : tolEvent(evnt, child);
|
|
468
391
|
}
|
|
469
392
|
});
|
|
470
393
|
});
|
|
471
394
|
}
|
|
472
|
-
|
|
473
395
|
return downVNs;
|
|
474
396
|
};
|
|
475
397
|
/**
|
|
476
398
|
* 渲染按钮
|
|
477
399
|
*/
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
var renderBtns = function renderBtns() {
|
|
400
|
+
var renderBtns = function () {
|
|
481
401
|
var buttons = props.buttons;
|
|
482
402
|
var buttonsSlot = slots.buttons;
|
|
483
|
-
|
|
484
403
|
if (buttonsSlot) {
|
|
485
404
|
return (0, _vn.getSlotVNs)(buttonsSlot({
|
|
486
405
|
$grid: $xegrid,
|
|
487
406
|
$table: $xetable
|
|
488
407
|
}));
|
|
489
408
|
}
|
|
490
|
-
|
|
491
409
|
var btnVNs = [];
|
|
492
|
-
|
|
493
410
|
if (buttons) {
|
|
494
411
|
buttons.forEach(function (item) {
|
|
495
412
|
var dropdowns = item.dropdowns,
|
|
496
|
-
|
|
497
|
-
|
|
413
|
+
buttonRender = item.buttonRender;
|
|
498
414
|
if (item.visible !== false) {
|
|
499
415
|
var compConf = buttonRender ? _vXETable.VXETable.renderer.get(buttonRender.name) : null;
|
|
500
|
-
|
|
501
416
|
if (buttonRender && compConf && compConf.renderToolbarButton) {
|
|
502
417
|
btnVNs.push((0, _vue.h)('span', {
|
|
503
418
|
class: 'vxe-button--item'
|
|
@@ -519,11 +434,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
519
434
|
destroyOnClose: item.destroyOnClose,
|
|
520
435
|
placement: item.placement,
|
|
521
436
|
transfer: item.transfer,
|
|
522
|
-
onClick: function
|
|
437
|
+
onClick: function (evnt) {
|
|
523
438
|
return btnEvent(evnt, item);
|
|
524
439
|
}
|
|
525
440
|
}, dropdowns && dropdowns.length ? {
|
|
526
|
-
dropdowns: function
|
|
441
|
+
dropdowns: function () {
|
|
527
442
|
return renderDropdowns(item, true);
|
|
528
443
|
}
|
|
529
444
|
} : {}));
|
|
@@ -531,35 +446,27 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
531
446
|
}
|
|
532
447
|
});
|
|
533
448
|
}
|
|
534
|
-
|
|
535
449
|
return btnVNs;
|
|
536
450
|
};
|
|
537
451
|
/**
|
|
538
452
|
* 渲染右侧工具
|
|
539
453
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
var renderRightTools = function renderRightTools() {
|
|
454
|
+
var renderRightTools = function () {
|
|
543
455
|
var tools = props.tools;
|
|
544
456
|
var toolsSlot = slots.tools;
|
|
545
|
-
|
|
546
457
|
if (toolsSlot) {
|
|
547
458
|
return (0, _vn.getSlotVNs)(toolsSlot({
|
|
548
459
|
$grid: $xegrid,
|
|
549
460
|
$table: $xetable
|
|
550
461
|
}));
|
|
551
462
|
}
|
|
552
|
-
|
|
553
463
|
var btnVNs = [];
|
|
554
|
-
|
|
555
464
|
if (tools) {
|
|
556
465
|
tools.forEach(function (item) {
|
|
557
466
|
var dropdowns = item.dropdowns,
|
|
558
|
-
|
|
559
|
-
|
|
467
|
+
toolRender = item.toolRender;
|
|
560
468
|
if (item.visible !== false) {
|
|
561
469
|
var compConf = toolRender ? _vXETable.VXETable.renderer.get(toolRender.name) : null;
|
|
562
|
-
|
|
563
470
|
if (toolRender && compConf && compConf.renderToolbarTool) {
|
|
564
471
|
btnVNs.push((0, _vue.h)('span', {
|
|
565
472
|
class: 'vxe-tool--item'
|
|
@@ -581,11 +488,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
581
488
|
destroyOnClose: item.destroyOnClose,
|
|
582
489
|
placement: item.placement,
|
|
583
490
|
transfer: item.transfer,
|
|
584
|
-
onClick: function
|
|
491
|
+
onClick: function (evnt) {
|
|
585
492
|
return tolEvent(evnt, item);
|
|
586
493
|
}
|
|
587
494
|
}, dropdowns && dropdowns.length ? {
|
|
588
|
-
dropdowns: function
|
|
495
|
+
dropdowns: function () {
|
|
589
496
|
return renderDropdowns(item, false);
|
|
590
497
|
}
|
|
591
498
|
} : {}));
|
|
@@ -593,25 +500,22 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
593
500
|
}
|
|
594
501
|
});
|
|
595
502
|
}
|
|
596
|
-
|
|
597
503
|
return btnVNs;
|
|
598
504
|
};
|
|
599
|
-
|
|
600
|
-
var renderCustoms = function renderCustoms() {
|
|
505
|
+
var renderCustoms = function () {
|
|
601
506
|
var columns = reactData.columns;
|
|
602
507
|
var customOpts = computeCustomOpts.value;
|
|
603
508
|
var colVNs = [];
|
|
604
509
|
var customBtnOns = {};
|
|
605
510
|
var customWrapperOns = {};
|
|
606
511
|
var checkMethod;
|
|
607
|
-
|
|
608
512
|
if ($xetable) {
|
|
609
513
|
var computeTableCustomOpts = $xetable.getComputeMaps().computeCustomOpts;
|
|
610
514
|
var tableCustomOpts = computeTableCustomOpts.value;
|
|
611
515
|
checkMethod = tableCustomOpts.checkMethod;
|
|
612
516
|
}
|
|
613
|
-
|
|
614
|
-
|
|
517
|
+
if (customOpts.trigger === 'manual') {
|
|
518
|
+
// 手动触发
|
|
615
519
|
} else if (customOpts.trigger === 'hover') {
|
|
616
520
|
// hover 触发
|
|
617
521
|
customBtnOns.onMouseenter = handleMouseenterSettingEvent;
|
|
@@ -622,7 +526,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
622
526
|
// 点击触发
|
|
623
527
|
customBtnOns.onClick = handleClickSettingEvent;
|
|
624
528
|
}
|
|
625
|
-
|
|
626
529
|
_xeUtils.default.eachTree(columns, function (column) {
|
|
627
530
|
var colTitle = (0, _utils.formatText)(column.getTitle(), 1);
|
|
628
531
|
var colKey = column.getKey();
|
|
@@ -630,7 +533,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
630
533
|
var isDisabled = checkMethod ? !checkMethod({
|
|
631
534
|
column: column
|
|
632
535
|
}) : false;
|
|
633
|
-
|
|
634
536
|
if (isColGroup || colKey) {
|
|
635
537
|
var isChecked = column.visible;
|
|
636
538
|
var isIndeterminate = column.halfVisible;
|
|
@@ -642,7 +544,7 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
642
544
|
'is--disabled': isDisabled
|
|
643
545
|
}],
|
|
644
546
|
title: colTitle,
|
|
645
|
-
onClick: function
|
|
547
|
+
onClick: function () {
|
|
646
548
|
if (!isDisabled) {
|
|
647
549
|
changeCustomOption(column);
|
|
648
550
|
}
|
|
@@ -654,7 +556,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
654
556
|
}, colTitle)]));
|
|
655
557
|
}
|
|
656
558
|
});
|
|
657
|
-
|
|
658
559
|
var isAllChecked = customStore.isAll;
|
|
659
560
|
var isAllIndeterminate = customStore.isIndeterminate;
|
|
660
561
|
return (0, _vue.h)('div', {
|
|
@@ -693,15 +594,14 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
693
594
|
onClick: resetCustomEvent
|
|
694
595
|
}, _conf.default.i18n('vxe.toolbar.customRestore'))])])]);
|
|
695
596
|
};
|
|
696
|
-
|
|
697
597
|
toolbarMethods = {
|
|
698
|
-
dispatchEvent: function
|
|
598
|
+
dispatchEvent: function (type, params, evnt) {
|
|
699
599
|
emit(type, Object.assign({
|
|
700
600
|
$toolbar: $xetoolbar,
|
|
701
601
|
$event: evnt
|
|
702
602
|
}, params));
|
|
703
603
|
},
|
|
704
|
-
syncUpdate: function
|
|
604
|
+
syncUpdate: function (params) {
|
|
705
605
|
var collectColumn = params.collectColumn;
|
|
706
606
|
$xetable = params.$table;
|
|
707
607
|
reactData.columns = collectColumn;
|
|
@@ -710,33 +610,28 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
710
610
|
Object.assign($xetoolbar, toolbarMethods);
|
|
711
611
|
(0, _vue.onMounted)(function () {
|
|
712
612
|
_event.GlobalEvent.on($xetoolbar, 'mousedown', handleGlobalMousedownEvent);
|
|
713
|
-
|
|
714
613
|
_event.GlobalEvent.on($xetoolbar, 'blur', handleGlobalBlurEvent);
|
|
715
614
|
});
|
|
716
615
|
(0, _vue.onUnmounted)(function () {
|
|
717
616
|
_event.GlobalEvent.off($xetoolbar, 'mousedown');
|
|
718
|
-
|
|
719
617
|
_event.GlobalEvent.off($xetoolbar, 'blur');
|
|
720
618
|
});
|
|
721
619
|
(0, _vue.nextTick)(function () {
|
|
722
620
|
var refresh = props.refresh;
|
|
723
621
|
var refreshOpts = computeRefreshOpts.value;
|
|
724
622
|
var queryMethod = refreshOpts.queryMethod || refreshOpts.query;
|
|
725
|
-
|
|
726
623
|
if (refresh && !$xegrid && !queryMethod) {
|
|
727
624
|
(0, _log.warnLog)('vxe.error.notFunc', ['queryMethod']);
|
|
728
625
|
}
|
|
729
626
|
});
|
|
730
|
-
|
|
731
|
-
var renderVN = function renderVN() {
|
|
627
|
+
var renderVN = function () {
|
|
732
628
|
var _a;
|
|
733
|
-
|
|
734
629
|
var perfect = props.perfect,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
630
|
+
loading = props.loading,
|
|
631
|
+
refresh = props.refresh,
|
|
632
|
+
zoom = props.zoom,
|
|
633
|
+
custom = props.custom,
|
|
634
|
+
className = props.className;
|
|
740
635
|
var vSize = computeSize.value;
|
|
741
636
|
var refreshOpts = computeRefreshOpts.value;
|
|
742
637
|
var importOpts = computeImportOpts.value;
|
|
@@ -781,13 +676,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
781
676
|
onClick: zoomEvent
|
|
782
677
|
}) : (0, _vue.createCommentVNode)(), custom ? renderCustoms() : (0, _vue.createCommentVNode)()])]);
|
|
783
678
|
};
|
|
784
|
-
|
|
785
679
|
$xetoolbar.renderVN = renderVN;
|
|
786
680
|
return $xetoolbar;
|
|
787
681
|
},
|
|
788
|
-
render: function
|
|
682
|
+
render: function () {
|
|
789
683
|
return this.renderVN();
|
|
790
684
|
}
|
|
791
685
|
});
|
|
792
|
-
|
|
793
|
-
exports.default = _default2;
|
|
686
|
+
exports.default = _default;
|