diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 087e901354b..684f028fd5b 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -971,14 +971,6 @@ function getSlotsProxy(instance: ComponentInternalInstance): Slots { get(target, key: string) { track(instance, TrackOpTypes.GET, '$slots') return target[key] - }, - set() { - warn(`setupContext.slots is readonly.`) - return false - }, - deleteProperty() { - warn(`setupContext.slots is readonly.`) - return false } })) )