@steedos-widgets/amis-lib 6.3.0-beta.15 → 6.3.0-beta.16
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 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -11588,8 +11588,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
11588
11588
|
const isAllowCreate = refObjectConfig.permissions.allowCreate;
|
|
11589
11589
|
const isCreate = _$1.isBoolean(field.create) ? field.create : true;
|
|
11590
11590
|
// lookup字段配置过滤条件就强制不显示新建按钮
|
|
11591
|
-
let
|
|
11592
|
-
if (isAllowCreate && isCreate && !
|
|
11591
|
+
let hasFilters = !_$1.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
|
|
11592
|
+
if (isAllowCreate && isCreate && !hasFilters) {
|
|
11593
11593
|
const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
|
|
11594
11594
|
new_button.align = "right";
|
|
11595
11595
|
// 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后
|