feat(article detail): add back-to-top button and scroll mixin
add the to-top component and integrate scroll mixin to support scroll-to-top functionality
This commit is contained in:
@@ -19,12 +19,15 @@
|
||||
|
||||
<!-- 隐私弹窗 -->
|
||||
<privacy-popup ref="privacyPopup"></privacy-popup>
|
||||
<to-top v-if="showTop" @toTop="scrollToTopNative()"></to-top>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import htmlParser from '@/common/js/html-parser';
|
||||
import scroll from '@/common/js/scroll-view.js';
|
||||
export default {
|
||||
mixins: [scroll],
|
||||
data() {
|
||||
return {
|
||||
articleId: 0,
|
||||
|
||||
Reference in New Issue
Block a user