Skip to content

Commit

Permalink
feat: update doc (#38)
Browse files Browse the repository at this point in the history
* docs: update doc

* docs: update doc
  • Loading branch information
Miaonster authored Jun 22, 2021
1 parent f0ced87 commit a37d9d3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 25 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,30 @@ class Code extends Taro.Component {

### Barcode

| Prop | Type | Default |
| ----------- | -------- | ------- |
| `text` | `string` | `''` |
| `width` | `number` | `300` |
| `height` | `number` | `80` |
| `scale` | `number` | `4` |
| `style` | `object` | `{}` |
| `className` | `string` | |
| Prop | Type | Default |
| ----------------- | -------- | --------- |
| `text` | `string` | `''` |
| `width` | `number` | `300` |
| `height` | `number` | `80` |
| `scale` | `number` | `4` |
| `style` | `object` | `{}` |
| `className` | `string` | |
| `foregroundColor` | `string` | `#000000` |
| `backgroundColor` | `string` | `#FFFFFF` |

### QRCode

| Prop | Type | Default |
| ------------------- | -------------------------- | ------- |
| `text` | `string` | `''` |
| `size` | `number` | `300` |
| `scale` | `number` | `4` |
| `typeNumber` | `number` | `2` |
| `errorCorrectLevel` | `'L' \| 'M' \| 'Q' \| 'H'` | `'M'` |
| `style` | `object` | `{}` |
| `className` | `string` | |
| Prop | Type | Default |
| ------------------- | -------------------------- | --------- |
| `text` | `string` | `''` |
| `size` | `number` | `300` |
| `scale` | `number` | `4` |
| `typeNumber` | `number` | `2` |
| `errorCorrectLevel` | `'L' \| 'M' \| 'Q' \| 'H'` | `'M'` |
| `style` | `object` | `{}` |
| `className` | `string` | |
| `foregroundColor` | `string` | `#000000` |
| `backgroundColor` | `string` | `#FFFFFF` |

## Screenshot

Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
"publish": "lerna publish from-git --yes",
"version": "lerna version"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
Expand All @@ -37,7 +32,7 @@
}
},
"dependencies": {},
"devDependencies": {
"devDependencies": {
"@typescript-eslint/eslint-plugin": "4",
"@typescript-eslint/parser": "^4.15.1",
"babel-preset-taro": "3.2.13",
Expand Down
6 changes: 4 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16658,8 +16658,10 @@ tar@^6.0.2:
mkdirp "^1.0.3"
yallist "^4.0.0"

"taro-code@file:packages/taro-code/lib":
version "0.0.0"
"taro-code@file:packages/taro-code":
version "3.2.0"
dependencies:
react-test-renderer "^17.0.2"

[email protected]:
version "3.2.13"
Expand Down

0 comments on commit a37d9d3

Please sign in to comment.