🐳 chore(eslint): 修正所有文件的eslint 错误❌
This commit is contained in:
@@ -34,7 +34,7 @@ interface prosObj {
|
||||
hasBottom?: true | false // 默认不占位底部
|
||||
onBlur?: (e: string, res: object) => void
|
||||
}
|
||||
export default memo(forwardRef((props: prosObj, ref) => {
|
||||
const ShoppingCart = (props: prosObj, ref) => {
|
||||
const {
|
||||
showPopup = false,
|
||||
closePopup,
|
||||
@@ -105,7 +105,7 @@ export default memo(forwardRef((props: prosObj, ref) => {
|
||||
return s
|
||||
}
|
||||
|
||||
const rows = memo(({ id, index, style, data }: any) => {
|
||||
const rows = ({ id, index, style, data }: any) => {
|
||||
const item = data[index]
|
||||
return (
|
||||
<>
|
||||
@@ -120,7 +120,8 @@ export default memo(forwardRef((props: prosObj, ref) => {
|
||||
></Goods>
|
||||
</>
|
||||
)
|
||||
})
|
||||
}
|
||||
const Rows = memo(rows)
|
||||
|
||||
return (
|
||||
<Popup showTitle={false} show={showPopup} onClose={() => closePopup?.()}>
|
||||
@@ -164,7 +165,6 @@ export default memo(forwardRef((props: prosObj, ref) => {
|
||||
placeholder="请输入搜索布料"
|
||||
showBtn={false}
|
||||
changeOnSearch={getSearchData}
|
||||
debounceTime={300}
|
||||
adjustPosition
|
||||
/>
|
||||
</View>
|
||||
@@ -181,7 +181,7 @@ export default memo(forwardRef((props: prosObj, ref) => {
|
||||
itemSize={100} /* 列表单项的高度 */
|
||||
overscanCount={1}
|
||||
>
|
||||
{rows}
|
||||
{Rows}
|
||||
</VirtualList>
|
||||
</View>
|
||||
|
||||
@@ -212,4 +212,5 @@ export default memo(forwardRef((props: prosObj, ref) => {
|
||||
</ScrollView>
|
||||
</Popup>
|
||||
)
|
||||
}))
|
||||
}
|
||||
export default memo(forwardRef(ShoppingCart))
|
||||
|
||||
Reference in New Issue
Block a user