✨ feat(样品对比): 已移植EShop的样品对比模块

This commit is contained in:
xuan
2022-09-14 13:22:56 +08:00
parent b328419b96
commit 48e5986060
13 changed files with 848 additions and 94 deletions
+5 -4
View File
@@ -1,6 +1,6 @@
import { View } from "@tarojs/components"
import { FC, ReactNode } from "react"
import IconFont from "../iconfont"
import { View } from '@tarojs/components'
import { FC, ReactNode } from 'react'
import IconFont from '../iconfont'
import styles from './index.module.scss'
import classname from 'classnames'
@@ -16,8 +16,9 @@ interface PropsType {
iconSize?: number
}
const IconCard: FC<PropsType> = (props) => {
const { iconName, title, onClick, customClass = '', iconSize=72 } = props
const { iconName, title, onClick, customClass = '', iconSize = 72 } = props
const handleClick = (event) => {
console.log(event)
onClick && onClick(event)
}
return (