@steedos-widgets/amis-lib 1.3.2-beta.2 → 1.3.2-beta.4

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
@@ -5967,7 +5967,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
5967
5967
 
5968
5968
  pickerSchema.headerToolbar = getObjectHeaderToolbar(refObjectConfig, fieldsArr, ctx.formFactor, { headerToolbarItems, isLookup: true, keywordsSearchBoxName });
5969
5969
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
5970
- if (isAllowCreate) {
5970
+ const isCreate = _$1.isBoolean(field.create) ? field.create : true;
5971
+ if (isAllowCreate && isCreate) {
5971
5972
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
5972
5973
  new_button.align = "right";
5973
5974
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后
@@ -10636,8 +10637,8 @@ async function getRelatedListSchema(
10636
10637
  /*
10637
10638
  * @Author: baozhoutao@steedos.com
10638
10639
  * @Date: 2022-07-05 15:55:39
10639
- * @LastEditors: liaodaxue
10640
- * @LastEditTime: 2023-08-25 11:55:15
10640
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
10641
+ * @LastEditTime: 2023-09-14 10:19:56
10641
10642
  * @Description:
10642
10643
  */
10643
10644
 
@@ -10996,6 +10997,11 @@ async function convertColumnsToTableFields(columns, uiSchema, ctx = {}) {
10996
10997
  if (uiSchema.fields[column]) {
10997
10998
  fields.push(Object.assign({}, uiSchema.fields[column], ctx));
10998
10999
  }
11000
+ else if(ctx.extra){
11001
+ fields.push({
11002
+ name: column
11003
+ });
11004
+ }
10999
11005
  }
11000
11006
  } else if (isObject$1(column)) {
11001
11007
  if (column.field.indexOf('.') > 0) {