crm_second_opening_mini/uview-ui/components/u-collapse-item/u-collapse-item.js

11 lines
3.2 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-collapse-item/u-collapse-item"],{"15d8":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-collapse-item",props:{title:{type:String,default:""},align:{type:String,default:"left"},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1},name:{type:[Number,String],default:""},activeStyle:{type:Object,default:function(){return{}}},index:{type:[String,Number],default:""}},data:function(){return{isShow:!1,elId:this.$u.guid(),height:0,headStyle:{},bodyStyle:{},itemStyle:{},arrowColor:"",hoverClass:"",arrow:!0}},watch:{open:function(t){this.isShow=t}},created:function(){this.parent=!1,this.isShow=this.open},methods:{init:function(){var t=this;this.parent=this.$u.$parent.call(this,"u-collapse"),this.parent&&(this.nameSync=this.name?this.name:this.parent.childrens.length,this.parent.childrens.push(this),this.headStyle=this.parent.headStyle,this.bodyStyle=this.parent.bodyStyle,this.arrowColor=this.parent.arrowColor,this.hoverClass=this.parent.hoverClass,this.arrow=this.parent.arrow,this.itemStyle=this.parent.itemStyle),this.$nextTick((function(){t.queryRect()}))},headClick:function(){var t=this;this.disabled||(this.parent&&1==this.parent.accordion&&this.parent.childrens.map((function(e){t!=e&&(e.isShow=!1)})),this.isShow=!this.isShow,this.$emit("change",{index:this.index,show:this.isShow}),this.isShow&&this.parent&&this.parent.onChange(),this.$forceUpdate())},queryRect:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height}))}},mounted:function(){this.init()}};e.default=n},"1f86":function(t,e,i){"use strict";i.r(e);var n=i("15d8"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"65fc":function(t,e,i){"use strict";var n=i("aa32"),a=i.n(n);a.a},8738:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uIcon:function(){return i.e("uview-ui/components/u-icon/u-icon").then(i.bind(null,"3ff7"))}},a=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__get_style([t.itemStyle])),n=t.__get_style([t.headStyle]),a=t.$slots["title-all"]||t.$slots["title"]?null:t.__get_style([{textAlign:t.align?t.align:"left"},t.isShow&&t.activeStyle&&!t.arrow?t.activeStyle:""]),s=t.__get_style([t.bodyStyle]);t.$mp.data=Object.assign({},{$root:{s0:i,s1:n,s2:a,s3:s}})},s=[]},aa32:function(t,e,i){},c46a:function(t,e,i){"use strict";i.r(e);var n=i("8738"),a=i("1f86");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("65fc");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"4f34b7a2",null,!1,n["a"],void 0);e["default"]=r.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-collapse-item/u-collapse-item-create-component',
{
'uview-ui/components/u-collapse-item/u-collapse-item-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("c46a"))
})
},
[['uview-ui/components/u-collapse-item/u-collapse-item-create-component']]
]);