Skip to content

Commit 35d8427

Browse files
authored
chore: 兼容react18组件ts类型 (#1543)
1 parent 926341b commit 35d8427

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/taro-ui/types/base.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { CSSProperties } from 'react'
1+
import React, { CSSProperties } from 'react'
22

33
export interface AtComponent {
44
className?: string
55
style?: CSSProperties
66
customStyle?: string | CSSProperties
7+
children?: React.ReactNode
78
}
89

910
export interface AtIconBaseProps2 extends AtComponent {

0 commit comments

Comments
 (0)