@tmagic/form 1.0.6 → 1.1.0-beta.10
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.es.js → tmagic-form.mjs} +225 -190
- package/dist/tmagic-form.mjs.map +1 -0
- package/dist/tmagic-form.umd.js +239 -204
- package/dist/tmagic-form.umd.js.map +1 -1
- package/package.json +17 -16
- package/src/Form.vue +3 -7
- package/src/containers/Container.vue +1 -1
- package/src/containers/GroupListItem.vue +4 -4
- package/src/containers/Panel.vue +1 -1
- package/src/containers/Table.vue +1 -1
- package/src/fields/Cascader.vue +3 -5
- package/src/fields/ColorPicker.vue +19 -26
- package/src/fields/Daterange.vue +73 -52
- package/src/fields/Display.vue +13 -23
- package/src/fields/Hidden.vue +10 -20
- package/src/fields/Select.vue +1 -2
- package/src/fields/Text.vue +6 -4
- package/src/index.ts +4 -4
- package/tsconfig.build.json +13 -0
- package/types/Form.vue.d.ts +125 -0
- package/types/FormDialog.vue.d.ts +300 -0
- package/{dist/types/src → types}/containers/Col.vue.d.ts +4 -4
- package/types/containers/Container.vue.d.ts +70 -0
- package/types/containers/Fieldset.vue.d.ts +118 -0
- package/{dist/types/src → types}/containers/GroupList.vue.d.ts +6 -6
- package/{dist/types/src → types}/containers/GroupListItem.vue.d.ts +15 -15
- package/{dist/types/src → types}/containers/Panel.vue.d.ts +6 -6
- package/{dist/types/src → types}/containers/Row.vue.d.ts +3 -3
- package/{dist/types/src → types}/containers/Step.vue.d.ts +4 -4
- package/types/containers/Table.vue.d.ts +128 -0
- package/{dist/types/src → types}/containers/Tabs.vue.d.ts +11 -7
- package/types/fields/Cascader.vue.d.ts +74 -0
- package/{dist/types/src → types}/fields/Checkbox.vue.d.ts +5 -5
- package/{dist/types/src → types}/fields/CheckboxGroup.vue.d.ts +3 -3
- package/types/fields/ColorPicker.vue.d.ts +100 -0
- package/{dist/types/src → types}/fields/Date.vue.d.ts +3 -3
- package/{dist/types/src → types}/fields/DateTime.vue.d.ts +3 -3
- package/types/fields/Daterange.vue.d.ts +100 -0
- package/types/fields/Display.vue.d.ts +84 -0
- package/{dist/types/src → types}/fields/DynamicField.vue.d.ts +4 -4
- package/types/fields/Hidden.vue.d.ts +84 -0
- package/types/fields/Link.vue.d.ts +686 -0
- package/{dist/types/src → types}/fields/Number.vue.d.ts +3 -3
- package/{dist/types/src → types}/fields/RadioGroup.vue.d.ts +4 -5
- package/types/fields/Select.vue.d.ts +67 -0
- package/types/fields/SelectOptionGroups.vue.d.ts +64 -0
- package/types/fields/SelectOptions.vue.d.ts +68 -0
- package/{dist/types/src → types}/fields/Switch.vue.d.ts +6 -6
- package/{dist/types/src → types}/fields/Text.vue.d.ts +4 -4
- package/{dist/types/src → types}/fields/Textarea.vue.d.ts +10 -4
- package/{dist/types/src → types}/fields/Time.vue.d.ts +8 -4
- package/{dist/types/src → types}/index.d.ts +1 -0
- package/{dist/types/src → types}/schema.d.ts +0 -0
- package/{dist/types/src → types}/utils/config.d.ts +0 -0
- package/types/utils/containerProps.d.ts +26 -0
- package/types/utils/createForm.d.ts +3 -0
- package/{dist/types/src → types}/utils/fieldProps.d.ts +0 -0
- package/{dist/types/src → types}/utils/form.d.ts +0 -0
- package/types/utils/useAddField.d.ts +1 -0
- package/dist/tmagic-form.es.js.map +0 -1
- package/dist/types/src/containers/Container.vue.d.ts +0 -70
- package/dist/types/src/containers/Fieldset.vue.d.ts +0 -79
- package/dist/types/src/containers/Table.vue.d.ts +0 -128
- package/dist/types/src/fields/Daterange.vue.d.ts +0 -57
- package/dist/types/src/fields/Display.vue.d.ts +0 -3
- package/dist/types/src/fields/Hidden.vue.d.ts +0 -3
- package/dist/types/src/fields/SelectOptionGroups.vue.d.ts +0 -13
- package/dist/types/src/fields/SelectOptions.vue.d.ts +0 -21
- package/dist/types/src/shims-vue.d.ts +0 -6
- package/dist/types/src/utils/useAddField.d.ts +0 -1
- package/dist/types/src/vite-env.d.ts +0 -1
- package/src/vite-env.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { FormState, NumberConfig } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
config: {
|
|
5
5
|
type: PropType<NumberConfig>;
|
|
6
6
|
required: true;
|
|
@@ -26,7 +26,7 @@ declare const _default: DefineComponent<{
|
|
|
26
26
|
mForm: FormState | null | undefined;
|
|
27
27
|
changeHandler: (value: number) => void;
|
|
28
28
|
inputHandler: (v: string) => void;
|
|
29
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "input")[], "
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "input" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
config: {
|
|
31
31
|
type: PropType<NumberConfig>;
|
|
32
32
|
required: true;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
config: {
|
|
4
3
|
type: ObjectConstructor;
|
|
5
4
|
required: true;
|
|
@@ -17,13 +16,13 @@ declare const _default: DefineComponent<{
|
|
|
17
16
|
type: BooleanConstructor;
|
|
18
17
|
default: boolean;
|
|
19
18
|
};
|
|
20
|
-
size: PropType<"small" | "mini" | "medium">;
|
|
19
|
+
size: import("vue").PropType<"small" | "mini" | "medium">;
|
|
21
20
|
prop: StringConstructor;
|
|
22
21
|
initValues: ObjectConstructor;
|
|
23
22
|
values: ObjectConstructor;
|
|
24
23
|
}, {
|
|
25
24
|
changeHandler: (v: string | number | boolean) => void;
|
|
26
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
26
|
config: {
|
|
28
27
|
type: ObjectConstructor;
|
|
29
28
|
required: true;
|
|
@@ -41,7 +40,7 @@ declare const _default: DefineComponent<{
|
|
|
41
40
|
type: BooleanConstructor;
|
|
42
41
|
default: boolean;
|
|
43
42
|
};
|
|
44
|
-
size: PropType<"small" | "mini" | "medium">;
|
|
43
|
+
size: import("vue").PropType<"small" | "mini" | "medium">;
|
|
45
44
|
prop: StringConstructor;
|
|
46
45
|
initValues: ObjectConstructor;
|
|
47
46
|
values: ObjectConstructor;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { SelectConfig, SelectGroupOption, SelectOption } from '../schema';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
config: {
|
|
5
|
+
type: PropType<SelectConfig>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
model: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
required: boolean;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
size: PropType<"small" | "mini" | "medium">;
|
|
22
|
+
prop: StringConstructor;
|
|
23
|
+
initValues: ObjectConstructor;
|
|
24
|
+
values: ObjectConstructor;
|
|
25
|
+
}, {
|
|
26
|
+
select: Ref<any>;
|
|
27
|
+
loading: Ref<boolean>;
|
|
28
|
+
remote: Ref<boolean>;
|
|
29
|
+
options: Ref<SelectOption[]>;
|
|
30
|
+
groupOptions: Ref<SelectGroupOption[]>;
|
|
31
|
+
moreLoadingVisible: Ref<boolean>;
|
|
32
|
+
popperClass: string | undefined;
|
|
33
|
+
getOptions: () => Promise<any>;
|
|
34
|
+
getRequestFuc(): unknown;
|
|
35
|
+
changeHandler(value: any): void;
|
|
36
|
+
visibleHandler(visible: boolean): Promise<void>;
|
|
37
|
+
remoteMethod(q: string): Promise<void>;
|
|
38
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
config: {
|
|
40
|
+
type: PropType<SelectConfig>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
model: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
required: boolean;
|
|
46
|
+
default: () => {};
|
|
47
|
+
};
|
|
48
|
+
name: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
disabled: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
size: PropType<"small" | "mini" | "medium">;
|
|
57
|
+
prop: StringConstructor;
|
|
58
|
+
initValues: ObjectConstructor;
|
|
59
|
+
values: ObjectConstructor;
|
|
60
|
+
}>> & {
|
|
61
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
name: string;
|
|
64
|
+
disabled: boolean;
|
|
65
|
+
model: Record<string, any>;
|
|
66
|
+
}>;
|
|
67
|
+
export default _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { SelectGroupOption } from '../schema';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
options: SelectGroupOption[];
|
|
8
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
9
|
+
$attrs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$refs: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
$slots: Readonly<{
|
|
16
|
+
[name: string]: import("vue").Slot | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
19
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
20
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
21
|
+
$el: any;
|
|
22
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
+
options: SelectGroupOption[];
|
|
24
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
25
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
26
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
27
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
38
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
39
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
40
|
+
};
|
|
41
|
+
$forceUpdate: () => void;
|
|
42
|
+
$nextTick: typeof import("vue").nextTick;
|
|
43
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
44
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
45
|
+
options: SelectGroupOption[];
|
|
46
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
47
|
+
__isFragment?: undefined;
|
|
48
|
+
__isTeleport?: undefined;
|
|
49
|
+
__isSuspense?: undefined;
|
|
50
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
51
|
+
options: SelectGroupOption[];
|
|
52
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
53
|
+
$slots: {};
|
|
54
|
+
});
|
|
55
|
+
export default _default;
|
|
56
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
57
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
58
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
59
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
60
|
+
} : {
|
|
61
|
+
type: import('vue').PropType<T[K]>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { SelectOption } from '../schema';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
options: SelectOption[];
|
|
8
|
+
valueKey?: string | undefined;
|
|
9
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
10
|
+
$attrs: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
$refs: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
$slots: Readonly<{
|
|
17
|
+
[name: string]: import("vue").Slot | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
20
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
21
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
22
|
+
$el: any;
|
|
23
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
options: SelectOption[];
|
|
25
|
+
valueKey?: string | undefined;
|
|
26
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
27
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
40
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
41
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
42
|
+
};
|
|
43
|
+
$forceUpdate: () => void;
|
|
44
|
+
$nextTick: typeof import("vue").nextTick;
|
|
45
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
46
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
47
|
+
options: SelectOption[];
|
|
48
|
+
valueKey?: string | undefined;
|
|
49
|
+
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
50
|
+
__isFragment?: undefined;
|
|
51
|
+
__isTeleport?: undefined;
|
|
52
|
+
__isSuspense?: undefined;
|
|
53
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
54
|
+
options: SelectOption[];
|
|
55
|
+
valueKey?: string | undefined;
|
|
56
|
+
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
57
|
+
$slots: {};
|
|
58
|
+
});
|
|
59
|
+
export default _default;
|
|
60
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
+
} : {
|
|
65
|
+
type: import('vue').PropType<T[K]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { SwitchConfig } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
config: {
|
|
5
5
|
type: PropType<SwitchConfig>;
|
|
6
6
|
required: true;
|
|
@@ -23,11 +23,11 @@ declare const _default: DefineComponent<{
|
|
|
23
23
|
initValues: ObjectConstructor;
|
|
24
24
|
values: ObjectConstructor;
|
|
25
25
|
}, {
|
|
26
|
-
n: ComputedRef<string | number>;
|
|
27
|
-
activeValue: ComputedRef<string | number | boolean>;
|
|
28
|
-
inactiveValue: ComputedRef<string | number | boolean>;
|
|
26
|
+
n: import("vue").ComputedRef<string | number>;
|
|
27
|
+
activeValue: import("vue").ComputedRef<string | number | boolean>;
|
|
28
|
+
inactiveValue: import("vue").ComputedRef<string | number | boolean>;
|
|
29
29
|
changeHandler: (v: boolean | number | string) => void;
|
|
30
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
config: {
|
|
32
32
|
type: PropType<SwitchConfig>;
|
|
33
33
|
required: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { TextConfig } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
config: {
|
|
5
5
|
type: PropType<TextConfig>;
|
|
6
6
|
required: true;
|
|
@@ -23,12 +23,12 @@ declare const _default: DefineComponent<{
|
|
|
23
23
|
initValues: ObjectConstructor;
|
|
24
24
|
values: ObjectConstructor;
|
|
25
25
|
}, {
|
|
26
|
-
modelName: ComputedRef<string | number>;
|
|
26
|
+
modelName: import("vue").ComputedRef<string | number>;
|
|
27
27
|
changeHandler(v: string | number): void;
|
|
28
28
|
inputHandler(v: string | number): void;
|
|
29
29
|
buttonClickHandler(): void;
|
|
30
30
|
keyUpHandler($event: KeyboardEvent): void;
|
|
31
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "input")[], "
|
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input")[], "input" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
32
|
config: {
|
|
33
33
|
type: PropType<TextConfig>;
|
|
34
34
|
required: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { FormState, TextareaConfig } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
config: {
|
|
5
5
|
type: PropType<TextareaConfig>;
|
|
6
6
|
required: true;
|
|
@@ -26,7 +26,10 @@ declare const _default: DefineComponent<{
|
|
|
26
26
|
mForm: FormState | null | undefined;
|
|
27
27
|
changeHandler: (v: string) => void;
|
|
28
28
|
inputHandler: (v: string) => void;
|
|
29
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
change(values: string | number): string | number;
|
|
31
|
+
input(values: string | number): string | number;
|
|
32
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
33
|
config: {
|
|
31
34
|
type: PropType<TextareaConfig>;
|
|
32
35
|
required: true;
|
|
@@ -48,7 +51,10 @@ declare const _default: DefineComponent<{
|
|
|
48
51
|
prop: StringConstructor;
|
|
49
52
|
initValues: ObjectConstructor;
|
|
50
53
|
values: ObjectConstructor;
|
|
51
|
-
}
|
|
54
|
+
}>> & {
|
|
55
|
+
onChange?: ((values: string | number) => any) | undefined;
|
|
56
|
+
onInput?: ((values: string | number) => any) | undefined;
|
|
57
|
+
}, {
|
|
52
58
|
name: string;
|
|
53
59
|
disabled: boolean;
|
|
54
60
|
model: Record<string, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { TimeConfig } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
config: {
|
|
5
5
|
type: PropType<TimeConfig>;
|
|
6
6
|
required: true;
|
|
@@ -24,7 +24,9 @@ declare const _default: DefineComponent<{
|
|
|
24
24
|
values: ObjectConstructor;
|
|
25
25
|
}, {
|
|
26
26
|
changeHandler: (v: Date) => void;
|
|
27
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin,
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
change(values: Date): Date;
|
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
30
|
config: {
|
|
29
31
|
type: PropType<TimeConfig>;
|
|
30
32
|
required: true;
|
|
@@ -46,7 +48,9 @@ declare const _default: DefineComponent<{
|
|
|
46
48
|
prop: StringConstructor;
|
|
47
49
|
initValues: ObjectConstructor;
|
|
48
50
|
values: ObjectConstructor;
|
|
49
|
-
}
|
|
51
|
+
}>> & {
|
|
52
|
+
onChange?: ((values: Date) => any) | undefined;
|
|
53
|
+
}, {
|
|
50
54
|
name: string;
|
|
51
55
|
disabled: boolean;
|
|
52
56
|
model: Record<string, any>;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ChildConfig, FormValue } from '../schema';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
labelWidth: StringConstructor;
|
|
5
|
+
expandMore: BooleanConstructor;
|
|
6
|
+
model: {
|
|
7
|
+
type: PropType<FormValue>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
config: {
|
|
11
|
+
type: PropType<ChildConfig>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
prop: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: () => string;
|
|
17
|
+
};
|
|
18
|
+
stepActive: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAddField: (prop?: string) => void;
|