2 次代码提交

作者 SHA1 备注 提交日期
  Roxas 04f36feeab dev: [SimpleEditor] add props: appendInnerBar and type both 4 年前
  Roxas d3f48e8597 dev: [SimpleEditor] add props: appendInnerBar and type both 4 年前

+ 2
- 2
eslib/Editor/index.js 查看文件

@@ -150,8 +150,8 @@ var SimpleEditor = function SimpleEditor(props) {
150 150
       value: value,
151 151
       onChange: onChange,
152 152
       controls: [],
153
-      FloatControls: {
154
-        appendInnderBar: appendInnderBar
153
+      FloatControls: function FloatControls() {
154
+        return appendInnderBar;
155 155
       }
156 156
     }, injectBraftEditorProps)), React.createElement("div", {
157 157
       style: toolBarContainerStyle

+ 1
- 1
eslib/Editor/index.js.map
文件差异内容过多而无法显示
查看文件


+ 2
- 2
lib/Editor/index.js 查看文件

@@ -156,8 +156,8 @@ var SimpleEditor = function SimpleEditor(props) {
156 156
       value: value,
157 157
       onChange: onChange,
158 158
       controls: [],
159
-      FloatControls: {
160
-        appendInnderBar: appendInnderBar
159
+      FloatControls: function FloatControls() {
160
+        return appendInnderBar;
161 161
       }
162 162
     }, injectBraftEditorProps)), React__default.createElement("div", {
163 163
       style: toolBarContainerStyle

+ 1
- 1
lib/Editor/index.js.map
文件差异内容过多而无法显示
查看文件


+ 1
- 1
src/components/Editor/ImgTxtEditor/SimpleEditor.tsx 查看文件

@@ -54,7 +54,7 @@ const SimpleEditor = (props: SimpleEditorProps) => {
54 54
           value={value}
55 55
           onChange={onChange}
56 56
           controls={[]}
57
-          FloatControls={{appendInnderBar}}
57
+          FloatControls={() => appendInnderBar}
58 58
           {...injectBraftEditorProps}
59 59
         />
60 60
         <div style={toolBarContainerStyle}>

+ 1
- 1
stats.html
文件差异内容过多而无法显示
查看文件