Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1007 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 1007 Bytes

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