From 4daf6b441034b354a5e0ebb984cf7ffa30d22fce Mon Sep 17 00:00:00 2001 From: roymondchen Date: Mon, 26 Jun 2023 17:04:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(editor):=20=E5=B1=9E=E6=80=A7=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=B7=BB=E5=8A=A0=E8=BE=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/utils/props.ts | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/editor/src/utils/props.ts b/packages/editor/src/utils/props.ts index 23a6ded4..c6c4405e 100644 --- a/packages/editor/src/utils/props.ts +++ b/packages/editor/src/utils/props.ts @@ -105,6 +105,38 @@ export const fillConfig = (config: FormConfig = []) => [ }, ], }, + { + type: 'fieldset', + legend: '边框', + items: [ + { + name: 'borderWidth', + text: '宽度', + }, + { + name: 'borderColor', + text: '颜色', + type: 'colorPicker', + }, + { + name: 'borderStyle', + text: '样式', + type: 'select', + options: [ + { text: 'none', value: 'none' }, + { text: 'hidden', value: 'hidden' }, + { text: 'dotted', value: 'dotted' }, + { text: 'dashed', value: 'dashed' }, + { text: 'solid', value: 'solid' }, + { text: 'double', value: 'double' }, + { text: 'groove', value: 'groove' }, + { text: 'ridge', value: 'ridge' }, + { text: 'inset', value: 'inset' }, + { text: 'outset', value: 'outset' }, + ], + }, + ], + }, { type: 'fieldset', legend: '背景',