Tag component supports
solid/hollow/special/image
types
<template> <div class="wrapper"> <wxc-tag type="solid" tag-color="#ff5000" font-color="#ffffff" value="solid tag"></wxc-tag> </div> </template> <script> import { WxcTag } from 'weex-ui'; export default { components: { WxcTag } }; </script>
Prop | Type | Required | Default | Description |
---|---|---|---|---|
type | String | N | solid | tag style type(*1) |
value | String | Y | - | tag text value |
tag-color | String | N | #ff5000 | tag warp color |
font-color | String | N | #ffffff | tag text color |
special-icon | String | N | - | special icon in the left |
img | String | N | - | img src(*2) |
solid/hollow/'special/image
.image
, You need post a img
param.