Skip to content

Commit

Permalink
chore: add test for #2758
Browse files Browse the repository at this point in the history
close #2758
  • Loading branch information
johnsoncodehk committed May 1, 2023
1 parent e34f42e commit 44357b1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/vue-test-workspace/vue-tsc/#2758/main.vue
@@ -0,0 +1,20 @@
<template>
<slot />
<template v-for="(value, key) of ({} as T)">
<slot
v-if="typeof key === 'string'"
:name="`cell:${key}`"
:value="value"
/>
</template>
</template>

<script lang="ts" setup generic="T extends Record<string, string>">
defineSlots<
{
[K in `cell:${string}`]: { value: T[keyof T] };
} & {
default: Record<string, any>;
}
>();
</script>

0 comments on commit 44357b1

Please sign in to comment.