File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,13 @@ export default class ImportDocsComponent extends React.Component {
74
74
### 三、参数列表
75
75
76
76
** file**
77
+
77
78
| 参数| 类型| 说明| 是否必传| 默认值| 返回值|
78
79
| ---| ---| ---| ---| ---| ---|
79
80
| ` file ` | ` File ` | word 文件数据(即 ` file ` 值)| ** 必传** | 无| 无|
80
81
81
82
** config**
83
+
82
84
| 参数| 类型| 说明| 是否必传| 默认值| 返回值|
83
85
| ---| ---| ---| ---| ---| ---|
84
86
| ` convertType ` | ` String ` | word 文件数据(即 ` file ` 值)| 非必传| ` html ` | 无|
@@ -87,12 +89,14 @@ export default class ImportDocsComponent extends React.Component {
87
89
| ` mammothOption ` | ` Object ` | 用于设置 mammoth 自带的 options。| 非必传| 无| 无|
88
90
89
91
** config.wordTransform**
92
+
90
93
| 参数| 类型| 说明| 是否必传| 默认值| 返回值|
91
94
| ---| ---| ---| ---| ---| ---|
92
95
| ` transformSuccessFn ` | ` Function ` | 设置 word 文件转换成功后的回调,一般可能是弹框提示,插入编辑区等操作。| 非必传| 无| ` Function({title, content}) ` |
93
96
| ` transformErrorFn ` | ` Function ` | 设置 word 文件转换失败后的回调,一般可能是弹框提示等操作。| 非必传| 无| ` Function({msg}) ` |
94
97
95
98
** config.imageTransform**
99
+
96
100
| 参数| 类型| 说明| 是否必传| 默认值| 返回值|
97
101
| ---| ---| ---| ---| ---| ---|
98
102
| ` imageUrlTransformFn ` | ` Function ` | 设置图片上传成功后数据格式。| ** 必传** | 无| ` Function(): Object ` ,如 ` {url: 'www.demo.com'} ` |
You can’t perform that action at this time.
0 commit comments