Houjie
2025-04-11 1bf977929dd324f3ac64b70debd8a79443c54392
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<template>
    <view>
        <cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="backText">返回</block><block slot="content">标签</block></cu-custom>
        <view class="cu-bar bg-white solid-bottom">
            <view class='action'>
                <text class='cuIcon-title text-blue'></text>标签形状
            </view>
        </view>
        <view class="padding bg-white solid-bottom">
            <view class='cu-tag'>默认</view>
            <view class='cu-tag round'>椭圆</view>
            <view class='cu-tag radius'>圆角</view>
        </view>
 
        <view class="cu-bar bg-white margin-top">
            <view class='action'>
                <text class='cuIcon-title text-blue'></text>标签尺寸
            </view>
        </view>
        <view class="padding bg-white">
            <view class='cu-tag radius sm'>小尺寸</view>
            <view class='cu-tag radius'>普通尺寸</view>
        </view>
        <view class="cu-bar bg-white margin-top">
            <view class='action'>
                <text class='cuIcon-title text-blue'></text>标签颜色
            </view>
        </view>
        <view class='padding-sm flex flex-wrap'>
            <view class="padding-xs" v-for="(item,index) in ColorList" :key="index" v-if="item.name!='gray'">
                <view class='cu-tag' :class="'bg-' + item.name">{{item.title}}</view>
            </view>
            <view class="padding-xs" v-for="(item,index) in ColorList" :key="index" v-if="item.name!='gray' && item.name!='black' && item.name!='white'">
                <view class='cu-tag light' :class="'bg-' + item.name">{{item.title}}</view>
            </view>
        </view>
        <view class="cu-bar bg-white margin-top">
            <view class='action'>
                <text class='cuIcon-title text-blue'></text>镂空标签
            </view>
        </view>
        <view class='padding-sm flex flex-wrap'>
            <view class="padding-xs" v-for="(item,index) in ColorList" :key="index" v-if="item.name!='white'">
                <view class='cu-tag' :class="'line-' + item.name">{{item.title}}</view>
            </view>
        </view>
        <view class="cu-bar bg-white margin-top">
            <view class='action'>
                <text class='cuIcon-title text-blue'></text>胶囊样式
            </view>
        </view>
        <view class="padding">
            <view class="cu-capsule">
                <view class='cu-tag bg-red'>
                    <text class='cuIcon-likefill'></text>
                </view>
                <view class="cu-tag line-red">
                    12
                </view>
            </view>
            <view class="cu-capsule round">
                <view class='cu-tag bg-blue '>
                    <text class='cuIcon-likefill'></text>
                </view>
                <view class="cu-tag line-blue">
                    23
                </view>
            </view>
            <view class="cu-capsule round">
                <view class='cu-tag bg-blue '>
                    说明
                </view>
                <view class="cu-tag line-blue">
                    123
                </view>
            </view>
            <view class="cu-capsule radius">
                <view class='cu-tag bg-grey '>
                    <text class='cuIcon-likefill'></text>
                </view>
                <view class="cu-tag line-grey">
                    23
                </view>
            </view>
            <view class="cu-capsule radius">
                <view class='cu-tag bg-brown sm'>
                    <text class='cuIcon-likefill'></text>
                </view>
                <view class="cu-tag line-brown sm">
                    23
                </view>
            </view>
        </view>
        <view class="cu-bar bg-white margin-top">
            <view class='action'>
                <text class='cuIcon-title text-blue'></text>数字标签
            </view>
        </view>
        <view class="padding flex justify-between align-center">
            <view class='cu-avatar xl radius'>
                港
                <view class="cu-tag badge">99+</view>
            </view>
            <view class='cu-avatar xl radius' style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg)">
                <view class='cu-tag badge'>9</view>
            </view>
            <view class='cu-avatar xl radius'>
                <view class='cu-tag badge'>99</view>
                <text class='cuIcon-people'></text>
            </view>
            <view class='cu-avatar xl radius'>
                <view class='cu-tag badge'>99+</view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                ColorList: this.ColorList,
            };
        }
    }
</script>
 
<style>
 
</style>