diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-datepicker.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-datepicker.md index 657d18045dfdd639465b789b618a042d88ab3278..671e49122ce02a907577982691ffa990c3e89054 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-datepicker.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-datepicker.md @@ -125,7 +125,7 @@ lunar(isLunar: Optional\) disappearTextStyle(value: PickerTextStyle) -设置所有选项中最上和最下两个选项的文本样式。 +设置过渡项(以选中项为基准向上或向下的第二项)的文本样式。 **原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 @@ -135,13 +135,13 @@ disappearTextStyle(value: PickerTextStyle) | 参数名 | 类型 | 必填 | 说明 | | ------ | --------------------------------------------- | ---- | ------------------------------------------------------------ | -| value | [PickerTextStyle](#pickertextstyle10类型说明) | 是 | 所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | +| value | [PickerTextStyle](#pickertextstyle10类型说明) | 是 | 过渡项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | ### disappearTextStyle18+ disappearTextStyle(style: Optional\) -设置所有选项中最上和最下两个选项的文本样式。与[disappearTextStyle](#disappeartextstyle10)10+相比,style参数新增了对undefined类型的支持。 +设置过渡项的文本样式。与[disappearTextStyle](#disappeartextstyle10)10+相比,style参数新增了对undefined类型的支持。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -151,13 +151,17 @@ disappearTextStyle(style: Optional\) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](#pickertextstyle10类型说明)> | 是 | 所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | +| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](#pickertextstyle10类型说明)> | 是 | 过渡项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | + +> **说明:** +> +> 若选中项向上或向下的可视项数低于两项则无对应过渡项。 ### textStyle10+ textStyle(value: PickerTextStyle) -设置所有选项中除了最上、最下及选中项以外的文本样式。 +设置一般项(以选中项为基准向上或向下的第一项)的文本样式。 **原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 @@ -167,13 +171,13 @@ textStyle(value: PickerTextStyle) | 参数名 | 类型 | 必填 | 说明 | | ------ | --------------------------------------------- | ---- | ------------------------------------------------------------ | -| value | [PickerTextStyle](#pickertextstyle10类型说明) | 是 | 所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | +| value | [PickerTextStyle](#pickertextstyle10类型说明) | 是 | 一般项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | ### textStyle18+ textStyle(style: Optional\) -设置所有选项中除了最上、最下及选中项以外的文本样式。与[textStyle](#textstyle10)10+相比,style参数新增了对undefined类型的支持。 +设置一般项的文本样式。与[textStyle](#textstyle10)10+相比,style参数新增了对undefined类型的支持。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -183,7 +187,11 @@ textStyle(style: Optional\) | 参数名 | 类型 | 必填 | 说明 | | ------ | --------------------------------------------- | ---- | ------------------------------------------------------------ | -| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](#pickertextstyle10类型说明)> | 是 | 所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | +| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](#pickertextstyle10类型说明)> | 是 | 一般项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | + +> **说明:** +> +> 若选中项向上或向下可视项数低于一项则无对应一般项。 ### selectedTextStyle10+ diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-textpicker.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-textpicker.md index 8e80abe84d5080dd9f772e546a01795a2fdd7ace..c7211abd71740367b42ac47538ad3f5abd3661b2 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-textpicker.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-textpicker.md @@ -117,7 +117,7 @@ defaultPickerItemHeight(height: Optional\) disappearTextStyle(value: PickerTextStyle) -设置所有选项中最上和最下两个选项的文本颜色、字号和字体粗细。 +设置过渡项(以选中项为基准向上或向下的第二项)的文本样式。 **原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 @@ -127,13 +127,13 @@ disappearTextStyle(value: PickerTextStyle) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | +| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 过渡项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | ### disappearTextStyle18+ disappearTextStyle(style: Optional\) -设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。与[disappearTextStyle](#disappeartextstyle10)10+相比,style参数新增了对undefined类型的支持。 +设置过渡项的文本颜色、字号、字体粗细。与[disappearTextStyle](#disappeartextstyle10)10+相比,style参数新增了对undefined类型的支持。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -143,13 +143,17 @@ disappearTextStyle(style: Optional\) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | +| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 过渡项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | + +> **说明:** +> +> 若选中项向上或向下的可视项数低于两项则无对应过渡项。 ### textStyle10+ textStyle(value: PickerTextStyle) -设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。 +设置一般项(以选中项为基准向上或向下的第一项)的文本样式。 **原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 @@ -159,13 +163,13 @@ textStyle(value: PickerTextStyle) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | +| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 一般项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | ### textStyle18+ textStyle(style: Optional\) -设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。与[textStyle](#textstyle10)10+相比,style参数新增了对undefined类型的支持。 +设置一般项的文本颜色、字号、字体粗细。与[textStyle](#textstyle10)10+相比,style参数新增了对undefined类型的支持。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -175,7 +179,11 @@ textStyle(style: Optional\) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | +| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 一般项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | + +> **说明:** +> +> 若选中项向上或向下可视项数低于一项则无对应一般项。 ### selectedTextStyle10+ diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-timepicker.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-timepicker.md index bdaf9deab3780274e341a5504b779f3e854c72f5..0c9eb20d89e6d99576e04598b5816d56494b7189 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-timepicker.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-basic-components-timepicker.md @@ -130,7 +130,7 @@ useMilitaryTime(isMilitaryTime: Optional\) disappearTextStyle(value: PickerTextStyle) -设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。 +设置过渡项(以选中项为基准向上或向下的第二项)的文本样式。 **原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 @@ -140,13 +140,13 @@ disappearTextStyle(value: PickerTextStyle) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 所有选项中最上和最下两个选项的文本颜色、字号和字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | +| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 过渡项的文本颜色、字号和字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | ### disappearTextStyle18+ disappearTextStyle(style: Optional\) -设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。与[disappearTextStyle](#disappeartextstyle10)10+相比,style参数新增了对undefined类型的支持。 +设置过渡项的文本颜色、字号、字体粗细。与[disappearTextStyle](#disappeartextstyle10)10+相比,style参数新增了对undefined类型的支持。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -156,13 +156,17 @@ disappearTextStyle(style: Optional\) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | +| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 过渡项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
} | + +> **说明:** +> +> 若选中项向上或向下的可视项数低于两项则无对应过渡项。 ### textStyle10+ textStyle(value: PickerTextStyle) -设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。 +设置一般项(以选中项为基准向上或向下的第一项)的文本样式。 **原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 @@ -172,13 +176,13 @@ textStyle(value: PickerTextStyle) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | +| value | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 是 | 一般项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | ### textStyle18+ textStyle(style: Optional\) -设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。与[textStyle](#textstyle10)10+相比,style参数新增了对undefined类型的支持。 +设置一般项的文本颜色、字号、字体粗细。与[textStyle](#textstyle10)10+相比,style参数新增了对undefined类型的支持。 **原子化服务API:** 从API version 18开始,该接口支持在原子化服务中使用。 @@ -188,7 +192,11 @@ textStyle(style: Optional\) | 参数名 | 类型 | 必填 | 说明 | | ------ | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | -| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | +| style | [Optional](ts-universal-attributes-custom-property.md#optional12)\<[PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明)> | 是 | 一般项的文本颜色、字号、字体粗细。
当style的值为undefined时,默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
} | + +> **说明:** +> +> 若选中项向上或向下可视项数低于一项则无对应一般项。 ### selectedTextStyle10+ diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-datepicker-dialog.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-datepicker-dialog.md index 9a2327b596fa679e4f7185deeb2c66acccd39081..9e2f1b275da285ec0d45eed619c334ec3e6c0e9a 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-datepicker-dialog.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-datepicker-dialog.md @@ -47,8 +47,8 @@ static show(options?: DatePickerDialogOptions) | useMilitaryTime10+ | boolean | 否 | 展示时间是否为24小时制,true表示显示24小时制,false表示显示12小时制。
默认值:false
**说明:**
当展示时间为12小时制时,上下午与小时无联动关系。
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | lunarSwitch10+ | boolean | 否 | 是否展示切换农历的开关,true表示展示开关,false表示不展示开关。
默认值:false
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | lunarSwitchStyle14+ | [LunarSwitchStyle](#lunarswitchstyle14类型说明) | 否 | 设置农历开关颜色样式。
默认值:{ selectedColor: `$r('sys.color.ohos_id_color_text_primary_actived')`, unselectedColor: `$r('sys.color.ohos_id_color_switch_outline_off')`, strokeColor: Color.White }
**原子化服务API:** 从API version 14开始,该接口支持在原子化服务中使用。 | -| disappearTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | -| textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | +| disappearTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置过渡项(以选中项为基准向上或向下的第二项)的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | +| textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置一般项(以选中项为基准向上或向下的第一项)的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | selectedTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置选中项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff007dff',
font: {
size: '20fp',
weight: FontWeight.Medium
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。| | acceptButtonStyle12+ | [PickerDialogButtonStyle](#pickerdialogbuttonstyle12类型说明) | 否 | 设置确认按钮显示样式、样式和重要程度、角色、背景色、圆角、文本颜色、字号、字体粗细、字体样式、字体列表、按钮是否默认响应Enter键。
**说明:**
1.acceptButtonStyle与cancelButtonStyle中最多只能有一个primary字段配置为true,如果同时设置为true,则primary字段不生效,保持默认值false。
2.按钮高度默认40vp,在关怀模式-大字体场景下高度不变,即使按钮样式设置为圆角矩形[ROUNDED_RECTANGLE](ts-basic-components-button.md#buttontype枚举说明),呈现效果依然是胶囊型按钮[Capsule](ts-basic-components-button.md#buttontype枚举说明)。
**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。| | cancelButtonStyle12+ | [PickerDialogButtonStyle](#pickerdialogbuttonstyle12类型说明) | 否 | 设置取消按钮显示样式、样式和重要程度、角色、背景色、圆角、文本颜色、字号、字体粗细、字体样式、字体列表、按钮是否默认响应Enter键。
**说明:**
1.acceptButtonStyle与cancelButtonStyle中最多只能有一个primary字段配置为true,如果同时设置为true,则primary字段不生效,保持默认值false。
2.按钮高度默认40vp,在关怀模式-大字体场景下高度不变,即使按钮样式设置为圆角矩形[ROUNDED_RECTANGLE](ts-basic-components-button.md#buttontype枚举说明),呈现效果依然是胶囊型按钮[Capsule](ts-basic-components-button.md#buttontype枚举说明)。
**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。| diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-textpicker-dialog.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-textpicker-dialog.md index f9b1182aa5d9dcc43bd9c1c3ab5ed91fe037be0e..214e72d23bba4bf49bdd2c8ab9f4a2af0970fde9 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-textpicker-dialog.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-textpicker-dialog.md @@ -43,8 +43,8 @@ static show(options?: TextPickerDialogOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | defaultPickerItemHeight | number \| string | 否 | 设置选择器中选项的高度。number类型取值范围:[0, +∞),string类型仅支持number类型取值的字符串形式,例如"56"。
默认值:选中项56vp,非选中项36vp。设置该参数后,选中项与非选中项的高度均为所设置的值。
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | -| disappearTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | -| textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | +| disappearTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置过渡项(以选中项为基准向上或向下的第二项)的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | +| textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置一般项(以选中项为基准向上或向下的第一项)的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | selectedTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置选中项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff007dff',
font: {
size: '20fp',
weight: FontWeight.Medium
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | acceptButtonStyle12+ | [PickerDialogButtonStyle](ts-methods-datepicker-dialog.md#pickerdialogbuttonstyle12类型说明) | 否 | 设置确认按钮显示样式、样式和重要程度、角色、背景色、圆角、文本颜色、字号、字体粗细、字体样式、字体列表、按钮是否默认响应Enter键。
**说明:**
1.acceptButtonStyle与cancelButtonStyle中最多只能有一个primary字段配置为true,如果同时设置为true,则primary字段不生效,保持默认值false。
2.按钮高度默认40vp,在关怀模式-大字体场景下高度不变,即使按钮样式设置为圆角矩形[ROUNDED_RECTANGLE](ts-basic-components-button.md#buttontype枚举说明),呈现效果依然是胶囊型按钮[Capsule](ts-basic-components-button.md#buttontype枚举说明)。
**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。| | cancelButtonStyle12+ | [PickerDialogButtonStyle](ts-methods-datepicker-dialog.md#pickerdialogbuttonstyle12类型说明) | 否 | 设置取消按钮显示样式、样式和重要程度、角色、背景色、圆角、文本颜色、字号、字体粗细、字体样式、字体列表、按钮是否默认响应Enter键。
**说明:**
1.acceptButtonStyle与cancelButtonStyle中最多只能有一个primary字段配置为true,如果同时设置为true,则primary字段不生效,保持默认值false。
2.按钮高度默认40vp,在关怀模式-大字体场景下高度不变,即使按钮样式设置为圆角矩形[ROUNDED_RECTANGLE](ts-basic-components-button.md#buttontype枚举说明),呈现效果依然是胶囊型按钮[Capsule](ts-basic-components-button.md#buttontype枚举说明)。
**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。| diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-timepicker-dialog.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-timepicker-dialog.md index a6ca662215519b43bc0af2490363604207b45286..248dbf8013a7c72ce7077e178b68d2bbccf4edf4 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-timepicker-dialog.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-methods-timepicker-dialog.md @@ -43,8 +43,8 @@ static show(options?: TimePickerDialogOptions) | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | | useMilitaryTime | boolean | 否 | 是否使用24小时制展示时间,默认为12小时制。
默认值:false
**说明:** 当展示时间为12小时制时,上下午与小时无联动关系。
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | -| disappearTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置所有选项中最上和最下两个选项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | -| textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置所有选项中除了最上、最下及选中项以外的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | +| disappearTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置过渡项(以选中项为基准向上或向下的第二项)的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '14fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | +| textStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置一般项(以选中项为基准向上或向下的第一项)的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff182431',
font: {
size: '16fp',
weight: FontWeight.Regular
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | selectedTextStyle10+ | [PickerTextStyle](ts-basic-components-datepicker.md#pickertextstyle10类型说明) | 否 | 设置选中项的文本颜色、字号、字体粗细。
默认值:
{
color: '#ff007dff',
font: {
size: '20fp',
weight: FontWeight.Medium
}
}
**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。 | | acceptButtonStyle12+ | [PickerDialogButtonStyle](ts-methods-datepicker-dialog.md#pickerdialogbuttonstyle12类型说明) | 否 | 设置确认按钮显示样式、样式和重要程度、角色、背景色、圆角、文本颜色、字号、字体粗细、字体样式、字体列表、按钮是否默认响应Enter键。
**说明:**
1.acceptButtonStyle与cancelButtonStyle中最多只能有一个primary字段配置为true,如果同时设置为true,则primary字段不生效,保持默认值false。
2.按钮高度默认40vp,在关怀模式-大字体场景下高度不变,即使按钮样式设置为圆角矩形[ROUNDED_RECTANGLE](ts-basic-components-button.md#buttontype枚举说明),呈现效果依然是胶囊型按钮[Capsule](ts-basic-components-button.md#buttontype枚举说明)。
**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。| | cancelButtonStyle12+ | [PickerDialogButtonStyle](ts-methods-datepicker-dialog.md#pickerdialogbuttonstyle12类型说明) | 否 | 设置取消按钮显示样式、样式和重要程度、角色、背景色、圆角、文本颜色、字号、字体粗细、字体样式、字体列表、按钮是否默认响应Enter键。
**说明:**
1.acceptButtonStyle与cancelButtonStyle中最多只能有一个primary字段配置为true,如果同时设置为true,则primary字段不生效,保持默认值false。
2.按钮高度默认40vp,在关怀模式-大字体场景下高度不变,即使按钮样式设置为圆角矩形[ROUNDED_RECTANGLE](ts-basic-components-button.md#buttontype枚举说明),呈现效果依然是胶囊型按钮[Capsule](ts-basic-components-button.md#buttontype枚举说明)。
**原子化服务API:** 从API version 12开始,该接口支持在原子化服务中使用。|