共计 246 个字符,预计需要花费 1 分钟才能阅读完成。
1、vue 下拉框介绍
注:v-model
的值为当前被选中的 el-option
的 value 属性值
其他详情可参考:Element – The world’s most popular Vue UI framework
2、默认值显示
对 v -model 属性对应字段直接赋值即可。
3、多值传参
实现思路如下:
通过 change 实现将相关变量传到对应函数中,然后在函数里完成数据处理与待传参变量赋值。例如
@change="receivedProps($event,varibale)"
原文地址: vue 下拉框默认值显示与多值传参
正文完