Browse Source

add: editor add blockStyleFn props;

Roxas 4 years ago
parent
commit
abda3d6cce

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

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

8
     controls?: ControlType[];
8
     controls?: ControlType[];
9
     blockRenderMap?: any;
9
     blockRenderMap?: any;
10
     blockRendererFn?: any;
10
     blockRendererFn?: any;
11
+    blockStyleFn?: any;
11
     onDelete?: Function;
12
     onDelete?: Function;
12
     onSave?: Function;
13
     onSave?: Function;
13
     onTab?: Function;
14
     onTab?: Function;
17
     placeholder?: string;
18
     placeholder?: string;
18
     converts?: any;
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
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };
22
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

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

41
       placeholder = _ref.placeholder,
41
       placeholder = _ref.placeholder,
42
       blockRenderMap = _ref.blockRenderMap,
42
       blockRenderMap = _ref.blockRenderMap,
43
       blockRendererFn = _ref.blockRendererFn,
43
       blockRendererFn = _ref.blockRendererFn,
44
+      blockStyleFn = _ref.blockStyleFn,
44
       onDelete = _ref.onDelete,
45
       onDelete = _ref.onDelete,
45
       onSave = _ref.onSave,
46
       onSave = _ref.onSave,
46
       onTab = _ref.onTab,
47
       onTab = _ref.onTab,
90
   }, {
91
   }, {
91
     blockRenderMap: blockRenderMap,
92
     blockRenderMap: blockRenderMap,
92
     blockRendererFn: blockRendererFn,
93
     blockRendererFn: blockRendererFn,
94
+    blockStyleFn: blockStyleFn,
93
     converts: converts,
95
     converts: converts,
94
     placeholder: placeholder,
96
     placeholder: placeholder,
95
     draftProps: draftProps,
97
     draftProps: draftProps,

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


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

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

8
     controls?: ControlType[];
8
     controls?: ControlType[];
9
     blockRenderMap?: any;
9
     blockRenderMap?: any;
10
     blockRendererFn?: any;
10
     blockRendererFn?: any;
11
+    blockStyleFn?: any;
11
     onDelete?: Function;
12
     onDelete?: Function;
12
     onSave?: Function;
13
     onSave?: Function;
13
     onTab?: Function;
14
     onTab?: Function;
17
     placeholder?: string;
18
     placeholder?: string;
18
     converts?: any;
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
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };
22
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

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

49
       placeholder = _ref.placeholder,
49
       placeholder = _ref.placeholder,
50
       blockRenderMap = _ref.blockRenderMap,
50
       blockRenderMap = _ref.blockRenderMap,
51
       blockRendererFn = _ref.blockRendererFn,
51
       blockRendererFn = _ref.blockRendererFn,
52
+      blockStyleFn = _ref.blockStyleFn,
52
       onDelete = _ref.onDelete,
53
       onDelete = _ref.onDelete,
53
       onSave = _ref.onSave,
54
       onSave = _ref.onSave,
54
       onTab = _ref.onTab,
55
       onTab = _ref.onTab,
98
   }, {
99
   }, {
99
     blockRenderMap: blockRenderMap,
100
     blockRenderMap: blockRenderMap,
100
     blockRendererFn: blockRendererFn,
101
     blockRendererFn: blockRendererFn,
102
+    blockStyleFn: blockStyleFn,
101
     converts: converts,
103
     converts: converts,
102
     placeholder: placeholder,
104
     placeholder: placeholder,
103
     draftProps: draftProps,
105
     draftProps: draftProps,

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


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

44
   
44
   
45
   blockRenderMap?: any;
45
   blockRenderMap?: any;
46
   blockRendererFn?: any;
46
   blockRendererFn?: any;
47
+  blockStyleFn?: any;
47
   onDelete?: Function;
48
   onDelete?: Function;
48
   onSave?: Function;
49
   onSave?: Function;
49
   onTab?: Function;
50
   onTab?: Function;
63
   placeholder,
64
   placeholder,
64
   blockRenderMap,
65
   blockRenderMap,
65
   blockRendererFn,
66
   blockRendererFn,
67
+  blockStyleFn,
66
   onDelete,
68
   onDelete,
67
   onSave,
69
   onSave,
68
   onTab,
70
   onTab,
115
         {...{
117
         {...{
116
           blockRenderMap,
118
           blockRenderMap,
117
           blockRendererFn,
119
           blockRendererFn,
120
+          blockStyleFn,
118
           converts,
121
           converts,
119
           placeholder,
122
           placeholder,
120
           draftProps,
123
           draftProps,

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