(("undefined"!==typeof self?self:this)["webpackJsonpportal_management_std"]=("undefined"!==typeof self?self:this)["webpackJsonpportal_management_std"]||[]).push([[98],{f4d5:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{key:e.updateKey},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"宽度"}},[a("el-input-number",{staticClass:"w-full",attrs:{controls:!1,min:10,max:375},on:{change:function(t,a){return e.numChange("w",t,a)}},model:{value:e.layoutConfig.w,callback:function(t){e.$set(e.layoutConfig,"w",t)},expression:"layoutConfig.w"}})],1),e.config.isAdaptive?e._e():a("el-form-item",{attrs:{label:"高度"}},[a("el-input-number",{staticClass:"w-full",attrs:{controls:!1,min:10},on:{change:function(t,a){return e.numChange("h",t,a)}},model:{value:e.layoutConfig.h,callback:function(t){e.$set(e.layoutConfig,"h",t)},expression:"layoutConfig.h"}})],1)],1)],1)},o=[],l={props:{config:{type:Object,default:function(){return{w:10,h:10,x:0,y:0,isAdaptive:!1}}},layout:{type:Array,default:function(){return[]}}},data:function(){return{layoutConfig:{},updateKey:_.random(5e3)}},watch:{config:{deep:!0,handler:function(e){this.layoutConfig=_.cloneDeep(e)}}},methods:{numChange:function(e,t,a){if(!_.isNumber(t))return this.$set(this.layoutConfig,e,a),void(this.updateKey=_.random(5e3));this.$emit("layoutChange",this.layoutConfig)}},mounted:function(){this.layoutConfig=_.cloneDeep(this.config)}},i=l,r=a("2877"),u=Object(r["a"])(i,n,o,!1,null,null,null);t["a"]=u.exports},fa87:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{attrs:{model:e.form,"label-width":"95px",disabled:"view"===e.mode}},[a("el-form-item",{attrs:{label:"数据来源"}},[a("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChange},model:{value:e.form.dataSource,callback:function(t){e.$set(e.form,"dataSource",t)},expression:"form.dataSource"}},e._l(e.columnData,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{attrs:{label:"图片展示"}},[a("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.selectChange},model:{value:e.form.imageFit,callback:function(t){e.$set(e.form,"imageFit",t)},expression:"form.imageFit"}},e._l(e.imageFitType,(function(e){return a("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:"轮播速度"}},[a("el-select",{on:{change:e.selectChange},model:{value:e.form.speed,callback:function(t){e.$set(e.form,"speed",t)},expression:"form.speed"}},[a("el-option",{attrs:{label:0,value:0}}),e._l(3,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],2)],1),a("el-form-item",{attrs:{label:"展示条数"}},[a("el-input-number",{staticClass:"w-full",attrs:{min:1,max:10,"controls-position":"right"},on:{change:e.selectChange},model:{value:e.form.pageSize,callback:function(t){e.$set(e.form,"pageSize",t)},expression:"form.pageSize"}})],1),a("layoutConfig",{attrs:{config:e.config,layoutWidth:e.layoutWidth,layout:e.layout},on:{layoutChange:e.layoutChange}})],1)},o=[],l=a("c7eb"),i=a("3835"),r=a("1da1"),u=(a("4de4"),a("d3b7"),a("78a9")),s=a("f4d5"),c=a("e2d8"),f=new u["ColumApi"],m={props:["configData","layoutData","mode","layoutWidth","layout"],components:{layoutConfig:s["a"]},data:function(){return{form:{dataSource:"",speed:0,pageSize:1,imageFit:"fill"},config:{w:10,h:10},columnData:[],imageFitType:c["e"]}},watch:{configData:{deep:!0,immediate:!0,handler:function(e){this.form=this.$options.data().form,_.isEmpty(e)?this.selectChange():_.assign(this.form,e)}},layoutData:{deep:!0,immediate:!0,handler:function(e){_.isEmpty(e)||(this.config=_.pick(this.layoutData,["w","h","type","component","x","y","i"]))}}},methods:{getColumnData:function(){var e=this;return Object(r["a"])(Object(l["a"])().mark((function t(){var a,n,o,r;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,f.tree(1);case 2:a=t.sent,n=Object(i["a"])(a,2),o=n[0],r=n[1],o||(e.columnData=_.filter(r,(function(t){return t.type===e.config.type})));case 7:case"end":return t.stop()}}),t)})))()},selectChange:function(){this.$emit("configChange",this.form)},layoutChange:function(e){this.config=_.cloneDeep(e),this.$emit("layoutChange",e)}},created:function(){this.getColumnData()}},h=m,p=a("2877"),d=Object(p["a"])(h,n,o,!1,null,null,null);t["default"]=d.exports}}]);