@steedos-widgets/amis-lib 3.6.2-beta.6 → 3.6.2-beta.7
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 +7 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/objects.d.ts +0 -3
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6692,7 +6692,7 @@ async function getObjectRecordDetailHeader(objectSchema, recordId, options) {
|
|
|
6692
6692
|
let body = [
|
|
6693
6693
|
{
|
|
6694
6694
|
"type": "wrapper",
|
|
6695
|
-
"className": "p-4",
|
|
6695
|
+
"className": "p-4 bg-gray-100 border-b sm:sticky top-0 z-10",
|
|
6696
6696
|
"body": [
|
|
6697
6697
|
{
|
|
6698
6698
|
"type": "grid",
|
|
@@ -6739,7 +6739,7 @@ async function getObjectRecordDetailHeader(objectSchema, recordId, options) {
|
|
|
6739
6739
|
|
|
6740
6740
|
body.push({
|
|
6741
6741
|
"type": "form",
|
|
6742
|
-
"className": "p-4
|
|
6742
|
+
"className": "p-4 bg-white compact-layouts",
|
|
6743
6743
|
"wrapWithPanel": false,
|
|
6744
6744
|
"actions": [],
|
|
6745
6745
|
"body": details,
|
|
@@ -6822,7 +6822,7 @@ async function getObjectRecordDetailRelatedListHeader(relatedObjectSchema, relat
|
|
|
6822
6822
|
"className": "flex justify-between"
|
|
6823
6823
|
}
|
|
6824
6824
|
],
|
|
6825
|
-
"className": "
|
|
6825
|
+
"className": "pt-0 pb-2 px-0"
|
|
6826
6826
|
};
|
|
6827
6827
|
return recordRelatedListHeader;
|
|
6828
6828
|
}
|
|
@@ -9126,7 +9126,7 @@ async function getRecordDetailRelatedListSchema(objectName, recordId, relatedObj
|
|
|
9126
9126
|
amisSchema: {
|
|
9127
9127
|
type: "service",
|
|
9128
9128
|
id: componentId,
|
|
9129
|
-
className: `steedos-record-related-list
|
|
9129
|
+
className: `steedos-record-related-list pt-4 pb-2 border-b first:pt-0 last:border-0 ${componentId} ${className}`,
|
|
9130
9130
|
data: {
|
|
9131
9131
|
relatedKey: relatedKey,
|
|
9132
9132
|
listViewId: `amis-\${appId}-${relatedObjectName}-listview`,
|
|
@@ -9853,34 +9853,29 @@ async function getRecordDetailSchema(objectName, appId, props = {}){
|
|
|
9853
9853
|
"label": "对象表单",
|
|
9854
9854
|
"objectApiName": "${objectName}",
|
|
9855
9855
|
"recordId": "${recordId}",
|
|
9856
|
-
"id": "u:d4a495811d57",
|
|
9857
9856
|
appId: appId
|
|
9858
9857
|
}
|
|
9859
9858
|
],
|
|
9860
|
-
"id": "u:5d4e7e3f6ecc"
|
|
9861
9859
|
};
|
|
9862
9860
|
const related = {
|
|
9863
9861
|
"title": i18next.t('frontend_record_detail_tab_related'),
|
|
9864
|
-
"className": "px-0
|
|
9862
|
+
"className": "px-0 py-4",
|
|
9865
9863
|
"body": [
|
|
9866
9864
|
{
|
|
9867
9865
|
"type": "steedos-object-related-lists",
|
|
9868
9866
|
"label": "相关列表",
|
|
9869
9867
|
"objectApiName": "${objectName}",
|
|
9870
9868
|
"recordId": "${recordId}",
|
|
9871
|
-
"id": "u:3b85b7b7a7f6",
|
|
9872
9869
|
appId: appId
|
|
9873
9870
|
}
|
|
9874
9871
|
],
|
|
9875
|
-
"id": "u:1a0326aeec2b"
|
|
9876
9872
|
};
|
|
9877
9873
|
const content = {
|
|
9878
9874
|
"type": "tabs",
|
|
9879
|
-
"className": "
|
|
9875
|
+
"className": "steedos-record-tabs p-4 m-0",
|
|
9880
9876
|
"tabs": [
|
|
9881
9877
|
detailed
|
|
9882
9878
|
],
|
|
9883
|
-
"id": "u:a649e4094a12"
|
|
9884
9879
|
};
|
|
9885
9880
|
if(relatedLists.length){
|
|
9886
9881
|
content.tabs.push(related);
|
|
@@ -9937,7 +9932,7 @@ async function getRecordServiceSchema(objectName, appId, props = {}, body) {
|
|
|
9937
9932
|
body: {
|
|
9938
9933
|
"type": "service",
|
|
9939
9934
|
id: serviceId,
|
|
9940
|
-
className: 'steedos-record-service p-0
|
|
9935
|
+
className: 'steedos-record-service p-0',
|
|
9941
9936
|
api: await getReadonlyFormInitApi(uiSchema, props.recordId, fields, props),
|
|
9942
9937
|
body: {
|
|
9943
9938
|
"type": "wrapper",
|