Skip to content

Commit

Permalink
feat(card): update the types of headerStyle and bodyStyle (#3268)
Browse files Browse the repository at this point in the history
  • Loading branch information
wehuss authored Sep 13, 2024
1 parent 441d187 commit 82a4fba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web-vue/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
provide,
VNode,
toRefs,
CSSProperties,
} from 'vue';
import { getPrefixCls } from '../_utils/global-config';
import Spin from '../spin';
Expand Down Expand Up @@ -57,15 +58,15 @@ export default defineComponent({
* @en The additional css style to apply to card head
*/
headerStyle: {
type: Object,
type: Object as PropType<CSSProperties>,
default: () => ({}),
},
/**
* @zh 内容区域自定义样式
* @en The additional css style to apply to card content
*/
bodyStyle: {
type: Object,
type: Object as PropType<CSSProperties>,
default: () => ({}),
},
/**
Expand Down

0 comments on commit 82a4fba

Please sign in to comment.