@steedos/service-plugin-amis 2.2.4 → 2.2.5

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.
@@ -19,9 +19,9 @@ module.exports = {
19
19
  actions: {
20
20
  getDefaultSchema: {
21
21
  async handler(ctx) {
22
- // const userSession = ctx.meta.user;
23
- // const { type, app, objectApiName, recordId, formFactor } = ctx.params;
24
- return this.getDefaultSchema();
22
+ const userSession = ctx.meta.user;
23
+ const { type, app, objectApiName, recordId, formFactor } = ctx.params;
24
+ return this.getDefaultSchema(type, app, objectApiName, recordId, formFactor, userSession );
25
25
  }
26
26
  }
27
27
  },
@@ -38,9 +38,37 @@ module.exports = {
38
38
  */
39
39
  methods: {
40
40
  getDefaultSchema: {
41
- handler() {
42
-
43
-
41
+ handler(type, app, objectApiName, recordId, formFactor, userSession) {
42
+ // if(type === 'list'){
43
+ // return {
44
+ // type: 'page',
45
+ // body: [{"type":"tpl","tpl":"${rootUrl}","inline":false,"id":"u:6ed8d90b5f25","style":{}}]
46
+ // }
47
+ // }
48
+ // if(type === 'form'){
49
+ // return {
50
+ // "title": "系统提示",
51
+ // "body": [
52
+ // {
53
+ // "type": "tpl",
54
+ // "tpl": "对你点击了",
55
+ // "inline": false
56
+ // },
57
+ // {
58
+ // "type": "tpl",
59
+ // "tpl": "${objectApiName}\n${objectName}",
60
+ // "inline": false,
61
+ // "id": "u:4253372a0780",
62
+ // "closeOnEsc": false,
63
+ // "closeOnOutside": false,
64
+ // "showCloseButton": true,
65
+ // "style": {
66
+ // }
67
+ // }
68
+ // ],
69
+ // "type": "dialog"
70
+ // }
71
+ // }
44
72
  }
45
73
  }
46
74
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "main": "package.service.js",
5
5
  "scripts": {},
6
6
  "license": "MIT",
@@ -8,5 +8,5 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
- "gitHead": "a0c0e8d900f7f4fd2045d976b36c9bef465a6ce3"
11
+ "gitHead": "260131162c3eb25ec8d51e915b773610c7b2653c"
12
12
  }