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

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,17 @@
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
+ var tpl = msg.props && msg.props.schema.tpl;
232
+ if(tpl){
233
+ SteedosUI.message[type](tpl)
234
+ }else if(typeof msg == 'string'){
235
+ SteedosUI.message[type](msg)
236
+ }else{
237
+ console.warn('notify', type, msg)
238
+ }
239
+ },
229
240
  jumpTo: (to, action) => {
230
241
  if (to === 'goBack') {
231
242
  return window.history.back();
@@ -316,6 +327,8 @@
316
327
  };
317
328
 
318
329
  window.renderAmis = function (root, schema, data, env) {
330
+ // console.log("===window.renderAmis===root, env===", root, env);
331
+ // console.log("===window.renderAmis===data===", data);
319
332
  const refName = schema.name || schema.id;
320
333
  if(SteedosUI.refs[refName]){
321
334
  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.16-beta.1",
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": "a49fccb59a464a337093f027f5d5279d738f5570",
17
17
  "devDependencies": {
18
18
  "tailwindcss": "3.2.4"
19
19
  }