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
|
*.bak
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules/
|
node_modules/
|
||||||
|
node_modules2/
|
||||||
.project
|
.project
|
||||||
.settings
|
.settings
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
{{ val1 }}
|
{{ 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 @click="val1 = '2017-03-02'">change</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -359,8 +359,11 @@
|
||||||
this.showClose = false;
|
this.showClose = false;
|
||||||
},
|
},
|
||||||
handleIconClick () {
|
handleIconClick () {
|
||||||
if (!this.showClose) return;
|
if (this.showClose) {
|
||||||
this.handleClear();
|
this.handleClear();
|
||||||
|
} else {
|
||||||
|
this.handleFocus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleClear () {
|
handleClear () {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue