fix bug of AutoComplete that can not blur when click outside

This commit is contained in:
梁灏 2019-09-05 18:30:00 +08:00
parent 139c4b518f
commit 9fa451d7c6
5 changed files with 43 additions and 6 deletions

View file

@ -18,6 +18,9 @@
</div>
<a href="https://www.google.com/search?q=iView" target="_blank" class="demo-auto-complete-more">查看所有结果</a>
</AutoComplete>
<!-- <Select v-model="model1" style="width:200px">-->
<!-- <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>-->
<!-- </Select>-->
</div>
</template>
<script>
@ -66,7 +69,34 @@
}
]
}
]
],
cityList: [
{
value: 'New York',
label: 'New York'
},
{
value: 'London',
label: 'London'
},
{
value: 'Sydney',
label: 'Sydney'
},
{
value: 'Ottawa',
label: 'Ottawa'
},
{
value: 'Paris',
label: 'Paris'
},
{
value: 'Canberra',
label: 'Canberra'
}
],
model1: ''
}
}
}