!13841 分段按钮icon添加无障碍文本接口

Merge pull request !13841 from zhaoyong/segmentbutton
This commit is contained in:
openharmony_ci 2024-09-25 12:47:31 +00:00 committed by Gitee
commit 263fdc0f11
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -59,6 +59,30 @@ interface SegmentButtonTextItem {
* @since 12
*/
text: ResourceStr;
/**
* The accessibilityLevel of buttonItem.
*
* @type { ?string }
* @default "auto"
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityLevel?: string;
/**
* The accessibilityDescription of buttonItem.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityDescription?: ResourceStr;
}
/**
@ -98,6 +122,18 @@ interface SegmentButtonIconItem {
*/
icon: ResourceStr;
/**
* The accessibilityText of icon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
iconAccessibilityText?: ResourceStr;
/**
* The icon of icon only item in the selected state.
*
@ -116,6 +152,42 @@ interface SegmentButtonIconItem {
* @since 12
*/
selectedIcon: ResourceStr;
/**
* The accessibilityText of selectedIcon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
selectedIconAccessibilityText?: ResourceStr;
/**
* The accessibilityLevel of buttonItem.
*
* @type { ?string }
* @default "auto"
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityLevel?: string;
/**
* The accessibilityDescription of buttonItem.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityDescription?: ResourceStr;
}
/**
@ -155,6 +227,18 @@ interface SegmentButtonIconTextItem {
*/
icon: ResourceStr;
/**
* The accessibilityText of icon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
iconAccessibilityText?: ResourceStr;
/**
* The icon of icon and text item in the selected state.
*
@ -174,6 +258,18 @@ interface SegmentButtonIconTextItem {
*/
selectedIcon: ResourceStr;
/**
* The accessibilityText of selectedIcon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
selectedIconAccessibilityText?: ResourceStr;
/**
* The text of icon and text item.
*
@ -192,6 +288,30 @@ interface SegmentButtonIconTextItem {
* @since 12
*/
text: ResourceStr;
/**
* The accessibilityLevel of buttonItem.
*
* @type { ?string }
* @default "auto"
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityLevel?: string;
/**
* The accessibilityDescription of buttonItem.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityDescription?: ResourceStr;
}
/**
@ -780,6 +900,18 @@ interface SegmentButtonItemOptionsConstructorOptions {
*/
icon?: ResourceStr;
/**
* The accessibilityText of icon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
iconAccessibilityText?: ResourceStr;
/**
* The icon of icon and text item in the selected state.
*
@ -799,6 +931,18 @@ interface SegmentButtonItemOptionsConstructorOptions {
*/
selectedIcon?: ResourceStr;
/**
* The accessibilityText of selectedIcon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
selectedIconAccessibilityText?: ResourceStr;
/**
* The text of icon and text item.
*
@ -817,6 +961,30 @@ interface SegmentButtonItemOptionsConstructorOptions {
* @since 12
*/
text?: ResourceStr;
/**
* The accessibilityLevel of buttonItem.
*
* @type { ?string }
* @default "auto"
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityLevel?: string;
/**
* The accessibilityDescription of buttonItem.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityDescription?: ResourceStr;
}
/**
@ -855,6 +1023,18 @@ declare class SegmentButtonItemOptions {
*/
icon?: ResourceStr;
/**
* The accessibilityText of icon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
iconAccessibilityText?: ResourceStr;
/**
* The icon of selected item.
*
@ -874,6 +1054,18 @@ declare class SegmentButtonItemOptions {
*/
selectedIcon?: ResourceStr;
/**
* The accessibilityText of selectedIcon.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
selectedIconAccessibilityText?: ResourceStr;
/**
* The text of item.
*
@ -893,6 +1085,30 @@ declare class SegmentButtonItemOptions {
*/
text?: ResourceStr;
/**
* The accessibilityLevel of buttonItem.
*
* @type { ?string }
* @default "auto"
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityLevel?: string;
/**
* The accessibilityDescription of buttonItem.
*
* @type { ?ResourceStr }
* @default ""
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 14
*/
accessibilityDescription?: ResourceStr;
/**
* The constructor used to create a SegmentButtonOptionsArray object.
*