(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cf275b2"],{"12f4":function(t,e,n){},"39dd":function(t,e,n){"use strict";n("12f4")},e42c:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stadium-detail-container"},[n("div",{staticClass:"des"},[n("div",{ref:"contentRef",staticClass:"des-content",class:{"line-clamp-1":!t.isShowMore&&t.isContentOverflow},domProps:{innerHTML:t._s(t.processedContent)}}),t.stadiumData.des&&t.isContentOverflow?n("div",{staticClass:"more",on:{click:t.toggleShowMore}},[n("div",{staticClass:"mr5"},[t._v(t._s(t.isShowMore?"收起":"更多"))]),n("svg-icon",{attrs:{"icon-class":t.isShowMore?"hide-more":"show-more"}})],1):t._e()])])},i=[],s=(n("2397"),n("ac6a"),n("d4ec")),c=n("bee2"),a=n("99de"),r=n("7e84"),l=n("262e"),f=n("9ab4"),u=n("60a3"),h=n("c00a");function d(t,e,n){return e=Object(r["a"])(e),Object(a["a"])(t,v()?Reflect.construct(e,n||[],Object(r["a"])(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}var w=function(t){function e(){var t;return Object(s["a"])(this,e),t=d(this,e,arguments),t.isShowMore=!1,t.isContentOverflow=!1,t}return Object(l["a"])(e,t),Object(c["a"])(e,[{key:"processedContent",get:function(){return this.stadiumData.des}},{key:"onDesChange",value:function(){var t=this;this.$nextTick((function(){t.checkContentOverflow(),t.processImages()}))}},{key:"mounted",value:function(){var t=this;this.$nextTick((function(){t.checkContentOverflow(),t.processImages()}))}},{key:"toggleShowMore",value:function(){this.isShowMore=!this.isShowMore,this.contentRef.style.webkitLineClamp=this.isShowMore?"initial":"1"}},{key:"checkContentOverflow",value:function(){if(this.contentRef){var t={overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",webkitLineClamp:"1",webkitBoxOrient:"vertical"};Object.assign(this.contentRef.style,t),this.isContentOverflow=this.contentRef.scrollHeight>this.contentRef.clientHeight,this.isShowMore&&(this.contentRef.style.webkitLineClamp="none")}}},{key:"processImages",value:function(){var t=this;if(this.contentRef){var e=this.contentRef.querySelectorAll("img");e.forEach((function(e){e.style.maxWidth="100%",e.style.height="auto",e.complete||(e.onload=function(){return t.checkContentOverflow()})}))}}}])}(u["g"]);f["a"]([Object(u["d"])({type:Object,required:!0})],w.prototype,"stadiumData",void 0),f["a"]([Object(u["f"])("contentRef")],w.prototype,"contentRef",void 0),f["a"]([Object(u["h"])("stadiumData.des")],w.prototype,"onDesChange",null),w=f["a"]([Object(u["a"])({components:{SvgIcon:h["a"]}})],w);var p=w,b=p,O=(n("39dd"),n("2877")),m=Object(O["a"])(b,o,i,!1,null,"668d90c6",null);e["default"]=m.exports}}]);
//# sourceMappingURL=chunk-5cf275b2.add5031e.js.map