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

Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha

......@@ -1047,6 +1047,12 @@ function createSelectorQuery () {
return this
};
}
if (!query.in) {
query.in = function () {
return this
};
}
return query
}
......
......@@ -5829,9 +5829,21 @@ function internalMixin(Vue) {
MP_METHODS.forEach(function (method) {
Vue.prototype[method] = function(args) {
if (this.$scope) {
if (this.$scope && this.$scope[method]) {
return this.$scope[method](args)
}
// mp-alipay
if(typeof my === 'undefined'){
return
}
if (method === 'createSelectorQuery') {
/* eslint-disable no-undef */
return my.createSelectorQuery(args)
} else if (method === 'createIntersectionObserver') {
/* eslint-disable no-undef */
return my.createIntersectionObserver(args)
}
// TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
};
});
......
......@@ -88,6 +88,12 @@ export function createSelectorQuery () {
return this
}
}
if (!query.in) {
query.in = function () {
return this
}
}
return query
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册