✨ feat(样品对比): 已移植EShop的样品对比模块
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user