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.
Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/index.d.ts +2 -0
  3. 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
@@ -9,4 +9,6 @@ export default function handleExportWord({
9
9
  timeOut: number,
10
10
  callback: Function,
11
11
  options: Object,
12
+ defultImg: string,
13
+ className: string,
12
14
  }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xh-htmlword",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "description": "用于html页转word文档的工具",
6
6
  "files": [