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/list/index.js
CHANGED
|
@@ -4,23 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.VxeList = exports.List = void 0;
|
|
7
|
-
|
|
8
7
|
var _list = _interopRequireDefault(require("./src/list"));
|
|
9
|
-
|
|
10
8
|
var _dynamics = require("../dynamics");
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
var VxeList = Object.assign(_list.default, {
|
|
15
|
-
install: function
|
|
11
|
+
install: function (app) {
|
|
16
12
|
app.component(_list.default.name, _list.default);
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
exports.VxeList = VxeList;
|
|
20
16
|
var List = VxeList;
|
|
21
17
|
exports.List = List;
|
|
22
|
-
|
|
23
18
|
_dynamics.dynamicApp.component(_list.default.name, _list.default);
|
|
24
|
-
|
|
25
19
|
var _default = VxeList;
|
|
26
20
|
exports.default = _default;
|
package/lib/list/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeList=exports.List=void 0;var _list=_interopRequireDefault(require("./src/list")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeList=Object.assign(_list.default,{install:function(e){e.component(_list.default.name,_list.default)}}),List=exports.VxeList=VxeList
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeList=exports.List=void 0;var _list=_interopRequireDefault(require("./src/list")),_dynamics=require("../dynamics");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeList=Object.assign(_list.default,{install:function(e){e.component(_list.default.name,_list.default)}}),List=exports.VxeList=VxeList,_default=(exports.List=List,_dynamics.dynamicApp.component(_list.default.name,_list.default),VxeList);exports.default=_default;
|
package/lib/list/src/list.js
CHANGED
|
@@ -4,26 +4,16 @@ 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 _size = require("../../hooks/size");
|
|
15
|
-
|
|
16
11
|
var _resize = require("../../tools/resize");
|
|
17
|
-
|
|
18
12
|
var _dom = require("../../tools/dom");
|
|
19
|
-
|
|
20
13
|
var _event = require("../../tools/event");
|
|
21
|
-
|
|
22
14
|
var _index = _interopRequireDefault(require("../../loading/index"));
|
|
23
|
-
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
var _default2 = (0, _vue.defineComponent)({
|
|
16
|
+
var _default = (0, _vue.defineComponent)({
|
|
27
17
|
name: 'VxeList',
|
|
28
18
|
props: {
|
|
29
19
|
data: Array,
|
|
@@ -33,13 +23,13 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
33
23
|
className: [String, Function],
|
|
34
24
|
size: {
|
|
35
25
|
type: String,
|
|
36
|
-
default: function
|
|
26
|
+
default: function () {
|
|
37
27
|
return _conf.default.list.size || _conf.default.size;
|
|
38
28
|
}
|
|
39
29
|
},
|
|
40
30
|
autoResize: {
|
|
41
31
|
type: Boolean,
|
|
42
|
-
default: function
|
|
32
|
+
default: function () {
|
|
43
33
|
return _conf.default.list.autoResize;
|
|
44
34
|
}
|
|
45
35
|
},
|
|
@@ -47,12 +37,10 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
47
37
|
scrollY: Object
|
|
48
38
|
},
|
|
49
39
|
emits: ['scroll'],
|
|
50
|
-
setup: function
|
|
40
|
+
setup: function (props, context) {
|
|
51
41
|
var slots = context.slots,
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
emit = context.emit;
|
|
54
43
|
var xID = _xeUtils.default.uniqueId();
|
|
55
|
-
|
|
56
44
|
var computeSize = (0, _size.useSize)(props);
|
|
57
45
|
var reactData = (0, _vue.reactive)({
|
|
58
46
|
scrollYLoad: false,
|
|
@@ -85,7 +73,7 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
85
73
|
context: context,
|
|
86
74
|
reactData: reactData,
|
|
87
75
|
internalData: internalData,
|
|
88
|
-
getRefMaps: function
|
|
76
|
+
getRefMaps: function () {
|
|
89
77
|
return refMaps;
|
|
90
78
|
}
|
|
91
79
|
};
|
|
@@ -95,41 +83,35 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
95
83
|
});
|
|
96
84
|
var computeStyles = (0, _vue.computed)(function () {
|
|
97
85
|
var height = props.height,
|
|
98
|
-
|
|
86
|
+
maxHeight = props.maxHeight;
|
|
99
87
|
var style = {};
|
|
100
|
-
|
|
101
88
|
if (height) {
|
|
102
89
|
style.height = "".concat(isNaN(height) ? height : "".concat(height, "px"));
|
|
103
90
|
} else if (maxHeight) {
|
|
104
91
|
style.height = 'auto';
|
|
105
92
|
style.maxHeight = "".concat(isNaN(maxHeight) ? maxHeight : "".concat(maxHeight, "px"));
|
|
106
93
|
}
|
|
107
|
-
|
|
108
94
|
return style;
|
|
109
95
|
});
|
|
110
|
-
|
|
111
|
-
var updateYSpace = function updateYSpace() {
|
|
96
|
+
var updateYSpace = function () {
|
|
112
97
|
var scrollYLoad = reactData.scrollYLoad;
|
|
113
98
|
var scrollYStore = internalData.scrollYStore,
|
|
114
|
-
|
|
99
|
+
fullData = internalData.fullData;
|
|
115
100
|
reactData.bodyHeight = scrollYLoad ? fullData.length * scrollYStore.rowHeight : 0;
|
|
116
101
|
reactData.topSpaceHeight = scrollYLoad ? Math.max(scrollYStore.startIndex * scrollYStore.rowHeight, 0) : 0;
|
|
117
102
|
};
|
|
118
|
-
|
|
119
|
-
var handleData = function handleData() {
|
|
103
|
+
var handleData = function () {
|
|
120
104
|
var scrollYLoad = reactData.scrollYLoad;
|
|
121
105
|
var fullData = internalData.fullData,
|
|
122
|
-
|
|
106
|
+
scrollYStore = internalData.scrollYStore;
|
|
123
107
|
reactData.items = scrollYLoad ? fullData.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullData.slice(0);
|
|
124
108
|
return (0, _vue.nextTick)();
|
|
125
109
|
};
|
|
126
|
-
|
|
127
|
-
var updateYData = function updateYData() {
|
|
110
|
+
var updateYData = function () {
|
|
128
111
|
handleData();
|
|
129
112
|
updateYSpace();
|
|
130
113
|
};
|
|
131
|
-
|
|
132
|
-
var computeScrollLoad = function computeScrollLoad() {
|
|
114
|
+
var computeScrollLoad = function () {
|
|
133
115
|
return (0, _vue.nextTick)().then(function () {
|
|
134
116
|
var scrollYLoad = reactData.scrollYLoad;
|
|
135
117
|
var scrollYStore = internalData.scrollYStore;
|
|
@@ -137,24 +119,20 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
137
119
|
var sYOpts = computeSYOpts.value;
|
|
138
120
|
var rowHeight = 0;
|
|
139
121
|
var firstItemElem;
|
|
140
|
-
|
|
141
122
|
if (virtualBodyElem) {
|
|
142
123
|
if (sYOpts.sItem) {
|
|
143
124
|
firstItemElem = virtualBodyElem.querySelector(sYOpts.sItem);
|
|
144
125
|
}
|
|
145
|
-
|
|
146
126
|
if (!firstItemElem) {
|
|
147
127
|
firstItemElem = virtualBodyElem.children[0];
|
|
148
128
|
}
|
|
149
129
|
}
|
|
150
|
-
|
|
151
130
|
if (firstItemElem) {
|
|
152
131
|
rowHeight = firstItemElem.offsetHeight;
|
|
153
132
|
}
|
|
154
|
-
|
|
155
133
|
rowHeight = Math.max(20, rowHeight);
|
|
156
|
-
scrollYStore.rowHeight = rowHeight;
|
|
157
|
-
|
|
134
|
+
scrollYStore.rowHeight = rowHeight;
|
|
135
|
+
// 计算 Y 逻辑
|
|
158
136
|
if (scrollYLoad) {
|
|
159
137
|
var scrollBodyElem = refVirtualWrapper.value;
|
|
160
138
|
var visibleYSize = Math.max(8, Math.ceil(scrollBodyElem.clientHeight / rowHeight));
|
|
@@ -166,22 +144,17 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
166
144
|
} else {
|
|
167
145
|
updateYSpace();
|
|
168
146
|
}
|
|
169
|
-
|
|
170
147
|
reactData.rowHeight = rowHeight;
|
|
171
148
|
});
|
|
172
149
|
};
|
|
173
150
|
/**
|
|
174
151
|
* 清除滚动条
|
|
175
152
|
*/
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
var clearScroll = function clearScroll() {
|
|
153
|
+
var clearScroll = function () {
|
|
179
154
|
var scrollBodyElem = refVirtualWrapper.value;
|
|
180
|
-
|
|
181
155
|
if (scrollBodyElem) {
|
|
182
156
|
scrollBodyElem.scrollTop = 0;
|
|
183
157
|
}
|
|
184
|
-
|
|
185
158
|
return (0, _vue.nextTick)();
|
|
186
159
|
};
|
|
187
160
|
/**
|
|
@@ -189,37 +162,31 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
189
162
|
* @param {Number} scrollLeft 左距离
|
|
190
163
|
* @param {Number} scrollTop 上距离
|
|
191
164
|
*/
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
var scrollTo = function scrollTo(scrollLeft, scrollTop) {
|
|
165
|
+
var scrollTo = function (scrollLeft, scrollTop) {
|
|
195
166
|
var scrollBodyElem = refVirtualWrapper.value;
|
|
196
|
-
|
|
197
167
|
if (_xeUtils.default.isNumber(scrollLeft)) {
|
|
198
168
|
scrollBodyElem.scrollLeft = scrollLeft;
|
|
199
169
|
}
|
|
200
|
-
|
|
201
170
|
if (_xeUtils.default.isNumber(scrollTop)) {
|
|
202
171
|
scrollBodyElem.scrollTop = scrollTop;
|
|
203
172
|
}
|
|
204
|
-
|
|
205
173
|
if (reactData.scrollYLoad) {
|
|
206
174
|
return new Promise(function (resolve) {
|
|
207
|
-
|
|
208
|
-
|
|
175
|
+
setTimeout(function () {
|
|
176
|
+
(0, _vue.nextTick)(function () {
|
|
177
|
+
resolve();
|
|
178
|
+
});
|
|
209
179
|
}, 50);
|
|
210
180
|
});
|
|
211
181
|
}
|
|
212
|
-
|
|
213
182
|
return (0, _vue.nextTick)();
|
|
214
183
|
};
|
|
215
184
|
/**
|
|
216
185
|
* 刷新滚动条
|
|
217
186
|
*/
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
var refreshScroll = function refreshScroll() {
|
|
187
|
+
var refreshScroll = function () {
|
|
221
188
|
var lastScrollLeft = internalData.lastScrollLeft,
|
|
222
|
-
|
|
189
|
+
lastScrollTop = internalData.lastScrollTop;
|
|
223
190
|
return clearScroll().then(function () {
|
|
224
191
|
if (lastScrollLeft || lastScrollTop) {
|
|
225
192
|
internalData.lastScrollLeft = 0;
|
|
@@ -231,31 +198,25 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
231
198
|
/**
|
|
232
199
|
* 重新计算列表
|
|
233
200
|
*/
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
var recalculate = function recalculate() {
|
|
201
|
+
var recalculate = function () {
|
|
237
202
|
var el = refElem.value;
|
|
238
|
-
|
|
239
203
|
if (el.clientWidth && el.clientHeight) {
|
|
240
204
|
return computeScrollLoad();
|
|
241
205
|
}
|
|
242
|
-
|
|
243
206
|
return Promise.resolve();
|
|
244
207
|
};
|
|
245
|
-
|
|
246
|
-
var loadYData = function loadYData(evnt) {
|
|
208
|
+
var loadYData = function (evnt) {
|
|
247
209
|
var scrollYStore = internalData.scrollYStore;
|
|
248
210
|
var startIndex = scrollYStore.startIndex,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
211
|
+
endIndex = scrollYStore.endIndex,
|
|
212
|
+
visibleSize = scrollYStore.visibleSize,
|
|
213
|
+
offsetSize = scrollYStore.offsetSize,
|
|
214
|
+
rowHeight = scrollYStore.rowHeight;
|
|
253
215
|
var scrollBodyElem = evnt.target;
|
|
254
216
|
var scrollTop = scrollBodyElem.scrollTop;
|
|
255
217
|
var toVisibleIndex = Math.floor(scrollTop / rowHeight);
|
|
256
218
|
var offsetStartIndex = Math.max(0, toVisibleIndex - 1 - offsetSize);
|
|
257
219
|
var offsetEndIndex = toVisibleIndex + visibleSize + offsetSize;
|
|
258
|
-
|
|
259
220
|
if (toVisibleIndex <= startIndex || toVisibleIndex >= endIndex - visibleSize - 1) {
|
|
260
221
|
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
261
222
|
scrollYStore.startIndex = offsetStartIndex;
|
|
@@ -264,8 +225,7 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
264
225
|
}
|
|
265
226
|
}
|
|
266
227
|
};
|
|
267
|
-
|
|
268
|
-
var scrollEvent = function scrollEvent(evnt) {
|
|
228
|
+
var scrollEvent = function (evnt) {
|
|
269
229
|
var scrollBodyElem = evnt.target;
|
|
270
230
|
var scrollTop = scrollBodyElem.scrollTop;
|
|
271
231
|
var scrollLeft = scrollBodyElem.scrollLeft;
|
|
@@ -273,11 +233,9 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
273
233
|
var isY = scrollTop !== internalData.lastScrollTop;
|
|
274
234
|
internalData.lastScrollTop = scrollTop;
|
|
275
235
|
internalData.lastScrollLeft = scrollLeft;
|
|
276
|
-
|
|
277
236
|
if (reactData.scrollYLoad) {
|
|
278
237
|
loadYData(evnt);
|
|
279
238
|
}
|
|
280
|
-
|
|
281
239
|
listMethods.dispatchEvent('scroll', {
|
|
282
240
|
scrollLeft: scrollLeft,
|
|
283
241
|
scrollTop: scrollTop,
|
|
@@ -285,20 +243,18 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
285
243
|
isY: isY
|
|
286
244
|
}, evnt);
|
|
287
245
|
};
|
|
288
|
-
|
|
289
246
|
listMethods = {
|
|
290
|
-
dispatchEvent: function
|
|
247
|
+
dispatchEvent: function (type, params, evnt) {
|
|
291
248
|
emit(type, Object.assign({
|
|
292
249
|
$list: $xelist,
|
|
293
250
|
$event: evnt
|
|
294
251
|
}, params));
|
|
295
252
|
},
|
|
296
|
-
|
|
297
253
|
/**
|
|
298
254
|
* 加载数据
|
|
299
255
|
* @param {Array} datas 数据
|
|
300
256
|
*/
|
|
301
|
-
loadData: function
|
|
257
|
+
loadData: function (datas) {
|
|
302
258
|
var scrollYStore = internalData.scrollYStore;
|
|
303
259
|
var sYOpts = computeSYOpts.value;
|
|
304
260
|
var fullData = datas || [];
|
|
@@ -314,12 +270,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
314
270
|
refreshScroll();
|
|
315
271
|
});
|
|
316
272
|
},
|
|
317
|
-
|
|
318
273
|
/**
|
|
319
274
|
* 重新加载数据
|
|
320
275
|
* @param {Array} datas 数据
|
|
321
276
|
*/
|
|
322
|
-
reloadData: function
|
|
277
|
+
reloadData: function (datas) {
|
|
323
278
|
clearScroll();
|
|
324
279
|
return listMethods.loadData(datas);
|
|
325
280
|
},
|
|
@@ -351,7 +306,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
351
306
|
_event.GlobalEvent.on($xelist, 'resize', function () {
|
|
352
307
|
recalculate();
|
|
353
308
|
});
|
|
354
|
-
|
|
355
309
|
if (props.autoResize) {
|
|
356
310
|
var el = refElem.value;
|
|
357
311
|
resizeObserver = (0, _resize.createResizeEvent)(function () {
|
|
@@ -359,25 +313,21 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
359
313
|
});
|
|
360
314
|
resizeObserver.observe(el);
|
|
361
315
|
}
|
|
362
|
-
|
|
363
316
|
listMethods.loadData(props.data || []);
|
|
364
317
|
});
|
|
365
318
|
(0, _vue.onUnmounted)(function () {
|
|
366
319
|
if (resizeObserver) {
|
|
367
320
|
resizeObserver.disconnect();
|
|
368
321
|
}
|
|
369
|
-
|
|
370
322
|
_event.GlobalEvent.off($xelist, 'resize');
|
|
371
323
|
});
|
|
372
|
-
|
|
373
|
-
var renderVN = function renderVN() {
|
|
324
|
+
var renderVN = function () {
|
|
374
325
|
var _a;
|
|
375
|
-
|
|
376
326
|
var className = props.className,
|
|
377
|
-
|
|
327
|
+
loading = props.loading;
|
|
378
328
|
var bodyHeight = reactData.bodyHeight,
|
|
379
|
-
|
|
380
|
-
|
|
329
|
+
topSpaceHeight = reactData.topSpaceHeight,
|
|
330
|
+
items = reactData.items;
|
|
381
331
|
var vSize = computeSize.value;
|
|
382
332
|
var styles = computeStyles.value;
|
|
383
333
|
return (0, _vue.h)('div', {
|
|
@@ -413,13 +363,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
413
363
|
modelValue: loading
|
|
414
364
|
})]);
|
|
415
365
|
};
|
|
416
|
-
|
|
417
366
|
$xelist.renderVN = renderVN;
|
|
418
367
|
return $xelist;
|
|
419
368
|
},
|
|
420
|
-
render: function
|
|
369
|
+
render: function () {
|
|
421
370
|
return this.renderVN();
|
|
422
371
|
}
|
|
423
372
|
});
|
|
424
|
-
|
|
425
|
-
exports.default = _default2;
|
|
373
|
+
exports.default = _default;
|
package/lib/list/src/list.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=require("../../hooks/size"),_resize=require("../../tools/resize"),_dom=require("../../tools/dom"),_event=require("../../tools/event"),_index=_interopRequireDefault(require("../../loading/index"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_size=require("../../hooks/size"),_resize=require("../../tools/resize"),_dom=require("../../tools/dom"),_event=require("../../tools/event"),_index=_interopRequireDefault(require("../../loading/index"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=(0,_vue.defineComponent)({name:"VxeList",props:{data:Array,height:[Number,String],maxHeight:[Number,String],loading:Boolean,className:[String,Function],size:{type:String,default:function(){return _conf.default.list.size||_conf.default.size}},autoResize:{type:Boolean,default:function(){return _conf.default.list.autoResize}},syncResize:[Boolean,String,Number],scrollY:Object},emits:["scroll"],setup:function(a,e){function s(){I(),H()}function o(){return(0,_vue.nextTick)().then(function(){var e,t=h.scrollYLoad,l=p.scrollYStore,o=g.value,r=b.value,n=0;(e=o?(e=r.sItem?o.querySelector(r.sItem):e)||o.children[0]:e)&&(n=e.offsetHeight),n=Math.max(20,n),l.rowHeight=n,(t?(o=_.value,e=Math.max(8,Math.ceil(o.clientHeight/n)),t=r.oSize?_xeUtils.default.toNumber(r.oSize):_dom.browse.edge?10:0,l.offsetSize=t,l.visibleSize=e,l.endIndex=Math.max(l.startIndex,e+t,l.endIndex),s):H)(),h.rowHeight=n})}function l(){var e=_.value;return e&&(e.scrollTop=0),(0,_vue.nextTick)()}function r(e,t){var l=_.value;return _xeUtils.default.isNumber(e)&&(l.scrollLeft=e),_xeUtils.default.isNumber(t)&&(l.scrollTop=t),h.scrollYLoad?new Promise(function(e){setTimeout(function(){(0,_vue.nextTick)(function(){e()})},50)}):(0,_vue.nextTick)()}function n(){var e=p.lastScrollLeft,t=p.lastScrollTop;return l().then(function(){if(e||t)return p.lastScrollLeft=0,p.lastScrollTop=0,r(e,t)})}function t(){var e=x.value;return e.clientWidth&&e.clientHeight?o():Promise.resolve()}function u(e){var t=e.target,l=t.scrollTop,o=(t=t.scrollLeft)!==p.lastScrollLeft,r=l!==p.lastScrollTop;p.lastScrollTop=l,p.lastScrollLeft=t,h.scrollYLoad&&Y(e),z.dispatchEvent("scroll",{scrollLeft:t,scrollTop:l,isX:o,isY:r},e)}var i,c=e.slots,f=e.emit,d=_xeUtils.default.uniqueId(),v=(0,_size.useSize)(a),h=(0,_vue.reactive)({scrollYLoad:!1,bodyHeight:0,rowHeight:0,topSpaceHeight:0,items:[]}),x=(0,_vue.ref)(),_=(0,_vue.ref)(),g=(0,_vue.ref)(),p={fullData:[],lastScrollLeft:0,lastScrollTop:0,scrollYStore:{startIndex:0,endIndex:0,visibleSize:0,offsetSize:0,rowHeight:0}},m={refElem:x},S={xID:d,props:a,context:e,reactData:h,internalData:p,getRefMaps:function(){return m}},z={},b=(0,_vue.computed)(function(){return Object.assign({},_conf.default.list.scrollY,a.scrollY)}),T=(0,_vue.computed)(function(){var e=a.height,t=a.maxHeight,l={};return e?l.height="".concat(isNaN(e)?e:"".concat(e,"px")):t&&(l.height="auto",l.maxHeight="".concat(isNaN(t)?t:"".concat(t,"px"))),l}),H=function(){var e=h.scrollYLoad,t=p.scrollYStore,l=p.fullData;h.bodyHeight=e?l.length*t.rowHeight:0,h.topSpaceHeight=e?Math.max(t.startIndex*t.rowHeight,0):0},I=function(){var e=h.scrollYLoad,t=p.fullData,l=p.scrollYStore;return h.items=e?t.slice(l.startIndex,l.endIndex):t.slice(0),(0,_vue.nextTick)()},Y=function(e){var t=p.scrollYStore,l=t.startIndex,o=t.endIndex,r=t.visibleSize,n=t.offsetSize,i=t.rowHeight,e=e.target.scrollTop,e=Math.floor(e/i),i=Math.max(0,e-1-n),n=e+r+n;!(e<=l||o-r-1<=e)||l===i&&o===n||(t.startIndex=i,t.endIndex=n,s())},z={dispatchEvent:function(e,t,l){f(e,Object.assign({$list:S,$event:l},t))},loadData:function(e){var t=p.scrollYStore,l=b.value,e=e||[];return Object.assign(t,{startIndex:0,endIndex:1,visibleSize:0}),p.fullData=e,h.scrollYLoad=!!l.enabled&&-1<l.gt&&l.gt<=e.length,I(),o().then(function(){n()})},reloadData:function(e){return l(),z.loadData(e)},recalculate:t,scrollTo:r,refreshScroll:n,clearScroll:l};Object.assign(S,z),(0,_vue.watch)(function(){return a.data},function(e){z.loadData(e||[])}),(0,_vue.watch)(function(){return a.syncResize},function(e){e&&(t(),(0,_vue.nextTick)(function(){return setTimeout(t)}))}),(0,_vue.nextTick)(function(){var e;_event.GlobalEvent.on(S,"resize",function(){t()}),a.autoResize&&(e=x.value,(i=(0,_resize.createResizeEvent)(t)).observe(e)),z.loadData(a.data||[])}),(0,_vue.onUnmounted)(function(){i&&i.disconnect(),_event.GlobalEvent.off(S,"resize")});return S.renderVN=function(){var e=a.className,t=a.loading,l=h.bodyHeight,o=h.topSpaceHeight,r=h.items,n=v.value,i=T.value;return(0,_vue.h)("div",{ref:x,class:["vxe-list",e?_xeUtils.default.isFunction(e)?e({$list:S}):e:"",((e={})["size--".concat(n)]=n,e["is--loading"]=t,e)]},[(0,_vue.h)("div",{ref:_,class:"vxe-list--virtual-wrapper",style:i,onScroll:u},[(0,_vue.h)("div",{class:"vxe-list--y-space",style:{height:l?"".concat(l,"px"):""}}),(0,_vue.h)("div",{ref:g,class:"vxe-list--body",style:{marginTop:o?"".concat(o,"px"):""}},c.default?c.default({items:r,$list:S}):[])]),(0,_vue.h)(_index.default,{class:"vxe-list--loading",modelValue:t})])},S},render:function(){return this.renderVN()}});exports.default=_default;
|
package/lib/list/style/style.css
CHANGED
|
@@ -28,19 +28,24 @@
|
|
|
28
28
|
display: block;
|
|
29
29
|
padding: 0;
|
|
30
30
|
color: #606266;
|
|
31
|
-
direction: ltr;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
direction: ltr;
|
|
32
|
+
}
|
|
33
|
+
.vxe-list .vxe-list--virtual-wrapper {
|
|
34
|
+
position: relative;
|
|
35
|
+
overflow: auto;
|
|
36
|
+
}
|
|
37
|
+
.vxe-list .vxe-list--y-space {
|
|
38
|
+
width: 0;
|
|
39
|
+
float: left;
|
|
40
|
+
}
|
|
41
|
+
.vxe-list .vxe-list--virtual-wrapper,
|
|
42
|
+
.vxe-list .vxe-list--body {
|
|
43
|
+
padding: 0;
|
|
44
|
+
margin: 0;
|
|
45
|
+
border: 0;
|
|
46
|
+
outline: 0;
|
|
47
|
+
}
|
|
44
48
|
|
|
45
49
|
.vxe-list--virtual-wrapper {
|
|
46
|
-
height: 100px;
|
|
50
|
+
height: 100px;
|
|
51
|
+
}
|
package/lib/loading/index.js
CHANGED
|
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.VxeLoading = exports.Loading = void 0;
|
|
7
|
-
|
|
8
7
|
var _loading = _interopRequireDefault(require("./src/loading"));
|
|
9
|
-
|
|
10
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
9
|
var VxeLoading = Object.assign(_loading.default, {
|
|
13
|
-
install: function
|
|
10
|
+
install: function (app) {
|
|
14
11
|
app.component(_loading.default.name, _loading.default);
|
|
15
12
|
}
|
|
16
13
|
});
|
package/lib/loading/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeLoading=exports.Loading=void 0;var _loading=_interopRequireDefault(require("./src/loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeLoading=Object.assign(_loading.default,{install:function(e){e.component(_loading.default.name,_loading.default)}}),Loading=exports.VxeLoading=VxeLoading
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.VxeLoading=exports.Loading=void 0;var _loading=_interopRequireDefault(require("./src/loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var VxeLoading=Object.assign(_loading.default,{install:function(e){e.component(_loading.default.name,_loading.default)}}),Loading=exports.VxeLoading=VxeLoading,_default=(exports.Loading=Loading,VxeLoading);exports.default=_default;
|
|
@@ -4,13 +4,9 @@ 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 _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
var _default = (0, _vue.defineComponent)({
|
|
15
11
|
name: 'VxeLoading',
|
|
16
12
|
props: {
|
|
@@ -18,7 +14,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
18
14
|
icon: String,
|
|
19
15
|
text: String
|
|
20
16
|
},
|
|
21
|
-
setup: function
|
|
17
|
+
setup: function (props) {
|
|
22
18
|
var computeLoadingIcon = (0, _vue.computed)(function () {
|
|
23
19
|
return props.icon || _conf.default.icon.LOADING;
|
|
24
20
|
});
|
|
@@ -45,5 +41,4 @@ var _default = (0, _vue.defineComponent)({
|
|
|
45
41
|
};
|
|
46
42
|
}
|
|
47
43
|
});
|
|
48
|
-
|
|
49
44
|
exports.default = _default;
|
|
@@ -35,64 +35,68 @@
|
|
|
35
35
|
z-index: 99;
|
|
36
36
|
-webkit-user-select: none;
|
|
37
37
|
-moz-user-select: none;
|
|
38
|
-
-ms-user-select: none;
|
|
39
38
|
user-select: none;
|
|
40
|
-
background-color: rgba(255, 255, 255, 0.5);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
39
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
40
|
+
}
|
|
41
|
+
.vxe-loading.is--visible {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
.vxe-loading > .vxe-loading--chunk {
|
|
45
|
+
width: 100%;
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 50%;
|
|
48
|
+
left: 0;
|
|
49
|
+
transform: translateY(-50%);
|
|
50
|
+
text-align: center;
|
|
51
|
+
color: #409eff;
|
|
52
|
+
}
|
|
53
|
+
.vxe-loading .vxe-loading--default-icon {
|
|
54
|
+
font-size: 1.4em;
|
|
55
|
+
}
|
|
56
|
+
.vxe-loading .vxe-loading--text {
|
|
57
|
+
padding: 0.4em 0;
|
|
58
|
+
}
|
|
59
|
+
.vxe-loading .vxe-loading--spinner {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
position: relative;
|
|
62
|
+
width: 56px;
|
|
63
|
+
height: 56px;
|
|
64
|
+
}
|
|
65
|
+
.vxe-loading .vxe-loading--spinner:before, .vxe-loading .vxe-loading--spinner:after {
|
|
66
|
+
content: "";
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: 100%;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
background-color: #409eff;
|
|
71
|
+
opacity: 0.6;
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
animation: bounce 2s infinite ease-in-out;
|
|
76
|
+
}
|
|
77
|
+
.vxe-loading .vxe-loading--spinner:after {
|
|
78
|
+
animation-delay: -1s;
|
|
79
|
+
}
|
|
82
80
|
@keyframes bounce {
|
|
83
81
|
0%, 100% {
|
|
84
|
-
transform: scale(0);
|
|
82
|
+
transform: scale(0);
|
|
83
|
+
}
|
|
85
84
|
50% {
|
|
86
|
-
transform: scale(1);
|
|
85
|
+
transform: scale(1);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
87
88
|
|
|
88
89
|
.size--mini .vxe-loading .vxe-loading--spinner {
|
|
89
90
|
width: 38px;
|
|
90
|
-
height: 38px;
|
|
91
|
+
height: 38px;
|
|
92
|
+
}
|
|
91
93
|
|
|
92
94
|
.size--small .vxe-loading .vxe-loading--spinner {
|
|
93
95
|
width: 44px;
|
|
94
|
-
height: 44px;
|
|
96
|
+
height: 44px;
|
|
97
|
+
}
|
|
95
98
|
|
|
96
99
|
.size--medium .vxe-loading .vxe-loading--spinner {
|
|
97
100
|
width: 50px;
|
|
98
|
-
height: 50px;
|
|
101
|
+
height: 50px;
|
|
102
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.vxe-loading{display:none;position:absolute;width:100%;height:100%;top:0;left:0;z-index:99;-webkit-user-select:none;-moz-user-select:none
|
|
1
|
+
@charset "UTF-8";.vxe-loading{display:none;position:absolute;width:100%;height:100%;top:0;left:0;z-index:99;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:rgba(255,255,255,.5)}.vxe-loading.is--visible{display:block}.vxe-loading>.vxe-loading--chunk{width:100%;position:absolute;top:50%;left:0;transform:translateY(-50%);text-align:center;color:#409eff}.vxe-loading .vxe-loading--default-icon{font-size:1.4em}.vxe-loading .vxe-loading--text{padding:.4em 0}.vxe-loading .vxe-loading--spinner{display:inline-block;position:relative;width:56px;height:56px}.vxe-loading .vxe-loading--spinner:after,.vxe-loading .vxe-loading--spinner:before{content:"";width:100%;height:100%;border-radius:50%;background-color:#409eff;opacity:.6;position:absolute;top:0;left:0;animation:bounce 2s infinite ease-in-out}.vxe-loading .vxe-loading--spinner:after{animation-delay:-1s}@keyframes bounce{0%,100%{transform:scale(0)}50%{transform:scale(1)}}.size--mini .vxe-loading .vxe-loading--spinner{width:38px;height:38px}.size--small .vxe-loading .vxe-loading--spinner{width:44px;height:44px}.size--medium .vxe-loading .vxe-loading--spinner{width:50px;height:50px}
|
package/lib/locale/lang/en-US.js
CHANGED
|
@@ -14,7 +14,6 @@ var _default = {
|
|
|
14
14
|
groupMouseRange: 'Grouping headers and "{0}" cannot be used at the same time, which may cause errors.',
|
|
15
15
|
groupTag: 'Grouping column header should use "{0}" instead of "{1}", which may cause errors.',
|
|
16
16
|
scrollErrProp: 'The parameter "{0}" is not supported when virtual scrolling is enabled.',
|
|
17
|
-
scrollXNotGroup: 'Horizontal virtual scrolling does not support grouping headers. You need to set the parameter "scroll-x.enabled=false", otherwise, errors may occur.',
|
|
18
17
|
errConflicts: 'Argument "{0}" conflicts with "{1}"',
|
|
19
18
|
unableInsert: 'Unable to insert to the specified location.',
|
|
20
19
|
useErr: 'Error installing "{0}" module, possibly in the wrong order, dependent modules need to be installed before Table.',
|