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; lineNum?: number;
children: string; children: string;
}; };
export const Content = styled('div', {
export const Content = styled.div<ContentProps>( shouldForwardProp: prop => {
return ![
'color',
'fontSize',
'weight',
'lineHeight',
'ellipsis',
'lineNum',
'width',
'maxWidth',
'align',
].includes(prop);
},
})<ContentProps>(
({ ({
theme, theme,
color, color,