changeway
changeway
  • 发布:2020-10-12 23:23
  • 更新:2020-10-12 23:23
  • 阅读:1000

#插件讨论# 【 画板 - 陌上华年 】海报无法生成

分类:uni-app

楼主大大,我按你的教程使用了lime-painter,
但是海报图片没有生成。
我的代码如下:

<template>  
    <view>  
        <l-painter :board="base"></l-painter>  
    </view>  
</template>  

<script>  
    // import lpainter from "../../components/lime-painter/index.vue"  
    export default {  
        data() {  
            return {  
                base: {  
                    width: '686rpx',  
                    height: '130rpx',  
                    views: [  
                        {  
                            type: 'view',  
                            css: {  
                                left: '10rpx',  
                                top: '10rpx',  
                                background: 'rgba(7,193,96,.1)',  
                                width: '120rpx',  
                                height: '120rpx',  
                                radius: '50%',  
                                border: '2rpx dashed rgb(7,193,96)'  
                            }  
                        },  
                        {  
                            type: 'view',  
                            css: {  
                                left: '150rpx',  
                                top: '10rpx',  
                                background: 'rgba(25,137,250,.4)',  
                                width: '120rpx',  
                                height: '120rpx',  
                                radius: '50%',  
                                shadow: '0 5rpx 10rpx rgba(25,137,250,.8)'  
                            }  
                        },  
                        {  
                            type: 'view',  
                            css: {  
                                left: '300rpx',  
                                top: '10rpx',  
                                background: 'rgba(255, 151, 106, .1)',  
                                width: '120rpx',  
                                height: '120rpx',  
                                radius: '50%',  
                                border: '2rpx solid #ff976a'  
                            }  
                        }  
                    ]  
                }  
            }  
        }  
        // components: {    
        //  lpainter,    
        //  /* 其它组件定义 */    
        // }   
    }  
</script>  

<style>  

</style>

pages.json中配置easycom的方式和import的方式都试过了,都不成功,能帮我诊断一下问题出在哪里么?谢谢!
模拟其中的表现形式就是一个白板页面,截图在附件中。
另外,我用了colorUI的框架,不知道是否会有影响。

2020-10-12 23:23 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复