(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d0f87"],{"69f4":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._l(t.value,(function(e,n){return i("div",{key:n,staticStyle:{"margin-bottom":"10px",display:"flex"}},t._l(e,(function(l,o){return i("div",{key:o,staticStyle:{"margin-bottom":"10px","margin-right":"10px",display:"flex"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"按钮"},model:{value:l.text,callback:function(e){t.$set(l,"text",e)},expression:"tow.text"}}),i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"链接"},model:{value:l.url,callback:function(e){t.$set(l,"url",e)},expression:"tow.url"}}),i("i",{staticClass:"el-icon-remove",staticStyle:{"font-size":"28px",cursor:"pointer","margin-top":"5px"},on:{click:function(i){return t.changeEmit(e,o)}}}),o==e.length-1&&t.value[n].length<=2?i("i",{staticClass:"el-icon-circle-plus",staticStyle:{"font-size":"28px",cursor:"pointer","margin-top":"5px"},on:{click:function(e){return t.add_line(n)}}}):t._e()],1)})),0)})),i("el-button",{on:{click:function(e){return t.value.push([{text:"",url:""}])}}},[t._v("添加 ")]),i("el-button",{on:{click:function(e){t.dialogVisible=!0}}},[t._v(" 预览")]),i("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,"append-to-body":""},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("span",t._l(t.value,(function(e,n){return i("div",{key:n,staticStyle:{"margin-bottom":"10px",display:"flex"}},t._l(e,(function(e,n){return i("div",{key:n,staticStyle:{"margin-bottom":"10px","margin-right":"10px",display:"flex",width:"100%"}},[i("el-button",{staticStyle:{width:"100%"}},[t._v(t._s(e.text))])],1)})),0)})),0)])],2)},l=[],o=(i("14d9"),i("a434"),{props:{value:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!1}},mounted:function(){console.log(this.value,"btns")},methods:{add_line:function(t){this.value[t].push({text:"",url:""})},changeEmit:function(t,e){t.splice(e,1),this.$emit("changeBtn")}}}),a=o,c=i("2877"),u=Object(c["a"])(a,n,l,!1,null,"63f32d25",null);e["default"]=u.exports}}]);