ソースを参照

dev: [BarftEditorPage]add props draftProps

Roxas 4 年 前
コミット
aa86976aef

+ 2
- 1
eslib/BraftEditor/index.d.ts ファイルの表示

@@ -9,8 +9,9 @@ interface BaseEditorProps {
9 9
     FloatControls?: any;
10 10
     blockRenderMap?: any;
11 11
     blockRendererFn?: any;
12
+    draftProps?: any;
12 13
     placeholder?: string;
13 14
     converts?: any;
14 15
 }
15
-declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, FloatControls, placeholder, blockRenderMap, blockRendererFn, converts, }: BaseEditorProps) => JSX.Element;
16
+declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, FloatControls, draftProps, placeholder, blockRenderMap, blockRendererFn, converts, }: BaseEditorProps) => JSX.Element;
16 17
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

+ 3
- 1
eslib/BraftEditor/index.js ファイルの表示

@@ -41,6 +41,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
41 41
       _ref$contentStyle = _ref.contentStyle,
42 42
       contentStyle = _ref$contentStyle === void 0 ? {} : _ref$contentStyle,
43 43
       FloatControls = _ref.FloatControls,
44
+      draftProps = _ref.draftProps,
44 45
       placeholder = _ref.placeholder,
45 46
       blockRenderMap = _ref.blockRenderMap,
46 47
       blockRendererFn = _ref.blockRendererFn,
@@ -90,7 +91,8 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
90 91
     blockRenderMap: blockRenderMap,
91 92
     blockRendererFn: blockRendererFn,
92 93
     converts: converts,
93
-    placeholder: placeholder
94
+    placeholder: placeholder,
95
+    draftProps: draftProps
94 96
   })), options.showFloatControls ? React.createElement("div", {
95 97
     className: classnames(styles.floatControls)
96 98
   }, React.createElement(FloatControls, {

+ 1
- 1
eslib/BraftEditor/index.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 2
- 1
lib/BraftEditor/index.d.ts ファイルの表示

@@ -9,8 +9,9 @@ interface BaseEditorProps {
9 9
     FloatControls?: any;
10 10
     blockRenderMap?: any;
11 11
     blockRendererFn?: any;
12
+    draftProps?: any;
12 13
     placeholder?: string;
13 14
     converts?: any;
14 15
 }
15
-declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, FloatControls, placeholder, blockRenderMap, blockRendererFn, converts, }: BaseEditorProps) => JSX.Element;
16
+declare const BarftEditorPage: ({ value, onChange, controls, contentStyle, FloatControls, draftProps, placeholder, blockRenderMap, blockRendererFn, converts, }: BaseEditorProps) => JSX.Element;
16 17
 export { BarftEditorPage as default, BarftEditorPage, BaseEditorProps };

+ 3
- 1
lib/BraftEditor/index.js ファイルの表示

@@ -49,6 +49,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
49 49
       _ref$contentStyle = _ref.contentStyle,
50 50
       contentStyle = _ref$contentStyle === void 0 ? {} : _ref$contentStyle,
51 51
       FloatControls = _ref.FloatControls,
52
+      draftProps = _ref.draftProps,
52 53
       placeholder = _ref.placeholder,
53 54
       blockRenderMap = _ref.blockRenderMap,
54 55
       blockRendererFn = _ref.blockRendererFn,
@@ -98,7 +99,8 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
98 99
     blockRenderMap: blockRenderMap,
99 100
     blockRendererFn: blockRendererFn,
100 101
     converts: converts,
101
-    placeholder: placeholder
102
+    placeholder: placeholder,
103
+    draftProps: draftProps
102 104
   })), options.showFloatControls ? React__default.createElement("div", {
103 105
     className: index.classnames(styles.floatControls)
104 106
   }, React__default.createElement(FloatControls, {

+ 1
- 1
lib/BraftEditor/index.js.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 3
- 0
src/components/Editor/BraftEditor/index.tsx ファイルの表示

@@ -45,6 +45,7 @@ export interface BaseEditorProps {
45 45
   
46 46
   blockRenderMap?: any;
47 47
   blockRendererFn?: any;
48
+  draftProps?: any;
48 49
   placeholder?: string;
49 50
   converts?: any;
50 51
 }
@@ -55,6 +56,7 @@ export const BarftEditorPage = ({
55 56
   controls,
56 57
   contentStyle = {},
57 58
   FloatControls,
59
+  draftProps,
58 60
   placeholder,
59 61
   blockRenderMap,
60 62
   blockRendererFn,
@@ -109,6 +111,7 @@ export const BarftEditorPage = ({
109 111
           blockRendererFn,
110 112
           converts,
111 113
           placeholder,
114
+          draftProps,
112 115
         }}
113 116
       />
114 117
       {options.showFloatControls ? (

+ 1
- 2
stats.html
ファイル差分が大きすぎるため省略します
ファイルの表示