Sfoglia il codice sorgente

add: editor add blockStyleFn props;

Roxas 4 anni fa
parent
commit
abda3d6cce

+ 1
- 1
eslib/AllocWantedModal/index.d.ts Vedi 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
- 1
eslib/BraftEditor/index.d.ts Vedi File

@@ -8,6 +8,7 @@ interface BaseEditorProps {
8 8
     controls?: ControlType[];
9 9
     blockRenderMap?: any;
10 10
     blockRendererFn?: any;
11
+    blockStyleFn?: any;
11 12
     onDelete?: Function;
12 13
     onSave?: Function;
13 14
     onTab?: Function;
@@ -17,5 +18,5 @@ interface BaseEditorProps {
17 18
     placeholder?: string;
18 19
     converts?: any;
19 20
 }
20
-declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
21
+declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, blockStyleFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
21 22
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

+ 2
- 0
eslib/BraftEditor/index.js Vedi File

@@ -41,6 +41,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
41 41
       placeholder = _ref.placeholder,
42 42
       blockRenderMap = _ref.blockRenderMap,
43 43
       blockRendererFn = _ref.blockRendererFn,
44
+      blockStyleFn = _ref.blockStyleFn,
44 45
       onDelete = _ref.onDelete,
45 46
       onSave = _ref.onSave,
46 47
       onTab = _ref.onTab,
@@ -90,6 +91,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
90 91
   }, {
91 92
     blockRenderMap: blockRenderMap,
92 93
     blockRendererFn: blockRendererFn,
94
+    blockStyleFn: blockStyleFn,
93 95
     converts: converts,
94 96
     placeholder: placeholder,
95 97
     draftProps: draftProps,

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


+ 1
- 1
lib/AllocWantedModal/index.d.ts Vedi 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
- 1
lib/BraftEditor/index.d.ts Vedi File

@@ -8,6 +8,7 @@ interface BaseEditorProps {
8 8
     controls?: ControlType[];
9 9
     blockRenderMap?: any;
10 10
     blockRendererFn?: any;
11
+    blockStyleFn?: any;
11 12
     onDelete?: Function;
12 13
     onSave?: Function;
13 14
     onTab?: Function;
@@ -17,5 +18,5 @@ interface BaseEditorProps {
17 18
     placeholder?: string;
18 19
     converts?: any;
19 20
 }
20
-declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
21
+declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, draftProps, placeholder, blockRenderMap, blockRendererFn, blockStyleFn, onDelete, onSave, onTab, onFocus, onBlur, converts, }: BaseEditorProps) => JSX.Element;
21 22
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

+ 2
- 0
lib/BraftEditor/index.js Vedi File

@@ -49,6 +49,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
49 49
       placeholder = _ref.placeholder,
50 50
       blockRenderMap = _ref.blockRenderMap,
51 51
       blockRendererFn = _ref.blockRendererFn,
52
+      blockStyleFn = _ref.blockStyleFn,
52 53
       onDelete = _ref.onDelete,
53 54
       onSave = _ref.onSave,
54 55
       onTab = _ref.onTab,
@@ -98,6 +99,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
98 99
   }, {
99 100
     blockRenderMap: blockRenderMap,
100 101
     blockRendererFn: blockRendererFn,
102
+    blockStyleFn: blockStyleFn,
101 103
     converts: converts,
102 104
     placeholder: placeholder,
103 105
     draftProps: draftProps,

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


+ 3
- 0
src/components/Editor/BraftEditor/index.tsx Vedi File

@@ -44,6 +44,7 @@ export interface BaseEditorProps {
44 44
   
45 45
   blockRenderMap?: any;
46 46
   blockRendererFn?: any;
47
+  blockStyleFn?: any;
47 48
   onDelete?: Function;
48 49
   onSave?: Function;
49 50
   onTab?: Function;
@@ -63,6 +64,7 @@ export const BarftEditorPage = ({
63 64
   placeholder,
64 65
   blockRenderMap,
65 66
   blockRendererFn,
67
+  blockStyleFn,
66 68
   onDelete,
67 69
   onSave,
68 70
   onTab,
@@ -115,6 +117,7 @@ export const BarftEditorPage = ({
115 117
         {...{
116 118
           blockRenderMap,
117 119
           blockRendererFn,
120
+          blockStyleFn,
118 121
           converts,
119 122
           placeholder,
120 123
           draftProps,

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