vxe-table 4.3.4 → 4.3.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/footer/src/footer.js +3 -3
- 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/header/src/header.js +10 -5
- 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 +406 -178
- 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/locale/lang/en-US.js +0 -1
- package/es/locale/lang/ja-JP.js +0 -1
- package/es/locale/lang/zh-CN.js +0 -1
- package/es/locale/lang/zh-TC.js +0 -1
- 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 +36 -40
- 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 +458 -226
- 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 +406 -178
- 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 +54 -99
- 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 +57 -92
- 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 +406 -178
- 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 +14514 -23890
- 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/en-US.js +0 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +0 -1
- package/lib/locale/lang/ja-JP.js +0 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +0 -1
- package/lib/locale/lang/zh-CN.js +0 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +0 -1
- package/lib/locale/lang/zh-HK.js +0 -3
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +0 -1
- package/lib/locale/lang/zh-MO.js +0 -3
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +0 -1
- package/lib/locale/lang/zh-TC.js +0 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +0 -1
- package/lib/locale/lang/zh-TW.js +0 -3
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +0 -1
- 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 +670 -1620
- 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 +458 -226
- 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 +406 -178
- 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/footer/src/footer.ts +3 -3
- package/packages/form/src/form.ts +5 -4
- package/packages/header/src/header.ts +13 -9
- package/packages/list/src/list.ts +8 -2
- package/packages/locale/lang/en-US.ts +0 -1
- package/packages/locale/lang/ja-JP.ts +0 -1
- package/packages/locale/lang/zh-CN.ts +0 -1
- package/packages/locale/lang/zh-TC.ts +0 -1
- 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 +117 -113
- 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 +78 -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/option/index.js
CHANGED
|
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.VxeOption = exports.Option = void 0;
|
|
7
|
-
|
|
8
7
|
var _option = _interopRequireDefault(require("../select/src/option"));
|
|
9
|
-
|
|
10
8
|
var _dynamics = require("../dynamics");
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
var VxeOption = Object.assign(_option.default, {
|
|
15
|
-
install: function
|
|
11
|
+
install: function (app) {
|
|
16
12
|
app.component(_option.default.name, _option.default);
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
exports.VxeOption = VxeOption;
|
|
20
16
|
var Option = VxeOption;
|
|
21
17
|
exports.Option = Option;
|
|
22
|
-
|
|
23
18
|
_dynamics.dynamicApp.component(_option.default.name, _option.default);
|
|
24
|
-
|
|
25
19
|
var _default = VxeOption;
|
|
26
20
|
exports.default = _default;
|
package/lib/option/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeOption=exports.Option=void 0;var _option=_interopRequireDefault(require("../select/src/option")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeOption=Object.assign(_option.default,{install:function(e){e.component(_option.default.name,_option.default)}}),Option=exports.VxeOption=VxeOption
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeOption=exports.Option=void 0;var _option=_interopRequireDefault(require("../select/src/option")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeOption=Object.assign(_option.default,{install:function(e){e.component(_option.default.name,_option.default)}}),Option=exports.VxeOption=VxeOption,_default=(exports.Option=Option,_dynamics.dynamicApp.component(_option.default.name,_option.default),VxeOption);exports.default=_default;
|
package/lib/pager/index.js
CHANGED
|
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.VxePager = exports.Pager = void 0;
|
|
7
|
-
|
|
8
7
|
var _pager = _interopRequireDefault(require("./src/pager"));
|
|
9
|
-
|
|
10
8
|
var _dynamics = require("../dynamics");
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
var VxePager = Object.assign(_pager.default, {
|
|
15
|
-
install: function
|
|
11
|
+
install: function (app) {
|
|
16
12
|
app.component(_pager.default.name, _pager.default);
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
exports.VxePager = VxePager;
|
|
20
16
|
var Pager = VxePager;
|
|
21
17
|
exports.Pager = Pager;
|
|
22
|
-
|
|
23
18
|
_dynamics.dynamicApp.component(_pager.default.name, _pager.default);
|
|
24
|
-
|
|
25
19
|
var _default = VxePager;
|
|
26
20
|
exports.default = _default;
|
package/lib/pager/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxePager=exports.Pager=void 0;var _pager=_interopRequireDefault(require("./src/pager")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxePager=Object.assign(_pager.default,{install:function(e){e.component(_pager.default.name,_pager.default)}}),Pager=exports.VxePager=VxePager
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxePager=exports.Pager=void 0;var _pager=_interopRequireDefault(require("./src/pager")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxePager=Object.assign(_pager.default,{install:function(e){e.component(_pager.default.name,_pager.default)}}),Pager=exports.VxePager=VxePager,_default=(exports.Pager=Pager,_dynamics.dynamicApp.component(_pager.default.name,_pager.default),VxePager);exports.default=_default;
|
package/lib/pager/src/pager.js
CHANGED
|
@@ -4,48 +4,35 @@ 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 _event = require("../../tools/event");
|
|
15
|
-
|
|
16
11
|
var _size = require("../../hooks/size");
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
13
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
21
14
|
__assign = Object.assign || function (t) {
|
|
22
15
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
23
16
|
s = arguments[i];
|
|
24
|
-
|
|
25
|
-
for (var p in s) {
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
27
|
-
}
|
|
17
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
28
18
|
}
|
|
29
|
-
|
|
30
19
|
return t;
|
|
31
20
|
};
|
|
32
|
-
|
|
33
21
|
return __assign.apply(this, arguments);
|
|
34
22
|
};
|
|
35
|
-
|
|
36
|
-
var _default2 = (0, _vue.defineComponent)({
|
|
23
|
+
var _default = (0, _vue.defineComponent)({
|
|
37
24
|
name: 'VxePager',
|
|
38
25
|
props: {
|
|
39
26
|
size: {
|
|
40
27
|
type: String,
|
|
41
|
-
default: function
|
|
28
|
+
default: function () {
|
|
42
29
|
return _conf.default.pager.size || _conf.default.size;
|
|
43
30
|
}
|
|
44
31
|
},
|
|
45
32
|
// 自定义布局
|
|
46
33
|
layouts: {
|
|
47
34
|
type: Array,
|
|
48
|
-
default: function
|
|
35
|
+
default: function () {
|
|
49
36
|
return _conf.default.pager.layouts || ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total'];
|
|
50
37
|
}
|
|
51
38
|
},
|
|
@@ -59,7 +46,7 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
59
46
|
// 每页大小
|
|
60
47
|
pageSize: {
|
|
61
48
|
type: Number,
|
|
62
|
-
default: function
|
|
49
|
+
default: function () {
|
|
63
50
|
return _conf.default.pager.pageSize || 10;
|
|
64
51
|
}
|
|
65
52
|
},
|
|
@@ -71,55 +58,55 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
71
58
|
// 显示页码按钮的数量
|
|
72
59
|
pagerCount: {
|
|
73
60
|
type: Number,
|
|
74
|
-
default: function
|
|
61
|
+
default: function () {
|
|
75
62
|
return _conf.default.pager.pagerCount || 7;
|
|
76
63
|
}
|
|
77
64
|
},
|
|
78
65
|
// 每页大小选项列表
|
|
79
66
|
pageSizes: {
|
|
80
67
|
type: Array,
|
|
81
|
-
default: function
|
|
68
|
+
default: function () {
|
|
82
69
|
return _conf.default.pager.pageSizes || [10, 15, 20, 50, 100];
|
|
83
70
|
}
|
|
84
71
|
},
|
|
85
72
|
// 列对其方式
|
|
86
73
|
align: {
|
|
87
74
|
type: String,
|
|
88
|
-
default: function
|
|
75
|
+
default: function () {
|
|
89
76
|
return _conf.default.pager.align;
|
|
90
77
|
}
|
|
91
78
|
},
|
|
92
79
|
// 带边框
|
|
93
80
|
border: {
|
|
94
81
|
type: Boolean,
|
|
95
|
-
default: function
|
|
82
|
+
default: function () {
|
|
96
83
|
return _conf.default.pager.border;
|
|
97
84
|
}
|
|
98
85
|
},
|
|
99
86
|
// 带背景颜色
|
|
100
87
|
background: {
|
|
101
88
|
type: Boolean,
|
|
102
|
-
default: function
|
|
89
|
+
default: function () {
|
|
103
90
|
return _conf.default.pager.background;
|
|
104
91
|
}
|
|
105
92
|
},
|
|
106
93
|
// 配套的样式
|
|
107
94
|
perfect: {
|
|
108
95
|
type: Boolean,
|
|
109
|
-
default: function
|
|
96
|
+
default: function () {
|
|
110
97
|
return _conf.default.pager.perfect;
|
|
111
98
|
}
|
|
112
99
|
},
|
|
113
100
|
// 当只有一页时隐藏
|
|
114
101
|
autoHidden: {
|
|
115
102
|
type: Boolean,
|
|
116
|
-
default: function
|
|
103
|
+
default: function () {
|
|
117
104
|
return _conf.default.pager.autoHidden;
|
|
118
105
|
}
|
|
119
106
|
},
|
|
120
107
|
transfer: {
|
|
121
108
|
type: Boolean,
|
|
122
|
-
default: function
|
|
109
|
+
default: function () {
|
|
123
110
|
return _conf.default.pager.transfer;
|
|
124
111
|
}
|
|
125
112
|
},
|
|
@@ -132,12 +119,10 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
132
119
|
iconJumpMore: String
|
|
133
120
|
},
|
|
134
121
|
emits: ['update:pageSize', 'update:currentPage', 'page-change'],
|
|
135
|
-
setup: function
|
|
122
|
+
setup: function (props, context) {
|
|
136
123
|
var slots = context.slots,
|
|
137
|
-
|
|
138
|
-
|
|
124
|
+
emit = context.emit;
|
|
139
125
|
var xID = _xeUtils.default.uniqueId();
|
|
140
|
-
|
|
141
126
|
var computeSize = (0, _size.useSize)(props);
|
|
142
127
|
var $xegrid = (0, _vue.inject)('$xegrid', null);
|
|
143
128
|
var reactData = (0, _vue.reactive)({
|
|
@@ -151,24 +136,20 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
151
136
|
xID: xID,
|
|
152
137
|
props: props,
|
|
153
138
|
context: context,
|
|
154
|
-
getRefMaps: function
|
|
139
|
+
getRefMaps: function () {
|
|
155
140
|
return refMaps;
|
|
156
141
|
}
|
|
157
142
|
};
|
|
158
143
|
var pagerMethods = {};
|
|
159
144
|
var pagerPrivateMethods = {};
|
|
160
|
-
|
|
161
|
-
var getPageCount = function getPageCount(total, size) {
|
|
145
|
+
var getPageCount = function (total, size) {
|
|
162
146
|
return Math.max(Math.ceil(total / size), 1);
|
|
163
147
|
};
|
|
164
|
-
|
|
165
148
|
var computePageCount = (0, _vue.computed)(function () {
|
|
166
149
|
return getPageCount(props.total, props.pageSize);
|
|
167
150
|
});
|
|
168
|
-
|
|
169
|
-
var jumpPageEvent = function jumpPageEvent(evnt, currentPage) {
|
|
151
|
+
var jumpPageEvent = function (evnt, currentPage) {
|
|
170
152
|
emit('update:currentPage', currentPage);
|
|
171
|
-
|
|
172
153
|
if (evnt && currentPage !== props.currentPage) {
|
|
173
154
|
pagerMethods.dispatchEvent('page-change', {
|
|
174
155
|
type: 'current',
|
|
@@ -177,10 +158,8 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
177
158
|
}, evnt);
|
|
178
159
|
}
|
|
179
160
|
};
|
|
180
|
-
|
|
181
|
-
var changeCurrentPage = function changeCurrentPage(currentPage, evnt) {
|
|
161
|
+
var changeCurrentPage = function (currentPage, evnt) {
|
|
182
162
|
emit('update:currentPage', currentPage);
|
|
183
|
-
|
|
184
163
|
if (evnt && currentPage !== props.currentPage) {
|
|
185
164
|
pagerMethods.dispatchEvent('page-change', {
|
|
186
165
|
type: 'current',
|
|
@@ -189,28 +168,22 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
189
168
|
}, evnt);
|
|
190
169
|
}
|
|
191
170
|
};
|
|
192
|
-
|
|
193
|
-
var triggerJumpEvent = function triggerJumpEvent(evnt) {
|
|
171
|
+
var triggerJumpEvent = function (evnt) {
|
|
194
172
|
var inputElem = evnt.target;
|
|
195
|
-
|
|
196
173
|
var inpValue = _xeUtils.default.toNumber(inputElem.value);
|
|
197
|
-
|
|
198
174
|
var pageCount = computePageCount.value;
|
|
199
175
|
var current = inpValue <= 0 ? 1 : inpValue >= pageCount ? pageCount : inpValue;
|
|
200
176
|
inputElem.value = _xeUtils.default.toValueString(current);
|
|
201
177
|
changeCurrentPage(current, evnt);
|
|
202
178
|
};
|
|
203
|
-
|
|
204
179
|
var computeNumList = (0, _vue.computed)(function () {
|
|
205
180
|
var pagerCount = props.pagerCount;
|
|
206
181
|
var pageCount = computePageCount.value;
|
|
207
182
|
var len = pageCount > pagerCount ? pagerCount - 2 : pagerCount;
|
|
208
183
|
var rest = [];
|
|
209
|
-
|
|
210
184
|
for (var index = 0; index < len; index++) {
|
|
211
185
|
rest.push(index);
|
|
212
186
|
}
|
|
213
|
-
|
|
214
187
|
return rest;
|
|
215
188
|
});
|
|
216
189
|
var computeOffsetNumber = (0, _vue.computed)(function () {
|
|
@@ -224,48 +197,38 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
224
197
|
label: "".concat(_conf.default.i18n('vxe.pager.pagesize', [item]))
|
|
225
198
|
};
|
|
226
199
|
}
|
|
227
|
-
|
|
228
200
|
return __assign({
|
|
229
201
|
value: '',
|
|
230
202
|
label: ''
|
|
231
203
|
}, item);
|
|
232
204
|
});
|
|
233
205
|
});
|
|
234
|
-
|
|
235
|
-
var handlePrevPage = function handlePrevPage(evnt) {
|
|
206
|
+
var handlePrevPage = function (evnt) {
|
|
236
207
|
var currentPage = props.currentPage;
|
|
237
208
|
var pageCount = computePageCount.value;
|
|
238
|
-
|
|
239
209
|
if (currentPage > 1) {
|
|
240
210
|
changeCurrentPage(Math.min(pageCount, Math.max(currentPage - 1, 1)), evnt);
|
|
241
211
|
}
|
|
242
212
|
};
|
|
243
|
-
|
|
244
|
-
var handleNextPage = function handleNextPage(evnt) {
|
|
213
|
+
var handleNextPage = function (evnt) {
|
|
245
214
|
var currentPage = props.currentPage;
|
|
246
215
|
var pageCount = computePageCount.value;
|
|
247
|
-
|
|
248
216
|
if (currentPage < pageCount) {
|
|
249
217
|
changeCurrentPage(Math.min(pageCount, currentPage + 1), evnt);
|
|
250
218
|
}
|
|
251
219
|
};
|
|
252
|
-
|
|
253
|
-
var handlePrevJump = function handlePrevJump(evnt) {
|
|
220
|
+
var handlePrevJump = function (evnt) {
|
|
254
221
|
var numList = computeNumList.value;
|
|
255
222
|
changeCurrentPage(Math.max(props.currentPage - numList.length, 1), evnt);
|
|
256
223
|
};
|
|
257
|
-
|
|
258
|
-
var handleNextJump = function handleNextJump(evnt) {
|
|
224
|
+
var handleNextJump = function (evnt) {
|
|
259
225
|
var pageCount = computePageCount.value;
|
|
260
226
|
var numList = computeNumList.value;
|
|
261
227
|
changeCurrentPage(Math.min(props.currentPage + numList.length, pageCount), evnt);
|
|
262
228
|
};
|
|
263
|
-
|
|
264
|
-
var pageSizeEvent = function pageSizeEvent(params) {
|
|
229
|
+
var pageSizeEvent = function (params) {
|
|
265
230
|
var value = params.value;
|
|
266
|
-
|
|
267
231
|
var pageSize = _xeUtils.default.toNumber(value);
|
|
268
|
-
|
|
269
232
|
emit('update:pageSize', pageSize);
|
|
270
233
|
pagerMethods.dispatchEvent('page-change', {
|
|
271
234
|
type: 'size',
|
|
@@ -273,13 +236,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
273
236
|
currentPage: Math.min(props.currentPage, getPageCount(props.total, pageSize))
|
|
274
237
|
});
|
|
275
238
|
};
|
|
276
|
-
|
|
277
|
-
var jumpInputEvent = function jumpInputEvent(evnt) {
|
|
239
|
+
var jumpInputEvent = function (evnt) {
|
|
278
240
|
var inputElem = evnt.target;
|
|
279
241
|
reactData.inpCurrPage = inputElem.value;
|
|
280
242
|
};
|
|
281
|
-
|
|
282
|
-
var jumpKeydownEvent = function jumpKeydownEvent(evnt) {
|
|
243
|
+
var jumpKeydownEvent = function (evnt) {
|
|
283
244
|
if ((0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ENTER)) {
|
|
284
245
|
triggerJumpEvent(evnt);
|
|
285
246
|
} else if ((0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.ARROW_UP)) {
|
|
@@ -289,10 +250,9 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
289
250
|
evnt.preventDefault();
|
|
290
251
|
handlePrevPage(evnt);
|
|
291
252
|
}
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var renderPrevPage = function renderPrevPage() {
|
|
253
|
+
};
|
|
254
|
+
// 上一页
|
|
255
|
+
var renderPrevPage = function () {
|
|
296
256
|
return (0, _vue.h)('button', {
|
|
297
257
|
class: ['vxe-pager--prev-btn', {
|
|
298
258
|
'is--disabled': props.currentPage <= 1
|
|
@@ -303,10 +263,9 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
303
263
|
}, [(0, _vue.h)('i', {
|
|
304
264
|
class: ['vxe-pager--btn-icon', props.iconPrevPage || _conf.default.icon.PAGER_PREV_PAGE]
|
|
305
265
|
})]);
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var renderPrevJump = function renderPrevJump(tagName) {
|
|
266
|
+
};
|
|
267
|
+
// 向上翻页
|
|
268
|
+
var renderPrevJump = function (tagName) {
|
|
310
269
|
return (0, _vue.h)(tagName || 'button', {
|
|
311
270
|
class: ['vxe-pager--jump-prev', {
|
|
312
271
|
'is--fixed': !tagName,
|
|
@@ -320,10 +279,9 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
320
279
|
}) : null, (0, _vue.h)('i', {
|
|
321
280
|
class: ['vxe-pager--jump-icon', props.iconJumpPrev || _conf.default.icon.PAGER_JUMP_PREV]
|
|
322
281
|
})]);
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
var renderNextJump = function renderNextJump(tagName) {
|
|
282
|
+
};
|
|
283
|
+
// 向下翻页
|
|
284
|
+
var renderNextJump = function (tagName) {
|
|
327
285
|
var pageCount = computePageCount.value;
|
|
328
286
|
return (0, _vue.h)(tagName || 'button', {
|
|
329
287
|
class: ['vxe-pager--jump-next', {
|
|
@@ -338,10 +296,9 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
338
296
|
}) : null, (0, _vue.h)('i', {
|
|
339
297
|
class: ['vxe-pager--jump-icon', props.iconJumpNext || _conf.default.icon.PAGER_JUMP_NEXT]
|
|
340
298
|
})]);
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
var renderNextPage = function renderNextPage() {
|
|
299
|
+
};
|
|
300
|
+
// 下一页
|
|
301
|
+
var renderNextPage = function () {
|
|
345
302
|
var pageCount = computePageCount.value;
|
|
346
303
|
return (0, _vue.h)('button', {
|
|
347
304
|
class: ['vxe-pager--next-btn', {
|
|
@@ -353,12 +310,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
353
310
|
}, [(0, _vue.h)('i', {
|
|
354
311
|
class: ['vxe-pager--btn-icon', props.iconNextPage || _conf.default.icon.PAGER_NEXT_PAGE]
|
|
355
312
|
})]);
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
var renderNumber = function renderNumber(showJump) {
|
|
313
|
+
};
|
|
314
|
+
// 页数
|
|
315
|
+
var renderNumber = function (showJump) {
|
|
360
316
|
var currentPage = props.currentPage,
|
|
361
|
-
|
|
317
|
+
pagerCount = props.pagerCount;
|
|
362
318
|
var nums = [];
|
|
363
319
|
var pageCount = computePageCount.value;
|
|
364
320
|
var numList = computeNumList.value;
|
|
@@ -367,7 +323,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
367
323
|
var isLt = isOv && currentPage > offsetNumber + 1;
|
|
368
324
|
var isGt = isOv && currentPage < pageCount - offsetNumber;
|
|
369
325
|
var startNumber = 1;
|
|
370
|
-
|
|
371
326
|
if (isOv) {
|
|
372
327
|
if (currentPage >= pageCount - offsetNumber) {
|
|
373
328
|
startNumber = Math.max(pageCount - numList.length + 1, 1);
|
|
@@ -375,20 +330,17 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
375
330
|
startNumber = Math.max(currentPage - offsetNumber, 1);
|
|
376
331
|
}
|
|
377
332
|
}
|
|
378
|
-
|
|
379
333
|
if (showJump && isLt) {
|
|
380
334
|
nums.push((0, _vue.h)('button', {
|
|
381
335
|
class: 'vxe-pager--num-btn',
|
|
382
336
|
type: 'button',
|
|
383
|
-
onClick: function
|
|
337
|
+
onClick: function (evnt) {
|
|
384
338
|
return jumpPageEvent(evnt, 1);
|
|
385
339
|
}
|
|
386
340
|
}, 1), renderPrevJump('span'));
|
|
387
341
|
}
|
|
388
|
-
|
|
389
342
|
numList.forEach(function (item, index) {
|
|
390
343
|
var number = startNumber + index;
|
|
391
|
-
|
|
392
344
|
if (number <= pageCount) {
|
|
393
345
|
nums.push((0, _vue.h)('button', {
|
|
394
346
|
key: number,
|
|
@@ -396,35 +348,31 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
396
348
|
'is--active': currentPage === number
|
|
397
349
|
}],
|
|
398
350
|
type: 'button',
|
|
399
|
-
onClick: function
|
|
351
|
+
onClick: function (evnt) {
|
|
400
352
|
return jumpPageEvent(evnt, number);
|
|
401
353
|
}
|
|
402
354
|
}, number));
|
|
403
355
|
}
|
|
404
356
|
});
|
|
405
|
-
|
|
406
357
|
if (showJump && isGt) {
|
|
407
358
|
nums.push(renderNextJump('button'), (0, _vue.h)('button', {
|
|
408
359
|
class: 'vxe-pager--num-btn',
|
|
409
360
|
type: 'button',
|
|
410
|
-
onClick: function
|
|
361
|
+
onClick: function (evnt) {
|
|
411
362
|
return jumpPageEvent(evnt, pageCount);
|
|
412
363
|
}
|
|
413
364
|
}, pageCount));
|
|
414
365
|
}
|
|
415
|
-
|
|
416
366
|
return (0, _vue.h)('span', {
|
|
417
367
|
class: 'vxe-pager--btn-wrapper'
|
|
418
368
|
}, nums);
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
var renderJumpNumber = function renderJumpNumber() {
|
|
369
|
+
};
|
|
370
|
+
// jumpNumber
|
|
371
|
+
var renderJumpNumber = function () {
|
|
423
372
|
return renderNumber(true);
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
var renderSizes = function renderSizes() {
|
|
373
|
+
};
|
|
374
|
+
// sizes
|
|
375
|
+
var renderSizes = function () {
|
|
428
376
|
var sizeList = computeSizeList.value;
|
|
429
377
|
return (0, _vue.h)((0, _vue.resolveComponent)('vxe-select'), {
|
|
430
378
|
class: 'vxe-pager--sizes',
|
|
@@ -434,10 +382,9 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
434
382
|
options: sizeList,
|
|
435
383
|
onChange: pageSizeEvent
|
|
436
384
|
});
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
var renderJump = function renderJump(isFull) {
|
|
385
|
+
};
|
|
386
|
+
// Jump
|
|
387
|
+
var renderJump = function (isFull) {
|
|
441
388
|
return (0, _vue.h)('span', {
|
|
442
389
|
class: 'vxe-pager--jump'
|
|
443
390
|
}, [isFull ? (0, _vue.h)('span', {
|
|
@@ -453,50 +400,46 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
453
400
|
}), isFull ? (0, _vue.h)('span', {
|
|
454
401
|
class: 'vxe-pager--classifier-text'
|
|
455
402
|
}, _conf.default.i18n('vxe.pager.pageClassifier')) : null]);
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
var renderFullJump = function renderFullJump() {
|
|
403
|
+
};
|
|
404
|
+
// FullJump
|
|
405
|
+
var renderFullJump = function () {
|
|
460
406
|
return renderJump(true);
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
var renderPageCount = function renderPageCount() {
|
|
407
|
+
};
|
|
408
|
+
// PageCount
|
|
409
|
+
var renderPageCount = function () {
|
|
465
410
|
var pageCount = computePageCount.value;
|
|
466
411
|
return (0, _vue.h)('span', {
|
|
467
412
|
class: 'vxe-pager--count'
|
|
468
413
|
}, [(0, _vue.h)('span', {
|
|
469
414
|
class: 'vxe-pager--separator'
|
|
470
415
|
}), (0, _vue.h)('span', pageCount)]);
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
var renderTotal = function renderTotal() {
|
|
416
|
+
};
|
|
417
|
+
// total
|
|
418
|
+
var renderTotal = function () {
|
|
475
419
|
return (0, _vue.h)('span', {
|
|
476
420
|
class: 'vxe-pager--total'
|
|
477
421
|
}, _conf.default.i18n('vxe.pager.total', [props.total]));
|
|
478
422
|
};
|
|
479
|
-
|
|
480
423
|
pagerMethods = {
|
|
481
|
-
dispatchEvent: function
|
|
424
|
+
dispatchEvent: function (type, params, evnt) {
|
|
482
425
|
emit(type, Object.assign({
|
|
483
426
|
$pager: $xepager,
|
|
484
427
|
$event: evnt
|
|
485
428
|
}, params));
|
|
486
429
|
},
|
|
487
|
-
prevPage: function
|
|
430
|
+
prevPage: function () {
|
|
488
431
|
handlePrevPage();
|
|
489
432
|
return (0, _vue.nextTick)();
|
|
490
433
|
},
|
|
491
|
-
nextPage: function
|
|
434
|
+
nextPage: function () {
|
|
492
435
|
handleNextPage();
|
|
493
436
|
return (0, _vue.nextTick)();
|
|
494
437
|
},
|
|
495
|
-
prevJump: function
|
|
438
|
+
prevJump: function () {
|
|
496
439
|
handlePrevJump();
|
|
497
440
|
return (0, _vue.nextTick)();
|
|
498
441
|
},
|
|
499
|
-
nextJump: function
|
|
442
|
+
nextJump: function () {
|
|
500
443
|
handleNextJump();
|
|
501
444
|
return (0, _vue.nextTick)();
|
|
502
445
|
}
|
|
@@ -513,17 +456,14 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
513
456
|
}, function (value) {
|
|
514
457
|
reactData.inpCurrPage = value;
|
|
515
458
|
});
|
|
516
|
-
|
|
517
|
-
var renderVN = function renderVN() {
|
|
459
|
+
var renderVN = function () {
|
|
518
460
|
var _a;
|
|
519
|
-
|
|
520
461
|
var align = props.align,
|
|
521
|
-
|
|
522
|
-
|
|
462
|
+
layouts = props.layouts,
|
|
463
|
+
className = props.className;
|
|
523
464
|
var childNodes = [];
|
|
524
465
|
var vSize = computeSize.value;
|
|
525
466
|
var pageCount = computePageCount.value;
|
|
526
|
-
|
|
527
467
|
if (slots.left) {
|
|
528
468
|
childNodes.push((0, _vue.h)('span', {
|
|
529
469
|
class: 'vxe-pager--left-wrapper'
|
|
@@ -531,61 +471,47 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
531
471
|
$grid: $xegrid
|
|
532
472
|
})));
|
|
533
473
|
}
|
|
534
|
-
|
|
535
474
|
layouts.forEach(function (name) {
|
|
536
475
|
var renderFn;
|
|
537
|
-
|
|
538
476
|
switch (name) {
|
|
539
477
|
case 'PrevPage':
|
|
540
478
|
renderFn = renderPrevPage;
|
|
541
479
|
break;
|
|
542
|
-
|
|
543
480
|
case 'PrevJump':
|
|
544
481
|
renderFn = renderPrevJump;
|
|
545
482
|
break;
|
|
546
|
-
|
|
547
483
|
case 'Number':
|
|
548
484
|
renderFn = renderNumber;
|
|
549
485
|
break;
|
|
550
|
-
|
|
551
486
|
case 'JumpNumber':
|
|
552
487
|
renderFn = renderJumpNumber;
|
|
553
488
|
break;
|
|
554
|
-
|
|
555
489
|
case 'NextJump':
|
|
556
490
|
renderFn = renderNextJump;
|
|
557
491
|
break;
|
|
558
|
-
|
|
559
492
|
case 'NextPage':
|
|
560
493
|
renderFn = renderNextPage;
|
|
561
494
|
break;
|
|
562
|
-
|
|
563
495
|
case 'Sizes':
|
|
564
496
|
renderFn = renderSizes;
|
|
565
497
|
break;
|
|
566
|
-
|
|
567
498
|
case 'FullJump':
|
|
568
499
|
renderFn = renderFullJump;
|
|
569
500
|
break;
|
|
570
|
-
|
|
571
501
|
case 'Jump':
|
|
572
502
|
renderFn = renderJump;
|
|
573
503
|
break;
|
|
574
|
-
|
|
575
504
|
case 'PageCount':
|
|
576
505
|
renderFn = renderPageCount;
|
|
577
506
|
break;
|
|
578
|
-
|
|
579
507
|
case 'Total':
|
|
580
508
|
renderFn = renderTotal;
|
|
581
509
|
break;
|
|
582
510
|
}
|
|
583
|
-
|
|
584
511
|
if (renderFn) {
|
|
585
512
|
childNodes.push(renderFn());
|
|
586
513
|
}
|
|
587
514
|
});
|
|
588
|
-
|
|
589
515
|
if (slots.right) {
|
|
590
516
|
childNodes.push((0, _vue.h)('span', {
|
|
591
517
|
class: 'vxe-pager--right-wrapper'
|
|
@@ -593,7 +519,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
593
519
|
$grid: $xegrid
|
|
594
520
|
})));
|
|
595
521
|
}
|
|
596
|
-
|
|
597
522
|
return (0, _vue.h)('div', {
|
|
598
523
|
ref: refElem,
|
|
599
524
|
class: ['vxe-pager', className ? _xeUtils.default.isFunction(className) ? className({
|
|
@@ -603,13 +528,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
603
528
|
class: 'vxe-pager--wrapper'
|
|
604
529
|
}, childNodes)]);
|
|
605
530
|
};
|
|
606
|
-
|
|
607
531
|
$xepager.renderVN = renderVN;
|
|
608
532
|
return $xepager;
|
|
609
533
|
},
|
|
610
|
-
render: function
|
|
534
|
+
render: function () {
|
|
611
535
|
return this.renderVN();
|
|
612
536
|
}
|
|
613
537
|
});
|
|
614
|
-
|
|
615
|
-
exports.default = _default2;
|
|
538
|
+
exports.default = _default;
|