From 2ed2188bb01fa321177125917102e5f664497d2a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 12 八月 2020 16:41:25 +0800 Subject: [PATCH] 2020-08-12 --- src/templates/zshare/codemirror/index.jsx | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/templates/zshare/codemirror/index.jsx b/src/templates/zshare/codemirror/index.jsx index 28cd658..4351acb 100644 --- a/src/templates/zshare/codemirror/index.jsx +++ b/src/templates/zshare/codemirror/index.jsx @@ -28,7 +28,7 @@ value: '', // 瀹炴椂鍐呭 options: null, // mode : text/javascript銆乼ext/x-mysql ; theme : cobalt - 榛戝簳 fullScreen: false, - style: null, + style: {fontSize: '18px', lineHeight: '32px'}, display: true } @@ -89,6 +89,10 @@ _style = {fontSize: '18px', lineHeight: '32px'} } else if (size === 20) { _style = {fontSize: '20px', lineHeight: '34px'} + } else if (size === 22) { + _style = {fontSize: '22px', lineHeight: '36px'} + } else if (size === 24) { + _style = {fontSize: '24px', lineHeight: '40px'} } // 鍒囨崲瀛椾綋澶у皬锛屽埛鏂扮紪杈戝櫒绐楀彛锛岃В鍐宠皟鏁村悗鐨勯�夋嫨鍖哄煙閿欎贡闂 @@ -125,6 +129,18 @@ > <span style={{padding: '0 10px 0px 5px'}}>20px</span> </Menu.Item> + <Menu.Item + style={style && style.fontSize === '22px' ? {backgroundColor: '#bae7ff'} : ''} + onClick={() => {this.changeSize(22)}} + > + <span style={{padding: '0 10px 0px 5px'}}>22px</span> + </Menu.Item> + <Menu.Item + style={style && style.fontSize === '24px' ? {backgroundColor: '#bae7ff'} : ''} + onClick={() => {this.changeSize(24)}} + > + <span style={{padding: '0 10px 0px 5px'}}>24px</span> + </Menu.Item> </Menu> ) -- Gitblit v1.8.0