/*!
 *  build: vue-admin-better 
 *  vue-admin-beautiful.com 
 *  https://gitee.com/chu1204505056/vue-admin-better 
 *  time: 2022-2-26 00:26:40
 */
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ce14f8ea"],{5401:function(e,t,l){"use strict";l("867a")},"867a":function(e,t,l){},b8b0:function(e,t,l){"use strict";l.r(t);var o=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"editor-container"},[l("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[l("el-form-item",{attrs:{label:"标题",prop:"title"}},[l("el-input",{attrs:{maxlength:"20"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),l("el-form-item",{attrs:{label:"所属模块",prop:"module"}},[l("el-select",{model:{value:e.form.module,callback:function(t){e.$set(e.form,"module",t)},expression:"form.module"}},[l("el-option",{attrs:{label:"新闻动态",value:"1"}}),l("el-option",{attrs:{label:"实时热点",value:"2"}})],1)],1),l("el-form-item",{staticClass:"vab-quill-content",attrs:{label:"内容",prop:"content"}},[l("vab-quill",{attrs:{"min-height":400,options:e.options},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1),l("el-form-item",[l("el-button",{attrs:{type:"primary"},on:{click:e.handleSee}},[e._v("预览效果")]),l("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")])],1)],1),l("el-dialog",{attrs:{title:"预览效果",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[l("div",{staticStyle:{"min-height":"60vh"}},[l("h1",{staticClass:"news-title"},[e._v(e._s(e.form.title))]),l("div",{staticClass:"news-content",domProps:{innerHTML:e._s(e.form.content)}})])])],1)},i=[],r=l("f926"),n={name:"Editor",components:{vabQuill:r["default"]},data:function(){return{options:{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],[{header:[1,2,3,4,5,6,!1]}],[{size:["small",!1,"large","huge"]}],[{color:[]},{background:[]}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],[{direction:"rtl"}],[{font:[]}],["clean"],["link","image"]]},placeholder:"内容...",readOnly:!1},borderColor:"#dcdfe6",dialogTableVisible:!1,form:{title:"",module:"",content:""},rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],module:[{required:!0,message:"请选择模块",trigger:"change"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}]}}},methods:{handleSee:function(){var e=this;this.$refs["form"].validate((function(t){if(e.$refs.form.validateField("content",(function(e){})),!t)return!1;e.dialogTableVisible=!0}))},handleSave:function(){var e=this;this.$refs["form"].validate((function(t){if(e.$refs.form.validateField("content",(function(t){e.borderColor="#dcdfe6",t&&(e.borderColor="#F56C6C")})),!t)return!1;e.$baseMessage("submit!","success")}))}}},a=n,s=(l("5401"),l("cba8")),c=Object(s["a"])(a,o,i,!1,null,"444de986",null);t["default"]=c.exports},f926:function(e,t,l){"use strict";l.r(t);l("bf28");var o=l("7f29"),i=l.n(o);t["default"]=i.a}}]);