Skip to content

Commit 3edab8c

Browse files
committed
docs: update api docs
1 parent 528e97a commit 3edab8c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/date-time-picker/README.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ formatter | Function | - | Typescript:`(option: DateTimePickerColumnItem, colu
2020
header | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
2121
mode | String / Array | 'date' | Typescript:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array<TimeModeValues> ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
2222
popup-props | Object | {} | popup properties。Typescript:`PopupProps`[Popup API Documents](./popup?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
23-
show-week | Boolean | false | \- | N
23+
show-week | Boolean | false | `1.9.0` | N
2424
start | String / Number | - | \- | N
2525
steps | Object | - | \- | N
2626
title | String | - | title of picker | N

src/date-time-picker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ formatter | Function | - | 格式化标签。TS 类型:`(option: DateTimePicke
7474
header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
7575
mode | String / Array | 'date' | year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒。TS 类型:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues \| Array<TimeModeValues> ` `type TimeModeValues = 'year' \| 'month' \| 'date' \| 'hour' \| 'minute' \| 'second'`[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
7676
popup-props | Object | {} | 透传 Popup 组件全部属性。TS 类型:`PopupProps`[Popup API Documents](./popup?tab=api)[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N
77-
show-week | Boolean | false | 【开发中】是否在日期旁边显示周几(如周一,周二,周日等) | N
77+
show-week | Boolean | false | `1.9.0`是否在日期旁边显示周几(如周一,周二,周日等) | N
7878
start | String / Number | - | 选择器的最小可选时间,默认为当前时间-10年 | N
7979
steps | Object | - | 时间间隔步数,示例:`{ minute: 5 }` | N
8080
title | String | - | 标题 | N

src/date-time-picker/_example/year-month-date/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Page({
4848
2: 'nd',
4949
3: 'rd',
5050
};
51-
const weekMapCNtoEN = {
51+
const weekMap = {
5252
"周一": "Mon.",
5353
"周二": "Tues.",
5454
"周三": "Wed.",
@@ -61,7 +61,7 @@ Page({
6161

6262
return {
6363
value: item.value,
64-
label: `${label}${dateSuffixes[label] || 'th'} ${weekMapCNtoEN[weekValue]}`
64+
label: `${label}${dateSuffixes[label] || 'th'} ${weekMap[weekValue]}`
6565
}
6666
}
6767

src/date-time-picker/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const props: TdDateTimePickerProps = {
5858
type: Object,
5959
value: {},
6060
},
61-
/** 【开发中】是否在日期旁边显示周几(如周一,周二,周日等) */
61+
/** 是否在日期旁边显示周几(如周一,周二,周日等) */
6262
showWeek: {
6363
type: Boolean,
6464
value: false,

src/date-time-picker/type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export interface TdDateTimePickerProps {
9393
value?: PopupProps;
9494
};
9595
/**
96-
* 【开发中】是否在日期旁边显示周几(如周一,周二,周日等)
96+
* 是否在日期旁边显示周几(如周一,周二,周日等)
9797
* @default false
9898
*/
9999
showWeek?: {

0 commit comments

Comments
 (0)