File tree 1 file changed +3
-3
lines changed
packages/compiler-sfc/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ export function compileScript(
358
358
359
359
let propsType = `{}`
360
360
let emitType = `(e: string, ...args: any[]) => void`
361
- let slotsType = `__Slots__ `
361
+ let slotsType = `Slots `
362
362
let attrsType = `Record<string, any>`
363
363
364
364
let propsASTNode
@@ -662,7 +662,7 @@ export function compileScript(
662
662
// 7. finalize setup argument signature.
663
663
let args = ``
664
664
if ( isTS ) {
665
- if ( slotsType === '__Slots__ ' ) {
665
+ if ( slotsType === 'Slots ' ) {
666
666
helperImports . add ( 'Slots' )
667
667
}
668
668
const ctxType = `{
@@ -726,7 +726,7 @@ export function compileScript(
726
726
const runtimeProps = genRuntimeProps ( typeDeclaredProps )
727
727
const runtimeEmits = genRuntimeEmits ( typeDeclaredEmits )
728
728
s . append (
729
- `export default __defineComponent__ ({${ def } ${ runtimeProps } ${ runtimeEmits } \n setup\n})`
729
+ `export default defineComponent ({${ def } ${ runtimeProps } ${ runtimeEmits } \n setup\n})`
730
730
)
731
731
} else {
732
732
if ( defaultExport ) {
You can’t perform that action at this time.
0 commit comments