From 1da6506bf58270bacc2a4345002c6b082835580e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十月 2021 23:17:08 +0800
Subject: [PATCH] 2021-10-21

---
 src/tabviews/custom/components/editor/braft-editor/index.jsx |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/components/editor/braft-editor/index.jsx b/src/tabviews/custom/components/editor/braft-editor/index.jsx
index 8b7c537..c2f8d55 100644
--- a/src/tabviews/custom/components/editor/braft-editor/index.jsx
+++ b/src/tabviews/custom/components/editor/braft-editor/index.jsx
@@ -56,6 +56,10 @@
       _data = {}
     }
 
+    if (_config.wrap.minHeight) {
+      _config.style.minHeight = _config.wrap.minHeight
+    }
+
     this.setState({
       sync: _sync,
       data: _data,
@@ -171,7 +175,7 @@
     const { config, loading, data } = this.state
 
     return (
-      <div className="custom-braft-editor-box" style={{...config.style}}>
+      <div className="custom-braft-editor-box" style={config.style}>
         {loading ?
           <div className="loading-mask">
             <div className="ant-spin-blur"></div>

--
Gitblit v1.8.0