Commit f1f0206c70d1a16ee4f7abdd786162cc10bec454

Authored by Aresn
1 parent 9c83f0e5

fixed Date bug

examples/routers/date.vue
1 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 3 </template>
4 4 <script>
5 5 export default {
... ...
src/components/date-picker/picker.vue
... ... @@ -362,7 +362,7 @@
362 362 handleIconClick () {
363 363 if (this.showClose) {
364 364 this.handleClear();
365   - } else {
  365 + } else if (!this.disabled) {
366 366 this.handleFocus();
367 367 }
368 368 },
... ...