(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33bfc8b3"],{"6b76":function(t,e,n){"use strict";n("dd0e")},dd0e:function(t,e,n){},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"),r=n("262e"),a=n("99de"),l=n("7e84"),f=n("9ab4"),u=n("60a3"),h=n("c00a");function d(t){var e=v();return function(){var n,o=Object(l["a"])(t);if(e){var i=Object(l["a"])(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(a["a"])(this,n)}}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var p=function(t){Object(r["a"])(n,t);var e=d(n);function n(){var t;return Object(s["a"])(this,n),t=e.apply(this,arguments),t.isShowMore=!1,t.isContentOverflow=!1,t}return Object(c["a"])(n,[{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()})}))}}}]),n}(u["g"]);f["a"]([Object(u["d"])({type:Object,required:!0})],p.prototype,"stadiumData",void 0),f["a"]([Object(u["f"])("contentRef")],p.prototype,"contentRef",void 0),f["a"]([Object(u["h"])("stadiumData.des")],p.prototype,"onDesChange",null),p=f["a"]([Object(u["a"])({components:{SvgIcon:h["a"]}})],p);var w=p,b=w,m=(n("6b76"),n("2877")),y=Object(m["a"])(b,o,i,!1,null,"668d90c6",null);e["default"]=y.exports}}]);
//# sourceMappingURL=chunk-33bfc8b3.a624b237.js.map