Support rate
This commit is contained in:
parent
49dd45f46f
commit
6aa7272260
5 changed files with 62 additions and 21 deletions
|
@ -1,13 +1,19 @@
|
|||
<template>
|
||||
<Row>
|
||||
<i-col span="12">
|
||||
<Rate show-text :value.sync="valueText"></Rate>
|
||||
<Rate show-text :value="valueText"></Rate>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<Rate show-text :value.sync="valueCustomText">
|
||||
<Rate show-text v-model="valueCustomText" >
|
||||
<span style="color: #f5a623">{{ valueCustomText }}</span>
|
||||
</Rate>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<Rate disabled :value="valueDisabled"></Rate>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<Rate allow-half :value="valueHalf" v-on:on-change="changeValue"></Rate>
|
||||
</i-col>
|
||||
</Row>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -16,10 +22,16 @@
|
|||
data () {
|
||||
return {
|
||||
valueText: 3,
|
||||
valueCustomText: 3.8
|
||||
valueCustomText: 3.8,
|
||||
valueDisabled: 2,
|
||||
valueHalf: 2.5
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
methods: {
|
||||
changeValue (val) {
|
||||
console.log(val);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue