4***@qq.com
4***@qq.com
  • 发布:2019-03-20 15:44
  • 更新:2019-03-20 15:44
  • 阅读:15141

uni-app项目展示屏幕文字滚动效果

分类:uni-app

github地址,喜欢的可以star下哦

插件预览图

使用教程

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项目中使用都兼容

1 关注 分享
老哥教教我

要回复文章请先登录注册