From f7bca02844bb15a1bbf61156db0b2aada3fa6b5e Mon Sep 17 00:00:00 2001 From: roymondchen Date: Thu, 5 May 2022 20:27:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(playground):=20=E5=A2=9E=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E6=A0=B7=E5=BC=8F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/utils/props.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/editor/src/utils/props.ts b/packages/editor/src/utils/props.ts index 98fcc09e..5cf7524e 100644 --- a/packages/editor/src/utils/props.ts +++ b/packages/editor/src/utils/props.ts @@ -142,6 +142,25 @@ export const fillConfig = (config: FormConfig = []) => [ }, ], }, + { + type: 'fieldset', + legend: '字体', + items: [ + { + name: 'color', + text: '颜色', + type: 'colorPicker', + }, + { + name: 'fontSize', + text: '大小', + }, + { + name: 'fontWeight', + text: '粗细', + }, + ], + }, ], }, ],