From 0f1c94306d11f7744550b099d74bdcfc520c45fd Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 6 Jul 2022 11:52:47 +0800 Subject: [PATCH] fix(nvue): support shorthand # --- .../packages/weex-template-compiler/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js b/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js index 7624fc305..92ba6344d 100644 --- a/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js +++ b/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js @@ -1494,7 +1494,7 @@ function parse ( if( ( !onRE.test(attr.name) && - attr.name.indexOf('v-slot') !== 0 + !slotRE.test(attr.name) ) && // fixed by xxxxxx 忽略 v-slot attr.value === '' && (attr.start + attr.name.length) === attr.end -- GitLab