WebApp【公共组件库】@前端(For Git Submodule)
chensiAb
2025-01-13 899c7476cfdcbf35f23c1e49e6582cdbc8cfdbeb
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
/**
 * CHomeNav
 * @author Tevin
 */
 
<template>
    <view :class="['c-home-nav', 'col-'+layout]">
        <view
            class="c-home-nav-title"
            v-if="title"
        >{{title}}</view>
        <view class="c-home-nav-content">
            <slot />
        </view>
    </view>
</template>
 
<script>
import Taro from '@tarojs/taro';
import './cHomeNav.scss';
 
export default {
    name: 'CHomeNav',
    props: {
        // 排版方式,two/three
        layout: {
            type: String,
            default: 'two',
        },
        // 群组标题
        title: String,
    },
    methods: {},
};
</script>