@vue/compiler-sfc 2.7.6 → 2.7.7
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/compiler-sfc.js +3 -2
- package/package.json +1 -1
package/dist/compiler-sfc.js
CHANGED
|
@@ -11998,13 +11998,14 @@ function genElement(el, state) {
|
|
|
11998
11998
|
}
|
|
11999
11999
|
else {
|
|
12000
12000
|
let data;
|
|
12001
|
-
|
|
12001
|
+
const maybeComponent = state.maybeComponent(el);
|
|
12002
|
+
if (!el.plain || (el.pre && maybeComponent)) {
|
|
12002
12003
|
data = genData(el, state);
|
|
12003
12004
|
}
|
|
12004
12005
|
let tag;
|
|
12005
12006
|
// check if this is a component in <script setup>
|
|
12006
12007
|
const bindings = state.options.bindings;
|
|
12007
|
-
if (bindings && bindings.__isScriptSetup !== false) {
|
|
12008
|
+
if (maybeComponent && bindings && bindings.__isScriptSetup !== false) {
|
|
12008
12009
|
tag =
|
|
12009
12010
|
checkBindingType(bindings, el.tag) ||
|
|
12010
12011
|
checkBindingType(bindings, camelize(el.tag)) ||
|