Commit f1f0206c70d1a16ee4f7abdd786162cc10bec454
1 parent
9c83f0e5
fixed Date bug
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
examples/routers/date.vue
| 1 | <template> | 1 | <template> |
| 2 | - <Date-picker type="daterange" placeholder="选择日期" style="width: 200px"></Date-picker> | 2 | + <Date-picker type="daterange" placeholder="选择日期" disabled style="width: 200px"></Date-picker> |
| 3 | </template> | 3 | </template> |
| 4 | <script> | 4 | <script> |
| 5 | export default { | 5 | export default { |
src/components/date-picker/picker.vue
| @@ -362,7 +362,7 @@ | @@ -362,7 +362,7 @@ | ||
| 362 | handleIconClick () { | 362 | handleIconClick () { |
| 363 | if (this.showClose) { | 363 | if (this.showClose) { |
| 364 | this.handleClear(); | 364 | this.handleClear(); |
| 365 | - } else { | 365 | + } else if (!this.disabled) { |
| 366 | this.handleFocus(); | 366 | this.handleFocus(); |
| 367 | } | 367 | } |
| 368 | }, | 368 | }, |