@@ -126,7 +126,7 @@ const descriptionsProps = {
126
126
extra : PropTypes . VNodeChild ,
127
127
column : {
128
128
type : [ Number , Object ] as PropType < number | Partial < Record < Breakpoint , number > > > ,
129
- default : ( ) => DEFAULT_COLUMN_MAP ,
129
+ default : ( ) : number | Partial < Record < Breakpoint , number > > => DEFAULT_COLUMN_MAP ,
130
130
} ,
131
131
layout : PropTypes . oneOf ( tuple ( 'horizontal' , 'vertical' ) ) ,
132
132
colon : PropTypes . looseBool ,
@@ -135,8 +135,9 @@ const descriptionsProps = {
135
135
export type DescriptionsProps = HTMLAttributes &
136
136
Partial < ExtractPropTypes < typeof descriptionsProps > > ;
137
137
138
- const Descriptions = defineComponent < DescriptionsProps > ( {
138
+ const Descriptions = defineComponent ( {
139
139
name : 'ADescriptions' ,
140
+ props : descriptionsProps ,
140
141
Item : DescriptionsItem ,
141
142
setup ( props , { slots } ) {
142
143
const { getPrefixCls } = inject ( 'configProvider' , defaultConfigProvider ) ;
@@ -215,8 +216,6 @@ const Descriptions = defineComponent<DescriptionsProps>({
215
216
} ,
216
217
} ) ;
217
218
218
- Descriptions . props = descriptionsProps ;
219
-
220
219
Descriptions . install = function ( app : App ) {
221
220
app . component ( Descriptions . name , Descriptions ) ;
222
221
app . component ( Descriptions . Item . name , Descriptions . Item ) ;
0 commit comments