Skip to content

Commit

Permalink
feat(card): ProCard support colStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Mar 27, 2024
1 parent 351faec commit bfcf8aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
2 changes: 2 additions & 0 deletions packages/card/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const Card = React.forwardRef((props: CardProps, ref: any) => {
collapsed: controlCollapsed,
collapsible = false,
collapsibleIconRender,
colStyle,
defaultCollapsed = false,
onCollapse,
checked,
Expand Down Expand Up @@ -170,6 +171,7 @@ const Card = React.forwardRef((props: CardProps, ref: any) => {
paddingBlockStart: verticalGutter / 2,
paddingBlockEnd: verticalGutter / 2,
}),
...colStyle,
}}
className={columnClassName}
>
Expand Down
1 change: 1 addition & 0 deletions packages/card/src/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type CardPropsBase = {
loading?: boolean | ReactNode;
/** 栅格布局宽度,24 栅格,支持指定宽度或百分,需要支持响应式 colSpan={{ xs: 12, sm: 6 }} */
colSpan?: ColSpanType | Partial<Record<Breakpoint, ColSpanType>>;
colStyle?: React.CSSProperties;
/** 栅格间距 */
gutter?: Gutter | Gutter[];
/** 操作按钮 */
Expand Down
7 changes: 1 addition & 6 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.6.52](https://github.com/ant-design/pro-components/compare/@ant-design/pro-components@2.6.51...@ant-design/pro-components@2.6.52) (2024-03-22)

**Note:** Version bump only for package @ant-design/pro-components





## [2.6.51](https://github.com/ant-design/pro-components/compare/@ant-design/pro-components@2.6.50...@ant-design/pro-components@2.6.51) (2024-03-20)

**Note:** Version bump only for package @ant-design/pro-components
Expand Down
10 changes: 2 additions & 8 deletions packages/layout/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [7.18.0](https://github.com/ant-design/pro-components/compare/@ant-design/pro-layout@7.17.20...@ant-design/pro-layout@7.18.0) (2024-03-22)


### Features

* ActionsContent support one dom ([8558d0e](https://github.com/ant-design/pro-components/commit/8558d0ee280595cf1bb39da383bcd3b10da7103b))




- ActionsContent support one dom ([8558d0e](https://github.com/ant-design/pro-components/commit/8558d0ee280595cf1bb39da383bcd3b10da7103b))

## [7.17.20](https://github.com/ant-design/pro-components/compare/@ant-design/pro-layout@7.17.19...@ant-design/pro-layout@7.17.20) (2024-03-15)

Expand Down

0 comments on commit bfcf8aa

Please sign in to comment.