Browse Source

fix: SimpleEditor 的 inner模式下样式的编辑

Roxas 4 years ago
parent
commit
ab758232bc

+ 1
- 1
eslib/AllocWantedModal/index.d.ts View File

@@ -22,7 +22,7 @@ declare class AllocWantedModal extends React.Component<AllocWantedModalProps, Al
22 22
     ModalInputRef: RefObject<Input>;
23 23
     ModalContentRef: RefObject<any>;
24 24
     constructor(props: AllocWantedModalProps);
25
-    handleSendValueChange: (v: React.ReactText) => void;
25
+    handleSendValueChange: (v: string | number) => void;
26 26
     checkSendValue: () => boolean;
27 27
     handleCloseAction: () => void;
28 28
     handleShowAction: () => void;

+ 2
- 2
eslib/Editor/index.js View File

@@ -134,11 +134,11 @@ var SimpleEditor = function SimpleEditor(props) {
134 134
       FloatControls: function FloatControls(_ref) {
135 135
         var editorState = _ref.editorState,
136 136
             setEditorState = _ref.setEditorState;
137
-        return React.createElement(ControlsToolBar, {
137
+        return React.createElement(ControlsToolBar, Object.assign({
138 138
           editorState: editorState,
139 139
           setEditorState: setEditorState,
140 140
           toolList: toolList
141
-        });
141
+        }, injectControlsToolBar));
142 142
       }
143 143
     });
144 144
   }

+ 1
- 1
eslib/Editor/index.js.map
File diff suppressed because it is too large
View File


+ 1
- 1
lib/AllocWantedModal/index.d.ts View File

@@ -22,7 +22,7 @@ declare class AllocWantedModal extends React.Component<AllocWantedModalProps, Al
22 22
     ModalInputRef: RefObject<Input>;
23 23
     ModalContentRef: RefObject<any>;
24 24
     constructor(props: AllocWantedModalProps);
25
-    handleSendValueChange: (v: React.ReactText) => void;
25
+    handleSendValueChange: (v: string | number) => void;
26 26
     checkSendValue: () => boolean;
27 27
     handleCloseAction: () => void;
28 28
     handleShowAction: () => void;

+ 2
- 2
lib/Editor/index.js View File

@@ -140,11 +140,11 @@ var SimpleEditor = function SimpleEditor(props) {
140 140
       FloatControls: function FloatControls(_ref) {
141 141
         var editorState = _ref.editorState,
142 142
             setEditorState = _ref.setEditorState;
143
-        return React__default.createElement(ControlsToolBar, {
143
+        return React__default.createElement(ControlsToolBar, Object.assign({
144 144
           editorState: editorState,
145 145
           setEditorState: setEditorState,
146 146
           toolList: toolList
147
-        });
147
+        }, injectControlsToolBar));
148 148
       }
149 149
     });
150 150
   }

+ 1
- 1
lib/Editor/index.js.map
File diff suppressed because it is too large
View File


+ 1
- 0
src/components/Editor/ImgTxtEditor/SimpleEditor.tsx View File

@@ -37,6 +37,7 @@ const SimpleEditor = (props: SimpleEditorProps) => {
37 37
             editorState={editorState}
38 38
             setEditorState={setEditorState}
39 39
             toolList={toolList}
40
+            {...injectControlsToolBar}
40 41
           />)
41 42
         }
42 43
       />

+ 1
- 1
stats.html
File diff suppressed because it is too large
View File