<el-option v-for="item in optionss":key="item.value":label="item.label":value="item.value"> </el-option> </el-select> label给用户看的,当点击下拉菜单时,会出来选项,用户看到的选项就是这个 value点击某个label(option)之后,将对应的值给v-model绑定的值model key相当于身份令牌,唯一的,防止出...
1.Element UI下拉列表el-option中的key、value、label含义 <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="用户姓名" prop="userId"> <el-select v-model='queryParams.userId' style="" class="selectClass"> <el-o...
key="item.value" :label="item.label" :value="item.value" > </el-option> </el-select> </el-form-item> <el-form-item label="性别"> <el-radio v-model="userInfo.gender" :label="0">保密</el-radio> <el-radio v-model="userInfo.gender" :label="1">男</el-radio> <el-radio v...
-- <el-input v-model="userInfo.city"></el-input> --><el-selectv-model="userInfo.city"placeholder="请选择"><el-optionv-for="item in options":key="item.value":label="item.label":value="item.value"></el-option></el-select></el-form-item><el-form-itemlabel="性别"><el-radiov...