- a-select标签
<a-form-item
:labelCol="labelCol" :wrapperCol="wrapperCol" label="部门">
<a-select placeholder="请选择" v-decorator="['departid',{rules: [{ required: true, message: 'Please input your data!' }]}]" >
<a-select-option v-for="d in departList" :key="d.departid" :value="d.departid">{{ d.departname }}</a-select-option>
</a-select>
</a-form-item>
- 整体思路和v-for操作原生的select标签非常类似
- 注意有key和value的值,两个都要有
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。