From f9ba5907ddff56da7c38b1c7d5a9c5ba6aadfa05 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 19 一月 2021 17:10:19 +0800
Subject: [PATCH] 2021-01-19

---
 src/components/editor/index.jsx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/components/editor/index.jsx b/src/components/editor/index.jsx
index 2c0bd2b..a94d12e 100644
--- a/src/components/editor/index.jsx
+++ b/src/components/editor/index.jsx
@@ -38,6 +38,8 @@
 
     if (this.props['data-__meta']) {
       initVal = this.props['data-__meta'].initialValue || null
+    } else if (this.props.defaultValue) {
+      initVal = this.props.defaultValue || null
     }
 
     if (this.props.Item && this.props.Item.encryption === 'true') {

--
Gitblit v1.8.0