UNPKG

kui-vue

Version:

A high quality UI Toolkit built on Vue.js 2.0

42 lines (41 loc) 781 B
<cn> #### 可控 动态控制 </cn> ```vue <template> <div class="demo-dot"> <Badge :dot="show"> <div class="box"></div> </Badge> <Badge :dot="show"> <Icon :type="NotificationsOutline" /> </Badge> <Badge :dot="show"> <a href="#">我是一个连接</a> </Badge> <Switch @change="show=!show" /> <br/> <br/> <Badge :count="count" :max-count="20"> <div class="box"></div> </Badge> <ButtonGroup circle> <Button @click="count--">-</Button> <Button @click="count++">+</Button> </ButtonGroup> </div> </template> <script> import { NotificationsOutline } from 'kui-icons' export default{ data() { return { NotificationsOutline, show:true, count:15 } } } </script> ```