mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
去除ide对设备支持描述的字段
Signed-off-by: kangchongtao <kangchongtao@huawei.com> Change-Id: I6adfa522a3cf827b634abb94bd68c0647c1c8c56 Signed-off-by: kangchongtao <kangchongtao@huawei.com>
This commit is contained in:
parent
0feb11c4ea
commit
7733fd6bbe
5
api/@internal/component/ets/progress.d.ts
vendored
5
api/@internal/component/ets/progress.d.ts
vendored
@ -51,35 +51,30 @@
|
||||
declare enum ProgressType {
|
||||
/**
|
||||
* Linear progress bar style.
|
||||
* @devices phone, tablet, car.
|
||||
* @since 8
|
||||
*/
|
||||
Linear,
|
||||
|
||||
/**
|
||||
* Ring progress bar.
|
||||
* @devices phone, tablet, car.
|
||||
* @since 8
|
||||
*/
|
||||
Ring,
|
||||
|
||||
/**
|
||||
* Eclipse progress bar.
|
||||
* @devices phone, tablet, car.
|
||||
* @since 8
|
||||
*/
|
||||
Eclipse,
|
||||
|
||||
/**
|
||||
* ScaleRing progress bar.
|
||||
* @devices phone, tablet, car.
|
||||
* @since 8
|
||||
*/
|
||||
ScaleRing,
|
||||
|
||||
/**
|
||||
* Capsule progress bar.
|
||||
* @devices phone, tablet, car.
|
||||
* @since 8
|
||||
*/
|
||||
Capsule,
|
||||
|
1
api/@ohos.settings.d.ts
vendored
1
api/@ohos.settings.d.ts
vendored
@ -19,7 +19,6 @@ import { DataAbilityHelper } from './ability/dataAbilityHelper';
|
||||
* This module provides settings data access abilities.
|
||||
*
|
||||
* @since 7
|
||||
* @devices phone, tablet, tv, wearable, car
|
||||
* @syscap SystemCapability.Applications.settings.Core
|
||||
* @import import settings from '@ohos.settings'
|
||||
* @permission N/A
|
||||
|
3
api/@system.request.d.ts
vendored
3
api/@system.request.d.ts
vendored
@ -267,9 +267,6 @@ export interface OnDownloadCompleteOptions {
|
||||
complete?: () => void;
|
||||
}
|
||||
|
||||
/**
|
||||
* @devices tv, phone, tablet, wearable
|
||||
*/
|
||||
export default class Request {
|
||||
/**
|
||||
* Upload files.
|
||||
|
@ -9,14 +9,6 @@
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性支持所有的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"syntax": {
|
||||
"type": "array",
|
||||
"description": "语法",
|
||||
@ -26,14 +18,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "支持<length>、<color>、<percentage> 、<line-width>、<line-style>、<repeat-style>、<time>、<transform-list>等内置类型单个或多个(||分割)"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -48,14 +32,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "版本号例如:v3.0"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -69,14 +45,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "属性的描述文档"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -108,14 +76,6 @@
|
||||
"time"
|
||||
]
|
||||
}
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -131,14 +91,6 @@
|
||||
"type": "string",
|
||||
"description": "可选值"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
}
|
||||
@ -160,14 +112,6 @@
|
||||
"type": "string",
|
||||
"description": "指令名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性支持所有的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "array",
|
||||
"description": "版本",
|
||||
@ -177,14 +121,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "版本号eg: v3.0"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承指令支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -198,14 +134,6 @@
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承指令支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -224,14 +152,6 @@
|
||||
"type": "string",
|
||||
"description": "伪类名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该伪类支持所有的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"type": "array",
|
||||
"description": "版本",
|
||||
@ -241,14 +161,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "版本号eg: v3.0"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该伪类继承指令支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -262,14 +174,6 @@
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该伪类继承指令支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -5,34 +5,28 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "'Logic control block.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "'Logic control block."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
|
@ -5,22 +5,18 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <button> component includes capsule, circle, text, arc, and download buttons.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <button> component includes capsule, circle, text, arc, and download buttons."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "type",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Dynamic modification is not supported. If this attribute is not set, capsule-like buttons are displayed. Different from the capsule button, the four rounded corners of a capsule-like button can be configured using border-radius. Available button types are as follows: capsule: a capsule button with fillets, background color, and text. circle: a circle button which can be used to place icons. text: a text button which displays the text only. arc: an arc button. download: a download button. The download progress bar is added.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Dynamic modification is not supported. If this attribute is not set, capsule-like buttons are displayed. Different from the capsule button, the four rounded corners of a capsule-like button can be configured using border-radius. Available button types are as follows: capsule: a capsule button with fillets, background color, and text. circle: a circle button which can be used to place icons. text: a text button which displays the text only. arc: an arc button. download: a download button. The download progress bar is added."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -38,36 +34,30 @@
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Text value of the button. This attribute is unavailable for circle buttons.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Text value of the button. This attribute is unavailable for circle buttons."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "icon",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Path of the button icon. This parameter is valid only for the circle button. The supported icon formatformats are JPG, PNG, and SVG.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Path of the button icon. This parameter is valid only for the circle button. The supported icon formatformats are JPG, PNG, and SVG."
|
||||
}
|
||||
],
|
||||
"type": "url"
|
||||
},
|
||||
{
|
||||
"name": "placement",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Position of the button icon in text. This attribute is valid only when type is not set. Available values are as follows: start: The button icon is at the beginning of the text. end: The button icon is at the end of the text. top: The button icon is at the top of the text.bottom: The button icon is at the bottom of the text.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Position of the button icon in text. This attribute is valid only when type is not set. Available values are as follows: start: The button icon is at the beginning of the text. end: The button icon is at the end of the text. top: The button icon is at the top of the text.bottom: The button icon is at the bottom of the text."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -88,12 +78,10 @@
|
||||
},
|
||||
{
|
||||
"name": "waiting",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Waiting status. When waiting is set to true, the waiting transition is displayed on the left of the text. This attribute is unavailable for download buttons and smart watches.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Waiting status. When waiting is set to true, the waiting transition is displayed on the left of the text. This attribute is unavailable for download buttons and smart watches."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -108,48 +96,40 @@
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -164,24 +144,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -199,24 +175,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -240,12 +212,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -260,72 +230,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -340,7 +298,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -355,19 +312,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -384,11 +338,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,46 +5,38 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <calendar> component displays a calendar.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <calendar> component displays a calendar."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "date",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "offdays",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "cardcalendar",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -59,36 +51,30 @@
|
||||
},
|
||||
{
|
||||
"name": "startdayofweek",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "calendardata",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "showholiday",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -103,60 +89,50 @@
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -174,24 +150,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -215,12 +187,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -235,72 +205,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -315,7 +273,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -330,19 +287,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -359,21 +313,17 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "selectedchange",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "requestdata",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,22 +5,18 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <chart> component displays line charts, gauge charts, and bar charts.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <chart> component displays line charts, gauge charts, and bar charts."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "type",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Chart type. Dynamic modification is not supported. Available values include: bar: bar chart. line: line chart. gauge: gauge chart (not supported by lite devices).",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Chart type. Dynamic modification is not supported. Available values include: bar: bar chart. line: line chart. gauge: gauge chart (not supported by lite devices)."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -47,48 +43,40 @@
|
||||
},
|
||||
{
|
||||
"name": "options",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Chart parameters. You must set parameters for bar charts and line charts. Parameter settings for gauge charts do not take effect. You can set the minimum value, maximum value, scale, and line width of the x-axis or y-axis, whether to display the x-axis or y-axis, and whether the line is smooth. Dynamic modification is not supported.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Chart parameters. You must set parameters for bar charts and line charts. Parameter settings for gauge charts do not take effect. You can set the minimum value, maximum value, scale, and line width of the x-axis or y-axis, whether to display the x-axis or y-axis, and whether the line is smooth. Dynamic modification is not supported."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "datasets",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Data set. You must set data sets for bar charts and line charts. Data set for a gauge chart does not take effect. You can set multiple datasets and their background colors.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Data set. You must set data sets for bar charts and line charts. Data set for a gauge chart does not take effect. You can set multiple datasets and their background colors."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "segments",
|
||||
"supportedDevices": ["phone"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Data structures used by progress, loading, and rainbow charts. DataSegment is available for progress and loading charts.Array<DataSegment> is available for rainbow charts. A maximum of nine DataSegment are supported in the array.",
|
||||
"supportedDevices": ["phone"]
|
||||
"name": "Data structures used by progress, loading, and rainbow charts. DataSegment is available for progress and loading charts.Array<DataSegment> is available for rainbow charts. A maximum of nine DataSegment are supported in the array."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "effects",
|
||||
"supportedDevices": ["phone"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether to enable the effects for progress and rainbow charts.",
|
||||
"supportedDevices": ["phone"]
|
||||
"name": "Whether to enable the effects for progress and rainbow charts."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -118,60 +106,50 @@
|
||||
},
|
||||
{
|
||||
"name": "percent",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Percentage of the current value to the total value. The value ranges from 0 to 100.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Percentage of the current value to the total value. The value ranges from 0 to 100."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -186,24 +164,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -221,24 +195,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -262,12 +232,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -282,72 +250,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -362,7 +318,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -377,19 +332,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -406,11 +358,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,34 +5,28 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <clock> component displays a clock.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <clock> component displays a clock."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "clockconfig",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "showdigit",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -47,36 +41,30 @@
|
||||
},
|
||||
{
|
||||
"name": "hourswest",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -94,24 +82,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -135,12 +119,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -155,72 +137,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -235,7 +205,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -250,19 +219,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
|
@ -5,22 +5,18 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <divider> component is used to separate content blocks and content elements. It can be used for the list or interface layout.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <divider> component is used to separate content blocks and content elements. It can be used for the list or interface layout."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "vertical",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether to use the vertical divider. The default value is false, indicating that the horizontal divider is used.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether to use the vertical divider. The default value is false, indicating that the horizontal divider is used."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -35,60 +31,50 @@
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -106,24 +92,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -147,12 +129,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -167,72 +147,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -247,7 +215,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -262,19 +229,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
|
@ -5,82 +5,68 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <image> component is used to render and display images.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <image> component is used to render and display images."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "src",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Image path, which supports both local and cloud paths. The supported image formats include PNG, JPG, SVG, and GIF. Image path. The supported image formats include PNG and JPG.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Image path, which supports both local and cloud paths. The supported image formats include PNG, JPG, SVG, and GIF. Image path. The supported image formats include PNG and JPG."
|
||||
}
|
||||
],
|
||||
"type": "url"
|
||||
},
|
||||
{
|
||||
"name": "alt",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Placeholder image displayed during image loading.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Placeholder image displayed during image loading."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -95,24 +81,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -130,24 +112,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -171,12 +149,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -191,72 +167,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -271,7 +235,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -286,19 +249,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -315,31 +275,25 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "complete",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when an image is successfully loaded.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when an image is successfully loaded."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "error",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when an exception occurs during image loading.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when an exception occurs during image loading."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,22 +5,18 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <input> component provides an interactive interface to receive user input. It can be a radio button, check box, button, single-line text box, etc.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <input> component provides an interactive interface to receive user input. It can be a radio button, check box, button, single-line text box, etc."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "type",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Type of the input component. Available values include text (Rich), email (Rich), date (Rich), time (Rich), number (Rich), password (Rich), button.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Type of the input component. Available values include text (Rich), email (Rich), date (Rich), time (Rich), number (Rich), password (Rich), button."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -32,12 +28,10 @@
|
||||
},
|
||||
{
|
||||
"name": "checked",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is checked or not.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is checked or not."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -52,12 +46,10 @@
|
||||
},
|
||||
{
|
||||
"name": "dir",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Specify the text direction of an element.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Specify the text direction of an element."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -75,72 +67,60 @@
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Name of the input component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Name of the input component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Value of the input component. When type is radio, this attribute is mandatory and the value must be unique for radio buttons with the same name.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Value of the input component. When type is radio, this attribute is mandatory and the value must be unique for radio buttons with the same name."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -155,24 +135,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -190,24 +166,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -231,12 +203,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -251,72 +221,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -331,7 +289,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -346,19 +303,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -375,21 +329,17 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "change",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when the content entered in the text box changes. The latest textsmost recent text entered by the user is returned.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when the content entered in the text box changes. The latest textsmost recent text entered by the user is returned."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,22 +5,18 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <progress> component is used to provide a progress bar that displays the progress of content loading or operation processing.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <progress> component is used to provide a progress bar that displays the progress of content loading or operation processing."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "type",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Type of the progress bar, which cannot be changed dynamically. Available values are as follows: horizontal: linear progress bar. circular (Rich): loading progress bar. ring (Rich): ring progress bar. scale-ring (Rich): ring progress bar with a scale. arc: arc progress bar.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Type of the progress bar, which cannot be changed dynamically. Available values are as follows: horizontal: linear progress bar. circular (Rich): loading progress bar. ring (Rich): ring progress bar. scale-ring (Rich): ring progress bar with a scale. arc: arc progress bar."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -47,36 +43,30 @@
|
||||
},
|
||||
{
|
||||
"name": "percent",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Current progress. The value ranges from 0 to 100.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Current progress. The value ranges from 0 to 100."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "secondarypercent",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Secondary progress. The value ranges from 0 to 100.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Secondary progress. The value ranges from 0 to 100."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "clockwise",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the ring progress bar uses clockwise.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the ring progress bar uses clockwise."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -91,60 +81,50 @@
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -162,24 +142,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -203,12 +179,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -223,72 +197,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -303,7 +265,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -318,19 +279,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -347,11 +305,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,70 +5,58 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <span> child component of <text> is used as a text modifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <span> child component of <text> is used as a text modifier."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -86,24 +74,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -127,12 +111,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -147,72 +129,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -227,7 +197,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -242,19 +211,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -272,8 +238,7 @@
|
||||
"supportedSubComponents": true,
|
||||
"supportedSubComponentsRestriction": [
|
||||
{
|
||||
"name": "span",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "span"
|
||||
}
|
||||
],
|
||||
"unSupportSubComponentsRestriction": [],
|
||||
|
@ -5,58 +5,48 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <text> component is used to display a piece of textual information.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <text> component is used to display a piece of textual information."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -71,24 +61,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -106,24 +92,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -147,12 +129,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -167,72 +147,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -247,7 +215,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -262,19 +229,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -291,11 +255,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -304,7 +266,6 @@
|
||||
"supportedSubComponentsRestriction": [
|
||||
{
|
||||
"name": "span",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"level": 1
|
||||
}
|
||||
],
|
||||
|
@ -5,22 +5,18 @@
|
||||
"name": "v4.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <badge> component is used to mark new events that require user attention in your application.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <badge> component is used to mark new events that require user attention in your application."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "placement",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Position of a number or dot badge. Available values are as follows: right: on the right border of the component. rightTop: in the upper right corner of the component border.left: on the left border of the component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Position of a number or dot badge. Available values are as follows: right: on the right border of the component. rightTop: in the upper right corner of the component border.left: on the left border of the component."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -38,24 +34,20 @@
|
||||
},
|
||||
{
|
||||
"name": "count",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Number of notifications displayed via the badge. The default value is 0. If the number of notifications is greater than 0, the badge changes from a dot to the number. If this attribute is not set or the value is less than or equal to 0, the badge is a dot.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Number of notifications displayed via the badge. The default value is 0. If the number of notifications is greater than 0, the badge changes from a dot to the number. If this attribute is not set or the value is less than or equal to 0, the badge is a dot."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "visible",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether to display the badge. The value true means that the badge shows up when a new notification is received. To use a number badge, set the count attribute.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether to display the badge. The value true means that the badge shows up when a new notification is received. To use a number badge, set the count attribute."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -70,24 +62,20 @@
|
||||
},
|
||||
{
|
||||
"name": "maxcount",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Maximum number of notifications. When the number of new notifications exceeds the value of this attribute, maxcount+ is displayed, for example, 99+.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Maximum number of notifications. When the number of new notifications exceeds the value of this attribute, maxcount+ is displayed, for example, 99+."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "config",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Configuration of the badge.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Configuration of the badge."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -108,7 +96,6 @@
|
||||
},
|
||||
{
|
||||
"name": "label",
|
||||
"supportedDevices": ["phone", "tablet"],
|
||||
"version": [
|
||||
{
|
||||
"name": "v6.0"
|
||||
@ -117,56 +104,47 @@
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Sets the text value for the new event alert.",
|
||||
"supportedDevices": ["phone", "tablet"]
|
||||
"name": "Sets the text value for the new event alert."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -181,24 +159,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -216,24 +190,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -257,12 +227,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -277,48 +245,40 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -333,7 +293,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -348,43 +307,36 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -401,11 +353,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,58 +5,48 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <div> component is a basic container that is used as the root node of the page structure or is used to group the content.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <div> component is a basic container that is used as the root node of the page structure or is used to group the content."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -71,24 +61,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -106,24 +92,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -147,12 +129,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -167,72 +147,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -247,12 +215,10 @@
|
||||
},
|
||||
{
|
||||
"name": "dir",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Specify the text direction of an element.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Specify the text direction of an element."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -270,7 +236,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -285,19 +250,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -314,11 +276,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,71 +5,58 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "<list-item> is a child component of <list> and is used to display items in a list.",
|
||||
"supportedDevices": ["liteWearable", "smartVision"]
|
||||
"name": "<list-item> is a child component of <list> and is used to display items in a list."
|
||||
},
|
||||
{
|
||||
"name": "<list-item> is a child component of <list> and is used to display items in a list. The width of <list-item> fills that of <list>.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "<list-item> is a child component of <list> and is used to display items in a list. The width of <list-item> fills that of <list>."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "type",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Type of the list-item. A list can contain multiple list-item types. The same type of list-items should have the same view layout after being rendered. If the type is fixed, replace the if attribute with the show attribute to ensure that the view layout remains unchanged.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Type of the list-item. A list can contain multiple list-item types. The same type of list-items should have the same view layout after being rendered. If the type is fixed, replace the if attribute with the show attribute to ensure that the view layout remains unchanged."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "section",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Matching string of the item. It takes effect when the indexer is enabled. If this attribute is not specified, the matching string is empty. This attribute cannot be modified dynamically. In a group, only the matching string set for the primary item is valid.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Matching string of the item. It takes effect when the indexer is enabled. If this attribute is not specified, the matching string is empty. This attribute cannot be modified dynamically. In a group, only the matching string set for the primary item is valid."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "sticky",
|
||||
"supportedDevices": ["tv", "wearable"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Matching string of the item. It takes effect when the indexer is enabled. If this attribute is not specified, the matching string is empty. This attribute cannot be modified dynamically. In a group, only the matching string set for the primary item is valid.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Matching string of the item. It takes effect when the indexer is enabled. If this attribute is not specified, the matching string is empty. This attribute cannot be modified dynamically. In a group, only the matching string set for the primary item is valid."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
"options": [
|
||||
{
|
||||
"name": "none",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "none"
|
||||
},
|
||||
{
|
||||
"name": "normal",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "normal"
|
||||
},
|
||||
{
|
||||
"name": "opacity",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "opacity"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "clickeffect",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"version": [
|
||||
{
|
||||
"name": "v5.0"
|
||||
@ -78,8 +65,7 @@
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Sets whether the current item has the click effect.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Sets whether the current item has the click effect."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -94,48 +80,40 @@
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -150,24 +128,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -185,24 +159,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -226,12 +196,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -246,72 +214,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -326,7 +282,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -341,19 +296,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -373,8 +325,7 @@
|
||||
"unSupportSubComponentsRestriction": [],
|
||||
"parentComponentsRestriction": [
|
||||
{
|
||||
"name": "list",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "list"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,34 +5,28 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <list> component provides a list container that presents a series of list items arranged in a column with the same width. Lists support presentations of the same data in a multiple and coherent row style, for example, images and texts.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <list> component provides a list container that presents a series of list items arranged in a column with the same width. Lists support presentations of the same data in a multiple and coherent row style, for example, images and texts."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "cachedcount",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Minimum number of cached list-items when the long list is loaded with delay. When the number of list-items cached outside the visible area is less than the value of this attribute, a requestitem event is triggered.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Minimum number of cached list-items when the long list is loaded with delay. When the number of list-items cached outside the visible area is less than the value of this attribute, a requestitem event is triggered."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "dir",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Specify the text direction of an element.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Specify the text direction of an element."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -50,64 +44,52 @@
|
||||
},
|
||||
{
|
||||
"name": "scrollbar",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Display mode of the side scroll bar. (Currently, only the vertical scroll bar is supported.) off: No display; auto: Displayed on demand (The side scroll bar is displayed when you touch it and disappears 2s later.); on: Always displayed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Display mode of the side scroll bar. (Currently, only the vertical scroll bar is supported.) off: No display; auto: Displayed on demand (The side scroll bar is displayed when you touch it and disappears 2s later.); on: Always displayed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
"options": [
|
||||
{
|
||||
"name": "off",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "off"
|
||||
},
|
||||
{
|
||||
"name": "auto",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "auto"
|
||||
},
|
||||
{
|
||||
"name": "on",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "on"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "scrolleffect",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Scroll effect. Available values are as follows: spring: Similar to the physical dynamic effect of a spring. After scrolling to the edge, you can continue to scroll for a distance based on the initial speed or by using a touch event. After you release your hand, the screen is rebounded; fade: Similar to the physical dynamic effect of fade. When you scroll to the edge, a wave shape fades. The fade changes according to the speed and scrolling distance; no: No effect after the scroll bar is moved to the edge.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Scroll effect. Available values are as follows: spring: Similar to the physical dynamic effect of a spring. After scrolling to the edge, you can continue to scroll for a distance based on the initial speed or by using a touch event. After you release your hand, the screen is rebounded; fade: Similar to the physical dynamic effect of fade. When you scroll to the edge, a wave shape fades. The fade changes according to the speed and scrolling distance; no: No effect after the scroll bar is moved to the edge."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
"options": [
|
||||
{
|
||||
"name": "spring",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "spring"
|
||||
},
|
||||
{
|
||||
"name": "fade",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "fade"
|
||||
},
|
||||
{
|
||||
"name": "no",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "divider",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether list items are separated by dividers.For details about divider styles, see divider-color, divider-height, divider-length, and divider-origin in the Styles table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether list items are separated by dividers.For details about divider styles, see divider-color, divider-height, divider-length, and divider-origin in the Styles table."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -122,38 +104,31 @@
|
||||
},
|
||||
{
|
||||
"name": "shapemode",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Shape of the side scroll bar. default: Not specified (following the theme); rect: Rectangle; round: Circle.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Shape of the side scroll bar. default: Not specified (following the theme); rect: Rectangle; round: Circle."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
"options": [
|
||||
{
|
||||
"name": "default",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "default"
|
||||
},
|
||||
{
|
||||
"name": "rect",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "rect"
|
||||
},
|
||||
{
|
||||
"name": "round",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "round"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "updateeffect",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether a dynamic effect is displayed when an item in the list is deleted or added. false: No dynamic effect is displayed; true: A dynamic effect is displayed when an item is added or deleted.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether a dynamic effect is displayed when an item in the list is deleted or added. false: No dynamic effect is displayed; true: A dynamic effect is displayed when an item is added or deleted."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -168,84 +143,70 @@
|
||||
},
|
||||
{
|
||||
"name": "initialindex",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Item displayed at the start position of the viewport when the current list is loaded for the first time. The default value is 0, indicating that the first item is displayed. If the number you set is greater than the index of the last item, the setting does not take effect. When the initialoffset attribute is set, the current attribute does not take effect.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Item displayed at the start position of the viewport when the current list is loaded for the first time. The default value is 0, indicating that the first item is displayed. If the number you set is greater than the index of the last item, the setting does not take effect. When the initialoffset attribute is set, the current attribute does not take effect."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "initialoffset",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The start offset of the viewport when the current list is loaded for the first time. The offset cannot exceed the scrolling range of the current list. Otherwise, the offset is truncated to the maximum value of the scrolling range.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The start offset of the viewport when the current list is loaded for the first time. The offset cannot exceed the scrolling range of the current list. Otherwise, the offset is truncated to the maximum value of the scrolling range."
|
||||
}
|
||||
],
|
||||
"type": "length"
|
||||
},
|
||||
{
|
||||
"name": "selected",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Selected item in the current list. The value can be a section value of any list items.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Selected item in the current list. The value can be a section value of any list items."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -260,24 +221,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -295,24 +252,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -336,12 +289,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -356,72 +307,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -436,7 +375,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -451,19 +389,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -482,7 +417,6 @@
|
||||
"supportedSubComponentsRestriction": [
|
||||
{
|
||||
"name": "list-item",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"level": 2
|
||||
}
|
||||
],
|
||||
|
@ -5,58 +5,48 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <stack> component provides a stack container where child components are successively stacked and the latter one overwrites the previous one.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <stack> component provides a stack container where child components are successively stacked and the latter one overwrites the previous one."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -71,24 +61,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -106,24 +92,21 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -147,12 +130,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -167,67 +148,56 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -242,7 +212,6 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
@ -251,11 +220,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,34 +5,28 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "The <swiper> component provides a swiper container that enables the switch of child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The <swiper> component provides a swiper container that enables the switch of child components."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "index",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Index of the child component currently displayed in the container.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Index of the child component currently displayed in the container."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "indicator",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether to enable the navigation point indicator. The default value is true.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether to enable the navigation point indicator. The default value is true."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -47,12 +41,10 @@
|
||||
},
|
||||
{
|
||||
"name": "digital",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether to enable the digital indicator. The default value is false.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether to enable the digital indicator. The default value is false."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -67,12 +59,10 @@
|
||||
},
|
||||
{
|
||||
"name": "indicatordisabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether gesture operations are disabled on the indicator. If this attribute is set to true, the indicator does not respond to clicking or dragging operations.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether gesture operations are disabled on the indicator. If this attribute is set to true, the indicator does not respond to clicking or dragging operations."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -87,12 +77,10 @@
|
||||
},
|
||||
{
|
||||
"name": "loop",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether to enable looping.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Whether to enable looping."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -107,24 +95,20 @@
|
||||
},
|
||||
{
|
||||
"name": "duration",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Duration of the animation played for switching between child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Duration of the animation played for switching between child components."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "vertical",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the swipe gesture is performed vertically. A vertical swipe uses the vertical indicator. Dynamic modification is not supported.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the swipe gesture is performed vertically. A vertical swipe uses the vertical indicator. Dynamic modification is not supported."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -139,48 +123,40 @@
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Unique ID of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Unique ID of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "style",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style declaration of a component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style declaration of a component."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "class",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Style class of a component, which is used to refer to a style table.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Style class of a component, which is used to refer to a style table."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the component is disabled. If the component is disabled, the component cannot respond to user interaction."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -195,24 +171,20 @@
|
||||
},
|
||||
{
|
||||
"name": "voicelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice label. When a voice label is triggered, the click event of the component is triggered. NOTE: The voice label takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "subscriptflag",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Voice subscript switch. Available values are as follows: auto: For the <image> and <list-item> components, if subscriptflag is set to auto, the voice subscript is turned on. For other components, if subscriptflag is set to auto, the voice subscript is turned off. on: Turn on the voice subscript. off: Turn off the voice subscript. If no customized subscript is set, the subscript is automatically accumulated from 1. NOTE The voice subscript takes effect only when the click event is set."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -230,24 +202,20 @@
|
||||
},
|
||||
{
|
||||
"name": "subscriptlabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Custom subscript. After it is set, the subscript is displayed in the way you specified. To make this attribute take effect, you need to turn on the voice subscript."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "scenelabel",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Available values are as follows: video: Video scenario. For example, to watch a video, a user can say the voiceLabel (usually the video name), play voiceLabel, see voiceLabel, or watch voiceLabel, etc. audio: Music scenario. For example, to listen to a song, a user can say the voiceLabel (usually the song name), play voiceLabel, or listen voiceLabel, etc. page: Page scenario. For example, to go to a page, a user can say the voiceLabel (usually the page name), switch to voiceLabel, go to voiceLabel, or jump to voiceLabel, etc. switch: Switch scenario. For example, to turn on or turn off a switch, a user can say the voiceLabel (usually the switch name), turn on voiceLabel, open voiceLabel, turn off voiceLabel, close voiceLabel, etc. common: Common scenario, which is triggered by the voiceLabel."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -271,12 +239,10 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitygroup",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility group. If this attribute is set to true, the component and all its child components form an entire selectable component, and the accessibility service will no longer available for the content of its child components."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -291,7 +257,6 @@
|
||||
},
|
||||
{
|
||||
"name": "cachedsize",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"version": [
|
||||
{
|
||||
"name": "v6.0"
|
||||
@ -300,15 +265,13 @@
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Sets the number of sub-elements loaded in front of and back of the current page of the swiper.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Sets the number of sub-elements loaded in front of and back of the current page of the swiper."
|
||||
}
|
||||
],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "scrolleffect",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"version": [
|
||||
{
|
||||
"name": "v6.0"
|
||||
@ -317,8 +280,7 @@
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Sets the boundary bounce effect.\nSpring: elastic physical action. After sliding to the edge, you can continue sliding for a certain distance based on the initial speed or touch event. When you release the hand, you can spring back.\nFading: The physical effect of fading. When you slide to the edge, a wave-like fading is displayed. The fading also changes according to the speed and sliding distance.\nnone: No effect is displayed when the user slides to the edge.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Sets the boundary bounce effect.\nSpring: elastic physical action. After sliding to the edge, you can continue sliding for a certain distance based on the initial speed or touch event. When you release the hand, you can spring back.\nFading: The physical effect of fading. When you slide to the edge, a wave-like fading is displayed. The fading also changes according to the speed and sliding distance.\nnone: No effect is displayed when the user slides to the edge."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -336,72 +298,60 @@
|
||||
},
|
||||
{
|
||||
"name": "accessibilitytext",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility text. If a component does not contain text information, it will not be read when the component is selected by the screen reader. In this case, the screen reader user cannot know which component is selected. To solve this problem, you can set this attribute for components without text information. When the component is selected by the screen reader, the specified accessibility text will be read, informing the user which component is selected. If a component with this attribute set contains text information, only the accessibility text will be read."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilitydescription",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility description. You can specify further explanation of the current component, for example, possible operation consequences, especially those cannot be learned from component attributes and accessibility text. You can set a detailed description text for the attribute of the component to help users understand the operation to be performed. If a component contains both text information and the accessibility description, the text is read first and then the accessibility description, when the component is selected."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accessibilityimportance",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Accessibility importance, which is used to decide whether a component can be identified by the accessibility service. The value can be auto, yes, no, or no-hide-descendants. The last value forces the screen reader to ignore the current component and all its subcomponents. yes: The current component is selectable for the accessibility service. no: The current component is not selectable for the accessibility service."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "for",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Expands the current element based on the configured data list.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Expands the current element based on the configured data list."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tid",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "The tid attribute is used to accelerate the for loop. It is used to improve the re-rendering efficiency when data in a loop changes. The tid attribute specifies the unique ID of each element in the array. If it is not specified, the index of each element in the array is used as the ID. For example, tid='id' indicates that the id attribute of each element is its unique identifier."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "if",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is added or removed.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is added or removed."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -416,12 +366,10 @@
|
||||
},
|
||||
{
|
||||
"name": "dir",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Specify the text direction of an element.",
|
||||
"supportedDevices": ["phone", "tablet", "tv", "wearable"]
|
||||
"name": "Specify the text direction of an element."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -439,7 +387,6 @@
|
||||
},
|
||||
{
|
||||
"name": "elif",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "enum",
|
||||
@ -454,19 +401,16 @@
|
||||
},
|
||||
{
|
||||
"name": "else",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "show",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "Whether the element is displayed or hidden.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Whether the element is displayed or hidden."
|
||||
}
|
||||
],
|
||||
"type": "enum",
|
||||
@ -483,11 +427,9 @@
|
||||
"events": [
|
||||
{
|
||||
"name": "click",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "Triggered when a component is clicked.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "Triggered when a component is clicked."
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,34 +5,28 @@
|
||||
"name": "v3.0"
|
||||
}
|
||||
],
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"description": [
|
||||
{
|
||||
"name": "custom component.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "custom component."
|
||||
}
|
||||
],
|
||||
"attributes": [
|
||||
{
|
||||
"name": "name",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": false,
|
||||
"description": [
|
||||
{
|
||||
"name": "custom component name.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "custom component name."
|
||||
}
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "src",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"],
|
||||
"required": true,
|
||||
"description": [
|
||||
{
|
||||
"name": "custom component path.",
|
||||
"supportedDevices": ["phone", "tablet", "wearable", "tv", "car"]
|
||||
"name": "custom component path."
|
||||
}
|
||||
],
|
||||
"type": "url"
|
||||
|
@ -15,26 +15,9 @@
|
||||
"type": "string",
|
||||
"description": "版本号例如:V3.0"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
}
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性支持所有的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -43,14 +26,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "属性的描述文档"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -66,14 +41,6 @@
|
||||
"type": "string",
|
||||
"description": "属性名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"required": {
|
||||
"type": "boolean",
|
||||
"description": "表示属性是否为组件的必填属性"
|
||||
@ -86,14 +53,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "属性的描述文档"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -112,14 +71,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "属性值"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
@ -139,14 +90,6 @@
|
||||
"type": "string",
|
||||
"description": "事件名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"description": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -155,14 +98,6 @@
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "事件的描述文档"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -185,14 +120,6 @@
|
||||
"type": "string",
|
||||
"description": "支持的子组件名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"level": {
|
||||
"type": "number"
|
||||
}
|
||||
@ -210,14 +137,6 @@
|
||||
"type": "string",
|
||||
"description": "不支持的子组件名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"level": {
|
||||
"type": "number"
|
||||
}
|
||||
@ -235,14 +154,6 @@
|
||||
"type": "string",
|
||||
"description": "支持的父组件的组件名称"
|
||||
},
|
||||
"supportedDevices": {
|
||||
"type": "array",
|
||||
"description": "本字段非必填,如果为空,表示该属性继承属性支持的设备类型",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": ["tv", "phone", "tablet", "wearable", "liteWearable", "smartVision"]
|
||||
}
|
||||
},
|
||||
"level": {
|
||||
"type": "number",
|
||||
"description": "本字段非必填,取值范围大于等于1,只有标签补齐时需要联想出对应子组件时需要填此字段,如果level为n+1时,level为n的组件有且只有一个(n>1)"
|
||||
|
Loading…
Reference in New Issue
Block a user