Skip to content

[wepy版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片

Notifications You must be signed in to change notification settings

simmzl/wepy_canvas_drawer

Repository files navigation

wepy_canvas_drawer

基于kuckboy1994mp_canvas_drawer开发的wepy版本

mpvue版本:mpvue_canvas_drawer

使用

src/components/canvasdrawer 组件移动到 wepy 项目的 components 目录下

在调用页面内引入

// 路径根据结构自定义
import canvasdrawer from "@/components/canvasdrawer/canvasdrawer";

注册组件:

export default class Index extends wepy.page {
    components = {
        canvasdrawer
    };
}

使用组件

<image src="{{shareImage}}" class="share-image"></image>
<canvasdrawer :painting.sync="painting" @getImage.user="eventGetImage"></canvasdrawer>

API及说明可参考: 掘金:一个json帮你完成分享朋友圈图片

Build Setup

npm install

npm run dev

npm run build:dev

About

[wepy版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published