update Select

This commit is contained in:
梁灏 2017-05-08 10:01:07 +08:00
parent 01b54e3021
commit ec98f3c3ae
2 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,6 @@
<template>
<div style="width: 200px;margin: 100px;">
{{ model }}
<i-select v-model="model" filterable remote :remote-method="remoteMethod" :loading="loading" clearable style="width:200px">
<i-option v-for="option in options" :value="option.value" :key="option">{{option.label}}</i-option>
</i-select>
@ -80,7 +81,7 @@
return item.label.toLowerCase()
.indexOf(query.toLowerCase()) > -1;
});
}, 200);
}, 500);
} else {
this.options = [];
}