Skip to content

Commit 0de0d8f

Browse files
committed
feat: 更新README
1 parent d8ca686 commit 0de0d8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ export default class ImportDocsComponent extends React.Component {
7474
### 三、参数列表
7575

7676
**file**
77+
7778
|参数|类型|说明|是否必传|默认值|返回值|
7879
|---|---|---|---|---|---|
7980
|`file`|`File`|word 文件数据(即 `file` 值)|**必传**|||
8081

8182
**config**
83+
8284
|参数|类型|说明|是否必传|默认值|返回值|
8385
|---|---|---|---|---|---|
8486
|`convertType`|`String`|word 文件数据(即 `file` 值)|非必传|`html`||
@@ -87,12 +89,14 @@ export default class ImportDocsComponent extends React.Component {
8789
|`mammothOption`|` Object`|用于设置 mammoth 自带的 options。|非必传|||
8890

8991
**config.wordTransform**
92+
9093
|参数|类型|说明|是否必传|默认值|返回值|
9194
|---|---|---|---|---|---|
9295
|`transformSuccessFn`|`Function`|设置 word 文件转换成功后的回调,一般可能是弹框提示,插入编辑区等操作。|非必传||`Function({title, content})`|
9396
|`transformErrorFn`|`Function`|设置 word 文件转换失败后的回调,一般可能是弹框提示等操作。|非必传||`Function({msg})`|
9497

9598
**config.imageTransform**
99+
96100
|参数|类型|说明|是否必传|默认值|返回值|
97101
|---|---|---|---|---|---|
98102
|`imageUrlTransformFn`|`Function`|设置图片上传成功后数据格式。|**必传**||`Function(): Object`,如 `{url: 'www.demo.com'}`|

0 commit comments

Comments
 (0)