@steedos/service-plugin-amis 2.4.15-beta.1 → 2.4.15-beta.11
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.
|
@@ -161,13 +161,24 @@
|
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "showSidebar",
|
|
164
|
-
"label": "
|
|
164
|
+
"label": "显示左侧导航",
|
|
165
165
|
"type": "checkbox",
|
|
166
166
|
"tpl": null,
|
|
167
167
|
"className": "m-0",
|
|
168
168
|
"labelClassName": "text-left",
|
|
169
169
|
"id": "u:07a8a4c5f877"
|
|
170
170
|
},
|
|
171
|
+
{
|
|
172
|
+
"name": "enable_nav_schema",
|
|
173
|
+
"label": "启用自定义导航",
|
|
174
|
+
"required": false,
|
|
175
|
+
"type": "checkbox",
|
|
176
|
+
"tpl": null,
|
|
177
|
+
"className": "m-0",
|
|
178
|
+
"labelClassName": "text-left",
|
|
179
|
+
"clearValueOnHidden": true,
|
|
180
|
+
"fieldName": "enable_nav_schema"
|
|
181
|
+
},
|
|
171
182
|
{
|
|
172
183
|
"name": "description",
|
|
173
184
|
"label": "描述",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"method": "post",
|
|
32
32
|
"url": "${context.rootUrl}/graphql?rf=1653731141728",
|
|
33
33
|
"cache": 100,
|
|
34
|
-
"adaptor": "const recordId = api.body.recordId;\nvar data;\nif (recordId) {\n
|
|
34
|
+
"adaptor": "const recordId = api.body.recordId;\nvar data;\nif (recordId) {\n data = payload.data.data[0] || { _filters_type_controller: 'conditions' };\n //数据格式转换\n if (data) {\n data.columns = lodash.map(data.columns, 'field');\n data.sort = lodash.map(data.sort, (item) => {\n return `${item.field_name}:${item.order || 'asc'}`\n });\n data.mobile_columns = lodash.map(data.mobile_columns, 'field');\n data.searchable_fields = lodash.map(data.searchable_fields, 'field');\n\n if (data.filters && lodash.isString(data.filters)) {\n try {\n data.filters = JSON.parse(data.filters);\n } catch (e) { }\n }\n\n if (data.filters && lodash.isString(data.filters)) {\n data._filters_type_controller = 'function';\n } else {\n data._filters_type_controller = 'conditions'\n }\n\n if (data._filters_type_controller === 'conditions') {\n data._filters_conditions = window.amisConvert.filtersToConditions(data.filters || []);\n } else {\n data._filters_function = data.filters;\n }\n }\n} else {\n const defaultData = api.body.defaultData;\n let defaultValues = {};\n // TODO:字段默认值后期添加\n if(defaultData && _.isObject(defaultData) && !_.isArray(defaultData)){\n data = Object.assign({}, defaultValues, defaultData)\n }\n}\nfor (key in data) {\n if (data[key] === null) {\n delete data[key];\n }\n}\npayload.data = data;\ndelete payload.extensions;\nreturn payload;",
|
|
35
35
|
"data": {
|
|
36
36
|
"recordId": "${recordId}",
|
|
37
37
|
"defaultData": "${defaultData}",
|
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
"headers": {
|
|
198
198
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
199
199
|
},
|
|
200
|
+
"cache": 10000,
|
|
200
201
|
"data": null,
|
|
201
202
|
"requestAdaptor": "",
|
|
202
203
|
"adaptor": "",
|
|
@@ -233,6 +234,7 @@
|
|
|
233
234
|
"headers": {
|
|
234
235
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
235
236
|
},
|
|
237
|
+
"cache": 10000,
|
|
236
238
|
"data": null,
|
|
237
239
|
"requestAdaptor": "",
|
|
238
240
|
"adaptor": "",
|
|
@@ -380,6 +382,7 @@
|
|
|
380
382
|
"headers": {
|
|
381
383
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
382
384
|
},
|
|
385
|
+
"cache": 10000,
|
|
383
386
|
"data": null,
|
|
384
387
|
"requestAdaptor": "",
|
|
385
388
|
"adaptor": "",
|
|
@@ -424,6 +427,7 @@
|
|
|
424
427
|
"headers": {
|
|
425
428
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
426
429
|
},
|
|
430
|
+
"cache": 10000,
|
|
427
431
|
"data": null,
|
|
428
432
|
"requestAdaptor": "",
|
|
429
433
|
"adaptor": "",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"data": {
|
|
35
35
|
"recordId": "${recordId}",
|
|
36
36
|
"defaultData": "${defaultData}",
|
|
37
|
-
"query": "{data:object_layouts(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,name,label,object_name,profiles,buttons,fields,related_lists,is_system,created,created_by,modified,modified_by,instances,instance_state,_display:_ui{object_name,profiles,buttons,fields,related_lists,is_system,created,created_by,modified,modified_by,instances,instance_state}}}",
|
|
37
|
+
"query": "{data:object_layouts(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,name,label,object_name,profiles,buttons,fields,related_lists,field_groups,is_system,created,created_by,modified,modified_by,instances,instance_state,_display:_ui{object_name,profiles,buttons,fields,related_lists,is_system,created,created_by,modified,modified_by,instances,instance_state}}}",
|
|
38
38
|
"uiSchema": "${uiSchema}",
|
|
39
39
|
"objectName": "${objectName}"
|
|
40
40
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.4.15-beta.
|
|
3
|
+
"version": "2.4.15-beta.11",
|
|
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": "1d302a5690085072b66d6ced061a79e54cd84414",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
package/public/amis/amis.css
CHANGED
|
@@ -46,37 +46,6 @@
|
|
|
46
46
|
position: static
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.fixed {
|
|
50
|
-
position: fixed
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.absolute {
|
|
54
|
-
position: absolute
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.sticky {
|
|
58
|
-
position: sticky
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.inset-0 {
|
|
62
|
-
top: 0px;
|
|
63
|
-
right: 0px;
|
|
64
|
-
bottom: 0px;
|
|
65
|
-
left: 0px
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.top-0 {
|
|
69
|
-
top: 0px
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.z-40 {
|
|
73
|
-
z-index: 40
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.z-20 {
|
|
77
|
-
z-index: 20
|
|
78
|
-
}
|
|
79
|
-
|
|
80
49
|
.col-span-2 {
|
|
81
50
|
grid-column: span 2 / span 2
|
|
82
51
|
}
|
|
@@ -108,18 +77,6 @@
|
|
|
108
77
|
margin-right: -2.75rem
|
|
109
78
|
}
|
|
110
79
|
|
|
111
|
-
.mr-4 {
|
|
112
|
-
margin-right: 1rem
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.mb-\[-3px\] {
|
|
116
|
-
margin-bottom: -3px
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.mt-\[50px\] {
|
|
120
|
-
margin-top: 50px
|
|
121
|
-
}
|
|
122
|
-
|
|
123
80
|
.mt-0\.5 {
|
|
124
81
|
margin-top: 0.125rem
|
|
125
82
|
}
|
|
@@ -140,6 +97,14 @@
|
|
|
140
97
|
margin-top: 0.75rem
|
|
141
98
|
}
|
|
142
99
|
|
|
100
|
+
.mb-0 {
|
|
101
|
+
margin-bottom: 0px
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ml-2 {
|
|
105
|
+
margin-left: 0.5rem
|
|
106
|
+
}
|
|
107
|
+
|
|
143
108
|
.block {
|
|
144
109
|
display: block
|
|
145
110
|
}
|
|
@@ -172,26 +137,6 @@
|
|
|
172
137
|
height: 100%
|
|
173
138
|
}
|
|
174
139
|
|
|
175
|
-
.h-\[50px\] {
|
|
176
|
-
height: 50px
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.h-10 {
|
|
180
|
-
height: 2.5rem
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.w-full {
|
|
184
|
-
width: 100%
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.w-auto {
|
|
188
|
-
width: auto
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.w-64 {
|
|
192
|
-
width: 16rem
|
|
193
|
-
}
|
|
194
|
-
|
|
195
140
|
.w-10 {
|
|
196
141
|
width: 2.5rem
|
|
197
142
|
}
|
|
@@ -200,36 +145,23 @@
|
|
|
200
145
|
width: 50%
|
|
201
146
|
}
|
|
202
147
|
|
|
148
|
+
.w-full {
|
|
149
|
+
width: 100%
|
|
150
|
+
}
|
|
151
|
+
|
|
203
152
|
.min-w-max {
|
|
204
153
|
min-width: -moz-max-content;
|
|
205
154
|
min-width: max-content
|
|
206
155
|
}
|
|
207
156
|
|
|
208
|
-
.flex-none {
|
|
209
|
-
flex: none
|
|
210
|
-
}
|
|
211
|
-
|
|
212
157
|
.flex-1 {
|
|
213
158
|
flex: 1 1 0%
|
|
214
159
|
}
|
|
215
160
|
|
|
216
|
-
.-translate-x-0 {
|
|
217
|
-
--tw-translate-x: -0px;
|
|
218
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
|
|
219
|
-
}
|
|
220
|
-
|
|
221
161
|
.flex-row {
|
|
222
162
|
flex-direction: row
|
|
223
163
|
}
|
|
224
164
|
|
|
225
|
-
.flex-col {
|
|
226
|
-
flex-direction: column
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.flex-nowrap {
|
|
230
|
-
flex-wrap: nowrap
|
|
231
|
-
}
|
|
232
|
-
|
|
233
165
|
.items-center {
|
|
234
166
|
align-items: center
|
|
235
167
|
}
|
|
@@ -238,53 +170,14 @@
|
|
|
238
170
|
justify-content: center
|
|
239
171
|
}
|
|
240
172
|
|
|
241
|
-
.justify-between {
|
|
242
|
-
justify-content: space-between
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.gap-x-3 {
|
|
246
|
-
-moz-column-gap: 0.75rem;
|
|
247
|
-
column-gap: 0.75rem
|
|
248
|
-
}
|
|
249
|
-
|
|
250
173
|
.overflow-auto {
|
|
251
174
|
overflow: auto
|
|
252
175
|
}
|
|
253
176
|
|
|
254
|
-
.overflow-hidden {
|
|
255
|
-
overflow: hidden
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.overflow-y-auto {
|
|
259
|
-
overflow-y: auto
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.border-b-\[3px\] {
|
|
263
|
-
border-bottom-width: 3px
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.border-r {
|
|
267
|
-
border-right-width: 1px
|
|
268
|
-
}
|
|
269
|
-
|
|
270
177
|
.border-b {
|
|
271
178
|
border-bottom-width: 1px
|
|
272
179
|
}
|
|
273
180
|
|
|
274
|
-
.border-solid {
|
|
275
|
-
border-style: solid
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.border-sky-500 {
|
|
279
|
-
--tw-border-opacity: 1;
|
|
280
|
-
border-color: rgb(14 165 233 / var(--tw-border-opacity))
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.border-slate-200 {
|
|
284
|
-
--tw-border-opacity: 1;
|
|
285
|
-
border-color: rgb(226 232 240 / var(--tw-border-opacity))
|
|
286
|
-
}
|
|
287
|
-
|
|
288
181
|
.border-slate-300 {
|
|
289
182
|
--tw-border-opacity: 1;
|
|
290
183
|
border-color: rgb(203 213 225 / var(--tw-border-opacity))
|
|
@@ -303,16 +196,6 @@
|
|
|
303
196
|
padding: 1rem
|
|
304
197
|
}
|
|
305
198
|
|
|
306
|
-
.px-4 {
|
|
307
|
-
padding-left: 1rem;
|
|
308
|
-
padding-right: 1rem
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.px-0 {
|
|
312
|
-
padding-left: 0px;
|
|
313
|
-
padding-right: 0px
|
|
314
|
-
}
|
|
315
|
-
|
|
316
199
|
.px-1 {
|
|
317
200
|
padding-left: 0.25rem;
|
|
318
201
|
padding-right: 0.25rem
|
|
@@ -333,28 +216,19 @@
|
|
|
333
216
|
padding-bottom: 0.5rem
|
|
334
217
|
}
|
|
335
218
|
|
|
336
|
-
.
|
|
337
|
-
padding-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
.pl-4 {
|
|
341
|
-
padding-left: 1rem
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.pb-0 {
|
|
345
|
-
padding-bottom: 0px
|
|
219
|
+
.py-5 {
|
|
220
|
+
padding-top: 1.25rem;
|
|
221
|
+
padding-bottom: 1.25rem
|
|
346
222
|
}
|
|
347
223
|
|
|
348
|
-
.
|
|
349
|
-
padding-top:
|
|
224
|
+
.py-1 {
|
|
225
|
+
padding-top: 0.25rem;
|
|
226
|
+
padding-bottom: 0.25rem
|
|
350
227
|
}
|
|
351
228
|
|
|
352
|
-
.
|
|
353
|
-
padding-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
.pb-4 {
|
|
357
|
-
padding-bottom: 1rem
|
|
229
|
+
.px-0 {
|
|
230
|
+
padding-left: 0px;
|
|
231
|
+
padding-right: 0px
|
|
358
232
|
}
|
|
359
233
|
|
|
360
234
|
.pl-1\.5 {
|
|
@@ -373,6 +247,18 @@
|
|
|
373
247
|
text-align: center
|
|
374
248
|
}
|
|
375
249
|
|
|
250
|
+
.text-lg {
|
|
251
|
+
font-size: 16px
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.text-xl {
|
|
255
|
+
font-size: 18px
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.font-bold {
|
|
259
|
+
font-weight: 700
|
|
260
|
+
}
|
|
261
|
+
|
|
376
262
|
.lowercase {
|
|
377
263
|
text-transform: lowercase
|
|
378
264
|
}
|
|
@@ -381,10 +267,6 @@
|
|
|
381
267
|
font-style: italic
|
|
382
268
|
}
|
|
383
269
|
|
|
384
|
-
.leading-5 {
|
|
385
|
-
line-height: 1.25rem
|
|
386
|
-
}
|
|
387
|
-
|
|
388
270
|
.leading-none {
|
|
389
271
|
line-height: 1
|
|
390
272
|
}
|
|
@@ -408,43 +290,11 @@
|
|
|
408
290
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
|
|
409
291
|
}
|
|
410
292
|
|
|
411
|
-
.backdrop-blur {
|
|
412
|
-
--tw-backdrop-blur: blur(8px);
|
|
413
|
-
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
414
|
-
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.transition-colors {
|
|
418
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
419
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
420
|
-
transition-duration: 150ms
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.duration-500 {
|
|
424
|
-
transition-duration: 500ms
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.duration-300 {
|
|
428
|
-
transition-duration: 300ms
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.ease-in-out {
|
|
432
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
433
|
-
}
|
|
434
|
-
|
|
435
293
|
@media (min-width: 640px) {
|
|
436
|
-
.sm\:mt-\[90px\] {
|
|
437
|
-
margin-top: 90px
|
|
438
|
-
}
|
|
439
|
-
|
|
440
294
|
.sm\:mt-3 {
|
|
441
295
|
margin-top: 0.75rem
|
|
442
296
|
}
|
|
443
297
|
|
|
444
|
-
.sm\:w-\[220px\] {
|
|
445
|
-
width: 220px
|
|
446
|
-
}
|
|
447
|
-
|
|
448
298
|
.sm\:rounded-lg {
|
|
449
299
|
border-radius: 0.5rem
|
|
450
300
|
}
|
|
@@ -468,9 +318,3 @@
|
|
|
468
318
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
469
319
|
}
|
|
470
320
|
}
|
|
471
|
-
|
|
472
|
-
@media (min-width: 1024px) {
|
|
473
|
-
.lg\:z-50 {
|
|
474
|
-
z-index: 50
|
|
475
|
-
}
|
|
476
|
-
}
|