![cover](https://img-blog.csdnimg.cn/3a9b0dc368464a97b8c4031b6478d80a.png)
uniapp实现带输入框的弹出框
uniapp实现带输入框的弹出框
·
项目要求实现这样的弹窗
代码:
<modal v-if="areaShow" title="新增空间" confirm-text="保存" cancel-text="取消" @cancel="cancelAdd" @confirm="confirmAdd">
<input type="text" v-model="areaTxt" placeholder="限填5个字" class="intxt" maxlength="5" />
</modal>
export default{
data(){
return{
areaShow:false,
areaTxt:'',
}
},
methods: {
cancelAdd(){
this.areaShow = false
},
confirmAdd(){
this.areaShow = false
},
}
}
更多推荐
所有评论(0)