iview/test/routers/rate.vue

22 lines
502 B
Vue
Raw Normal View History

<template>
<div style="margin: 100px">
2017-01-17 15:30:10 +08:00
{{value}}
<br><br><br>
2017-01-17 15:49:34 +08:00
<Rate :value.sync="value" :count="5" allow-half show-text></Rate>
2017-01-17 15:30:10 +08:00
<br><br><br>
<i-button @click="value++">add</i-button>
<i-button @click="value--">remove</i-button>
</div>
</template>
<script>
export default {
props: {},
data () {
2017-01-17 15:30:10 +08:00
return {
value: 3.8
};
},
computed: {},
methods: {}
};
</script>