fix: use `defineComponent` in DescriptionsItem
* fix: 🐞 tsx 中使用 Descriptions.Item 提示错误
Co-authored-by: Amour1688 <31695475+Amour1688@users.noreply.github.com>
pull/3164/head
parent
44bc942bf7
commit
d122901de6
|
@ -30,7 +30,7 @@ export const DescriptionsItemProps = {
|
||||||
span: PropTypes.number,
|
span: PropTypes.number,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DescriptionsItem = {
|
export const DescriptionsItem = defineComponent({
|
||||||
name: 'ADescriptionsItem',
|
name: 'ADescriptionsItem',
|
||||||
props: {
|
props: {
|
||||||
prefixCls: PropTypes.string,
|
prefixCls: PropTypes.string,
|
||||||
|
@ -40,7 +40,7 @@ export const DescriptionsItem = {
|
||||||
render() {
|
render() {
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
|
|
||||||
const DEFAULT_COLUMN_MAP: Record<Breakpoint, number> = {
|
const DEFAULT_COLUMN_MAP: Record<Breakpoint, number> = {
|
||||||
xxl: 3,
|
xxl: 3,
|
||||||
|
|
Loading…
Reference in New Issue