🐳 chore(eslint): 修正所有文件的eslint 错误❌
This commit is contained in:
@@ -17,9 +17,7 @@ interface ListParams{
|
||||
required?: boolean
|
||||
showIcon?: boolean // 是否显示右边的箭头,type=select
|
||||
}
|
||||
|
||||
// 表单列表
|
||||
const FromList = memo((props: ListParams) => {
|
||||
const FromListCertification = (props: ListParams) => {
|
||||
const { type = 'input', value = '', style = {}, labelStyle = {}, contentStyle = {}, required = false, showIcon = true } = props
|
||||
|
||||
return (
|
||||
@@ -37,11 +35,11 @@ const FromList = memo((props: ListParams) => {
|
||||
&& <View><Text onClick={() => props.onInput && props.onInput({ detail: { value: '' } })} className="iconfont icon-qingkong" /></View>
|
||||
}
|
||||
</View>
|
||||
: type == 'textarea'
|
||||
: type == 'textarea'
|
||||
? <Textarea value={value} placeholder-class="phcolor" onInput={props?.onInput} placeholder={props.placeholder} />
|
||||
: <>
|
||||
{
|
||||
props.value
|
||||
props.value
|
||||
? <View>{value}</View>
|
||||
: <View className="From-list-certification-right-placeholder">
|
||||
{props.placeholder}
|
||||
@@ -57,9 +55,8 @@ const FromList = memo((props: ListParams) => {
|
||||
</View>
|
||||
</View>
|
||||
)
|
||||
})
|
||||
|
||||
const A = () => {
|
||||
|
||||
}
|
||||
export default FromList
|
||||
// 表单列表
|
||||
const FromList = memo(FromListCertification)
|
||||
|
||||
export default FromList
|
||||
|
||||
Reference in New Issue
Block a user