@tmagic/form 1.4.15 → 1.4.17
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/dist/tmagic-form.js +19 -8
- package/dist/tmagic-form.umd.cjs +19 -8
- package/package.json +6 -6
- package/src/fields/Date.vue +3 -3
- package/src/fields/DateTime.vue +5 -1
- package/src/fields/Daterange.vue +9 -2
- package/src/fields/Timerange.vue +1 -2
- package/src/schema.ts +3 -0
- package/types/Form.vue.d.ts +30 -30
- package/types/FormBox.vue.d.ts +288 -37
- package/types/FormDialog.vue.d.ts +293 -42
- package/types/FormDrawer.vue.d.ts +295 -44
- package/types/containers/Col.vue.d.ts +14 -14
- package/types/containers/Container.vue.d.ts +16 -16
- package/types/containers/Fieldset.vue.d.ts +10 -10
- package/types/containers/GroupList.vue.d.ts +10 -10
- package/types/containers/GroupListItem.vue.d.ts +10 -10
- package/types/containers/Panel.vue.d.ts +19 -17
- package/types/containers/Row.vue.d.ts +12 -12
- package/types/containers/Step.vue.d.ts +10 -10
- package/types/containers/Table.vue.d.ts +32 -30
- package/types/containers/Tabs.vue.d.ts +12 -12
- package/types/schema.d.ts +3 -0
- package/types/utils/form.d.ts +1 -1
|
@@ -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
|
|
5
|
+
isCompare?: boolean;
|
|
6
6
|
config: RowConfig;
|
|
7
7
|
name: string;
|
|
8
|
-
labelWidth?: string
|
|
9
|
-
prop?: string
|
|
10
|
-
size?: string
|
|
11
|
-
expandMore?: boolean
|
|
12
|
-
disabled?: boolean
|
|
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
|
|
19
|
+
isCompare?: boolean;
|
|
20
20
|
config: RowConfig;
|
|
21
21
|
name: string;
|
|
22
|
-
labelWidth?: string
|
|
23
|
-
prop?: string
|
|
24
|
-
size?: string
|
|
25
|
-
expandMore?: boolean
|
|
26
|
-
disabled?: boolean
|
|
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
|
|
5
|
+
isCompare?: boolean;
|
|
6
6
|
config: StepConfig;
|
|
7
|
-
stepActive?: number
|
|
8
|
-
labelWidth?: string
|
|
9
|
-
size?: string
|
|
10
|
-
disabled?: boolean
|
|
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
|
|
19
|
+
isCompare?: boolean;
|
|
20
20
|
config: StepConfig;
|
|
21
|
-
stepActive?: number
|
|
22
|
-
labelWidth?: string
|
|
23
|
-
size?: string
|
|
24
|
-
disabled?: boolean
|
|
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
|
|
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
|
|
14
|
+
isCompare?: boolean;
|
|
6
15
|
config: TableConfig;
|
|
7
16
|
name: string;
|
|
8
|
-
prop?: string
|
|
9
|
-
labelWidth?: string
|
|
10
|
-
sort?: boolean
|
|
11
|
-
disabled?: boolean
|
|
12
|
-
sortKey?: string
|
|
13
|
-
text?: string
|
|
14
|
-
size?: string
|
|
15
|
-
enableToggleMode?: boolean
|
|
16
|
-
showIndex?: boolean
|
|
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
|
|
42
|
+
isCompare?: boolean;
|
|
34
43
|
config: TableConfig;
|
|
35
44
|
name: string;
|
|
36
|
-
prop?: string
|
|
37
|
-
labelWidth?: string
|
|
38
|
-
sort?: boolean
|
|
39
|
-
disabled?: boolean
|
|
40
|
-
sortKey?: string
|
|
41
|
-
text?: string
|
|
42
|
-
size?: string
|
|
43
|
-
enableToggleMode?: boolean
|
|
44
|
-
showIndex?: boolean
|
|
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
|
-
|
|
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
|
|
5
|
+
isCompare?: boolean;
|
|
6
6
|
config: TabConfig;
|
|
7
7
|
name: string;
|
|
8
|
-
size?: string
|
|
9
|
-
labelWidth?: string
|
|
10
|
-
prop?: string
|
|
11
|
-
expandMore?: boolean
|
|
12
|
-
disabled?: boolean
|
|
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
|
|
22
|
+
isCompare?: boolean;
|
|
23
23
|
config: TabConfig;
|
|
24
24
|
name: string;
|
|
25
|
-
size?: string
|
|
26
|
-
labelWidth?: string
|
|
27
|
-
prop?: string
|
|
28
|
-
expandMore?: boolean
|
|
29
|
-
disabled?: boolean
|
|
25
|
+
size?: string;
|
|
26
|
+
labelWidth?: string;
|
|
27
|
+
prop?: string;
|
|
28
|
+
expandMore?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
30
|
}>, {
|
|
31
31
|
lastValues: () => {};
|
|
32
32
|
isCompare: boolean;
|
package/types/schema.d.ts
CHANGED
package/types/utils/form.d.ts
CHANGED
|
@@ -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
|
|
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;
|