@tmagic/form 1.2.0-beta.17 → 1.2.0-beta.19
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.mjs +90 -48
- package/dist/tmagic-form.mjs.map +1 -1
- package/dist/tmagic-form.umd.js +90 -47
- package/dist/tmagic-form.umd.js.map +1 -1
- package/package.json +4 -4
- package/src/Form.vue +1 -1
- package/src/FormDialog.vue +2 -0
- package/src/containers/Col.vue +2 -0
- package/src/containers/Container.vue +7 -2
- package/src/containers/Fieldset.vue +3 -0
- package/src/containers/GroupList.vue +3 -1
- package/src/containers/GroupListItem.vue +7 -4
- package/src/containers/Panel.vue +3 -0
- package/src/containers/Row.vue +2 -0
- package/src/containers/Step.vue +2 -0
- package/src/containers/Table.vue +16 -4
- package/src/containers/Tabs.vue +2 -0
- package/src/schema.ts +1 -0
- package/src/utils/form.ts +5 -5
- package/types/FormDialog.vue.d.ts +4 -0
- package/types/containers/Col.vue.d.ts +4 -0
- package/types/containers/Container.vue.d.ts +4 -0
- package/types/containers/Fieldset.vue.d.ts +4 -0
- package/types/containers/GroupList.vue.d.ts +4 -0
- package/types/containers/GroupListItem.vue.d.ts +4 -0
- package/types/containers/Panel.vue.d.ts +4 -0
- package/types/containers/Row.vue.d.ts +4 -0
- package/types/containers/Step.vue.d.ts +4 -0
- package/types/containers/Table.vue.d.ts +4 -0
- package/types/containers/Tabs.vue.d.ts +4 -0
- package/types/fields/Number.vue.d.ts +1 -1
- package/types/fields/Text.vue.d.ts +1 -1
- package/types/fields/Textarea.vue.d.ts +1 -1
- package/types/schema.d.ts +1 -0
- package/types/utils/form.d.ts +2 -1
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
stepActive?: number | undefined;
|
|
12
12
|
labelWidth?: string | undefined;
|
|
13
13
|
size?: string | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
14
15
|
}>, {
|
|
15
16
|
stepActive: number;
|
|
16
17
|
}>>> & {
|
|
@@ -35,6 +36,7 @@ declare const _default: {
|
|
|
35
36
|
stepActive?: number | undefined;
|
|
36
37
|
labelWidth?: string | undefined;
|
|
37
38
|
size?: string | undefined;
|
|
39
|
+
disabled?: boolean | undefined;
|
|
38
40
|
}>, {
|
|
39
41
|
stepActive: number;
|
|
40
42
|
}>>> & {
|
|
@@ -67,6 +69,7 @@ declare const _default: {
|
|
|
67
69
|
stepActive?: number | undefined;
|
|
68
70
|
labelWidth?: string | undefined;
|
|
69
71
|
size?: string | undefined;
|
|
72
|
+
disabled?: boolean | undefined;
|
|
70
73
|
}>, {
|
|
71
74
|
stepActive: number;
|
|
72
75
|
}>>> & {
|
|
@@ -81,6 +84,7 @@ declare const _default: {
|
|
|
81
84
|
stepActive?: number | undefined;
|
|
82
85
|
labelWidth?: string | undefined;
|
|
83
86
|
size?: string | undefined;
|
|
87
|
+
disabled?: boolean | undefined;
|
|
84
88
|
}>, {
|
|
85
89
|
stepActive: number;
|
|
86
90
|
}>>> & {
|
|
@@ -15,6 +15,7 @@ declare const _default: {
|
|
|
15
15
|
prop?: string | undefined;
|
|
16
16
|
labelWidth?: string | undefined;
|
|
17
17
|
sort?: boolean | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
18
19
|
sortKey?: string | undefined;
|
|
19
20
|
text?: string | undefined;
|
|
20
21
|
size?: string | undefined;
|
|
@@ -49,6 +50,7 @@ declare const _default: {
|
|
|
49
50
|
prop?: string | undefined;
|
|
50
51
|
labelWidth?: string | undefined;
|
|
51
52
|
sort?: boolean | undefined;
|
|
53
|
+
disabled?: boolean | undefined;
|
|
52
54
|
sortKey?: string | undefined;
|
|
53
55
|
text?: string | undefined;
|
|
54
56
|
size?: string | undefined;
|
|
@@ -96,6 +98,7 @@ declare const _default: {
|
|
|
96
98
|
prop?: string | undefined;
|
|
97
99
|
labelWidth?: string | undefined;
|
|
98
100
|
sort?: boolean | undefined;
|
|
101
|
+
disabled?: boolean | undefined;
|
|
99
102
|
sortKey?: string | undefined;
|
|
100
103
|
text?: string | undefined;
|
|
101
104
|
size?: string | undefined;
|
|
@@ -122,6 +125,7 @@ declare const _default: {
|
|
|
122
125
|
prop?: string | undefined;
|
|
123
126
|
labelWidth?: string | undefined;
|
|
124
127
|
sort?: boolean | undefined;
|
|
128
|
+
disabled?: boolean | undefined;
|
|
125
129
|
sortKey?: string | undefined;
|
|
126
130
|
text?: string | undefined;
|
|
127
131
|
size?: string | undefined;
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
labelWidth?: string | undefined;
|
|
12
12
|
prop?: string | undefined;
|
|
13
13
|
expandMore?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
14
15
|
}>>> & {
|
|
15
16
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
17
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
@@ -35,6 +36,7 @@ declare const _default: {
|
|
|
35
36
|
labelWidth?: string | undefined;
|
|
36
37
|
prop?: string | undefined;
|
|
37
38
|
expandMore?: boolean | undefined;
|
|
39
|
+
disabled?: boolean | undefined;
|
|
38
40
|
}>>> & {
|
|
39
41
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
40
42
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {}> & {
|
|
@@ -65,6 +67,7 @@ declare const _default: {
|
|
|
65
67
|
labelWidth?: string | undefined;
|
|
66
68
|
prop?: string | undefined;
|
|
67
69
|
expandMore?: boolean | undefined;
|
|
70
|
+
disabled?: boolean | undefined;
|
|
68
71
|
}>>> & {
|
|
69
72
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
70
73
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
@@ -79,6 +82,7 @@ declare const _default: {
|
|
|
79
82
|
labelWidth?: string | undefined;
|
|
80
83
|
prop?: string | undefined;
|
|
81
84
|
expandMore?: boolean | undefined;
|
|
85
|
+
disabled?: boolean | undefined;
|
|
82
86
|
}>>> & {
|
|
83
87
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
84
88
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
}>>> & {
|
|
90
90
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "
|
|
92
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "change" | "input", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
93
93
|
export default _default;
|
|
94
94
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
95
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
}>>> & {
|
|
90
90
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "
|
|
92
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "change" | "input", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
93
93
|
export default _default;
|
|
94
94
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
95
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
}>>> & {
|
|
90
90
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
92
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "
|
|
92
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "change" | "input", {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
93
93
|
export default _default;
|
|
94
94
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
95
95
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
package/types/schema.d.ts
CHANGED
|
@@ -520,6 +520,7 @@ export interface TableConfig extends FormItem {
|
|
|
520
520
|
enableFullscreen?: boolean;
|
|
521
521
|
fixed?: boolean;
|
|
522
522
|
itemExtra?: string | FilterFunction;
|
|
523
|
+
rowKey: string;
|
|
523
524
|
}
|
|
524
525
|
export interface GroupListConfig extends FormItem {
|
|
525
526
|
type: 'table' | 'groupList' | 'group-list';
|
package/types/utils/form.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FormConfig, FormState, FormValue, Rule } from '../schema';
|
|
1
|
+
import { FormConfig, FormState, FormValue, Rule, TabPaneConfig } from '../schema';
|
|
2
|
+
export declare const createValues: (mForm: FormState | undefined, config?: FormConfig | TabPaneConfig[], initValue?: FormValue, value?: FormValue) => FormValue;
|
|
2
3
|
export declare const filterFunction: (mForm: FormState | undefined, config: any, props: any) => any;
|
|
3
4
|
export declare const display: (mForm: FormState | undefined, config: any, props: any) => any;
|
|
4
5
|
export declare const getRules: (mForm: FormState | undefined, rules: Rule | Rule[] | undefined, props: any) => Rule[];
|