@@ -4,7 +4,7 @@ import React from 'react'
4
4
import { Image , Switch , Text , View } from '@tarojs/components'
5
5
import { CommonEvent , ITouchEvent } from '@tarojs/components/types/common'
6
6
import { AtListItemProps } from '../../../../types/list'
7
- import { mergeStyle , isJSXElement } from '../../../common/utils'
7
+ import { mergeStyle } from '../../../common/utils'
8
8
9
9
export default class AtListItem extends React . Component < AtListItemProps > {
10
10
public static defaultProps : AtListItemProps
@@ -163,16 +163,16 @@ AtListItem.defaultProps = {
163
163
}
164
164
165
165
AtListItem . propTypes = {
166
- note : isJSXElement ,
166
+ note : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
167
167
disabled : PropTypes . bool ,
168
- title : isJSXElement ,
168
+ title : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
169
169
thumb : PropTypes . string ,
170
170
onClick : PropTypes . func ,
171
171
isSwitch : PropTypes . bool ,
172
172
hasBorder : PropTypes . bool ,
173
173
switchColor : PropTypes . string ,
174
174
switchIsCheck : PropTypes . bool ,
175
- extraText : isJSXElement ,
175
+ extraText : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . element ] ) ,
176
176
extraThumb : PropTypes . string ,
177
177
onSwitchChange : PropTypes . func ,
178
178
arrow : PropTypes . oneOf ( [ 'up' , 'down' , 'right' ] ) ,
0 commit comments