From 7b31ff9911c5f6d5e556dd83699d8b59a1510a08 Mon Sep 17 00:00:00 2001 From: Katherine Date: Wed, 11 Sep 2024 11:19:21 +0800 Subject: [PATCH] refactor: markdownVditorFieldInterface suport availableTypes (#5246) --- .../src/client/interfaces/markdown-vditor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx index 8789109fc5..b5b8b54b7e 100644 --- a/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx +++ b/packages/plugins/@nocobase/plugin-field-markdown-vditor/src/client/interfaces/markdown-vditor.tsx @@ -45,6 +45,7 @@ export class MarkdownVditorFieldInterface extends CollectionFieldInterface { 'x-component': 'MarkdownVditor', }, }; + availableTypes = ['text', 'json', 'string']; properties = { ...defaultProps, 'uiSchema.x-component-props.fileCollection': {