https://github.com/kuckboy1994/mpvue_canvas_drawer
[mpvue版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
https://github.com/kuckboy1994/mpvue_canvas_drawer
canvas draw mpvue wechat weixin wxapp wxxcx
Last synced: 7 months ago
JSON representation
[mpvue版本]微信小程序上canvas绘制图片助手,一个json就制作分享朋友圈图片
- Host: GitHub
- URL: https://github.com/kuckboy1994/mpvue_canvas_drawer
- Owner: kuckboy1994
- Created: 2018-07-18T13:43:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T13:45:18.000Z (about 7 years ago)
- Last Synced: 2025-03-20T13:12:54.056Z (7 months ago)
- Topics: canvas, draw, mpvue, wechat, weixin, wxapp, wxxcx
- Language: JavaScript
- Size: 70.3 KB
- Stars: 45
- Watchers: 2
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mpvue_canvas_drawer
把 `mp_canvas_drawer` 组件移动到 `mpvue` 项目的 `/static/` 目录下
在调用页面的 `main.js` 文件最后加入如下代码
```
export default {
config: {
// 这儿添加要用的小程序组件
usingComponents: {
'canvasdrawer': '../../../static/canvasdrawer/canvasdrawer'
}
}
}
```就可以直接在 `mpvue` 中使用 `mp_canvas_drawer`
``````
## Build Setup
``` bash
# install dependencies
npm install# serve with hot reload at localhost:8080
npm run dev# build for production with minification
npm run build# build for production and view the bundle analyzer report
npm run build --report
```For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).