@steedos/service-plugin-amis 2.5.15-beta.1 → 2.5.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.
|
@@ -226,6 +226,16 @@
|
|
|
226
226
|
// }
|
|
227
227
|
// return div;
|
|
228
228
|
// },
|
|
229
|
+
// 如果这里不配置env.notify,那么会走amis 默认的env.notify,它会造成随机把toast组件dom插入到不同的scope容器内(应该是插入到最后一个加载的scope),这在苹果手机上可能会造成弹出的通知z-index不生效的情况,出现通知被档住的问题
|
|
230
|
+
notify: (type, msg)=>{
|
|
231
|
+
if(msg.props?.schema.tpl){
|
|
232
|
+
SteedosUI.message[type](msg.props?.schema.tpl)
|
|
233
|
+
}else if(typeof msg == 'string'){
|
|
234
|
+
SteedosUI.message[type](msg)
|
|
235
|
+
}else{
|
|
236
|
+
console.warn('notify', type, msg)
|
|
237
|
+
}
|
|
238
|
+
},
|
|
229
239
|
jumpTo: (to, action) => {
|
|
230
240
|
if (to === 'goBack') {
|
|
231
241
|
return window.history.back();
|
|
@@ -316,6 +326,8 @@
|
|
|
316
326
|
};
|
|
317
327
|
|
|
318
328
|
window.renderAmis = function (root, schema, data, env) {
|
|
329
|
+
console.log("===window.renderAmis===root, env===", root, env);
|
|
330
|
+
console.log("===window.renderAmis===data===", data);
|
|
319
331
|
const refName = schema.name || schema.id;
|
|
320
332
|
if(SteedosUI.refs[refName]){
|
|
321
333
|
if(SteedosUI.refs[refName].unmount){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.5.15-beta.
|
|
3
|
+
"version": "2.5.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": "d9ff994b44be5e638442795f0482f050124694ba",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
|
@@ -100,14 +100,18 @@
|
|
|
100
100
|
margin-right: -2.75rem
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
.-mt-3 {
|
|
104
|
-
margin-top: -0.75rem
|
|
105
|
-
}
|
|
106
|
-
|
|
107
103
|
.mb-4 {
|
|
108
104
|
margin-bottom: 1rem
|
|
109
105
|
}
|
|
110
106
|
|
|
107
|
+
.mt-2 {
|
|
108
|
+
margin-top: 0.5rem
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.-mt-3 {
|
|
112
|
+
margin-top: -0.75rem
|
|
113
|
+
}
|
|
114
|
+
|
|
111
115
|
.mt-3 {
|
|
112
116
|
margin-top: 0.75rem
|
|
113
117
|
}
|
|
@@ -124,6 +128,10 @@
|
|
|
124
128
|
display: block
|
|
125
129
|
}
|
|
126
130
|
|
|
131
|
+
.inline-block {
|
|
132
|
+
display: inline-block
|
|
133
|
+
}
|
|
134
|
+
|
|
127
135
|
.inline {
|
|
128
136
|
display: inline
|
|
129
137
|
}
|
|
@@ -193,6 +201,10 @@
|
|
|
193
201
|
flex-shrink: 0
|
|
194
202
|
}
|
|
195
203
|
|
|
204
|
+
.flex-grow {
|
|
205
|
+
flex-grow: 1
|
|
206
|
+
}
|
|
207
|
+
|
|
196
208
|
.-translate-x-0 {
|
|
197
209
|
--tw-translate-x: -0px;
|
|
198
210
|
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))
|
|
@@ -234,6 +246,14 @@
|
|
|
234
246
|
white-space: nowrap
|
|
235
247
|
}
|
|
236
248
|
|
|
249
|
+
.break-all {
|
|
250
|
+
word-break: break-all
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.rounded-full {
|
|
254
|
+
border-radius: 9999px
|
|
255
|
+
}
|
|
256
|
+
|
|
237
257
|
.rounded {
|
|
238
258
|
border-radius: 0.25rem
|
|
239
259
|
}
|
|
@@ -286,6 +306,21 @@
|
|
|
286
306
|
padding: 0.5rem
|
|
287
307
|
}
|
|
288
308
|
|
|
309
|
+
.px-2 {
|
|
310
|
+
padding-left: 0.5rem;
|
|
311
|
+
padding-right: 0.5rem
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.py-0\.5 {
|
|
315
|
+
padding-top: 0.125rem;
|
|
316
|
+
padding-bottom: 0.125rem
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.py-0 {
|
|
320
|
+
padding-top: 0px;
|
|
321
|
+
padding-bottom: 0px
|
|
322
|
+
}
|
|
323
|
+
|
|
289
324
|
.px-1 {
|
|
290
325
|
padding-left: 0.25rem;
|
|
291
326
|
padding-right: 0.25rem
|
|
@@ -306,11 +341,6 @@
|
|
|
306
341
|
padding-right: 0px
|
|
307
342
|
}
|
|
308
343
|
|
|
309
|
-
.py-0 {
|
|
310
|
-
padding-top: 0px;
|
|
311
|
-
padding-bottom: 0px
|
|
312
|
-
}
|
|
313
|
-
|
|
314
344
|
.py-1 {
|
|
315
345
|
padding-top: 0.25rem;
|
|
316
346
|
padding-bottom: 0.25rem
|
|
@@ -398,14 +428,14 @@
|
|
|
398
428
|
margin-top: 0.75rem
|
|
399
429
|
}
|
|
400
430
|
|
|
401
|
-
.sm\:rounded-lg {
|
|
402
|
-
border-radius: 0.5rem
|
|
403
|
-
}
|
|
404
|
-
|
|
405
431
|
.sm\:rounded {
|
|
406
432
|
border-radius: 0.25rem
|
|
407
433
|
}
|
|
408
434
|
|
|
435
|
+
.sm\:rounded-lg {
|
|
436
|
+
border-radius: 0.5rem
|
|
437
|
+
}
|
|
438
|
+
|
|
409
439
|
.sm\:border {
|
|
410
440
|
border-width: 1px
|
|
411
441
|
}
|