Skip to content

Commit 1abe02d

Browse files
hashiqi12138jieliu52
andauthored
fix(vuerenderless/grid): 支持designConfig中配置tooltip (#2977)
Co-authored-by: jieliu52 <jieliu52@kxdigit.com>
1 parent 4dc2f93 commit 1abe02d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/vue/src/grid/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const GlobalConfig = {
105105
menu: {},
106106
tooltip: {
107107
trigger: 'hover',
108-
theme: 'dark'
108+
effect: 'light'
109109
},
110110
pager: {},
111111
toolbar: {

packages/vue/src/grid/src/grid/grid.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ export default defineComponent({
372372
const optimizOpt = { ...GlobalConfig.optimization, ...optimization }
373373
const props = { ...tableProps, optimization: optimizOpt, startIndex: seqIndex }
374374

375+
// 初始化 tooltip 配置
376+
props.tooltipConfig = Object.assign({}, GlobalConfig.tooltip || {}, designConfig.tooltip || {}, props.tooltipConfig || {})
377+
375378
// 在用户没有配置stripe时读取design配置
376379
if (designConfig?.stripe !== undefined && !props.stripe) {
377380
// aurora规范默认带斑马条纹

0 commit comments

Comments
 (0)