From e2fdb9f1d20674c0dfb052fd025488aa27e09295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Sun, 7 Jan 2024 20:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E4=BD=BF=E7=94=A8defaultsDee?= =?UTF-8?q?p=E8=80=8C=E4=B8=8D=E6=98=AFObject.assign=E6=B7=B7=E5=90=88?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=90=A6=E5=88=99lookup=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84pickScehma=E5=B1=9E=E6=80=A7=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=A2=AB=E6=94=B9=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/steedos/steedos-platform/issues/6137 --- .../amis-lib/src/lib/converter/amis/fields/lookup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/lookup.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/lookup.js index 003c0f9ee..5b56e3a0c 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/lookup.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/lookup.js @@ -957,8 +957,8 @@ export async function lookupToAmis(field, readonly, ctx){ if(typeof refLookupPage == 'string'){ refLookupPage = JSON.parse(refLookupPage); } - // 先不放开此功能,amis picker组件有bug,无法正常识别deferApi属性,见:https://github.com/baidu/amis/issues/9349,待其修正后才能放开 // Object.assign(amisSchema, refLookupPage); + // amisSchema = _.defaultsDeep({}, refLookupPage, amisSchema); } return amisSchema; }