This commit is contained in:
我是个攻城狮
2026-05-27 16:01:15 +08:00
parent dc43370953
commit c3f5f13bb3
953 changed files with 107635 additions and 11 deletions
+24
View File
@@ -0,0 +1,24 @@
# hjy-sign
### 基本用法
在 ``template`` 中使用组件
```html
<!-- 基础用法 -->
<view class="sign">
<hjy-sign @finish="finish" orientation="portrait"></hjy-sign>
</view>
```
### 属性
|参数 |描述 |类型 |默认值 |
|:-: |:-: |:-: |:-: |
|orientation|签字板方向。abeam ==> 横向 portrait ==> 纵向 默认纵向 |string |portrait |
|width |签字板宽度。单位PX,宽度定义:恒为正向手机宽度。当宽度大于最大宽度时,设置属性不生效,为屏幕最大宽度.。不传默认为最大宽度 |number |0 |
|height |签字板高度。单位PX,高度定义:恒为正向手机高度。当高度大于最大高度时,设置属性不生效,为屏幕最大高度.。不传默认为最大高度 |number |0 |
|lineWidth |线条粗细 |number |3 |
|strokeStyle|线条颜色 |string |black |
### 事件
|方法 |描述 |类型 |
|:-: |:-: |:-: |
|finish |完成返回画板内容(base64格式) |function |