Skip to content

Commit

Permalink
Merge pull request #2633 from Tencent/fix-type
Browse files Browse the repository at this point in the history
fix(core): 修复了 type 必填的问题
  • Loading branch information
Gcaufy authored Jul 4, 2020
2 parents f1455c8 + d6ebc55 commit 1e4e3ed
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 1e4e3ed

Please sign in to comment.