"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames=_interopRequireDefault(require("../helpers/libs/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({relations:{"../col/index":{type:"child",observer:function(){this.updateStyle()}}},properties:{prefixCls:{type:String,value:"wux-row"},gutter:{value:0,type:Number,observer:"updateStyle"}},data:{rowStyle:""},computed:{classes:["prefixCls",function(e){return{wrap:(0,_classNames.default)(e)}}]},methods:{updateStyle:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.data.gutter,t=this.getRelationsByName("../col/index"),a=0<e?"margin-left: ".concat(e/-2,"px; margin-right: ").concat(e/-2,"px"):"",r=0<e?"padding-left: ".concat(e/2,"px; padding-right: ").concat(e/2,"px"):"";0<t.length&&t.forEach(function(e){e.updateStyle(r)}),this.setData({rowStyle:a})}}});