SmartStorage/uni_modules/feng-seal/readme.md

31 lines
1.4 KiB
Markdown
Raw Normal View History

2024-03-13 17:55:34 +08:00
# feng-seal 印章生成工具
## 快速使用
```vue
<feng-seal ref="seal" :companyText="上弦文" :sealCode="下弦文" :sealText="印章名称"></feng-seal>
```
生成并返回图片地址
```js
this.$refs.seal.make().then((res) => {
console.log(res);
});
```
### props参数详情
| 参数 | 类型 | 默认值 | 说明 |
| ----------- | ------- | ------ | ------------------------------------------------------------ |
| size | string | 400px | 印章宽高 |
| companyText | string | | 上弦文 |
| sealCode | string | | 下弦文 |
| sealText | string | | 印章名称 |
| color | string | red | 颜色 |
| inCircle | Boolean | false | 是否显示印章内圈 |
| hidden | Boolean | false | 是否隐藏canvas画布 |
| imageType | string | png | 返回图片的类型 可选类型pngbase64 |
| centerImage | string | | 默认显示五角星修改需要传小程序内图片链接使用uni.download()下载的链接 |