소스 검색

chore<table>: fix type (#2529)

luocong2016 2 년 전
부모
커밋
be3d98fa3d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/Table/src/props.ts

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

@@ -131,7 +131,7 @@ export const basicProps = {
     type: Function as PropType<(record: TableCustomRecord<any>, index: number) => string>,
   },
   scroll: {
-    type: Object as PropType<{ x: number | true; y: number }>,
+    type: Object as PropType<{ x: number | string | true; y: number | string }>,
     default: null,
   },
   beforeEditSubmit: {