@steedos/service-plugin-amis 2.4.0-beta.9 → 2.4.0
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/client/amis.render.client.js +82 -33
- package/main/default/pages/action_field_updates.page.amis.json +266 -0
- package/main/default/pages/action_field_updates.page.yml +12 -0
- package/main/default/pages/apps_form.page.amis.json +28 -5
- package/main/default/pages/apps_form.page.yml +0 -2
- package/main/default/pages/generate_object_tabs.page.amis.json +3 -2
- package/main/default/pages/listview_form.page.amis.json +57 -7
- package/main/default/pages/object_layouts.page.amis.json +28 -10
- package/main/default/services/metadata/objects.service.js +2 -1
- package/package.json +6 -3
- package/public/amis/amis.css +0 -18
- package/public/tailwind/tailwind-steedos.css +138 -114
- package/tailwind.config.js +1 -1
- package/main/default/client/load.assets.client.js +0 -26
- package/main/default/client/style.client.js +0 -24
- package/main/default/client/tailwind.client.js +0 -35
- package/main/default/objects/pages/fields/render_engine.field.yml +0 -11
- package/main/default/objects/pages/pages.object.yml +0 -2
|
@@ -34,385 +34,409 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
.visible {
|
|
38
38
|
visibility: visible
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
.collapse {
|
|
42
42
|
visibility: collapse
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
.static {
|
|
46
46
|
position: static
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
.fixed {
|
|
50
50
|
position: fixed
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
.absolute {
|
|
54
54
|
position: absolute
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
position: relative
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
body.steedos .sticky {
|
|
57
|
+
.sticky {
|
|
62
58
|
position: sticky
|
|
63
59
|
}
|
|
64
60
|
|
|
65
|
-
|
|
61
|
+
.inset-0 {
|
|
66
62
|
top: 0px;
|
|
67
63
|
right: 0px;
|
|
68
64
|
bottom: 0px;
|
|
69
65
|
left: 0px
|
|
70
66
|
}
|
|
71
67
|
|
|
72
|
-
|
|
68
|
+
.top-0 {
|
|
73
69
|
top: 0px
|
|
74
70
|
}
|
|
75
71
|
|
|
76
|
-
|
|
72
|
+
.z-40 {
|
|
77
73
|
z-index: 40
|
|
78
74
|
}
|
|
79
75
|
|
|
80
|
-
|
|
76
|
+
.z-20 {
|
|
81
77
|
z-index: 20
|
|
82
78
|
}
|
|
83
79
|
|
|
84
|
-
|
|
80
|
+
.col-span-2 {
|
|
85
81
|
grid-column: span 2 / span 2
|
|
86
82
|
}
|
|
87
83
|
|
|
88
|
-
|
|
84
|
+
.m-1 {
|
|
85
|
+
margin: 0.25rem
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.m-0 {
|
|
89
89
|
margin: 0px
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
margin: 0.
|
|
92
|
+
.m-3 {
|
|
93
|
+
margin: 0.75rem
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
.mx-4 {
|
|
97
|
+
margin-left: 1rem;
|
|
97
98
|
margin-right: 1rem
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
|
|
101
|
+
.my-2 {
|
|
102
|
+
margin-top: 0.5rem;
|
|
103
|
+
margin-bottom: 0.5rem
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.mr-4 {
|
|
107
|
+
margin-right: 1rem
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.mb-\[-3px\] {
|
|
101
111
|
margin-bottom: -3px
|
|
102
112
|
}
|
|
103
113
|
|
|
104
|
-
|
|
114
|
+
.mt-\[50px\] {
|
|
105
115
|
margin-top: 50px
|
|
106
116
|
}
|
|
107
117
|
|
|
108
|
-
|
|
118
|
+
.mt-0\.5 {
|
|
109
119
|
margin-top: 0.125rem
|
|
110
120
|
}
|
|
111
121
|
|
|
112
|
-
|
|
122
|
+
.mt-0 {
|
|
113
123
|
margin-top: 0px
|
|
114
124
|
}
|
|
115
125
|
|
|
116
|
-
|
|
126
|
+
.-mt-3 {
|
|
117
127
|
margin-top: -0.75rem
|
|
118
128
|
}
|
|
119
129
|
|
|
120
|
-
|
|
130
|
+
.mt-3 {
|
|
131
|
+
margin-top: 0.75rem
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.block {
|
|
121
135
|
display: block
|
|
122
136
|
}
|
|
123
137
|
|
|
124
|
-
|
|
138
|
+
.inline {
|
|
125
139
|
display: inline
|
|
126
140
|
}
|
|
127
141
|
|
|
128
|
-
|
|
142
|
+
.flex {
|
|
129
143
|
display: flex
|
|
130
144
|
}
|
|
131
145
|
|
|
132
|
-
|
|
146
|
+
.table {
|
|
133
147
|
display: table
|
|
134
148
|
}
|
|
135
149
|
|
|
136
|
-
|
|
150
|
+
.grid {
|
|
137
151
|
display: grid
|
|
138
152
|
}
|
|
139
153
|
|
|
140
|
-
|
|
154
|
+
.contents {
|
|
141
155
|
display: contents
|
|
142
156
|
}
|
|
143
157
|
|
|
144
|
-
|
|
158
|
+
.hidden {
|
|
145
159
|
display: none
|
|
146
160
|
}
|
|
147
161
|
|
|
148
|
-
|
|
149
|
-
height:
|
|
162
|
+
.h-full {
|
|
163
|
+
height: 100%
|
|
150
164
|
}
|
|
151
165
|
|
|
152
|
-
|
|
153
|
-
height:
|
|
166
|
+
.h-\[50px\] {
|
|
167
|
+
height: 50px
|
|
154
168
|
}
|
|
155
169
|
|
|
156
|
-
|
|
170
|
+
.h-10 {
|
|
157
171
|
height: 2.5rem
|
|
158
172
|
}
|
|
159
173
|
|
|
160
|
-
|
|
161
|
-
height: 100%
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
body.steedos .w-full {
|
|
174
|
+
.w-full {
|
|
165
175
|
width: 100%
|
|
166
176
|
}
|
|
167
177
|
|
|
168
|
-
|
|
178
|
+
.w-auto {
|
|
169
179
|
width: auto
|
|
170
180
|
}
|
|
171
181
|
|
|
172
|
-
|
|
182
|
+
.w-64 {
|
|
173
183
|
width: 16rem
|
|
174
184
|
}
|
|
175
185
|
|
|
176
|
-
|
|
186
|
+
.w-10 {
|
|
177
187
|
width: 2.5rem
|
|
178
188
|
}
|
|
179
189
|
|
|
180
|
-
|
|
190
|
+
.w-6\/12 {
|
|
181
191
|
width: 50%
|
|
182
192
|
}
|
|
183
193
|
|
|
184
|
-
|
|
194
|
+
.min-w-max {
|
|
185
195
|
min-width: -moz-max-content;
|
|
186
196
|
min-width: max-content
|
|
187
197
|
}
|
|
188
198
|
|
|
189
|
-
|
|
190
|
-
flex: 1 1 0%
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
body.steedos .flex-none {
|
|
199
|
+
.flex-none {
|
|
194
200
|
flex: none
|
|
195
201
|
}
|
|
196
202
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
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))
|
|
203
|
+
.flex-1 {
|
|
204
|
+
flex: 1 1 0%
|
|
200
205
|
}
|
|
201
206
|
|
|
202
|
-
|
|
207
|
+
.-translate-x-0 {
|
|
208
|
+
--tw-translate-x: -0px;
|
|
203
209
|
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))
|
|
204
210
|
}
|
|
205
211
|
|
|
206
|
-
|
|
212
|
+
.flex-col {
|
|
207
213
|
flex-direction: column
|
|
208
214
|
}
|
|
209
215
|
|
|
210
|
-
|
|
216
|
+
.flex-nowrap {
|
|
211
217
|
flex-wrap: nowrap
|
|
212
218
|
}
|
|
213
219
|
|
|
214
|
-
|
|
220
|
+
.items-center {
|
|
215
221
|
align-items: center
|
|
216
222
|
}
|
|
217
223
|
|
|
218
|
-
|
|
224
|
+
.justify-center {
|
|
219
225
|
justify-content: center
|
|
220
226
|
}
|
|
221
227
|
|
|
222
|
-
|
|
228
|
+
.justify-between {
|
|
223
229
|
justify-content: space-between
|
|
224
230
|
}
|
|
225
231
|
|
|
226
|
-
|
|
232
|
+
.gap-x-3 {
|
|
227
233
|
-moz-column-gap: 0.75rem;
|
|
228
234
|
column-gap: 0.75rem
|
|
229
235
|
}
|
|
230
236
|
|
|
231
|
-
|
|
237
|
+
.overflow-hidden {
|
|
238
|
+
overflow: hidden
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.overflow-y-auto {
|
|
232
242
|
overflow-y: auto
|
|
233
243
|
}
|
|
234
244
|
|
|
235
|
-
|
|
245
|
+
.border-b-\[3px\] {
|
|
236
246
|
border-bottom-width: 3px
|
|
237
247
|
}
|
|
238
248
|
|
|
239
|
-
|
|
249
|
+
.border-r {
|
|
240
250
|
border-right-width: 1px
|
|
241
251
|
}
|
|
242
252
|
|
|
243
|
-
|
|
244
|
-
border-
|
|
253
|
+
.border-b {
|
|
254
|
+
border-bottom-width: 1px
|
|
245
255
|
}
|
|
246
256
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
border-color: rgb(203 213 225 / var(--tw-border-opacity))
|
|
257
|
+
.border-solid {
|
|
258
|
+
border-style: solid
|
|
250
259
|
}
|
|
251
260
|
|
|
252
|
-
|
|
261
|
+
.border-sky-500 {
|
|
253
262
|
--tw-border-opacity: 1;
|
|
254
263
|
border-color: rgb(14 165 233 / var(--tw-border-opacity))
|
|
255
264
|
}
|
|
256
265
|
|
|
257
|
-
|
|
266
|
+
.border-slate-200 {
|
|
258
267
|
--tw-border-opacity: 1;
|
|
259
268
|
border-color: rgb(226 232 240 / var(--tw-border-opacity))
|
|
260
269
|
}
|
|
261
270
|
|
|
262
|
-
|
|
271
|
+
.border-slate-300 {
|
|
272
|
+
--tw-border-opacity: 1;
|
|
273
|
+
border-color: rgb(203 213 225 / var(--tw-border-opacity))
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.bg-white {
|
|
263
277
|
--tw-bg-opacity: 1;
|
|
264
278
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
|
|
265
279
|
}
|
|
266
280
|
|
|
267
|
-
|
|
281
|
+
.p-0 {
|
|
268
282
|
padding: 0px
|
|
269
283
|
}
|
|
270
284
|
|
|
271
|
-
|
|
285
|
+
.p-4 {
|
|
272
286
|
padding: 1rem
|
|
273
287
|
}
|
|
274
288
|
|
|
275
|
-
|
|
289
|
+
.px-4 {
|
|
276
290
|
padding-left: 1rem;
|
|
277
291
|
padding-right: 1rem
|
|
278
292
|
}
|
|
279
293
|
|
|
280
|
-
|
|
294
|
+
.px-0 {
|
|
281
295
|
padding-left: 0px;
|
|
282
296
|
padding-right: 0px
|
|
283
297
|
}
|
|
284
298
|
|
|
285
|
-
|
|
299
|
+
.px-1 {
|
|
286
300
|
padding-left: 0.25rem;
|
|
287
301
|
padding-right: 0.25rem
|
|
288
302
|
}
|
|
289
303
|
|
|
290
|
-
|
|
304
|
+
.py-3 {
|
|
291
305
|
padding-top: 0.75rem;
|
|
292
306
|
padding-bottom: 0.75rem
|
|
293
307
|
}
|
|
294
308
|
|
|
295
|
-
|
|
309
|
+
.px-10 {
|
|
296
310
|
padding-left: 2.5rem;
|
|
297
311
|
padding-right: 2.5rem
|
|
298
312
|
}
|
|
299
313
|
|
|
300
|
-
|
|
314
|
+
.py-2 {
|
|
301
315
|
padding-top: 0.5rem;
|
|
302
316
|
padding-bottom: 0.5rem
|
|
303
317
|
}
|
|
304
318
|
|
|
305
|
-
|
|
319
|
+
.pr-4 {
|
|
320
|
+
padding-right: 1rem
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.pl-4 {
|
|
306
324
|
padding-left: 1rem
|
|
307
325
|
}
|
|
308
326
|
|
|
309
|
-
|
|
327
|
+
.pb-0 {
|
|
310
328
|
padding-bottom: 0px
|
|
311
329
|
}
|
|
312
330
|
|
|
313
|
-
|
|
331
|
+
.pt-4 {
|
|
314
332
|
padding-top: 1rem
|
|
315
333
|
}
|
|
316
334
|
|
|
317
|
-
|
|
335
|
+
.pb-16 {
|
|
318
336
|
padding-bottom: 4rem
|
|
319
337
|
}
|
|
320
338
|
|
|
321
|
-
|
|
339
|
+
.pb-4 {
|
|
340
|
+
padding-bottom: 1rem
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.pl-1\.5 {
|
|
322
344
|
padding-left: 0.375rem
|
|
323
345
|
}
|
|
324
346
|
|
|
325
|
-
|
|
347
|
+
.pl-1 {
|
|
326
348
|
padding-left: 0.25rem
|
|
327
349
|
}
|
|
328
350
|
|
|
329
|
-
|
|
351
|
+
.text-left {
|
|
330
352
|
text-align: left
|
|
331
353
|
}
|
|
332
354
|
|
|
333
|
-
|
|
355
|
+
.text-center {
|
|
334
356
|
text-align: center
|
|
335
357
|
}
|
|
336
358
|
|
|
337
|
-
|
|
359
|
+
.lowercase {
|
|
338
360
|
text-transform: lowercase
|
|
339
361
|
}
|
|
340
362
|
|
|
341
|
-
|
|
363
|
+
.italic {
|
|
342
364
|
font-style: italic
|
|
343
365
|
}
|
|
344
366
|
|
|
345
|
-
|
|
367
|
+
.leading-5 {
|
|
346
368
|
line-height: 1.25rem
|
|
347
369
|
}
|
|
348
370
|
|
|
349
|
-
|
|
371
|
+
.leading-none {
|
|
350
372
|
line-height: 1
|
|
351
373
|
}
|
|
352
374
|
|
|
353
|
-
|
|
375
|
+
.text-black {
|
|
354
376
|
--tw-text-opacity: 1;
|
|
355
377
|
color: rgb(0 0 0 / var(--tw-text-opacity))
|
|
356
378
|
}
|
|
357
379
|
|
|
358
|
-
|
|
380
|
+
.underline {
|
|
359
381
|
text-decoration-line: underline
|
|
360
382
|
}
|
|
361
383
|
|
|
362
|
-
|
|
384
|
+
.shadow-none {
|
|
385
|
+
--tw-shadow: 0 0 #0000;
|
|
386
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
387
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.filter {
|
|
363
391
|
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)
|
|
364
392
|
}
|
|
365
393
|
|
|
366
|
-
|
|
394
|
+
.backdrop-blur {
|
|
367
395
|
--tw-backdrop-blur: blur(8px);
|
|
368
396
|
-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);
|
|
369
397
|
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)
|
|
370
398
|
}
|
|
371
399
|
|
|
372
|
-
|
|
400
|
+
.transition-colors {
|
|
373
401
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
374
402
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
375
403
|
transition-duration: 150ms
|
|
376
404
|
}
|
|
377
405
|
|
|
378
|
-
|
|
406
|
+
.duration-500 {
|
|
379
407
|
transition-duration: 500ms
|
|
380
408
|
}
|
|
381
409
|
|
|
382
|
-
|
|
410
|
+
.duration-300 {
|
|
383
411
|
transition-duration: 300ms
|
|
384
412
|
}
|
|
385
413
|
|
|
386
|
-
|
|
414
|
+
.ease-in-out {
|
|
387
415
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
|
|
388
416
|
}
|
|
389
417
|
|
|
390
418
|
@media (min-width: 640px) {
|
|
391
|
-
|
|
392
|
-
margin:
|
|
419
|
+
.sm\:mt-\[90px\] {
|
|
420
|
+
margin-top: 90px
|
|
393
421
|
}
|
|
394
422
|
|
|
395
|
-
|
|
396
|
-
|
|
423
|
+
.sm\:w-\[220px\] {
|
|
424
|
+
width: 220px
|
|
397
425
|
}
|
|
398
426
|
|
|
399
|
-
|
|
400
|
-
|
|
427
|
+
.sm\:rounded-lg {
|
|
428
|
+
border-radius: 0.5rem
|
|
401
429
|
}
|
|
402
430
|
|
|
403
|
-
|
|
431
|
+
.sm\:rounded {
|
|
404
432
|
border-radius: 0.25rem
|
|
405
433
|
}
|
|
406
434
|
|
|
407
|
-
|
|
435
|
+
.sm\:border {
|
|
408
436
|
border-width: 1px
|
|
409
437
|
}
|
|
410
438
|
|
|
411
|
-
|
|
412
|
-
padding: 0.75rem
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
body.steedos .sm\:shadow {
|
|
439
|
+
.sm\:shadow {
|
|
416
440
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
417
441
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
418
442
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
@@ -420,7 +444,7 @@ body.steedos .ease-in-out {
|
|
|
420
444
|
}
|
|
421
445
|
|
|
422
446
|
@media (min-width: 1024px) {
|
|
423
|
-
|
|
447
|
+
.lg\:z-50 {
|
|
424
448
|
z-index: 50
|
|
425
449
|
}
|
|
426
450
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: baozhoutao@steedos.com
|
|
3
|
-
* @Date: 2022-12-09 18:23:36
|
|
4
|
-
* @LastEditors: baozhoutao@steedos.com
|
|
5
|
-
* @LastEditTime: 2022-12-17 14:35:49
|
|
6
|
-
* @Description:
|
|
7
|
-
*/
|
|
8
|
-
// 解决多个react 问题. 注册组件时, 使用 amis 自带的 react , 运行 steedos 相关组件时, 使用 全局 react
|
|
9
|
-
window.addEventListener('message', function (event) {
|
|
10
|
-
const { data } = event;
|
|
11
|
-
if (data.type === 'Builder.loaded') {
|
|
12
|
-
if(Meteor.settings.public.page && Meteor.settings.public.page.assetUrls){
|
|
13
|
-
const defaultAssetsUrls = Meteor.settings.public.page.assetUrls.split(',')
|
|
14
|
-
Promise.all([
|
|
15
|
-
waitForThing(window, 'amis'),
|
|
16
|
-
]).then(()=>{
|
|
17
|
-
// window.__React = window.React;
|
|
18
|
-
// window.__ReactDOM = window.ReactDOM;
|
|
19
|
-
window.React = amisRequire('react');
|
|
20
|
-
window.ReactDOM = amisRequire('react-dom');
|
|
21
|
-
window.ReactDom = window.ReactDOM;
|
|
22
|
-
Builder.registerRemoteAssets(defaultAssetsUrls);
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
})
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
(function () {
|
|
2
|
-
try {
|
|
3
|
-
var styleCss = $(`<style>
|
|
4
|
-
.steedos .creator-content-wrapper .steedos-page .page-header-wrapper{
|
|
5
|
-
display: none;
|
|
6
|
-
}
|
|
7
|
-
.ant-modal.absolute .ant-modal-content{
|
|
8
|
-
/*使用绝对定位显示弹出窗口时,内层content最大高度不用限制*/
|
|
9
|
-
max-height: unset;
|
|
10
|
-
}
|
|
11
|
-
.page-form-object_layouts .steedos-amis-form .antd-Collapse .antd-Table-table .antd-Form--normal{
|
|
12
|
-
/*格式内的单元格空白太多*/
|
|
13
|
-
display: block!important;
|
|
14
|
-
}
|
|
15
|
-
.page-form-object_layouts .antd-Table .antd-Field--quickEditable .antd-PlainField{
|
|
16
|
-
/*快速编辑只读状态时编辑按钮不应该换行显示*/
|
|
17
|
-
display: inline;
|
|
18
|
-
}
|
|
19
|
-
</style>`);
|
|
20
|
-
$("head").append(styleCss);
|
|
21
|
-
} catch (error) {
|
|
22
|
-
console.log(error);
|
|
23
|
-
}
|
|
24
|
-
})();
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
try {
|
|
2
|
-
// 加载 tailwind
|
|
3
|
-
// if(typeof BigInt === 'undefined') {
|
|
4
|
-
// let tailwindStyle = document.createElement("link");
|
|
5
|
-
// tailwindStyle.setAttribute("rel", "stylesheet");
|
|
6
|
-
// tailwindStyle.setAttribute("type", "text/css");
|
|
7
|
-
// tailwindStyle.setAttribute("href", Steedos.absoluteUrl("/tailwind/tailwind.css"));
|
|
8
|
-
// document.getElementsByTagName("head")[0].appendChild(tailwindStyle);
|
|
9
|
-
// }else{
|
|
10
|
-
// let tailwindScript = document.createElement("script");
|
|
11
|
-
// tailwindScript.setAttribute("src", Steedos.absoluteUrl('/tailwind/tailwind.js'));
|
|
12
|
-
// document.getElementsByTagName("head")[0].appendChild(tailwindScript);
|
|
13
|
-
// }
|
|
14
|
-
|
|
15
|
-
const head = document.head || document.getElementsByTagName('head')[0]
|
|
16
|
-
|
|
17
|
-
let tailwindBase = document.createElement("link");
|
|
18
|
-
tailwindBase.setAttribute("rel", "stylesheet");
|
|
19
|
-
tailwindBase.setAttribute("type", "text/css");
|
|
20
|
-
tailwindBase.setAttribute("href", Steedos.absoluteUrl("/tailwind/tailwind-base.css"));
|
|
21
|
-
|
|
22
|
-
if (head.firstChild) {
|
|
23
|
-
head.insertBefore(tailwindBase, head.firstChild)
|
|
24
|
-
} else {
|
|
25
|
-
head.appendChild(tailwindBase)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
let tailwindStyle = document.createElement("link");
|
|
29
|
-
tailwindStyle.setAttribute("rel", "stylesheet");
|
|
30
|
-
tailwindStyle.setAttribute("type", "text/css");
|
|
31
|
-
tailwindStyle.setAttribute("href", Steedos.absoluteUrl("/tailwind/tailwind-steedos.css"));
|
|
32
|
-
head.appendChild(tailwindStyle)
|
|
33
|
-
} catch (error) {
|
|
34
|
-
console.error(error)
|
|
35
|
-
};
|