Przeglądaj źródła

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

Roxas 5 lat temu
rodzic
commit
ab758232bc

+ 1
- 1
eslib/AllocWantedModal/index.d.ts Wyświetl plik

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

+ 2
- 2
eslib/Editor/index.js Wyświetl plik

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

+ 1
- 1
eslib/Editor/index.js.map
Plik diff jest za duży
Wyświetl plik


+ 1
- 1
lib/AllocWantedModal/index.d.ts Wyświetl plik

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

+ 2
- 2
lib/Editor/index.js Wyświetl plik

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

+ 1
- 1
lib/Editor/index.js.map
Plik diff jest za duży
Wyświetl plik


+ 1
- 0
src/components/Editor/ImgTxtEditor/SimpleEditor.tsx Wyświetl plik

37
             editorState={editorState}
37
             editorState={editorState}
38
             setEditorState={setEditorState}
38
             setEditorState={setEditorState}
39
             toolList={toolList}
39
             toolList={toolList}
40
+            {...injectControlsToolBar}
40
           />)
41
           />)
41
         }
42
         }
42
       />
43
       />

+ 1
- 1
stats.html
Plik diff jest za duży
Wyświetl plik