element 下拉框如何套输入框?
作者:互联网
代码如下:
<el-form-item>
<el-input v-model="formData.number" placeholder="请输入账号" clearable>
<el-select v-model="formData.type" slot="prepend" placeholder="请选择类型">
<el-option label="微信" value="1"></el-option>
<el-option label="支付宝" value="2"></el-option>
<el-option label="银行卡" value="3"></el-option>
</el-select>
</el-input>
</el-form-item>
//formData是入参对象,type是下拉框入参,number是账号输入框入参
标签:formData,number,入参,输入框,element,下拉框 来源: https://blog.csdn.net/qq_43069664/article/details/122342623