Weex 通用标签组件,支持实心标签、空心标签、特殊标签、图片标签
<template> <div class="wrapper"> <wxc-tag type="solid" tag-color="#ff5000" font-color="#ffffff" value="实心标签"></wxc-tag> </div> </template> <script> import { WxcTag } from 'weex-ui'; export default { components: { WxcTag } }; </script>
Prop | Type | Required | Default | Description |
---|---|---|---|---|
type | String | N | solid | 标签的类型(注1) |
value | String | Y | - | 文字标签的文案 |
tag-color | String | N | #ff5000 | 标签颜色 |
font-color | String | N | #ffffff | 文字颜色 |
special-icon | String | N | - | 特殊标签的小icon(注2) |
img | String | N | - | 图片类型tag的图片地址(注3) |