el-poster
v1.0.0
Published
基于VUE开发的海报生成工具
Downloads
7
Readme
el-poster
介绍
基于VUE开发的海报生成工具
安装教程
安装:
npm install el-poster --save
单独使用:
import elPoster from 'el-poster'
在main.js全局使用:
import elPoster from 'el-poster'
Vue.use(elPoster)
参数说明
| 参数名 | 说明 | 类型 | 可选值 | 默认值 | |---------|-------------|---------|------|-------| | controls | 是否可控制 | Boolean | false | true | | width| 画布宽度 | Number | - | 400 | | height| 画布高度 | Number | - | 600 | | backgroundColor| 背景颜色 | String | - | #e0e0e0 |
回调事件
| 事件名称 | 说明 | 回调参数 | |---------|-------------|---------| | result | 返回生成的海报base64结果 | base64 | | error| 发生错误时回调 | 错误原因 |