We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd473c0 + cab8c9a commit 585a667Copy full SHA for 585a667
src/components/Search/src/Search.vue
@@ -9,8 +9,6 @@ import { FormSchema } from '@/types/form'
9
10
const { t } = useI18n()
11
12
-const slots = useSlots()
13
-
14
const props = defineProps({
15
// 生成Form的布局结构数组
16
schema: {
@@ -125,7 +123,9 @@ const setVisible = () => {
125
123
</ElButton>
126
124
</div>
127
</template>
128
- <template v-for="(slot, name) in slots" #[name]><slot :name="name"></slot></template>
+ <template #[name] v-for="name in Object.keys($slots)" :key="name"
+ ><slot :name="name"></slot
+ ></template>
129
</Form>
130
131
<template v-if="layout === 'bottom'">
0 commit comments