@steedos/service-plugin-amis 2.4.0-beta.14 → 2.4.0-beta.15
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/main/default/pages/apps_form.page.amis.json +10 -1
- package/main/default/pages/apps_form.page.yml +0 -2
- package/package.json +2 -2
- package/public/amis/amis.css +0 -17
- package/public/tailwind/tailwind-steedos.css +16 -6
- package/main/default/objects/pages/fields/render_engine.field.yml +0 -11
- package/main/default/objects/pages/pages.object.yml +0 -2
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"sendOn": "!!this.recordId",
|
|
34
34
|
"adaptor": "var data = payload.data.data[0];\nif(data){\n //初始化接口返回的字段移除字段值为null的字段\n for (key in data){\n if(data[key] === null){\n delete data[key];\n }\n }\n};\nif (data.tab_items && !_.isArray(data.tab_items)) {\n // 数据库中存储的是对象格式而不是数组,转换为数组用于界面显示\n let arrTabItems = [];\n _.each(data.tab_items, function (n, k) {\n n.tab_name = k;\n delete n.index;\n arrTabItems.push(n);\n });\n data.tab_items = arrTabItems;\n}\npayload.data = data;\ndelete payload.extensions;\nreturn payload;\n ",
|
|
35
35
|
"data": {
|
|
36
|
-
"query": "{data:apps(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,name,code,icon_slds,visible,description,tabs,tab_items,tab_groups,objects,mobile_objects,is_creator,mobile,sort,url,is_use_ie,is_use_iframe,is_new_window,on_click,auth_name,secret,is_system,from_code_id,instance_state,created,created_by:created_by__expand{_id,name},modified,modified_by:modified_by__expand{_id,name},_display{visible,is_creator,mobile,is_use_ie,is_use_iframe,is_new_window,is_system,instance_state,created,modified}}}"
|
|
36
|
+
"query": "{data:apps(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,name,code,icon_slds,visible, showSidebar, description,tabs,tab_items,tab_groups,objects,mobile_objects,is_creator,mobile,sort,url,is_use_ie,is_use_iframe,is_new_window,on_click,auth_name,secret,is_system,from_code_id,instance_state,created,created_by:created_by__expand{_id,name},modified,modified_by:modified_by__expand{_id,name},_display{visible,is_creator,mobile,is_use_ie,is_use_iframe,is_new_window,is_system,instance_state,created,modified}}}"
|
|
37
37
|
},
|
|
38
38
|
"headers": {
|
|
39
39
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
@@ -157,6 +157,15 @@
|
|
|
157
157
|
"labelClassName": "text-left",
|
|
158
158
|
"id": "u:07a8a4c5f875"
|
|
159
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"name": "showSidebar",
|
|
162
|
+
"label": "菜单显示在左侧",
|
|
163
|
+
"type": "checkbox",
|
|
164
|
+
"tpl": null,
|
|
165
|
+
"className": "m-0",
|
|
166
|
+
"labelClassName": "text-left",
|
|
167
|
+
"id": "u:07a8a4c5f877"
|
|
168
|
+
},
|
|
160
169
|
{
|
|
161
170
|
"name": "description",
|
|
162
171
|
"label": "描述",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.15",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:tailwind-base && yarn build:tailwind",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@steedos-widgets/amis-lib": "^1.0.10"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "095294ab9e56a8fbbffd17ce1aefa1f55ae4c676"
|
|
20
20
|
}
|
package/public/amis/amis.css
CHANGED
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
vertical-align: initial !important;
|
|
14
14
|
} */
|
|
15
15
|
|
|
16
|
-
body{
|
|
17
|
-
-webkit-font-smoothing: inherit !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
/* .row-main{
|
|
21
17
|
border-radius: 0.25rem
|
|
22
18
|
} */
|
|
@@ -52,15 +48,6 @@ body{
|
|
|
52
48
|
min-width: 100px;
|
|
53
49
|
}
|
|
54
50
|
|
|
55
|
-
.steedos-amis-form .antd-Collapse .antd-Form--normal, .antd-Form--normal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content{
|
|
56
|
-
display: grid!important;
|
|
57
|
-
grid-template-columns: repeat(2,minmax(0,1fr))!important;
|
|
58
|
-
grid-row-gap: 1rem!important;
|
|
59
|
-
row-gap: 1rem!important;
|
|
60
|
-
grid-column-gap: 1.5rem!important;
|
|
61
|
-
-moz-column-gap: 1.5rem!important;
|
|
62
|
-
column-gap: 1.5rem!important;
|
|
63
|
-
}
|
|
64
51
|
|
|
65
52
|
/* fix checkbox 隐藏时导致滚动条异常 */
|
|
66
53
|
.steedos-amis-form .antd-Collapse .antd-Form--normal .antd-Checkbox input{
|
|
@@ -76,10 +63,6 @@ body{
|
|
|
76
63
|
border-bottom: none;
|
|
77
64
|
}
|
|
78
65
|
|
|
79
|
-
.steedos-amis-form .antd-Collapse .antd-Form--normal{
|
|
80
|
-
grid-template-columns: none !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
66
|
.ant-modal-root .amis-scope .antd-Panel-footerWrap{
|
|
84
67
|
position: fixed;
|
|
85
68
|
}
|
|
@@ -93,6 +93,16 @@ body.steedos .m-1 {
|
|
|
93
93
|
margin: 0.25rem
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
body.steedos .mx-4 {
|
|
97
|
+
margin-left: 1rem;
|
|
98
|
+
margin-right: 1rem
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
body.steedos .my-2 {
|
|
102
|
+
margin-top: 0.5rem;
|
|
103
|
+
margin-bottom: 0.5rem
|
|
104
|
+
}
|
|
105
|
+
|
|
96
106
|
body.steedos .mr-4 {
|
|
97
107
|
margin-right: 1rem
|
|
98
108
|
}
|
|
@@ -149,10 +159,6 @@ body.steedos .h-\[50px\] {
|
|
|
149
159
|
height: 50px
|
|
150
160
|
}
|
|
151
161
|
|
|
152
|
-
body.steedos .h-7 {
|
|
153
|
-
height: 1.75rem
|
|
154
|
-
}
|
|
155
|
-
|
|
156
162
|
body.steedos .h-10 {
|
|
157
163
|
height: 2.5rem
|
|
158
164
|
}
|
|
@@ -302,6 +308,10 @@ body.steedos .py-2 {
|
|
|
302
308
|
padding-bottom: 0.5rem
|
|
303
309
|
}
|
|
304
310
|
|
|
311
|
+
body.steedos .pr-4 {
|
|
312
|
+
padding-right: 1rem
|
|
313
|
+
}
|
|
314
|
+
|
|
305
315
|
body.steedos .pl-4 {
|
|
306
316
|
padding-left: 1rem
|
|
307
317
|
}
|
|
@@ -392,8 +402,8 @@ body.steedos .ease-in-out {
|
|
|
392
402
|
margin: 0.75rem
|
|
393
403
|
}
|
|
394
404
|
|
|
395
|
-
body.steedos .sm\:
|
|
396
|
-
|
|
405
|
+
body.steedos .sm\:mt-\[90px\] {
|
|
406
|
+
margin-top: 90px
|
|
397
407
|
}
|
|
398
408
|
|
|
399
409
|
body.steedos .sm\:w-\[220px\] {
|