@vunk/form 2.10.1 → 2.10.4
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/api-tables-select/index.cjs +37 -36
- package/components/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/index.mjs +37 -36
- package/components/api-tables-select/src/ctx.d.ts +374 -0
- package/components/api-tables-select/src/index.vue.d.ts +1335 -0
- package/components/api-tables-select/src/types.d.ts +19 -0
- package/components/button/index.d.ts +4 -0
- package/components/button/src/ctx.d.ts +190 -0
- package/components/button/src/index.vue.d.ts +822 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/card-input-collection/index.cjs +67 -70
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/index.mjs +68 -71
- package/components/card-input-collection/src/ctx.d.ts +119 -0
- package/components/card-input-collection/src/index.vue.d.ts +1043 -0
- package/components/card-input-collection/src/types.d.ts +10 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +297 -0
- package/components/cascader/src/index.vue.d.ts +650 -0
- package/components/cascader/src/types.d.ts +19 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.cjs +2 -3
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/index.mjs +2 -3
- package/components/checkbox/src/ctx.d.ts +151 -0
- package/components/checkbox/src/index.vue.d.ts +1362 -0
- package/components/checkbox/src/types.d.ts +8 -0
- package/components/color-picker/index.d.ts +4 -0
- package/components/color-picker/src/ctx.d.ts +153 -0
- package/components/color-picker/src/index.vue.d.ts +341 -0
- package/components/color-picker/src/types.d.ts +7 -0
- package/components/date-picker/index.d.ts +5 -0
- package/components/date-picker/src/ctx.d.ts +325 -0
- package/components/date-picker/src/index.vue.d.ts +1422 -0
- package/components/date-picker/src/types.d.ts +20 -0
- package/components/date-picker-range/index.d.ts +4 -0
- package/components/date-picker-range/src/ctx.d.ts +328 -0
- package/components/date-picker-range/src/index.vue.d.ts +717 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.d.ts +4 -0
- package/components/download-plus/index.mjs +4 -4
- package/components/download-plus/src/api.d.ts +13 -0
- package/components/download-plus/src/const.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +129 -0
- package/components/download-plus/src/index.vue.d.ts +1432 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/editable-text/index.cjs +9 -0
- package/components/editable-text/index.d.ts +4 -0
- package/components/editable-text/index.mjs +9 -0
- package/components/editable-text/src/ctx.d.ts +132 -0
- package/components/editable-text/src/index.vue.d.ts +3399 -0
- package/components/editable-text/src/types.d.ts +1 -0
- package/components/esri-input-geojson/index.d.ts +6 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +1179 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +340 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1459 -0
- package/components/esri-input-geojson/src/types.d.ts +22 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +427 -0
- package/components/fieldset/index.d.ts +4 -0
- package/components/fieldset/src/ctx.d.ts +12 -0
- package/components/fieldset/src/index.vue.d.ts +23 -0
- package/components/fieldset/src/types.d.ts +1 -0
- package/components/fieldset/src/use.d.ts +5 -0
- package/components/form/index.d.ts +5 -0
- package/components/form/src/ctx.d.ts +132 -0
- package/components/form/src/index.vue.d.ts +4007 -0
- package/components/form/src/types.d.ts +25 -0
- package/components/form/src/utils.d.ts +15 -0
- package/components/form-item/index.d.ts +5 -0
- package/components/form-item/src/ctx.d.ts +107 -0
- package/components/form-item/src/index.vue.d.ts +961 -0
- package/components/form-item/src/types.d.ts +9 -0
- package/components/form-item-renderer/index.d.ts +4 -0
- package/components/form-item-renderer/src/core.vue.d.ts +38 -0
- package/components/form-item-renderer/src/ctx.d.ts +16 -0
- package/components/form-item-renderer/src/index.vue.d.ts +93 -0
- package/components/form-item-renderer/src/types.d.ts +5 -0
- package/components/form-item-renderer/src/utils.d.ts +5 -0
- package/components/form-item-renderer-template/index.d.ts +4 -0
- package/components/form-item-renderer-template/src/ctx.d.ts +7 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +16 -0
- package/components/form-item-renderer-template/src/types.d.ts +55 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/src/ctx.d.ts +13 -0
- package/components/information/src/index.vue.d.ts +23 -0
- package/components/information/src/types.d.ts +3 -0
- package/components/information-collection/index.d.ts +4 -0
- package/components/information-collection/src/ctx.d.ts +147 -0
- package/components/information-collection/src/index.vue.d.ts +302 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-tag/index.d.ts +4 -0
- package/components/information-tag/src/ctx.d.ts +64 -0
- package/components/information-tag/src/index.vue.d.ts +134 -0
- package/components/information-tag/src/types.d.ts +1 -0
- package/components/information-templates-default/index.d.ts +4 -0
- package/components/information-templates-default/src/ctx.d.ts +2 -0
- package/components/information-templates-default/src/index.vue.d.ts +2 -0
- package/components/information-templates-default/src/types.d.ts +1 -0
- package/components/input/index.d.ts +5 -0
- package/components/input/src/ctx.d.ts +269 -0
- package/components/input/src/index.vue.d.ts +1192 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-collection/index.cjs +105 -74
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/index.mjs +107 -76
- package/components/input-collection/src/ctx.d.ts +137 -0
- package/components/input-collection/src/index.vue.d.ts +1141 -0
- package/components/input-collection/src/types.d.ts +29 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +273 -0
- package/components/input-link/src/index.vue.d.ts +577 -0
- package/components/input-link/src/types.d.ts +7 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/src/ctx.d.ts +208 -0
- package/components/input-number/src/index.vue.d.ts +816 -0
- package/components/input-number/src/types.d.ts +12 -0
- package/components/input-tag/index.d.ts +5 -0
- package/components/input-tag/src/ctx.d.ts +239 -0
- package/components/input-tag/src/index.vue.d.ts +991 -0
- package/components/input-tag/src/types.d.ts +22 -0
- package/components/monaco-editor/index.d.ts +4 -0
- package/components/monaco-editor/src/ctx.d.ts +115 -0
- package/components/monaco-editor/src/index.vue.d.ts +303 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.cjs +2 -3
- package/components/radio/index.d.ts +4 -0
- package/components/radio/index.mjs +2 -3
- package/components/radio/src/ctx.d.ts +162 -0
- package/components/radio/src/index.vue.d.ts +1311 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/renderer-data/index.d.ts +4 -0
- package/components/renderer-data/src/ctx.d.ts +12 -0
- package/components/renderer-data/src/index.vue.d.ts +20 -0
- package/components/renderer-data/src/types.d.ts +1 -0
- package/components/select/index.d.ts +5 -0
- package/components/select/src/ctx.d.ts +225 -0
- package/components/select/src/index.vue.d.ts +1043 -0
- package/components/select/src/types.d.ts +11 -0
- package/components/slider/index.d.ts +4 -0
- package/components/slider/src/ctx.d.ts +253 -0
- package/components/slider/src/index.vue.d.ts +588 -0
- package/components/slider/src/types.d.ts +7 -0
- package/components/switch/index.d.ts +4 -0
- package/components/switch/src/ctx.d.ts +208 -0
- package/components/switch/src/index.vue.d.ts +895 -0
- package/components/switch/src/types.d.ts +8 -0
- package/components/tables-select/index.d.ts +5 -0
- package/components/tables-select/src/ctx.d.ts +420 -0
- package/components/tables-select/src/index.vue.d.ts +5411 -0
- package/components/tables-select/src/types.d.ts +9 -0
- package/components/template-instances-provider/index.d.ts +3 -0
- package/components/template-instances-provider/src/index.vue.d.ts +6 -0
- package/components/templates-default/index.d.ts +4 -0
- package/components/templates-default/src/ctx.d.ts +19 -0
- package/components/templates-default/src/index.vue.d.ts +187 -0
- package/components/templates-default/src/types.d.ts +55 -0
- package/components/templates-element-plus/index.d.ts +4 -0
- package/components/templates-element-plus/src/ctx.d.ts +9 -0
- package/components/templates-element-plus/src/index.vue.d.ts +301 -0
- package/components/templates-element-plus/src/types.d.ts +13 -0
- package/components/templates-esri/index.d.ts +4 -0
- package/components/templates-esri/src/ctx.d.ts +11 -0
- package/components/templates-esri/src/index.vue.d.ts +43 -0
- package/components/templates-esri/src/types.d.ts +2 -0
- package/components/templates-layout/index.d.ts +4 -0
- package/components/templates-layout/src/ctx.d.ts +9 -0
- package/components/templates-layout/src/index.vue.d.ts +446 -0
- package/components/templates-layout/src/types.d.ts +32 -0
- package/components/templates-variant/index.d.ts +4 -0
- package/components/templates-variant/src/ctx.d.ts +11 -0
- package/components/templates-variant/src/index.vue.d.ts +43 -0
- package/components/templates-variant/src/types.d.ts +2 -0
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.d.ts +5 -0
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/ctx.d.ts +294 -0
- package/components/upload/src/file.vue.d.ts +492 -0
- package/components/upload/src/index.vue.d.ts +1935 -0
- package/components/upload/src/types.d.ts +13 -0
- package/components/upload-plus/index.cjs +79 -86
- package/components/upload-plus/index.d.ts +6 -0
- package/components/upload-plus/index.mjs +79 -86
- package/components/upload-plus/src/api.d.ts +38 -0
- package/components/upload-plus/src/const.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +148 -0
- package/components/upload-plus/src/index.vue.d.ts +1754 -0
- package/components/upload-plus/src/types.d.ts +32 -0
- package/components/van-cascader/index.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +284 -0
- package/components/van-cascader/src/index.vue.d.ts +2116 -0
- package/components/van-cascader/src/types.d.ts +1 -0
- package/components/var-datetime-picker/index.d.ts +4 -0
- package/components/var-datetime-picker/src/const.d.ts +10 -0
- package/components/var-datetime-picker/src/ctx.d.ts +112 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +1482 -0
- package/components/var-datetime-picker/src/types.d.ts +22 -0
- package/components/vditor/index.d.ts +4 -0
- package/components/vditor/src/ctx.d.ts +122 -0
- package/components/vditor/src/index.vue.d.ts +418 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +111 -30
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { RendererTreeData } from './types';
|
|
3
|
+
declare const VkfFormItemRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
source: {
|
|
5
|
+
type: import("vue").PropType<RendererTreeData[]>;
|
|
6
|
+
default: () => any[];
|
|
7
|
+
};
|
|
8
|
+
templateInstances: {
|
|
9
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
k: {
|
|
13
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
}>, () => (VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>[] | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>[][])[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
source: {
|
|
22
|
+
type: import("vue").PropType<RendererTreeData[]>;
|
|
23
|
+
default: () => any[];
|
|
24
|
+
};
|
|
25
|
+
templateInstances: {
|
|
26
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
k: {
|
|
30
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
31
|
+
default: () => any[];
|
|
32
|
+
};
|
|
33
|
+
}>> & Readonly<{}>, {
|
|
34
|
+
source: RendererTreeData[];
|
|
35
|
+
templateInstances: Record<string, import("vue").ComponentInternalInstance>;
|
|
36
|
+
k: (string | number)[];
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default VkfFormItemRenderer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentInternalInstance, PropType } from 'vue';
|
|
2
|
+
import { RendererTreeData } from './types';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
source: {
|
|
5
|
+
type: PropType<RendererTreeData[]>;
|
|
6
|
+
default: () => any[];
|
|
7
|
+
};
|
|
8
|
+
templateInstances: {
|
|
9
|
+
type: PropType<Record<string, ComponentInternalInstance>>;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
k: {
|
|
13
|
+
type: PropType<(string | number)[]>;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
source: {
|
|
3
|
+
type: import("vue").PropType<import("./types").RendererTreeData[]>;
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
templateInstances: {
|
|
7
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
k: {
|
|
11
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
12
|
+
default: () => any[];
|
|
13
|
+
};
|
|
14
|
+
}>, {
|
|
15
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
source: {
|
|
17
|
+
type: import("vue").PropType<import("./types").RendererTreeData[]>;
|
|
18
|
+
default: () => any[];
|
|
19
|
+
};
|
|
20
|
+
templateInstances: {
|
|
21
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
k: {
|
|
25
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
26
|
+
default: () => any[];
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}> & {}>;
|
|
29
|
+
readonly VkfTemplateInstancesProvider: {
|
|
30
|
+
new (...args: any[]): any;
|
|
31
|
+
__isFragment?: never;
|
|
32
|
+
__isTeleport?: never;
|
|
33
|
+
__isSuspense?: never;
|
|
34
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
[x: symbol]: any;
|
|
37
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
38
|
+
install(app: import("vue").App): void;
|
|
39
|
+
};
|
|
40
|
+
Core: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
41
|
+
source: {
|
|
42
|
+
type: import("vue").PropType<import("./types").RendererTreeData[]>;
|
|
43
|
+
default: () => any[];
|
|
44
|
+
};
|
|
45
|
+
templateInstances: {
|
|
46
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
47
|
+
default: any;
|
|
48
|
+
};
|
|
49
|
+
k: {
|
|
50
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
51
|
+
default: () => any[];
|
|
52
|
+
};
|
|
53
|
+
}>, () => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>[] | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}>[][])[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
source: {
|
|
59
|
+
type: import("vue").PropType<import("./types").RendererTreeData[]>;
|
|
60
|
+
default: () => any[];
|
|
61
|
+
};
|
|
62
|
+
templateInstances: {
|
|
63
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
k: {
|
|
67
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
68
|
+
default: () => any[];
|
|
69
|
+
};
|
|
70
|
+
}>> & Readonly<{}>, {
|
|
71
|
+
source: import("./types").RendererTreeData[];
|
|
72
|
+
templateInstances: Record<string, import("vue").ComponentInternalInstance>;
|
|
73
|
+
k: (string | number)[];
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
source: {
|
|
77
|
+
type: import("vue").PropType<import("./types").RendererTreeData[]>;
|
|
78
|
+
default: () => any[];
|
|
79
|
+
};
|
|
80
|
+
templateInstances: {
|
|
81
|
+
type: import("vue").PropType<Record<string, import("vue").ComponentInternalInstance>>;
|
|
82
|
+
default: any;
|
|
83
|
+
};
|
|
84
|
+
k: {
|
|
85
|
+
type: import("vue").PropType<(string | number)[]>;
|
|
86
|
+
default: () => any[];
|
|
87
|
+
};
|
|
88
|
+
}>> & Readonly<{}>, {
|
|
89
|
+
source: import("./types").RendererTreeData[];
|
|
90
|
+
templateInstances: Record<string, import("vue").ComponentInternalInstance>;
|
|
91
|
+
k: (string | number)[];
|
|
92
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
type: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: boolean;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
type: string;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
|
|
2
|
+
import { NormalObject } from '@vunk/shared';
|
|
3
|
+
import type { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
|
|
4
|
+
import { MaybeArray, SetDataEvent } from '@vunk/core';
|
|
5
|
+
import { InputEffectContext } from '@vunk/form/shared';
|
|
6
|
+
type RendererTreeData = __VkfFormItemRenderer.RendererTreeData;
|
|
7
|
+
type InternalField = 'templateType' | 'templateIf' | 'informationProps' | 'templateProps' | 'inputEffect';
|
|
8
|
+
export interface DefaultSlotArguments {
|
|
9
|
+
raw: RendererTreeData;
|
|
10
|
+
/**
|
|
11
|
+
* 根据 templateIf 生成的控制显隐事件
|
|
12
|
+
*/
|
|
13
|
+
templateIf: (e: NormalObject) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use props
|
|
16
|
+
*/
|
|
17
|
+
data: any;
|
|
18
|
+
/**
|
|
19
|
+
* 当前表单项的数据,排除渲染占用字段
|
|
20
|
+
*/
|
|
21
|
+
props: Omit<RendererTreeData, InternalField>;
|
|
22
|
+
/**
|
|
23
|
+
* 提供给 Information 组件的 props
|
|
24
|
+
*/
|
|
25
|
+
informationProps: NormalObject;
|
|
26
|
+
/**
|
|
27
|
+
* 当前表单项,在整个 formItems 中的位置
|
|
28
|
+
*/
|
|
29
|
+
k: (string | number)[];
|
|
30
|
+
/**
|
|
31
|
+
* FormItemRenderer 便于子组件使用
|
|
32
|
+
*/
|
|
33
|
+
Renderer: typeof VkfFormItemRenderer;
|
|
34
|
+
/**
|
|
35
|
+
* 对应的表单数据(如果formItem提供prop)
|
|
36
|
+
*/
|
|
37
|
+
value?: never;
|
|
38
|
+
/**
|
|
39
|
+
* 更新表单数据(如果formItem提供prop)
|
|
40
|
+
*/
|
|
41
|
+
input?: (v: any) => void;
|
|
42
|
+
/**
|
|
43
|
+
* input 执行后的副操作
|
|
44
|
+
*/
|
|
45
|
+
inputEffect?: (v: any, e: InputEffectContext) => void;
|
|
46
|
+
/**
|
|
47
|
+
* 从表单数据中获取对应的值
|
|
48
|
+
*/
|
|
49
|
+
getDataValue: (key: MaybeArray<number | string>) => any;
|
|
50
|
+
/**
|
|
51
|
+
* 更新表单数据
|
|
52
|
+
*/
|
|
53
|
+
emitSetData: (e: SetDataEvent) => void;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NormalObject } from '@vunk/shared';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<NormalObject>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
formItems: {
|
|
9
|
+
type: PropType<any[]>;
|
|
10
|
+
default: () => any[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const emits: {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
formItems: {
|
|
7
|
+
type: import("vue").PropType<any[]>;
|
|
8
|
+
default: () => any[];
|
|
9
|
+
};
|
|
10
|
+
}>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
data: {
|
|
12
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
formItems: {
|
|
16
|
+
type: import("vue").PropType<any[]>;
|
|
17
|
+
default: () => any[];
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
data: import("@vunk/shared").NormalObject;
|
|
21
|
+
formItems: any[];
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Func } from '@vunk/core';
|
|
2
|
+
import { NormalObject } from '@vunk/shared';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
import { TagProps } from 'element-plus';
|
|
5
|
+
export declare const props: {
|
|
6
|
+
information: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: {
|
|
12
|
+
(arrayLength: number): NormalObject[];
|
|
13
|
+
(...items: NormalObject[]): NormalObject[];
|
|
14
|
+
new (arrayLength: number): NormalObject[];
|
|
15
|
+
new (...items: NormalObject[]): NormalObject[];
|
|
16
|
+
isArray(arg: any): arg is any[];
|
|
17
|
+
readonly prototype: any[];
|
|
18
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
19
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
20
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
21
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
22
|
+
of<T>(...items: T[]): T[];
|
|
23
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
24
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
25
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
26
|
+
};
|
|
27
|
+
default: () => any[];
|
|
28
|
+
};
|
|
29
|
+
columns: {
|
|
30
|
+
type: {
|
|
31
|
+
(arrayLength: number): any[];
|
|
32
|
+
(...items: any[]): any[];
|
|
33
|
+
new (arrayLength: number): any[];
|
|
34
|
+
new (...items: any[]): any[];
|
|
35
|
+
isArray(arg: any): arg is any[];
|
|
36
|
+
readonly prototype: any[];
|
|
37
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
38
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
39
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
40
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
41
|
+
of<T>(...items: T[]): T[];
|
|
42
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
43
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
44
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
45
|
+
};
|
|
46
|
+
default: () => any[];
|
|
47
|
+
};
|
|
48
|
+
labelRender: {
|
|
49
|
+
type: PropType<Func<any, string>>;
|
|
50
|
+
default: any;
|
|
51
|
+
};
|
|
52
|
+
typeRender: {
|
|
53
|
+
type: PropType<Func<any, TagProps["type"]>>;
|
|
54
|
+
default: any;
|
|
55
|
+
};
|
|
56
|
+
required: {
|
|
57
|
+
readonly type: PropType<boolean>;
|
|
58
|
+
readonly required: false;
|
|
59
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
60
|
+
__epPropKey: true;
|
|
61
|
+
} & {
|
|
62
|
+
readonly default: undefined;
|
|
63
|
+
};
|
|
64
|
+
formItemSize: {
|
|
65
|
+
type: PropType<"default" | "small" | "large">;
|
|
66
|
+
default: "default" | "small" | "large";
|
|
67
|
+
};
|
|
68
|
+
formItemSlots: {
|
|
69
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
70
|
+
default: any;
|
|
71
|
+
};
|
|
72
|
+
elRef: {
|
|
73
|
+
type: PropType<any>;
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
inline: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
readonly: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: any;
|
|
83
|
+
};
|
|
84
|
+
formItemTip: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: any;
|
|
87
|
+
};
|
|
88
|
+
formItemTipClass: any;
|
|
89
|
+
labelTip: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: any;
|
|
92
|
+
};
|
|
93
|
+
label: StringConstructor;
|
|
94
|
+
labelWidth: {
|
|
95
|
+
readonly type: PropType<string | number>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
} & {
|
|
100
|
+
readonly default: "";
|
|
101
|
+
};
|
|
102
|
+
labelPosition: {
|
|
103
|
+
readonly type: PropType<"" | "top" | "left" | "right">;
|
|
104
|
+
readonly required: false;
|
|
105
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
106
|
+
__epPropKey: true;
|
|
107
|
+
} & {
|
|
108
|
+
readonly default: "";
|
|
109
|
+
};
|
|
110
|
+
prop: {
|
|
111
|
+
readonly type: PropType<import("element-plus").FormItemProp>;
|
|
112
|
+
readonly required: false;
|
|
113
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
114
|
+
__epPropKey: true;
|
|
115
|
+
};
|
|
116
|
+
rules: {
|
|
117
|
+
readonly type: PropType<unknown>;
|
|
118
|
+
readonly required: false;
|
|
119
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
|
+
__epPropKey: true;
|
|
121
|
+
};
|
|
122
|
+
error: StringConstructor;
|
|
123
|
+
validateStatus: {
|
|
124
|
+
readonly type: PropType<"" | "error" | "success" | "validating">;
|
|
125
|
+
readonly required: false;
|
|
126
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
127
|
+
__epPropKey: true;
|
|
128
|
+
};
|
|
129
|
+
for: StringConstructor;
|
|
130
|
+
inlineMessage: {
|
|
131
|
+
readonly type: PropType<string | boolean>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
|
+
__epPropKey: true;
|
|
135
|
+
} & {
|
|
136
|
+
readonly default: "";
|
|
137
|
+
};
|
|
138
|
+
showMessage: {
|
|
139
|
+
readonly type: PropType<boolean>;
|
|
140
|
+
readonly required: false;
|
|
141
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
142
|
+
__epPropKey: true;
|
|
143
|
+
} & {
|
|
144
|
+
readonly default: true;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export declare const emits: {};
|