dialog弹出对话框
vue做的富文本框
<el-dialog title="文本框"
:visible.sync="textboxs"
width="70%"
:before-close="handleClose"
lock-scroll>
<avue-ueditor v-model="text"
:options="options"
></avue-ueditor>
<span class="avue-ueditor__code">{{text}}</span>
<div class="pull-auto" style="text-align: center;margin-top:20px;">
<el-button size="small" type="primary" @click="textsubmitUpload">发布</el-button>
<el-button size="small" @click="textClose">取 消</el-button>
</div>
</el-dialog>
效果图:
done() 发布以后自动关闭弹窗
textsubmitUpload(){
// this.textrow
putObj(this.textrow).then(data => {
this.$message.success('发布成功')
done() //发布以后自动关闭弹窗
}).catch(() => {
loading();
});
},
dialog基本用法及其属性:新人成长之入门Vue.js弹窗Dialog介绍(二) - 唐大博 - 博客园 (cnblogs.com)