Skip to content

Commit c6db970

Browse files
committed
refactor: Update AtListItemProps in list.d.ts to allow string values for title and extraText
1 parent 4bf863f commit c6db970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface AtListItemProps extends AtComponent {
2828
/**
2929
* 元素的标题
3030
*/
31-
title?: JSX.Element
31+
title?: JSX.Element | string
3232
/**
3333
* 元素的主要缩略图
3434
*/
@@ -40,7 +40,7 @@ export interface AtListItemProps extends AtComponent {
4040
/**
4141
* 额外信息的文本
4242
*/
43-
extraText?: JSX.Element
43+
extraText?: JSX.Element | string
4444
/**
4545
* 额外信息的缩略图
4646
*/

0 commit comments

Comments
 (0)