File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ formatter | Function | - | 格式化标签。TS 类型:`(option: DateTimePicke
74
74
header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容。[ 通用类型定义] ( https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts ) | N
75
75
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
76
76
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 | 是否在日期旁边显示周几(如周一,周二,周日等) | N
78
78
start | String / Number | - | 选择器的最小可选时间,默认为当前时间-10年 | N
79
79
steps | Object | - | 时间间隔步数,示例:` { minute: 5 } ` | N
80
80
title | String | - | 标题 | N
Original file line number Diff line number Diff line change 48
48
2 : 'nd' ,
49
49
3 : 'rd' ,
50
50
} ;
51
- const weekMapCNtoEN = {
51
+ const weekMap = {
52
52
"周一" : "Mon." ,
53
53
"周二" : "Tues." ,
54
54
"周三" : "Wed." ,
61
61
62
62
return {
63
63
value : item . value ,
64
- label : `${ label } ${ dateSuffixes [ label ] || 'th' } ${ weekMapCNtoEN [ weekValue ] } `
64
+ label : `${ label } ${ dateSuffixes [ label ] || 'th' } ${ weekMap [ weekValue ] } `
65
65
}
66
66
}
67
67
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const props: TdDateTimePickerProps = {
58
58
type : Object ,
59
59
value : { } ,
60
60
} ,
61
- /** 【开发中】 是否在日期旁边显示周几(如周一,周二,周日等) */
61
+ /** 是否在日期旁边显示周几(如周一,周二,周日等) */
62
62
showWeek : {
63
63
type : Boolean ,
64
64
value : false ,
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export interface TdDateTimePickerProps {
93
93
value ?: PopupProps ;
94
94
} ;
95
95
/**
96
- * 【开发中】 是否在日期旁边显示周几(如周一,周二,周日等)
96
+ * 是否在日期旁边显示周几(如周一,周二,周日等)
97
97
* @default false
98
98
*/
99
99
showWeek ?: {
You can’t perform that action at this time.
0 commit comments