From d6ebc55baa108e4815379fdb11c107a9a6c25416 Mon Sep 17 00:00:00 2001 From: Gcaufy Date: Sat, 4 Jul 2020 11:43:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E4=BF=AE=E5=A4=8D=E4=BA=86=20type?= =?UTF-8?q?=20=E5=BF=85=E5=A1=AB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/weapp/init/props.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/weapp/init/props.js b/packages/core/weapp/init/props.js index 5574b0137..35bbeefec 100644 --- a/packages/core/weapp/init/props.js +++ b/packages/core/weapp/init/props.js @@ -44,6 +44,7 @@ export function patchProps(output, props) { newProp.type = null; } else if (isArr(prop.type)) { newProp.optionalTypes = prop.type; + newProp.type = prop.type[0]; } else if (AllowedTypes.indexOf(prop.type) === -1) { newProp.type = null; // eslint-disable-next-line