@zyui/components 1.0.49 → 1.0.51

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.
@@ -20,6 +20,15 @@ export declare const processBase64Images: (content: string) => Promise<string>;
20
20
  * @param doc
21
21
  */
22
22
  export declare const removeBorderlessTds: (doc: Document) => void;
23
+ /**
24
+ * 移除 table 中仅包含单个 &nbsp;( )的 td 单元格内的 &nbsp; 内容
25
+ * 如果单元格包含多个 &nbsp;(有意留空/缩进)则保留,只清除"单个占位"的情况
26
+ * 保持单元格结构(<p>/<span> 等包裹标签)不变,只清除 &nbsp; 文本
27
+ * 例:Word 导出的空单元格 <td><p><span>&nbsp;</span></p></td>
28
+ * → <td><p><span></span></p></td>
29
+ * @param doc
30
+ */
31
+ export declare const processRemoveTdnbsp: (doc: Document) => void;
23
32
  /**
24
33
  * 设置table所有的最大宽度为100%
25
34
  * @param doc
@@ -34,6 +43,8 @@ export declare const processTableWidth: (doc: Document) => void;
34
43
  export declare const processTableLayout: (doc: Document) => void;
35
44
  /**
36
45
  * td的宽度按照table的宽度tr的宽度设置为百分比
46
+ * 核心:优先查找没有合并单元格(colspan/rowspan)的行,且该行每个单元格都有 width 定义
47
+ * 以此作为列宽基准,精确处理 Word 导出表格第一行为标题合并单元格的场景
37
48
  * @param doc
38
49
  */
39
50
  export declare const processTdWidth: (doc: Document) => void;
@@ -1,6 +1,10 @@
1
1
  import { ModelValue } from '../type';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ disabled: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
4
8
  displayType: {
5
9
  type: StringConstructor;
6
10
  default: string;
@@ -16,6 +20,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
20
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
21
  "update:value": (value: ModelValue) => void;
18
22
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
19
27
  displayType: {
20
28
  type: StringConstructor;
21
29
  default: string;
@@ -32,6 +40,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
40
  "onUpdate:value"?: ((value: ModelValue) => any) | undefined;
33
41
  }>, {
34
42
  value: Record<string, any>;
43
+ disabled: boolean;
35
44
  queryParams: Record<string, any>;
36
45
  displayType: string;
37
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,16 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: import('vue').PropType<any[]>;
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
3
7
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
8
  modelValue: import('vue').PropType<any[]>;
5
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ disabled: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ disabled: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
16
  export default _default;
@@ -20,6 +20,15 @@ export declare const processBase64Images: (content: string) => Promise<string>;
20
20
  * @param doc
21
21
  */
22
22
  export declare const removeBorderlessTds: (doc: Document) => void;
23
+ /**
24
+ * 移除 table 中仅包含单个 &nbsp;( )的 td 单元格内的 &nbsp; 内容
25
+ * 如果单元格包含多个 &nbsp;(有意留空/缩进)则保留,只清除"单个占位"的情况
26
+ * 保持单元格结构(<p>/<span> 等包裹标签)不变,只清除 &nbsp; 文本
27
+ * 例:Word 导出的空单元格 <td><p><span>&nbsp;</span></p></td>
28
+ * → <td><p><span></span></p></td>
29
+ * @param doc
30
+ */
31
+ export declare const processRemoveTdnbsp: (doc: Document) => void;
23
32
  /**
24
33
  * 设置table所有的最大宽度为100%
25
34
  * @param doc
@@ -34,6 +43,8 @@ export declare const processTableWidth: (doc: Document) => void;
34
43
  export declare const processTableLayout: (doc: Document) => void;
35
44
  /**
36
45
  * td的宽度按照table的宽度tr的宽度设置为百分比
46
+ * 核心:优先查找没有合并单元格(colspan/rowspan)的行,且该行每个单元格都有 width 定义
47
+ * 以此作为列宽基准,精确处理 Word 导出表格第一行为标题合并单元格的场景
37
48
  * @param doc
38
49
  */
39
50
  export declare const processTdWidth: (doc: Document) => void;
@@ -1,6 +1,10 @@
1
1
  import { ModelValue } from '../type';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ disabled: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
4
8
  displayType: {
5
9
  type: StringConstructor;
6
10
  default: string;
@@ -16,6 +20,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
16
20
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
21
  "update:value": (value: ModelValue) => void;
18
22
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
19
27
  displayType: {
20
28
  type: StringConstructor;
21
29
  default: string;
@@ -32,6 +40,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
40
  "onUpdate:value"?: ((value: ModelValue) => any) | undefined;
33
41
  }>, {
34
42
  value: Record<string, any>;
43
+ disabled: boolean;
35
44
  queryParams: Record<string, any>;
36
45
  displayType: string;
37
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,16 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: import('vue').PropType<any[]>;
3
+ disabled: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
3
7
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
8
  modelValue: import('vue').PropType<any[]>;
5
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
+ disabled: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ disabled: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
16
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",