提交 8bba8394 编写于 作者: fxy060608's avatar fxy060608

fix(mp): vueExtends

上级 359f7321
...@@ -430,7 +430,7 @@ function initBehaviors(vueOptions, initBehavior) { ...@@ -430,7 +430,7 @@ function initBehaviors(vueOptions, initBehavior) {
} }
}); });
} }
if (vueExtends.props) { if (vueExtends && vueExtends.props) {
const behavior = {}; const behavior = {};
initProps(behavior, vueExtends.props, true); initProps(behavior, vueExtends.props, true);
behaviors.push(initBehavior(behavior)); behaviors.push(initBehavior(behavior));
......
...@@ -469,7 +469,7 @@ function initBehaviors(vueOptions, initBehavior) { ...@@ -469,7 +469,7 @@ function initBehaviors(vueOptions, initBehavior) {
} }
}); });
} }
if (vueExtends.props) { if (vueExtends && vueExtends.props) {
const behavior = {}; const behavior = {};
initProps(behavior, vueExtends.props, true); initProps(behavior, vueExtends.props, true);
behaviors.push(initBehavior(behavior)); behaviors.push(initBehavior(behavior));
......
...@@ -458,7 +458,7 @@ function initBehaviors(vueOptions, initBehavior) { ...@@ -458,7 +458,7 @@ function initBehaviors(vueOptions, initBehavior) {
} }
}); });
} }
if (vueExtends.props) { if (vueExtends && vueExtends.props) {
const behavior = {}; const behavior = {};
initProps(behavior, vueExtends.props, true); initProps(behavior, vueExtends.props, true);
behaviors.push(initBehavior(behavior)); behaviors.push(initBehavior(behavior));
......
...@@ -467,7 +467,7 @@ function initBehaviors(vueOptions, initBehavior) { ...@@ -467,7 +467,7 @@ function initBehaviors(vueOptions, initBehavior) {
} }
}); });
} }
if (vueExtends.props) { if (vueExtends && vueExtends.props) {
const behavior = {}; const behavior = {};
initProps(behavior, vueExtends.props, true); initProps(behavior, vueExtends.props, true);
behaviors.push(initBehavior(behavior)); behaviors.push(initBehavior(behavior));
......
...@@ -458,7 +458,7 @@ function initBehaviors(vueOptions, initBehavior) { ...@@ -458,7 +458,7 @@ function initBehaviors(vueOptions, initBehavior) {
} }
}); });
} }
if (vueExtends.props) { if (vueExtends && vueExtends.props) {
const behavior = {}; const behavior = {};
initProps(behavior, vueExtends.props, true); initProps(behavior, vueExtends.props, true);
behaviors.push(initBehavior(behavior)); behaviors.push(initBehavior(behavior));
......
...@@ -439,7 +439,7 @@ function initBehaviors(vueOptions, initBehavior) { ...@@ -439,7 +439,7 @@ function initBehaviors(vueOptions, initBehavior) {
} }
}); });
} }
if (vueExtends.props) { if (vueExtends && vueExtends.props) {
const behavior = {}; const behavior = {};
initProps(behavior, vueExtends.props, true); initProps(behavior, vueExtends.props, true);
behaviors.push(initBehavior(behavior)); behaviors.push(initBehavior(behavior));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册