@wevu/compiler 6.16.1 → 6.16.3
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.
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5981,7 +5981,7 @@ function transformOnDirective(node, context, options) {
|
|
|
5981
5981
|
const inlineSource = useDetailPayload && isSimpleHandler(rawExpValue) ? `${rawExpValue}($event)` : rawExpValue;
|
|
5982
5982
|
const isInlineExpression = inlineSource && !isSimpleHandler(inlineSource);
|
|
5983
5983
|
const inlineExpression = isInlineExpression ? registerInlineExpression(inlineSource, context) : null;
|
|
5984
|
-
const mappedEvent = context.platform.mapEventName(argValue);
|
|
5984
|
+
const mappedEvent = options?.isComponent === true ? argValue : context.platform.mapEventName(argValue);
|
|
5985
5985
|
const eventSuffix = normalizeEventDatasetSuffix(mappedEvent);
|
|
5986
5986
|
const eventPrefix = resolveEventPrefix(node.modifiers);
|
|
5987
5987
|
const bindAttr = context.platform.eventBindingAttr(`${eventPrefix}:${mappedEvent}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wevu/compiler",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.16.
|
|
4
|
+
"version": "6.16.3",
|
|
5
5
|
"description": "wevu 编译器基础包,面向小程序模板的编译与转换",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue": "^3.5.33",
|
|
53
53
|
"@weapp-core/constants": "^0.1.4",
|
|
54
54
|
"@weapp-core/shared": "3.0.4",
|
|
55
|
-
"@weapp-vite/ast": "6.16.
|
|
55
|
+
"@weapp-vite/ast": "6.16.3",
|
|
56
56
|
"rolldown-require": "2.0.15"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|