@steedos-widgets/amis-lib 1.2.17 → 1.2.19
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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +120 -104
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +120 -104
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +120 -104
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +8 -2
- package/dist/types/lib/converter/amis/fields/table.d.ts +4 -1
- package/dist/types/lib/converter/amis/header.d.ts +0 -5
- package/dist/types/schema/standard_export_excel.amis.d.ts +32 -0
- package/dist/types/standard/button.d.ts +35 -0
- package/package.json +2 -2
|
@@ -204,7 +204,10 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
204
204
|
level: string;
|
|
205
205
|
actionType: string;
|
|
206
206
|
link: string;
|
|
207
|
-
innerClassName:
|
|
207
|
+
innerClassName: {
|
|
208
|
+
"steedos-listview-item block text-gray-500": string;
|
|
209
|
+
"max-w-[360px]": string;
|
|
210
|
+
};
|
|
208
211
|
body: {
|
|
209
212
|
type: string;
|
|
210
213
|
body: "type";
|
|
@@ -294,7 +297,10 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
294
297
|
level: string;
|
|
295
298
|
actionType: string;
|
|
296
299
|
link: string;
|
|
297
|
-
innerClassName:
|
|
300
|
+
innerClassName: {
|
|
301
|
+
"steedos-listview-item block text-gray-500": string;
|
|
302
|
+
"max-w-[360px]": string;
|
|
303
|
+
};
|
|
298
304
|
body: {
|
|
299
305
|
type: string;
|
|
300
306
|
body: "type";
|
|
@@ -15,7 +15,10 @@ export function getTableSchema(fields: any, options: any): Promise<{
|
|
|
15
15
|
level: string;
|
|
16
16
|
actionType: string;
|
|
17
17
|
link: string;
|
|
18
|
-
innerClassName:
|
|
18
|
+
innerClassName: {
|
|
19
|
+
"steedos-listview-item block text-gray-500": string;
|
|
20
|
+
"max-w-[360px]": string;
|
|
21
|
+
};
|
|
19
22
|
body: {
|
|
20
23
|
type: string;
|
|
21
24
|
body: "type";
|
|
@@ -573,11 +573,6 @@ 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
|
-
*/
|
|
581
576
|
onEvent: {
|
|
582
577
|
click: {
|
|
583
578
|
actions: {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
2
|
+
type: string;
|
|
3
|
+
body: {
|
|
4
|
+
type: string;
|
|
5
|
+
label: string;
|
|
6
|
+
id: string;
|
|
7
|
+
level: string;
|
|
8
|
+
onEvent: {
|
|
9
|
+
click: {
|
|
10
|
+
weight: number;
|
|
11
|
+
actions: {
|
|
12
|
+
args: {
|
|
13
|
+
api: {
|
|
14
|
+
url: string;
|
|
15
|
+
method: string;
|
|
16
|
+
messages: {};
|
|
17
|
+
requestAdaptor: string;
|
|
18
|
+
data: {
|
|
19
|
+
uiSchema: string;
|
|
20
|
+
listName: string;
|
|
21
|
+
};
|
|
22
|
+
headers: {
|
|
23
|
+
Authorization: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
actionType: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
}>;
|
|
@@ -500,4 +500,39 @@ export namespace StandardButtons {
|
|
|
500
500
|
regions: string[];
|
|
501
501
|
};
|
|
502
502
|
}>;
|
|
503
|
+
function getStandardExportExcel(uiSchema: any, ctx: any): Promise<{
|
|
504
|
+
type: string;
|
|
505
|
+
amis_schema: {
|
|
506
|
+
type: string;
|
|
507
|
+
body: {
|
|
508
|
+
type: string;
|
|
509
|
+
label: string;
|
|
510
|
+
id: string;
|
|
511
|
+
level: string;
|
|
512
|
+
onEvent: {
|
|
513
|
+
click: {
|
|
514
|
+
weight: number;
|
|
515
|
+
actions: {
|
|
516
|
+
args: {
|
|
517
|
+
api: {
|
|
518
|
+
url: string;
|
|
519
|
+
method: string;
|
|
520
|
+
messages: {};
|
|
521
|
+
requestAdaptor: string;
|
|
522
|
+
data: {
|
|
523
|
+
uiSchema: string;
|
|
524
|
+
listName: string;
|
|
525
|
+
};
|
|
526
|
+
headers: {
|
|
527
|
+
Authorization: string;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
actionType: string;
|
|
532
|
+
}[];
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
}[];
|
|
536
|
+
};
|
|
537
|
+
}>;
|
|
503
538
|
}
|
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.
|
|
4
|
+
"version": "1.2.19",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"react-i18next": "12.3.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "de08c94b2cc722e78fc3c1ccab16a25bcf46a45d"
|
|
65
65
|
}
|