diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-accessibility.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-accessibility.md index 6920fc6b5c678bdf970c69564acc57ae72572a0b..e940c03ed2da3f12084710ef551db3675d746633 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-accessibility.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-accessibility.md @@ -182,7 +182,7 @@ accessibilityChecked(isCheck: boolean) | 参数名 | 类型 | 必填 | 说明 | | ------- | ------- | ---- | ------------------------------------------------------------ | -| isCheck | boolean | 是 | 用于表示组件是否被选中。
支持的值为:
true:当前组件被选中。
false:当前组件未被选中。
undefined:由组件自行确定选中状态。
默认值:undefined
**说明:**
1. 使用该接口设置true或false后,会默认修改该组件的checkable属性为true。
2. 使用该接口设置true或false后,如果需要同时使用accessibilitySelected接口则需要将accessibilitySelected接口的参数设置为undefined。 | +| isCheck | boolean | 是 | 用于表示组件是否被选中。
支持的值为:
true:当前组件被选中。
false:当前组件未被选中。
undefined:由组件自行确定选中状态。
默认值:undefined
**说明:**
1. 使用该接口设置true或false后,会默认修改该组件的checkable属性为true。
2. accessibilityChecked属性代表组件是多选模式,而[accessibilitySelected](ts-universal-attributes-accessibility.md#accessibilityselected13)属性代表组件是单选模式,组件不能同时存在两种选择模式,会造成无障碍状态冲突,导致屏幕朗读等无障碍辅助应用无法正确识别选中状态。如使用当前接口设置组件为多选模式(设置为true、false),则需要保证未使用accessibilitySelected函数设置属性为true或者false,如果已设置,需使用accessibilitySelected函数设置accessibilitySelected属性为undefined模式。 | ## accessibilitySelected13+ @@ -200,7 +200,7 @@ accessibilitySelected(isSelect: boolean) | 参数名 | 类型 | 必填 | 说明 | | -------- | ------- | ---- | ------------------------------------------------------------ | -| isSelect | boolean | 是 | 用于表示组件是否被选中。
支持的值为:
true:当前组件被选中。
false:当前组件未被选中。
undefined:由组件自行确定选中状态。
默认值:undefined
**说明:**
1. 使用该接口设置true或false后,如果需要同时使用accessibilityChecked接口则需要将accessibilityChecked接口的参数设置为undefined。 | +| isSelect | boolean | 是 | 用于表示组件是否被选中。
支持的值为:
true:当前组件被选中。
false:当前组件未被选中。
undefined:由组件自行确定选中状态。
默认值:undefined
**说明:**
1. [accessibilityChecked](ts-universal-attributes-accessibility.md#accessibilitychecked13)属性代表组件是多选模式,而accessibilitySelected属性代表组件是单选模式,组件不能同时存在两种选择模式,会造成无障碍状态冲突,导致屏幕朗读等无障碍辅助应用无法正确识别选中状态。如使用当前接口设置组件为单选模式(true、false),则需要保证未使用accessibilityChecked函数设置属性为true或者false,如果已设置,需使用accessibilityChecked函数设置accessibilityChecked属性为undefined模式。 | ## accessibilityRole18+