Skip to content

Commit

Permalink
Update instance.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 6, 2024
1 parent 9d26a16 commit 25a7235
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/runtime-core/src/compat/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,7 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {

$scopedSlots: i => {
assertCompatEnabled(DeprecationTypes.INSTANCE_SCOPED_SLOTS, i)
const res: InternalSlots = {}
for (const key in i.slots) {
const fn = i.slots[key]!
res[key] = fn
}
return res
return __DEV__ ? shallowReadonly(i.slots) : i.slots
},

$on: i => on.bind(null, i),
Expand Down

0 comments on commit 25a7235

Please sign in to comment.