This commit is contained in:
梁灏 2017-05-18 16:01:53 +08:00
parent 3842df9abe
commit ddc35c9aaa
2 changed files with 30 additions and 3 deletions

View file

@ -2,7 +2,7 @@
<Row>
<i-col span="4">{{model}}</i-col>
<i-col span="8">
<i-select v-model="model" @input="handleInput" filterable remote :remote-method="remoteMethod" :loading="loading" clearable>
<i-select v-model="model" :label="['L Alabama', 'L Hawaii']" multiple @input="handleInput" filterable remote :remote-method="remoteMethod" :loading="loading" clearable>
<i-option v-for="option in options" :value="option.value" :key="new Date()">{{option.label}}</i-option>
</i-select>
</i-col>
@ -13,7 +13,8 @@
export default {
data () {
return {
model: '',
// model: 'Alabama',
model: ['Alabama', 'Hawaii'],
options: [
],
@ -74,6 +75,7 @@
]
},
remoteMethod (query) {
console.log(13)
if (query !== '') {
this.loading = true;
setTimeout(() => {