From 72c99bf4ecca81e34de0ea471039067f3bfa248f Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Thu, 28 Jan 2021 22:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E8=AE=BE=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ElementStylePanel/TextStylePanel.vue | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue index 2a1ce759..c1d825b3 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue @@ -227,7 +227,7 @@ const presetStyles = [ { label: '大标题', style: { - fontSize: '30px', + fontSize: '26px', fontWeight: 700, }, cmd: [ @@ -240,7 +240,7 @@ const presetStyles = [ { label: '小标题', style: { - fontSize: '24px', + fontSize: '22px', fontWeight: 700, }, cmd: [ @@ -261,7 +261,17 @@ const presetStyles = [ ], }, { - label: '注释', + label: '正文[小]', + style: { + fontSize: '18px', + }, + cmd: [ + { command: 'clear' }, + { command: 'fontsize', value: '18px' }, + ], + }, + { + label: '注释 1', style: { fontSize: '16px', fontStyle: 'italic', @@ -272,6 +282,18 @@ const presetStyles = [ { command: 'em' }, ], }, + { + label: '注释 2', + style: { + fontSize: '16px', + textDecoration: 'underline', + }, + cmd: [ + { command: 'clear' }, + { command: 'fontsize', value: '16px' }, + { command: 'underline' }, + ], + }, ] interface CommandPayload { @@ -400,7 +422,7 @@ export default defineComponent({ } .preset-style-item { width: 50%; - height: 60px; + height: 50px; border: solid 1px #d6d6d6; box-sizing: border-box; display: flex;