@tmagic/form 1.4.14 → 1.4.16

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.
@@ -2,28 +2,28 @@ import { RowConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
3
  model: any;
4
4
  lastValues?: any;
5
- isCompare?: boolean | undefined;
5
+ isCompare?: boolean;
6
6
  config: RowConfig;
7
7
  name: string;
8
- labelWidth?: string | undefined;
9
- prop?: string | undefined;
10
- size?: string | undefined;
11
- expandMore?: boolean | undefined;
12
- disabled?: boolean | undefined;
8
+ labelWidth?: string;
9
+ prop?: string;
10
+ size?: string;
11
+ expandMore?: boolean;
12
+ disabled?: boolean;
13
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  change: (...args: any[]) => void;
15
15
  addDiffCount: (...args: any[]) => void;
16
16
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
17
17
  model: any;
18
18
  lastValues?: any;
19
- isCompare?: boolean | undefined;
19
+ isCompare?: boolean;
20
20
  config: RowConfig;
21
21
  name: string;
22
- labelWidth?: string | undefined;
23
- prop?: string | undefined;
24
- size?: string | undefined;
25
- expandMore?: boolean | undefined;
26
- disabled?: boolean | undefined;
22
+ labelWidth?: string;
23
+ prop?: string;
24
+ size?: string;
25
+ expandMore?: boolean;
26
+ disabled?: boolean;
27
27
  }>>> & {
28
28
  onChange?: ((...args: any[]) => any) | undefined;
29
29
  onAddDiffCount?: ((...args: any[]) => any) | undefined;
@@ -2,12 +2,12 @@ import { StepConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  model: any;
4
4
  lastValues?: any;
5
- isCompare?: boolean | undefined;
5
+ isCompare?: boolean;
6
6
  config: StepConfig;
7
- stepActive?: number | undefined;
8
- labelWidth?: string | undefined;
9
- size?: string | undefined;
10
- disabled?: boolean | undefined;
7
+ stepActive?: number;
8
+ labelWidth?: string;
9
+ size?: string;
10
+ disabled?: boolean;
11
11
  }>, {
12
12
  stepActive: number;
13
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -16,12 +16,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
16
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
17
17
  model: any;
18
18
  lastValues?: any;
19
- isCompare?: boolean | undefined;
19
+ isCompare?: boolean;
20
20
  config: StepConfig;
21
- stepActive?: number | undefined;
22
- labelWidth?: string | undefined;
23
- size?: string | undefined;
24
- disabled?: boolean | undefined;
21
+ stepActive?: number;
22
+ labelWidth?: string;
23
+ size?: string;
24
+ disabled?: boolean;
25
25
  }>, {
26
26
  stepActive: number;
27
27
  }>>> & {
@@ -1,19 +1,28 @@
1
1
  import { TableConfig } from '../schema';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ declare function __VLS_template(): {
3
+ operateCol?(_: {
4
+ scope: {
5
+ $index: any;
6
+ row: any;
7
+ };
8
+ }): any;
9
+ default?(_: {}): any;
10
+ };
11
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
12
  model: any;
4
13
  lastValues?: any;
5
- isCompare?: boolean | undefined;
14
+ isCompare?: boolean;
6
15
  config: TableConfig;
7
16
  name: string;
8
- prop?: string | undefined;
9
- labelWidth?: string | undefined;
10
- sort?: boolean | undefined;
11
- disabled?: boolean | undefined;
12
- sortKey?: string | undefined;
13
- text?: string | undefined;
14
- size?: string | undefined;
15
- enableToggleMode?: boolean | undefined;
16
- showIndex?: boolean | undefined;
17
+ prop?: string;
18
+ labelWidth?: string;
19
+ sort?: boolean;
20
+ disabled?: boolean;
21
+ sortKey?: string;
22
+ text?: string;
23
+ size?: string;
24
+ enableToggleMode?: boolean;
25
+ showIndex?: boolean;
17
26
  }>, {
18
27
  prop: string;
19
28
  sortKey: string;
@@ -30,18 +39,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
30
39
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
31
40
  model: any;
32
41
  lastValues?: any;
33
- isCompare?: boolean | undefined;
42
+ isCompare?: boolean;
34
43
  config: TableConfig;
35
44
  name: string;
36
- prop?: string | undefined;
37
- labelWidth?: string | undefined;
38
- sort?: boolean | undefined;
39
- disabled?: boolean | undefined;
40
- sortKey?: string | undefined;
41
- text?: string | undefined;
42
- size?: string | undefined;
43
- enableToggleMode?: boolean | undefined;
44
- showIndex?: boolean | undefined;
45
+ prop?: string;
46
+ labelWidth?: string;
47
+ sort?: boolean;
48
+ disabled?: boolean;
49
+ sortKey?: string;
50
+ text?: string;
51
+ size?: string;
52
+ enableToggleMode?: boolean;
53
+ showIndex?: boolean;
45
54
  }>, {
46
55
  prop: string;
47
56
  sortKey: string;
@@ -60,15 +69,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
60
69
  showIndex: boolean;
61
70
  prop: string;
62
71
  sortKey: string;
63
- }, {}>, {
64
- operateCol?(_: {
65
- scope: {
66
- $index: any;
67
- row: any;
68
- };
69
- }): any;
70
- default?(_: {}): any;
71
- }>;
72
+ }, {}>;
73
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
72
74
  export default _default;
