@steedos/schemas 3.0.0-beta.2 → 3.0.0-beta.8
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/button/schema.json +84 -99
- package/object/schema.json +1034 -1110
- package/package.json +2 -2
package/button/schema.json
CHANGED
|
@@ -1,104 +1,89 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"library"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"type",
|
|
17
|
-
"name"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"properties": {
|
|
22
|
-
"type": {
|
|
23
|
-
"not": {
|
|
24
|
-
"enum": [
|
|
25
|
-
"library"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
3
|
+
"name": "steedos-schema_object_button",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"properties": {
|
|
9
|
+
"type": {
|
|
10
|
+
"enum": ["library"]
|
|
30
11
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
"label": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "按钮显示名称"
|
|
40
|
-
},
|
|
41
|
-
"is_enable": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"description": "是否启用"
|
|
44
|
-
},
|
|
45
|
-
"visible": {
|
|
46
|
-
"type": [
|
|
47
|
-
"string",
|
|
48
|
-
"boolean"
|
|
49
|
-
],
|
|
50
|
-
"description": "是否有效"
|
|
51
|
-
},
|
|
52
|
-
"on": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "显示位置, list: 只显示在列表右上角; record: 显示在记录查看页右上角,以及列表视图中每项的下拉菜单中; record_more: 显示在记录查看页右上角的“更多”下拉菜单中,以及列表视图中每项的下拉菜单中; list_item: 只显示在列表视图中每项的下拉菜单中; record_only: 只显示在记录查看页右上角;record_only_more: 只显示在记录查看页右上角的“更多”下拉菜单中",
|
|
55
|
-
"enum": [
|
|
56
|
-
"list",
|
|
57
|
-
"record",
|
|
58
|
-
"record_more",
|
|
59
|
-
"list_item",
|
|
60
|
-
"record_only",
|
|
61
|
-
"record_only_more"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"todo": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "执行的脚本"
|
|
67
|
-
},
|
|
68
|
-
"sort": {
|
|
69
|
-
"type": "number",
|
|
70
|
-
"description": "显示顺序"
|
|
71
|
-
},
|
|
12
|
+
},
|
|
13
|
+
"required": ["type", "name"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"properties": {
|
|
72
17
|
"type": {
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
18
|
+
"not": {
|
|
19
|
+
"enum": ["library"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "API 名称"
|
|
29
|
+
},
|
|
30
|
+
"label": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "按钮显示名称"
|
|
33
|
+
},
|
|
34
|
+
"locked": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "是否锁定"
|
|
37
|
+
},
|
|
38
|
+
"is_enable": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"description": "是否启用"
|
|
41
|
+
},
|
|
42
|
+
"visible": {
|
|
43
|
+
"type": ["string", "boolean"],
|
|
44
|
+
"description": "是否有效"
|
|
45
|
+
},
|
|
46
|
+
"on": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "显示位置, list: 只显示在列表右上角; record: 显示在记录查看页右上角,以及列表视图中每项的下拉菜单中; record_more: 显示在记录查看页右上角的“更多”下拉菜单中,以及列表视图中每项的下拉菜单中; list_item: 只显示在列表视图中每项的下拉菜单中; record_only: 只显示在记录查看页右上角;record_only_more: 只显示在记录查看页右上角的“更多”下拉菜单中",
|
|
49
|
+
"enum": [
|
|
50
|
+
"list",
|
|
51
|
+
"record",
|
|
52
|
+
"record_more",
|
|
53
|
+
"list_item",
|
|
54
|
+
"record_only",
|
|
55
|
+
"record_only_more"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"todo": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "执行的脚本"
|
|
61
|
+
},
|
|
62
|
+
"sort": {
|
|
63
|
+
"type": "number",
|
|
64
|
+
"description": "显示顺序"
|
|
65
|
+
},
|
|
66
|
+
"type": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "按钮类型",
|
|
69
|
+
"anyOf": [
|
|
70
|
+
{
|
|
71
|
+
"enum": ["script", "amis_button"]
|
|
102
72
|
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"amis_schema": {
|
|
76
|
+
"type": ["string", "object"],
|
|
77
|
+
"description": ""
|
|
78
|
+
},
|
|
79
|
+
"license": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"description": "许可证",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "许可证",
|
|
85
|
+
"enum": ["platform-enterprise", "platform-professional"]
|
|
86
|
+
}
|
|
103
87
|
}
|
|
104
|
-
}
|
|
88
|
+
}
|
|
89
|
+
}
|