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

fix(mp-alipay): add createSelectorQuery,createIntersectionObserver

上级 29bffca8
......@@ -5832,13 +5832,16 @@ function internalMixin(Vue) {
if (this.$scope && this.$scope[method]) {
return this.$scope[method](args)
}
// 主要是 mp-alipay
// mp-alipay
if(typeof my === 'undefined'){
return
}
if (method === 'createSelectorQuery') {
/* eslint-disable no-undef */
return uni.createSelectorQuery(args).in(this)
return my.createSelectorQuery(args)
} else if (method === 'createIntersectionObserver') {
/* eslint-disable no-undef */
return uni.createIntersectionObserver(this, args)
return my.createIntersectionObserver(args)
}
// TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册