Commit 585a6673 by puhui999

Merge remote-tracking branch 'yudao/master'

parents dd473c02 cab8c9ad
...@@ -9,8 +9,6 @@ import { FormSchema } from '@/types/form' ...@@ -9,8 +9,6 @@ import { FormSchema } from '@/types/form'
const { t } = useI18n() const { t } = useI18n()
const slots = useSlots()
const props = defineProps({ const props = defineProps({
// 生成Form的布局结构数组 // 生成Form的布局结构数组
schema: { schema: {
...@@ -125,7 +123,9 @@ const setVisible = () => { ...@@ -125,7 +123,9 @@ const setVisible = () => {
</ElButton> </ElButton>
</div> </div>
</template> </template>
<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>
</Form> </Form>
<template v-if="layout === 'bottom'"> <template v-if="layout === 'bottom'">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment