@steedos-widgets/amis-lib 1.2.15 → 1.2.18
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 +553 -121
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +549 -121
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +555 -125
- package/dist/index.umd.js.map +1 -1
- package/dist/types/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- 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 +5 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -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.18",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -57,7 +57,9 @@
|
|
|
57
57
|
"uglify-js": "^3.17.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"
|
|
60
|
+
"i18next": "22.5.1",
|
|
61
|
+
"lodash": "^4.17.21",
|
|
62
|
+
"react-i18next": "12.3.1"
|
|
61
63
|
},
|
|
62
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "1a8900b51ee0264fa4e9bf3e2893fcf2fdaafe4d"
|
|
63
65
|
}
|