From 61286309f5a7ed230c826d3ce770a726a191a50b Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Sat, 28 May 2022 05:59:33 +0000 Subject: [PATCH] update en/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md. Signed-off-by: king_he <6384784@qq.com> --- .../ts-basic-components-datepicker.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md b/en/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md index d8c994e636..5198ec2ccb 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-datepicker.md @@ -1,6 +1,6 @@ # DatePicker -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. @@ -24,32 +24,32 @@ DatePicker(options?: DatePickerOptions) Creates a date picker in the given date range. - options parameters - | Name| Type| Mandatory| Default Value| Description| + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | - | start | Date | No| Date('1970-1-1') | Start date of the picker.| - | end | Date | No| Date('2100-12-31') | End date of the picker.| - | selected | Date | No| Current system date| Date of the selected item.| + | start | Date | No| Date('1970-1-1') | Start date of the picker. | + | end | Date | No| Date('2100-12-31') | End date of the picker. | + | selected | Date | No| Current system date| Date of the selected item. | ## Attributes -| Name| Type| Default Value| Description| +| Name| Type | Default Value | Description | | -------- | -------- | -------- | -------- | -| lunar | boolean | false | Whether to display the lunar calendar.
- **true**: Display the lunar calendar.
- **false**: Do not display the lunar calendar.| +| lunar | boolean | false | Whether to display the lunar calendar.
- **true**: Display the lunar calendar.
- **false**: Do not display the lunar calendar. | ## Events -| Name| Description| +| Name | Description | | -------- | -------- | -| onChange(callback: (value: DatePickerResult) => void) | Triggered when a date is selected.| +| onChange(callback: (value: DatePickerResult) => void) | Invoked when a date is selected. | ### DatePickerResult -| Name| Type| Description| +| Name | Type | Description | | -------- | -------- | -------- | -| year | number | Year of the selected date.| +| year | number | Year of the selected date. | | month | number | Month of the selected date. The value ranges from 0 to 11. The value **0** indicates January, and the value **11** indicates December. | -| day | number | Day of the selected date.| +| day | number | Day of the selected date. | ## Example -- GitLab