• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "object",
3  "properties": {
4    "properties": {
5      "type": "array",
6      "items": {
7        "type": "object",
8        "properties": {
9          "name": {
10            "type": "string"
11          },
12          "syscap": [
13            "SystemCapability.ArkUI.ArkUI.Full",
14            "SystemCapability.ArkUI.ArkUI.Lite"
15          ],
16          "syntax": {
17            "type": "array",
18            "description": "语法",
19            "items": {
20              "type": "object",
21              "properties": {
22                "name": {
23                  "type": "string",
24                  "description": "支持<length>、<color>、<percentage> 、<line-width>、<line-style>、<repeat-style>、<time>、<transform-list>等内置类型单个或多个(||分割)"
25                }
26              },
27              "required": ["name"]
28            }
29          },
30          "version": {
31            "type": "array",
32            "description": "该属性的当前的版本",
33            "items": {
34              "type": "object",
35              "properties": {
36                "name": {
37                  "type": "string",
38                  "description": "版本号例如:v3.0"
39                }
40              },
41              "required": ["name"]
42            }
43          },
44          "description": {
45            "type": "array",
46            "items": {
47              "type": "object",
48              "properties": {
49                "name": {
50                  "type": "string",
51                  "description": "属性的描述文档"
52                }
53              },
54              "required": ["name"]
55            }
56          },
57          "restrictions": {
58            "type": "array",
59            "description": "语法限制",
60            "items": {
61              "type": "object",
62              "properties": {
63                "name": {
64                  "type": "array",
65                  "description": "语法限制,单个或多个组合",
66                  "items": {
67                    "type": "string",
68                    "enum": [
69                      "enum",
70                      "length",
71                      "line-style",
72                      "color",
73                      "percentage",
74                      "image",
75                      "string",
76                      "repeat",
77                      "position",
78                      "identifier",
79                      "number",
80                      "time"
81                    ]
82                  }
83                }
84              },
85              "required": ["name"]
86            }
87          },
88          "values": {
89            "type": "array",
90            "description": "当restrictions字段存在enum时存在该字段,表示该属性对应的值的可选值",
91            "items": {
92              "type": "object",
93              "properties": {
94                "name": {
95                  "type": "string",
96                  "description": "可选值"
97                },
98                "description": {
99                  "type": "string"
100                }
101              },
102              "required": ["name"]
103            }
104          }
105        },
106        "required": ["name", "version", "description"]
107      }
108    },
109    "atDirectives": {
110      "type": "array",
111      "description": "指令列表",
112      "items": {
113        "type": "object",
114        "properties": {
115          "name": {
116            "type": "string",
117            "description": "指令名称"
118          },
119          "syscap": [
120            "SystemCapability.ArkUI.ArkUI.Full",
121            "SystemCapability.ArkUI.ArkUI.Lite"
122          ],
123          "version": {
124            "type": "array",
125            "description": "版本",
126            "items": {
127              "type": "object",
128              "properties": {
129                "name": {
130                  "type": "string",
131                  "description": "版本号eg: v3.0"
132                }
133              },
134              "required": ["name"]
135            }
136          },
137          "description": {
138            "type": "array",
139            "description": "指令的描述",
140            "items": {
141              "type": "object",
142              "properties": {
143                "name": {
144                  "type": "string"
145                }
146              },
147              "required": ["name"]
148            }
149          }
150        }
151      }
152    },
153    "pseudoClasses": {
154      "type": "array",
155      "description": "伪类列表",
156      "items": {
157        "type": "object",
158        "properties": {
159          "name": {
160            "type": "string",
161            "description": "伪类名称"
162          },
163          "syscap": [
164            "SystemCapability.ArkUI.ArkUI.Full",
165            "SystemCapability.ArkUI.ArkUI.Lite"
166          ],
167          "version": {
168            "type": "array",
169            "description": "版本",
170            "items": {
171              "type": "object",
172              "properties": {
173                "name": {
174                  "type": "string",
175                  "description": "版本号eg: v3.0"
176                }
177              },
178              "required": ["name"]
179            }
180          },
181          "description": {
182            "type": "array",
183            "description": "伪类的描述",
184            "items": {
185              "type": "object",
186              "properties": {
187                "name": {
188                  "type": "string"
189                }
190              },
191              "required": ["name"]
192            }
193          }
194        }
195      }
196    }
197  },
198  "required": ["properties", "atDirectives", "pseudoClasses"]
199}
200