Compare commits
No commits in common. 'd47392954ad4e933c6625677ef0f465f93129d9a' and '29006f34f342f7d0053035b37610fe61f4d45950' have entirely different histories.
d47392954a
...
29006f34f3
@ -1,13 +0,0 @@ |
|||||||
.collect { |
|
||||||
display: flex; |
|
||||||
align-items: center; |
|
||||||
color: #909795; |
|
||||||
font-size: 24rpx; |
|
||||||
|
|
||||||
Image { |
|
||||||
width: 32rpx; |
|
||||||
height: 32rpx; |
|
||||||
margin-right: 10rpx; |
|
||||||
//vertical-align: middle; |
|
||||||
} |
|
||||||
} |
|
@ -1,22 +0,0 @@ |
|||||||
import {FC} from "react"; |
|
||||||
import star from '@/static/img/star.png' |
|
||||||
import starLine from '@/static/img/starLine.png' |
|
||||||
import {Image, View} from "@tarojs/components"; |
|
||||||
import styles from './collect.module.scss' |
|
||||||
|
|
||||||
interface Props { |
|
||||||
onClick?: () => void |
|
||||||
select?: boolean |
|
||||||
} |
|
||||||
|
|
||||||
/** 收藏 */ |
|
||||||
const Collect: FC<Props> = (props) => { |
|
||||||
return ( |
|
||||||
<View className={styles.collect}> |
|
||||||
<Image src={props.select ? star : starLine}/> |
|
||||||
{props.select ? '已收藏' : '收藏'} |
|
||||||
</View> |
|
||||||
) |
|
||||||
} |
|
||||||
|
|
||||||
export default Collect |
|
Before Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 770 B |
Before Width: | Height: | Size: 960 B |
Before Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in new issue