fixed #528
This commit is contained in:
parent
f7674b5b74
commit
7b7178f165
3 changed files with 7 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,6 +7,7 @@
|
|||
*.bak
|
||||
.DS_Store
|
||||
node_modules/
|
||||
node_modules2/
|
||||
.project
|
||||
.settings
|
||||
npm-debug.log
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
{{ val1 }}
|
||||
<Date-picker v-model="val1" type="daterange" placeholder="选择日期" style="width: 200px"></Date-picker>
|
||||
<Date-picker v-model="val1" type="date" placeholder="选择日期" style="width: 200px"></Date-picker>
|
||||
<div @click="val1 = '2017-03-02'">change</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -359,8 +359,11 @@
|
|||
this.showClose = false;
|
||||
},
|
||||
handleIconClick () {
|
||||
if (!this.showClose) return;
|
||||
this.handleClear();
|
||||
if (this.showClose) {
|
||||
this.handleClear();
|
||||
} else {
|
||||
this.handleFocus();
|
||||
}
|
||||
},
|
||||
handleClear () {
|
||||
this.visible = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue