@tmagic/form 1.2.6 → 1.2.8

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.
@@ -1,14 +1,18 @@
1
1
  import { GroupListConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  model: any;
4
+ lastValues?: any;
5
+ isCompare?: boolean | undefined;
4
6
  config: GroupListConfig;
5
7
  name: string;
6
8
  labelWidth?: string | undefined;
7
9
  prop?: string | undefined;
8
10
  size?: string | undefined;
9
11
  disabled?: boolean | undefined;
10
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount")[], "change" | "addDiffCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
13
  model: any;
14
+ lastValues?: any;
15
+ isCompare?: boolean | undefined;
12
16
  config: GroupListConfig;
13
17
  name: string;
14
18
  labelWidth?: string | undefined;
@@ -17,6 +21,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
17
21
  disabled?: boolean | undefined;
18
22
  }>>> & {
19
23
  onChange?: ((...args: any[]) => any) | undefined;
24
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
20
25
  }, {}>;
21
26
  export default _default;
22
27
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,6 +1,8 @@
1
1
  import { GroupListConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  model: any;
4
+ lastValues: any;
5
+ isCompare?: boolean | undefined;
4
6
  groupModel: any[];
5
7
  config: GroupListConfig;
6
8
  labelWidth?: string | undefined;
@@ -8,8 +10,10 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
8
10
  size?: string | undefined;
9
11
  index: number;
10
12
  disabled?: boolean | undefined;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "swap-item" | "remove-item")[], "change" | "swap-item" | "remove-item", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount" | "swap-item" | "remove-item")[], "change" | "addDiffCount" | "swap-item" | "remove-item", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
14
  model: any;
15
+ lastValues: any;
16
+ isCompare?: boolean | undefined;
13
17
  groupModel: any[];
14
18
  config: GroupListConfig;
15
19
  labelWidth?: string | undefined;
@@ -19,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
19
23
  disabled?: boolean | undefined;
20
24
  }>>> & {
21
25
  onChange?: ((...args: any[]) => any) | undefined;
26
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
22
27
  "onSwap-item"?: ((...args: any[]) => any) | undefined;
23
28
  "onRemove-item"?: ((...args: any[]) => any) | undefined;
24
29
  }, {}>;
