From 0594182ba1c615fc9522697d7f66c7fbfd403d12 Mon Sep 17 00:00:00 2001 From: zhengqiyi Date: Tue, 18 Oct 2022 15:44:12 +0800 Subject: [PATCH] change indexer docs Signed-off-by: zhengqiyi --- .../arkui-ts/ts-container-alphabet-indexer.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md index 39484c97ae..9d90b27886 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-container-alphabet-indexer.md @@ -20,8 +20,8 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number}) | 参数名 | 参数类型 | 必填 | 参数描述 | | -------- | -------- | -------- | -------- | -| arrayValue | Array<string> | 是 | 字母索引字符串数组。 | -| selected | number | 是 | 初始选中项索引值。 | +| arrayValue | Array<string> | 是 | 字母索引字符串数组,不可设置为空。 | +| selected | number | 是 | 初始选中项索引值,若超出索引值范围,则取默认值0。 | ## 属性 @@ -29,19 +29,19 @@ AlphabetIndexer(value: {arrayValue: Array<string>, selected: number}) | 名称 | 参数类型 | 描述 | | ----------------------- | --------------- | ----------------------------------------------------------- | -| color | [ResourceColor](ts-types.md#resourcecolor) | 设置文字颜色。 | -| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 设置选中项文字颜色。 | -| popupColor | [ResourceColor](ts-types.md#resourcecolor) | 设置提示弹窗文字颜色。 | -| selectedBackgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置选中项背景颜色。 | -| popupBackground | [ResourceColor](ts-types.md#resourcecolor) | 设置提示弹窗背景色。 | -| usingPopup | boolean | 设置是否使用提示弹窗。 | -| selectedFont | [Font](ts-types.md#font) | 设置选中项文字样式。 | -| popupFont | [Font](ts-types.md#font) | 设置提示弹窗字体样式。 | -| font | [Font](ts-types.md#font) | 设置字母索引条默认字体样式。 | -| itemSize | string \| number | 设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。 | -| alignStyle | IndexerAlign | 设置字母索引条弹框的对齐样式,支持弹窗显示在索引条右侧和左侧。
默认值:IndexerAlign.Right | -| selected | number | 设置选中项索引值。 | -| popupPosition | [Position](ts-types.md#position8) | 设置弹出窗口相对于索引器条上边框中点的位置。 | +| color | [ResourceColor](ts-types.md#resourcecolor) | 设置文字颜色。
默认值:0x99000000。 | +| selectedColor | [ResourceColor](ts-types.md#resourcecolor) | 设置选中项文字颜色。
默认值:0xFF254FF7。 | +| popupColor | [ResourceColor](ts-types.md#resourcecolor) | 设置提示弹窗文字颜色。
默认值:0xFF254FF7。 | +| selectedBackgroundColor | [ResourceColor](ts-types.md#resourcecolor) | 设置选中项背景颜色。
默认值:0x1F0A59F7。 | +| popupBackground | [ResourceColor](ts-types.md#resourcecolor) | 设置提示弹窗背景色。
默认值:0xFFF1F3F5。 | +| usingPopup | boolean | 设置是否使用提示弹窗。
默认值:false。 | +| selectedFont | [Font](ts-types.md#font) | 设置选中项文字样式。
默认值:
{
fontSize:10,
fontStyle:FontStyle.Normal,
fontWeight:FontWeight.Normal,
fontFamily:HarmonyOS Sans
} | +| popupFont | [Font](ts-types.md#font) | 设置提示弹窗字体样式。
默认值:
{
fontSize:10,
fontStyle:FontStyle.Normal,
fontWeight:FontWeight.Normal,
fontFamily:HarmonyOS Sans
} | +| font | [Font](ts-types.md#font) | 设置字母索引条默认字体样式。
默认值:
{
fontSize:10,
fontStyle:FontStyle.Normal,
fontWeight:FontWeight.Normal,
fontFamily:HarmonyOS Sans
} | +| itemSize | string \| number | 设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。
默认值:24.0。 | +| alignStyle | IndexerAlign | 设置字母索引条弹框的对齐样式,支持弹窗显示在索引条右侧和左侧。
默认值:IndexerAlign.Right。 | +| selected | number | 设置选中项索引值。
默认值:0。 | +| popupPosition | [Position](ts-types.md#position8) | 设置弹出窗口相对于索引器条上边框中点的位置。
默认值:{x:96.0, y:48.0}。 | ## IndexerAlign枚举说明 -- GitLab