fix bug of AutoComplete that can not blur when click outside
This commit is contained in:
parent
139c4b518f
commit
9fa451d7c6
5 changed files with 43 additions and 6 deletions
|
@ -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: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue