소스 검색

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

前端爱码士 2 년 전
부모
커밋
5a9a8644d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,
   },
   // 是否显示收起展开按钮