记录一下,原本以为不可以这样绑的。这样就可以空查了。
<el-form-item label="类型" prop="type"> <el-radio label="" v-model='query.type' @change="handleQuery">全部</el-radio> <el-radio label="1" v-model='query.type' @change="handleQuery">类型1</el-radio> <el-radio label="2" v-model='query.type' @change="handleQuery">类型2</el-radio> <el-radio label="3" v-model='query.type' @change="handleQuery">类型3</el-radio> <el-radio label="4" v-model='query.type' @change="handleQuery">类型4</el-radio> </el-form-item>
标签:el,Vue,绑定,label,radio,类型 From: https://www.cnblogs.com/ximu1009/p/17898742.html