Browse Source

fix: 修复Form组件emptySpan类型定义错误 (#2432)

前端爱码士 2 years ago
parent
commit
5a9a8644d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Form/src/props.ts

+ 1 - 1
src/components/Form/src/props.ts

@@ -45,7 +45,7 @@ export const basicProps = {
   // 禁用表单
   disabled: propTypes.bool,
   emptySpan: {
-    type: [Number, Object] as PropType<number>,
+    type: [Number, Object] as PropType<number | Recordable>,
     default: 0,
   },
   // 是否显示收起展开按钮