This commit is contained in:
陈嘉涵 2018-09-04 21:21:27 +08:00
commit f7ad87c7db
5 changed files with 6 additions and 7 deletions

View File

@ -9,7 +9,6 @@
"dev": "node build/dev.js", "dev": "node build/dev.js",
"lint": "eslint ./packages --ext .js", "lint": "eslint ./packages --ext .js",
"release": "sh build/release.sh", "release": "sh build/release.sh",
"build": "sh scripts/deploy.sh",
"build:lib": "NODE_ENV=production node build/compiler.js", "build:lib": "NODE_ENV=production node build/compiler.js",
"build:site": "rm -rf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.prd.js && gh-pages -d docs/dist", "build:site": "rm -rf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.prd.js && gh-pages -d docs/dist",
"build:changelog": "vant-doc changelog --tag v0.2.0 ./docs/markdown/changelog.generated.md" "build:changelog": "vant-doc changelog --tag v0.2.0 ./docs/markdown/changelog.generated.md"

View File

@ -96,7 +96,7 @@
|-----------|-----------|-----------|-------------| |-----------|-----------|-----------|-------------|
| icon | 左侧图标,可选值见 Icon 组件 | `String` | - | | icon | 左侧图标,可选值见 Icon 组件 | `String` | - |
| title | 左侧标题 | `String | Number` | - | | title | 左侧标题 | `String | Number` | - |
| titleWidth | 标题宽度 | `Number` | - | | titleWidth | 标题宽度 | `String` | - |
| value | 右侧内容 | `String | Number` | - | | value | 右侧内容 | `String | Number` | - |
| label | 标题下方的描述信息 | `String` | - | | label | 标题下方的描述信息 | `String` | - |
| border | 是否显示下边框 | `Boolean` | `true` | | border | 是否显示下边框 | `Boolean` | `true` |

View File

@ -133,7 +133,7 @@
| readonly | 是否只读 | `Boolean` | `false` | | readonly | 是否只读 | `Boolean` | `false` |
| clearable | 是否启用清除控件 | `Boolean` | `false` | | clearable | 是否启用清除控件 | `Boolean` | `false` |
| required | 是否显示表单必填星号 | `Boolean` | `false` | | required | 是否显示表单必填星号 | `Boolean` | `false` |
| titleWidth | 标题宽度 | `Number` | `90` | | titleWidth | 标题宽度 | `String` | `90px` |
| maxlength | 最大输入长度,设置为 -1 的时候不限制最大长度 | `Number` | `-1` | | maxlength | 最大输入长度,设置为 -1 的时候不限制最大长度 | `Number` | `-1` |
| placeholder | 输入框为空时占位符 | `String` | - | | placeholder | 输入框为空时占位符 | `String` | - |
| is-link | 是否展示右侧箭头并开启点击反馈 | `Boolean` | `false` | | is-link | 是否展示右侧箭头并开启点击反馈 | `Boolean` | `false` |

View File

@ -55,8 +55,8 @@ Component({
value: true value: true
}, },
titleWidth: { titleWidth: {
type: Number, type: String,
value: 90 value: '90px'
} }
}, },

View File

@ -5,7 +5,7 @@
```json ```json
{ {
"usingComponents": { "usingComponents": {
"van-notify": "path/to/zanui-weapp/dist/notify/index" "van-notify": "path/to/vant-weapp/dist/notify/index"
} }
} }
``` ```
@ -15,7 +15,7 @@
### 基础用法 ### 基础用法
```js ```js
import Notify from 'path/to/zanui-weapp/dist/notify/index'; import Notify from 'path/to/vant-weapp/dist/notify/index';
Notify('通知内容') Notify('通知内容')
``` ```