"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:{"../sticky-item/index":{type:"child",observer:function(){this.callDebounceFn(this.updated)}}},properties:{prefixCls:{type:String,value:"wux-sticky"},scrollTop:{type:Number,value:0,observer:"onScroll"}},computed:{classes:["prefixCls",function(e){return{wrap:(0,_classNames.default)(e)}}]},methods:{onScroll:function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.data.scrollTop,e=this.getRelationsByName("../sticky-item/index");0<e.length&&e.forEach(function(e,t){e.onScroll(i)})},updated:function(){var e=this.getRelationsByName("../sticky-item/index");0<e.length&&e.forEach(function(e,t){e.updated(t)})}}});