(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-read-more/u-read-more"],{2608:function(t,e,n){"use strict";n.r(e);var o=n("4fc7"),i=n("c5ad");for(var u in i)"default"!==u&&function(t){n.d(e,t,(function(){return i[t]}))}(u);n("966f");var r,a=n("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"94556bbe",null,!1,o["a"],r);e["default"]=c.exports},"4fc7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var o={uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"c500"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.isLongContent?t.__get_style([t.innerShadowStyle]):null);t.$mp.data=Object.assign({},{$root:{s0:n}})},u=[]},"75d4":function(t,e,n){},"95ab":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-read-more",props:{showHeight:{type:[Number,String],default:400},toggle:{type:Boolean,default:!1},closeText:{type:String,default:"展开阅读全文"},openText:{type:String,default:"收起"},color:{type:String,default:"#2979ff"},fontSize:{type:[String,Number],default:28},shadowStyle:{type:Object,default:function(){return{backgroundImage:"linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)",paddingTop:"300rpx",marginTop:"-300rpx"}}},textIndent:{type:String,default:"2em"},index:{type:[Number,String],default:""}},watch:{paramsChange:function(t){this.init()}},computed:{paramsChange:function(){return"".concat(this.toggle,"-").concat(this.showHeight)},innerShadowStyle:function(){return this.showMore?{}:this.shadowStyle}},data:function(){return{isLongContent:!1,showMore:!1,elId:this.$u.guid()}},mounted:function(){this.$nextTick((function(){this.init()}))},methods:{init:function(){var e=this;this.$uGetRect("."+this.elId).then((function(n){n.height>t.upx2px(e.showHeight)&&(e.isLongContent=!0,e.showMore=!1)}))},toggleReadMore:function(){this.showMore=!this.showMore,0==this.toggle&&(this.isLongContent=!1),this.$emit(this.showMore?"open":"close",this.index)}}};e.default=n}).call(this,n("543d")["default"])},"966f":function(t,e,n){"use strict";var o=n("75d4"),i=n.n(o);i.a},c5ad:function(t,e,n){"use strict";n.r(e);var o=n("95ab"),i=n.n(o);for(var u in o)"default"!==u&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=i.a}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'uview-ui/components/u-read-more/u-read-more-create-component', { 'uview-ui/components/u-read-more/u-read-more-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("2608")) }) }, [['uview-ui/components/u-read-more/u-read-more-create-component']] ]);