@steedos/service-plugin-amis 2.6.7 → 2.6.8-beta.10
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/action_field_updates_form.page.amis.json +1 -1
- package/main/default/pages/apps_form.page.amis.json +9 -1
- package/main/default/pages/listview_form.page.amis.json +10 -3
- package/main/default/pages/object_layouts_form.page.amis.json +20 -3
- package/package.json +2 -2
- package/public/tailwind/tailwind-steedos.css +8 -13
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
79
79
|
},
|
|
80
80
|
"adaptor": "\n const data = payload.data;\n var defaultValueOptions = data.defaultValueOptions;\n // 字段值下拉选项合并到options中\n data.options = _.unionWith(defaultValueOptions, data.options, function(a,b){\n return a[\"value\"]=== b[\"value\"];\n });\n delete data.defaultValueOptions;\n payload.data.options = data.options;\n return payload;\n ",
|
|
81
|
-
"requestAdaptor": "\n var filters = [];\n var top =
|
|
81
|
+
"requestAdaptor": "\n var filters = [];\n var top = 1000;\n if(api.data.$term){\n filters = [[\"label\", \"contains\", api.data.$term]];\n }\n // else if(api.data.$value){\n // filters = [[\"_id\", \"=\", api.data.$value]];\n // }\n\n var fieldFilters = undefined;\n if(fieldFilters && fieldFilters.length){\n filters.push(fieldFilters);\n }\n\n const filtersFunction = undefined;\n\n if(filtersFunction){\n const _filters = filtersFunction(filters, api.data.$);\n if(_filters && _filters.length > 0){\n filters.push(_filters);\n }\n }\n var sort = \"\";\n api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', top).replace('{__sort}', sort.trim());\n\n var defaultValue = api.data.$value;\n var optionsFiltersOp = \"=\";\n var optionsFilters = [[\"name\", optionsFiltersOp, []]];\n if (defaultValue && !api.data.$term) { \n // 字段值单独请求,没值的时候在请求中返回空\n optionsFilters = [[\"name\", optionsFiltersOp, defaultValue]];\n }\n api.data.query = api.data.query.replace(/{__options_filters}/g, JSON.stringify(optionsFilters));\n return api;\n "
|
|
82
82
|
},
|
|
83
83
|
"className": "m-1",
|
|
84
84
|
"labelClassName": "text-left",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"addable": false,
|
|
24
24
|
"removable": true,
|
|
25
25
|
"draggable": false,
|
|
26
|
-
"headerToolbarClassName": "px-1 pb-3",
|
|
27
26
|
"fields": [
|
|
28
27
|
{
|
|
29
28
|
"label": "${'apps.apps_form.tab' | t}",
|
|
@@ -69,10 +68,18 @@
|
|
|
69
68
|
"mode": "inline"
|
|
70
69
|
}
|
|
71
70
|
],
|
|
71
|
+
"columns": [
|
|
72
|
+
{
|
|
73
|
+
"name": "tab_name",
|
|
74
|
+
"inlineEditMode": false
|
|
75
|
+
},
|
|
76
|
+
"group"
|
|
77
|
+
],
|
|
72
78
|
"headerToolbar": [
|
|
73
79
|
{
|
|
74
80
|
"type": "service",
|
|
75
81
|
"id": "tabs-options-service",
|
|
82
|
+
"className": "mb-2",
|
|
76
83
|
"body": [
|
|
77
84
|
{
|
|
78
85
|
"type": "button",
|
|
@@ -205,6 +212,7 @@
|
|
|
205
212
|
}
|
|
206
213
|
}
|
|
207
214
|
],
|
|
215
|
+
"enableDialog": false,
|
|
208
216
|
"id": "u:7949aecf0ca9"
|
|
209
217
|
}
|
|
210
218
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"objectApiName": "object_listviews",
|
|
8
8
|
"recordId": "${recordId}",
|
|
9
9
|
"className": "sm:rounded sm:border-gray-300 bg-white",
|
|
10
|
-
"layout": "
|
|
10
|
+
"layout": "horizontal",
|
|
11
11
|
"form": {
|
|
12
12
|
"id": "form_object_listviews"
|
|
13
13
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"width": 50
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
|
-
"
|
|
87
|
+
"enableDialog": false
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"sort": {
|
|
@@ -235,8 +235,15 @@
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
],
|
|
238
|
+
"columns": [
|
|
239
|
+
{
|
|
240
|
+
"name": "field",
|
|
241
|
+
"inlineEditMode": false
|
|
242
|
+
}
|
|
243
|
+
],
|
|
238
244
|
"addable": false,
|
|
239
|
-
"draggable": false
|
|
245
|
+
"draggable": false,
|
|
246
|
+
"enableDialog": false
|
|
240
247
|
}
|
|
241
248
|
},
|
|
242
249
|
"searchable_fields": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"name": "visible_on"
|
|
116
116
|
}
|
|
117
117
|
],
|
|
118
|
-
"
|
|
118
|
+
"enableDialog": false
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
"fields": {
|
|
@@ -179,6 +179,22 @@
|
|
|
179
179
|
"placeholder": "-"
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
|
+
"columns": [
|
|
183
|
+
{
|
|
184
|
+
"name": "field_name",
|
|
185
|
+
"inlineEditMode": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "is_readonly",
|
|
189
|
+
"width": 50
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "is_required",
|
|
193
|
+
"width": 50
|
|
194
|
+
},
|
|
195
|
+
"group",
|
|
196
|
+
"visible_on"
|
|
197
|
+
],
|
|
182
198
|
"headerToolbar": [
|
|
183
199
|
{
|
|
184
200
|
"type": "button",
|
|
@@ -323,7 +339,8 @@
|
|
|
323
339
|
]
|
|
324
340
|
}
|
|
325
341
|
}
|
|
326
|
-
}
|
|
342
|
+
},
|
|
343
|
+
"enableDialog": false
|
|
327
344
|
}
|
|
328
345
|
],
|
|
329
346
|
"id": "u:ac5b7818b88f",
|
|
@@ -461,7 +478,7 @@
|
|
|
461
478
|
{
|
|
462
479
|
"name": "visible_on",
|
|
463
480
|
"label": "${'object_layouts.object_layouts_form.visibile_on' | t}",
|
|
464
|
-
"type": "
|
|
481
|
+
"type": "textarea",
|
|
465
482
|
"breakpoint": "*",
|
|
466
483
|
"id": "u:1e1dc52d7c33"
|
|
467
484
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.8-beta.10",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:tailwind-base && yarn build:tailwind",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "ab5c21a2ebc83ecff03d350f8a0b28760053cd33",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
position: static
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
.\!static {
|
|
56
|
+
position: static !important
|
|
57
|
+
}
|
|
58
|
+
|
|
55
59
|
.fixed {
|
|
56
60
|
position: fixed
|
|
57
61
|
}
|
|
@@ -130,14 +134,14 @@
|
|
|
130
134
|
margin-right: 1rem
|
|
131
135
|
}
|
|
132
136
|
|
|
133
|
-
.-mt-3 {
|
|
134
|
-
margin-top: -0.75rem
|
|
135
|
-
}
|
|
136
|
-
|
|
137
137
|
.mb-2 {
|
|
138
138
|
margin-bottom: 0.5rem
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
.-mt-3 {
|
|
142
|
+
margin-top: -0.75rem
|
|
143
|
+
}
|
|
144
|
+
|
|
141
145
|
.mr-7 {
|
|
142
146
|
margin-right: 1.75rem
|
|
143
147
|
}
|
|
@@ -380,11 +384,6 @@
|
|
|
380
384
|
padding-bottom: 0px
|
|
381
385
|
}
|
|
382
386
|
|
|
383
|
-
.px-1 {
|
|
384
|
-
padding-left: 0.25rem;
|
|
385
|
-
padding-right: 0.25rem
|
|
386
|
-
}
|
|
387
|
-
|
|
388
387
|
.px-10 {
|
|
389
388
|
padding-left: 2.5rem;
|
|
390
389
|
padding-right: 2.5rem
|
|
@@ -410,10 +409,6 @@
|
|
|
410
409
|
padding-bottom: 1rem
|
|
411
410
|
}
|
|
412
411
|
|
|
413
|
-
.pb-3 {
|
|
414
|
-
padding-bottom: 0.75rem
|
|
415
|
-
}
|
|
416
|
-
|
|
417
412
|
.pl-10 {
|
|
418
413
|
padding-left: 2.5rem
|
|
419
414
|
}
|