🐳 chore(eslint): 修正所有文件的eslint 错误❌

This commit is contained in:
xuan
2022-11-28 11:06:15 +08:00
parent 99a920975f
commit cc99111b4f
149 changed files with 3270 additions and 3252 deletions
+7 -10
View File
@@ -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