"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/libs/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(e,r){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return("string"===r?String:Number)(e);t=t.call(e,r||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(0,_baseComponent.default)({relations:{"../grid/index":{type:"child",observer:function(){this.callDebounceFn(this.changeCurrent)}}},properties:{prefixCls:{type:String,value:"wux-grids"},col:{type:Number,value:3,observer:"changeCurrent"},bordered:{type:Boolean,value:!0,observer:"changeCurrent"},square:{type:Boolean,value:!1,observer:"changeCurrent"}},computed:{classes:["prefixCls, bordered",function(e,r){return{wrap:(0,_classNames2.default)(e,_defineProperty({},"".concat(e,"--bordered"),r))}}]},methods:{changeCurrent:function(){var e=this.getRelationsByName("../grid/index"),r=this.data,t=r.col,o=r.bordered,n=r.square,r=0<parseInt(t)?parseInt(t):1,i="".concat(100/r,"%");0<e.length&&e.forEach(function(e,r){e.changeCurrent(i,o,n,r)})}}});