diff --git a/.gitignore b/.gitignore index 5d1bfef3..a541c265 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *.bak .DS_Store node_modules/ +node_modules2/ .project .settings npm-debug.log diff --git a/examples/routers/date.vue b/examples/routers/date.vue index 4d1751c1..54f1db83 100644 --- a/examples/routers/date.vue +++ b/examples/routers/date.vue @@ -1,7 +1,7 @@ diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index 25c411ec..6ce22bd5 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -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;