Skip to content

Commit

Permalink
fix(vue): fix reactions not work correctly in schema field (#3287)
Browse files Browse the repository at this point in the history
  • Loading branch information
MisicDemone committed Jul 20, 2022
1 parent efe9852 commit 551ad0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/vue/src/components/RecursionField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import ArrayField from './ArrayField'
import Field from './Field'
import VoidField from './VoidField'
import { h } from '../shared/h'
import { Fragment } from '../shared/fragment'

import type { IRecursionFieldProps, DefineComponent } from '../types'

const resolveEmptySlot = (slots: Record<any, (...args: any[]) => any[]>) => {
return Object.keys(slots).length ? h(Fragment, {}, slots) : undefined
return Object.keys(slots).length
? h('div', { style: 'display:contents;' }, slots)
: undefined
}

const RecursionField = {
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/shared/h.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ type RenderChildren = {
[key in string]?: (...args: any[]) => (VNode | string)[]
}

// TODO: need to compatible with vue2 & vue3
type Tag = any
type VNodeData = Record<string, any>
type VNode = any
Expand Down

0 comments on commit 551ad0f

Please sign in to comment.