wxc-tag

Tag component supports solid/hollow/special/image types

Demo

    

Code Example

<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>

API

PropTypeRequiredDefaultDescription
typeStringNsolidtag style type(*1)
valueStringY-tag text value
tag-colorStringN#ff5000tag warp color
font-colorStringN#fffffftag text color
special-iconStringN-special icon in the left
imgStringN-img src(*2)
  • *1: Supports solid/hollow/'special/image.
  • *2: When the type is image, You need post a img param.