Commit 9561f9b3 authored by qingwei.li's avatar qingwei.li

TimePicker: fix incorrectly hide panel,fixed #210

parent fc4262d3
......@@ -5,6 +5,7 @@
*2016-XX-XX*
- 修复 Tabs 切换后 Tab-panel 被销毁的问题
- 修复 TimePicker 错误的隐藏面板
### 1.0.0-rc.5
......
......@@ -28,7 +28,7 @@
</transition>
</template>
<script type="text/ecmascript-6">
<script type="text/babel">
import { limitRange } from '../util';
import Vue from 'vue';
......
......@@ -211,7 +211,7 @@ export default {
watch: {
pickerVisible(val) {
val === true ? this.showPicker() : this.hidePicker();
val ? this.showPicker() : this.hidePicker();
},
value(val) {
this.dispatch('form-item', 'el.form.change');
......@@ -289,8 +289,8 @@ export default {
handleFocus() {
const type = this.type;
if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1) {
this.pickerVisible = !this.pickerVisible;
if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
this.pickerVisible = true;
}
this.$emit('focus', this);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment