u-collapse-item.js 4.3 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-collapse-item/u-collapse-item"],{1437:function(t,e,n){"use strict";n.r(e);var i=n(1438),r=n(1440);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n(1442);var s,a=n(32),l=Object(a["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"31fbc7f8",null,!1,i["components"],s);l.options.__file="uview-ui/components/u-collapse-item/u-collapse-item.vue",e["default"]=l.exports},1438:function(t,e,n){"use strict";n.r(e);var i=n(1439);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},1439:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return r})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return i}));try{i={uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,1200))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.itemStyle])),i=t.__get_style([t.headStyle]),r=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:""]),o=t.__get_style([t.bodyStyle]);t.$mp.data=Object.assign({},{$root:{s0:n,s1:i,s2:r,s3:o}})},o=!1,s=[];r._withStripped=!0},1440:function(t,e,n){"use strict";n.r(e);var i=n(1441),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},1441:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={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=i},1442:function(t,e,n){"use strict";n.r(e);var i=n(1443),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},1443:function(t,e,n){}}]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-collapse-item/u-collapse-item.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uview-ui/components/u-collapse-item/u-collapse-item-create-component',
  5. {
  6. 'uview-ui/components/u-collapse-item/u-collapse-item-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(1437))
  8. })
  9. },
  10. [['uview-ui/components/u-collapse-item/u-collapse-item-create-component']]
  11. ]);