feat(sfc): change <script setup>
directive resolution to require v prefix
close #3543
This commit is contained in:
parent
0245c98640
commit
d35e0b1468
@ -739,7 +739,8 @@ function buildDirectiveArgs(
|
|||||||
} else {
|
} else {
|
||||||
// user directive.
|
// user directive.
|
||||||
// see if we have directives exposed via <script setup>
|
// see if we have directives exposed via <script setup>
|
||||||
const fromSetup = !__BROWSER__ && resolveSetupReference(dir.name, context)
|
const fromSetup =
|
||||||
|
!__BROWSER__ && resolveSetupReference('v-' + dir.name, context)
|
||||||
if (fromSetup) {
|
if (fromSetup) {
|
||||||
dirArgs.push(fromSetup)
|
dirArgs.push(fromSetup)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user