@steedos/service-plugin-amis 2.4.0-beta.24 → 2.4.0-beta.26

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.
@@ -251,7 +251,10 @@
251
251
  const refName = schema.name || schema.id;
252
252
  if(SteedosUI.refs[refName]){
253
253
  if(SteedosUI.refs[refName].unmount){
254
- SteedosUI.refs[refName].unmount()
254
+ try {
255
+ SteedosUI.refs[refName].unmount()
256
+ } catch (Exception) {
257
+ }
255
258
  }else{
256
259
  console.log(`not find amis scope unmount`)
257
260
  }
@@ -300,7 +303,10 @@
300
303
  const refName = schema.name || schema.id;
301
304
  if(SteedosUI.refs[refName]){
302
305
  if(SteedosUI.refs[refName].unmount){
303
- SteedosUI.refs[refName].unmount()
306
+ try {
307
+ SteedosUI.refs[refName].unmount()
308
+ } catch (Exception) {
309
+ }
304
310
  }else{
305
311
  console.log(`not find amis scope unmount`)
306
312
  }
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "requestAdaptor": "const formData = api.data.$;\napi.data = { objects: formData.objects };\nreturn api;",
22
22
  "responseData": null,
23
- "adaptor": "\nif (api.body.objectName === \"tabs\") {\n // 在tabs列表操作”对象选项卡“按钮,保存后需要刷新主列表\n refreshGrid && refreshGrid();\n}\nreturn payload;\n ",
23
+ "adaptor": "\nif (api.body.objectName === \"tabs\") {\n // 在tabs列表操作”对象选项卡“按钮,保存后需要刷新主列表\n}\nreturn payload;\n ",
24
24
  "headers": {
25
25
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
26
26
  }
@@ -63,7 +63,7 @@
63
63
  "actions": [
64
64
  {
65
65
  "actionType": "custom",
66
- "script": "const result = event.data.result;\nconst doneCount = result.data && result.data.doneCount || 0;\nconst myMsg = '已成功生成' + doneCount.toString() + \"条选项卡!\";\ndoAction({\n actionType: 'toast',\n args: {\n msg: myMsg,\n msgType: \"success\"\n }\n});\nconst errors = result.data && result.data.errors || [];\nif (errors && errors.length) { \n console.warn(\"以下对象未能生成选项卡:\");\n console.warn(JSON.stringify(errors));\n}\nconst superData = event.data.__super;\nif (superData && superData.objectName === \"apps\") { \n // 在应用表单中生成选项卡后需要触发选项卡列表组件reload重新刷新列表\n doAction({\n actionType: 'reload',\n componentId: \"tabs-options-service\"\n });\n}"
66
+ "script": "const result = event.data.result;\nconst doneCount = result.data && result.data.doneCount || 0;\nconst myMsg = '已成功生成' + doneCount.toString() + \"条选项卡!\";\ndoAction({\n actionType: 'toast',\n args: {\n msg: myMsg,\n msgType: \"success\"\n }\n});\nconst errors = result.data && result.data.errors || [];\nif (errors && errors.length) { \n console.warn(\"以下对象未能生成选项卡:\");\n console.warn(JSON.stringify(errors));\n}\nconst objectName = event.data.objectName;\nif (objectName === \"apps\") {\n // 在应用表单中生成选项卡后需要触发选项卡列表组件reload重新刷新列表\n doAction({\n actionType: 'reload',\n componentId: \"tabs-options-service\"\n });\n}\nelse {\n // 刷新主列表\n doAction({\n actionType: 'reload',\n componentId: `listview_${objectName}`\n });\n}"
67
67
  }
68
68
  ]
69
69
  }
@@ -75,6 +75,7 @@
75
75
  ],
76
76
  "data": {
77
77
  "context": {
78
+ "rootUrl": "http://127.0.0.1:5800"
78
79
  }
79
80
  },
80
81
  "id": "u:3b0de7e88def",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.4.0-beta.24",
3
+ "version": "2.4.0-beta.26",
4
4
  "main": "package.service.js",
5
5
  "scripts": {
6
6
  "build": "yarn build:tailwind-base && yarn build:tailwind",
@@ -14,9 +14,9 @@
14
14
  "access": "public"
15
15
  },
16
16
  "dependencies": {
17
- "@steedos-widgets/amis-lib": "^1.0.21"
17
+ "@steedos-widgets/amis-lib": "^1.0.22"
18
18
  },
19
- "gitHead": "ae19a048849a7d17c374f517df5b207f663bd6e4",
19
+ "gitHead": "bdcc1c0dade33d528ae0d5c0552e2b66b5a1e783",
20
20
  "devDependencies": {
21
21
  "tailwindcss": "3.2.4"
22
22
  }
@@ -282,10 +282,6 @@ body.steedos .p-4 {
282
282
  padding: 1rem
283
283
  }
284
284
 
285
- body.steedos .p-0\.5 {
286
- padding: 0.125rem
287
- }
288
-
289
285
  body.steedos .px-4 {
290
286
  padding-left: 1rem;
291
287
  padding-right: 1rem