This commit is contained in:
梁灏 2017-05-15 09:16:30 +08:00
parent 78d8ea4d4a
commit c70ff0f294
2 changed files with 11 additions and 7 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" multiple filterable remote :remote-method="remoteMethod" :loading="loading" clearable>
<i-select v-model="model" @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,7 @@
export default {
data () {
return {
model: [],
model: '',
options: [
],
@ -93,7 +93,10 @@
},
mounted () {
this.list = this.states.map(item => {
return { value: item, label: item };
return {
value: item,
label: 'L ' + item
};
});
}
}