File tree 2 files changed +3
-6
lines changed 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import {
37
37
} from './renderHelpers'
38
38
import { resolveFilter } from '../helpers/resolveAssets'
39
39
import type { InternalSlots , Slots } from '../componentSlots'
40
- import type { ContextualRenderFn } from '../componentRenderContext'
41
40
import { resolveMergedOptions } from '../componentOptions'
42
41
43
42
export type LegacyPublicInstance = ComponentPublicInstance &
@@ -109,9 +108,7 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {
109
108
const res : InternalSlots = { }
110
109
for ( const key in i . slots ) {
111
110
const fn = i . slots [ key ] !
112
- if ( ! ( fn as ContextualRenderFn ) . _ns /* non-scoped slot */ ) {
113
- res [ key ] = fn
114
- }
111
+ res [ key ] = fn
115
112
}
116
113
return res
117
114
} ,
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ describe('INSTANCE_SCOPED_SLOTS', () => {
284
284
) . toHaveBeenWarned ( )
285
285
} )
286
286
287
- test ( 'should not include legacy slot usage in $scopedSlots' , ( ) => {
287
+ test ( 'should include legacy slot usage in $scopedSlots' , ( ) => {
288
288
let normalSlots : Slots
289
289
let scopedSlots : Slots
290
290
new Vue ( {
@@ -301,7 +301,7 @@ describe('INSTANCE_SCOPED_SLOTS', () => {
301
301
} ) . $mount ( )
302
302
303
303
expect ( 'default' in normalSlots ! ) . toBe ( true )
304
- expect ( 'default' in scopedSlots ! ) . toBe ( false )
304
+ expect ( 'default' in scopedSlots ! ) . toBe ( true )
305
305
306
306
expect (
307
307
deprecationData [ DeprecationTypes . INSTANCE_SCOPED_SLOTS ] . message ,
You can’t perform that action at this time.
0 commit comments