diff --git a/packages/vue/src/grid/src/config.ts b/packages/vue/src/grid/src/config.ts index 1341726e31..8885059514 100644 --- a/packages/vue/src/grid/src/config.ts +++ b/packages/vue/src/grid/src/config.ts @@ -105,7 +105,7 @@ const GlobalConfig = { menu: {}, tooltip: { trigger: 'hover', - theme: 'dark' + effect: 'light' }, pager: {}, toolbar: { diff --git a/packages/vue/src/grid/src/grid/grid.ts b/packages/vue/src/grid/src/grid/grid.ts index 0cc89f7bed..21dd0a220e 100644 --- a/packages/vue/src/grid/src/grid/grid.ts +++ b/packages/vue/src/grid/src/grid/grid.ts @@ -372,6 +372,9 @@ export default defineComponent({ const optimizOpt = { ...GlobalConfig.optimization, ...optimization } const props = { ...tableProps, optimization: optimizOpt, startIndex: seqIndex } + // 初始化 tooltip 配置 + props.tooltipConfig = Object.assign({}, GlobalConfig.tooltip || {}, designConfig.tooltip || {}, props.tooltipConfig || {}) + // 在用户没有配置stripe时读取design配置 if (designConfig?.stripe !== undefined && !props.stripe) { // aurora规范默认带斑马条纹