Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] react-vtable 的popover组件,支持背景色,padding属性 #2988

Closed
liuboying1119 opened this issue Dec 3, 2024 · 0 comments · Fixed by #3024
Closed

[Feature] react-vtable 的popover组件,支持背景色,padding属性 #2988

liuboying1119 opened this issue Dec 3, 2024 · 0 comments · Fixed by #3024
Assignees
Labels
bp bp feature 新需求

Comments

@liuboying1119
Copy link

liuboying1119 commented Dec 3, 2024

What problem does this feature solve?

1 希望支持popver的背景色,来支持不同主题下的适配
2 希望支持popver的内边距,来调整文字距离边框的大小
image

What does the proposed API look like?

<Popover
key={index}
content={


{record.metricName[index]}


{record.metricDesc[index]}



}
position={'bottom'}
padding={8}
backgroundColor={'#77777'}
>
<Tag
attribute={{
text: d,
textStyle: {
fontSize: 14,
fontFamily: 'sans-serif',
texturePadding: 16,
fill: themeStore === 'dark' ? '#fff' : '#2e2f32',
},
panel: {
visible: true,
fill: 'rgba(92, 184, 85, 0.10)',
lineWidth: 1,
cornerRadius: [16],
},
boundsPadding: [0, 0, 0, 8],
}}
>

@liuboying1119 liuboying1119 added the feature 新需求 label Dec 3, 2024
@liuboying1119 liuboying1119 changed the title [Feature] react-vtable 的popover组件,支持背景色属性 [Feature] react-vtable 的popover组件,支持背景色,padding属性 Dec 3, 2024
@Rui-Sun Rui-Sun added the bp bp label Dec 3, 2024
@Rui-Sun Rui-Sun linked a pull request Dec 6, 2024 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bp bp feature 新需求
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants