@dcloudio/uni-quickapp-webview 3.0.0-alpha-3030820220114003 → 3.0.0-alpha-3030820220114006

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { isPlainObject, isArray, hasOwn, isFunction, extend, camelize, isObject } from '@vue/shared';
1
+ import { camelize, isPlainObject, isArray, hasOwn, isFunction, extend, isObject } from '@vue/shared';
2
2
  import { injectHook, ref, nextTick, findComponentPropsData, toRaw, updateProps, invalidateJob, getExposeProxy, pruneComponentPropsCache } from 'vue';
3
3
 
4
4
  const ON_READY$1 = 'onReady';
@@ -88,6 +88,11 @@ const ON_REACH_BOTTOM = 'onReachBottom';
88
88
  const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh';
89
89
  const ON_ADD_TO_FAVORITES = 'onAddToFavorites';
90
90
 
91
+ const customizeRE = /:/g;
92
+ function customizeEvent(str) {
93
+ return camelize(str.replace(customizeRE, '-'));
94
+ }
95
+
91
96
  const encode = encodeURIComponent;
92
97
  function stringifyQuery(obj, encodeStr = encode) {
93
98
  const res = obj
@@ -832,14 +837,10 @@ function initCreatePage(parseOptions) {
832
837
 
833
838
  const MPPage = Page;
834
839
  const MPComponent = Component;
835
- const customizeRE = /:/g;
836
- function customize(str) {
837
- return camelize(str.replace(customizeRE, '-'));
838
- }
839
840
  function initTriggerEvent(mpInstance) {
840
841
  const oldTriggerEvent = mpInstance.triggerEvent;
841
842
  mpInstance.triggerEvent = function (event, ...args) {
842
- return oldTriggerEvent.apply(mpInstance, [customize(event), ...args]);
843
+ return oldTriggerEvent.apply(mpInstance, [customizeEvent(event), ...args]);
843
844
  };
844
845
  }
845
846
  function initHook(name, options, isComponent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-quickapp-webview",
3
- "version": "3.0.0-alpha-3030820220114003",
3
+ "version": "3.0.0-alpha-3030820220114006",
4
4
  "description": "uni-app quickapp-webview",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -25,10 +25,10 @@
25
25
  "@vue/compiler-core": "3.2.27"
26
26
  },
27
27
  "dependencies": {
28
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030820220114003",
29
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030820220114003",
30
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030820220114003",
31
- "@dcloudio/uni-shared": "3.0.0-alpha-3030820220114003",
28
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030820220114006",
29
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030820220114006",
30
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030820220114006",
31
+ "@dcloudio/uni-shared": "3.0.0-alpha-3030820220114006",
32
32
  "@vue/shared": "3.2.27"
33
33
  }
34
34
  }