@@ -5,6 +5,8 @@ declare const _default: {
5
5
  $data: {};
6
6
  $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  model: any;
8
+ lastValues?: any;
9
+ isCompare?: boolean | undefined;
8
10
  config: PanelConfig;
9
11
  name: string;
10
12
  labelWidth?: string | undefined;
@@ -13,6 +15,7 @@ declare const _default: {
13
15
  disabled?: boolean | undefined;
14
16
  }>>> & {
15
17
  onChange?: ((...args: any[]) => any) | undefined;
18
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
16
19
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
17
20
  $attrs: {
18
21
  [x: string]: unknown;
@@ -25,10 +28,12 @@ declare const _default: {
25
28
  }>;
26
29
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
27
30
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
28
- $emit: (event: "change", ...args: any[]) => void;
31
+ $emit: (event: "change" | "addDiffCount", ...args: any[]) => void;
29
32
  $el: any;
30
33
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
31
34
  model: any;
35
+ lastValues?: any;
36
+ isCompare?: boolean | undefined;
32
37
  config: PanelConfig;
33
38
  name: string;
34
39
  labelWidth?: string | undefined;
@@ -37,7 +42,8 @@ declare const _default: {
37
42
  disabled?: boolean | undefined;
38
43
  }>>> & {
39
44
  onChange?: ((...args: any[]) => any) | undefined;
40
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {}> & {
45
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
46
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount")[], string, {}> & {
41
47
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
42
48
  created?: ((() => void) | (() => void)[]) | undefined;
43
49
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -59,6 +65,8 @@ declare const _default: {
59
65
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
60
66
  } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
61
67
  model: any;
68
+ lastValues?: any;
69
+ isCompare?: boolean | undefined;
62
70
  config: PanelConfig;
63
71
  name: string;
64
72
  labelWidth?: string | undefined;
@@ -67,12 +75,15 @@ declare const _default: {
67
75
  disabled?: boolean | undefined;
68
76
  }>>> & {
69
77
  onChange?: ((...args: any[]) => any) | undefined;
78
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
70
79
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
71
80
  __isFragment?: undefined;
72
81
  __isTeleport?: undefined;
73
82
  __isSuspense?: undefined;
74
83
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
75
84
  model: any;
85
+ lastValues?: any;
86
+ isCompare?: boolean | undefined;
76
87
  config: PanelConfig;
77
88
  name: string;
78
89
  labelWidth?: string | undefined;
@@ -81,7 +92,8 @@ declare const _default: {
81
92
  disabled?: boolean | undefined;
82
93
  }>>> & {
83
94
  onChange?: ((...args: any[]) => any) | undefined;
84
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
95
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
96
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount")[], "change" | "addDiffCount", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
85
97
  $slots: {
86
98
  default: (_: {}) => any;
87
99
  };
@@ -1,6 +1,8 @@
1
1
  import { RowConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  model: any;
4
+ lastValues?: any;
5
+ isCompare?: boolean | undefined;
4
6
  config: RowConfig;
5
7
  name: string;
6
8
  labelWidth?: string | undefined;
@@ -8,8 +10,10 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
8
10
  size?: string | undefined;
9
11
  expandMore?: boolean | undefined;
10
12
  disabled?: boolean | undefined;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount")[], "change" | "addDiffCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
14
  model: any;
15
+ lastValues?: any;
16
+ isCompare?: boolean | undefined;
13
17
  config: RowConfig;
14
18
  name: string;
15
19
  labelWidth?: string | undefined;
@@ -19,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
19
23
  disabled?: boolean | undefined;
20
24
  }>>> & {
21
25
  onChange?: ((...args: any[]) => any) | undefined;
26
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
22
27
  }, {}>;
23
28
  export default _default;
24
29
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,6 +1,8 @@
1
1
  import { StepConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  model: any;
4
+ lastValues?: any;
5
+ isCompare?: boolean | undefined;
4
6
  config: StepConfig;
5
7
  stepActive?: number | undefined;
6
8
  labelWidth?: string | undefined;
@@ -8,8 +10,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
8
10
  disabled?: boolean | undefined;
9
11
  }>, {
10
12
  stepActive: number;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount")[], "change" | "addDiffCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  model: any;
15
+ lastValues?: any;
16
+ isCompare?: boolean | undefined;
13
17
  config: StepConfig;
14
18
  stepActive?: number | undefined;
15
19
  labelWidth?: string | undefined;
@@ -19,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
23
  stepActive: number;
20
24
  }>>> & {
21
25
  onChange?: ((...args: any[]) => any) | undefined;
26
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
22
27
  }, {
23
28
  stepActive: number;
24
29
  }>;
@@ -4,12 +4,16 @@ declare const _default: {
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
6
6
  $props: Partial<{
7
+ lastValues: any;
8
+ isCompare: boolean;
7
9
  enableToggleMode: boolean;
8
10
  prop: string;
9
11
  showIndex: boolean;
10
12
  sortKey: string;
11
13
  }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  model: any;
15
+ lastValues?: any;
16
+ isCompare?: boolean | undefined;
13
17
  config: TableConfig;
14
18
  name: string;
15
19
  prop?: string | undefined;
@@ -26,10 +30,13 @@ declare const _default: {
26
30
  sortKey: string;
27
31
  enableToggleMode: boolean;
28
32
  showIndex: boolean;
33
+ lastValues: () => {};
34
+ isCompare: boolean;
29
35
  }>>> & {
30
36
  onChange?: ((...args: any[]) => any) | undefined;
37
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
31
38
  onSelect?: ((...args: any[]) => any) | undefined;
32
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "enableToggleMode" | "prop" | "showIndex" | "sortKey">;
39
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "lastValues" | "isCompare" | "enableToggleMode" | "prop" | "showIndex" | "sortKey">;
33
40
  $attrs: {
34
41
  [x: string]: unknown;
35
42
  };
@@ -41,10 +48,12 @@ declare const _default: {
41
48
  }>;
42
49
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
43
50
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
44
- $emit: (event: "select" | "change", ...args: any[]) => void;
51
+ $emit: (event: "select" | "change" | "addDiffCount", ...args: any[]) => void;
45
52
  $el: any;
46
53
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
47
54
  model: any;
55
+ lastValues?: any;
56
+ isCompare?: boolean | undefined;
48
57
  config: TableConfig;
49
58
  name: string;
50
59
  prop?: string | undefined;
@@ -61,12 +70,17 @@ declare const _default: {
61
70
  sortKey: string;
62
71
  enableToggleMode: boolean;
63
72
  showIndex: boolean;
73
+ lastValues: () => {};
74
+ isCompare: boolean;
64
75
  }>>> & {
65
76
  onChange?: ((...args: any[]) => any) | undefined;
77
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
66
78
  onSelect?: ((...args: any[]) => any) | undefined;
67
79
  }, {
68
80
  toggleRowSelection: (row: any, selected: boolean) => void;
69
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], string, {
81
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "addDiffCount")[], string, {
82
+ lastValues: any;
83
+ isCompare: boolean;
70
84
  enableToggleMode: boolean;
71
85
  prop: string;
72
86
  showIndex: boolean;
@@ -93,6 +107,8 @@ declare const _default: {
93
107
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
94
108
  } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
95
109
  model: any;
110
+ lastValues?: any;
111
+ isCompare?: boolean | undefined;
96
112
  config: TableConfig;
97
113
  name: string;
98
114
  prop?: string | undefined;
@@ -109,8 +125,11 @@ declare const _default: {
109
125
  sortKey: string;
110
126
  enableToggleMode: boolean;
111
127
  showIndex: boolean;
128
+ lastValues: () => {};
129
+ isCompare: boolean;
112
130
  }>>> & {
113
131
  onChange?: ((...args: any[]) => any) | undefined;
132
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
114
133
  onSelect?: ((...args: any[]) => any) | undefined;
115
134
  } & import("vue").ShallowUnwrapRef<{
116
135
  toggleRowSelection: (row: any, selected: boolean) => void;
@@ -120,6 +139,8 @@ declare const _default: {
120
139
  __isSuspense?: undefined;
121
140
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
122
141
  model: any;
142
+ lastValues?: any;
143
+ isCompare?: boolean | undefined;
123
144
  config: TableConfig;
124
145
  name: string;
125
146
  prop?: string | undefined;
@@ -136,12 +157,17 @@ declare const _default: {
136
157
  sortKey: string;
137
158
  enableToggleMode: boolean;
138
159
  showIndex: boolean;
160
+ lastValues: () => {};
161
+ isCompare: boolean;
139
162
  }>>> & {
140
163
  onChange?: ((...args: any[]) => any) | undefined;
164
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
141
165
  onSelect?: ((...args: any[]) => any) | undefined;
142
166
  }, {
143
167
  toggleRowSelection: (row: any, selected: boolean) => void;
144
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", {
168
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "addDiffCount")[], "select" | "change" | "addDiffCount", {
169
+ lastValues: any;
170
+ isCompare: boolean;
145
171
  enableToggleMode: boolean;
146
172
  prop: string;
147
173
  showIndex: boolean;
@@ -1,6 +1,8 @@
1
1
  import { TabConfig } from '../schema';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  model: any;
4
+ lastValues?: any;
5
+ isCompare?: boolean | undefined;
4
6
  config: TabConfig;
5
7
  name: string;
6
8
  size?: string | undefined;
@@ -8,8 +10,13 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
8
10
  prop?: string | undefined;
9
11
  expandMore?: boolean | undefined;
10
12
  disabled?: boolean | undefined;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {
14
+ lastValues: () => {};
15
+ isCompare: boolean;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "addDiffCount")[], "change" | "addDiffCount", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
17
  model: any;
18
+ lastValues?: any;
19
+ isCompare?: boolean | undefined;
13
20
  config: TabConfig;
14
21
  name: string;
15
22
  size?: string | undefined;
@@ -17,9 +24,16 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
17
24
  prop?: string | undefined;
18
25
  expandMore?: boolean | undefined;
19
26
  disabled?: boolean | undefined;
27
+ }>, {
28
+ lastValues: () => {};
29
+ isCompare: boolean;
20
30
  }>>> & {
21
31
  onChange?: ((...args: any[]) => any) | undefined;
22
- }, {}>;
32
+ onAddDiffCount?: ((...args: any[]) => any) | undefined;
33
+ }, {
34
+ lastValues: any;
35
+ isCompare: boolean;
36
+ }>;
23
37
  export default _default;
24
38
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
39
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -30,3 +44,8 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
30
44
  required: true;
31
45
  };
32
46
  };
47
+ declare type __VLS_WithDefaults<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
49
+ default: D[K];
50
+ } : P[K];
51
+ };
package/types/schema.d.ts CHANGED
@@ -9,6 +9,8 @@ export declare type FormState = {
9
9
  config: FormConfig;
10
10
  popperClass?: string;
11
11
  initValues: FormValue;
12
+ lastValues: FormValue;
13
+ isCompare: boolean;
12
14
  values: FormValue;
13
15
  $emit: (event: string, ...args: any[]) => void;
14
16
  keyProp?: string;