tree: a153859cc8370d25beac47c30f035e0c980e857d [path history] [tgz]
  1. index.js
  2. index.vue
  3. package.json
  4. README.md
  5. README_cn.md
packages/wxc-tag/README.md

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.