@zyui/components 0.0.137 → 0.0.139

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.
@@ -50,6 +50,19 @@ export declare function findMinMaxPoints(points: Point[]): {
50
50
  /**nodes变为text缩写 */
51
51
  export declare const abbrNodes2TextNode: (nodes: NodeItem[], allNodes: NodeItem[]) => any[];
52
52
  export declare const tableCellText: (item: any) => string;
53
+ /**
54
+ * 获取表格单元格坐标(如 A0、B1)
55
+ * 传入节点为 TD 元素时,返回列字母 + 行索引;否则返回空字符串。
56
+ */
57
+ export declare const getTdCoordinate: (node: NodeItem) => string;
58
+ /**
59
+ * 计算非 TD 节点的索引(subNodeSort,从 0 开始)。
60
+ * - 若 node 已有有效索引(>=0),直接返回。
61
+ * - 否则在 nodes 中取所有非 TD 节点的索引:
62
+ * - 若索引从 0 起连续,则返回最大值 + 1;
63
+ * - 若存在缺口,则返回从 0 开始的第一个缺失的索引。
64
+ */
65
+ export declare const getNonTdNodeIndex: (nodes: NodeItem[], node: NodeItem) => number;
53
66
  export declare const abbrNodes2Text: (nodes: NodeItem[], allNodes: NodeItem[]) => string;
54
67
  /**
55
68
  * 判断是否是uuid
@@ -15,6 +15,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
15
15
  type: ArrayConstructor;
16
16
  default: () => string[];
17
17
  };
18
+ hasDraft: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
18
22
  }>, {
19
23
  show: (options: {
20
24
  data: any;
@@ -37,10 +41,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
37
41
  type: ArrayConstructor;
38
42
  default: () => string[];
39
43
  };
44
+ hasDraft: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
40
48
  }>> & Readonly<{}>, {
41
49
  disabled: boolean;
42
50
  title: string;
43
51
  multiple: boolean;
44
52
  optionalTypes: unknown[];
53
+ hasDraft: boolean;
45
54
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
46
55
  export default _default;
@@ -3,5 +3,9 @@ export declare const useDataDetailByValue: (value: any) => {
3
3
  roleList: import('vue').ComputedRef<any[]>;
4
4
  groupList: import('vue').ComputedRef<any[]>;
5
5
  groupRolesList: import('vue').ComputedRef<any[]>;
6
+ draftTargetList: import('vue').ComputedRef<{
7
+ label: string;
8
+ value: string;
9
+ }[]>;
6
10
  items: import('vue').ComputedRef<any[]>;
7
11
  };
@@ -9,6 +9,10 @@ declare function __VLS_template(): {
9
9
  roleList: import('vue').ComputedRef<any[]>;
10
10
  groupList: import('vue').ComputedRef<any[]>;
11
11
  groupRolesList: import('vue').ComputedRef<any[]>;
12
+ draftTargetList: import('vue').ComputedRef<{
13
+ label: string;
14
+ value: string;
15
+ }[]>;
12
16
  items: import('vue').ComputedRef<any[]>;
13
17
  };
14
18
  }): any;
@@ -39,6 +43,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
39
43
  type: ArrayConstructor;
40
44
  default: () => string[];
41
45
  };
46
+ hasDraft: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
42
50
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
51
  ok: (value: ModelValue | undefined) => void;
44
52
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -67,6 +75,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
67
75
  type: ArrayConstructor;
68
76
  default: () => string[];
69
77
  };
78
+ hasDraft: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
70
82
  }>> & Readonly<{
71
83
  onOk?: ((value: ModelValue | undefined) => any) | undefined;
72
84
  }>, {
@@ -76,6 +88,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
76
88
  displayMaxLength: number;
77
89
  displayType: string;
78
90
  optionalTypes: unknown[];
91
+ hasDraft: boolean;
79
92
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
80
93
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
81
94
  export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: import('vue').PropType<any[]>;
3
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<any[]>;
5
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const draftTargetData: {
2
+ label: string;
3
+ value: string;
4
+ }[];
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: import('vue').PropType<any[]>;
3
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
4
+ modelValue: import('vue').PropType<any[]>;
5
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -13,6 +13,6 @@ export type ModelValue = {
13
13
  roleId: number;
14
14
  groupId: number;
15
15
  }[];
16
- draftTarget: number[];
16
+ draftTarget: any[];
17
17
  [key: string]: any;
18
18
  };