Skip to content

Commit 585a667

Browse files
author
puhui999
committed
Merge remote-tracking branch 'yudao/master'
2 parents dd473c0 + cab8c9a commit 585a667

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Search/src/Search.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { FormSchema } from '@/types/form'
99
1010
const { t } = useI18n()
1111
12-
const slots = useSlots()
13-
1412
const props = defineProps({
1513
// 生成Form的布局结构数组
1614
schema: {
@@ -125,7 +123,9 @@ const setVisible = () => {
125123
</ElButton>
126124
</div>
127125
</template>
128-
<template v-for="(slot, name) in slots" #[name]><slot :name="name"></slot></template>
126+
<template #[name] v-for="name in Object.keys($slots)" :key="name"
127+
><slot :name="name"></slot
128+
></template>
129129
</Form>
130130

131131
<template v-if="layout === 'bottom'">

0 commit comments

Comments
 (0)