From 02ba28c21b0210e37312027e2d85226f59330725 Mon Sep 17 00:00:00 2001 From: jieliu52 Date: Wed, 26 Feb 2025 19:03:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(vuerenderless/grid):=20=E6=94=AF=E6=8C=81de?= =?UTF-8?q?signConfig=E4=B8=AD=E9=85=8D=E7=BD=AEtooltip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vue/src/grid/src/config.ts | 2 +- packages/vue/src/grid/src/grid/grid.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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规范默认带斑马条纹