release 0.9.16
release 0.9.16
This commit is contained in:
parent
e5ac79258a
commit
6bfdf8f892
3 changed files with 14 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iview",
|
||||
"version": "0.9.15",
|
||||
"version": "0.9.16",
|
||||
"title": "iView",
|
||||
"description": "A high quality UI components Library with Vue.js",
|
||||
"homepage": "http://www.iviewui.com",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
@click="handleClick(item)">
|
||||
<span :class="[prefixCls + '-star-content']" type="half"></span>
|
||||
</div>
|
||||
<div :class="[prefixCls + '-text']" v-if="showText">
|
||||
<div :class="[prefixCls + '-text']" v-if="showText" v-show="value > 0">
|
||||
<slot>{{ value }} <template v-if="value <= 1">{{ t('i.rate.star') }}</template><template v-else>{{ t('i.rate.stars') }}</template></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
<template>
|
||||
<div style="margin: 100px">
|
||||
{{value}}
|
||||
<br><br><br>
|
||||
<Rate :value.sync="value" :count="5" allow-half show-text></Rate>
|
||||
<br><br><br>
|
||||
<i-button @click="value++">add</i-button>
|
||||
<i-button @click="value--">remove</i-button>
|
||||
</div>
|
||||
<Row>
|
||||
<i-col span="12">
|
||||
<Rate show-text :value.sync="valueText"></Rate>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<Rate show-text :value.sync="valueCustomText">
|
||||
<span style="color: #f5a623">{{ valueCustomText }}</span>
|
||||
</Rate>
|
||||
</i-col>
|
||||
</Row>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {
|
||||
value: 3.8
|
||||
valueText: 3,
|
||||
valueCustomText: 3.8
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
|
|
Loading…
Add table
Reference in a new issue