@zyui/components 0.0.98 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,5 +22,6 @@ export declare const init: {
22
22
  paste_data_images: boolean;
23
23
  object_resizing: boolean;
24
24
  pagesize: string;
25
+ toolbar_mode: string;
25
26
  images_upload_handler: (blobInfo: any) => Promise<unknown>;
26
27
  };
@@ -14,3 +14,51 @@ export declare const uploadBase64Image: (base64String: string) => Promise<string
14
14
  * @returns
15
15
  */
16
16
  export declare const processBase64Images: (content: string) => Promise<string>;
17
+ /**
18
+ * 移除所有width为0且border为none的td
19
+ * @param doc
20
+ */
21
+ export declare const removeBorderlessTds: (doc: Document) => void;
22
+ /**
23
+ * 设置table所有的最大宽度为100%
24
+ * @param doc
25
+ */
26
+ export declare const processTableWidth: (doc: Document) => void;
27
+ /**
28
+ * 给所有table添加table-layout: fixed
29
+ * 如果table有负的margin,就去掉该style
30
+ * 如果table没有width属性,添加width: 100%
31
+ * @param doc
32
+ */
33
+ export declare const processTableLayout: (doc: Document) => void;
34
+ /**
35
+ * td的宽度按照table的宽度tr的宽度设置为百分比
36
+ * @param doc
37
+ */
38
+ export declare const processTdWidth: (doc: Document) => void;
39
+ /**
40
+ * 处理table的边框
41
+ * @param doc
42
+ */
43
+ export declare const processTableBorder: (doc: Document) => void;
44
+ /**
45
+ * 处理合并单元格的边框
46
+ * @param doc
47
+ */
48
+ export declare const processMergedTableBorder: (doc: Document) => void;
49
+ /**
50
+ * 删除mso开头的style
51
+ * @param doc
52
+ */
53
+ export declare const processRemovMsoStyle: (doc: Document) => void;
54
+ /**
55
+ * 删除tab-stops style
56
+ * @param doc
57
+ */
58
+ export declare const processRemovTabStopsStyle: (doc: Document) => void;
59
+ /**
60
+ * 预处理Word内容
61
+ * @param content HTML内容
62
+ * @returns 处理后的HTML内容
63
+ */
64
+ export declare const preProcess: (content: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.98",
3
+ "version": "0.0.99",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -34,6 +34,7 @@
34
34
  "@vue-flow/core": "^1.42.5",
35
35
  "@vue-flow/minimap": "^1.5.3",
36
36
  "@vue-flow/node-resizer": "^1.4.0",
37
+ "mammoth": "^1.8.0",
37
38
  "mitt": "^3.0.1",
38
39
  "qs": "^6.14.0",
39
40
  "tinymce": "^7.7.2",