mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 05:58:56 +08:00
feat: modify Content component
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user