@moheng-design/ui-skill 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +227 -0
- package/bin/cli.js +35 -0
- package/bin/lib/audit.mjs +138 -0
- package/bin/lib/feedback.mjs +82 -0
- package/bin/lib/install.mjs +61 -0
- package/bin/lib/paths.mjs +47 -0
- package/bin/lib/upgrade.mjs +86 -0
- package/eslint/index.js +94 -0
- package/eslint/lib/factories.js +313 -0
- package/eslint/lib/match.js +188 -0
- package/eslint/lib/tiers.js +27 -0
- package/generated/SKILL.md +696 -0
- package/generated/contracts.json +9270 -0
- package/generated/mappings.schema.json +333 -0
- package/generated/plugin-data.js +6994 -0
- package/generated/reference.md +5651 -0
- package/generated/rules.json +3864 -0
- package/generated/skills/moheng-ui-audit/SKILL.md +66 -0
- package/generated/skills/moheng-ui-bootstrap/SKILL.md +109 -0
- package/generated/skills/moheng-ui-feedback/SKILL.md +65 -0
- package/generated/skills/moheng-ui-page/SKILL.md +75 -0
- package/generated/skills/moheng-ui-review/SKILL.md +55 -0
- package/generated/skills/moheng-ui-upgrade/SKILL.md +40 -0
- package/generated/unenforced.json +57 -0
- package/handwritten/anti-patterns.md +239 -0
- package/handwritten/canvas-model.md +98 -0
- package/handwritten/conventions.md +2082 -0
- package/handwritten/skills/audit.md +54 -0
- package/handwritten/skills/bootstrap.md +99 -0
- package/handwritten/skills/feedback.md +63 -0
- package/handwritten/skills/page.md +44 -0
- package/handwritten/skills/review.md +43 -0
- package/handwritten/skills/upgrade.md +38 -0
- package/handwritten/unenforced.md +27 -0
- package/package.json +66 -0
- package/stylelint/index.js +121 -0
|
@@ -0,0 +1,3864 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./mappings.schema.json",
|
|
3
|
+
"version": "1",
|
|
4
|
+
"rules": [
|
|
5
|
+
{
|
|
6
|
+
"id": "no-native-button",
|
|
7
|
+
"kind": "forbid-element",
|
|
8
|
+
"scope": "consumer",
|
|
9
|
+
"severity": "error",
|
|
10
|
+
"targets": [
|
|
11
|
+
"js"
|
|
12
|
+
],
|
|
13
|
+
"match": {
|
|
14
|
+
"element": "button"
|
|
15
|
+
},
|
|
16
|
+
"replacement": {
|
|
17
|
+
"component": "Button",
|
|
18
|
+
"from": "@moheng-design/ui"
|
|
19
|
+
},
|
|
20
|
+
"message": "请使用 Button 组件替代原生 <button>。导入方式:import { Button } from '@moheng-design/ui'",
|
|
21
|
+
"rationale": "原生 <button> 拿不到已登记的 32px 高度、16px 圆角与 :focus-visible 焦点环,且按下态会带上浏览器默认的缩放与阴影 —— 规范要求按下态仅有颜色变化。",
|
|
22
|
+
"example": {
|
|
23
|
+
"bad": "<button className=\"px-4 py-2\">提交</button>",
|
|
24
|
+
"good": "<Button variant=\"primary\">提交</Button>"
|
|
25
|
+
},
|
|
26
|
+
"autofix": {
|
|
27
|
+
"enabled": true,
|
|
28
|
+
"onlyWhenNoStyling": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "no-native-input",
|
|
33
|
+
"kind": "forbid-element",
|
|
34
|
+
"scope": "consumer",
|
|
35
|
+
"severity": "error",
|
|
36
|
+
"targets": [
|
|
37
|
+
"js"
|
|
38
|
+
],
|
|
39
|
+
"match": {
|
|
40
|
+
"element": "input"
|
|
41
|
+
},
|
|
42
|
+
"replacement": {
|
|
43
|
+
"component": "Input",
|
|
44
|
+
"from": "@moheng-design/ui"
|
|
45
|
+
},
|
|
46
|
+
"message": "请使用 Input 组件替代原生 <input>。导入方式:import { Input } from '@moheng-design/ui'。type 为 checkbox / radio / range / search 时另有专用组件,见 no-native-checkbox / no-native-radio / no-native-range / no-native-search",
|
|
47
|
+
"rationale": "本条是 <input> 的兜底规则,不带属性匹配。带 attributes 的规则更具体,优先于本条命中。",
|
|
48
|
+
"example": {
|
|
49
|
+
"bad": "<input type=\"text\" placeholder=\"请输入\" />",
|
|
50
|
+
"good": "<Input placeholder=\"请输入\" />"
|
|
51
|
+
},
|
|
52
|
+
"autofix": {
|
|
53
|
+
"enabled": true,
|
|
54
|
+
"onlyWhenNoStyling": true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "no-native-checkbox",
|
|
59
|
+
"kind": "forbid-element",
|
|
60
|
+
"scope": "consumer",
|
|
61
|
+
"severity": "error",
|
|
62
|
+
"targets": [
|
|
63
|
+
"js"
|
|
64
|
+
],
|
|
65
|
+
"match": {
|
|
66
|
+
"element": "input",
|
|
67
|
+
"attributes": {
|
|
68
|
+
"type": "checkbox"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"replacement": {
|
|
72
|
+
"component": "Checkbox",
|
|
73
|
+
"from": "@moheng-design/ui"
|
|
74
|
+
},
|
|
75
|
+
"message": "请使用 Checkbox 组件替代 <input type=\"checkbox\">。导入方式:import { Checkbox } from '@moheng-design/ui'。列表行内的批量选择另用 ListSelectionCheckbox",
|
|
76
|
+
"rationale": "原生复选框的勾选标记由浏览器绘制,拿不到强调色与 16px 圆角规范。",
|
|
77
|
+
"example": {
|
|
78
|
+
"bad": "<input type=\"checkbox\" checked={done} onChange={onToggle} />",
|
|
79
|
+
"good": "<Checkbox checked={done} onCheckedChange={onToggle} />"
|
|
80
|
+
},
|
|
81
|
+
"autofix": {
|
|
82
|
+
"enabled": false
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "no-native-radio",
|
|
87
|
+
"kind": "forbid-element",
|
|
88
|
+
"scope": "consumer",
|
|
89
|
+
"severity": "error",
|
|
90
|
+
"targets": [
|
|
91
|
+
"js"
|
|
92
|
+
],
|
|
93
|
+
"match": {
|
|
94
|
+
"element": "input",
|
|
95
|
+
"attributes": {
|
|
96
|
+
"type": "radio"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"replacement": {
|
|
100
|
+
"component": "RadioGroup",
|
|
101
|
+
"from": "@moheng-design/ui"
|
|
102
|
+
},
|
|
103
|
+
"message": "请使用 RadioGroup 组件替代 <input type=\"radio\">。RadioGroup 是组级控件,全部选项写在 items 数组里,不要逐个渲染单选项。导入方式:import { RadioGroup } from '@moheng-design/ui'",
|
|
104
|
+
"rationale": "系统内没有「单个单选项」组件 —— 单选的语义单位就是组。逐个渲染会丢掉分组的键盘导航与 name 绑定。",
|
|
105
|
+
"example": {
|
|
106
|
+
"bad": "<input type=\"radio\" name=\"scope\" value=\"all\" />",
|
|
107
|
+
"good": "<RadioGroup value={scope} onValueChange={setScope} items={[{ value: 'all', label: '全部' }]} />"
|
|
108
|
+
},
|
|
109
|
+
"autofix": {
|
|
110
|
+
"enabled": false
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "no-native-range",
|
|
115
|
+
"kind": "forbid-element",
|
|
116
|
+
"scope": "consumer",
|
|
117
|
+
"severity": "error",
|
|
118
|
+
"targets": [
|
|
119
|
+
"js"
|
|
120
|
+
],
|
|
121
|
+
"match": {
|
|
122
|
+
"element": "input",
|
|
123
|
+
"attributes": {
|
|
124
|
+
"type": "range"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"replacement": {
|
|
128
|
+
"component": "Slider",
|
|
129
|
+
"from": "@moheng-design/ui"
|
|
130
|
+
},
|
|
131
|
+
"message": "请使用 Slider 组件替代 <input type=\"range\">。导入方式:import { Slider } from '@moheng-design/ui'",
|
|
132
|
+
"rationale": "原生滑块的轨道与滑块头完全由浏览器绘制,跨浏览器外观不一致,且拿不到强调色。",
|
|
133
|
+
"example": {
|
|
134
|
+
"bad": "<input type=\"range\" min={0} max={100} value={ratio} />",
|
|
135
|
+
"good": "<Slider min={0} max={100} value={ratio} onValueChange={setRatio} />"
|
|
136
|
+
},
|
|
137
|
+
"autofix": {
|
|
138
|
+
"enabled": false
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "no-native-search",
|
|
143
|
+
"kind": "forbid-element",
|
|
144
|
+
"scope": "consumer",
|
|
145
|
+
"severity": "error",
|
|
146
|
+
"targets": [
|
|
147
|
+
"js"
|
|
148
|
+
],
|
|
149
|
+
"match": {
|
|
150
|
+
"element": "input",
|
|
151
|
+
"attributes": {
|
|
152
|
+
"type": "search"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"replacement": {
|
|
156
|
+
"component": "SearchField",
|
|
157
|
+
"from": "@moheng-design/ui"
|
|
158
|
+
},
|
|
159
|
+
"message": "请使用 SearchField 组件替代 <input type=\"search\">。SearchField 的 ariaLabel 是必填。导入方式:import { SearchField } from '@moheng-design/ui'",
|
|
160
|
+
"rationale": "SearchField 是产品内每一处纯文本搜索的共享入口 —— 查询工具栏、目录搜索、人员与文件选择器。它只在 Enter 时提交,规范禁止逐字实时搜索作为默认行为,原生 input 做不到这条约束。",
|
|
161
|
+
"example": {
|
|
162
|
+
"bad": "<input type=\"search\" onChange={(e) => search(e.target.value)} />",
|
|
163
|
+
"good": "<SearchField ariaLabel=\"搜索记录\" onSubmit={search} />"
|
|
164
|
+
},
|
|
165
|
+
"autofix": {
|
|
166
|
+
"enabled": false
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "no-native-textarea",
|
|
171
|
+
"kind": "forbid-element",
|
|
172
|
+
"scope": "consumer",
|
|
173
|
+
"severity": "error",
|
|
174
|
+
"targets": [
|
|
175
|
+
"js"
|
|
176
|
+
],
|
|
177
|
+
"match": {
|
|
178
|
+
"element": "textarea"
|
|
179
|
+
},
|
|
180
|
+
"replacement": {
|
|
181
|
+
"component": "Textarea",
|
|
182
|
+
"from": "@moheng-design/ui"
|
|
183
|
+
},
|
|
184
|
+
"message": "请使用 Textarea 组件替代原生 <textarea>。导入方式:import { Textarea } from '@moheng-design/ui'",
|
|
185
|
+
"rationale": "原生 textarea 拿不到已登记的边框、圆角与焦点环,且默认带右下角拖拽手柄,与系统的密度约定冲突。",
|
|
186
|
+
"example": {
|
|
187
|
+
"bad": "<textarea rows={4} placeholder=\"请输入\" />",
|
|
188
|
+
"good": "<Textarea rows={4} placeholder=\"请输入\" />"
|
|
189
|
+
},
|
|
190
|
+
"autofix": {
|
|
191
|
+
"enabled": true,
|
|
192
|
+
"onlyWhenNoStyling": true
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "no-native-select",
|
|
197
|
+
"kind": "forbid-element",
|
|
198
|
+
"scope": "consumer",
|
|
199
|
+
"severity": "error",
|
|
200
|
+
"targets": [
|
|
201
|
+
"js"
|
|
202
|
+
],
|
|
203
|
+
"match": {
|
|
204
|
+
"element": "select"
|
|
205
|
+
},
|
|
206
|
+
"replacement": {
|
|
207
|
+
"component": "Select",
|
|
208
|
+
"from": "@moheng-design/ui"
|
|
209
|
+
},
|
|
210
|
+
"message": "请使用 Select 组件替代原生 <select>。导入方式:import { Select } from '@moheng-design/ui'。选项极多或密集的表格行内编辑器改用 NativeSelect,需要输入筛选改用 Combobox",
|
|
211
|
+
"rationale": "Select 是表单与筛选行中已登记的默认选择控件;NativeSelect 只用于原生选择器确实更合适的两种场景。二者取舍依赖 lint 看不到的上下文,因此不开 autofix。",
|
|
212
|
+
"example": {
|
|
213
|
+
"bad": "<select value={status}><option value=\"all\">全部</option></select>",
|
|
214
|
+
"good": "<Select value={status} onValueChange={setStatus} options={[{ value: 'all', label: '全部' }]} />"
|
|
215
|
+
},
|
|
216
|
+
"autofix": {
|
|
217
|
+
"enabled": false
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "no-native-label",
|
|
222
|
+
"kind": "forbid-element",
|
|
223
|
+
"scope": "consumer",
|
|
224
|
+
"severity": "error",
|
|
225
|
+
"targets": [
|
|
226
|
+
"js"
|
|
227
|
+
],
|
|
228
|
+
"match": {
|
|
229
|
+
"element": "label"
|
|
230
|
+
},
|
|
231
|
+
"replacement": {
|
|
232
|
+
"component": "Label",
|
|
233
|
+
"from": "@moheng-design/ui"
|
|
234
|
+
},
|
|
235
|
+
"message": "请使用 Label 组件替代原生 <label>。导入方式:import { Label } from '@moheng-design/ui'。表单项的标签与校验信息一并交给 Field 更合适",
|
|
236
|
+
"rationale": "标签用 12/16 的 meta 字号与 --application-label 前景色,原生 label 继承正文样式,会与输入框排版脱节。",
|
|
237
|
+
"example": {
|
|
238
|
+
"bad": "<label htmlFor=\"name\">名称</label>",
|
|
239
|
+
"good": "<Label htmlFor=\"name\">名称</Label>"
|
|
240
|
+
},
|
|
241
|
+
"autofix": {
|
|
242
|
+
"enabled": true,
|
|
243
|
+
"onlyWhenNoStyling": true
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "no-native-table",
|
|
248
|
+
"kind": "forbid-element",
|
|
249
|
+
"scope": "consumer",
|
|
250
|
+
"severity": "error",
|
|
251
|
+
"targets": [
|
|
252
|
+
"js"
|
|
253
|
+
],
|
|
254
|
+
"match": {
|
|
255
|
+
"element": "table"
|
|
256
|
+
},
|
|
257
|
+
"replacement": {
|
|
258
|
+
"component": "Table",
|
|
259
|
+
"from": "@moheng-design/ui"
|
|
260
|
+
},
|
|
261
|
+
"message": "请使用 Table 组件替代原生 <table>。Table 是数据驱动的:列写在 columns 数组,行数据写在 rows,不要手写 <tr> / <td>。导入方式:import { Table } from '@moheng-design/ui'",
|
|
262
|
+
"rationale": "手写表格拿不到已登记的表头底色、行分隔线与列宽约定。因为 Table 不接受复合子组件,<tr> / <td> 脱离 <table> 后本就无处可写,故不单独立规则。",
|
|
263
|
+
"example": {
|
|
264
|
+
"bad": "<table><tr><td>示例应用</td></tr></table>",
|
|
265
|
+
"good": "<Table columns={[{ key: 'name', title: '名称' }]} rows={rows} />"
|
|
266
|
+
},
|
|
267
|
+
"autofix": {
|
|
268
|
+
"enabled": false
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"id": "no-native-hr",
|
|
273
|
+
"kind": "forbid-element",
|
|
274
|
+
"scope": "consumer",
|
|
275
|
+
"severity": "error",
|
|
276
|
+
"targets": [
|
|
277
|
+
"js"
|
|
278
|
+
],
|
|
279
|
+
"match": {
|
|
280
|
+
"element": "hr"
|
|
281
|
+
},
|
|
282
|
+
"replacement": {
|
|
283
|
+
"component": "Separator",
|
|
284
|
+
"from": "@moheng-design/ui"
|
|
285
|
+
},
|
|
286
|
+
"message": "请使用 Separator 组件替代原生 <hr>。导入方式:import { Separator } from '@moheng-design/ui'",
|
|
287
|
+
"rationale": "系统内边框负责分隔、阴影极少出现,因此分隔线的色值必须统一走 --application-divider。原生 hr 带浏览器默认的立体边框与外边距。",
|
|
288
|
+
"example": {
|
|
289
|
+
"bad": "<hr />",
|
|
290
|
+
"good": "<Separator />"
|
|
291
|
+
},
|
|
292
|
+
"autofix": {
|
|
293
|
+
"enabled": true,
|
|
294
|
+
"onlyWhenNoStyling": true
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "no-native-progress",
|
|
299
|
+
"kind": "forbid-element",
|
|
300
|
+
"scope": "consumer",
|
|
301
|
+
"severity": "error",
|
|
302
|
+
"targets": [
|
|
303
|
+
"js"
|
|
304
|
+
],
|
|
305
|
+
"match": {
|
|
306
|
+
"element": "progress"
|
|
307
|
+
},
|
|
308
|
+
"replacement": {
|
|
309
|
+
"component": "Progress",
|
|
310
|
+
"from": "@moheng-design/ui"
|
|
311
|
+
},
|
|
312
|
+
"message": "请使用 Progress 组件替代原生 <progress>。导入方式:import { Progress } from '@moheng-design/ui'",
|
|
313
|
+
"rationale": "原生进度条的填充色与轨道高度由浏览器决定,拿不到强调色与已登记的几何。",
|
|
314
|
+
"example": {
|
|
315
|
+
"bad": "<progress value={42} max={100} />",
|
|
316
|
+
"good": "<Progress value={42} />"
|
|
317
|
+
},
|
|
318
|
+
"autofix": {
|
|
319
|
+
"enabled": true,
|
|
320
|
+
"onlyWhenNoStyling": true
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "no-native-dialog",
|
|
325
|
+
"kind": "forbid-element",
|
|
326
|
+
"scope": "consumer",
|
|
327
|
+
"severity": "error",
|
|
328
|
+
"targets": [
|
|
329
|
+
"js"
|
|
330
|
+
],
|
|
331
|
+
"match": {
|
|
332
|
+
"element": "dialog"
|
|
333
|
+
},
|
|
334
|
+
"replacement": {
|
|
335
|
+
"component": "Dialog",
|
|
336
|
+
"from": "@moheng-design/ui"
|
|
337
|
+
},
|
|
338
|
+
"message": "请使用 Dialog 组件替代原生 <dialog>。导入方式:import { Dialog } from '@moheng-design/ui'。表单类对话框用 ApplicationFormDialog,破坏性操作确认用 AlertDialog",
|
|
339
|
+
"rationale": "原生 dialog 的遮罩是 ::backdrop 伪元素,拿不到 --ds-color-overlay 的扁平遮罩规范,也无法参与系统的 z-index 分层。",
|
|
340
|
+
"example": {
|
|
341
|
+
"bad": "<dialog open={visible}>内容</dialog>",
|
|
342
|
+
"good": "<Dialog open={visible} onClose={() => setVisible(false)} title=\"标题\">内容</Dialog>"
|
|
343
|
+
},
|
|
344
|
+
"autofix": {
|
|
345
|
+
"enabled": false
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"id": "no-native-details",
|
|
350
|
+
"kind": "forbid-element",
|
|
351
|
+
"scope": "consumer",
|
|
352
|
+
"severity": "error",
|
|
353
|
+
"targets": [
|
|
354
|
+
"js"
|
|
355
|
+
],
|
|
356
|
+
"match": {
|
|
357
|
+
"element": "details"
|
|
358
|
+
},
|
|
359
|
+
"replacement": {
|
|
360
|
+
"component": "Collapsible",
|
|
361
|
+
"from": "@moheng-design/ui"
|
|
362
|
+
},
|
|
363
|
+
"message": "请使用 Collapsible 组件替代原生 <details>。导入方式:import { Collapsible } from '@moheng-design/ui'。多个互斥折叠项改用 Accordion",
|
|
364
|
+
"rationale": "原生 details 的展开箭头由浏览器绘制,跨浏览器不一致,且无法接入已登记的 150ms 过渡。",
|
|
365
|
+
"example": {
|
|
366
|
+
"bad": "<details><summary>更多筛选</summary>内容</details>",
|
|
367
|
+
"good": "<Collapsible label=\"更多筛选\">内容</Collapsible>"
|
|
368
|
+
},
|
|
369
|
+
"autofix": {
|
|
370
|
+
"enabled": false
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "no-native-summary",
|
|
375
|
+
"kind": "forbid-element",
|
|
376
|
+
"scope": "consumer",
|
|
377
|
+
"severity": "error",
|
|
378
|
+
"targets": [
|
|
379
|
+
"js"
|
|
380
|
+
],
|
|
381
|
+
"match": {
|
|
382
|
+
"element": "summary"
|
|
383
|
+
},
|
|
384
|
+
"replacement": {
|
|
385
|
+
"component": "Collapsible",
|
|
386
|
+
"from": "@moheng-design/ui"
|
|
387
|
+
},
|
|
388
|
+
"message": "请使用 Collapsible 组件的 label 替代原生 <summary>。触发器文字写进 label,被折叠的内容写进 children。导入方式:import { Collapsible } from '@moheng-design/ui'",
|
|
389
|
+
"rationale": "<summary> 脱离 <details> 无意义,单独出现说明折叠结构是手写的。",
|
|
390
|
+
"example": {
|
|
391
|
+
"bad": "<summary>更多筛选</summary>",
|
|
392
|
+
"good": "<Collapsible label=\"更多筛选\">内容</Collapsible>"
|
|
393
|
+
},
|
|
394
|
+
"autofix": {
|
|
395
|
+
"enabled": false
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "no-native-kbd",
|
|
400
|
+
"kind": "forbid-element",
|
|
401
|
+
"scope": "consumer",
|
|
402
|
+
"severity": "error",
|
|
403
|
+
"targets": [
|
|
404
|
+
"js"
|
|
405
|
+
],
|
|
406
|
+
"match": {
|
|
407
|
+
"element": "kbd"
|
|
408
|
+
},
|
|
409
|
+
"replacement": {
|
|
410
|
+
"component": "Kbd",
|
|
411
|
+
"from": "@moheng-design/ui"
|
|
412
|
+
},
|
|
413
|
+
"message": "请使用 Kbd 组件替代原生 <kbd>。导入方式:import { Kbd } from '@moheng-design/ui'",
|
|
414
|
+
"rationale": "按键提示的等宽字族必须走 --ds-font-family-mono,原生 kbd 由浏览器决定字族。",
|
|
415
|
+
"example": {
|
|
416
|
+
"bad": "<kbd>Enter</kbd>",
|
|
417
|
+
"good": "<Kbd>Enter</Kbd>"
|
|
418
|
+
},
|
|
419
|
+
"autofix": {
|
|
420
|
+
"enabled": true,
|
|
421
|
+
"onlyWhenNoStyling": true
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"id": "no-inline-svg",
|
|
426
|
+
"kind": "forbid-element",
|
|
427
|
+
"scope": "consumer",
|
|
428
|
+
"severity": "error",
|
|
429
|
+
"targets": [
|
|
430
|
+
"js"
|
|
431
|
+
],
|
|
432
|
+
"match": {
|
|
433
|
+
"element": "svg"
|
|
434
|
+
},
|
|
435
|
+
"replacement": {
|
|
436
|
+
"component": "Icon",
|
|
437
|
+
"from": "@moheng-design/ui"
|
|
438
|
+
},
|
|
439
|
+
"message": "请使用 Icon 组件替代逐页手写的内联 <svg>。导入方式:import { Icon } from '@moheng-design/ui',写作 <Icon name=\"登记名\" size={16} />。name 只接受已登记字形,清单见 @moheng-design/ui 的 src/icon/registry.json(reference.md 亦有全表);未登记的名字渲染为等尺寸占位盒,确需新字形须先登记进该清单并随包发版。数据可视化改用 Chart 组件,不要手绘图形",
|
|
440
|
+
"rationale": "Icon 契约点名禁止四件事,逐页手写内联 SVG 是其中之一。手写的 SVG 拿不到 currentColor 继承、2px 圆头描边与 14/16/18/20/24 五档登记尺寸,图标容器宽度也不再稳定,active 与 hover 的字重变化会横向推移标签。scope 为 consumer:库内的 <svg> 是 Icon 自身的实现、Chart 的图形、以及控件构件字形(复选框的勾、关闭按钮的叉),三者都不是内容图标,而 forbid-element 的 match 没有 exceptFiles 字段(schema 已定稿,不得为一条规则改动),因此库内一侧不纳入本条。",
|
|
441
|
+
"example": {
|
|
442
|
+
"bad": "<svg viewBox=\"0 0 24 24\"><path d=\"m6 9 6 6 6-6\" /></svg>",
|
|
443
|
+
"good": "<Icon name=\"chevron-down\" size={14} />"
|
|
444
|
+
},
|
|
445
|
+
"autofix": {
|
|
446
|
+
"enabled": false
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "no-shadcn-ui-import",
|
|
451
|
+
"kind": "forbid-import",
|
|
452
|
+
"scope": "consumer",
|
|
453
|
+
"severity": "error",
|
|
454
|
+
"targets": [
|
|
455
|
+
"js"
|
|
456
|
+
],
|
|
457
|
+
"match": {
|
|
458
|
+
"importPatterns": [
|
|
459
|
+
"@/components/ui/*",
|
|
460
|
+
"@/components/ui/**",
|
|
461
|
+
"~/components/ui/*",
|
|
462
|
+
"~/components/ui/**"
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
"replacement": {
|
|
466
|
+
"from": "@moheng-design/ui"
|
|
467
|
+
},
|
|
468
|
+
"message": "禁止从 @/components/ui/* 导入。该目录通常是 npx shadcn add 生成的平行组件实现,与 @moheng-design/ui 并存会造成同一界面两套视觉。请改为 import { ... } from '@moheng-design/ui'",
|
|
469
|
+
"rationale": "本库不提供 shadcn registry 分发(§1.2),因此项目里出现 components/ui/ 目录必然意味着引入了第二套组件源码。样式覆盖走 CSS variables 与 className 叠加,不走改源码。",
|
|
470
|
+
"example": {
|
|
471
|
+
"bad": "import { Button } from '@/components/ui/button'",
|
|
472
|
+
"good": "import { Button } from '@moheng-design/ui'"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "no-deep-import",
|
|
477
|
+
"kind": "forbid-import",
|
|
478
|
+
"scope": "consumer",
|
|
479
|
+
"severity": "error",
|
|
480
|
+
"targets": [
|
|
481
|
+
"js"
|
|
482
|
+
],
|
|
483
|
+
"match": {
|
|
484
|
+
"importPatterns": [
|
|
485
|
+
"@moheng-design/ui/dist/*",
|
|
486
|
+
"@moheng-design/ui/dist/**",
|
|
487
|
+
"@moheng-design/ui/src/*",
|
|
488
|
+
"@moheng-design/ui/src/**"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
"replacement": {
|
|
492
|
+
"from": "@moheng-design/ui"
|
|
493
|
+
},
|
|
494
|
+
"message": "禁止深引 @moheng-design/ui 的内部路径。请从包入口导入:import { ... } from '@moheng-design/ui'。样式表另有专用入口 @moheng-design/ui/styles.css",
|
|
495
|
+
"rationale": "内部路径不在 exports map 中,不构成公开接口,任意小版本都可能改动。入口导出的名字才受 semver 保护。",
|
|
496
|
+
"example": {
|
|
497
|
+
"bad": "import { Button } from '@moheng-design/ui/dist/components/button.js'",
|
|
498
|
+
"good": "import { Button } from '@moheng-design/ui'"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"id": "no-raw-hex-color",
|
|
503
|
+
"kind": "forbid-value",
|
|
504
|
+
"scope": "internal",
|
|
505
|
+
"severity": "error",
|
|
506
|
+
"targets": [
|
|
507
|
+
"js",
|
|
508
|
+
"css"
|
|
509
|
+
],
|
|
510
|
+
"match": {
|
|
511
|
+
"valuePattern": "#[0-9a-fA-F]{3,8}\\b",
|
|
512
|
+
"cssProperties": [
|
|
513
|
+
"color",
|
|
514
|
+
"background",
|
|
515
|
+
"background-color",
|
|
516
|
+
"border",
|
|
517
|
+
"border-color",
|
|
518
|
+
"outline",
|
|
519
|
+
"outline-color",
|
|
520
|
+
"fill",
|
|
521
|
+
"stroke",
|
|
522
|
+
"box-shadow"
|
|
523
|
+
],
|
|
524
|
+
"exceptFiles": [
|
|
525
|
+
"src/tokens/**/*.css"
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
"replacement": {
|
|
529
|
+
"tokenPrefix": "--ds-color-"
|
|
530
|
+
},
|
|
531
|
+
"message": "禁止硬编码色值。请改用 --ds-color-* token,例如 color: var(--ds-color-text)。可用 token 见 packages/ui/tokens.json",
|
|
532
|
+
"rationale": "色值写死后换肤入口 --ds-color-theme-primary 对它无效,暗色主题也覆盖不到。exceptFiles 豁免 token 源文件 —— 那里必须写字面值,色彩原语正是在那里定义的。",
|
|
533
|
+
"example": {
|
|
534
|
+
"bad": ".mh-button[data-variant=\"primary\"] { background: #0071e3; }",
|
|
535
|
+
"good": ".mh-button[data-variant=\"primary\"] { background: var(--ds-color-application-accent); }"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"id": "no-raw-px-value",
|
|
540
|
+
"kind": "forbid-value",
|
|
541
|
+
"scope": "internal",
|
|
542
|
+
"severity": "error",
|
|
543
|
+
"targets": [
|
|
544
|
+
"js",
|
|
545
|
+
"css"
|
|
546
|
+
],
|
|
547
|
+
"match": {
|
|
548
|
+
"valuePattern": "\\b\\d+px\\b",
|
|
549
|
+
"cssProperties": [
|
|
550
|
+
"gap",
|
|
551
|
+
"row-gap",
|
|
552
|
+
"column-gap",
|
|
553
|
+
"margin",
|
|
554
|
+
"margin-top",
|
|
555
|
+
"margin-right",
|
|
556
|
+
"margin-bottom",
|
|
557
|
+
"margin-left",
|
|
558
|
+
"margin-block",
|
|
559
|
+
"margin-inline",
|
|
560
|
+
"padding",
|
|
561
|
+
"padding-top",
|
|
562
|
+
"padding-right",
|
|
563
|
+
"padding-bottom",
|
|
564
|
+
"padding-left",
|
|
565
|
+
"padding-block",
|
|
566
|
+
"padding-inline",
|
|
567
|
+
"border-radius",
|
|
568
|
+
"font-size",
|
|
569
|
+
"line-height",
|
|
570
|
+
"height",
|
|
571
|
+
"width"
|
|
572
|
+
],
|
|
573
|
+
"exceptFiles": [
|
|
574
|
+
"src/tokens/**/*.css"
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
"replacement": {
|
|
578
|
+
"tokenPrefix": "--ds-space-"
|
|
579
|
+
},
|
|
580
|
+
"message": "禁止硬编码尺寸。间距用 --ds-space-0 至 --ds-space-5(后缀是档位序号,六档依次为 0/4/8/12/16/24px),圆角用 --ds-radius-0/4/8/12/16/20(后缀即像素值),字号用 --ds-font-size-12/14/16/20/24、行高用 --ds-line-height-16/20/24/28/32(后缀同为像素值)。系统内没有 20 / 32 / 48 间距档,出现这类值说明取错了标尺",
|
|
581
|
+
"rationale": "响应式密度靠 @media 改写 :root 变量实现,组件侧写死 px 会让三档密度在该处失效。1px 边框不受本条影响 —— 边框一律走 --ui-border-default,不在 cssProperties 列表内。",
|
|
582
|
+
"example": {
|
|
583
|
+
"bad": ".mh-card { padding: 16px; border-radius: 16px; }",
|
|
584
|
+
"good": ".mh-card { padding: var(--ds-space-4); border-radius: var(--ds-radius-16); }"
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"id": "no-unregistered-font",
|
|
589
|
+
"kind": "forbid-value",
|
|
590
|
+
"scope": "internal",
|
|
591
|
+
"severity": "error",
|
|
592
|
+
"targets": [
|
|
593
|
+
"js",
|
|
594
|
+
"css"
|
|
595
|
+
],
|
|
596
|
+
"match": {
|
|
597
|
+
"valuePattern": "\\bfont(?:-family)?\\s*:(?!\\s*(?:var\\(|inherit\\b))",
|
|
598
|
+
"flags": "i",
|
|
599
|
+
"cssProperties": [
|
|
600
|
+
"font",
|
|
601
|
+
"font-family"
|
|
602
|
+
],
|
|
603
|
+
"exceptFiles": [
|
|
604
|
+
"src/tokens/**/*.css"
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
"replacement": {
|
|
608
|
+
"tokenPrefix": "--ds-font-family"
|
|
609
|
+
},
|
|
610
|
+
"message": "禁止直接书写字族。请改用 var(--ds-font-family),等宽场景用 var(--ds-font-family-mono)。系统只有单一字族,没有展示体,也没有搭配字体",
|
|
611
|
+
"rationale": "字族栈是暖色中性 + 单一冷蓝强调这套视觉签名的一部分,逐处书写会在某处漏掉 PingFang TC 或 Microsoft YaHei,导致跨平台字形不一致。模式必须覆盖 font 简写:简写同样能落下一个字族(font: 14px/20px Menlo, monospace),且它一并重置 font-family,漏掉它等于给整条规则留一条改写字族的旁路;cssProperties 本就声明了 font 与 font-family 两项,模式只认后者时规则名实不符 —— 声明覆盖两个属性,实际只管住一个,且不报错不告警,即 §1.4 点名的「以为约束住了,实际没有」。(?:-family)? 用可选组而非另起一支,是为了让 font-size / font-weight 这类同前缀属性落空:可选组取空后 \\s*: 撞上连字符即失配。起首的 \\b 是简写支带来的新要求:没有它时 myfont: 这类粘连写法会被当成 font 属性。\\b 只挡粘连,挡不住以连字符分隔的 --mh-x-font: —— 那一处靠 stylelint 侧的自定义属性守卫与 cssProperties 过滤,ESLint 侧则因组件内的局部尺度变量一律带 -size / -width 之类后缀而落空。两处豁免写在否定前瞻内:var(...) 是唯一正确写法;inherit 是控件继承祖先字族的标准重置,不构成书写字族,src/ 下现有 18 处 font-family: inherit 与 1 处 font: inherit(Breadcrumb.css)均为此用法。空白必须留在前瞻里 —— 写成 \\s*(?!var\\() 时前瞻会回退到冒号后零空白处求值,var(--ds-font-family) 反而必然误报。",
|
|
612
|
+
"example": {
|
|
613
|
+
"bad": ".mh-kbd { font-family: Menlo, monospace; }",
|
|
614
|
+
"good": ".mh-kbd { font-family: var(--ds-font-family-mono); }"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"id": "props-whitelist-icon",
|
|
619
|
+
"kind": "props-whitelist",
|
|
620
|
+
"generated": true,
|
|
621
|
+
"scope": "both",
|
|
622
|
+
"severity": "warn",
|
|
623
|
+
"targets": [
|
|
624
|
+
"js"
|
|
625
|
+
],
|
|
626
|
+
"match": {
|
|
627
|
+
"component": "Icon"
|
|
628
|
+
},
|
|
629
|
+
"allowed": [
|
|
630
|
+
"name",
|
|
631
|
+
"size",
|
|
632
|
+
"strokeWidth",
|
|
633
|
+
"color",
|
|
634
|
+
"style",
|
|
635
|
+
"key",
|
|
636
|
+
"ref",
|
|
637
|
+
"className",
|
|
638
|
+
"children"
|
|
639
|
+
],
|
|
640
|
+
"message": "<Icon> 不接受该 prop。已声明的 props:name、size、strokeWidth、color、style。继承自 SVGProps<SVGSVGElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
641
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 SVGProps<SVGSVGElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/icon/icon.ts"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"id": "prop-enum-icon-size",
|
|
645
|
+
"kind": "prop-enum",
|
|
646
|
+
"generated": true,
|
|
647
|
+
"scope": "both",
|
|
648
|
+
"severity": "warn",
|
|
649
|
+
"targets": [
|
|
650
|
+
"js"
|
|
651
|
+
],
|
|
652
|
+
"match": {
|
|
653
|
+
"component": "Icon",
|
|
654
|
+
"prop": "size"
|
|
655
|
+
},
|
|
656
|
+
"allowed": [
|
|
657
|
+
"14",
|
|
658
|
+
"16",
|
|
659
|
+
"18",
|
|
660
|
+
"20",
|
|
661
|
+
"24"
|
|
662
|
+
],
|
|
663
|
+
"message": "<Icon> 的 size 取值须为 14 | 16 | 18 | 20 | 24 之一",
|
|
664
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/icon/icon.ts,不得在别处另立一份。"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"id": "props-whitelist-button",
|
|
668
|
+
"kind": "props-whitelist",
|
|
669
|
+
"generated": true,
|
|
670
|
+
"scope": "both",
|
|
671
|
+
"severity": "warn",
|
|
672
|
+
"targets": [
|
|
673
|
+
"js"
|
|
674
|
+
],
|
|
675
|
+
"match": {
|
|
676
|
+
"component": "Button"
|
|
677
|
+
},
|
|
678
|
+
"allowed": [
|
|
679
|
+
"variant",
|
|
680
|
+
"size",
|
|
681
|
+
"iconOnly",
|
|
682
|
+
"disabled",
|
|
683
|
+
"children",
|
|
684
|
+
"key",
|
|
685
|
+
"ref",
|
|
686
|
+
"className",
|
|
687
|
+
"style"
|
|
688
|
+
],
|
|
689
|
+
"message": "<Button> 不接受该 prop。已声明的 props:variant、size、iconOnly、disabled、children。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
690
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/actions/button.ts"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"id": "prop-enum-button-variant",
|
|
694
|
+
"kind": "prop-enum",
|
|
695
|
+
"generated": true,
|
|
696
|
+
"scope": "both",
|
|
697
|
+
"severity": "warn",
|
|
698
|
+
"targets": [
|
|
699
|
+
"js"
|
|
700
|
+
],
|
|
701
|
+
"match": {
|
|
702
|
+
"component": "Button",
|
|
703
|
+
"prop": "variant"
|
|
704
|
+
},
|
|
705
|
+
"allowed": [
|
|
706
|
+
"primary",
|
|
707
|
+
"secondary",
|
|
708
|
+
"outline",
|
|
709
|
+
"ghost",
|
|
710
|
+
"destructive",
|
|
711
|
+
"link"
|
|
712
|
+
],
|
|
713
|
+
"message": "<Button> 的 variant 取值须为 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link' 之一",
|
|
714
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/actions/button.ts,不得在别处另立一份。"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"id": "prop-enum-button-size",
|
|
718
|
+
"kind": "prop-enum",
|
|
719
|
+
"generated": true,
|
|
720
|
+
"scope": "both",
|
|
721
|
+
"severity": "warn",
|
|
722
|
+
"targets": [
|
|
723
|
+
"js"
|
|
724
|
+
],
|
|
725
|
+
"match": {
|
|
726
|
+
"component": "Button",
|
|
727
|
+
"prop": "size"
|
|
728
|
+
},
|
|
729
|
+
"allowed": [
|
|
730
|
+
"xs",
|
|
731
|
+
"sm",
|
|
732
|
+
"default",
|
|
733
|
+
"lg"
|
|
734
|
+
],
|
|
735
|
+
"message": "<Button> 的 size 取值须为 'xs' | 'sm' | 'default' | 'lg' 之一",
|
|
736
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/actions/button.ts,不得在别处另立一份。"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"id": "props-whitelist-button-group",
|
|
740
|
+
"kind": "props-whitelist",
|
|
741
|
+
"generated": true,
|
|
742
|
+
"scope": "both",
|
|
743
|
+
"severity": "warn",
|
|
744
|
+
"targets": [
|
|
745
|
+
"js"
|
|
746
|
+
],
|
|
747
|
+
"match": {
|
|
748
|
+
"component": "ButtonGroup"
|
|
749
|
+
},
|
|
750
|
+
"allowed": [
|
|
751
|
+
"children",
|
|
752
|
+
"orientation",
|
|
753
|
+
"attached",
|
|
754
|
+
"key",
|
|
755
|
+
"ref",
|
|
756
|
+
"className",
|
|
757
|
+
"style"
|
|
758
|
+
],
|
|
759
|
+
"message": "<ButtonGroup> 不接受该 prop。已声明的 props:children、orientation、attached。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
760
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/actions/button-group.ts"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"id": "prop-enum-button-group-orientation",
|
|
764
|
+
"kind": "prop-enum",
|
|
765
|
+
"generated": true,
|
|
766
|
+
"scope": "both",
|
|
767
|
+
"severity": "warn",
|
|
768
|
+
"targets": [
|
|
769
|
+
"js"
|
|
770
|
+
],
|
|
771
|
+
"match": {
|
|
772
|
+
"component": "ButtonGroup",
|
|
773
|
+
"prop": "orientation"
|
|
774
|
+
},
|
|
775
|
+
"allowed": [
|
|
776
|
+
"horizontal",
|
|
777
|
+
"vertical"
|
|
778
|
+
],
|
|
779
|
+
"message": "<ButtonGroup> 的 orientation 取值须为 'horizontal' | 'vertical' 之一",
|
|
780
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/actions/button-group.ts,不得在别处另立一份。"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"id": "props-whitelist-toggle",
|
|
784
|
+
"kind": "props-whitelist",
|
|
785
|
+
"generated": true,
|
|
786
|
+
"scope": "both",
|
|
787
|
+
"severity": "warn",
|
|
788
|
+
"targets": [
|
|
789
|
+
"js"
|
|
790
|
+
],
|
|
791
|
+
"match": {
|
|
792
|
+
"component": "Toggle"
|
|
793
|
+
},
|
|
794
|
+
"allowed": [
|
|
795
|
+
"pressed",
|
|
796
|
+
"defaultPressed",
|
|
797
|
+
"onPressedChange",
|
|
798
|
+
"size",
|
|
799
|
+
"iconOnly",
|
|
800
|
+
"children",
|
|
801
|
+
"key",
|
|
802
|
+
"ref",
|
|
803
|
+
"className",
|
|
804
|
+
"style"
|
|
805
|
+
],
|
|
806
|
+
"message": "<Toggle> 不接受该 prop。已声明的 props:pressed、defaultPressed、onPressedChange、size、iconOnly、children。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
807
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/actions/toggle.ts"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"id": "prop-enum-toggle-size",
|
|
811
|
+
"kind": "prop-enum",
|
|
812
|
+
"generated": true,
|
|
813
|
+
"scope": "both",
|
|
814
|
+
"severity": "warn",
|
|
815
|
+
"targets": [
|
|
816
|
+
"js"
|
|
817
|
+
],
|
|
818
|
+
"match": {
|
|
819
|
+
"component": "Toggle",
|
|
820
|
+
"prop": "size"
|
|
821
|
+
},
|
|
822
|
+
"allowed": [
|
|
823
|
+
"sm",
|
|
824
|
+
"default",
|
|
825
|
+
"lg"
|
|
826
|
+
],
|
|
827
|
+
"message": "<Toggle> 的 size 取值须为 'sm' | 'default' | 'lg' 之一",
|
|
828
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/actions/toggle.ts,不得在别处另立一份。"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"id": "props-whitelist-toggle-group",
|
|
832
|
+
"kind": "props-whitelist",
|
|
833
|
+
"generated": true,
|
|
834
|
+
"scope": "both",
|
|
835
|
+
"severity": "warn",
|
|
836
|
+
"targets": [
|
|
837
|
+
"js"
|
|
838
|
+
],
|
|
839
|
+
"match": {
|
|
840
|
+
"component": "ToggleGroup"
|
|
841
|
+
},
|
|
842
|
+
"allowed": [
|
|
843
|
+
"items",
|
|
844
|
+
"type",
|
|
845
|
+
"value",
|
|
846
|
+
"defaultValue",
|
|
847
|
+
"onValueChange",
|
|
848
|
+
"size",
|
|
849
|
+
"disabled",
|
|
850
|
+
"key",
|
|
851
|
+
"ref",
|
|
852
|
+
"className",
|
|
853
|
+
"style",
|
|
854
|
+
"children"
|
|
855
|
+
],
|
|
856
|
+
"message": "<ToggleGroup> 不接受该 prop。已声明的 props:items、type、value、defaultValue、onValueChange、size、disabled。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
857
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/actions/toggle-group.ts"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"id": "prop-enum-toggle-group-type",
|
|
861
|
+
"kind": "prop-enum",
|
|
862
|
+
"generated": true,
|
|
863
|
+
"scope": "both",
|
|
864
|
+
"severity": "warn",
|
|
865
|
+
"targets": [
|
|
866
|
+
"js"
|
|
867
|
+
],
|
|
868
|
+
"match": {
|
|
869
|
+
"component": "ToggleGroup",
|
|
870
|
+
"prop": "type"
|
|
871
|
+
},
|
|
872
|
+
"allowed": [
|
|
873
|
+
"single",
|
|
874
|
+
"multiple"
|
|
875
|
+
],
|
|
876
|
+
"message": "<ToggleGroup> 的 type 取值须为 'single' | 'multiple' 之一",
|
|
877
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/actions/toggle-group.ts,不得在别处另立一份。"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"id": "prop-enum-toggle-group-size",
|
|
881
|
+
"kind": "prop-enum",
|
|
882
|
+
"generated": true,
|
|
883
|
+
"scope": "both",
|
|
884
|
+
"severity": "warn",
|
|
885
|
+
"targets": [
|
|
886
|
+
"js"
|
|
887
|
+
],
|
|
888
|
+
"match": {
|
|
889
|
+
"component": "ToggleGroup",
|
|
890
|
+
"prop": "size"
|
|
891
|
+
},
|
|
892
|
+
"allowed": [
|
|
893
|
+
"sm",
|
|
894
|
+
"default",
|
|
895
|
+
"lg"
|
|
896
|
+
],
|
|
897
|
+
"message": "<ToggleGroup> 的 size 取值须为 'sm' | 'default' | 'lg' 之一",
|
|
898
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/actions/toggle-group.ts,不得在别处另立一份。"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"id": "props-whitelist-calendar",
|
|
902
|
+
"kind": "props-whitelist",
|
|
903
|
+
"generated": true,
|
|
904
|
+
"scope": "both",
|
|
905
|
+
"severity": "warn",
|
|
906
|
+
"targets": [
|
|
907
|
+
"js"
|
|
908
|
+
],
|
|
909
|
+
"match": {
|
|
910
|
+
"component": "Calendar"
|
|
911
|
+
},
|
|
912
|
+
"allowed": [
|
|
913
|
+
"month",
|
|
914
|
+
"selected",
|
|
915
|
+
"onSelect",
|
|
916
|
+
"key",
|
|
917
|
+
"ref",
|
|
918
|
+
"className",
|
|
919
|
+
"style",
|
|
920
|
+
"children"
|
|
921
|
+
],
|
|
922
|
+
"message": "<Calendar> 不接受该 prop。已声明的 props:month、selected、onSelect。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
923
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/calendar.ts"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"id": "props-whitelist-checkbox",
|
|
927
|
+
"kind": "props-whitelist",
|
|
928
|
+
"generated": true,
|
|
929
|
+
"scope": "both",
|
|
930
|
+
"severity": "warn",
|
|
931
|
+
"targets": [
|
|
932
|
+
"js"
|
|
933
|
+
],
|
|
934
|
+
"match": {
|
|
935
|
+
"component": "Checkbox"
|
|
936
|
+
},
|
|
937
|
+
"allowed": [
|
|
938
|
+
"checked",
|
|
939
|
+
"defaultChecked",
|
|
940
|
+
"indeterminate",
|
|
941
|
+
"onCheckedChange",
|
|
942
|
+
"label",
|
|
943
|
+
"key",
|
|
944
|
+
"ref",
|
|
945
|
+
"className",
|
|
946
|
+
"style",
|
|
947
|
+
"children"
|
|
948
|
+
],
|
|
949
|
+
"message": "<Checkbox> 不接受该 prop。已声明的 props:checked、defaultChecked、indeterminate、onCheckedChange、label。继承自 InputHTMLAttributes<HTMLInputElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
950
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 InputHTMLAttributes<HTMLInputElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/checkbox.ts"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"id": "props-whitelist-combobox",
|
|
954
|
+
"kind": "props-whitelist",
|
|
955
|
+
"generated": true,
|
|
956
|
+
"scope": "both",
|
|
957
|
+
"severity": "warn",
|
|
958
|
+
"targets": [
|
|
959
|
+
"js"
|
|
960
|
+
],
|
|
961
|
+
"match": {
|
|
962
|
+
"component": "Combobox"
|
|
963
|
+
},
|
|
964
|
+
"allowed": [
|
|
965
|
+
"options",
|
|
966
|
+
"value",
|
|
967
|
+
"defaultValue",
|
|
968
|
+
"onValueChange",
|
|
969
|
+
"placeholder",
|
|
970
|
+
"emptyText",
|
|
971
|
+
"disabled",
|
|
972
|
+
"key",
|
|
973
|
+
"ref",
|
|
974
|
+
"className",
|
|
975
|
+
"style",
|
|
976
|
+
"children"
|
|
977
|
+
],
|
|
978
|
+
"message": "<Combobox> 不接受该 prop。已声明的 props:options、value、defaultValue、onValueChange、placeholder、emptyText、disabled。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
979
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/combobox.ts"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"id": "props-whitelist-field",
|
|
983
|
+
"kind": "props-whitelist",
|
|
984
|
+
"generated": true,
|
|
985
|
+
"scope": "both",
|
|
986
|
+
"severity": "warn",
|
|
987
|
+
"targets": [
|
|
988
|
+
"js"
|
|
989
|
+
],
|
|
990
|
+
"match": {
|
|
991
|
+
"component": "Field"
|
|
992
|
+
},
|
|
993
|
+
"allowed": [
|
|
994
|
+
"label",
|
|
995
|
+
"description",
|
|
996
|
+
"error",
|
|
997
|
+
"required",
|
|
998
|
+
"htmlFor",
|
|
999
|
+
"children",
|
|
1000
|
+
"key",
|
|
1001
|
+
"ref",
|
|
1002
|
+
"className",
|
|
1003
|
+
"style"
|
|
1004
|
+
],
|
|
1005
|
+
"message": "<Field> 不接受该 prop。已声明的 props:label、description、error、required、htmlFor、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1006
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/field.ts"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"id": "props-whitelist-input",
|
|
1010
|
+
"kind": "props-whitelist",
|
|
1011
|
+
"generated": true,
|
|
1012
|
+
"scope": "both",
|
|
1013
|
+
"severity": "warn",
|
|
1014
|
+
"targets": [
|
|
1015
|
+
"js"
|
|
1016
|
+
],
|
|
1017
|
+
"match": {
|
|
1018
|
+
"component": "Input"
|
|
1019
|
+
},
|
|
1020
|
+
"allowed": [
|
|
1021
|
+
"invalid",
|
|
1022
|
+
"key",
|
|
1023
|
+
"ref",
|
|
1024
|
+
"className",
|
|
1025
|
+
"style",
|
|
1026
|
+
"children"
|
|
1027
|
+
],
|
|
1028
|
+
"message": "<Input> 不接受该 prop。已声明的 props:invalid。继承自 InputHTMLAttributes<HTMLInputElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1029
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 InputHTMLAttributes<HTMLInputElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/input.ts"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"id": "props-whitelist-input-group",
|
|
1033
|
+
"kind": "props-whitelist",
|
|
1034
|
+
"generated": true,
|
|
1035
|
+
"scope": "both",
|
|
1036
|
+
"severity": "warn",
|
|
1037
|
+
"targets": [
|
|
1038
|
+
"js"
|
|
1039
|
+
],
|
|
1040
|
+
"match": {
|
|
1041
|
+
"component": "InputGroup"
|
|
1042
|
+
},
|
|
1043
|
+
"allowed": [
|
|
1044
|
+
"leading",
|
|
1045
|
+
"trailing",
|
|
1046
|
+
"children",
|
|
1047
|
+
"disabled",
|
|
1048
|
+
"key",
|
|
1049
|
+
"ref",
|
|
1050
|
+
"className",
|
|
1051
|
+
"style"
|
|
1052
|
+
],
|
|
1053
|
+
"message": "<InputGroup> 不接受该 prop。已声明的 props:leading、trailing、children、disabled。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1054
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/input-group.ts"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"id": "props-whitelist-input-otp",
|
|
1058
|
+
"kind": "props-whitelist",
|
|
1059
|
+
"generated": true,
|
|
1060
|
+
"scope": "both",
|
|
1061
|
+
"severity": "warn",
|
|
1062
|
+
"targets": [
|
|
1063
|
+
"js"
|
|
1064
|
+
],
|
|
1065
|
+
"match": {
|
|
1066
|
+
"component": "InputOTP"
|
|
1067
|
+
},
|
|
1068
|
+
"allowed": [
|
|
1069
|
+
"length",
|
|
1070
|
+
"value",
|
|
1071
|
+
"defaultValue",
|
|
1072
|
+
"onValueChange",
|
|
1073
|
+
"disabled",
|
|
1074
|
+
"key",
|
|
1075
|
+
"ref",
|
|
1076
|
+
"className",
|
|
1077
|
+
"style",
|
|
1078
|
+
"children"
|
|
1079
|
+
],
|
|
1080
|
+
"message": "<InputOTP> 不接受该 prop。已声明的 props:length、value、defaultValue、onValueChange、disabled。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1081
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/input-otp.ts"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"id": "props-whitelist-label",
|
|
1085
|
+
"kind": "props-whitelist",
|
|
1086
|
+
"generated": true,
|
|
1087
|
+
"scope": "both",
|
|
1088
|
+
"severity": "warn",
|
|
1089
|
+
"targets": [
|
|
1090
|
+
"js"
|
|
1091
|
+
],
|
|
1092
|
+
"match": {
|
|
1093
|
+
"component": "Label"
|
|
1094
|
+
},
|
|
1095
|
+
"allowed": [
|
|
1096
|
+
"required",
|
|
1097
|
+
"children",
|
|
1098
|
+
"key",
|
|
1099
|
+
"ref",
|
|
1100
|
+
"className",
|
|
1101
|
+
"style"
|
|
1102
|
+
],
|
|
1103
|
+
"message": "<Label> 不接受该 prop。已声明的 props:required、children。继承自 LabelHTMLAttributes<HTMLLabelElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1104
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 LabelHTMLAttributes<HTMLLabelElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/label.ts"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"id": "props-whitelist-native-select",
|
|
1108
|
+
"kind": "props-whitelist",
|
|
1109
|
+
"generated": true,
|
|
1110
|
+
"scope": "both",
|
|
1111
|
+
"severity": "warn",
|
|
1112
|
+
"targets": [
|
|
1113
|
+
"js"
|
|
1114
|
+
],
|
|
1115
|
+
"match": {
|
|
1116
|
+
"component": "NativeSelect"
|
|
1117
|
+
},
|
|
1118
|
+
"allowed": [
|
|
1119
|
+
"options",
|
|
1120
|
+
"placeholder",
|
|
1121
|
+
"invalid",
|
|
1122
|
+
"key",
|
|
1123
|
+
"ref",
|
|
1124
|
+
"className",
|
|
1125
|
+
"style",
|
|
1126
|
+
"children"
|
|
1127
|
+
],
|
|
1128
|
+
"message": "<NativeSelect> 不接受该 prop。已声明的 props:options、placeholder、invalid。继承自 SelectHTMLAttributes<HTMLSelectElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1129
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 SelectHTMLAttributes<HTMLSelectElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/native-select.ts"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"id": "props-whitelist-radio-group",
|
|
1133
|
+
"kind": "props-whitelist",
|
|
1134
|
+
"generated": true,
|
|
1135
|
+
"scope": "both",
|
|
1136
|
+
"severity": "warn",
|
|
1137
|
+
"targets": [
|
|
1138
|
+
"js"
|
|
1139
|
+
],
|
|
1140
|
+
"match": {
|
|
1141
|
+
"component": "RadioGroup"
|
|
1142
|
+
},
|
|
1143
|
+
"allowed": [
|
|
1144
|
+
"items",
|
|
1145
|
+
"value",
|
|
1146
|
+
"defaultValue",
|
|
1147
|
+
"onValueChange",
|
|
1148
|
+
"name",
|
|
1149
|
+
"orientation",
|
|
1150
|
+
"disabled",
|
|
1151
|
+
"key",
|
|
1152
|
+
"ref",
|
|
1153
|
+
"className",
|
|
1154
|
+
"style",
|
|
1155
|
+
"children"
|
|
1156
|
+
],
|
|
1157
|
+
"message": "<RadioGroup> 不接受该 prop。已声明的 props:items、value、defaultValue、onValueChange、name、orientation、disabled。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1158
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/radio-group.ts"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"id": "prop-enum-radio-group-orientation",
|
|
1162
|
+
"kind": "prop-enum",
|
|
1163
|
+
"generated": true,
|
|
1164
|
+
"scope": "both",
|
|
1165
|
+
"severity": "warn",
|
|
1166
|
+
"targets": [
|
|
1167
|
+
"js"
|
|
1168
|
+
],
|
|
1169
|
+
"match": {
|
|
1170
|
+
"component": "RadioGroup",
|
|
1171
|
+
"prop": "orientation"
|
|
1172
|
+
},
|
|
1173
|
+
"allowed": [
|
|
1174
|
+
"vertical",
|
|
1175
|
+
"horizontal"
|
|
1176
|
+
],
|
|
1177
|
+
"message": "<RadioGroup> 的 orientation 取值须为 'vertical' | 'horizontal' 之一",
|
|
1178
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/input-selection/radio-group.ts,不得在别处另立一份。"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"id": "props-whitelist-select",
|
|
1182
|
+
"kind": "props-whitelist",
|
|
1183
|
+
"generated": true,
|
|
1184
|
+
"scope": "both",
|
|
1185
|
+
"severity": "warn",
|
|
1186
|
+
"targets": [
|
|
1187
|
+
"js"
|
|
1188
|
+
],
|
|
1189
|
+
"match": {
|
|
1190
|
+
"component": "Select"
|
|
1191
|
+
},
|
|
1192
|
+
"allowed": [
|
|
1193
|
+
"options",
|
|
1194
|
+
"value",
|
|
1195
|
+
"defaultValue",
|
|
1196
|
+
"onValueChange",
|
|
1197
|
+
"placeholder",
|
|
1198
|
+
"disabled",
|
|
1199
|
+
"invalid",
|
|
1200
|
+
"key",
|
|
1201
|
+
"ref",
|
|
1202
|
+
"className",
|
|
1203
|
+
"style",
|
|
1204
|
+
"children"
|
|
1205
|
+
],
|
|
1206
|
+
"message": "<Select> 不接受该 prop。已声明的 props:options、value、defaultValue、onValueChange、placeholder、disabled、invalid。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1207
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/select.ts"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"id": "props-whitelist-slider",
|
|
1211
|
+
"kind": "props-whitelist",
|
|
1212
|
+
"generated": true,
|
|
1213
|
+
"scope": "both",
|
|
1214
|
+
"severity": "warn",
|
|
1215
|
+
"targets": [
|
|
1216
|
+
"js"
|
|
1217
|
+
],
|
|
1218
|
+
"match": {
|
|
1219
|
+
"component": "Slider"
|
|
1220
|
+
},
|
|
1221
|
+
"allowed": [
|
|
1222
|
+
"min",
|
|
1223
|
+
"max",
|
|
1224
|
+
"step",
|
|
1225
|
+
"value",
|
|
1226
|
+
"defaultValue",
|
|
1227
|
+
"onValueChange",
|
|
1228
|
+
"showValue",
|
|
1229
|
+
"key",
|
|
1230
|
+
"ref",
|
|
1231
|
+
"className",
|
|
1232
|
+
"style",
|
|
1233
|
+
"children"
|
|
1234
|
+
],
|
|
1235
|
+
"message": "<Slider> 不接受该 prop。已声明的 props:min、max、step、value、defaultValue、onValueChange、showValue。继承自 InputHTMLAttributes<HTMLInputElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1236
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 InputHTMLAttributes<HTMLInputElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/slider.ts"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"id": "props-whitelist-switch",
|
|
1240
|
+
"kind": "props-whitelist",
|
|
1241
|
+
"generated": true,
|
|
1242
|
+
"scope": "both",
|
|
1243
|
+
"severity": "warn",
|
|
1244
|
+
"targets": [
|
|
1245
|
+
"js"
|
|
1246
|
+
],
|
|
1247
|
+
"match": {
|
|
1248
|
+
"component": "Switch"
|
|
1249
|
+
},
|
|
1250
|
+
"allowed": [
|
|
1251
|
+
"checked",
|
|
1252
|
+
"defaultChecked",
|
|
1253
|
+
"onCheckedChange",
|
|
1254
|
+
"label",
|
|
1255
|
+
"key",
|
|
1256
|
+
"ref",
|
|
1257
|
+
"className",
|
|
1258
|
+
"style",
|
|
1259
|
+
"children"
|
|
1260
|
+
],
|
|
1261
|
+
"message": "<Switch> 不接受该 prop。已声明的 props:checked、defaultChecked、onCheckedChange、label。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1262
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/switch.ts"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"id": "props-whitelist-textarea",
|
|
1266
|
+
"kind": "props-whitelist",
|
|
1267
|
+
"generated": true,
|
|
1268
|
+
"scope": "both",
|
|
1269
|
+
"severity": "warn",
|
|
1270
|
+
"targets": [
|
|
1271
|
+
"js"
|
|
1272
|
+
],
|
|
1273
|
+
"match": {
|
|
1274
|
+
"component": "Textarea"
|
|
1275
|
+
},
|
|
1276
|
+
"allowed": [
|
|
1277
|
+
"invalid",
|
|
1278
|
+
"rows",
|
|
1279
|
+
"key",
|
|
1280
|
+
"ref",
|
|
1281
|
+
"className",
|
|
1282
|
+
"style",
|
|
1283
|
+
"children"
|
|
1284
|
+
],
|
|
1285
|
+
"message": "<Textarea> 不接受该 prop。已声明的 props:invalid、rows。继承自 TextareaHTMLAttributes<HTMLTextAreaElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1286
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 TextareaHTMLAttributes<HTMLTextAreaElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/input-selection/textarea.ts"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"id": "props-whitelist-accordion",
|
|
1290
|
+
"kind": "props-whitelist",
|
|
1291
|
+
"generated": true,
|
|
1292
|
+
"scope": "both",
|
|
1293
|
+
"severity": "warn",
|
|
1294
|
+
"targets": [
|
|
1295
|
+
"js"
|
|
1296
|
+
],
|
|
1297
|
+
"match": {
|
|
1298
|
+
"component": "Accordion"
|
|
1299
|
+
},
|
|
1300
|
+
"allowed": [
|
|
1301
|
+
"items",
|
|
1302
|
+
"type",
|
|
1303
|
+
"open",
|
|
1304
|
+
"defaultOpen",
|
|
1305
|
+
"onOpenChange",
|
|
1306
|
+
"key",
|
|
1307
|
+
"ref",
|
|
1308
|
+
"className",
|
|
1309
|
+
"style",
|
|
1310
|
+
"children"
|
|
1311
|
+
],
|
|
1312
|
+
"message": "<Accordion> 不接受该 prop。已声明的 props:items、type、open、defaultOpen、onOpenChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1313
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/accordion.ts"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"id": "prop-enum-accordion-type",
|
|
1317
|
+
"kind": "prop-enum",
|
|
1318
|
+
"generated": true,
|
|
1319
|
+
"scope": "both",
|
|
1320
|
+
"severity": "warn",
|
|
1321
|
+
"targets": [
|
|
1322
|
+
"js"
|
|
1323
|
+
],
|
|
1324
|
+
"match": {
|
|
1325
|
+
"component": "Accordion",
|
|
1326
|
+
"prop": "type"
|
|
1327
|
+
},
|
|
1328
|
+
"allowed": [
|
|
1329
|
+
"single",
|
|
1330
|
+
"multiple"
|
|
1331
|
+
],
|
|
1332
|
+
"message": "<Accordion> 的 type 取值须为 'single' | 'multiple' 之一",
|
|
1333
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/navigation-command/accordion.ts,不得在别处另立一份。"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"id": "props-whitelist-breadcrumb",
|
|
1337
|
+
"kind": "props-whitelist",
|
|
1338
|
+
"generated": true,
|
|
1339
|
+
"scope": "both",
|
|
1340
|
+
"severity": "warn",
|
|
1341
|
+
"targets": [
|
|
1342
|
+
"js"
|
|
1343
|
+
],
|
|
1344
|
+
"match": {
|
|
1345
|
+
"component": "Breadcrumb"
|
|
1346
|
+
},
|
|
1347
|
+
"allowed": [
|
|
1348
|
+
"items",
|
|
1349
|
+
"key",
|
|
1350
|
+
"ref",
|
|
1351
|
+
"className",
|
|
1352
|
+
"style",
|
|
1353
|
+
"children"
|
|
1354
|
+
],
|
|
1355
|
+
"message": "<Breadcrumb> 不接受该 prop。已声明的 props:items。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1356
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/breadcrumb.ts"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"id": "props-whitelist-command",
|
|
1360
|
+
"kind": "props-whitelist",
|
|
1361
|
+
"generated": true,
|
|
1362
|
+
"scope": "both",
|
|
1363
|
+
"severity": "warn",
|
|
1364
|
+
"targets": [
|
|
1365
|
+
"js"
|
|
1366
|
+
],
|
|
1367
|
+
"match": {
|
|
1368
|
+
"component": "Command"
|
|
1369
|
+
},
|
|
1370
|
+
"allowed": [
|
|
1371
|
+
"groups",
|
|
1372
|
+
"placeholder",
|
|
1373
|
+
"emptyText",
|
|
1374
|
+
"onSelect",
|
|
1375
|
+
"key",
|
|
1376
|
+
"ref",
|
|
1377
|
+
"className",
|
|
1378
|
+
"style",
|
|
1379
|
+
"children"
|
|
1380
|
+
],
|
|
1381
|
+
"message": "<Command> 不接受该 prop。已声明的 props:groups、placeholder、emptyText、onSelect。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1382
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/command.ts"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"id": "props-whitelist-context-menu",
|
|
1386
|
+
"kind": "props-whitelist",
|
|
1387
|
+
"generated": true,
|
|
1388
|
+
"scope": "both",
|
|
1389
|
+
"severity": "warn",
|
|
1390
|
+
"targets": [
|
|
1391
|
+
"js"
|
|
1392
|
+
],
|
|
1393
|
+
"match": {
|
|
1394
|
+
"component": "ContextMenu"
|
|
1395
|
+
},
|
|
1396
|
+
"allowed": [
|
|
1397
|
+
"items",
|
|
1398
|
+
"children",
|
|
1399
|
+
"onSelect",
|
|
1400
|
+
"key",
|
|
1401
|
+
"ref",
|
|
1402
|
+
"className",
|
|
1403
|
+
"style"
|
|
1404
|
+
],
|
|
1405
|
+
"message": "<ContextMenu> 不接受该 prop。已声明的 props:items、children、onSelect。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1406
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/context-menu.ts"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"id": "props-whitelist-menubar",
|
|
1410
|
+
"kind": "props-whitelist",
|
|
1411
|
+
"generated": true,
|
|
1412
|
+
"scope": "both",
|
|
1413
|
+
"severity": "warn",
|
|
1414
|
+
"targets": [
|
|
1415
|
+
"js"
|
|
1416
|
+
],
|
|
1417
|
+
"match": {
|
|
1418
|
+
"component": "Menubar"
|
|
1419
|
+
},
|
|
1420
|
+
"allowed": [
|
|
1421
|
+
"menus",
|
|
1422
|
+
"onSelect",
|
|
1423
|
+
"key",
|
|
1424
|
+
"ref",
|
|
1425
|
+
"className",
|
|
1426
|
+
"style",
|
|
1427
|
+
"children"
|
|
1428
|
+
],
|
|
1429
|
+
"message": "<Menubar> 不接受该 prop。已声明的 props:menus、onSelect。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1430
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/menubar.ts"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"id": "props-whitelist-navigation-menu",
|
|
1434
|
+
"kind": "props-whitelist",
|
|
1435
|
+
"generated": true,
|
|
1436
|
+
"scope": "both",
|
|
1437
|
+
"severity": "warn",
|
|
1438
|
+
"targets": [
|
|
1439
|
+
"js"
|
|
1440
|
+
],
|
|
1441
|
+
"match": {
|
|
1442
|
+
"component": "NavigationMenu"
|
|
1443
|
+
},
|
|
1444
|
+
"allowed": [
|
|
1445
|
+
"items",
|
|
1446
|
+
"value",
|
|
1447
|
+
"defaultValue",
|
|
1448
|
+
"onValueChange",
|
|
1449
|
+
"key",
|
|
1450
|
+
"ref",
|
|
1451
|
+
"className",
|
|
1452
|
+
"style",
|
|
1453
|
+
"children"
|
|
1454
|
+
],
|
|
1455
|
+
"message": "<NavigationMenu> 不接受该 prop。已声明的 props:items、value、defaultValue、onValueChange。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1456
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/navigation-menu.ts"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"id": "props-whitelist-pagination",
|
|
1460
|
+
"kind": "props-whitelist",
|
|
1461
|
+
"generated": true,
|
|
1462
|
+
"scope": "both",
|
|
1463
|
+
"severity": "warn",
|
|
1464
|
+
"targets": [
|
|
1465
|
+
"js"
|
|
1466
|
+
],
|
|
1467
|
+
"match": {
|
|
1468
|
+
"component": "Pagination"
|
|
1469
|
+
},
|
|
1470
|
+
"allowed": [
|
|
1471
|
+
"page",
|
|
1472
|
+
"pageCount",
|
|
1473
|
+
"onPageChange",
|
|
1474
|
+
"key",
|
|
1475
|
+
"ref",
|
|
1476
|
+
"className",
|
|
1477
|
+
"style",
|
|
1478
|
+
"children"
|
|
1479
|
+
],
|
|
1480
|
+
"message": "<Pagination> 不接受该 prop。已声明的 props:page、pageCount、onPageChange。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1481
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/pagination.ts"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"id": "props-whitelist-sidebar",
|
|
1485
|
+
"kind": "props-whitelist",
|
|
1486
|
+
"generated": true,
|
|
1487
|
+
"scope": "both",
|
|
1488
|
+
"severity": "warn",
|
|
1489
|
+
"targets": [
|
|
1490
|
+
"js"
|
|
1491
|
+
],
|
|
1492
|
+
"match": {
|
|
1493
|
+
"component": "Sidebar"
|
|
1494
|
+
},
|
|
1495
|
+
"allowed": [
|
|
1496
|
+
"groups",
|
|
1497
|
+
"value",
|
|
1498
|
+
"onValueChange",
|
|
1499
|
+
"collapsed",
|
|
1500
|
+
"width",
|
|
1501
|
+
"key",
|
|
1502
|
+
"ref",
|
|
1503
|
+
"className",
|
|
1504
|
+
"style",
|
|
1505
|
+
"children"
|
|
1506
|
+
],
|
|
1507
|
+
"message": "<Sidebar> 不接受该 prop。已声明的 props:groups、value、onValueChange、collapsed、width。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1508
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/sidebar.ts"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"id": "props-whitelist-tabs",
|
|
1512
|
+
"kind": "props-whitelist",
|
|
1513
|
+
"generated": true,
|
|
1514
|
+
"scope": "both",
|
|
1515
|
+
"severity": "warn",
|
|
1516
|
+
"targets": [
|
|
1517
|
+
"js"
|
|
1518
|
+
],
|
|
1519
|
+
"match": {
|
|
1520
|
+
"component": "Tabs"
|
|
1521
|
+
},
|
|
1522
|
+
"allowed": [
|
|
1523
|
+
"items",
|
|
1524
|
+
"value",
|
|
1525
|
+
"defaultValue",
|
|
1526
|
+
"onValueChange",
|
|
1527
|
+
"children",
|
|
1528
|
+
"key",
|
|
1529
|
+
"ref",
|
|
1530
|
+
"className",
|
|
1531
|
+
"style"
|
|
1532
|
+
],
|
|
1533
|
+
"message": "<Tabs> 不接受该 prop。已声明的 props:items、value、defaultValue、onValueChange、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1534
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/navigation-command/tabs.ts"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"id": "props-whitelist-aspect-ratio",
|
|
1538
|
+
"kind": "props-whitelist",
|
|
1539
|
+
"generated": true,
|
|
1540
|
+
"scope": "both",
|
|
1541
|
+
"severity": "warn",
|
|
1542
|
+
"targets": [
|
|
1543
|
+
"js"
|
|
1544
|
+
],
|
|
1545
|
+
"match": {
|
|
1546
|
+
"component": "AspectRatio"
|
|
1547
|
+
},
|
|
1548
|
+
"allowed": [
|
|
1549
|
+
"ratio",
|
|
1550
|
+
"children",
|
|
1551
|
+
"key",
|
|
1552
|
+
"ref",
|
|
1553
|
+
"className",
|
|
1554
|
+
"style"
|
|
1555
|
+
],
|
|
1556
|
+
"message": "<AspectRatio> 不接受该 prop。已声明的 props:ratio、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1557
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/aspect-ratio.ts"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"id": "props-whitelist-avatar",
|
|
1561
|
+
"kind": "props-whitelist",
|
|
1562
|
+
"generated": true,
|
|
1563
|
+
"scope": "both",
|
|
1564
|
+
"severity": "warn",
|
|
1565
|
+
"targets": [
|
|
1566
|
+
"js"
|
|
1567
|
+
],
|
|
1568
|
+
"match": {
|
|
1569
|
+
"component": "Avatar"
|
|
1570
|
+
},
|
|
1571
|
+
"allowed": [
|
|
1572
|
+
"name",
|
|
1573
|
+
"src",
|
|
1574
|
+
"size",
|
|
1575
|
+
"shape",
|
|
1576
|
+
"key",
|
|
1577
|
+
"ref",
|
|
1578
|
+
"className",
|
|
1579
|
+
"style",
|
|
1580
|
+
"children"
|
|
1581
|
+
],
|
|
1582
|
+
"message": "<Avatar> 不接受该 prop。已声明的 props:name、src、size、shape。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1583
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/avatar.ts"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"id": "prop-enum-avatar-shape",
|
|
1587
|
+
"kind": "prop-enum",
|
|
1588
|
+
"generated": true,
|
|
1589
|
+
"scope": "both",
|
|
1590
|
+
"severity": "warn",
|
|
1591
|
+
"targets": [
|
|
1592
|
+
"js"
|
|
1593
|
+
],
|
|
1594
|
+
"match": {
|
|
1595
|
+
"component": "Avatar",
|
|
1596
|
+
"prop": "shape"
|
|
1597
|
+
},
|
|
1598
|
+
"allowed": [
|
|
1599
|
+
"circle",
|
|
1600
|
+
"rounded"
|
|
1601
|
+
],
|
|
1602
|
+
"message": "<Avatar> 的 shape 取值须为 'circle' | 'rounded' 之一",
|
|
1603
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/avatar.ts,不得在别处另立一份。"
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"id": "props-whitelist-badge",
|
|
1607
|
+
"kind": "props-whitelist",
|
|
1608
|
+
"generated": true,
|
|
1609
|
+
"scope": "both",
|
|
1610
|
+
"severity": "warn",
|
|
1611
|
+
"targets": [
|
|
1612
|
+
"js"
|
|
1613
|
+
],
|
|
1614
|
+
"match": {
|
|
1615
|
+
"component": "Badge"
|
|
1616
|
+
},
|
|
1617
|
+
"allowed": [
|
|
1618
|
+
"tone",
|
|
1619
|
+
"variant",
|
|
1620
|
+
"children",
|
|
1621
|
+
"key",
|
|
1622
|
+
"ref",
|
|
1623
|
+
"className",
|
|
1624
|
+
"style"
|
|
1625
|
+
],
|
|
1626
|
+
"message": "<Badge> 不接受该 prop。已声明的 props:tone、variant、children。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1627
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/badge.ts"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"id": "prop-enum-badge-tone",
|
|
1631
|
+
"kind": "prop-enum",
|
|
1632
|
+
"generated": true,
|
|
1633
|
+
"scope": "both",
|
|
1634
|
+
"severity": "warn",
|
|
1635
|
+
"targets": [
|
|
1636
|
+
"js"
|
|
1637
|
+
],
|
|
1638
|
+
"match": {
|
|
1639
|
+
"component": "Badge",
|
|
1640
|
+
"prop": "tone"
|
|
1641
|
+
},
|
|
1642
|
+
"allowed": [
|
|
1643
|
+
"neutral",
|
|
1644
|
+
"accent",
|
|
1645
|
+
"success",
|
|
1646
|
+
"warning",
|
|
1647
|
+
"danger",
|
|
1648
|
+
"info"
|
|
1649
|
+
],
|
|
1650
|
+
"message": "<Badge> 的 tone 取值须为 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'info' 之一",
|
|
1651
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/badge.ts,不得在别处另立一份。"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"id": "prop-enum-badge-variant",
|
|
1655
|
+
"kind": "prop-enum",
|
|
1656
|
+
"generated": true,
|
|
1657
|
+
"scope": "both",
|
|
1658
|
+
"severity": "warn",
|
|
1659
|
+
"targets": [
|
|
1660
|
+
"js"
|
|
1661
|
+
],
|
|
1662
|
+
"match": {
|
|
1663
|
+
"component": "Badge",
|
|
1664
|
+
"prop": "variant"
|
|
1665
|
+
},
|
|
1666
|
+
"allowed": [
|
|
1667
|
+
"soft",
|
|
1668
|
+
"outline"
|
|
1669
|
+
],
|
|
1670
|
+
"message": "<Badge> 的 variant 取值须为 'soft' | 'outline' 之一",
|
|
1671
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/badge.ts,不得在别处另立一份。"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"id": "props-whitelist-bubble",
|
|
1675
|
+
"kind": "props-whitelist",
|
|
1676
|
+
"generated": true,
|
|
1677
|
+
"scope": "both",
|
|
1678
|
+
"severity": "warn",
|
|
1679
|
+
"targets": [
|
|
1680
|
+
"js"
|
|
1681
|
+
],
|
|
1682
|
+
"match": {
|
|
1683
|
+
"component": "Bubble"
|
|
1684
|
+
},
|
|
1685
|
+
"allowed": [
|
|
1686
|
+
"side",
|
|
1687
|
+
"author",
|
|
1688
|
+
"time",
|
|
1689
|
+
"children",
|
|
1690
|
+
"key",
|
|
1691
|
+
"ref",
|
|
1692
|
+
"className",
|
|
1693
|
+
"style"
|
|
1694
|
+
],
|
|
1695
|
+
"message": "<Bubble> 不接受该 prop。已声明的 props:side、author、time、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1696
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/bubble.ts"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"id": "prop-enum-bubble-side",
|
|
1700
|
+
"kind": "prop-enum",
|
|
1701
|
+
"generated": true,
|
|
1702
|
+
"scope": "both",
|
|
1703
|
+
"severity": "warn",
|
|
1704
|
+
"targets": [
|
|
1705
|
+
"js"
|
|
1706
|
+
],
|
|
1707
|
+
"match": {
|
|
1708
|
+
"component": "Bubble",
|
|
1709
|
+
"prop": "side"
|
|
1710
|
+
},
|
|
1711
|
+
"allowed": [
|
|
1712
|
+
"own",
|
|
1713
|
+
"other"
|
|
1714
|
+
],
|
|
1715
|
+
"message": "<Bubble> 的 side 取值须为 'own' | 'other' 之一",
|
|
1716
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/bubble.ts,不得在别处另立一份。"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"id": "props-whitelist-card",
|
|
1720
|
+
"kind": "props-whitelist",
|
|
1721
|
+
"generated": true,
|
|
1722
|
+
"scope": "both",
|
|
1723
|
+
"severity": "warn",
|
|
1724
|
+
"targets": [
|
|
1725
|
+
"js"
|
|
1726
|
+
],
|
|
1727
|
+
"match": {
|
|
1728
|
+
"component": "Card"
|
|
1729
|
+
},
|
|
1730
|
+
"allowed": [
|
|
1731
|
+
"density",
|
|
1732
|
+
"title",
|
|
1733
|
+
"extra",
|
|
1734
|
+
"footer",
|
|
1735
|
+
"interactive",
|
|
1736
|
+
"children",
|
|
1737
|
+
"key",
|
|
1738
|
+
"ref",
|
|
1739
|
+
"className",
|
|
1740
|
+
"style"
|
|
1741
|
+
],
|
|
1742
|
+
"message": "<Card> 不接受该 prop。已声明的 props:density、title、extra、footer、interactive、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1743
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/card.ts"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"id": "prop-enum-card-density",
|
|
1747
|
+
"kind": "prop-enum",
|
|
1748
|
+
"generated": true,
|
|
1749
|
+
"scope": "both",
|
|
1750
|
+
"severity": "warn",
|
|
1751
|
+
"targets": [
|
|
1752
|
+
"js"
|
|
1753
|
+
],
|
|
1754
|
+
"match": {
|
|
1755
|
+
"component": "Card",
|
|
1756
|
+
"prop": "density"
|
|
1757
|
+
},
|
|
1758
|
+
"allowed": [
|
|
1759
|
+
"default",
|
|
1760
|
+
"sm"
|
|
1761
|
+
],
|
|
1762
|
+
"message": "<Card> 的 density 取值须为 'default' | 'sm' 之一",
|
|
1763
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/card.ts,不得在别处另立一份。"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"id": "props-whitelist-carousel",
|
|
1767
|
+
"kind": "props-whitelist",
|
|
1768
|
+
"generated": true,
|
|
1769
|
+
"scope": "both",
|
|
1770
|
+
"severity": "warn",
|
|
1771
|
+
"targets": [
|
|
1772
|
+
"js"
|
|
1773
|
+
],
|
|
1774
|
+
"match": {
|
|
1775
|
+
"component": "Carousel"
|
|
1776
|
+
},
|
|
1777
|
+
"allowed": [
|
|
1778
|
+
"slides",
|
|
1779
|
+
"index",
|
|
1780
|
+
"defaultIndex",
|
|
1781
|
+
"onIndexChange",
|
|
1782
|
+
"key",
|
|
1783
|
+
"ref",
|
|
1784
|
+
"className",
|
|
1785
|
+
"style",
|
|
1786
|
+
"children"
|
|
1787
|
+
],
|
|
1788
|
+
"message": "<Carousel> 不接受该 prop。已声明的 props:slides、index、defaultIndex、onIndexChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1789
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/carousel.ts"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"id": "props-whitelist-chart",
|
|
1793
|
+
"kind": "props-whitelist",
|
|
1794
|
+
"generated": true,
|
|
1795
|
+
"scope": "both",
|
|
1796
|
+
"severity": "warn",
|
|
1797
|
+
"targets": [
|
|
1798
|
+
"js"
|
|
1799
|
+
],
|
|
1800
|
+
"match": {
|
|
1801
|
+
"component": "Chart"
|
|
1802
|
+
},
|
|
1803
|
+
"allowed": [
|
|
1804
|
+
"type",
|
|
1805
|
+
"series",
|
|
1806
|
+
"labels",
|
|
1807
|
+
"height",
|
|
1808
|
+
"showLegend",
|
|
1809
|
+
"showGrid",
|
|
1810
|
+
"key",
|
|
1811
|
+
"ref",
|
|
1812
|
+
"className",
|
|
1813
|
+
"style",
|
|
1814
|
+
"children"
|
|
1815
|
+
],
|
|
1816
|
+
"message": "<Chart> 不接受该 prop。已声明的 props:type、series、labels、height、showLegend、showGrid。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1817
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/chart.ts"
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
"id": "prop-enum-chart-type",
|
|
1821
|
+
"kind": "prop-enum",
|
|
1822
|
+
"generated": true,
|
|
1823
|
+
"scope": "both",
|
|
1824
|
+
"severity": "warn",
|
|
1825
|
+
"targets": [
|
|
1826
|
+
"js"
|
|
1827
|
+
],
|
|
1828
|
+
"match": {
|
|
1829
|
+
"component": "Chart",
|
|
1830
|
+
"prop": "type"
|
|
1831
|
+
},
|
|
1832
|
+
"allowed": [
|
|
1833
|
+
"line",
|
|
1834
|
+
"area",
|
|
1835
|
+
"bar"
|
|
1836
|
+
],
|
|
1837
|
+
"message": "<Chart> 的 type 取值须为 'line' | 'area' | 'bar' 之一",
|
|
1838
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/chart.ts,不得在别处另立一份。"
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
"id": "props-whitelist-empty",
|
|
1842
|
+
"kind": "props-whitelist",
|
|
1843
|
+
"generated": true,
|
|
1844
|
+
"scope": "both",
|
|
1845
|
+
"severity": "warn",
|
|
1846
|
+
"targets": [
|
|
1847
|
+
"js"
|
|
1848
|
+
],
|
|
1849
|
+
"match": {
|
|
1850
|
+
"component": "Empty"
|
|
1851
|
+
},
|
|
1852
|
+
"allowed": [
|
|
1853
|
+
"title",
|
|
1854
|
+
"description",
|
|
1855
|
+
"action",
|
|
1856
|
+
"icon",
|
|
1857
|
+
"compact",
|
|
1858
|
+
"key",
|
|
1859
|
+
"ref",
|
|
1860
|
+
"className",
|
|
1861
|
+
"style",
|
|
1862
|
+
"children"
|
|
1863
|
+
],
|
|
1864
|
+
"message": "<Empty> 不接受该 prop。已声明的 props:title、description、action、icon、compact。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1865
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/empty.ts"
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"id": "props-whitelist-item",
|
|
1869
|
+
"kind": "props-whitelist",
|
|
1870
|
+
"generated": true,
|
|
1871
|
+
"scope": "both",
|
|
1872
|
+
"severity": "warn",
|
|
1873
|
+
"targets": [
|
|
1874
|
+
"js"
|
|
1875
|
+
],
|
|
1876
|
+
"match": {
|
|
1877
|
+
"component": "Item"
|
|
1878
|
+
},
|
|
1879
|
+
"allowed": [
|
|
1880
|
+
"leading",
|
|
1881
|
+
"title",
|
|
1882
|
+
"description",
|
|
1883
|
+
"trailing",
|
|
1884
|
+
"selected",
|
|
1885
|
+
"key",
|
|
1886
|
+
"ref",
|
|
1887
|
+
"className",
|
|
1888
|
+
"style",
|
|
1889
|
+
"children"
|
|
1890
|
+
],
|
|
1891
|
+
"message": "<Item> 不接受该 prop。已声明的 props:leading、title、description、trailing、selected。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1892
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/item.ts"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"id": "props-whitelist-kbd",
|
|
1896
|
+
"kind": "props-whitelist",
|
|
1897
|
+
"generated": true,
|
|
1898
|
+
"scope": "both",
|
|
1899
|
+
"severity": "warn",
|
|
1900
|
+
"targets": [
|
|
1901
|
+
"js"
|
|
1902
|
+
],
|
|
1903
|
+
"match": {
|
|
1904
|
+
"component": "Kbd"
|
|
1905
|
+
},
|
|
1906
|
+
"allowed": [
|
|
1907
|
+
"children",
|
|
1908
|
+
"key",
|
|
1909
|
+
"ref",
|
|
1910
|
+
"className",
|
|
1911
|
+
"style"
|
|
1912
|
+
],
|
|
1913
|
+
"message": "<Kbd> 不接受该 prop。已声明的 props:children。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1914
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/kbd.ts"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
"id": "props-whitelist-message",
|
|
1918
|
+
"kind": "props-whitelist",
|
|
1919
|
+
"generated": true,
|
|
1920
|
+
"scope": "both",
|
|
1921
|
+
"severity": "warn",
|
|
1922
|
+
"targets": [
|
|
1923
|
+
"js"
|
|
1924
|
+
],
|
|
1925
|
+
"match": {
|
|
1926
|
+
"component": "Message"
|
|
1927
|
+
},
|
|
1928
|
+
"allowed": [
|
|
1929
|
+
"author",
|
|
1930
|
+
"time",
|
|
1931
|
+
"avatar",
|
|
1932
|
+
"unread",
|
|
1933
|
+
"children",
|
|
1934
|
+
"key",
|
|
1935
|
+
"ref",
|
|
1936
|
+
"className",
|
|
1937
|
+
"style"
|
|
1938
|
+
],
|
|
1939
|
+
"message": "<Message> 不接受该 prop。已声明的 props:author、time、avatar、unread、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1940
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/message.ts"
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"id": "props-whitelist-message-scroller",
|
|
1944
|
+
"kind": "props-whitelist",
|
|
1945
|
+
"generated": true,
|
|
1946
|
+
"scope": "both",
|
|
1947
|
+
"severity": "warn",
|
|
1948
|
+
"targets": [
|
|
1949
|
+
"js"
|
|
1950
|
+
],
|
|
1951
|
+
"match": {
|
|
1952
|
+
"component": "MessageScroller"
|
|
1953
|
+
},
|
|
1954
|
+
"allowed": [
|
|
1955
|
+
"height",
|
|
1956
|
+
"stickToBottom",
|
|
1957
|
+
"children",
|
|
1958
|
+
"key",
|
|
1959
|
+
"ref",
|
|
1960
|
+
"className",
|
|
1961
|
+
"style"
|
|
1962
|
+
],
|
|
1963
|
+
"message": "<MessageScroller> 不接受该 prop。已声明的 props:height、stickToBottom、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1964
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/message-scroller.ts"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"id": "props-whitelist-progress",
|
|
1968
|
+
"kind": "props-whitelist",
|
|
1969
|
+
"generated": true,
|
|
1970
|
+
"scope": "both",
|
|
1971
|
+
"severity": "warn",
|
|
1972
|
+
"targets": [
|
|
1973
|
+
"js"
|
|
1974
|
+
],
|
|
1975
|
+
"match": {
|
|
1976
|
+
"component": "Progress"
|
|
1977
|
+
},
|
|
1978
|
+
"allowed": [
|
|
1979
|
+
"value",
|
|
1980
|
+
"max",
|
|
1981
|
+
"tone",
|
|
1982
|
+
"showValue",
|
|
1983
|
+
"height",
|
|
1984
|
+
"label",
|
|
1985
|
+
"key",
|
|
1986
|
+
"ref",
|
|
1987
|
+
"className",
|
|
1988
|
+
"style",
|
|
1989
|
+
"children"
|
|
1990
|
+
],
|
|
1991
|
+
"message": "<Progress> 不接受该 prop。已声明的 props:value、max、tone、showValue、height、label。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
1992
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/progress.ts"
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"id": "prop-enum-progress-tone",
|
|
1996
|
+
"kind": "prop-enum",
|
|
1997
|
+
"generated": true,
|
|
1998
|
+
"scope": "both",
|
|
1999
|
+
"severity": "warn",
|
|
2000
|
+
"targets": [
|
|
2001
|
+
"js"
|
|
2002
|
+
],
|
|
2003
|
+
"match": {
|
|
2004
|
+
"component": "Progress",
|
|
2005
|
+
"prop": "tone"
|
|
2006
|
+
},
|
|
2007
|
+
"allowed": [
|
|
2008
|
+
"accent",
|
|
2009
|
+
"success",
|
|
2010
|
+
"warning",
|
|
2011
|
+
"danger"
|
|
2012
|
+
],
|
|
2013
|
+
"message": "<Progress> 的 tone 取值须为 'accent' | 'success' | 'warning' | 'danger' 之一",
|
|
2014
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/progress.ts,不得在别处另立一份。"
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
"id": "props-whitelist-resizable",
|
|
2018
|
+
"kind": "props-whitelist",
|
|
2019
|
+
"generated": true,
|
|
2020
|
+
"scope": "both",
|
|
2021
|
+
"severity": "warn",
|
|
2022
|
+
"targets": [
|
|
2023
|
+
"js"
|
|
2024
|
+
],
|
|
2025
|
+
"match": {
|
|
2026
|
+
"component": "Resizable"
|
|
2027
|
+
},
|
|
2028
|
+
"allowed": [
|
|
2029
|
+
"left",
|
|
2030
|
+
"right",
|
|
2031
|
+
"defaultSize",
|
|
2032
|
+
"size",
|
|
2033
|
+
"onSizeChange",
|
|
2034
|
+
"min",
|
|
2035
|
+
"max",
|
|
2036
|
+
"key",
|
|
2037
|
+
"ref",
|
|
2038
|
+
"className",
|
|
2039
|
+
"style",
|
|
2040
|
+
"children"
|
|
2041
|
+
],
|
|
2042
|
+
"message": "<Resizable> 不接受该 prop。已声明的 props:left、right、defaultSize、size、onSizeChange、min、max。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2043
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/resizable.ts"
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
"id": "props-whitelist-scroll-area",
|
|
2047
|
+
"kind": "props-whitelist",
|
|
2048
|
+
"generated": true,
|
|
2049
|
+
"scope": "both",
|
|
2050
|
+
"severity": "warn",
|
|
2051
|
+
"targets": [
|
|
2052
|
+
"js"
|
|
2053
|
+
],
|
|
2054
|
+
"match": {
|
|
2055
|
+
"component": "ScrollArea"
|
|
2056
|
+
},
|
|
2057
|
+
"allowed": [
|
|
2058
|
+
"height",
|
|
2059
|
+
"maxHeight",
|
|
2060
|
+
"horizontal",
|
|
2061
|
+
"children",
|
|
2062
|
+
"key",
|
|
2063
|
+
"ref",
|
|
2064
|
+
"className",
|
|
2065
|
+
"style"
|
|
2066
|
+
],
|
|
2067
|
+
"message": "<ScrollArea> 不接受该 prop。已声明的 props:height、maxHeight、horizontal、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2068
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/scroll-area.ts"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"id": "props-whitelist-separator",
|
|
2072
|
+
"kind": "props-whitelist",
|
|
2073
|
+
"generated": true,
|
|
2074
|
+
"scope": "both",
|
|
2075
|
+
"severity": "warn",
|
|
2076
|
+
"targets": [
|
|
2077
|
+
"js"
|
|
2078
|
+
],
|
|
2079
|
+
"match": {
|
|
2080
|
+
"component": "Separator"
|
|
2081
|
+
},
|
|
2082
|
+
"allowed": [
|
|
2083
|
+
"orientation",
|
|
2084
|
+
"label",
|
|
2085
|
+
"spacing",
|
|
2086
|
+
"key",
|
|
2087
|
+
"ref",
|
|
2088
|
+
"className",
|
|
2089
|
+
"style",
|
|
2090
|
+
"children"
|
|
2091
|
+
],
|
|
2092
|
+
"message": "<Separator> 不接受该 prop。已声明的 props:orientation、label、spacing。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2093
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/separator.ts"
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"id": "prop-enum-separator-orientation",
|
|
2097
|
+
"kind": "prop-enum",
|
|
2098
|
+
"generated": true,
|
|
2099
|
+
"scope": "both",
|
|
2100
|
+
"severity": "warn",
|
|
2101
|
+
"targets": [
|
|
2102
|
+
"js"
|
|
2103
|
+
],
|
|
2104
|
+
"match": {
|
|
2105
|
+
"component": "Separator",
|
|
2106
|
+
"prop": "orientation"
|
|
2107
|
+
},
|
|
2108
|
+
"allowed": [
|
|
2109
|
+
"horizontal",
|
|
2110
|
+
"vertical"
|
|
2111
|
+
],
|
|
2112
|
+
"message": "<Separator> 的 orientation 取值须为 'horizontal' | 'vertical' 之一",
|
|
2113
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/separator.ts,不得在别处另立一份。"
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"id": "props-whitelist-skeleton",
|
|
2117
|
+
"kind": "props-whitelist",
|
|
2118
|
+
"generated": true,
|
|
2119
|
+
"scope": "both",
|
|
2120
|
+
"severity": "warn",
|
|
2121
|
+
"targets": [
|
|
2122
|
+
"js"
|
|
2123
|
+
],
|
|
2124
|
+
"match": {
|
|
2125
|
+
"component": "Skeleton"
|
|
2126
|
+
},
|
|
2127
|
+
"allowed": [
|
|
2128
|
+
"width",
|
|
2129
|
+
"height",
|
|
2130
|
+
"radius",
|
|
2131
|
+
"lines",
|
|
2132
|
+
"key",
|
|
2133
|
+
"ref",
|
|
2134
|
+
"className",
|
|
2135
|
+
"style",
|
|
2136
|
+
"children"
|
|
2137
|
+
],
|
|
2138
|
+
"message": "<Skeleton> 不接受该 prop。已声明的 props:width、height、radius、lines。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2139
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/skeleton.ts"
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"id": "props-whitelist-table",
|
|
2143
|
+
"kind": "props-whitelist",
|
|
2144
|
+
"generated": true,
|
|
2145
|
+
"scope": "both",
|
|
2146
|
+
"severity": "warn",
|
|
2147
|
+
"targets": [
|
|
2148
|
+
"js"
|
|
2149
|
+
],
|
|
2150
|
+
"match": {
|
|
2151
|
+
"component": "Table"
|
|
2152
|
+
},
|
|
2153
|
+
"allowed": [
|
|
2154
|
+
"columns",
|
|
2155
|
+
"rows",
|
|
2156
|
+
"rowKey",
|
|
2157
|
+
"selectable",
|
|
2158
|
+
"selected",
|
|
2159
|
+
"onSelectedChange",
|
|
2160
|
+
"onRowClick",
|
|
2161
|
+
"sort",
|
|
2162
|
+
"onSortChange",
|
|
2163
|
+
"empty",
|
|
2164
|
+
"density",
|
|
2165
|
+
"key",
|
|
2166
|
+
"ref",
|
|
2167
|
+
"className",
|
|
2168
|
+
"style",
|
|
2169
|
+
"children"
|
|
2170
|
+
],
|
|
2171
|
+
"message": "<Table> 不接受该 prop。已声明的 props:columns、rows、rowKey、selectable、selected、onSelectedChange、onRowClick、sort、onSortChange、empty、density。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2172
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/data-content-layout/table.ts"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"id": "prop-enum-table-density",
|
|
2176
|
+
"kind": "prop-enum",
|
|
2177
|
+
"generated": true,
|
|
2178
|
+
"scope": "both",
|
|
2179
|
+
"severity": "warn",
|
|
2180
|
+
"targets": [
|
|
2181
|
+
"js"
|
|
2182
|
+
],
|
|
2183
|
+
"match": {
|
|
2184
|
+
"component": "Table",
|
|
2185
|
+
"prop": "density"
|
|
2186
|
+
},
|
|
2187
|
+
"allowed": [
|
|
2188
|
+
"default",
|
|
2189
|
+
"sm"
|
|
2190
|
+
],
|
|
2191
|
+
"message": "<Table> 的 density 取值须为 'default' | 'sm' 之一",
|
|
2192
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/data-content-layout/table.ts,不得在别处另立一份。"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"id": "props-whitelist-alert",
|
|
2196
|
+
"kind": "props-whitelist",
|
|
2197
|
+
"generated": true,
|
|
2198
|
+
"scope": "both",
|
|
2199
|
+
"severity": "warn",
|
|
2200
|
+
"targets": [
|
|
2201
|
+
"js"
|
|
2202
|
+
],
|
|
2203
|
+
"match": {
|
|
2204
|
+
"component": "Alert"
|
|
2205
|
+
},
|
|
2206
|
+
"allowed": [
|
|
2207
|
+
"tone",
|
|
2208
|
+
"title",
|
|
2209
|
+
"action",
|
|
2210
|
+
"children",
|
|
2211
|
+
"key",
|
|
2212
|
+
"ref",
|
|
2213
|
+
"className",
|
|
2214
|
+
"style"
|
|
2215
|
+
],
|
|
2216
|
+
"message": "<Alert> 不接受该 prop。已声明的 props:tone、title、action、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2217
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/alert.ts"
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"id": "prop-enum-alert-tone",
|
|
2221
|
+
"kind": "prop-enum",
|
|
2222
|
+
"generated": true,
|
|
2223
|
+
"scope": "both",
|
|
2224
|
+
"severity": "warn",
|
|
2225
|
+
"targets": [
|
|
2226
|
+
"js"
|
|
2227
|
+
],
|
|
2228
|
+
"match": {
|
|
2229
|
+
"component": "Alert",
|
|
2230
|
+
"prop": "tone"
|
|
2231
|
+
},
|
|
2232
|
+
"allowed": [
|
|
2233
|
+
"info",
|
|
2234
|
+
"success",
|
|
2235
|
+
"warning",
|
|
2236
|
+
"danger"
|
|
2237
|
+
],
|
|
2238
|
+
"message": "<Alert> 的 tone 取值须为 'info' | 'success' | 'warning' | 'danger' 之一",
|
|
2239
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/alert.ts,不得在别处另立一份。"
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
"id": "props-whitelist-alert-dialog",
|
|
2243
|
+
"kind": "props-whitelist",
|
|
2244
|
+
"generated": true,
|
|
2245
|
+
"scope": "both",
|
|
2246
|
+
"severity": "warn",
|
|
2247
|
+
"targets": [
|
|
2248
|
+
"js"
|
|
2249
|
+
],
|
|
2250
|
+
"match": {
|
|
2251
|
+
"component": "AlertDialog"
|
|
2252
|
+
},
|
|
2253
|
+
"allowed": [
|
|
2254
|
+
"open",
|
|
2255
|
+
"title",
|
|
2256
|
+
"description",
|
|
2257
|
+
"confirmText",
|
|
2258
|
+
"cancelText",
|
|
2259
|
+
"destructive",
|
|
2260
|
+
"onConfirm",
|
|
2261
|
+
"onCancel",
|
|
2262
|
+
"children",
|
|
2263
|
+
"key",
|
|
2264
|
+
"ref",
|
|
2265
|
+
"className",
|
|
2266
|
+
"style"
|
|
2267
|
+
],
|
|
2268
|
+
"message": "<AlertDialog> 不接受该 prop。已声明的 props:open、title、description、confirmText、cancelText、destructive、onConfirm、onCancel、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2269
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/alert-dialog.ts"
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"id": "props-whitelist-collapsible",
|
|
2273
|
+
"kind": "props-whitelist",
|
|
2274
|
+
"generated": true,
|
|
2275
|
+
"scope": "both",
|
|
2276
|
+
"severity": "warn",
|
|
2277
|
+
"targets": [
|
|
2278
|
+
"js"
|
|
2279
|
+
],
|
|
2280
|
+
"match": {
|
|
2281
|
+
"component": "Collapsible"
|
|
2282
|
+
},
|
|
2283
|
+
"allowed": [
|
|
2284
|
+
"label",
|
|
2285
|
+
"defaultOpen",
|
|
2286
|
+
"open",
|
|
2287
|
+
"onOpenChange",
|
|
2288
|
+
"children",
|
|
2289
|
+
"key",
|
|
2290
|
+
"ref",
|
|
2291
|
+
"className",
|
|
2292
|
+
"style"
|
|
2293
|
+
],
|
|
2294
|
+
"message": "<Collapsible> 不接受该 prop。已声明的 props:label、defaultOpen、open、onOpenChange、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2295
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/collapsible.ts"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"id": "props-whitelist-dialog",
|
|
2299
|
+
"kind": "props-whitelist",
|
|
2300
|
+
"generated": true,
|
|
2301
|
+
"scope": "both",
|
|
2302
|
+
"severity": "warn",
|
|
2303
|
+
"targets": [
|
|
2304
|
+
"js"
|
|
2305
|
+
],
|
|
2306
|
+
"match": {
|
|
2307
|
+
"component": "Dialog"
|
|
2308
|
+
},
|
|
2309
|
+
"allowed": [
|
|
2310
|
+
"open",
|
|
2311
|
+
"title",
|
|
2312
|
+
"description",
|
|
2313
|
+
"size",
|
|
2314
|
+
"footer",
|
|
2315
|
+
"onClose",
|
|
2316
|
+
"children",
|
|
2317
|
+
"key",
|
|
2318
|
+
"ref",
|
|
2319
|
+
"className",
|
|
2320
|
+
"style"
|
|
2321
|
+
],
|
|
2322
|
+
"message": "<Dialog> 不接受该 prop。已声明的 props:open、title、description、size、footer、onClose、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2323
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/dialog.ts"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"id": "props-whitelist-drawer",
|
|
2327
|
+
"kind": "props-whitelist",
|
|
2328
|
+
"generated": true,
|
|
2329
|
+
"scope": "both",
|
|
2330
|
+
"severity": "warn",
|
|
2331
|
+
"targets": [
|
|
2332
|
+
"js"
|
|
2333
|
+
],
|
|
2334
|
+
"match": {
|
|
2335
|
+
"component": "Drawer"
|
|
2336
|
+
},
|
|
2337
|
+
"allowed": [
|
|
2338
|
+
"open",
|
|
2339
|
+
"title",
|
|
2340
|
+
"width",
|
|
2341
|
+
"side",
|
|
2342
|
+
"footer",
|
|
2343
|
+
"onClose",
|
|
2344
|
+
"children",
|
|
2345
|
+
"key",
|
|
2346
|
+
"ref",
|
|
2347
|
+
"className",
|
|
2348
|
+
"style"
|
|
2349
|
+
],
|
|
2350
|
+
"message": "<Drawer> 不接受该 prop。已声明的 props:open、title、width、side、footer、onClose、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2351
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/drawer.ts"
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"id": "prop-enum-drawer-side",
|
|
2355
|
+
"kind": "prop-enum",
|
|
2356
|
+
"generated": true,
|
|
2357
|
+
"scope": "both",
|
|
2358
|
+
"severity": "warn",
|
|
2359
|
+
"targets": [
|
|
2360
|
+
"js"
|
|
2361
|
+
],
|
|
2362
|
+
"match": {
|
|
2363
|
+
"component": "Drawer",
|
|
2364
|
+
"prop": "side"
|
|
2365
|
+
},
|
|
2366
|
+
"allowed": [
|
|
2367
|
+
"right",
|
|
2368
|
+
"left"
|
|
2369
|
+
],
|
|
2370
|
+
"message": "<Drawer> 的 side 取值须为 'right' | 'left' 之一",
|
|
2371
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/drawer.ts,不得在别处另立一份。"
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
"id": "props-whitelist-dropdown-menu",
|
|
2375
|
+
"kind": "props-whitelist",
|
|
2376
|
+
"generated": true,
|
|
2377
|
+
"scope": "both",
|
|
2378
|
+
"severity": "warn",
|
|
2379
|
+
"targets": [
|
|
2380
|
+
"js"
|
|
2381
|
+
],
|
|
2382
|
+
"match": {
|
|
2383
|
+
"component": "DropdownMenu"
|
|
2384
|
+
},
|
|
2385
|
+
"allowed": [
|
|
2386
|
+
"trigger",
|
|
2387
|
+
"items",
|
|
2388
|
+
"onSelect",
|
|
2389
|
+
"align",
|
|
2390
|
+
"key",
|
|
2391
|
+
"ref",
|
|
2392
|
+
"className",
|
|
2393
|
+
"style",
|
|
2394
|
+
"children"
|
|
2395
|
+
],
|
|
2396
|
+
"message": "<DropdownMenu> 不接受该 prop。已声明的 props:trigger、items、onSelect、align。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2397
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/dropdown-menu.ts"
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"id": "prop-enum-dropdown-menu-align",
|
|
2401
|
+
"kind": "prop-enum",
|
|
2402
|
+
"generated": true,
|
|
2403
|
+
"scope": "both",
|
|
2404
|
+
"severity": "warn",
|
|
2405
|
+
"targets": [
|
|
2406
|
+
"js"
|
|
2407
|
+
],
|
|
2408
|
+
"match": {
|
|
2409
|
+
"component": "DropdownMenu",
|
|
2410
|
+
"prop": "align"
|
|
2411
|
+
},
|
|
2412
|
+
"allowed": [
|
|
2413
|
+
"start",
|
|
2414
|
+
"end"
|
|
2415
|
+
],
|
|
2416
|
+
"message": "<DropdownMenu> 的 align 取值须为 'start' | 'end' 之一",
|
|
2417
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/dropdown-menu.ts,不得在别处另立一份。"
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
"id": "props-whitelist-hover-card",
|
|
2421
|
+
"kind": "props-whitelist",
|
|
2422
|
+
"generated": true,
|
|
2423
|
+
"scope": "both",
|
|
2424
|
+
"severity": "warn",
|
|
2425
|
+
"targets": [
|
|
2426
|
+
"js"
|
|
2427
|
+
],
|
|
2428
|
+
"match": {
|
|
2429
|
+
"component": "HoverCard"
|
|
2430
|
+
},
|
|
2431
|
+
"allowed": [
|
|
2432
|
+
"trigger",
|
|
2433
|
+
"content",
|
|
2434
|
+
"width",
|
|
2435
|
+
"openDelay",
|
|
2436
|
+
"key",
|
|
2437
|
+
"ref",
|
|
2438
|
+
"className",
|
|
2439
|
+
"style",
|
|
2440
|
+
"children"
|
|
2441
|
+
],
|
|
2442
|
+
"message": "<HoverCard> 不接受该 prop。已声明的 props:trigger、content、width、openDelay。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2443
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/hover-card.ts"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"id": "props-whitelist-popover",
|
|
2447
|
+
"kind": "props-whitelist",
|
|
2448
|
+
"generated": true,
|
|
2449
|
+
"scope": "both",
|
|
2450
|
+
"severity": "warn",
|
|
2451
|
+
"targets": [
|
|
2452
|
+
"js"
|
|
2453
|
+
],
|
|
2454
|
+
"match": {
|
|
2455
|
+
"component": "Popover"
|
|
2456
|
+
},
|
|
2457
|
+
"allowed": [
|
|
2458
|
+
"trigger",
|
|
2459
|
+
"open",
|
|
2460
|
+
"defaultOpen",
|
|
2461
|
+
"onOpenChange",
|
|
2462
|
+
"width",
|
|
2463
|
+
"align",
|
|
2464
|
+
"radius",
|
|
2465
|
+
"children",
|
|
2466
|
+
"key",
|
|
2467
|
+
"ref",
|
|
2468
|
+
"className",
|
|
2469
|
+
"style"
|
|
2470
|
+
],
|
|
2471
|
+
"message": "<Popover> 不接受该 prop。已声明的 props:trigger、open、defaultOpen、onOpenChange、width、align、radius、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2472
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/popover.ts"
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"id": "prop-enum-popover-align",
|
|
2476
|
+
"kind": "prop-enum",
|
|
2477
|
+
"generated": true,
|
|
2478
|
+
"scope": "both",
|
|
2479
|
+
"severity": "warn",
|
|
2480
|
+
"targets": [
|
|
2481
|
+
"js"
|
|
2482
|
+
],
|
|
2483
|
+
"match": {
|
|
2484
|
+
"component": "Popover",
|
|
2485
|
+
"prop": "align"
|
|
2486
|
+
},
|
|
2487
|
+
"allowed": [
|
|
2488
|
+
"start",
|
|
2489
|
+
"end"
|
|
2490
|
+
],
|
|
2491
|
+
"message": "<Popover> 的 align 取值须为 'start' | 'end' 之一",
|
|
2492
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/popover.ts,不得在别处另立一份。"
|
|
2493
|
+
},
|
|
2494
|
+
{
|
|
2495
|
+
"id": "props-whitelist-sheet",
|
|
2496
|
+
"kind": "props-whitelist",
|
|
2497
|
+
"generated": true,
|
|
2498
|
+
"scope": "both",
|
|
2499
|
+
"severity": "warn",
|
|
2500
|
+
"targets": [
|
|
2501
|
+
"js"
|
|
2502
|
+
],
|
|
2503
|
+
"match": {
|
|
2504
|
+
"component": "Sheet"
|
|
2505
|
+
},
|
|
2506
|
+
"allowed": [
|
|
2507
|
+
"open",
|
|
2508
|
+
"side",
|
|
2509
|
+
"size",
|
|
2510
|
+
"title",
|
|
2511
|
+
"onClose",
|
|
2512
|
+
"children",
|
|
2513
|
+
"key",
|
|
2514
|
+
"ref",
|
|
2515
|
+
"className",
|
|
2516
|
+
"style"
|
|
2517
|
+
],
|
|
2518
|
+
"message": "<Sheet> 不接受该 prop。已声明的 props:open、side、size、title、onClose、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2519
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/sheet.ts"
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
"id": "prop-enum-sheet-side",
|
|
2523
|
+
"kind": "prop-enum",
|
|
2524
|
+
"generated": true,
|
|
2525
|
+
"scope": "both",
|
|
2526
|
+
"severity": "warn",
|
|
2527
|
+
"targets": [
|
|
2528
|
+
"js"
|
|
2529
|
+
],
|
|
2530
|
+
"match": {
|
|
2531
|
+
"component": "Sheet",
|
|
2532
|
+
"prop": "side"
|
|
2533
|
+
},
|
|
2534
|
+
"allowed": [
|
|
2535
|
+
"right",
|
|
2536
|
+
"left",
|
|
2537
|
+
"top",
|
|
2538
|
+
"bottom"
|
|
2539
|
+
],
|
|
2540
|
+
"message": "<Sheet> 的 side 取值须为 'right' | 'left' | 'top' | 'bottom' 之一",
|
|
2541
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/sheet.ts,不得在别处另立一份。"
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
"id": "props-whitelist-sonner",
|
|
2545
|
+
"kind": "props-whitelist",
|
|
2546
|
+
"generated": true,
|
|
2547
|
+
"scope": "both",
|
|
2548
|
+
"severity": "warn",
|
|
2549
|
+
"targets": [
|
|
2550
|
+
"js"
|
|
2551
|
+
],
|
|
2552
|
+
"match": {
|
|
2553
|
+
"component": "Sonner"
|
|
2554
|
+
},
|
|
2555
|
+
"allowed": [
|
|
2556
|
+
"toasts",
|
|
2557
|
+
"onDismiss",
|
|
2558
|
+
"position",
|
|
2559
|
+
"key",
|
|
2560
|
+
"ref",
|
|
2561
|
+
"className",
|
|
2562
|
+
"style",
|
|
2563
|
+
"children"
|
|
2564
|
+
],
|
|
2565
|
+
"message": "<Sonner> 不接受该 prop。已声明的 props:toasts、onDismiss、position。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2566
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/sonner.ts"
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
"id": "prop-enum-sonner-position",
|
|
2570
|
+
"kind": "prop-enum",
|
|
2571
|
+
"generated": true,
|
|
2572
|
+
"scope": "both",
|
|
2573
|
+
"severity": "warn",
|
|
2574
|
+
"targets": [
|
|
2575
|
+
"js"
|
|
2576
|
+
],
|
|
2577
|
+
"match": {
|
|
2578
|
+
"component": "Sonner",
|
|
2579
|
+
"prop": "position"
|
|
2580
|
+
},
|
|
2581
|
+
"allowed": [
|
|
2582
|
+
"bottom-right",
|
|
2583
|
+
"bottom-left",
|
|
2584
|
+
"top-right",
|
|
2585
|
+
"top-left"
|
|
2586
|
+
],
|
|
2587
|
+
"message": "<Sonner> 的 position 取值须为 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' 之一",
|
|
2588
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/sonner.ts,不得在别处另立一份。"
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
"id": "props-whitelist-spinner",
|
|
2592
|
+
"kind": "props-whitelist",
|
|
2593
|
+
"generated": true,
|
|
2594
|
+
"scope": "both",
|
|
2595
|
+
"severity": "warn",
|
|
2596
|
+
"targets": [
|
|
2597
|
+
"js"
|
|
2598
|
+
],
|
|
2599
|
+
"match": {
|
|
2600
|
+
"component": "Spinner"
|
|
2601
|
+
},
|
|
2602
|
+
"allowed": [
|
|
2603
|
+
"size",
|
|
2604
|
+
"label",
|
|
2605
|
+
"key",
|
|
2606
|
+
"ref",
|
|
2607
|
+
"className",
|
|
2608
|
+
"style",
|
|
2609
|
+
"children"
|
|
2610
|
+
],
|
|
2611
|
+
"message": "<Spinner> 不接受该 prop。已声明的 props:size、label。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2612
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/spinner.ts"
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"id": "props-whitelist-tooltip",
|
|
2616
|
+
"kind": "props-whitelist",
|
|
2617
|
+
"generated": true,
|
|
2618
|
+
"scope": "both",
|
|
2619
|
+
"severity": "warn",
|
|
2620
|
+
"targets": [
|
|
2621
|
+
"js"
|
|
2622
|
+
],
|
|
2623
|
+
"match": {
|
|
2624
|
+
"component": "Tooltip"
|
|
2625
|
+
},
|
|
2626
|
+
"allowed": [
|
|
2627
|
+
"content",
|
|
2628
|
+
"side",
|
|
2629
|
+
"children",
|
|
2630
|
+
"key",
|
|
2631
|
+
"ref",
|
|
2632
|
+
"className",
|
|
2633
|
+
"style"
|
|
2634
|
+
],
|
|
2635
|
+
"message": "<Tooltip> 不接受该 prop。已声明的 props:content、side、children。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2636
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/foundation/feedback-overlay/tooltip.ts"
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"id": "prop-enum-tooltip-side",
|
|
2640
|
+
"kind": "prop-enum",
|
|
2641
|
+
"generated": true,
|
|
2642
|
+
"scope": "both",
|
|
2643
|
+
"severity": "warn",
|
|
2644
|
+
"targets": [
|
|
2645
|
+
"js"
|
|
2646
|
+
],
|
|
2647
|
+
"match": {
|
|
2648
|
+
"component": "Tooltip",
|
|
2649
|
+
"prop": "side"
|
|
2650
|
+
},
|
|
2651
|
+
"allowed": [
|
|
2652
|
+
"top",
|
|
2653
|
+
"bottom",
|
|
2654
|
+
"left",
|
|
2655
|
+
"right"
|
|
2656
|
+
],
|
|
2657
|
+
"message": "<Tooltip> 的 side 取值须为 'top' | 'bottom' | 'left' | 'right' 之一",
|
|
2658
|
+
"rationale": "取值与顺序取自契约 contracts/foundation/feedback-overlay/tooltip.ts,不得在别处另立一份。"
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"id": "props-whitelist-application-filter-menu",
|
|
2662
|
+
"kind": "props-whitelist",
|
|
2663
|
+
"generated": true,
|
|
2664
|
+
"scope": "both",
|
|
2665
|
+
"severity": "warn",
|
|
2666
|
+
"targets": [
|
|
2667
|
+
"js"
|
|
2668
|
+
],
|
|
2669
|
+
"match": {
|
|
2670
|
+
"component": "ApplicationFilterMenu"
|
|
2671
|
+
},
|
|
2672
|
+
"allowed": [
|
|
2673
|
+
"label",
|
|
2674
|
+
"options",
|
|
2675
|
+
"value",
|
|
2676
|
+
"defaultValue",
|
|
2677
|
+
"onValueChange",
|
|
2678
|
+
"multiple",
|
|
2679
|
+
"disabled",
|
|
2680
|
+
"key",
|
|
2681
|
+
"ref",
|
|
2682
|
+
"className",
|
|
2683
|
+
"style",
|
|
2684
|
+
"children"
|
|
2685
|
+
],
|
|
2686
|
+
"message": "<ApplicationFilterMenu> 不接受该 prop。已声明的 props:label、options、value、defaultValue、onValueChange、multiple、disabled。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2687
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/application-filter-menu.ts"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
"id": "props-whitelist-list-selection-checkbox",
|
|
2691
|
+
"kind": "props-whitelist",
|
|
2692
|
+
"generated": true,
|
|
2693
|
+
"scope": "both",
|
|
2694
|
+
"severity": "warn",
|
|
2695
|
+
"targets": [
|
|
2696
|
+
"js"
|
|
2697
|
+
],
|
|
2698
|
+
"match": {
|
|
2699
|
+
"component": "ListSelectionCheckbox"
|
|
2700
|
+
},
|
|
2701
|
+
"allowed": [
|
|
2702
|
+
"checked",
|
|
2703
|
+
"indeterminate",
|
|
2704
|
+
"onCheckedChange",
|
|
2705
|
+
"scope",
|
|
2706
|
+
"disabled",
|
|
2707
|
+
"key",
|
|
2708
|
+
"ref",
|
|
2709
|
+
"className",
|
|
2710
|
+
"style",
|
|
2711
|
+
"children"
|
|
2712
|
+
],
|
|
2713
|
+
"message": "<ListSelectionCheckbox> 不接受该 prop。已声明的 props:checked、indeterminate、onCheckedChange、scope、disabled。继承自 HTMLAttributes<HTMLSpanElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2714
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLSpanElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/list-selection-checkbox.ts"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"id": "prop-enum-list-selection-checkbox-scope",
|
|
2718
|
+
"kind": "prop-enum",
|
|
2719
|
+
"generated": true,
|
|
2720
|
+
"scope": "both",
|
|
2721
|
+
"severity": "warn",
|
|
2722
|
+
"targets": [
|
|
2723
|
+
"js"
|
|
2724
|
+
],
|
|
2725
|
+
"match": {
|
|
2726
|
+
"component": "ListSelectionCheckbox",
|
|
2727
|
+
"prop": "scope"
|
|
2728
|
+
},
|
|
2729
|
+
"allowed": [
|
|
2730
|
+
"row",
|
|
2731
|
+
"all"
|
|
2732
|
+
],
|
|
2733
|
+
"message": "<ListSelectionCheckbox> 的 scope 取值须为 'row' | 'all' 之一",
|
|
2734
|
+
"rationale": "取值与顺序取自契约 contracts/application-atomic/list-selection-checkbox.ts,不得在别处另立一份。"
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"id": "props-whitelist-list-table-pagination",
|
|
2738
|
+
"kind": "props-whitelist",
|
|
2739
|
+
"generated": true,
|
|
2740
|
+
"scope": "both",
|
|
2741
|
+
"severity": "warn",
|
|
2742
|
+
"targets": [
|
|
2743
|
+
"js"
|
|
2744
|
+
],
|
|
2745
|
+
"match": {
|
|
2746
|
+
"component": "ListTablePagination"
|
|
2747
|
+
},
|
|
2748
|
+
"allowed": [
|
|
2749
|
+
"page",
|
|
2750
|
+
"pageSize",
|
|
2751
|
+
"total",
|
|
2752
|
+
"pageSizeOptions",
|
|
2753
|
+
"onPageChange",
|
|
2754
|
+
"onPageSizeChange",
|
|
2755
|
+
"key",
|
|
2756
|
+
"ref",
|
|
2757
|
+
"className",
|
|
2758
|
+
"style",
|
|
2759
|
+
"children"
|
|
2760
|
+
],
|
|
2761
|
+
"message": "<ListTablePagination> 不接受该 prop。已声明的 props:page、pageSize、total、pageSizeOptions、onPageChange、onPageSizeChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2762
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/list-table-pagination.ts"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"id": "props-whitelist-search-field",
|
|
2766
|
+
"kind": "props-whitelist",
|
|
2767
|
+
"generated": true,
|
|
2768
|
+
"scope": "both",
|
|
2769
|
+
"severity": "warn",
|
|
2770
|
+
"targets": [
|
|
2771
|
+
"js"
|
|
2772
|
+
],
|
|
2773
|
+
"match": {
|
|
2774
|
+
"component": "SearchField"
|
|
2775
|
+
},
|
|
2776
|
+
"allowed": [
|
|
2777
|
+
"value",
|
|
2778
|
+
"defaultValue",
|
|
2779
|
+
"onChange",
|
|
2780
|
+
"onSubmit",
|
|
2781
|
+
"placeholder",
|
|
2782
|
+
"ariaLabel",
|
|
2783
|
+
"disabled",
|
|
2784
|
+
"inputProps",
|
|
2785
|
+
"key",
|
|
2786
|
+
"ref",
|
|
2787
|
+
"className",
|
|
2788
|
+
"style",
|
|
2789
|
+
"children"
|
|
2790
|
+
],
|
|
2791
|
+
"message": "<SearchField> 不接受该 prop。已声明的 props:value、defaultValue、onChange、onSubmit、placeholder、ariaLabel、disabled、inputProps。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2792
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/search-field.ts"
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"id": "props-whitelist-sidebar-app-link-button",
|
|
2796
|
+
"kind": "props-whitelist",
|
|
2797
|
+
"generated": true,
|
|
2798
|
+
"scope": "both",
|
|
2799
|
+
"severity": "warn",
|
|
2800
|
+
"targets": [
|
|
2801
|
+
"js"
|
|
2802
|
+
],
|
|
2803
|
+
"match": {
|
|
2804
|
+
"component": "SidebarAppLinkButton"
|
|
2805
|
+
},
|
|
2806
|
+
"allowed": [
|
|
2807
|
+
"name",
|
|
2808
|
+
"glyph",
|
|
2809
|
+
"description",
|
|
2810
|
+
"key",
|
|
2811
|
+
"ref",
|
|
2812
|
+
"className",
|
|
2813
|
+
"style",
|
|
2814
|
+
"children"
|
|
2815
|
+
],
|
|
2816
|
+
"message": "<SidebarAppLinkButton> 不接受该 prop。已声明的 props:name、glyph、description。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2817
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/sidebar-app-link-button.ts"
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"id": "props-whitelist-sidebar-rail-button",
|
|
2821
|
+
"kind": "props-whitelist",
|
|
2822
|
+
"generated": true,
|
|
2823
|
+
"scope": "both",
|
|
2824
|
+
"severity": "warn",
|
|
2825
|
+
"targets": [
|
|
2826
|
+
"js"
|
|
2827
|
+
],
|
|
2828
|
+
"match": {
|
|
2829
|
+
"component": "SidebarRailButton"
|
|
2830
|
+
},
|
|
2831
|
+
"allowed": [
|
|
2832
|
+
"icon",
|
|
2833
|
+
"label",
|
|
2834
|
+
"active",
|
|
2835
|
+
"badge",
|
|
2836
|
+
"key",
|
|
2837
|
+
"ref",
|
|
2838
|
+
"className",
|
|
2839
|
+
"style",
|
|
2840
|
+
"children"
|
|
2841
|
+
],
|
|
2842
|
+
"message": "<SidebarRailButton> 不接受该 prop。已声明的 props:icon、label、active、badge。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2843
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/sidebar-rail-button.ts"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
"id": "props-whitelist-system-button",
|
|
2847
|
+
"kind": "props-whitelist",
|
|
2848
|
+
"generated": true,
|
|
2849
|
+
"scope": "both",
|
|
2850
|
+
"severity": "warn",
|
|
2851
|
+
"targets": [
|
|
2852
|
+
"js"
|
|
2853
|
+
],
|
|
2854
|
+
"match": {
|
|
2855
|
+
"component": "SystemButton"
|
|
2856
|
+
},
|
|
2857
|
+
"allowed": [
|
|
2858
|
+
"intent",
|
|
2859
|
+
"size",
|
|
2860
|
+
"loading",
|
|
2861
|
+
"children",
|
|
2862
|
+
"key",
|
|
2863
|
+
"ref",
|
|
2864
|
+
"className",
|
|
2865
|
+
"style"
|
|
2866
|
+
],
|
|
2867
|
+
"message": "<SystemButton> 不接受该 prop。已声明的 props:intent、size、loading、children。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2868
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-atomic/system-button.ts"
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
"id": "prop-enum-system-button-intent",
|
|
2872
|
+
"kind": "prop-enum",
|
|
2873
|
+
"generated": true,
|
|
2874
|
+
"scope": "both",
|
|
2875
|
+
"severity": "warn",
|
|
2876
|
+
"targets": [
|
|
2877
|
+
"js"
|
|
2878
|
+
],
|
|
2879
|
+
"match": {
|
|
2880
|
+
"component": "SystemButton",
|
|
2881
|
+
"prop": "intent"
|
|
2882
|
+
},
|
|
2883
|
+
"allowed": [
|
|
2884
|
+
"primary",
|
|
2885
|
+
"secondary",
|
|
2886
|
+
"quiet",
|
|
2887
|
+
"icon",
|
|
2888
|
+
"link",
|
|
2889
|
+
"destructive"
|
|
2890
|
+
],
|
|
2891
|
+
"message": "<SystemButton> 的 intent 取值须为 'primary' | 'secondary' | 'quiet' | 'icon' | 'link' | 'destructive' 之一",
|
|
2892
|
+
"rationale": "取值与顺序取自契约 contracts/application-atomic/system-button.ts,不得在别处另立一份。"
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
"id": "prop-enum-system-button-size",
|
|
2896
|
+
"kind": "prop-enum",
|
|
2897
|
+
"generated": true,
|
|
2898
|
+
"scope": "both",
|
|
2899
|
+
"severity": "warn",
|
|
2900
|
+
"targets": [
|
|
2901
|
+
"js"
|
|
2902
|
+
],
|
|
2903
|
+
"match": {
|
|
2904
|
+
"component": "SystemButton",
|
|
2905
|
+
"prop": "size"
|
|
2906
|
+
},
|
|
2907
|
+
"allowed": [
|
|
2908
|
+
"default",
|
|
2909
|
+
"compact",
|
|
2910
|
+
"icon"
|
|
2911
|
+
],
|
|
2912
|
+
"message": "<SystemButton> 的 size 取值须为 'default' | 'compact' | 'icon' 之一",
|
|
2913
|
+
"rationale": "取值与顺序取自契约 contracts/application-atomic/system-button.ts,不得在别处另立一份。"
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"id": "props-whitelist-application-module-switcher",
|
|
2917
|
+
"kind": "props-whitelist",
|
|
2918
|
+
"generated": true,
|
|
2919
|
+
"scope": "both",
|
|
2920
|
+
"severity": "warn",
|
|
2921
|
+
"targets": [
|
|
2922
|
+
"js"
|
|
2923
|
+
],
|
|
2924
|
+
"match": {
|
|
2925
|
+
"component": "ApplicationModuleSwitcher"
|
|
2926
|
+
},
|
|
2927
|
+
"allowed": [
|
|
2928
|
+
"moduleName",
|
|
2929
|
+
"modules",
|
|
2930
|
+
"currentModule",
|
|
2931
|
+
"glyph",
|
|
2932
|
+
"open",
|
|
2933
|
+
"onOpenChange",
|
|
2934
|
+
"onSelect",
|
|
2935
|
+
"key",
|
|
2936
|
+
"ref",
|
|
2937
|
+
"className",
|
|
2938
|
+
"style",
|
|
2939
|
+
"children"
|
|
2940
|
+
],
|
|
2941
|
+
"message": "<ApplicationModuleSwitcher> 不接受该 prop。已声明的 props:moduleName、modules、currentModule、glyph、open、onOpenChange、onSelect。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2942
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 ButtonHTMLAttributes<HTMLButtonElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/application-module-switcher.ts"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"id": "props-whitelist-application-primary-navigation",
|
|
2946
|
+
"kind": "props-whitelist",
|
|
2947
|
+
"generated": true,
|
|
2948
|
+
"scope": "both",
|
|
2949
|
+
"severity": "warn",
|
|
2950
|
+
"targets": [
|
|
2951
|
+
"js"
|
|
2952
|
+
],
|
|
2953
|
+
"match": {
|
|
2954
|
+
"component": "ApplicationPrimaryNavigation"
|
|
2955
|
+
},
|
|
2956
|
+
"allowed": [
|
|
2957
|
+
"appName",
|
|
2958
|
+
"appDescription",
|
|
2959
|
+
"appGlyph",
|
|
2960
|
+
"activeAction",
|
|
2961
|
+
"actionBadges",
|
|
2962
|
+
"onAction",
|
|
2963
|
+
"compact",
|
|
2964
|
+
"key",
|
|
2965
|
+
"ref",
|
|
2966
|
+
"className",
|
|
2967
|
+
"style",
|
|
2968
|
+
"children"
|
|
2969
|
+
],
|
|
2970
|
+
"message": "<ApplicationPrimaryNavigation> 不接受该 prop。已声明的 props:appName、appDescription、appGlyph、activeAction、actionBadges、onAction、compact。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
2971
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/application-primary-navigation.ts"
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
"id": "prop-enum-application-primary-navigation-active-action",
|
|
2975
|
+
"kind": "prop-enum",
|
|
2976
|
+
"generated": true,
|
|
2977
|
+
"scope": "both",
|
|
2978
|
+
"severity": "warn",
|
|
2979
|
+
"targets": [
|
|
2980
|
+
"js"
|
|
2981
|
+
],
|
|
2982
|
+
"match": {
|
|
2983
|
+
"component": "ApplicationPrimaryNavigation",
|
|
2984
|
+
"prop": "activeAction"
|
|
2985
|
+
},
|
|
2986
|
+
"allowed": [
|
|
2987
|
+
"messages",
|
|
2988
|
+
"todos",
|
|
2989
|
+
"overview",
|
|
2990
|
+
"risk",
|
|
2991
|
+
"settings"
|
|
2992
|
+
],
|
|
2993
|
+
"message": "<ApplicationPrimaryNavigation> 的 activeAction 取值须为 'messages' | 'todos' | 'overview' | 'risk' | 'settings' 之一",
|
|
2994
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/navigation/application-primary-navigation.ts,不得在别处另立一份。"
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"id": "props-whitelist-application-secondary-navigation",
|
|
2998
|
+
"kind": "props-whitelist",
|
|
2999
|
+
"generated": true,
|
|
3000
|
+
"scope": "both",
|
|
3001
|
+
"severity": "warn",
|
|
3002
|
+
"targets": [
|
|
3003
|
+
"js"
|
|
3004
|
+
],
|
|
3005
|
+
"match": {
|
|
3006
|
+
"component": "ApplicationSecondaryNavigation"
|
|
3007
|
+
},
|
|
3008
|
+
"allowed": [
|
|
3009
|
+
"moduleSwitcher",
|
|
3010
|
+
"tabs",
|
|
3011
|
+
"value",
|
|
3012
|
+
"onValueChange",
|
|
3013
|
+
"key",
|
|
3014
|
+
"ref",
|
|
3015
|
+
"className",
|
|
3016
|
+
"style",
|
|
3017
|
+
"children"
|
|
3018
|
+
],
|
|
3019
|
+
"message": "<ApplicationSecondaryNavigation> 不接受该 prop。已声明的 props:moduleSwitcher、tabs、value、onValueChange。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3020
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/application-secondary-navigation.ts"
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"id": "props-whitelist-global-sidebar",
|
|
3024
|
+
"kind": "props-whitelist",
|
|
3025
|
+
"generated": true,
|
|
3026
|
+
"scope": "both",
|
|
3027
|
+
"severity": "warn",
|
|
3028
|
+
"targets": [
|
|
3029
|
+
"js"
|
|
3030
|
+
],
|
|
3031
|
+
"match": {
|
|
3032
|
+
"component": "GlobalSidebar"
|
|
3033
|
+
},
|
|
3034
|
+
"allowed": [
|
|
3035
|
+
"items",
|
|
3036
|
+
"value",
|
|
3037
|
+
"onValueChange",
|
|
3038
|
+
"footer",
|
|
3039
|
+
"key",
|
|
3040
|
+
"ref",
|
|
3041
|
+
"className",
|
|
3042
|
+
"style",
|
|
3043
|
+
"children"
|
|
3044
|
+
],
|
|
3045
|
+
"message": "<GlobalSidebar> 不接受该 prop。已声明的 props:items、value、onValueChange、footer。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3046
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/global-sidebar.ts"
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
"id": "props-whitelist-top-navigation-primary-bar",
|
|
3050
|
+
"kind": "props-whitelist",
|
|
3051
|
+
"generated": true,
|
|
3052
|
+
"scope": "both",
|
|
3053
|
+
"severity": "warn",
|
|
3054
|
+
"targets": [
|
|
3055
|
+
"js"
|
|
3056
|
+
],
|
|
3057
|
+
"match": {
|
|
3058
|
+
"component": "TopNavigationPrimaryBar"
|
|
3059
|
+
},
|
|
3060
|
+
"allowed": [
|
|
3061
|
+
"brandName",
|
|
3062
|
+
"brandLogoSrc",
|
|
3063
|
+
"center",
|
|
3064
|
+
"accountName",
|
|
3065
|
+
"onAppSwitch",
|
|
3066
|
+
"onAccount",
|
|
3067
|
+
"key",
|
|
3068
|
+
"ref",
|
|
3069
|
+
"className",
|
|
3070
|
+
"style",
|
|
3071
|
+
"children"
|
|
3072
|
+
],
|
|
3073
|
+
"message": "<TopNavigationPrimaryBar> 不接受该 prop。已声明的 props:brandName、brandLogoSrc、center、accountName、onAppSwitch、onAccount。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3074
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/navigation/top-navigation-primary-bar.ts"
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
"id": "props-whitelist-application-metric-chart",
|
|
3078
|
+
"kind": "props-whitelist",
|
|
3079
|
+
"generated": true,
|
|
3080
|
+
"scope": "both",
|
|
3081
|
+
"severity": "warn",
|
|
3082
|
+
"targets": [
|
|
3083
|
+
"js"
|
|
3084
|
+
],
|
|
3085
|
+
"match": {
|
|
3086
|
+
"component": "ApplicationMetricChart"
|
|
3087
|
+
},
|
|
3088
|
+
"allowed": [
|
|
3089
|
+
"label",
|
|
3090
|
+
"value",
|
|
3091
|
+
"unit",
|
|
3092
|
+
"data",
|
|
3093
|
+
"colorIndex",
|
|
3094
|
+
"key",
|
|
3095
|
+
"ref",
|
|
3096
|
+
"className",
|
|
3097
|
+
"style",
|
|
3098
|
+
"children"
|
|
3099
|
+
],
|
|
3100
|
+
"message": "<ApplicationMetricChart> 不接受该 prop。已声明的 props:label、value、unit、data、colorIndex。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3101
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/statistics/metrics.ts"
|
|
3102
|
+
},
|
|
3103
|
+
{
|
|
3104
|
+
"id": "props-whitelist-application-metric-primary-secondary",
|
|
3105
|
+
"kind": "props-whitelist",
|
|
3106
|
+
"generated": true,
|
|
3107
|
+
"scope": "both",
|
|
3108
|
+
"severity": "warn",
|
|
3109
|
+
"targets": [
|
|
3110
|
+
"js"
|
|
3111
|
+
],
|
|
3112
|
+
"match": {
|
|
3113
|
+
"component": "ApplicationMetricPrimarySecondary"
|
|
3114
|
+
},
|
|
3115
|
+
"allowed": [
|
|
3116
|
+
"label",
|
|
3117
|
+
"value",
|
|
3118
|
+
"unit",
|
|
3119
|
+
"secondary",
|
|
3120
|
+
"key",
|
|
3121
|
+
"ref",
|
|
3122
|
+
"className",
|
|
3123
|
+
"style",
|
|
3124
|
+
"children"
|
|
3125
|
+
],
|
|
3126
|
+
"message": "<ApplicationMetricPrimarySecondary> 不接受该 prop。已声明的 props:label、value、unit、secondary。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3127
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/statistics/metrics.ts"
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"id": "props-whitelist-application-metric-status",
|
|
3131
|
+
"kind": "props-whitelist",
|
|
3132
|
+
"generated": true,
|
|
3133
|
+
"scope": "both",
|
|
3134
|
+
"severity": "warn",
|
|
3135
|
+
"targets": [
|
|
3136
|
+
"js"
|
|
3137
|
+
],
|
|
3138
|
+
"match": {
|
|
3139
|
+
"component": "ApplicationMetricStatus"
|
|
3140
|
+
},
|
|
3141
|
+
"allowed": [
|
|
3142
|
+
"label",
|
|
3143
|
+
"value",
|
|
3144
|
+
"status",
|
|
3145
|
+
"statusText",
|
|
3146
|
+
"note",
|
|
3147
|
+
"key",
|
|
3148
|
+
"ref",
|
|
3149
|
+
"className",
|
|
3150
|
+
"style",
|
|
3151
|
+
"children"
|
|
3152
|
+
],
|
|
3153
|
+
"message": "<ApplicationMetricStatus> 不接受该 prop。已声明的 props:label、value、status、statusText、note。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3154
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/statistics/metrics.ts"
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
"id": "prop-enum-application-metric-status-status",
|
|
3158
|
+
"kind": "prop-enum",
|
|
3159
|
+
"generated": true,
|
|
3160
|
+
"scope": "both",
|
|
3161
|
+
"severity": "warn",
|
|
3162
|
+
"targets": [
|
|
3163
|
+
"js"
|
|
3164
|
+
],
|
|
3165
|
+
"match": {
|
|
3166
|
+
"component": "ApplicationMetricStatus",
|
|
3167
|
+
"prop": "status"
|
|
3168
|
+
},
|
|
3169
|
+
"allowed": [
|
|
3170
|
+
"normal",
|
|
3171
|
+
"warning",
|
|
3172
|
+
"danger",
|
|
3173
|
+
"info"
|
|
3174
|
+
],
|
|
3175
|
+
"message": "<ApplicationMetricStatus> 的 status 取值须为 'normal' | 'warning' | 'danger' | 'info' 之一",
|
|
3176
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/statistics/metrics.ts,不得在别处另立一份。"
|
|
3177
|
+
},
|
|
3178
|
+
{
|
|
3179
|
+
"id": "props-whitelist-application-metric-strip",
|
|
3180
|
+
"kind": "props-whitelist",
|
|
3181
|
+
"generated": true,
|
|
3182
|
+
"scope": "both",
|
|
3183
|
+
"severity": "warn",
|
|
3184
|
+
"targets": [
|
|
3185
|
+
"js"
|
|
3186
|
+
],
|
|
3187
|
+
"match": {
|
|
3188
|
+
"component": "ApplicationMetricStrip"
|
|
3189
|
+
},
|
|
3190
|
+
"allowed": [
|
|
3191
|
+
"metrics",
|
|
3192
|
+
"columns",
|
|
3193
|
+
"children",
|
|
3194
|
+
"key",
|
|
3195
|
+
"ref",
|
|
3196
|
+
"className",
|
|
3197
|
+
"style"
|
|
3198
|
+
],
|
|
3199
|
+
"message": "<ApplicationMetricStrip> 不接受该 prop。已声明的 props:metrics、columns、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3200
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/statistics/metrics.ts"
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
"id": "props-whitelist-application-metric-trend",
|
|
3204
|
+
"kind": "props-whitelist",
|
|
3205
|
+
"generated": true,
|
|
3206
|
+
"scope": "both",
|
|
3207
|
+
"severity": "warn",
|
|
3208
|
+
"targets": [
|
|
3209
|
+
"js"
|
|
3210
|
+
],
|
|
3211
|
+
"match": {
|
|
3212
|
+
"component": "ApplicationMetricTrend"
|
|
3213
|
+
},
|
|
3214
|
+
"allowed": [
|
|
3215
|
+
"label",
|
|
3216
|
+
"value",
|
|
3217
|
+
"unit",
|
|
3218
|
+
"delta",
|
|
3219
|
+
"direction",
|
|
3220
|
+
"period",
|
|
3221
|
+
"key",
|
|
3222
|
+
"ref",
|
|
3223
|
+
"className",
|
|
3224
|
+
"style",
|
|
3225
|
+
"children"
|
|
3226
|
+
],
|
|
3227
|
+
"message": "<ApplicationMetricTrend> 不接受该 prop。已声明的 props:label、value、unit、delta、direction、period。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3228
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/statistics/metrics.ts"
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"id": "prop-enum-application-metric-trend-direction",
|
|
3232
|
+
"kind": "prop-enum",
|
|
3233
|
+
"generated": true,
|
|
3234
|
+
"scope": "both",
|
|
3235
|
+
"severity": "warn",
|
|
3236
|
+
"targets": [
|
|
3237
|
+
"js"
|
|
3238
|
+
],
|
|
3239
|
+
"match": {
|
|
3240
|
+
"component": "ApplicationMetricTrend",
|
|
3241
|
+
"prop": "direction"
|
|
3242
|
+
},
|
|
3243
|
+
"allowed": [
|
|
3244
|
+
"up",
|
|
3245
|
+
"down",
|
|
3246
|
+
"flat"
|
|
3247
|
+
],
|
|
3248
|
+
"message": "<ApplicationMetricTrend> 的 direction 取值须为 'up' | 'down' | 'flat' 之一",
|
|
3249
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/statistics/metrics.ts,不得在别处另立一份。"
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
"id": "props-whitelist-application-data-display",
|
|
3253
|
+
"kind": "props-whitelist",
|
|
3254
|
+
"generated": true,
|
|
3255
|
+
"scope": "both",
|
|
3256
|
+
"severity": "warn",
|
|
3257
|
+
"targets": [
|
|
3258
|
+
"js"
|
|
3259
|
+
],
|
|
3260
|
+
"match": {
|
|
3261
|
+
"component": "ApplicationDataDisplay"
|
|
3262
|
+
},
|
|
3263
|
+
"allowed": [
|
|
3264
|
+
"presentation",
|
|
3265
|
+
"state",
|
|
3266
|
+
"batchBar",
|
|
3267
|
+
"pagination",
|
|
3268
|
+
"loading",
|
|
3269
|
+
"empty",
|
|
3270
|
+
"error",
|
|
3271
|
+
"noPermission",
|
|
3272
|
+
"notFound",
|
|
3273
|
+
"children",
|
|
3274
|
+
"key",
|
|
3275
|
+
"ref",
|
|
3276
|
+
"className",
|
|
3277
|
+
"style"
|
|
3278
|
+
],
|
|
3279
|
+
"message": "<ApplicationDataDisplay> 不接受该 prop。已声明的 props:presentation、state、batchBar、pagination、loading、empty、error、noPermission、notFound、children。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3280
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-data-display.ts"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
"id": "prop-enum-application-data-display-state",
|
|
3284
|
+
"kind": "prop-enum",
|
|
3285
|
+
"generated": true,
|
|
3286
|
+
"scope": "both",
|
|
3287
|
+
"severity": "warn",
|
|
3288
|
+
"targets": [
|
|
3289
|
+
"js"
|
|
3290
|
+
],
|
|
3291
|
+
"match": {
|
|
3292
|
+
"component": "ApplicationDataDisplay",
|
|
3293
|
+
"prop": "state"
|
|
3294
|
+
},
|
|
3295
|
+
"allowed": [
|
|
3296
|
+
"ready",
|
|
3297
|
+
"loading",
|
|
3298
|
+
"empty",
|
|
3299
|
+
"error",
|
|
3300
|
+
"no-permission",
|
|
3301
|
+
"not-found"
|
|
3302
|
+
],
|
|
3303
|
+
"message": "<ApplicationDataDisplay> 的 state 取值须为 'ready' | 'loading' | 'empty' | 'error' | 'no-permission' | 'not-found' 之一",
|
|
3304
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/content/application-data-display.ts,不得在别处另立一份。"
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"id": "props-whitelist-application-filter-list",
|
|
3308
|
+
"kind": "props-whitelist",
|
|
3309
|
+
"generated": true,
|
|
3310
|
+
"scope": "both",
|
|
3311
|
+
"severity": "warn",
|
|
3312
|
+
"targets": [
|
|
3313
|
+
"js"
|
|
3314
|
+
],
|
|
3315
|
+
"match": {
|
|
3316
|
+
"component": "ApplicationFilterList"
|
|
3317
|
+
},
|
|
3318
|
+
"allowed": [
|
|
3319
|
+
"groups",
|
|
3320
|
+
"values",
|
|
3321
|
+
"onChange",
|
|
3322
|
+
"onApply",
|
|
3323
|
+
"onReset",
|
|
3324
|
+
"search",
|
|
3325
|
+
"key",
|
|
3326
|
+
"ref",
|
|
3327
|
+
"className",
|
|
3328
|
+
"style",
|
|
3329
|
+
"children"
|
|
3330
|
+
],
|
|
3331
|
+
"message": "<ApplicationFilterList> 不接受该 prop。已声明的 props:groups、values、onChange、onApply、onReset、search。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3332
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-filter-list.ts"
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
"id": "props-whitelist-application-page-header",
|
|
3336
|
+
"kind": "props-whitelist",
|
|
3337
|
+
"generated": true,
|
|
3338
|
+
"scope": "both",
|
|
3339
|
+
"severity": "warn",
|
|
3340
|
+
"targets": [
|
|
3341
|
+
"js"
|
|
3342
|
+
],
|
|
3343
|
+
"match": {
|
|
3344
|
+
"component": "ApplicationPageHeader"
|
|
3345
|
+
},
|
|
3346
|
+
"allowed": [
|
|
3347
|
+
"title",
|
|
3348
|
+
"subtitle",
|
|
3349
|
+
"dataStatus",
|
|
3350
|
+
"updatedAt",
|
|
3351
|
+
"onRefresh",
|
|
3352
|
+
"actions",
|
|
3353
|
+
"pageModes",
|
|
3354
|
+
"pageMode",
|
|
3355
|
+
"onPageModeChange",
|
|
3356
|
+
"breadcrumb",
|
|
3357
|
+
"key",
|
|
3358
|
+
"ref",
|
|
3359
|
+
"className",
|
|
3360
|
+
"style",
|
|
3361
|
+
"children"
|
|
3362
|
+
],
|
|
3363
|
+
"message": "<ApplicationPageHeader> 不接受该 prop。已声明的 props:title、subtitle、dataStatus、updatedAt、onRefresh、actions、pageModes、pageMode、onPageModeChange、breadcrumb。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3364
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-page-header.ts"
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"id": "prop-enum-application-page-header-data-status",
|
|
3368
|
+
"kind": "prop-enum",
|
|
3369
|
+
"generated": true,
|
|
3370
|
+
"scope": "both",
|
|
3371
|
+
"severity": "warn",
|
|
3372
|
+
"targets": [
|
|
3373
|
+
"js"
|
|
3374
|
+
],
|
|
3375
|
+
"match": {
|
|
3376
|
+
"component": "ApplicationPageHeader",
|
|
3377
|
+
"prop": "dataStatus"
|
|
3378
|
+
},
|
|
3379
|
+
"allowed": [
|
|
3380
|
+
"normal",
|
|
3381
|
+
"refreshing",
|
|
3382
|
+
"failed"
|
|
3383
|
+
],
|
|
3384
|
+
"message": "<ApplicationPageHeader> 的 dataStatus 取值须为 'normal' | 'refreshing' | 'failed' 之一",
|
|
3385
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/content/application-page-header.ts,不得在别处另立一份。"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"id": "prop-enum-application-page-header-page-mode",
|
|
3389
|
+
"kind": "prop-enum",
|
|
3390
|
+
"generated": true,
|
|
3391
|
+
"scope": "both",
|
|
3392
|
+
"severity": "warn",
|
|
3393
|
+
"targets": [
|
|
3394
|
+
"js"
|
|
3395
|
+
],
|
|
3396
|
+
"match": {
|
|
3397
|
+
"component": "ApplicationPageHeader",
|
|
3398
|
+
"prop": "pageMode"
|
|
3399
|
+
},
|
|
3400
|
+
"allowed": [
|
|
3401
|
+
"LIST",
|
|
3402
|
+
"CARD",
|
|
3403
|
+
"SPLIT",
|
|
3404
|
+
"BOARD",
|
|
3405
|
+
"CALENDAR"
|
|
3406
|
+
],
|
|
3407
|
+
"message": "<ApplicationPageHeader> 的 pageMode 取值须为 'LIST' | 'CARD' | 'SPLIT' | 'BOARD' | 'CALENDAR' 之一",
|
|
3408
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/content/application-page-header.ts,不得在别处另立一份。"
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
"id": "props-whitelist-application-page-layout-container",
|
|
3412
|
+
"kind": "props-whitelist",
|
|
3413
|
+
"generated": true,
|
|
3414
|
+
"scope": "both",
|
|
3415
|
+
"severity": "warn",
|
|
3416
|
+
"targets": [
|
|
3417
|
+
"js"
|
|
3418
|
+
],
|
|
3419
|
+
"match": {
|
|
3420
|
+
"component": "ApplicationPageLayoutContainer"
|
|
3421
|
+
},
|
|
3422
|
+
"allowed": [
|
|
3423
|
+
"header",
|
|
3424
|
+
"metrics",
|
|
3425
|
+
"dataControl",
|
|
3426
|
+
"children",
|
|
3427
|
+
"key",
|
|
3428
|
+
"ref",
|
|
3429
|
+
"className",
|
|
3430
|
+
"style"
|
|
3431
|
+
],
|
|
3432
|
+
"message": "<ApplicationPageLayoutContainer> 不接受该 prop。已声明的 props:header、metrics、dataControl、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3433
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-page-layout-container.ts"
|
|
3434
|
+
},
|
|
3435
|
+
{
|
|
3436
|
+
"id": "props-whitelist-application-query-toolbar",
|
|
3437
|
+
"kind": "props-whitelist",
|
|
3438
|
+
"generated": true,
|
|
3439
|
+
"scope": "both",
|
|
3440
|
+
"severity": "warn",
|
|
3441
|
+
"targets": [
|
|
3442
|
+
"js"
|
|
3443
|
+
],
|
|
3444
|
+
"match": {
|
|
3445
|
+
"component": "ApplicationQueryToolbar"
|
|
3446
|
+
},
|
|
3447
|
+
"allowed": [
|
|
3448
|
+
"businessViews",
|
|
3449
|
+
"businessView",
|
|
3450
|
+
"onBusinessViewChange",
|
|
3451
|
+
"resultSummary",
|
|
3452
|
+
"searchValue",
|
|
3453
|
+
"onSearchChange",
|
|
3454
|
+
"onSearchSubmit",
|
|
3455
|
+
"searchPlaceholder",
|
|
3456
|
+
"commonFilters",
|
|
3457
|
+
"moreFilters",
|
|
3458
|
+
"sort",
|
|
3459
|
+
"appliedTags",
|
|
3460
|
+
"onRemoveTag",
|
|
3461
|
+
"onResetTags",
|
|
3462
|
+
"presentation",
|
|
3463
|
+
"hasPresentationSettings",
|
|
3464
|
+
"onPresentationSettings",
|
|
3465
|
+
"viewModeSwitch",
|
|
3466
|
+
"key",
|
|
3467
|
+
"ref",
|
|
3468
|
+
"className",
|
|
3469
|
+
"style",
|
|
3470
|
+
"children"
|
|
3471
|
+
],
|
|
3472
|
+
"message": "<ApplicationQueryToolbar> 不接受该 prop。已声明的 props:businessViews、businessView、onBusinessViewChange、resultSummary、searchValue、onSearchChange、onSearchSubmit、searchPlaceholder、commonFilters、moreFilters、sort、appliedTags、onRemoveTag、onResetTags、presentation、hasPresentationSettings、onPresentationSettings、viewModeSwitch。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3473
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-query-toolbar.ts"
|
|
3474
|
+
},
|
|
3475
|
+
{
|
|
3476
|
+
"id": "prop-enum-application-query-toolbar-presentation",
|
|
3477
|
+
"kind": "prop-enum",
|
|
3478
|
+
"generated": true,
|
|
3479
|
+
"scope": "both",
|
|
3480
|
+
"severity": "warn",
|
|
3481
|
+
"targets": [
|
|
3482
|
+
"js"
|
|
3483
|
+
],
|
|
3484
|
+
"match": {
|
|
3485
|
+
"component": "ApplicationQueryToolbar",
|
|
3486
|
+
"prop": "presentation"
|
|
3487
|
+
},
|
|
3488
|
+
"allowed": [
|
|
3489
|
+
"DataTable",
|
|
3490
|
+
"CardList",
|
|
3491
|
+
"KanbanBoard",
|
|
3492
|
+
"Calendar",
|
|
3493
|
+
"Chart",
|
|
3494
|
+
"Timeline"
|
|
3495
|
+
],
|
|
3496
|
+
"message": "<ApplicationQueryToolbar> 的 presentation 取值须为 'DataTable' | 'CardList' | 'KanbanBoard' | 'Calendar' | 'Chart' | 'Timeline' 之一",
|
|
3497
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/content/application-query-toolbar.ts,不得在别处另立一份。"
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"id": "props-whitelist-application-record-detail-body",
|
|
3501
|
+
"kind": "props-whitelist",
|
|
3502
|
+
"generated": true,
|
|
3503
|
+
"scope": "both",
|
|
3504
|
+
"severity": "warn",
|
|
3505
|
+
"targets": [
|
|
3506
|
+
"js"
|
|
3507
|
+
],
|
|
3508
|
+
"match": {
|
|
3509
|
+
"component": "ApplicationRecordDetailBody"
|
|
3510
|
+
},
|
|
3511
|
+
"allowed": [
|
|
3512
|
+
"summary",
|
|
3513
|
+
"sections",
|
|
3514
|
+
"key",
|
|
3515
|
+
"ref",
|
|
3516
|
+
"className",
|
|
3517
|
+
"style",
|
|
3518
|
+
"children"
|
|
3519
|
+
],
|
|
3520
|
+
"message": "<ApplicationRecordDetailBody> 不接受该 prop。已声明的 props:summary、sections。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3521
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-record-detail-body.ts"
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
"id": "props-whitelist-application-split-list-sidebar",
|
|
3525
|
+
"kind": "props-whitelist",
|
|
3526
|
+
"generated": true,
|
|
3527
|
+
"scope": "both",
|
|
3528
|
+
"severity": "warn",
|
|
3529
|
+
"targets": [
|
|
3530
|
+
"js"
|
|
3531
|
+
],
|
|
3532
|
+
"match": {
|
|
3533
|
+
"component": "ApplicationSplitListSidebar"
|
|
3534
|
+
},
|
|
3535
|
+
"allowed": [
|
|
3536
|
+
"search",
|
|
3537
|
+
"items",
|
|
3538
|
+
"value",
|
|
3539
|
+
"onValueChange",
|
|
3540
|
+
"settings",
|
|
3541
|
+
"footer",
|
|
3542
|
+
"width",
|
|
3543
|
+
"key",
|
|
3544
|
+
"ref",
|
|
3545
|
+
"className",
|
|
3546
|
+
"style",
|
|
3547
|
+
"children"
|
|
3548
|
+
],
|
|
3549
|
+
"message": "<ApplicationSplitListSidebar> 不接受该 prop。已声明的 props:search、items、value、onValueChange、settings、footer、width。继承自 HTMLAttributes<HTMLElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3550
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/content/application-split-list-sidebar.ts"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
"id": "props-whitelist-application-record-list",
|
|
3554
|
+
"kind": "props-whitelist",
|
|
3555
|
+
"generated": true,
|
|
3556
|
+
"scope": "both",
|
|
3557
|
+
"severity": "warn",
|
|
3558
|
+
"targets": [
|
|
3559
|
+
"js"
|
|
3560
|
+
],
|
|
3561
|
+
"match": {
|
|
3562
|
+
"component": "ApplicationRecordList"
|
|
3563
|
+
},
|
|
3564
|
+
"allowed": [
|
|
3565
|
+
"records",
|
|
3566
|
+
"selectable",
|
|
3567
|
+
"selected",
|
|
3568
|
+
"onSelectedChange",
|
|
3569
|
+
"activeId",
|
|
3570
|
+
"onOpen",
|
|
3571
|
+
"renderRow",
|
|
3572
|
+
"key",
|
|
3573
|
+
"ref",
|
|
3574
|
+
"className",
|
|
3575
|
+
"style",
|
|
3576
|
+
"children"
|
|
3577
|
+
],
|
|
3578
|
+
"message": "<ApplicationRecordList> 不接受该 prop。已声明的 props:records、selectable、selected、onSelectedChange、activeId、onOpen、renderRow。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3579
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/lists/application-record-list.ts"
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"id": "props-whitelist-list-batch-action-bar",
|
|
3583
|
+
"kind": "props-whitelist",
|
|
3584
|
+
"generated": true,
|
|
3585
|
+
"scope": "both",
|
|
3586
|
+
"severity": "warn",
|
|
3587
|
+
"targets": [
|
|
3588
|
+
"js"
|
|
3589
|
+
],
|
|
3590
|
+
"match": {
|
|
3591
|
+
"component": "ListBatchActionBar"
|
|
3592
|
+
},
|
|
3593
|
+
"allowed": [
|
|
3594
|
+
"count",
|
|
3595
|
+
"onClear",
|
|
3596
|
+
"actions",
|
|
3597
|
+
"hint",
|
|
3598
|
+
"key",
|
|
3599
|
+
"ref",
|
|
3600
|
+
"className",
|
|
3601
|
+
"style",
|
|
3602
|
+
"children"
|
|
3603
|
+
],
|
|
3604
|
+
"message": "<ListBatchActionBar> 不接受该 prop。已声明的 props:count、onClear、actions、hint。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3605
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/lists/list-batch-action-bar.ts"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"id": "props-whitelist-application-detail-drawer",
|
|
3609
|
+
"kind": "props-whitelist",
|
|
3610
|
+
"generated": true,
|
|
3611
|
+
"scope": "both",
|
|
3612
|
+
"severity": "warn",
|
|
3613
|
+
"targets": [
|
|
3614
|
+
"js"
|
|
3615
|
+
],
|
|
3616
|
+
"match": {
|
|
3617
|
+
"component": "ApplicationDetailDrawer"
|
|
3618
|
+
},
|
|
3619
|
+
"allowed": [
|
|
3620
|
+
"open",
|
|
3621
|
+
"title",
|
|
3622
|
+
"subtitle",
|
|
3623
|
+
"status",
|
|
3624
|
+
"width",
|
|
3625
|
+
"primaryAction",
|
|
3626
|
+
"secondaryActions",
|
|
3627
|
+
"onClose",
|
|
3628
|
+
"children",
|
|
3629
|
+
"key",
|
|
3630
|
+
"ref",
|
|
3631
|
+
"className",
|
|
3632
|
+
"style"
|
|
3633
|
+
],
|
|
3634
|
+
"message": "<ApplicationDetailDrawer> 不接受该 prop。已声明的 props:open、title、subtitle、status、width、primaryAction、secondaryActions、onClose、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3635
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/overlays/application-detail-drawer.ts"
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
"id": "props-whitelist-application-form-dialog",
|
|
3639
|
+
"kind": "props-whitelist",
|
|
3640
|
+
"generated": true,
|
|
3641
|
+
"scope": "both",
|
|
3642
|
+
"severity": "warn",
|
|
3643
|
+
"targets": [
|
|
3644
|
+
"js"
|
|
3645
|
+
],
|
|
3646
|
+
"match": {
|
|
3647
|
+
"component": "ApplicationFormDialog"
|
|
3648
|
+
},
|
|
3649
|
+
"allowed": [
|
|
3650
|
+
"open",
|
|
3651
|
+
"title",
|
|
3652
|
+
"description",
|
|
3653
|
+
"size",
|
|
3654
|
+
"columns",
|
|
3655
|
+
"submitText",
|
|
3656
|
+
"cancelText",
|
|
3657
|
+
"submitting",
|
|
3658
|
+
"error",
|
|
3659
|
+
"onSubmit",
|
|
3660
|
+
"onCancel",
|
|
3661
|
+
"children",
|
|
3662
|
+
"key",
|
|
3663
|
+
"ref",
|
|
3664
|
+
"className",
|
|
3665
|
+
"style"
|
|
3666
|
+
],
|
|
3667
|
+
"message": "<ApplicationFormDialog> 不接受该 prop。已声明的 props:open、title、description、size、columns、submitText、cancelText、submitting、error、onSubmit、onCancel、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3668
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/overlays/application-form-dialog.ts"
|
|
3669
|
+
},
|
|
3670
|
+
{
|
|
3671
|
+
"id": "prop-enum-application-form-dialog-size",
|
|
3672
|
+
"kind": "prop-enum",
|
|
3673
|
+
"generated": true,
|
|
3674
|
+
"scope": "both",
|
|
3675
|
+
"severity": "warn",
|
|
3676
|
+
"targets": [
|
|
3677
|
+
"js"
|
|
3678
|
+
],
|
|
3679
|
+
"match": {
|
|
3680
|
+
"component": "ApplicationFormDialog",
|
|
3681
|
+
"prop": "size"
|
|
3682
|
+
},
|
|
3683
|
+
"allowed": [
|
|
3684
|
+
"small",
|
|
3685
|
+
"large"
|
|
3686
|
+
],
|
|
3687
|
+
"message": "<ApplicationFormDialog> 的 size 取值须为 'small' | 'large' 之一",
|
|
3688
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/overlays/application-form-dialog.ts,不得在别处另立一份。"
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
"id": "props-whitelist-application-global-action-panel",
|
|
3692
|
+
"kind": "props-whitelist",
|
|
3693
|
+
"generated": true,
|
|
3694
|
+
"scope": "both",
|
|
3695
|
+
"severity": "warn",
|
|
3696
|
+
"targets": [
|
|
3697
|
+
"js"
|
|
3698
|
+
],
|
|
3699
|
+
"match": {
|
|
3700
|
+
"component": "ApplicationGlobalActionPanel"
|
|
3701
|
+
},
|
|
3702
|
+
"allowed": [
|
|
3703
|
+
"open",
|
|
3704
|
+
"title",
|
|
3705
|
+
"tabs",
|
|
3706
|
+
"activeTab",
|
|
3707
|
+
"onTabChange",
|
|
3708
|
+
"footer",
|
|
3709
|
+
"emptyState",
|
|
3710
|
+
"onClose",
|
|
3711
|
+
"children",
|
|
3712
|
+
"key",
|
|
3713
|
+
"ref",
|
|
3714
|
+
"className",
|
|
3715
|
+
"style"
|
|
3716
|
+
],
|
|
3717
|
+
"message": "<ApplicationGlobalActionPanel> 不接受该 prop。已声明的 props:open、title、tabs、activeTab、onTabChange、footer、emptyState、onClose、children。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3718
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/overlays/application-global-action-panel.ts"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"id": "props-whitelist-people-picker-dialog",
|
|
3722
|
+
"kind": "props-whitelist",
|
|
3723
|
+
"generated": true,
|
|
3724
|
+
"scope": "both",
|
|
3725
|
+
"severity": "warn",
|
|
3726
|
+
"targets": [
|
|
3727
|
+
"js"
|
|
3728
|
+
],
|
|
3729
|
+
"match": {
|
|
3730
|
+
"component": "PeoplePickerDialog"
|
|
3731
|
+
},
|
|
3732
|
+
"allowed": [
|
|
3733
|
+
"open",
|
|
3734
|
+
"title",
|
|
3735
|
+
"people",
|
|
3736
|
+
"selected",
|
|
3737
|
+
"onSelectedChange",
|
|
3738
|
+
"multiple",
|
|
3739
|
+
"onConfirm",
|
|
3740
|
+
"onCancel",
|
|
3741
|
+
"key",
|
|
3742
|
+
"ref",
|
|
3743
|
+
"className",
|
|
3744
|
+
"style",
|
|
3745
|
+
"children"
|
|
3746
|
+
],
|
|
3747
|
+
"message": "<PeoplePickerDialog> 不接受该 prop。已声明的 props:open、title、people、selected、onSelectedChange、multiple、onConfirm、onCancel。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3748
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/overlays/people-picker-dialog.ts"
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
"id": "props-whitelist-contacts-collaboration-workspace",
|
|
3752
|
+
"kind": "props-whitelist",
|
|
3753
|
+
"generated": true,
|
|
3754
|
+
"scope": "both",
|
|
3755
|
+
"severity": "warn",
|
|
3756
|
+
"targets": [
|
|
3757
|
+
"js"
|
|
3758
|
+
],
|
|
3759
|
+
"match": {
|
|
3760
|
+
"component": "ContactsCollaborationWorkspace"
|
|
3761
|
+
},
|
|
3762
|
+
"allowed": [
|
|
3763
|
+
"search",
|
|
3764
|
+
"orgTree",
|
|
3765
|
+
"activeOrg",
|
|
3766
|
+
"onOrgChange",
|
|
3767
|
+
"people",
|
|
3768
|
+
"activePerson",
|
|
3769
|
+
"onPersonChange",
|
|
3770
|
+
"detail",
|
|
3771
|
+
"key",
|
|
3772
|
+
"ref",
|
|
3773
|
+
"className",
|
|
3774
|
+
"style",
|
|
3775
|
+
"children"
|
|
3776
|
+
],
|
|
3777
|
+
"message": "<ContactsCollaborationWorkspace> 不接受该 prop。已声明的 props:search、orgTree、activeOrg、onOrgChange、people、activePerson、onPersonChange、detail。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3778
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/collaboration/contacts-collaboration-workspace.ts"
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
"id": "props-whitelist-files-collaboration-workspace",
|
|
3782
|
+
"kind": "props-whitelist",
|
|
3783
|
+
"generated": true,
|
|
3784
|
+
"scope": "both",
|
|
3785
|
+
"severity": "warn",
|
|
3786
|
+
"targets": [
|
|
3787
|
+
"js"
|
|
3788
|
+
],
|
|
3789
|
+
"match": {
|
|
3790
|
+
"component": "FilesCollaborationWorkspace"
|
|
3791
|
+
},
|
|
3792
|
+
"allowed": [
|
|
3793
|
+
"search",
|
|
3794
|
+
"folders",
|
|
3795
|
+
"activeFolder",
|
|
3796
|
+
"onFolderChange",
|
|
3797
|
+
"files",
|
|
3798
|
+
"selected",
|
|
3799
|
+
"onSelectedChange",
|
|
3800
|
+
"onOpen",
|
|
3801
|
+
"toolbar",
|
|
3802
|
+
"preview",
|
|
3803
|
+
"empty",
|
|
3804
|
+
"key",
|
|
3805
|
+
"ref",
|
|
3806
|
+
"className",
|
|
3807
|
+
"style",
|
|
3808
|
+
"children"
|
|
3809
|
+
],
|
|
3810
|
+
"message": "<FilesCollaborationWorkspace> 不接受该 prop。已声明的 props:search、folders、activeFolder、onFolderChange、files、selected、onSelectedChange、onOpen、toolbar、preview、empty。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3811
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/collaboration/files-collaboration-workspace.ts"
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"id": "props-whitelist-schedule-collaboration-workspace",
|
|
3815
|
+
"kind": "props-whitelist",
|
|
3816
|
+
"generated": true,
|
|
3817
|
+
"scope": "both",
|
|
3818
|
+
"severity": "warn",
|
|
3819
|
+
"targets": [
|
|
3820
|
+
"js"
|
|
3821
|
+
],
|
|
3822
|
+
"match": {
|
|
3823
|
+
"component": "ScheduleCollaborationWorkspace"
|
|
3824
|
+
},
|
|
3825
|
+
"allowed": [
|
|
3826
|
+
"month",
|
|
3827
|
+
"events",
|
|
3828
|
+
"selectedDate",
|
|
3829
|
+
"onSelectDate",
|
|
3830
|
+
"grain",
|
|
3831
|
+
"onGrainChange",
|
|
3832
|
+
"toolbar",
|
|
3833
|
+
"key",
|
|
3834
|
+
"ref",
|
|
3835
|
+
"className",
|
|
3836
|
+
"style",
|
|
3837
|
+
"children"
|
|
3838
|
+
],
|
|
3839
|
+
"message": "<ScheduleCollaborationWorkspace> 不接受该 prop。已声明的 props:month、events、selectedDate、onSelectDate、grain、onGrainChange、toolbar。继承自 HTMLAttributes<HTMLDivElement> 的属性(onClick、id、aria-* 等)可直接传,会透传到底层元素",
|
|
3840
|
+
"rationale": "本条的 allowed 只列自有 props 与 React 保留项。继承自 HTMLAttributes<HTMLDivElement> 的属性由 plugin-data.js 的 nativeBases 表按基类共享放行,直接消费 rules.json 的工具须同时读那张表。契约:contracts/application-module/collaboration/schedule-collaboration-workspace.ts"
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"id": "prop-enum-schedule-collaboration-workspace-grain",
|
|
3844
|
+
"kind": "prop-enum",
|
|
3845
|
+
"generated": true,
|
|
3846
|
+
"scope": "both",
|
|
3847
|
+
"severity": "warn",
|
|
3848
|
+
"targets": [
|
|
3849
|
+
"js"
|
|
3850
|
+
],
|
|
3851
|
+
"match": {
|
|
3852
|
+
"component": "ScheduleCollaborationWorkspace",
|
|
3853
|
+
"prop": "grain"
|
|
3854
|
+
},
|
|
3855
|
+
"allowed": [
|
|
3856
|
+
"day",
|
|
3857
|
+
"week",
|
|
3858
|
+
"month"
|
|
3859
|
+
],
|
|
3860
|
+
"message": "<ScheduleCollaborationWorkspace> 的 grain 取值须为 'day' | 'week' | 'month' 之一",
|
|
3861
|
+
"rationale": "取值与顺序取自契约 contracts/application-module/collaboration/schedule-collaboration-workspace.ts,不得在别处另立一份。"
|
|
3862
|
+
}
|
|
3863
|
+
]
|
|
3864
|
+
}
|