Explorar o código

types: 修复Table类型错误

kailong321200875 hai 1 ano
pai
achega
79b917af49
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/components/Table/src/types/index.ts

+ 2 - 1
src/components/Table/src/types/index.ts

@@ -91,7 +91,8 @@ export interface TableProps extends Omit<Partial<ElTableProps<any[]>>, 'data'> {
   align?: 'left' | 'center' | 'right'
   // 表头对齐方式
   headerAlign?: 'left' | 'center' | 'right'
-  preview?: string[]
+  imagePreview?: string[]
+  videoPreview?: string[]
   sortable?: boolean
   data?: Recordable
 }