Skip to content

Commit bc9fd7f

Browse files
committed
docs(AppTextField): only pass through specific slot
1 parent 9547863 commit bc9fd7f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/docs/src/components/app/TextField.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@
88
single-line
99
variant="outlined"
1010
>
11-
<template
12-
v-for="(slot, index) of Object.keys($slots)"
13-
#[slot]
14-
:key="index"
15-
>
16-
<slot :name="slot" />
11+
<template v-if="$slots['append-inner']" #append-inner>
12+
<slot name="append-inner" />
1713
</template>
1814
</v-text-field>
1915
</template>
2016

21-
<script setup>
17+
<script setup lang="ts">
2218
import { useI18n } from 'vue-i18n'
2319
2420
const { t } = useI18n()

0 commit comments

Comments
 (0)