Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondu committed Aug 22, 2018
1 parent b293bfb commit f1abcd5
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ yarn add wxa-plugin-canvas --production
| backgroundColor | String || 背景颜色 |
| borderRadius | Number(单位:rpx) || 圆角 |
| text | Object || 块里面可以填充文字,参考texts字段解释 |
| zIndex | Int || 层级,越大越高 |

### texts字段

Expand All @@ -98,6 +99,7 @@ yarn add wxa-plugin-canvas --production
| textDecoration | String || 目前只支持 line-through(贯穿线),默认为none |
| baseLine | String || top\| middle\|bottom基线对齐方式 |
| textAlign | String || left\|center\|right对齐方式 |
| zIndex | Int || 层级,越大越高 |

### images字段

Expand All @@ -111,17 +113,19 @@ yarn add wxa-plugin-canvas --production
| borderRadius | Number(单位:rpx) || 圆角,跟css一样 |
| borderWidth | Number(单位:rpx) || 边框宽度 |
| borderColor | String || 边框颜色 |
| zIndex | Int || 层级,越大越高 |

### lines字段

| 字段 | 类型 | 必填 | 描述 |
| ------ | ---------------- | ---- | -------- |
| startX | Number(单位:rpx) || 起始坐标 |
| startY | Number(单位:rpx) || 起始坐标 |
| endX | Number(单位:rpx) || 终结坐标 |
| endY | Number(单位:rpx) || 终结坐标 |
| width | Number(单位:rpx) || 线的宽度 |
| color | String || 线的颜色 |
| 字段 | 类型 | 必填 | 描述 |
| ------ | ---------------- | ---- | -------------- |
| startX | Number(单位:rpx) || 起始坐标 |
| startY | Number(单位:rpx) || 起始坐标 |
| endX | Number(单位:rpx) || 终结坐标 |
| endY | Number(单位:rpx) || 终结坐标 |
| width | Number(单位:rpx) || 线的宽度 |
| color | String || 线的颜色 |
| zIndex | Int || 层级,越大越高 |

## 事件

Expand Down

0 comments on commit f1abcd5

Please sign in to comment.