@steedos/service-plugin-amis 2.5.0-beta.10 → 2.5.0-beta.12
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.
|
@@ -234,15 +234,15 @@ module.exports = {
|
|
|
234
234
|
*/
|
|
235
235
|
const relatedListObjects = [];
|
|
236
236
|
const relationsInfo = await object.getRelationsInfo();
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
let details = relationsInfo && relationsInfo.details;
|
|
238
|
+
const lookupDetails = relationsInfo && relationsInfo.lookup_details;
|
|
239
|
+
details = _.union(details, lookupDetails);
|
|
240
240
|
|
|
241
241
|
_.each(details, function(related){
|
|
242
242
|
/*related可能是一个lookup_details,它是对象而不是字符串,从中取出key值*/
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
if(typeof related !== "string"){
|
|
244
|
+
relatedListObjects.push(related.objectName)
|
|
245
|
+
}
|
|
246
246
|
let foo = related.split('.');
|
|
247
247
|
let rObjectName = foo[0];
|
|
248
248
|
relatedListObjects.push(rObjectName);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* @Author: baozhoutao@steedos.com
|
|
3
3
|
* @Date: 2022-05-19 11:38:30
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime: 2023-
|
|
4
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
+
* @LastEditTime: 2023-04-19 13:20:20
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
const PageSchema = require('./utils/page-schema');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.5.0-beta.
|
|
3
|
+
"version": "2.5.0-beta.12",
|
|
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": "a41706f5c8ee9eb5a40f8f423332edc2827e85cb",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
|
@@ -46,37 +46,10 @@
|
|
|
46
46
|
position: static
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.fixed {
|
|
50
|
-
position: fixed
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.absolute {
|
|
54
|
-
position: absolute
|
|
55
|
-
}
|
|
56
|
-
|
|
57
49
|
.sticky {
|
|
58
50
|
position: sticky
|
|
59
51
|
}
|
|
60
52
|
|
|
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
53
|
.col-span-2 {
|
|
81
54
|
grid-column: span 2 / span 2
|
|
82
55
|
}
|
|
@@ -104,18 +77,6 @@
|
|
|
104
77
|
margin-right: -2.75rem
|
|
105
78
|
}
|
|
106
79
|
|
|
107
|
-
.mr-4 {
|
|
108
|
-
margin-right: 1rem
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.mb-\[-3px\] {
|
|
112
|
-
margin-bottom: -3px
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.mt-\[50px\] {
|
|
116
|
-
margin-top: 50px
|
|
117
|
-
}
|
|
118
|
-
|
|
119
80
|
.mt-0\.5 {
|
|
120
81
|
margin-top: 0.125rem
|
|
121
82
|
}
|
|
@@ -136,6 +97,14 @@
|
|
|
136
97
|
margin-top: 0.75rem
|
|
137
98
|
}
|
|
138
99
|
|
|
100
|
+
.mb-0 {
|
|
101
|
+
margin-bottom: 0px
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ml-2 {
|
|
105
|
+
margin-left: 0.5rem
|
|
106
|
+
}
|
|
107
|
+
|
|
139
108
|
.block {
|
|
140
109
|
display: block
|
|
141
110
|
}
|
|
@@ -168,26 +137,6 @@
|
|
|
168
137
|
height: 100%
|
|
169
138
|
}
|
|
170
139
|
|
|
171
|
-
.h-\[50px\] {
|
|
172
|
-
height: 50px
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.h-10 {
|
|
176
|
-
height: 2.5rem
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.w-full {
|
|
180
|
-
width: 100%
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.w-auto {
|
|
184
|
-
width: auto
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.w-64 {
|
|
188
|
-
width: 16rem
|
|
189
|
-
}
|
|
190
|
-
|
|
191
140
|
.w-10 {
|
|
192
141
|
width: 2.5rem
|
|
193
142
|
}
|
|
@@ -196,6 +145,10 @@
|
|
|
196
145
|
width: 50%
|
|
197
146
|
}
|
|
198
147
|
|
|
148
|
+
.w-full {
|
|
149
|
+
width: 100%
|
|
150
|
+
}
|
|
151
|
+
|
|
199
152
|
.w-96 {
|
|
200
153
|
width: 24rem
|
|
201
154
|
}
|
|
@@ -213,10 +166,6 @@
|
|
|
213
166
|
min-width: 200px
|
|
214
167
|
}
|
|
215
168
|
|
|
216
|
-
.flex-none {
|
|
217
|
-
flex: none
|
|
218
|
-
}
|
|
219
|
-
|
|
220
169
|
.flex-1 {
|
|
221
170
|
flex: 1 1 0%
|
|
222
171
|
}
|
|
@@ -225,23 +174,10 @@
|
|
|
225
174
|
flex-shrink: 0
|
|
226
175
|
}
|
|
227
176
|
|
|
228
|
-
.-translate-x-0 {
|
|
229
|
-
--tw-translate-x: -0px;
|
|
230
|
-
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))
|
|
231
|
-
}
|
|
232
|
-
|
|
233
177
|
.flex-row {
|
|
234
178
|
flex-direction: row
|
|
235
179
|
}
|
|
236
180
|
|
|
237
|
-
.flex-col {
|
|
238
|
-
flex-direction: column
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.flex-nowrap {
|
|
242
|
-
flex-wrap: nowrap
|
|
243
|
-
}
|
|
244
|
-
|
|
245
181
|
.items-center {
|
|
246
182
|
align-items: center
|
|
247
183
|
}
|
|
@@ -250,15 +186,6 @@
|
|
|
250
186
|
justify-content: center
|
|
251
187
|
}
|
|
252
188
|
|
|
253
|
-
.justify-between {
|
|
254
|
-
justify-content: space-between
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.gap-x-3 {
|
|
258
|
-
-moz-column-gap: 0.75rem;
|
|
259
|
-
column-gap: 0.75rem
|
|
260
|
-
}
|
|
261
|
-
|
|
262
189
|
.overflow-auto {
|
|
263
190
|
overflow: auto
|
|
264
191
|
}
|
|
@@ -275,32 +202,18 @@
|
|
|
275
202
|
border-radius: 0.25rem
|
|
276
203
|
}
|
|
277
204
|
|
|
278
|
-
.border-b
|
|
279
|
-
border-bottom-width:
|
|
205
|
+
.border-b {
|
|
206
|
+
border-bottom-width: 1px
|
|
280
207
|
}
|
|
281
208
|
|
|
282
209
|
.border-r {
|
|
283
210
|
border-right-width: 1px
|
|
284
211
|
}
|
|
285
212
|
|
|
286
|
-
.border-b {
|
|
287
|
-
border-bottom-width: 1px
|
|
288
|
-
}
|
|
289
|
-
|
|
290
213
|
.border-solid {
|
|
291
214
|
border-style: solid
|
|
292
215
|
}
|
|
293
216
|
|
|
294
|
-
.border-sky-500 {
|
|
295
|
-
--tw-border-opacity: 1;
|
|
296
|
-
border-color: rgb(14 165 233 / var(--tw-border-opacity))
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.border-slate-200 {
|
|
300
|
-
--tw-border-opacity: 1;
|
|
301
|
-
border-color: rgb(226 232 240 / var(--tw-border-opacity))
|
|
302
|
-
}
|
|
303
|
-
|
|
304
217
|
.border-slate-300 {
|
|
305
218
|
--tw-border-opacity: 1;
|
|
306
219
|
border-color: rgb(203 213 225 / var(--tw-border-opacity))
|
|
@@ -338,16 +251,6 @@
|
|
|
338
251
|
padding: 0.5rem
|
|
339
252
|
}
|
|
340
253
|
|
|
341
|
-
.px-4 {
|
|
342
|
-
padding-left: 1rem;
|
|
343
|
-
padding-right: 1rem
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.px-0 {
|
|
347
|
-
padding-left: 0px;
|
|
348
|
-
padding-right: 0px
|
|
349
|
-
}
|
|
350
|
-
|
|
351
254
|
.px-1 {
|
|
352
255
|
padding-left: 0.25rem;
|
|
353
256
|
padding-right: 0.25rem
|
|
@@ -368,28 +271,19 @@
|
|
|
368
271
|
padding-bottom: 0.5rem
|
|
369
272
|
}
|
|
370
273
|
|
|
371
|
-
.
|
|
372
|
-
padding-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
.pl-4 {
|
|
376
|
-
padding-left: 1rem
|
|
274
|
+
.py-5 {
|
|
275
|
+
padding-top: 1.25rem;
|
|
276
|
+
padding-bottom: 1.25rem
|
|
377
277
|
}
|
|
378
278
|
|
|
379
|
-
.
|
|
380
|
-
padding-
|
|
279
|
+
.py-1 {
|
|
280
|
+
padding-top: 0.25rem;
|
|
281
|
+
padding-bottom: 0.25rem
|
|
381
282
|
}
|
|
382
283
|
|
|
383
|
-
.
|
|
384
|
-
padding-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
.pb-24 {
|
|
388
|
-
padding-bottom: 6rem
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.pb-4 {
|
|
392
|
-
padding-bottom: 1rem
|
|
284
|
+
.px-0 {
|
|
285
|
+
padding-left: 0px;
|
|
286
|
+
padding-right: 0px
|
|
393
287
|
}
|
|
394
288
|
|
|
395
289
|
.pl-1\.5 {
|
|
@@ -408,6 +302,18 @@
|
|
|
408
302
|
text-align: center
|
|
409
303
|
}
|
|
410
304
|
|
|
305
|
+
.text-lg {
|
|
306
|
+
font-size: 16px
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.text-xl {
|
|
310
|
+
font-size: 18px
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.font-bold {
|
|
314
|
+
font-weight: 700
|
|
315
|
+
}
|
|
316
|
+
|
|
411
317
|
.lowercase {
|
|
412
318
|
text-transform: lowercase
|
|
413
319
|
}
|
|
@@ -416,10 +322,6 @@
|
|
|
416
322
|
font-style: italic
|
|
417
323
|
}
|
|
418
324
|
|
|
419
|
-
.leading-5 {
|
|
420
|
-
line-height: 1.25rem
|
|
421
|
-
}
|
|
422
|
-
|
|
423
325
|
.leading-none {
|
|
424
326
|
line-height: 1
|
|
425
327
|
}
|
|
@@ -448,48 +350,16 @@
|
|
|
448
350
|
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)
|
|
449
351
|
}
|
|
450
352
|
|
|
451
|
-
.backdrop-blur {
|
|
452
|
-
--tw-backdrop-blur: blur(8px);
|
|
453
|
-
-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);
|
|
454
|
-
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)
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.transition-colors {
|
|
458
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
459
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
460
|
-
transition-duration: 150ms
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.duration-500 {
|
|
464
|
-
transition-duration: 500ms
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.duration-300 {
|
|
468
|
-
transition-duration: 300ms
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.ease-in-out {
|
|
472
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
473
|
-
}
|
|
474
|
-
|
|
475
353
|
.focus\:outline-none:focus {
|
|
476
354
|
outline: 2px solid transparent;
|
|
477
355
|
outline-offset: 2px
|
|
478
356
|
}
|
|
479
357
|
|
|
480
358
|
@media (min-width: 640px) {
|
|
481
|
-
.sm\:mt-\[90px\] {
|
|
482
|
-
margin-top: 90px
|
|
483
|
-
}
|
|
484
|
-
|
|
485
359
|
.sm\:mt-3 {
|
|
486
360
|
margin-top: 0.75rem
|
|
487
361
|
}
|
|
488
362
|
|
|
489
|
-
.sm\:w-\[220px\] {
|
|
490
|
-
width: 220px
|
|
491
|
-
}
|
|
492
|
-
|
|
493
363
|
.sm\:rounded-lg {
|
|
494
364
|
border-radius: 0.5rem
|
|
495
365
|
}
|
|
@@ -519,10 +389,6 @@
|
|
|
519
389
|
}
|
|
520
390
|
|
|
521
391
|
@media (min-width: 1024px) {
|
|
522
|
-
.lg\:z-50 {
|
|
523
|
-
z-index: 50
|
|
524
|
-
}
|
|
525
|
-
|
|
526
392
|
.lg\:order-first {
|
|
527
393
|
order: -9999
|
|
528
394
|
}
|