@vunk/form 0.0.0-alpha.7 → 0.0.0-alpha.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.
- package/components/config/index.js +1 -16
- package/components/config-renderer/index.js +1 -0
- package/components/confirm-input/index.js +33 -8
- package/components/confirm-input/src/ctx.d.ts +8 -1
- package/components/confirm-input/src/index.vue.d.ts +18 -2
- package/components/date-picker/src/ctx.d.ts +56 -88
- package/components/date-picker/src/index.vue.d.ts +140 -204
- package/components/form/index.js +7 -1
- package/components/form/src/ctx.d.ts +277 -1
- package/components/form/src/index.vue.d.ts +825 -0
- package/components/form-item-renderer/index.js +1 -0
- package/components/ground/index.css +26 -26
- package/components/ground/index.js +122 -100
- package/components/ground/src/ground-config/src/index copy.vue.d.ts +72 -0
- package/components/ground/src/ground-config/src/index.vue.d.ts +953 -54
- package/components/ground/src/ground-main/src/index.vue.d.ts +7 -16
- package/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +13 -0
- package/components/ground/src/index.vue.d.ts +16 -5
- package/components/input/index.js +7 -7
- package/components/input-config/index.js +7 -4
- package/components/input-config/src/ctx.d.ts +600 -5
- package/components/input-config/src/index.vue.d.ts +2051 -2
- package/components/rules-config/src/ctx.d.ts +276 -0
- package/components/rules-config/src/index.vue.d.ts +1098 -0
- package/components/switch/src/ctx.d.ts +6 -0
- package/components/switch/src/index.vue.d.ts +13 -0
- package/index.css +26 -26
- package/package.json +1 -1
- package/shared/element-plus/ctx/index.d.ts +5 -5
- package/shared/element-plus/instances/date-picker.d.ts +59 -91
- package/shared/element-plus/instances/select.d.ts +1 -1
- package/shared/helper/index.d.ts +2 -1
- package/shared/helper/index.js +15 -1
- package/shared/types/form-item/confirm-input.d.ts +8 -0
- package/shared/types/form-item/confirm-input.js +1 -0
- package/shared/types/form-item/date-picker.d.ts +2 -2
- package/shared/types/form-item/index.d.ts +1 -0
- package/shared/types/form-item/input.d.ts +2 -6
- package/shared/types/form-item/select.d.ts +2 -2
- package/shared/types/form-item/switch.d.ts +2 -2
- package/shared/types/shared/index.d.ts +1 -1
- package/types/components/confirm-input/src/ctx.d.ts +8 -1
- package/types/components/confirm-input/src/index.vue.d.ts +18 -2
- package/types/components/date-picker/src/ctx.d.ts +56 -88
- package/types/components/date-picker/src/index.vue.d.ts +140 -204
- package/types/components/form/src/ctx.d.ts +277 -1
- package/types/components/form/src/index.vue.d.ts +825 -0
- package/types/components/ground/src/ground-config/src/index copy.vue.d.ts +72 -0
- package/types/components/ground/src/ground-config/src/index.vue.d.ts +953 -54
- package/types/components/ground/src/ground-main/src/index.vue.d.ts +7 -16
- package/types/components/ground/src/ground-widget/src/form-item-widget/src/index.vue.d.ts +13 -0
- package/types/components/ground/src/index.vue.d.ts +16 -5
- package/types/components/input-config/src/ctx.d.ts +600 -5
- package/types/components/input-config/src/index.vue.d.ts +2051 -2
- package/types/components/rules-config/src/ctx.d.ts +276 -0
- package/types/components/rules-config/src/index.vue.d.ts +1098 -0
- package/types/components/switch/src/ctx.d.ts +6 -0
- package/types/components/switch/src/index.vue.d.ts +13 -0
- package/types/shared/element-plus/ctx/index.d.ts +5 -5
- package/types/shared/element-plus/instances/date-picker.d.ts +59 -91
- package/types/shared/element-plus/instances/select.d.ts +1 -1
- package/types/shared/helper/index.d.ts +2 -1
- package/types/shared/types/form-item/confirm-input.d.ts +8 -0
- package/types/shared/types/form-item/date-picker.d.ts +2 -2
- package/types/shared/types/form-item/index.d.ts +1 -0
- package/types/shared/types/form-item/input.d.ts +2 -6
- package/types/shared/types/form-item/select.d.ts +2 -2
- package/types/shared/types/form-item/switch.d.ts +2 -2
- package/types/shared/types/shared/index.d.ts +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { SetDataEvent } from '@vunk/form/shared/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
templateType: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
propDisabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
data: {
|
|
12
|
+
type: import("vue").PropType<import("vunk/shared/types").AnyObject>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
source: {
|
|
16
|
+
type: import("vue").PropType<{
|
|
17
|
+
[k: string]: any;
|
|
18
|
+
templateType?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
source: import("vue").ComputedRef<{
|
|
24
|
+
templateType: string;
|
|
25
|
+
propDisabled: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
setSource: (e: SetDataEvent) => void;
|
|
28
|
+
configProps: import("vue").ComputedRef<{
|
|
29
|
+
data: import("vunk/shared/types").AnyObject;
|
|
30
|
+
}>;
|
|
31
|
+
configEmits: {
|
|
32
|
+
setData: ((event: "setData", e: SetDataEvent<any>) => void) & ((event: "update:propDisabled", e: boolean) => void) & ((event: "setData:source", e: SetDataEvent<any>) => void);
|
|
33
|
+
"setData:source": ((event: "setData", e: SetDataEvent<any>) => void) & ((event: "update:propDisabled", e: boolean) => void) & ((event: "setData:source", e: SetDataEvent<any>) => void);
|
|
34
|
+
};
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
'update:propDisabled': (e: boolean) => boolean;
|
|
37
|
+
setData: (e: SetDataEvent<any>) => SetDataEvent<any>;
|
|
38
|
+
'setData:source': (e: SetDataEvent<any>) => SetDataEvent<any>;
|
|
39
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
templateType: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
propDisabled: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
data: {
|
|
49
|
+
type: import("vue").PropType<import("vunk/shared/types").AnyObject>;
|
|
50
|
+
default: () => {};
|
|
51
|
+
};
|
|
52
|
+
source: {
|
|
53
|
+
type: import("vue").PropType<{
|
|
54
|
+
[k: string]: any;
|
|
55
|
+
templateType?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
|
+
}>> & {
|
|
60
|
+
onSetData?: ((e: SetDataEvent<any>) => any) | undefined;
|
|
61
|
+
"onUpdate:propDisabled"?: ((e: boolean) => any) | undefined;
|
|
62
|
+
"onSetData:source"?: ((e: SetDataEvent<any>) => any) | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
templateType: string;
|
|
65
|
+
data: import("vunk/shared/types").AnyObject;
|
|
66
|
+
source: {
|
|
67
|
+
[k: string]: any;
|
|
68
|
+
templateType?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
propDisabled: boolean;
|
|
71
|
+
}>;
|
|
72
|
+
export default _default;
|