@steedos-widgets/amis-lib 6.3.13-beta.3 → 6.3.13-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/index.esm.js CHANGED
@@ -2536,6 +2536,7 @@ async function getTableColumns(object, fields, options){
2536
2536
  type: "lookup",
2537
2537
  reference_to: field.reference_to,
2538
2538
  name: field.name,
2539
+ is_name: field.is_name,
2539
2540
  label: null,
2540
2541
  multiple: field.multiple,
2541
2542
  amis: Object.assign({}, fieldAmis, { label: null })
@@ -3549,7 +3550,7 @@ function getReadonlyFormAdaptor(object, fields, options){
3549
3550
  nameLabel = `(record._display && record._display.${nameField.name}) || record.${nameField.name}`;
3550
3551
  }
3551
3552
  return `
3552
- if(payload.data.data.length === 0){
3553
+ if(!payload.data.data || payload.data.data.length === 0){
3553
3554
  var isEditor = !!${options && options.isEditor};
3554
3555
  if(isEditor){
3555
3556
  var fieldNames = ${JSON.stringify(fieldNames)};
@@ -10570,7 +10571,7 @@ async function getObjectRelatedListsMiniSchema(objectApiName){
10570
10571
  * @Author: baozhoutao@steedos.com
10571
10572
  * @Date: 2022-07-05 15:55:39
10572
10573
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
10573
- * @LastEditTime: 2024-04-26 16:46:44
10574
+ * @LastEditTime: 2025-05-20 16:56:55
10574
10575
  * @Description:
10575
10576
  */
10576
10577
 
@@ -10869,7 +10870,7 @@ async function getListSchema(
10869
10870
  }
10870
10871
 
10871
10872
  if (window.innerWidth > 768) {
10872
- // 列表视图组件PC端高度自动计算实现满屏效果,手机端不需要满屏效果,所以不用autofillheight,且允许重写微页面中重新组件autoFillHeight属性
10873
+ // 列表视图组件PC端高度自动计算实现满屏效果,手机端不需要满屏效果,所以不用autofillheight,且允许微页面中重写组件autoFillHeight属性
10873
10874
  defaults.listSchema = defaultsDeep$1({}, defaults.listSchema || {}, {
10874
10875
  autoFillHeight: true
10875
10876
  });