iview multi-select drop-down list of options echo problem

 

For example, a simple multiple choice Select,

<Select  v-model="model" filterable  clearable transfer multiple >
<Option v-for="form in props.options" :value="form.value" :key="form.value" >{{form.value}}</Option>
</Select>

如props.options的值为:
[
                    {
                        "name":"police_type",
                        "value":"其他"
                    },
                    {
                        "name":"police_type",
                        "value":"户政"
                    },
                    {
                        "name":"police_type",
                        "value":"法制"



the initialization pass past is an array type.

this.model = [ 'other', 'census' ]If you want the current value of selected Select "Other" and "family affairs", this time, we need to set binding model Select value,                ]                    }

Guess you like

Origin www.cnblogs.com/chenmz1995/p/11492655.html