(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item"],{"4e40":function(t,e,n){"use strict";n.r(e);var i=n("dcade"),s=n("71c9");for(var o in s)"default"!==o&&function(t){n.d(e,t,(function(){return s[t]}))}(o);n("fad4");var l,a=n("f0c5"),c=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"3eb12120",null,!1,i["a"],l);e["default"]=c.exports},"71c9":function(t,e,n){"use strict";n.r(e);var i=n("bc32"),s=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=s.a},bc32:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"uniCollapseItem",props:{title:{type:String,default:""},name:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1},showAnimation:{type:Boolean,default:!0},open:{type:Boolean,default:!1},thumb:{type:String,default:""},titleBorder:{type:String,default:"auto"},border:{type:Boolean,default:!0}},data:function(){var t="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{isOpen:!1,isheight:null,height:0,elId:t,nameSync:0}},watch:{open:function(t){this.isOpen=t,this.onClick(t,"init")}},updated:function(t){var e=this;this.$nextTick((function(){e.init(!0)}))},created:function(){this.collapse=this.getCollapse(),this.oldHeight=0},destroyed:function(){this.__isUnmounted||this.uninstall()},mounted:function(){this.collapse&&(""!==this.name?this.nameSync=this.name:this.nameSync=this.collapse.childrens.length+"",-1===this.collapse.names.indexOf(this.nameSync)?this.collapse.names.push(this.nameSync):console.warn("name 值 ".concat(this.nameSync," 重复")),-1===this.collapse.childrens.indexOf(this)&&this.collapse.childrens.push(this),this.init())},methods:{init:function(t){this.getCollapseHeight(t)},uninstall:function(){var t=this;this.collapse&&(this.collapse.childrens.forEach((function(e,n){e===t&&t.collapse.childrens.splice(n,1)})),this.collapse.names.forEach((function(e,n){e===t.nameSync&&t.collapse.names.splice(n,1)})))},onClick:function(t,e){this.disabled||(this.isOpen=t,this.isOpen&&this.collapse&&this.collapse.setAccordion(this),"init"!==e&&this.collapse.onChange(t,this))},getCollapseHeight:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=t.createSelectorQuery().in(this);s.select("#".concat(this.elId)).fields({size:!0},(function(t){if(!(i>=10)){if(!t)return i++,void n.getCollapseHeight(!1,i);n.height=t.height,n.isheight=!0,e||n.onClick(n.open,"init")}})).exec()},getNvueHwight:function(t){var e=this;dom.getComponentRect(this.$refs["collapse--hook"],(function(n){if(n&&n.result&&n.size){if(e.height=n.size.height,e.isheight=!0,t)return;e.onClick(e.open,"init")}}))},getCollapse:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniCollapse",e=this.$parent,n=e.$options.name;while(n!==t){if(e=e.$parent,!e)return!1;n=e.$options.name}return e}}};e.default=n}).call(this,n("543d")["default"])},dcad:function(t,e,n){},dcade:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"c03d"))}},s=function(){var t=this,e=t.$createElement;t._self._c},o=[]},fad4:function(t,e,n){"use strict";var i=n("dcad"),s=n.n(i);s.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item-create-component',
    {
        'uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("4e40"))
        })
    },
    [['uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item-create-component']]
]);
