🌈 style(eslint): 修复eslint的报错❌

This commit is contained in:
xuan
2022-12-05 16:30:09 +08:00
parent d93b66e7d5
commit 639112c038
114 changed files with 2209 additions and 2161 deletions
+7 -10
View File
@@ -16,9 +16,7 @@ interface ListParams {
contentStyle?: object
required?: boolean
}
// 表单列表
const FromList = memo((props: ListParams) => {
const FromList = (props: ListParams) => {
const { type = 'input', value = '', style = {}, labelStyle = {}, contentStyle = {}, required = false } = props
return (
@@ -29,7 +27,7 @@ const FromList = memo((props: ListParams) => {
<View onClick={props?.onClick} className="form-list-right">
{props.children ?? (
<View style={contentStyle} onClick={props?.onClick} className="form-list-right-meet">
{type == 'input'
{type == 'input'
? (
<View className="form-list-input">
<Input
@@ -47,11 +45,11 @@ const FromList = memo((props: ListParams) => {
</View>
)}
</View>
)
: type == 'textarea'
)
: type == 'textarea'
? (
<Textarea value={value} placeholder-class="phcolor" onInput={props?.onInput} placeholder={props.placeholder} />
)
)
: (
<>
{props.value ? <View>{value}</View> : <View className="form-list-right-placeholder">{props.placeholder}</View>}
@@ -65,7 +63,6 @@ const FromList = memo((props: ListParams) => {
</View>
</View>
)
})
}
const A = () => {}
export default FromList
export default memo(FromList)