更新文档编译工具

This commit is contained in:
pangxie1991 2018-05-24 00:20:40 +08:00
parent ce948df12f
commit f9966c60b7
4 changed files with 32 additions and 30 deletions

View File

@ -75,16 +75,17 @@ module.exports = {
base: 'interactive',
label: '交互',
include: {
toast: require('./packages/toast/README.md'),
popup: require('./packages/popup/README.md'),
actionsheet: require('./packages/actionsheet/README.md'),
datetime_picker: require('./packages/datetime-picker/README.md'),
dialog: require('./packages/dialog/README.md'),
toptips: require('./packages/toptips/README.md'),
popup: require('./packages/popup/README.md'),
tab: require('./packages/tab/README.md'),
loadmore: require('./packages/loadmore/README.md'),
actionsheet: require('./packages/actionsheet/README.md')
toast: require('./packages/toast/README.md'),
toptips: require('./packages/toptips/README.md'),
loadmore: require('./packages/loadmore/README.md')
}
}
],
include: { 'datetime-picker': require('./packages/datetime-picker/README.md') }
include: {}
}
}

View File

@ -49,6 +49,6 @@
"postcss-easy-import": "^3.0.0",
"precss": "^2.0.0",
"shelljs": "^0.7.8",
"wedoc": "0.0.13"
"wedoc": "0.0.16"
}
}

View File

@ -1,7 +1,27 @@
## datetime-picker
## DatetimePicker 时间选择
使用 picker 组件开发的时间日期组件,弥补小程序 picker 自身对于快速时间选择的不支持
### 示例代码
```json
{
"usingComponents": {
"zan-date-picker": "../../dist/datetime-picker/index"
}
}
```
```wxml
<zan-date-picker
bindchange="change"
bindcancel="cancel"
placeholder="请选择一个时间"
placeholder-class="my-customer-class-name"
format="你选择了YYYY年MM月DD日HH点mm分ss秒"
/>
```
### 属性与事件
| 名称 | 类型 | 是否必须 | 默认 | 描述 |
@ -22,25 +42,6 @@
| ------------ | ---- | ---- |
| getFormatStr | 无 | 返回 `format` 格式的字符串,在 `picker-view` 为 true 时比较实用 |
### 示例代码
```json
{
"usingComponents": {
"zan-date-picker": "../../dist/datetime-picker/index"
}
}
```
```wxml
<zan-date-picker
bindchange="change"
bindcancel="cancel"
placeholder="请选择一个时间"
placeholder-class="my-customer-class-name"
format="你选择了YYYY年MM月DD日HH点mm分ss秒" />
```
### 增强优化
* 支持可选择时间区域限制

View File

@ -9154,9 +9154,9 @@ websocket-extensions@>=0.1.1:
version "0.1.3"
resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29"
wedoc@0.0.13:
version "0.0.13"
resolved "https://registry.yarnpkg.com/wedoc/-/wedoc-0.0.13.tgz#1c0824328880541b1e99805e4996e773707c1c4c"
wedoc@0.0.16:
version "0.0.16"
resolved "https://registry.yarnpkg.com/wedoc/-/wedoc-0.0.16.tgz#9fae70f4a3e34d207bd9774506e3bba350f719cb"
dependencies:
autoprefixer "^7.1.2"
babel-core "^6.22.1"