publish 0.9.11-rc-1

publish 0.9.11-rc-1
This commit is contained in:
梁灏 2016-12-20 14:23:12 +08:00
parent b9041a0df9
commit e9dd4dab01
3 changed files with 36 additions and 23 deletions

View file

@ -1,6 +1,6 @@
{
"name": "iview",
"version": "0.9.10",
"version": "0.9.11-rc-1",
"title": "iView",
"description": "A high quality UI components Library with Vue.js",
"homepage": "http://www.iviewui.com",

View file

@ -2,8 +2,9 @@
<div
:class="[prefixCls]"
v-clickoutside="handleClose">
<div v-el:reference>
<slot>
<i-input
v-el:reference
:class="[prefixCls + '-editor']"
:readonly="!editable || readonly"
:disabled="disabled"
@ -12,12 +13,13 @@
:value="visualValue"
@on-change="handleInputChange"
@on-focus="handleFocus"
@on-blur="handleBlur"
@on-click="handleIconClick"
@mouseenter="handleInputMouseenter"
@mouseleave="handleInputMouseleave"
:icon="iconType"></i-input>
<Drop v-show="visible" :placement="placement" transition="slide-up" v-ref:drop>
</slot>
</div>
<Drop v-show="opened" :placement="placement" transition="slide-up" v-ref:drop>
<div v-el:picker></div>
</Drop>
</div>
@ -166,6 +168,10 @@
type: Boolean,
default: false
},
open: {
type: Boolean,
default: null
},
size: {
validator (value) {
return oneOf(value, ['small', 'large']);
@ -195,6 +201,9 @@
}
},
computed: {
opened () {
return this.open === null ? this.visible : this.open;
},
iconType () {
return this.showClose ? 'ios-close' : 'ios-calendar-outline';
},
@ -247,9 +256,6 @@
handleFocus () {
if (this.readonly) return;
this.visible = true;
},
handleBlur () {
},
handleInputChange (event) {
const oldValue = this.visualValue;
@ -325,7 +331,6 @@
this.visible = false;
this.internalValue = '';
this.value = '';
this.emitChange(this.value);
},
showPicker () {
if (!this.picker) {
@ -353,7 +358,7 @@
this.handleClear();
});
this.picker.$on('on-pick-success', () => {
this.emitChange(this.value);
// this.emitChange(this.value);
this.visible = false;
});
@ -406,6 +411,11 @@
if (this.picker) {
this.picker.$destroy();
}
},
ready () {
if (this.open !== null) {
this.visible = this.open;
}
}
}
</script>

View file

@ -14,7 +14,10 @@
@on-change="change"
:confirm="true"
:options="options"
@on-open-change="change2"></date-picker>
open
@on-open-change="change2">
<p>123</p>
</date-picker>
</i-col>
<i-col span="8">
<date-picker