From 94d7a1c57811973c2316ecce81297ded6e6bfa69 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Sat, 1 Jun 2019 18:43:22 +0800 Subject: [PATCH] feat(h5): add this.createSelectorQuery,this.createIntersectionObserver --- src/core/service/plugins/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/service/plugins/index.js b/src/core/service/plugins/index.js index b961a5587..f6c2ceea8 100644 --- a/src/core/service/plugins/index.js +++ b/src/core/service/plugins/index.js @@ -152,6 +152,14 @@ export default { } }) + Vue.prototype.createSelectorQuery = function createSelectorQuery () { + return uni.createSelectorQuery().in(this) + } + + Vue.prototype.createIntersectionObserver = function createIntersectionObserver (args) { + return uni.createIntersectionObserver(this, args) + } + Vue.use(VueRouter) } -- GitLab