feat: modify Content component

This commit is contained in:
QiShaoXuan
2023-01-31 13:18:37 +08:00
parent c11f257943
commit 2f5724578f
+15 -2
View File
@@ -14,8 +14,21 @@ export type ContentProps = {
lineNum?: number;
children: string;
};
export const Content = styled.div<ContentProps>(
export const Content = styled('div', {
shouldForwardProp: prop => {
return ![
'color',
'fontSize',
'weight',
'lineHeight',
'ellipsis',
'lineNum',
'width',
'maxWidth',
'align',
].includes(prop);
},
})<ContentProps>(
({
theme,
color,