uni-app项目展现屏幕笔墨转动结果

github地点,喜好的能够star下哦

插件预览图

《uni-app项目展现屏幕笔墨转动结果》

运用教程

1.插件代码拷贝

  • 下载后把components目录下screenTextScroll.vue文件拷贝到本身项目目录下

2.插件全局设置

  • 在项目里main.js中设置以下代码
import screenTextScroll from './components/screenTextScroll.vue'

Vue.component('textscroll',screenTextScroll)

3.插件运用

  • vue页面运用
<template>
    <view class="content">
        <textscroll :list="list"/>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                list:['1分钟前,无夏购买了会员','2分钟前,无夏购买了会员','3分钟前,无夏购买了会员']
            };
        },
        onLoad() {},
        methods: {
        
        }
    };
</script>

<style>
    
</style>

兼容性

uni-app项目中运用都兼容

    原文作者:potato1314
    原文地址: https://segmentfault.com/a/1190000018587609
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