release 0.9.16

release 0.9.16
This commit is contained in:
梁灏 2017-01-17 16:58:03 +08:00
parent e5ac79258a
commit 6bfdf8f892
3 changed files with 14 additions and 11 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "iview", "name": "iview",
"version": "0.9.15", "version": "0.9.16",
"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",

View file

@ -7,7 +7,7 @@
@click="handleClick(item)"> @click="handleClick(item)">
<span :class="[prefixCls + '-star-content']" type="half"></span> <span :class="[prefixCls + '-star-content']" type="half"></span>
</div> </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> <slot>{{ value }} <template v-if="value <= 1">{{ t('i.rate.star') }}</template><template v-else>{{ t('i.rate.stars') }}</template></slot>
</div> </div>
</div> </div>

View file

@ -1,19 +1,22 @@
<template> <template>
<div style="margin: 100px"> <Row>
{{value}} <i-col span="12">
<br><br><br> <Rate show-text :value.sync="valueText"></Rate>
<Rate :value.sync="value" :count="5" allow-half show-text></Rate> </i-col>
<br><br><br> <i-col span="12">
<i-button @click="value++">add</i-button> <Rate show-text :value.sync="valueCustomText">
<i-button @click="value--">remove</i-button> <span style="color: #f5a623">{{ valueCustomText }}</span>
</div> </Rate>
</i-col>
</Row>
</template> </template>
<script> <script>
export default { export default {
props: {}, props: {},
data () { data () {
return { return {
value: 3.8 valueText: 3,
valueCustomText: 3.8
}; };
}, },
computed: {}, computed: {},