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

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到最后