Authored by 陈峰

commit

... ... @@ -113,12 +113,14 @@ export default {
},
},
mounted() {
this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({
articleId: this.data.articleId,
introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20,
introCollapseHeight: get(this.$refs, 'intro.scrollHeight', 0),
type: this.type
});
if (this.data.introHeight === 0) {
this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({
articleId: this.data.articleId,
introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20,
introCollapseHeight: get(this.$refs, 'intro.scrollHeight', 0),
type: this.type
});
}
import('animejs').then(({default: anime}) => {
this.anime = anime;
});
... ...
... ... @@ -54,6 +54,7 @@ export default {
intro: get(get(this.data, 'blockList', []).filter(block => block.templateKey === 'text'), '[0].contentData', ''),
isExpand: this.data.isExpand,
introHeight: this.data.introHeight,
introCollapseHeight: this.data.introCollapseHeight,
articleType: this.data.articleType,
labelList: this.data.labelList,
hasFavor: this.data.hasFavor,
... ...