@steedos-widgets/amis-lib 6.10.1-beta.13 → 6.10.1-beta.15

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
@@ -3510,8 +3510,8 @@ function getReadonlyFormAdaptor(object, fields, options){
3510
3510
  else{
3511
3511
  console.log('无法找到记录', api, payload, context)
3512
3512
  return {
3513
- status: 2,
3514
- msg: "${i18next.t('frontend_no_records_found')}"
3513
+ status: 0,
3514
+ // msg: "${i18next.t('frontend_no_records_found')}"
3515
3515
  }
3516
3516
  }
3517
3517
  }
@@ -3576,7 +3576,8 @@ async function getReadonlyFormInitApi(object, recordId, fields, options){
3576
3576
  data: await getFindOneQuery$1(object, recordId, fields, findOneOptions),
3577
3577
  headers: {
3578
3578
  Authorization: "Bearer ${context.tenantId},${context.authToken}"
3579
- }
3579
+ },
3580
+ trackExpression: '${objectName}'
3580
3581
  }
3581
3582
  }
3582
3583
 
@@ -5748,7 +5749,7 @@ const getButton = async (objectName, buttonName, ctx)=>{
5748
5749
  }
5749
5750
  }
5750
5751
 
5751
- if(uiSchema.hasImportTemplates && button.name === 'standard_import_data'){
5752
+ if(button.name === 'standard_import_data'){
5752
5753
  return {
5753
5754
  label: button.label,
5754
5755
  name: button.name,
@@ -7728,7 +7729,7 @@ async function getObjectRecordDetailHeader(objectSchema, recordId, options) {
7728
7729
  backButtonsSchema = getBackButtonSchema();
7729
7730
  }
7730
7731
 
7731
- console.log(`getObjectRecordDetailHeader==> backButtonsSchema`, backButtonsSchema);
7732
+ // console.log(`getObjectRecordDetailHeader==> backButtonsSchema`, backButtonsSchema)
7732
7733
 
7733
7734
  const reg = new RegExp('_', 'g');
7734
7735
  const standardIcon = icon && icon.replace(reg, '-');