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
|
@@ -4,39 +4,24 @@ 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 _utils = require("../../tools/utils");
|
|
17
|
-
|
|
18
12
|
var _dom = require("../../tools/dom");
|
|
19
|
-
|
|
20
13
|
var _vn = require("../../tools/vn");
|
|
21
|
-
|
|
22
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
15
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
25
16
|
__assign = Object.assign || function (t) {
|
|
26
17
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
18
|
s = arguments[i];
|
|
28
|
-
|
|
29
|
-
for (var p in s) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
31
|
-
}
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
32
20
|
}
|
|
33
|
-
|
|
34
21
|
return t;
|
|
35
22
|
};
|
|
36
|
-
|
|
37
23
|
return __assign.apply(this, arguments);
|
|
38
24
|
};
|
|
39
|
-
|
|
40
25
|
var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack) {
|
|
41
26
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
42
27
|
if (ar || !(i in from)) {
|
|
@@ -46,26 +31,25 @@ var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack
|
|
|
46
31
|
}
|
|
47
32
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
48
33
|
};
|
|
49
|
-
|
|
50
|
-
var _default2 = (0, _vue.defineComponent)({
|
|
34
|
+
var _default = (0, _vue.defineComponent)({
|
|
51
35
|
name: 'VxeTooltip',
|
|
52
36
|
props: {
|
|
53
37
|
modelValue: Boolean,
|
|
54
38
|
size: {
|
|
55
39
|
type: String,
|
|
56
|
-
default: function
|
|
40
|
+
default: function () {
|
|
57
41
|
return _conf.default.tooltip.size || _conf.default.size;
|
|
58
42
|
}
|
|
59
43
|
},
|
|
60
44
|
trigger: {
|
|
61
45
|
type: String,
|
|
62
|
-
default: function
|
|
46
|
+
default: function () {
|
|
63
47
|
return _conf.default.tooltip.trigger;
|
|
64
48
|
}
|
|
65
49
|
},
|
|
66
50
|
theme: {
|
|
67
51
|
type: String,
|
|
68
|
-
default: function
|
|
52
|
+
default: function () {
|
|
69
53
|
return _conf.default.tooltip.theme;
|
|
70
54
|
}
|
|
71
55
|
},
|
|
@@ -82,24 +66,22 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
82
66
|
enterable: Boolean,
|
|
83
67
|
enterDelay: {
|
|
84
68
|
type: Number,
|
|
85
|
-
default: function
|
|
69
|
+
default: function () {
|
|
86
70
|
return _conf.default.tooltip.enterDelay;
|
|
87
71
|
}
|
|
88
72
|
},
|
|
89
73
|
leaveDelay: {
|
|
90
74
|
type: Number,
|
|
91
|
-
default: function
|
|
75
|
+
default: function () {
|
|
92
76
|
return _conf.default.tooltip.leaveDelay;
|
|
93
77
|
}
|
|
94
78
|
}
|
|
95
79
|
},
|
|
96
80
|
emits: ['update:modelValue'],
|
|
97
|
-
setup: function
|
|
81
|
+
setup: function (props, context) {
|
|
98
82
|
var slots = context.slots,
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
emit = context.emit;
|
|
101
84
|
var xID = _xeUtils.default.uniqueId();
|
|
102
|
-
|
|
103
85
|
var computeSize = (0, _size.useSize)(props);
|
|
104
86
|
var reactData = (0, _vue.reactive)({
|
|
105
87
|
target: null,
|
|
@@ -124,26 +106,22 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
124
106
|
props: props,
|
|
125
107
|
context: context,
|
|
126
108
|
reactData: reactData,
|
|
127
|
-
getRefMaps: function
|
|
109
|
+
getRefMaps: function () {
|
|
128
110
|
return refMaps;
|
|
129
111
|
}
|
|
130
112
|
};
|
|
131
113
|
var tooltipMethods = {};
|
|
132
|
-
|
|
133
|
-
var updateTipStyle = function updateTipStyle() {
|
|
114
|
+
var updateTipStyle = function () {
|
|
134
115
|
var tipTarget = reactData.tipTarget,
|
|
135
|
-
|
|
136
|
-
|
|
116
|
+
tipStore = reactData.tipStore;
|
|
137
117
|
if (tipTarget) {
|
|
138
118
|
var _a = (0, _dom.getDomNode)(),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
119
|
+
scrollTop = _a.scrollTop,
|
|
120
|
+
scrollLeft = _a.scrollLeft,
|
|
121
|
+
visibleWidth = _a.visibleWidth;
|
|
143
122
|
var _b = (0, _dom.getAbsolutePos)(tipTarget),
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
123
|
+
top_1 = _b.top,
|
|
124
|
+
left = _b.left;
|
|
147
125
|
var el = refElem.value;
|
|
148
126
|
var marginSize = 6;
|
|
149
127
|
var offsetHeight = el.offsetHeight;
|
|
@@ -151,54 +129,45 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
151
129
|
var tipLeft = left;
|
|
152
130
|
var tipTop = top_1 - offsetHeight - marginSize;
|
|
153
131
|
tipLeft = Math.max(marginSize, left + Math.floor((tipTarget.offsetWidth - offsetWidth) / 2));
|
|
154
|
-
|
|
155
132
|
if (tipLeft + offsetWidth + marginSize > scrollLeft + visibleWidth) {
|
|
156
133
|
tipLeft = scrollLeft + visibleWidth - offsetWidth - marginSize;
|
|
157
134
|
}
|
|
158
|
-
|
|
159
135
|
if (top_1 - offsetHeight < scrollTop + marginSize) {
|
|
160
136
|
tipStore.placement = 'bottom';
|
|
161
137
|
tipTop = top_1 + tipTarget.offsetHeight + marginSize;
|
|
162
138
|
}
|
|
163
|
-
|
|
164
139
|
tipStore.style.top = "".concat(tipTop, "px");
|
|
165
140
|
tipStore.style.left = "".concat(tipLeft, "px");
|
|
166
141
|
tipStore.arrowStyle.left = "".concat(left - tipLeft + tipTarget.offsetWidth / 2, "px");
|
|
167
142
|
}
|
|
168
143
|
};
|
|
169
|
-
|
|
170
|
-
var updateValue = function updateValue(value) {
|
|
144
|
+
var updateValue = function (value) {
|
|
171
145
|
if (value !== reactData.visible) {
|
|
172
146
|
reactData.visible = value;
|
|
173
147
|
reactData.isUpdate = true;
|
|
174
148
|
emit('update:modelValue', value);
|
|
175
149
|
}
|
|
176
150
|
};
|
|
177
|
-
|
|
178
|
-
var updateZindex = function updateZindex() {
|
|
151
|
+
var updateZindex = function () {
|
|
179
152
|
if (reactData.tipZindex < (0, _utils.getLastZIndex)()) {
|
|
180
153
|
reactData.tipZindex = (0, _utils.nextZIndex)();
|
|
181
154
|
}
|
|
182
155
|
};
|
|
183
|
-
|
|
184
|
-
var clickEvent = function clickEvent() {
|
|
156
|
+
var clickEvent = function () {
|
|
185
157
|
if (reactData.visible) {
|
|
186
158
|
tooltipMethods.close();
|
|
187
159
|
} else {
|
|
188
160
|
tooltipMethods.open();
|
|
189
161
|
}
|
|
190
162
|
};
|
|
191
|
-
|
|
192
|
-
var targetMouseenterEvent = function targetMouseenterEvent() {
|
|
163
|
+
var targetMouseenterEvent = function () {
|
|
193
164
|
tooltipMethods.open();
|
|
194
165
|
};
|
|
195
|
-
|
|
196
|
-
var targetMouseleaveEvent = function targetMouseleaveEvent() {
|
|
166
|
+
var targetMouseleaveEvent = function () {
|
|
197
167
|
var trigger = props.trigger,
|
|
198
|
-
|
|
199
|
-
|
|
168
|
+
enterable = props.enterable,
|
|
169
|
+
leaveDelay = props.leaveDelay;
|
|
200
170
|
reactData.tipActive = false;
|
|
201
|
-
|
|
202
171
|
if (enterable && trigger === 'hover') {
|
|
203
172
|
setTimeout(function () {
|
|
204
173
|
if (!reactData.tipActive) {
|
|
@@ -209,17 +178,14 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
209
178
|
tooltipMethods.close();
|
|
210
179
|
}
|
|
211
180
|
};
|
|
212
|
-
|
|
213
|
-
var wrapperMouseenterEvent = function wrapperMouseenterEvent() {
|
|
181
|
+
var wrapperMouseenterEvent = function () {
|
|
214
182
|
reactData.tipActive = true;
|
|
215
183
|
};
|
|
216
|
-
|
|
217
|
-
var wrapperMouseleaveEvent = function wrapperMouseleaveEvent() {
|
|
184
|
+
var wrapperMouseleaveEvent = function () {
|
|
218
185
|
var trigger = props.trigger,
|
|
219
|
-
|
|
220
|
-
|
|
186
|
+
enterable = props.enterable,
|
|
187
|
+
leaveDelay = props.leaveDelay;
|
|
221
188
|
reactData.tipActive = false;
|
|
222
|
-
|
|
223
189
|
if (enterable && trigger === 'hover') {
|
|
224
190
|
setTimeout(function () {
|
|
225
191
|
if (!reactData.tipActive) {
|
|
@@ -228,19 +194,15 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
228
194
|
}, leaveDelay);
|
|
229
195
|
}
|
|
230
196
|
};
|
|
231
|
-
|
|
232
|
-
var showTip = function showTip() {
|
|
197
|
+
var showTip = function () {
|
|
233
198
|
var tipStore = reactData.tipStore;
|
|
234
199
|
var el = refElem.value;
|
|
235
|
-
|
|
236
200
|
if (el) {
|
|
237
201
|
var parentNode = el.parentNode;
|
|
238
|
-
|
|
239
202
|
if (!parentNode) {
|
|
240
203
|
document.body.appendChild(el);
|
|
241
204
|
}
|
|
242
205
|
}
|
|
243
|
-
|
|
244
206
|
updateValue(true);
|
|
245
207
|
updateZindex();
|
|
246
208
|
tipStore.placement = 'top';
|
|
@@ -255,7 +217,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
255
217
|
};
|
|
256
218
|
return tooltipMethods.updatePlacement();
|
|
257
219
|
};
|
|
258
|
-
|
|
259
220
|
var showDelayTip = _xeUtils.default.debounce(function () {
|
|
260
221
|
if (reactData.tipActive) {
|
|
261
222
|
showTip();
|
|
@@ -264,18 +225,17 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
264
225
|
leading: false,
|
|
265
226
|
trailing: true
|
|
266
227
|
});
|
|
267
|
-
|
|
268
228
|
tooltipMethods = {
|
|
269
|
-
dispatchEvent: function
|
|
229
|
+
dispatchEvent: function (type, params, evnt) {
|
|
270
230
|
emit(type, Object.assign({
|
|
271
231
|
$tooltip: $xetooltip,
|
|
272
232
|
$event: evnt
|
|
273
233
|
}, params));
|
|
274
234
|
},
|
|
275
|
-
open: function
|
|
235
|
+
open: function (target, content) {
|
|
276
236
|
return tooltipMethods.toVisible(target || reactData.target, content);
|
|
277
237
|
},
|
|
278
|
-
close: function
|
|
238
|
+
close: function () {
|
|
279
239
|
reactData.tipTarget = null;
|
|
280
240
|
reactData.tipActive = false;
|
|
281
241
|
Object.assign(reactData.tipStore, {
|
|
@@ -286,41 +246,37 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
286
246
|
updateValue(false);
|
|
287
247
|
return (0, _vue.nextTick)();
|
|
288
248
|
},
|
|
289
|
-
toVisible: function
|
|
249
|
+
toVisible: function (target, content) {
|
|
290
250
|
if (target) {
|
|
291
251
|
var trigger = props.trigger,
|
|
292
|
-
|
|
252
|
+
enterDelay = props.enterDelay;
|
|
293
253
|
reactData.tipActive = true;
|
|
294
254
|
reactData.tipTarget = target;
|
|
295
|
-
|
|
296
255
|
if (content) {
|
|
297
256
|
reactData.tipContent = content;
|
|
298
257
|
}
|
|
299
|
-
|
|
300
258
|
if (enterDelay && trigger === 'hover') {
|
|
301
259
|
showDelayTip();
|
|
302
260
|
} else {
|
|
303
261
|
return showTip();
|
|
304
262
|
}
|
|
305
263
|
}
|
|
306
|
-
|
|
307
264
|
return (0, _vue.nextTick)();
|
|
308
265
|
},
|
|
309
|
-
updatePlacement: function
|
|
266
|
+
updatePlacement: function () {
|
|
310
267
|
return (0, _vue.nextTick)().then(function () {
|
|
311
268
|
var tipTarget = reactData.tipTarget;
|
|
312
269
|
var el = refElem.value;
|
|
313
|
-
|
|
314
270
|
if (tipTarget && el) {
|
|
315
271
|
updateTipStyle();
|
|
316
272
|
return (0, _vue.nextTick)().then(updateTipStyle);
|
|
317
273
|
}
|
|
318
274
|
});
|
|
319
275
|
},
|
|
320
|
-
isActived: function
|
|
276
|
+
isActived: function () {
|
|
321
277
|
return reactData.tipActive;
|
|
322
278
|
},
|
|
323
|
-
setActived: function
|
|
279
|
+
setActived: function (actived) {
|
|
324
280
|
reactData.tipActive = !!actived;
|
|
325
281
|
}
|
|
326
282
|
};
|
|
@@ -340,34 +296,28 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
340
296
|
tooltipMethods.close();
|
|
341
297
|
}
|
|
342
298
|
}
|
|
343
|
-
|
|
344
299
|
reactData.isUpdate = false;
|
|
345
300
|
});
|
|
346
301
|
(0, _vue.onMounted)(function () {
|
|
347
302
|
(0, _vue.nextTick)(function () {
|
|
348
303
|
var trigger = props.trigger,
|
|
349
|
-
|
|
350
|
-
|
|
304
|
+
content = props.content,
|
|
305
|
+
modelValue = props.modelValue;
|
|
351
306
|
var wrapperElem = refElem.value;
|
|
352
307
|
var parentNode = wrapperElem.parentNode;
|
|
353
|
-
|
|
354
308
|
if (parentNode) {
|
|
355
309
|
reactData.tipContent = content;
|
|
356
310
|
reactData.tipZindex = (0, _utils.nextZIndex)();
|
|
357
|
-
|
|
358
311
|
_xeUtils.default.arrayEach(wrapperElem.children, function (elem, index) {
|
|
359
312
|
if (index > 1) {
|
|
360
313
|
parentNode.insertBefore(elem, wrapperElem);
|
|
361
|
-
|
|
362
314
|
if (!reactData.target) {
|
|
363
315
|
reactData.target = elem;
|
|
364
316
|
}
|
|
365
317
|
}
|
|
366
318
|
});
|
|
367
|
-
|
|
368
319
|
parentNode.removeChild(wrapperElem);
|
|
369
320
|
var target = reactData.target;
|
|
370
|
-
|
|
371
321
|
if (target) {
|
|
372
322
|
if (trigger === 'hover') {
|
|
373
323
|
target.onmouseenter = targetMouseenterEvent;
|
|
@@ -376,7 +326,6 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
376
326
|
target.onclick = clickEvent;
|
|
377
327
|
}
|
|
378
328
|
}
|
|
379
|
-
|
|
380
329
|
if (modelValue) {
|
|
381
330
|
tooltipMethods.open();
|
|
382
331
|
}
|
|
@@ -387,15 +336,12 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
387
336
|
var trigger = props.trigger;
|
|
388
337
|
var target = reactData.target;
|
|
389
338
|
var wrapperElem = refElem.value;
|
|
390
|
-
|
|
391
339
|
if (wrapperElem) {
|
|
392
340
|
var parentNode = wrapperElem.parentNode;
|
|
393
|
-
|
|
394
341
|
if (parentNode) {
|
|
395
342
|
parentNode.removeChild(wrapperElem);
|
|
396
343
|
}
|
|
397
344
|
}
|
|
398
|
-
|
|
399
345
|
if (target) {
|
|
400
346
|
if (trigger === 'hover') {
|
|
401
347
|
target.onmouseenter = null;
|
|
@@ -405,19 +351,16 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
405
351
|
}
|
|
406
352
|
}
|
|
407
353
|
});
|
|
408
|
-
|
|
409
|
-
var renderContent = function renderContent() {
|
|
354
|
+
var renderContent = function () {
|
|
410
355
|
var useHTML = props.useHTML;
|
|
411
356
|
var tipContent = reactData.tipContent;
|
|
412
357
|
var contentSlot = slots.content;
|
|
413
|
-
|
|
414
358
|
if (contentSlot) {
|
|
415
359
|
return (0, _vue.h)('div', {
|
|
416
360
|
key: 1,
|
|
417
361
|
class: 'vxe-table--tooltip-content'
|
|
418
362
|
}, (0, _vn.getSlotVNs)(contentSlot({})));
|
|
419
363
|
}
|
|
420
|
-
|
|
421
364
|
if (useHTML) {
|
|
422
365
|
return (0, _vue.h)('div', {
|
|
423
366
|
key: 2,
|
|
@@ -425,33 +368,28 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
425
368
|
innerHTML: tipContent
|
|
426
369
|
});
|
|
427
370
|
}
|
|
428
|
-
|
|
429
371
|
return (0, _vue.h)('div', {
|
|
430
372
|
key: 3,
|
|
431
373
|
class: 'vxe-table--tooltip-content'
|
|
432
374
|
}, (0, _utils.formatText)(tipContent));
|
|
433
375
|
};
|
|
434
|
-
|
|
435
|
-
var renderVN = function renderVN() {
|
|
376
|
+
var renderVN = function () {
|
|
436
377
|
var _a;
|
|
437
|
-
|
|
438
378
|
var theme = props.theme,
|
|
439
|
-
|
|
440
|
-
|
|
379
|
+
isArrow = props.isArrow,
|
|
380
|
+
enterable = props.enterable;
|
|
441
381
|
var tipActive = reactData.tipActive,
|
|
442
|
-
|
|
443
|
-
|
|
382
|
+
visible = reactData.visible,
|
|
383
|
+
tipStore = reactData.tipStore;
|
|
444
384
|
var defaultSlot = slots.default;
|
|
445
385
|
var vSize = computeSize.value;
|
|
446
386
|
var ons;
|
|
447
|
-
|
|
448
387
|
if (enterable) {
|
|
449
388
|
ons = {
|
|
450
389
|
onMouseenter: wrapperMouseenterEvent,
|
|
451
390
|
onMouseleave: wrapperMouseleaveEvent
|
|
452
391
|
};
|
|
453
392
|
}
|
|
454
|
-
|
|
455
393
|
return (0, _vue.h)('div', __assign({
|
|
456
394
|
ref: refElem,
|
|
457
395
|
class: ['vxe-table--tooltip-wrapper', "theme--".concat(theme), (_a = {}, _a["size--".concat(vSize)] = vSize, _a["placement--".concat(tipStore.placement)] = tipStore.placement, _a['is--enterable'] = enterable, _a['is--visible'] = visible, _a['is--arrow'] = isArrow, _a['is--actived'] = tipActive, _a)],
|
|
@@ -461,13 +399,11 @@ var _default2 = (0, _vue.defineComponent)({
|
|
|
461
399
|
style: tipStore.arrowStyle
|
|
462
400
|
})], defaultSlot ? (0, _vn.getSlotVNs)(defaultSlot({})) : [], true));
|
|
463
401
|
};
|
|
464
|
-
|
|
465
402
|
$xetooltip.renderVN = renderVN;
|
|
466
403
|
return $xetooltip;
|
|
467
404
|
},
|
|
468
|
-
render: function
|
|
405
|
+
render: function () {
|
|
469
406
|
return this.renderVN();
|
|
470
407
|
}
|
|
471
408
|
});
|
|
472
|
-
|
|
473
|
-
exports.default = _default2;
|
|
409
|
+
exports.default = _default;
|
|
@@ -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"),_utils=require("../../tools/utils"),_dom=require("../../tools/dom"),_vn=require("../../tools/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},__spreadArray=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},
|
|
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"),_utils=require("../../tools/utils"),_dom=require("../../tools/dom"),_vn=require("../../tools/vn");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},__spreadArray=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||((i=i||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},_default=(0,_vue.defineComponent)({name:"VxeTooltip",props:{modelValue:Boolean,size:{type:String,default:function(){return _conf.default.tooltip.size||_conf.default.size}},trigger:{type:String,default:function(){return _conf.default.tooltip.trigger}},theme:{type:String,default:function(){return _conf.default.tooltip.theme}},content:{type:[String,Number],default:null},useHTML:Boolean,zIndex:[String,Number],isArrow:{type:Boolean,default:!0},enterable:Boolean,enterDelay:{type:Number,default:function(){return _conf.default.tooltip.enterDelay}},leaveDelay:{type:Number,default:function(){return _conf.default.tooltip.leaveDelay}}},emits:["update:modelValue"],setup:function(c,e){function n(){var e,t,n,i,o,r,l,u,a,c=d.tipTarget,s=d.tipStore;c&&(e=(n=(0,_dom.getDomNode)()).scrollTop,t=n.scrollLeft,n=n.visibleWidth,i=(o=(0,_dom.getAbsolutePos)(c)).top,o=o.left,r=(l=_.value).offsetHeight,l=l.offsetWidth,a=o,u=i-r-6,t+n<(a=Math.max(6,o+Math.floor((c.offsetWidth-l)/2)))+l+6&&(a=t+n-l-6),i-r<e+6&&(s.placement="bottom",u=i+c.offsetHeight+6),s.style.top="".concat(u,"px"),s.style.left="".concat(a,"px"),s.arrowStyle.left="".concat(o-a+c.offsetWidth/2,"px"))}function i(e){e!==d.visible&&(d.visible=e,d.isUpdate=!0,a("update:modelValue",e))}function r(){d.visible?y.close():y.open()}function l(){y.open()}function u(){var e=c.trigger,t=c.enterable,n=c.leaveDelay;d.tipActive=!1,t&&"hover"===e?setTimeout(function(){d.tipActive||y.close()},n):y.close()}function s(){d.tipActive=!0}function p(){var e=c.trigger,t=c.enterable,n=c.leaveDelay;d.tipActive=!1,t&&"hover"===e&&setTimeout(function(){d.tipActive||y.close()},n)}function o(){var e=d.tipStore,t=_.value;return t&&!t.parentNode&&document.body.appendChild(t),i(!0),d.tipZindex<(0,_utils.getLastZIndex)()&&(d.tipZindex=(0,_utils.nextZIndex)()),e.placement="top",e.style={width:"auto",left:0,top:0,zIndex:c.zIndex||d.tipZindex},e.arrowStyle={left:"50%"},y.updatePlacement()}var f=e.slots,a=e.emit,t=_xeUtils.default.uniqueId(),v=(0,_size.useSize)(c),d=(0,_vue.reactive)({target:null,isUpdate:!1,visible:!1,tipContent:"",tipActive:!1,tipTarget:null,tipZindex:0,tipStore:{style:{},placement:"",arrowStyle:{}}}),_=(0,_vue.ref)(),g={refElem:_},m={xID:t,props:c,context:e,reactData:d,getRefMaps:function(){return g}},y={},h=_xeUtils.default.debounce(function(){d.tipActive&&o()},c.enterDelay,{leading:!1,trailing:!0}),y={dispatchEvent:function(e,t,n){a(e,Object.assign({$tooltip:m,$event:n},t))},open:function(e,t){return y.toVisible(e||d.target,t)},close:function(){return d.tipTarget=null,d.tipActive=!1,Object.assign(d.tipStore,{style:{},placement:"",arrowStyle:null}),i(!1),(0,_vue.nextTick)()},toVisible:function(e,t){if(e){var n=c.trigger,i=c.enterDelay;if(d.tipActive=!0,d.tipTarget=e,t&&(d.tipContent=t),!i||"hover"!==n)return o();h()}return(0,_vue.nextTick)()},updatePlacement:function(){return(0,_vue.nextTick)().then(function(){var e=d.tipTarget,t=_.value;if(e&&t)return n(),(0,_vue.nextTick)().then(n)})},isActived:function(){return d.tipActive},setActived:function(e){d.tipActive=!!e}};Object.assign(m,y),(0,_vue.watch)(function(){return c.content},function(){d.tipContent=c.content}),(0,_vue.watch)(function(){return c.modelValue},function(){d.isUpdate||(c.modelValue?y.open():y.close()),d.isUpdate=!1}),(0,_vue.onMounted)(function(){(0,_vue.nextTick)(function(){var e=c.trigger,t=c.content,n=c.modelValue,i=_.value,o=i.parentNode;o&&(d.tipContent=t,d.tipZindex=(0,_utils.nextZIndex)(),_xeUtils.default.arrayEach(i.children,function(e,t){1<t&&(o.insertBefore(e,i),d.target||(d.target=e))}),o.removeChild(i),(t=d.target)&&("hover"===e?(t.onmouseenter=l,t.onmouseleave=u):"click"===e&&(t.onclick=r)),n)&&y.open()})}),(0,_vue.onBeforeUnmount)(function(){var e,t=c.trigger,n=d.target,i=_.value;i&&(e=i.parentNode)&&e.removeChild(i),n&&("hover"===t?(n.onmouseenter=null,n.onmouseleave=null):"click"===t&&(n.onclick=null))});return m.renderVN=function(){var e,t=c.theme,n=c.isArrow,i=c.enterable,o=d.tipActive,r=d.visible,l=d.tipStore,u=f.default,a=v.value;return i&&(e={onMouseenter:s,onMouseleave:p}),(0,_vue.h)("div",__assign({ref:_,class:["vxe-table--tooltip-wrapper","theme--".concat(t),((t={})["size--".concat(a)]=a,t["placement--".concat(l.placement)]=l.placement,t["is--enterable"]=i,t["is--visible"]=r,t["is--arrow"]=n,t["is--actived"]=o,t)],style:l.style},e),__spreadArray([(a=c.useHTML,i=d.tipContent,(r=f.content)?(0,_vue.h)("div",{key:1,class:"vxe-table--tooltip-content"},(0,_vn.getSlotVNs)(r({}))):a?(0,_vue.h)("div",{key:2,class:"vxe-table--tooltip-content",innerHTML:i}):(0,_vue.h)("div",{key:3,class:"vxe-table--tooltip-content"},(0,_utils.formatText)(i))),(0,_vue.h)("div",{class:"vxe-table--tooltip-arrow",style:l.arrowStyle})],u?(0,_vn.getSlotVNs)(u({})):[],!0))},m},render:function(){return this.renderVN()}});exports.default=_default;
|
|
@@ -37,75 +37,99 @@
|
|
|
37
37
|
word-break: break-word;
|
|
38
38
|
box-shadow: 2px 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
39
39
|
color: #606266;
|
|
40
|
-
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
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
|
-
|
|
82
|
-
|
|
40
|
+
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
|
|
41
|
+
}
|
|
42
|
+
.vxe-table--tooltip-wrapper:not(.is--enterable) {
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
.vxe-table--tooltip-wrapper.is--visible {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
.vxe-table--tooltip-wrapper.is--arrow .vxe-table--tooltip-arrow {
|
|
49
|
+
display: block;
|
|
50
|
+
}
|
|
51
|
+
.vxe-table--tooltip-wrapper.is--enterable:after {
|
|
52
|
+
content: "";
|
|
53
|
+
position: absolute;
|
|
54
|
+
left: 0;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 6px;
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
}
|
|
59
|
+
.vxe-table--tooltip-wrapper .vxe-table--tooltip-content {
|
|
60
|
+
white-space: pre-line;
|
|
61
|
+
}
|
|
62
|
+
.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow {
|
|
63
|
+
display: none;
|
|
64
|
+
position: absolute;
|
|
65
|
+
border-color: transparent;
|
|
66
|
+
border-width: 6px;
|
|
67
|
+
border-style: solid;
|
|
68
|
+
left: 50%;
|
|
69
|
+
transform: translateX(-6px);
|
|
70
|
+
}
|
|
71
|
+
.vxe-table--tooltip-wrapper .vxe-table--tooltip-arrow:before {
|
|
72
|
+
content: "";
|
|
73
|
+
position: absolute;
|
|
74
|
+
border-color: transparent;
|
|
75
|
+
border-width: 5px;
|
|
76
|
+
border-style: solid;
|
|
77
|
+
left: -5px;
|
|
78
|
+
}
|
|
79
|
+
.vxe-table--tooltip-wrapper.placement--top.is--enterable:after {
|
|
80
|
+
bottom: -6px;
|
|
81
|
+
}
|
|
82
|
+
.vxe-table--tooltip-wrapper.placement--top .vxe-table--tooltip-arrow {
|
|
83
|
+
bottom: -12px;
|
|
84
|
+
}
|
|
85
|
+
.vxe-table--tooltip-wrapper.placement--top .vxe-table--tooltip-arrow:before {
|
|
86
|
+
top: -7px;
|
|
87
|
+
}
|
|
88
|
+
.vxe-table--tooltip-wrapper.placement--bottom.is--enterable:after {
|
|
89
|
+
top: -6px;
|
|
90
|
+
}
|
|
91
|
+
.vxe-table--tooltip-wrapper.placement--bottom .vxe-table--tooltip-arrow {
|
|
92
|
+
top: -12px;
|
|
93
|
+
}
|
|
94
|
+
.vxe-table--tooltip-wrapper.placement--bottom .vxe-table--tooltip-arrow:before {
|
|
95
|
+
top: -4px;
|
|
96
|
+
}
|
|
83
97
|
|
|
84
98
|
.vxe-table--tooltip-wrapper.theme--light {
|
|
85
99
|
background-color: #fff;
|
|
86
|
-
border: 1px solid #dcdfe6;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
100
|
+
border: 1px solid #dcdfe6;
|
|
101
|
+
}
|
|
102
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--top .vxe-table--tooltip-arrow {
|
|
103
|
+
border-top-color: #dcdfe6;
|
|
104
|
+
}
|
|
105
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--top .vxe-table--tooltip-arrow:before {
|
|
106
|
+
border-top-color: #fff;
|
|
107
|
+
}
|
|
108
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--bottom .vxe-table--tooltip-arrow {
|
|
109
|
+
border-bottom-color: #dcdfe6;
|
|
110
|
+
}
|
|
111
|
+
.vxe-table--tooltip-wrapper.theme--light.placement--bottom .vxe-table--tooltip-arrow:before {
|
|
112
|
+
border-bottom-color: #fff;
|
|
113
|
+
}
|
|
96
114
|
.vxe-table--tooltip-wrapper.theme--dark {
|
|
97
115
|
background: #303133;
|
|
98
|
-
color: #fff;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
116
|
+
color: #fff;
|
|
117
|
+
}
|
|
118
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--top .vxe-table--tooltip-arrow {
|
|
119
|
+
border-top-color: #303133;
|
|
120
|
+
}
|
|
121
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--top .vxe-table--tooltip-arrow:before {
|
|
122
|
+
border-top-color: #303133;
|
|
123
|
+
}
|
|
124
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--bottom .vxe-table--tooltip-arrow {
|
|
125
|
+
border-bottom-color: #303133;
|
|
126
|
+
}
|
|
127
|
+
.vxe-table--tooltip-wrapper.theme--dark.placement--bottom .vxe-table--tooltip-arrow:before {
|
|
128
|
+
border-bottom-color: #303133;
|
|
129
|
+
}
|
|
107
130
|
|
|
108
131
|
/*valid error*/
|
|
109
132
|
.vxe-table--tooltip-wrapper.vxe-table--valid-error {
|
|
110
133
|
background-color: #f56c6c;
|
|
111
|
-
color: #fff;
|
|
134
|
+
color: #fff;
|
|
135
|
+
}
|