We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0017caf commit 7c1a484Copy full SHA for 7c1a484
packages/runtime-core/src/componentSlots.ts
@@ -104,7 +104,12 @@ export const initSlots = (
104
if ((children as RawSlots)._ === 1) {
105
const slots: InternalSlots = (instance.slots = {})
106
for (const key in children as RawSlots) {
107
- if (key !== '_') slots[key] = (children as Slots)[key]
+ Object.defineProperty(slots, key, {
108
+ configurable: true,
109
+ value: (children as Slots)[key],
110
+ enumerable: key !== '_',
111
+ writable: true
112
+ })
113
}
114
} else {
115
normalizeObjectSlots(children as RawSlots, (instance.slots = {}))
0 commit comments