🐳 chore(eslint): 修正所有文件的eslint 错误❌
This commit is contained in:
@@ -11,7 +11,7 @@ interface Params {
|
||||
productList?: any[]
|
||||
popupShow?: (any) => void
|
||||
}
|
||||
export default ({ desStatus = true, productList = [], popupShow }: Params) => {
|
||||
const Product = ({ desStatus = true, productList = [], popupShow }: Params) => {
|
||||
const labAndImgObj = useCallback(
|
||||
(item) => {
|
||||
return { lab: item.lab, rgb: item.rgb, texture_url: item.texture_url }
|
||||
@@ -20,9 +20,9 @@ export default ({ desStatus = true, productList = [], popupShow }: Params) => {
|
||||
)
|
||||
return (
|
||||
<View className={styles.products_list}>
|
||||
{productList?.map((item) => {
|
||||
{productList?.map((item, key) => {
|
||||
return (
|
||||
<View className={styles.products_item} onClick={() => popupShow?.(item)}>
|
||||
<View key={key} className={styles.products_item} onClick={() => popupShow?.(item)}>
|
||||
<View className={styles.item_img}>
|
||||
<LabAndImg value={labAndImgObj(item)} />
|
||||
<View className={styles.num}>{item.product_color_count}色</View>
|
||||
@@ -45,3 +45,5 @@ export default ({ desStatus = true, productList = [], popupShow }: Params) => {
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
export default Product
|
||||
|
||||
Reference in New Issue
Block a user