From bd1dfc9e6c9b9f8076ca2783ce598e0936b4c664 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 22 十二月 2021 14:36:03 +0800
Subject: [PATCH] 2021-12-22

---
 src/templates/zshare/codemirror/index.jsx |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/templates/zshare/codemirror/index.jsx b/src/templates/zshare/codemirror/index.jsx
index edba82c..98b324a 100644
--- a/src/templates/zshare/codemirror/index.jsx
+++ b/src/templates/zshare/codemirror/index.jsx
@@ -1,7 +1,8 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Icon, Dropdown, Menu } from 'antd'
+import { Dropdown, Menu } from 'antd'
+import { FullscreenOutlined, FullscreenExitOutlined, FontSizeOutlined } from '@ant-design/icons'
 
 import {UnControlled as CodeMirror} from 'react-codemirror2'
 import 'codemirror/mode/javascript/javascript'
@@ -148,10 +149,10 @@
 
     return (
       <div className="code-mirror-wrap" style={fullScreen ? style : null}>
-        {!fullScreen ? <Icon type="fullscreen" onClick={this.fullScreenChange}/> : null}
-        {fullScreen ? <Icon type="fullscreen-exit" onClick={this.fullScreenChange}/> : null}
+        {!fullScreen ? <FullscreenOutlined onClick={this.fullScreenChange}/> : null}
+        {fullScreen ? <FullscreenExitOutlined onClick={this.fullScreenChange}/> : null}
         {fullScreen ? <Dropdown overlay={menu} placement="bottomRight">
-          <Icon type="font-size" />
+          <FontSizeOutlined />
         </Dropdown> : null}
         {display ? <CodeMirror
           className="code-mirror-area"

--
Gitblit v1.8.0