chunk-23aff0af.3c262233.js
10.1 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23aff0af"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"14c3":function(t,e,n){var i=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var l=n.call(t,e);if("object"!==typeof l)throw TypeError("RegExp exec method returned something other than an Object or null");return l}if("RegExp"!==i(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"283a":function(t,e,n){"use strict";n("3392")},"311f":function(t,e,n){},3392:function(t,e,n){},"54a1":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"module-box single-img"},[n("div",{staticClass:"single-img__box"},[n("el-upload",{attrs:{drag:"",action:t.fileUploadApi.fileUpload,"on-success":t.handleAvatarSuccess,"before-upload":t.beforeAvatarUpload,"show-file-list":!1}},[t.imageUrl?n("img",{staticClass:"single-img__img",attrs:{src:t.imageUrl}}):n("i",{staticClass:"el-icon-upload"},[n("div",{staticClass:"el-upload__text"},[n("em",[t._v("选择图片")])]),n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v(t._s(t.tip))])])]),t.imageUrl?n("div",{staticClass:"overlay"},[n("i",{staticClass:"iconfont icon-chakan",on:{click:t.showImage}}),n("i",{staticClass:"iconfont icon-shanchu1",on:{click:t.delImage}})]):t._e()],1),n("el-dialog",{attrs:{title:"图片展示",visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},o=[],l=n("7a32"),a=n("f270"),r={name:"tool-single-img",mixins:[a["b"]],data:function(){return{dialogVisible:!1,dialogImageUrl:"",fileUploadApi:{fileUpload:""}}},props:{imageUrl:{type:String,default:""},tip:{type:String,default:"建议尺寸: 1080*900px, 高度自适应"}},mounted:function(){console.log(l["a"]),this.fileUploadApi=l["a"]},methods:{handleAvatarSuccess:function(t,e){this.$emit("update:imageUrl",t.data.url)},beforeAvatarUpload:function(t){var e=t.size/1024/1024<1;return e||this.$message.error("上传图片大小不能超过 1MB!"),e},showImage:function(){this.dialogImageUrl=this.imageUrl,this.dialogVisible=!0},delImage:function(){this.$emit("update:imageUrl","")}}},c=r,s=(n("7c05"),n("2877")),u=Object(s["a"])(c,i,o,!1,null,"7d74df17",null);e["a"]=u.exports},"7c05":function(t,e,n){"use strict";n("b57d")},"841c":function(t,e,n){"use strict";var i=n("d784"),o=n("825a"),l=n("1d80"),a=n("129f"),r=n("14c3");i("search",1,(function(t,e,n){return[function(e){var n=l(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,n):new RegExp(e)[t](String(n))},function(t){var i=n(e,t,this);if(i.done)return i.value;var l=o(t),c=String(this),s=l.lastIndex;a(s,0)||(l.lastIndex=0);var u=r(l,c);return a(l.lastIndex,s)||(l.lastIndex=s),null===u?-1:u.index}]}))},"8ebf":function(t,e,n){"use strict";n("311f")},9263:function(t,e,n){"use strict";var i=n("ad6d"),o=n("9f7f"),l=RegExp.prototype.exec,a=String.prototype.replace,r=l,c=function(){var t=/a/,e=/b*/g;return l.call(t,"a"),l.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),s=o.UNSUPPORTED_Y||o.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=c||u||s;d&&(r=function(t){var e,n,o,r,d=this,p=s&&d.sticky,f=i.call(d),v=d.source,m=0,g=t;return p&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),g=String(t).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==t[d.lastIndex-1])&&(v="(?: "+v+")",g=" "+g,m++),n=new RegExp("^(?:"+v+")",f)),u&&(n=new RegExp("^"+v+"$(?!\\s)",f)),c&&(e=d.lastIndex),o=l.call(p?n:d,g),p?o?(o.input=o.input.slice(m),o[0]=o[0].slice(m),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:c&&o&&(d.lastIndex=d.global?o.index+o[0].length:e),u&&o&&o.length>1&&a.call(o[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(o[r]=void 0)})),o}),t.exports=r},"99af":function(t,e,n){"use strict";var i=n("23e7"),o=n("d039"),l=n("e8b5"),a=n("861d"),r=n("7b0b"),c=n("50c4"),s=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),f=n("2d00"),v=p("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",b=f>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),x=d("concat"),h=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:l(t)},C=!b||!x;i({target:"Array",proto:!0,forced:C},{concat:function(t){var e,n,i,o,l,a=r(this),d=u(a,0),p=0;for(e=-1,i=arguments.length;e<i;e++)if(l=-1===e?a:arguments[e],h(l)){if(o=c(l.length),p+o>m)throw TypeError(g);for(n=0;n<o;n++,p++)n in l&&s(d,p,l[n])}else{if(p>=m)throw TypeError(g);s(d,p++,l)}return d.length=p,d}})},"9f7f":function(t,e,n){"use strict";var i=n("d039");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=i((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=i((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},ac1f:function(t,e,n){"use strict";var i=n("23e7"),o=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},b57d:function(t,e,n){},d784:function(t,e,n){"use strict";n("ac1f");var i=n("6eeb"),o=n("d039"),l=n("b622"),a=n("9263"),r=n("9112"),c=l("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=l("replace"),p=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,d){var v=l(t),m=!o((function(){var e={};return e[v]=function(){return 7},7!=""[t](e)})),g=m&&!o((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[v]=/./[v]),n.exec=function(){return e=!0,null},n[v](""),!e}));if(!m||!g||"replace"===t&&(!s||!u||p)||"split"===t&&!f){var b=/./[v],x=n(v,""[t],(function(t,e,n,i,o){return e.exec===a?m&&!o?{done:!0,value:b.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),h=x[0],C=x[1];i(String.prototype,t,h),i(RegExp.prototype,v,2==e?function(t,e){return C.call(t,this,e)}:function(t){return C.call(t,this)})}d&&r(RegExp.prototype[v],"sham",!0)}},f6af:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"module-box link-select"},[n("div",{staticClass:"module-box__title"},[n("label",{staticClass:"module-box__label"},[t._v(t._s(t.title))])]),n("el-select",{staticClass:"link-select__select",attrs:{"popper-append-to-body":!1,placeholder:"请选择跳转到的页面"},on:{change:t.selectChanged},model:{value:t.selsectValue,callback:function(e){t.selsectValue=e},expression:"selsectValue"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)},o=[],l={name:"tool-select",data:function(){return{selsectValue:""}},props:{title:{type:String,default:"标题"},linkValue:{type:String,default:""},options:{type:Array,default:function(){return[]}}},mounted:function(){this.selsectValue=this.linkValue},methods:{selectChanged:function(t){this.$emit("update:linkValue",t)}}},a=l,r=(n("8ebf"),n("2877")),c=Object(r["a"])(a,i,o,!1,null,"50d1d6a7",null);e["a"]=c.exports},fb97:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"imageTextTool"},[n("h3",{staticClass:"toolTit"},[t._v("图文")]),n("div",{staticClass:"toolBox"},[n("tool-single-img",{attrs:{imageUrl:t.activeComponent.componentContent.imageUrl,tip:"建议尺寸: 500*300px, 高度自适应"},on:{"update:imageUrl":function(e){return t.$set(t.activeComponent.componentContent,"imageUrl",e)},"update:image-url":function(e){return t.$set(t.activeComponent.componentContent,"imageUrl",e)}}}),n("tool-select-link",{attrs:{linkObj:t.activeComponent.componentContent.linkObj,title:"图片链接"},on:{"update:linkObj":function(e){return t.$set(t.activeComponent.componentContent,"linkObj",e)},"update:link-obj":function(e){return t.$set(t.activeComponent.componentContent,"linkObj",e)}}}),n("tool-select",{attrs:{linkValue:t.activeComponent.componentContent.positionValue,title:"PC图片位置",options:t.positionOpt},on:{"update:linkValue":function(e){return t.$set(t.activeComponent.componentContent,"positionValue",e)},"update:link-value":function(e){return t.$set(t.activeComponent.componentContent,"positionValue",e)}}}),n("div",{staticClass:"textTit"},[t._v("文本设置")]),n("div",{staticClass:"itemBox"},[n("label",[t._v("标题")]),n("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.activeComponent.componentContent.title,callback:function(e){t.$set(t.activeComponent.componentContent,"title",e)},expression:"activeComponent.componentContent.title"}})],1),n("div",{staticClass:"itemBox"},[n("label",[t._v("正文")]),n("quill-editor",{ref:"myQuillEditor",attrs:{options:t.editorOption},on:{blur:function(e){return t.onEditorBlur(e)},focus:function(e){return t.onEditorFocus(e)},change:function(e){return t.onEditorChange(e)}},model:{value:t.activeComponent.componentContent.content,callback:function(e){t.$set(t.activeComponent.componentContent,"content",e)},expression:"activeComponent.componentContent.content"}})],1)],1),n("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},o=[],l=n("953d"),a=n("629e"),r=n("54a1"),c=n("f6af"),s=n("347c"),u={name:"videoTool",mixins:[a["a"]],components:{ToolSelectLink:s["a"],ToolSelect:c["a"],ToolSingleImg:r["a"],quillEditor:l["quillEditor"]},data:function(){return{dialogVisible:!1,dialogImageUrl:"",linkOptions:[{value:"/index",label:"首页"},{value:"/list",label:"列表页"},{value:"/detail",label:"详情页"},{value:"/about",label:"关于我们"}],positionOpt:[{value:"left",label:"左图右文"},{value:"right",label:"右图左文"},{value:"top",label:"上图下文"},{value:"bottom",label:"下图上文"}],editorOption:{placeholder:"请输入",modules:{toolbar:[["bold","italic","link"]]}}}}},d=u,p=(n("283a"),n("2877")),f=Object(p["a"])(d,i,o,!1,null,"fbc8f260",null);e["default"]=f.exports}}]);