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

[Skeleton] 新增col 设置圆角、 背景颜色属性 #3131

Open
zhemuse opened this issue Oct 9, 2024 · 1 comment
Open

[Skeleton] 新增col 设置圆角、 背景颜色属性 #3131

zhemuse opened this issue Oct 9, 2024 · 1 comment
Labels
💭 discussion we are discussing enhancement New feature or request

Comments

@zhemuse
Copy link

zhemuse commented Oct 9, 2024

这个功能解决了什么问题

希望可以新增 ColItem 圆角属性 , 这个在一些场景还是挺常用的
const getColItemStyle = (obj: SkeletonRowColObj): Styles => {
const styleName = [
'width',
'height',
'marginRight',
'marginLeft',
'margin',
'size',
'background',
'backgroundColor',
];
const style: Styles = {};
styleName.forEach((name) => {
if (name in obj) {
const px = pxCompat(obj[name]);
if (name === 'size') {
[style.width, style.height] = [px, px];
} else {
style[name] = px;
}
}
});
return style;
};

你建议的方案是什么

SkeletonRowColObj 新增 borderRadio 属性

Copy link
Contributor

github-actions bot commented Oct 9, 2024

👋 @zhemuse,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO HaixingOoO added the enhancement New feature or request label Oct 10, 2024
@uyarn uyarn added the 💭 discussion we are discussing label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants