@steedos/service-plugin-amis 2.5.15-beta.9 → 2.5.15

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 && 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.9",
3
+ "version": "2.5.15",
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": "9ddb0d963c52d496ac2bad2745b74c55ad31150d",
16
+ "gitHead": "dd588460d9a446d76c1d065c342594e9bec1f14d",
17
17
  "devDependencies": {
18
18
  "tailwindcss": "3.2.4"
19
19
  }