diff --git a/packages/uni-app-vue/lib/nvue.runtime.esm.js b/packages/uni-app-vue/lib/nvue.runtime.esm.js index c6b477eda07d93490d47c8cfd03af8664353b13b..8d13f3297ff80be2672cad2938add7ce5465056d 100644 --- a/packages/uni-app-vue/lib/nvue.runtime.esm.js +++ b/packages/uni-app-vue/lib/nvue.runtime.esm.js @@ -8148,6 +8148,12 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) { } } const optionsModifierRE = /(?:Once|Passive|Capture)$/; +function formatEventName(name) { + if (name === 'on-post-message') { + return 'onPostMessage'; + } + return name; +} function parseName(name) { let options; if (optionsModifierRE.test(name)) { @@ -8158,7 +8164,8 @@ function parseName(name) { options[m[0].toLowerCase()] = true; } } - return [hyphenate(name.slice(2)), options]; + name = name.slice(2); + return [formatEventName(hyphenate(name)), options]; } function createInvoker(initialValue, instance) { const invoker = (e) => {