xh-htmlword 1.0.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -18,6 +18,8 @@ import handleExportWord from "xh-htmlword";
|
|
18
18
|
// timeOut:设置导出图片加载 超时时间 默认值 5000 (5s)
|
19
19
|
// callBack:导出成功回调函数
|
20
20
|
// options:配置项 类型:object 例如可传 {left:1440,right:1440} 控制页边距
|
21
|
+
// defultImg: 错误或者超时图片 默认图片地址 类型:string
|
22
|
+
// className:当前组件的class属性名标识 类型:string 配置此项后可以在标签写入class样式
|
21
23
|
handleExportWord({
|
22
24
|
dom: ".export-box",
|
23
25
|
fileName: "cs",
|
@@ -25,6 +27,7 @@ handleExportWord({
|
|
25
27
|
callBack: () => {
|
26
28
|
console.log("导出成功");
|
27
29
|
},
|
30
|
+
className: "export-box",
|
28
31
|
});
|
29
32
|
```
|
30
33
|
|
package/index.d.ts
CHANGED