Skip to content

Commit

Permalink
fix(core): 修复了 type 必填的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Jul 4, 2020
1 parent f1455c8 commit d6ebc55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/weapp/init/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6ebc55

Please sign in to comment.