xh-htmlword 1.1.5 → 1.1.7

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 +1 -1
  2. package/index.d.ts +1 -1
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -291,7 +291,7 @@ const handleExport = () => {
291
291
 
292
292
  ## 注意事项
293
293
 
294
- html 模版需要全局使用行内样式,否则生成的 word 文档样式不生效,img 标签可以使用 width/height 属性设置宽高
294
+ html 模版需要全局使用行内样式,否则生成的 word 文档样式不生效,img 标签可以使用 width/height 属性设置宽高,建议全局使用 pt 作为尺寸单位
295
295
  绝大部分 css3 样式无法生效,建议直接使用原生 table 标签编写
296
296
 
297
297
  ## 开源协议
package/index.d.ts CHANGED
@@ -20,7 +20,7 @@ interface IOptions {
20
20
  dom: string;
21
21
  fileName: string;
22
22
  timeOut?: number;
23
- callback?: Function;
23
+ callBack?: Function;
24
24
  options?: Object;
25
25
  defultImg?: string;
26
26
  className?: string;
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "xh-htmlword",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "description": "用于html页转word文档的工具",
6
6
  "files": [
7
7
  "dist",
8
8
  "index.d.ts"
9
9
  ],
10
- "main": "./dist/counter.umd.cjs",
11
- "module": "./dist/counter.js",
10
+ "main": "./dist/xh.umd.cjs",
11
+ "module": "./dist/xh.js",
12
12
  "types": "./index.d.ts",
13
13
  "exports": {
14
14
  "types": "./index.d.ts",
15
- "import": "./dist/counter.js",
16
- "require": "./dist/counter.umd.cjs"
15
+ "import": "./dist/xh.js",
16
+ "require": "./dist/xh.umd.cjs"
17
17
  },
18
18
  "scripts": {
19
19
  "dev": "vite --open",