From d591800ac7276536c4cf73be579a27f5dd25be8a Mon Sep 17 00:00:00 2001 From: daisy Date: Wed, 17 Jan 2018 17:25:18 +0800 Subject: [PATCH] datetimePick add the Description of the property of 'value' --- src/pages/en2/datetime-picker.md | 9 +++++---- src/pages/zh-cn2/datetime-picker.md | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pages/en2/datetime-picker.md b/src/pages/en2/datetime-picker.md index 9a3dcd1..2747928 100644 --- a/src/pages/en2/datetime-picker.md +++ b/src/pages/en2/datetime-picker.md @@ -28,7 +28,7 @@ The `type` attribute configures the type of the component, and it has three opti + v-model="value"> @@ -47,7 +47,7 @@ You can configure a custom template for slot options. The template should be a s ```html @@ -68,6 +68,7 @@ When the confirm button is tapped, the `confirm` event triggers with `value` as ## API | option | description | type | acceptable values | default | |------|-------|---------|-------|--------| +| value | value of the picker | Date / String (for example: 2018-1-1 00:00:00 , 2018/1/1 00:00:00 or 2018.1.1 00:00:00))| | | | type | type of the picker | String | 'datetime', 'date', 'time' | 'datetime' | | cancelText | text of the cancel button | String | | '取消' | | confirmText | text of the confirm button | String | | '确定' | @@ -84,5 +85,5 @@ When the confirm button is tapped, the `confirm` event triggers with `value` as ## Events | event name | description | parameters | |------|-------|---------| -| confirm | callback when the confirm button is clicked | current value of the picker | +| confirm | callback when the confirm button is clicked | current value of the picker (is type of Date)| | changeVisible | callback when pop open or close | current value of pop visible | diff --git a/src/pages/zh-cn2/datetime-picker.md b/src/pages/zh-cn2/datetime-picker.md index deb68a9..3cfad1a 100644 --- a/src/pages/zh-cn2/datetime-picker.md +++ b/src/pages/zh-cn2/datetime-picker.md @@ -28,7 +28,7 @@ Vue.component(DatetimePicker.name, DatetimePicker); + v-model="value"> @@ -47,7 +47,7 @@ Vue.component(DatetimePicker.name, DatetimePicker); ```html @@ -68,6 +68,7 @@ Vue.component(DatetimePicker.name, DatetimePicker); ## API | 参数 | 说明 | 类型 | 可选值 | 默认值 | |------|-------|---------|-------|--------| +| value | 绑定值 | Date / String(如:2018-1-1 00:00:00 , 2018/1/1 00:00:00 或者 2018.1.1 00:00:00) | | | | type | 组件的类型 | String | 'datetime', 'date', 'time' | 'datetime' | | cancelText | 取消按钮文本 | String | | '取消' | | confirmText | 确定按钮文本 | String | | '确定' | @@ -85,5 +86,5 @@ Vue.component(DatetimePicker.name, DatetimePicker); ## Events | 事件名称 | 说明 | 回调参数 | |------|-------|---------| -| confirm | 点击确认按钮时的回调函数 | 目前的选择值 | +| confirm | 点击确认按钮时的回调函数 | 目前的选择值(为Date类型) | | changeVisible | 改变弹窗显示隐藏的回调函数 | 弹窗是否可见 |