# 标签

标签组件

# 示例

<template>
  <div class="wrapper">
    <dof-minibar title="标签"></dof-minibar>
    <div class="title-box">
      <text class="title-text">基础样式</text>
    </div>
    <div class="content-box">
      <dof-colmo-tag content="文案文字"></dof-colmo-tag>
      <dof-colmo-tag type="colmo" content="文案文字"></dof-colmo-tag>
      <dof-colmo-tag type="gray_plain" content="文案文字"></dof-colmo-tag>
      <dof-colmo-tag type="green" content="文案文字"></dof-colmo-tag>
    </div>
  </div>
</template>

<style scoped>
.wrapper {
  background-color: #f9f9f9;
}
.title-box {
  padding: 32px;
  background-color: #e5e5e8;
}
.title-text {
  font-family: PingFangSC-Medium;
  font-size: 36px;
  color: #000000;
  font-weight: 500;
}
.content-box {
  padding: 46px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}



@media screen and (weex-theme: colmo) {
  .wrapper {
    background-color: #151617;
  }
}
</style>

<script>
import { DofMinibar, DofColmoTag } from 'dolphin-weex-ui'
export default {
  components: { DofMinibar, DofColmoTag },
  data: () => ({
    
  }),
  computed: {},
  created() {},
  mounted() {},
  methods: {}
}
</script>



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

# Attributes

参数 说明 类型 默认值 是否必须
type 颜色主题,可选值为: colmo_plain colmo gray_plain green String colmo_plain N
content 标签文案 String `` N
点我扫二维码 查看demo