@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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
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
|
-
|
|
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到最后
|