Explorar o código

chore<table>: fix type (#2529)

luocong2016 %!s(int64=2) %!d(string=hai) anos
pai
achega
be3d98fa3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: {