From 3e9f229b307bc2cfb0ab39185250bb38c1f196a2 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 17 Dec 2019 15:20:30 +0800 Subject: [PATCH] build:runtime --- packages/uni-app-plus/dist/index.js | 2 +- packages/uni-mp-alipay/dist/index.js | 16 ++++++++++++++-- packages/uni-mp-baidu/dist/index.js | 2 +- packages/uni-mp-qq/dist/index.js | 2 +- packages/uni-mp-toutiao/dist/index.js | 2 +- packages/uni-mp-weixin/dist/index.js | 2 +- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/packages/uni-app-plus/dist/index.js b/packages/uni-app-plus/dist/index.js index 3b1d09c21..a7b7a1573 100644 --- a/packages/uni-app-plus/dist/index.js +++ b/packages/uni-app-plus/dist/index.js @@ -19,7 +19,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -function noop () {} +function noop () { } /** * Create a cached version of a pure function. diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index cabe08b67..033fdab96 100644 --- a/packages/uni-mp-alipay/dist/index.js +++ b/packages/uni-mp-alipay/dist/index.js @@ -19,7 +19,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -function noop () {} +function noop () { } /** * Create a cached version of a pure function. @@ -751,6 +751,9 @@ const protocols = { // 需要做转换的 API 列表 }, showShareMenu: { name: 'showSharePanel' + }, + hideHomeButton: { + name: 'hideBackHome' } }; @@ -1021,12 +1024,21 @@ function createSelectorQuery () { return query } +function createIntersectionObserver (component, options) { + if (options && options.observeAll) { + options.selectAll = options.observeAll; + delete options.observeAll; + } + return my.createIntersectionObserver(options) +} + var api = /*#__PURE__*/Object.freeze({ setStorageSync: setStorageSync, getStorageSync: getStorageSync, removeStorageSync: removeStorageSync, startGyroscope: startGyroscope, - createSelectorQuery: createSelectorQuery + createSelectorQuery: createSelectorQuery, + createIntersectionObserver: createIntersectionObserver }); const PAGE_EVENT_HOOKS = [ diff --git a/packages/uni-mp-baidu/dist/index.js b/packages/uni-mp-baidu/dist/index.js index 980986626..8d92d8c53 100644 --- a/packages/uni-mp-baidu/dist/index.js +++ b/packages/uni-mp-baidu/dist/index.js @@ -19,7 +19,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -function noop () {} +function noop () { } /** * Create a cached version of a pure function. diff --git a/packages/uni-mp-qq/dist/index.js b/packages/uni-mp-qq/dist/index.js index d926672b0..259cd9f96 100644 --- a/packages/uni-mp-qq/dist/index.js +++ b/packages/uni-mp-qq/dist/index.js @@ -19,7 +19,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -function noop () {} +function noop () { } /** * Create a cached version of a pure function. diff --git a/packages/uni-mp-toutiao/dist/index.js b/packages/uni-mp-toutiao/dist/index.js index e49173489..41e0b59a2 100644 --- a/packages/uni-mp-toutiao/dist/index.js +++ b/packages/uni-mp-toutiao/dist/index.js @@ -19,7 +19,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -function noop () {} +function noop () { } /** * Create a cached version of a pure function. diff --git a/packages/uni-mp-weixin/dist/index.js b/packages/uni-mp-weixin/dist/index.js index eed3ad93f..612940151 100644 --- a/packages/uni-mp-weixin/dist/index.js +++ b/packages/uni-mp-weixin/dist/index.js @@ -19,7 +19,7 @@ function hasOwn (obj, key) { return hasOwnProperty.call(obj, key) } -function noop () {} +function noop () { } /** * Create a cached version of a pure function. -- GitLab