"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:{"../step/index":{type:"child",observer:function(){this.callDebounceFn(this.updateCurrent)}}},properties:{prefixCls:{type:String,value:"wux-steps"},current:{type:Number,value:0,observer:"updateCurrent"},direction:{type:String,value:"horizontal"}},methods:{updateCurrent:function(){var r=this.getRelationsByName("../step/index"),e=this.data,n=e.current,i=e.direction;0<r.length&&r.forEach(function(e,t){e.updateCurrent({length:r.length,index:t,current:n,direction:i})})}}});