update Rate

update Rate
This commit is contained in:
梁灏 2017-01-17 15:30:10 +08:00
parent d94d98c464
commit 962c40bd3d
2 changed files with 58 additions and 33 deletions

View file

@ -1,13 +1,20 @@
<template>
<div style="margin: 100px">
<Rate></Rate>
{{value}}
<br><br><br>
<Rate :value.sync="value" :count="5" allow-half></Rate>
<br><br><br>
<i-button @click="value++">add</i-button>
<i-button @click="value--">remove</i-button>
</div>
</template>
<script>
export default {
props: {},
data () {
return {};
return {
value: 3.8
};
},
computed: {},
methods: {}