mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 02:57:50 +08:00
fix: use defineComponent
in DescriptionsItem
* fix: 🐞 tsx 中使用 Descriptions.Item 提示错误
Co-authored-by: Amour1688 <31695475+Amour1688@users.noreply.github.com>
This commit is contained in:
parent
44bc942bf7
commit
d122901de6
@ -30,7 +30,7 @@ export const DescriptionsItemProps = {
|
||||
span: PropTypes.number,
|
||||
};
|
||||
|
||||
export const DescriptionsItem = {
|
||||
export const DescriptionsItem = defineComponent({
|
||||
name: 'ADescriptionsItem',
|
||||
props: {
|
||||
prefixCls: PropTypes.string,
|
||||
@ -40,7 +40,7 @@ export const DescriptionsItem = {
|
||||
render() {
|
||||
return null;
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
const DEFAULT_COLUMN_MAP: Record<Breakpoint, number> = {
|
||||
xxl: 3,
|
||||
|
Loading…
Reference in New Issue
Block a user