el-select male and female gender binding

<el-form-item label="性别">

                <el-select placeholder="" v-model="form.sex">

                    <el-option label="男" :value="1"></el-option>

                    <el-option label="女" :value="0"></el-option>

                </el-select>

            </el-form-item>

Guess you like

Origin blog.csdn.net/wwf1225/article/details/114869075