Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 838f956

Browse files
author
knight.chen
committed
fix: 修复由于 leaf 组件参数校验引起的循环调用
1 parent 9129ce8 commit 838f956

File tree

1 file changed

+3
-6
lines changed
  • packages/vue-renderer/src/core

1 file changed

+3
-6
lines changed

packages/vue-renderer/src/core/base.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
ExtractPropTypes,
1111
PropType,
1212
} from 'vue';
13-
import type { BlockScope, I18nMessages, RuntimeScope, SchemaParser } from '../utils';
13+
import type { BlockScope, I18nMessages, SchemaParser } from '../utils';
1414

1515
export const rendererProps = {
1616
__scope: {
@@ -69,13 +69,10 @@ export type RendererComponent = DefineComponent<RendererProps, any, any>;
6969

7070
export const leafProps = {
7171
__comp: {
72-
type: Object as PropType<Component | null>,
72+
type: [Object, Function] as PropType<Component | null>,
7373
required: true,
7474
},
75-
__scope: {
76-
type: Object as PropType<RuntimeScope>,
77-
default: () => ({}),
78-
},
75+
__scope: null,
7976
__schema: {
8077
type: Object as PropType<NodeSchema>,
8178
default: () => ({}),

0 commit comments

Comments
 (0)