xh-htmlword 1.1.5 → 1.1.8

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 +10 -10
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.8",
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",
@@ -21,7 +21,10 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "sass": "^1.75.0",
24
- "vite": "^5.0.10"
24
+ "vite": "^5.0.10",
25
+ "element-plus": "^2.7.0",
26
+ "vue": "^3.4.23",
27
+ "@vitejs/plugin-vue": "^5.0.4"
25
28
  },
26
29
  "keywords": [
27
30
  "word",
@@ -30,10 +33,7 @@
30
33
  "author": "xuhao",
31
34
  "license": "ISC",
32
35
  "dependencies": {
33
- "@vitejs/plugin-vue": "^5.0.4",
34
- "element-plus": "^2.7.0",
35
36
  "file-saver": "^2.0.5",
36
- "html2canvas": "^1.4.1",
37
- "vue": "^3.4.23"
37
+ "html2canvas": "^1.4.1"
38
38
  }
39
39
  }