(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-collapse-item/u-collapse-item"],{"02b6":function(e,t,n){},"3e45":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uCell:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-cell/u-cell")]).then(n.bind(null,"5923"))},uLine:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-line/u-line")]).then(n.bind(null,"e6d8"))}},u=function(){var e=this.$createElement;this._self._c},a=[]},7556:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=i(n("7eb4")),a=i(n("ee10")),r=i(n("d190")),o={name:"u-collapse-item",mixins:[e.$u.mpMixin,e.$u.mixin,r.default],data:function(){return{elId:e.$u.guid(),animationData:{},expanded:!1,showBorder:!1,animating:!1,parentData:{accordion:!1,border:!1}}},watch:{expanded:function(e){var t=this;clearTimeout(this.timer),this.timer=null,this.timer=setTimeout((function(){t.showBorder=e}),e?10:290)}},mounted:function(){this.init()},methods:{init:function(){var t=this;if(this.updateParentData(),!this.parent)return e.$u.error("u-collapse-item必须要搭配u-collapse组件使用");var n=this.parent,i=n.value,u=n.accordion;n.children;if(u){if(e.$u.test.array(i))return e.$u.error("手风琴模式下，u-collapse组件的value参数不能为数组");this.expanded=this.name==i}else{if(!e.$u.test.array(i)&&null!==i)return e.$u.error("非手风琴模式下，u-collapse组件的value参数必须为数组");this.expanded=(i||[]).some((function(e){return e==t.name}))}this.$nextTick((function(){this.setContentAnimate()}))},updateParentData:function(){this.getParentData("u-collapse")},setContentAnimate:function(){var t=this;return(0,a.default)(u.default.mark((function n(){var i,a,r;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.queryRect();case 2:i=n.sent,a=t.expanded?i.height:0,t.animating=!0,r=e.createAnimation({timingFunction:"ease-in-out"}),r.height(a).step({duration:t.duration}).step(),t.animationData=r.export(),e.$u.sleep(t.duration).then((function(){t.animating=!1}));case 9:case"end":return n.stop()}}),n)})))()},clickHandler:function(){this.disabled&&this.animating||this.parent&&this.parent.onChange(this)},queryRect:function(){var e=this;return new Promise((function(t){e.$uGetRect("#".concat(e.elId)).then((function(e){t(e)}))}))}}};t.default=o}).call(this,n("df3c")["default"])},"75ec":function(e,t,n){"use strict";var i=n("02b6"),u=n.n(i);u.a},c06e8:function(e,t,n){"use strict";n.r(t);var i=n("3e45"),u=n("c560");for(var a in u)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(a);n("75ec");var r=n("828b"),o=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,"19128ec0",null,!1,i["a"],void 0);t["default"]=o.exports},c560:function(e,t,n){"use strict";n.r(t);var i=n("7556"),u=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=u.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/uview-ui/components/u-collapse-item/u-collapse-item-create-component',
    {
        'uni_modules/uview-ui/components/u-collapse-item/u-collapse-item-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("c06e8"))
        })
    },
    [['uni_modules/uview-ui/components/u-collapse-item/u-collapse-item-create-component']]
]);
