@steedos-widgets/amis-lib 1.2.1 → 1.2.3-beta.1
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 +143 -74
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +143 -75
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +143 -74
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/header.d.ts +2 -2
- package/dist/types/lib/converter/amis/index.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +14 -0
- package/dist/types/schema/standard_new.amis.d.ts +1 -0
- package/dist/types/standard/button.d.ts +1 -0
- package/package.json +2 -2
|
@@ -309,7 +309,7 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
309
309
|
* @param {*} objectSchema 对象UISchema
|
|
310
310
|
* @returns amisSchema
|
|
311
311
|
*/
|
|
312
|
-
export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: any):
|
|
312
|
+
export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: any): {
|
|
313
313
|
type: string;
|
|
314
314
|
body: {
|
|
315
315
|
type: string;
|
|
@@ -378,7 +378,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
|
|
|
378
378
|
className: string;
|
|
379
379
|
}[];
|
|
380
380
|
className: string;
|
|
381
|
-
}[]
|
|
381
|
+
}[];
|
|
382
382
|
/**
|
|
383
383
|
* 记录详细界面顶部头amisSchema,也是标题面板组件的amisSchema
|
|
384
384
|
* @param {*} objectSchema 对象UISchema
|
|
@@ -118,6 +118,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
|
|
|
118
118
|
value?: undefined;
|
|
119
119
|
};
|
|
120
120
|
data: {
|
|
121
|
+
objectName: string;
|
|
121
122
|
record: string;
|
|
122
123
|
};
|
|
123
124
|
} | {
|
|
@@ -287,6 +288,19 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
|
|
|
287
288
|
onEvent: any;
|
|
288
289
|
};
|
|
289
290
|
}>;
|
|
291
|
+
export function getRecordServiceSchema(objectName: any, appId: any, props?: {}): Promise<{
|
|
292
|
+
uiSchema: any;
|
|
293
|
+
amisSchema: {
|
|
294
|
+
type: string;
|
|
295
|
+
body: any[];
|
|
296
|
+
data: {
|
|
297
|
+
"_master.objectName": string;
|
|
298
|
+
"_master.recordId": string;
|
|
299
|
+
};
|
|
300
|
+
style: any;
|
|
301
|
+
onEvent: any;
|
|
302
|
+
};
|
|
303
|
+
}>;
|
|
290
304
|
export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
|
|
291
305
|
appName: any;
|
|
292
306
|
masterObjectName: any;
|
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.1",
|
|
4
|
+
"version": "1.2.3-beta.1",
|
|
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": "
|
|
62
|
+
"gitHead": "d66884f92cfe285ecfcedd71e1103945945de0d7"
|
|
63
63
|
}
|