@steedos-widgets/amis-object 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/amis-object.cjs.js
CHANGED
|
@@ -9136,7 +9136,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
9136
9136
|
|
|
9137
9137
|
pickerSchema.headerToolbar = getObjectHeaderToolbar(refObjectConfig, fieldsArr, ctx.formFactor, { headerToolbarItems, isLookup: true, keywordsSearchBoxName });
|
|
9138
9138
|
const isAllowCreate = refObjectConfig.permissions.allowCreate;
|
|
9139
|
-
|
|
9139
|
+
const isCreate = _$1__namespace.isBoolean(field.create) ? field.create : true;
|
|
9140
|
+
if (isAllowCreate && isCreate) {
|
|
9140
9141
|
const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
|
|
9141
9142
|
new_button.align = "right";
|
|
9142
9143
|
// 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后
|