Skip to content

Commit 96d3a48

Browse files
authored
Merge pull request #1 from AsherSun/AsherSun-patch-1
fix(timeline.d.ts): 修复title、content类型问题
2 parents dc8c8cd + 860164e commit 96d3a48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { MouseEvent, ComponentClass } from 'react'
1+
import { MouseEvent, ComponentClass, ReactNode } from 'react'
22

33
import AtComponent from './base'
44

55
export interface Item {
66
/**
77
* 标题
88
*/
9-
title: string
9+
title: ReactNode
1010
/**
1111
* 子项内容
1212
*/
13-
content?: string[]
13+
content?: ReactNode[]
1414
/**
1515
* 自定义 icon
1616
*/

0 commit comments

Comments
 (0)