-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Description
Vue version
3.3
Link to minimal reproduction
Steps to reproduce
Create a Vue SFC with <script lang="ts" setup>
Create a ref/computed inside the setup.
Define some slots with defineSlots
Try to create a
What is expected?
Refs/Computed should be allowed as slotNames
What is actually happening?
You get a typescript error telling you that ComputedRef can not be used as indexer.
Strangely enough if I wrap the ref in a reactive and reference it as a field it works totally fine.
System Info
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.30 GB / 31.92 GB
Binaries:
Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 6.19.1 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Chrome: 117.0.5938.92
Edge: Chromium (117.0.2045.43)
Internet Explorer: 11.0.22621.1
npmPackages:
vue: ^3.3.4 => 3.3.4
Any additional comments?
No response