Skip to content

Commit 80dd027

Browse files
committed
feat: ProCard collapsible now supports specifying trigger area
1 parent 2430e95 commit 80dd027

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/card/src/ProCard.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export type ProCardType = CardType & {
1313
Group: typeof Group;
1414
};
1515

16-
const Group = (props: PropsWithChildren<CardProps>) => {
17-
return <Card {...props} bodyStyle={{padding:0}}/>;
18-
}
16+
const Group = (props: PropsWithChildren<CardProps>) => (
17+
<Card bodyStyle={{ padding: 0 }} {...props} />
18+
);
1919

2020
// 当前不对底层 Card 做封装,仅挂载子组件,直接导出
2121
// @ts-ignore

packages/card/src/components/Card/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const Card = React.forwardRef((props: CardProps, ref: any) => {
5252
...rest
5353
} = props;
5454
const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);
55-
console.log(collapsible);
5655

5756
const screens = useBreakpoint() || {
5857
lg: true,

0 commit comments

Comments
 (0)