1
0
mirror of synced 2026-04-03 06:28:35 +08:00

feat(editor,schema): 支持配置数据源mock

This commit is contained in:
roymondchen
2023-10-01 17:44:27 +08:00
parent 2b2a9c6706
commit d4a8b89e6f
9 changed files with 260 additions and 15 deletions

View File

@@ -41,6 +41,17 @@ const fillConfig = (config: FormConfig): FormConfig => [
},
],
},
{
type: 'panel',
title: 'mock数据',
items: [
{
name: 'mocks',
type: 'data-source-mocks',
defaultValue: () => [],
},
],
},
];
export const getFormConfig = (type: string, configs: Record<string, FormConfig>): FormConfig => {