73
75
  type __VLS_WithDefaults<P, D> = {
74
76
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -2,14 +2,14 @@ import { TabConfig } from '../schema';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
3
  model: any;
4
4
  lastValues?: any;
5
- isCompare?: boolean | undefined;
5
+ isCompare?: boolean;
6
6
  config: TabConfig;
7
7
  name: string;
8
- size?: string | undefined;
9
- labelWidth?: string | undefined;
10
- prop?: string | undefined;
11
- expandMore?: boolean | undefined;
12
- disabled?: boolean | undefined;
8
+ size?: string;
9
+ labelWidth?: string;
10
+ prop?: string;
11
+ expandMore?: boolean;
12
+ disabled?: boolean;
13
13
  }>, {
14
14
  lastValues: () => {};
15
15
  isCompare: boolean;
@@ -19,14 +19,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
19
19
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
20
20
  model: any;
21
21
  lastValues?: any;
22
- isCompare?: boolean | undefined;
22
+ isCompare?: boolean;
23
23
  config: TabConfig;
24
24
  name: string;
25
- size?: string | undefined;
26
- labelWidth?: string | undefined;
27
- prop?: string | undefined;
28
- expandMore?: boolean | undefined;
29
- disabled?: boolean | undefined;
25
+ size?: string;
26
+ labelWidth?: string;
27
+ prop?: string;
28
+ expandMore?: boolean;
29
+ disabled?: boolean;
30
30
  }>, {
31
31
  lastValues: () => {};
32
32
  isCompare: boolean;
@@ -2,7 +2,7 @@ import { FilterFunction, FormConfig, FormState, FormValue, Rule, TabPaneConfig }
2
2
  export declare const createValues: (mForm: FormState | undefined, config?: FormConfig | TabPaneConfig[], initValue?: FormValue, value?: FormValue) => FormValue;
3
3
  export declare const filterFunction: <T = any>(mForm: FormState | undefined, config: T | FilterFunction<T> | undefined, props: any) => T | undefined;
4
4
  export declare const display: (mForm: FormState | undefined, config: any, props: any) => any;
5
- export declare const getRules: (mForm: FormState | undefined, rules: Rule | Rule[] | undefined, props: any) => Rule[];
5
+ export declare const getRules: (mForm: FormState | undefined, rules: (Rule[] | Rule) | undefined, props: any) => Rule[];
6
6
  export declare const initValue: (mForm: FormState | undefined, { initValues, config }: {
7
7
  initValues: FormValue;
8
8
  config: FormConfig;