@zyui/components 0.0.98 → 0.0.101
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.
- package/es/index.js +105 -107
- package/es/index.mjs +56749 -59003
- package/es/src/components/ProEditor/js/config.d.ts +1 -0
- package/es/src/components/ProEditor/plugins/helper.d.ts +48 -0
- package/es/src/components/ProEditor/plugins/importword.d.ts +1 -0
- package/es/style.css +1 -1
- package/lib/src/components/ProEditor/js/config.d.ts +1 -0
- package/lib/src/components/ProEditor/plugins/helper.d.ts +48 -0
- package/lib/src/components/ProEditor/plugins/importword.d.ts +1 -0
- package/package.json +2 -1
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|