@steedos-widgets/amis-lib 6.3.13-beta.8 → 6.3.13-beta.9

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/index.esm.js CHANGED
@@ -3596,6 +3596,11 @@ function getReadonlyFormAdaptor(object, fields, options){
3596
3596
  objectName: "${object.name}",
3597
3597
  recordId: record._id
3598
3598
  }
3599
+ if(window.location.pathname.endsWith("/"+record._id)){
3600
+ payload.data.mainRecord= {
3601
+ record
3602
+ };
3603
+ }
3599
3604
  window.postMessage(Object.assign({type: "record.loaded"}, {record: record}), "*")
3600
3605
  }
3601
3606
  if(payload.errors){
@@ -5093,6 +5098,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
5093
5098
  : page.schema;
5094
5099
  }
5095
5100
 
5101
+ // console.log('formSchema====>', formSchema);
5096
5102
 
5097
5103
  return {
5098
5104
  type: "service",
@@ -5117,7 +5123,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
5117
5123
  showCloseButton: true,
5118
5124
  "data": {
5119
5125
  "&": "$$",
5120
- "_master": "${_master}",
5126
+ "_master": "${mainRecord}",
5121
5127
  "_master._isRelated": "${_isRelated}",
5122
5128
  "_master.relatedKey": "${relatedKey}"
5123
5129
  },