@steedos-widgets/amis-lib 1.2.11 → 1.2.13

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.
@@ -28,6 +28,16 @@ export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
28
28
  options?: undefined;
29
29
  };
30
30
  export function getHtmlFieldSchema(field: any, readonly: any, ctx: any): {
31
+ type: string;
32
+ label: any;
33
+ body: {
34
+ type: string;
35
+ name: any;
36
+ };
37
+ name?: undefined;
38
+ } | {
31
39
  type: string;
32
40
  name: any;
41
+ label?: undefined;
42
+ body?: undefined;
33
43
  };
@@ -573,6 +573,11 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
573
573
  }[] | {
574
574
  type: string;
575
575
  icon: string;
576
+ /**
577
+ * 记录详细界面中相关表顶部头amisSchema
578
+ * @param {*} relatedObjectSchema 相关对象UISchema
579
+ * @returns amisSchema
580
+ */
576
581
  onEvent: {
577
582
  click: {
578
583
  actions: {
@@ -98,13 +98,10 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
98
98
  actionType: string;
99
99
  componentId: string;
100
100
  expression: string;
101
- args?: undefined;
101
+ script?: undefined;
102
102
  } | {
103
- args: {
104
- url: string;
105
- blank: boolean;
106
- };
107
103
  actionType: string;
104
+ script: string;
108
105
  expression: string;
109
106
  componentId?: undefined;
110
107
  })[];
@@ -2,6 +2,7 @@ export function getSettingListviewToolbarButtonSchema(): {
2
2
  type: string;
3
3
  trigger: string;
4
4
  icon: string;
5
+ tooltip: string;
5
6
  btnClassName: string;
6
7
  align: string;
7
8
  visibleOn: string;
@@ -97,13 +97,10 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
97
97
  actionType: string;
98
98
  componentId: string;
99
99
  expression: string;
100
- args?: undefined;
100
+ script?: undefined;
101
101
  } | {
102
- args: {
103
- url: string;
104
- blank: boolean;
105
- };
106
102
  actionType: string;
103
+ script: string;
107
104
  expression: string;
108
105
  componentId?: undefined;
109
106
  })[];
@@ -130,6 +130,7 @@ export function getSchema(uiSchema: any): {
130
130
  tpl?: undefined;
131
131
  className?: undefined;
132
132
  html?: undefined;
133
+ buttons?: undefined;
133
134
  options?: undefined;
134
135
  } | {
135
136
  name: string;
@@ -140,11 +141,26 @@ export function getSchema(uiSchema: any): {
140
141
  html: any;
141
142
  width?: undefined;
142
143
  placeholder?: undefined;
144
+ buttons?: undefined;
143
145
  options?: undefined;
144
146
  } | {
145
147
  name: string;
146
148
  label: string;
147
149
  type: string;
150
+ buttons: {
151
+ type: string;
152
+ label: string;
153
+ visibleOn: string;
154
+ level: string;
155
+ actionType: string;
156
+ api: {
157
+ url: string;
158
+ method: string;
159
+ headers: {
160
+ Authorization: string;
161
+ };
162
+ };
163
+ }[];
148
164
  options: {
149
165
  html: boolean;
150
166
  };
@@ -329,6 +329,7 @@ export namespace StandardButtons {
329
329
  tpl?: undefined;
330
330
  className?: undefined;
331
331
  html?: undefined;
332
+ buttons?: undefined;
332
333
  options?: undefined;
333
334
  } | {
334
335
  name: string;
@@ -339,11 +340,26 @@ export namespace StandardButtons {
339
340
  html: any;
340
341
  width?: undefined;
341
342
  placeholder?: undefined;
343
+ buttons?: undefined;
342
344
  options?: undefined;
343
345
  } | {
344
346
  name: string;
345
347
  label: string;
346
348
  type: string;
349
+ buttons: {
350
+ type: string;
351
+ label: string;
352
+ visibleOn: string;
353
+ level: string;
354
+ actionType: string;
355
+ api: {
356
+ url: string;
357
+ method: string;
358
+ headers: {
359
+ Authorization: string;
360
+ };
361
+ };
362
+ }[];
347
363
  options: {
348
364
  html: boolean;
349
365
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.2.11",
4
+ "version": "1.2.13",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -59,5 +59,5 @@
59
59
  "dependencies": {
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "8a63835b4b7f3bba4930be5671400a2695b479de"
62
+ "gitHead": "5353dd9ecf05817c4813bdca4eeb35b23d927d19"
63
63
  }