fixed #1761
This commit is contained in:
parent
e493492e50
commit
77e4c204a6
3 changed files with 8 additions and 8 deletions
|
@ -2,11 +2,11 @@
|
||||||
<div>
|
<div>
|
||||||
<Rate v-model="value"></Rate>
|
<Rate v-model="value"></Rate>
|
||||||
<Rate allow-half v-model="valueHalf"></Rate>
|
<Rate allow-half v-model="valueHalf"></Rate>
|
||||||
<Rate show-text v-model="valueText"></Rate>
|
<!--<Rate show-text v-model="valueText"></Rate>-->
|
||||||
<Rate show-text allow-half v-model="valueCustomText">
|
<!--<Rate show-text allow-half v-model="valueCustomText">-->
|
||||||
<span style="color: #f5a623">{{ valueCustomText }}</span>
|
<!--<span style="color: #f5a623">{{ valueCustomText }}</span>-->
|
||||||
</Rate>
|
<!--</Rate>-->
|
||||||
<Rate disabled allow-half v-model="valueDisabled"></Rate>
|
<!--<Rate disabled allow-half v-model="valueDisabled"></Rate>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
value: 0,
|
value: 0,
|
||||||
valueHalf: 2.5,
|
valueHalf: 2.5,
|
||||||
valueText: 3,
|
valueText: 3,
|
||||||
valueCustomText: 3.8,
|
valueCustomText: 4.0,
|
||||||
valueDisabled: 2.4
|
valueDisabled: 2.4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iview",
|
"name": "iview",
|
||||||
"version": "2.3.0-beta.1",
|
"version": "2.3.0-beta.3",
|
||||||
"title": "iView",
|
"title": "iView",
|
||||||
"description": "A high quality UI components Library with Vue.js",
|
"description": "A high quality UI components Library with Vue.js",
|
||||||
"homepage": "http://www.iviewui.com",
|
"homepage": "http://www.iviewui.com",
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
this.hoverIndex = -1;
|
this.hoverIndex = -1;
|
||||||
},
|
},
|
||||||
setHalf (val) {
|
setHalf (val) {
|
||||||
this.isHalf = val.toString().indexOf('.') >= 0;
|
this.isHalf = this.allowHalf && val.toString().indexOf('.') >= 0;
|
||||||
},
|
},
|
||||||
handleClick (value) {
|
handleClick (value) {
|
||||||
if (this.disabled) return;
|
if (this.disabled) return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue