From 8753aeefb8e3a4463be9d76328c42c1b4caad90a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 09 九月 2021 19:14:07 +0800
Subject: [PATCH] 2021-09-09

---
 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