WebApp【公共组件库】@前端(For Git Submodule)
‘chensiAb’
6 days ago fbb96ab8a5a00015227612d9706f0ca1a7f85461
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
 * CHomeItem
 * @author Tevin
 */
 
<template>
    <CAnchor
        class="c-home-item"
        :href="href"
    >
        <image
            class="c-home-item-icon"
            :src="icon"
            mode="aspectFit"
        />
        <view class="c-home-item-label">{{label}}</view>
    </CAnchor>
</template>
 
<script>
import Taro from '@tarojs/taro';
import { CAnchor } from '@components/layout/anchor';
 
export default {
    name: 'CHomeItem',
    components: {
        CAnchor,
    },
    props: {
        // 名称
        label: String,
        // 图标地址
        icon: String,
        // 链接地址
        href: String,
    },
    methods: {},
};
</script>