Commit 62bf2b3ceb0ad4ead6dfdf78ef6600cdabecc678

Authored by daiyanze
1 parent dc39cc31

Modify: example of tags

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
examples/routers/tag.vue
1 <template> 1 <template>
2 <div> 2 <div>
3 <Tag v-for="item in count" :key="item" :name="item" type="border" color="yellow" @on-close="close" @on-check="check" closable>标签{{ item + 1 }}</Tag> 3 <Tag v-for="item in count" :key="item" :name="item" type="border" color="yellow" @on-close="close" @on-check="check" closable>标签{{ item + 1 }}</Tag>
4 - <Tag v-for="item in count" :key="item" :name="item" type="border" color="yellow" @on-close="close" @on-check="check" closable checkable>标签{{ 1 - item }}</Tag> 4 + <div><Tag v-for="item in count" :key="item" :name="item" color="yellow" @on-close="close" @on-check="check" checkable>可选标签{{ item + 1 }}</Tag></div>
  5 + <div><Tag v-for="item in count" :key="item" :name="item" type="dot" color="blue" @on-close="close" @on-check="check" closable checkable>可选可关闭标签{{ item + 1 }}</Tag></div>
  6 + <br />
5 <Button icon="ios-plus-empty" type="dashed" size="small" @click="count += 1">添加标签</Button> 7 <Button icon="ios-plus-empty" type="dashed" size="small" @click="count += 1">添加标签</Button>
6 </div> 8 </div>
7 </template> 9 </template>