@vunk/form 2.16.6 → 2.16.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/api-tables-select/index.d.ts +4 -0
- package/components/api-tables-select/src/ctx.d.ts +375 -0
- package/components/api-tables-select/src/index.vue.d.ts +1340 -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 +193 -0
- package/components/button/src/index.vue.d.ts +851 -0
- package/components/button/src/types.d.ts +13 -0
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/src/core.vue.d.ts +1125 -0
- package/components/card-input-collection/src/ctx.d.ts +154 -0
- package/components/card-input-collection/src/index.vue.d.ts +287 -0
- package/components/card-input-collection/src/types.d.ts +17 -0
- package/components/cascader/index.d.ts +6 -0
- package/components/cascader/src/ctx.d.ts +343 -0
- package/components/cascader/src/index.vue.d.ts +775 -0
- package/components/cascader/src/types.d.ts +19 -0
- package/components/cascader/src/use.d.ts +5 -0
- package/components/checkbox/index.d.ts +5 -0
- package/components/checkbox/src/ctx.d.ts +146 -0
- package/components/checkbox/src/index.vue.d.ts +1353 -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 +179 -0
- package/components/color-picker/src/index.vue.d.ts +398 -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 +364 -0
- package/components/date-picker/src/index.vue.d.ts +1665 -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 +372 -0
- package/components/date-picker-range/src/index.vue.d.ts +808 -0
- package/components/date-picker-range/src/types.d.ts +12 -0
- package/components/dialog/index.d.ts +4 -0
- package/components/dialog/src/ctx.d.ts +174 -0
- package/components/dialog/src/index.vue.d.ts +1180 -0
- package/components/dialog/src/types.d.ts +1 -0
- package/components/dialog-input-collection/index.d.ts +4 -0
- package/components/dialog-input-collection/src/ctx.d.ts +141 -0
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +6430 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +7773 -0
- package/components/dialog-input-collection/src/layout.vue.d.ts +85 -0
- package/components/dialog-input-collection/src/types.d.ts +28 -0
- package/components/download-plus/index.d.ts +4 -0
- 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 +125 -0
- package/components/download-plus/src/index.vue.d.ts +1495 -0
- package/components/download-plus/src/types.d.ts +17 -0
- package/components/editable-text/index.d.ts +4 -0
- package/components/editable-text/src/ctx.d.ts +128 -0
- package/components/editable-text/src/index.vue.d.ts +3389 -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 +1200 -0
- package/components/esri-input-geojson/src/const.d.ts +12 -0
- package/components/esri-input-geojson/src/ctx.d.ts +351 -0
- package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +1488 -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 +16 -0
- package/components/fieldset/src/index.vue.d.ts +32 -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 +139 -0
- package/components/form/src/index.vue.d.ts +2613 -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/core.vue.d.ts +1874 -0
- package/components/form-item/src/ctx.d.ts +103 -0
- package/components/form-item/src/index.vue.d.ts +214 -0
- package/components/form-item/src/types.d.ts +10 -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/forms-provider/index.d.ts +6 -0
- package/components/forms-provider/src/core.d.ts +6 -0
- package/components/forms-provider/src/index.vue.d.ts +2 -0
- package/components/forms-provider/src/segment.vue.d.ts +9 -0
- package/components/forms-provider/src/types.d.ts +10 -0
- package/components/forms-provider/src/view.vue.d.ts +7 -0
- package/components/information/index.d.ts +4 -0
- package/components/information/src/ctx.d.ts +16 -0
- package/components/information/src/index.vue.d.ts +27 -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 +143 -0
- package/components/information-collection/src/index.vue.d.ts +296 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-renderer/index.d.ts +73 -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 +280 -0
- package/components/input/src/index.vue.d.ts +1268 -0
- package/components/input/src/types.d.ts +13 -0
- package/components/input-array/index.d.ts +5 -0
- package/components/input-array/src/ctx.d.ts +136 -0
- package/components/input-array/src/form-template.vue.d.ts +901 -0
- package/components/input-array/src/index.vue.d.ts +889 -0
- package/components/input-array/src/types.d.ts +7 -0
- package/components/input-collection/index.d.ts +4 -0
- package/components/input-collection/src/core.vue.d.ts +1203 -0
- package/components/input-collection/src/ctx.d.ts +154 -0
- package/components/input-collection/src/index.vue.d.ts +296 -0
- package/components/input-collection/src/types.d.ts +29 -0
- package/components/input-file/index.d.ts +5 -0
- package/components/input-file/src/ctx.d.ts +46 -0
- package/components/input-file/src/index.vue.d.ts +112 -0
- package/components/input-file/src/template.vue.d.ts +125 -0
- package/components/input-file/src/types.d.ts +8 -0
- package/components/input-link/index.d.ts +4 -0
- package/components/input-link/src/ctx.d.ts +284 -0
- package/components/input-link/src/index.vue.d.ts +602 -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 +221 -0
- package/components/input-number/src/index.vue.d.ts +910 -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 +244 -0
- package/components/input-tag/src/index.vue.d.ts +1050 -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 +111 -0
- package/components/monaco-editor/src/index.vue.d.ts +297 -0
- package/components/monaco-editor/src/types.d.ts +7 -0
- package/components/radio/index.d.ts +4 -0
- package/components/radio/src/ctx.d.ts +165 -0
- package/components/radio/src/index.vue.d.ts +1488 -0
- package/components/radio/src/option.vue.d.ts +901 -0
- package/components/radio/src/types.d.ts +8 -0
- package/components/radio/src/wraper.vue.d.ts +337 -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.cjs +29 -11
- package/components/select/index.d.ts +5 -0
- package/components/select/index.mjs +29 -11
- package/components/select/src/core.vue.d.ts +1601 -0
- package/components/select/src/ctx.d.ts +386 -0
- package/components/select/src/index.vue.d.ts +946 -0
- package/components/select/src/options.vue.d.ts +51 -0
- package/components/select/src/types.d.ts +19 -0
- package/components/slider/index.d.ts +4 -0
- package/components/slider/src/ctx.d.ts +248 -0
- package/components/slider/src/index.vue.d.ts +579 -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 +201 -0
- package/components/switch/src/index.vue.d.ts +882 -0
- package/components/switch/src/types.d.ts +7 -0
- package/components/tables-select/index.d.ts +5 -0
- package/components/tables-select/src/ctx.d.ts +421 -0
- package/components/tables-select/src/index.vue.d.ts +5510 -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.d.ts +5 -0
- package/components/upload/src/ctx.d.ts +291 -0
- package/components/upload/src/file.vue.d.ts +913 -0
- package/components/upload/src/index.vue.d.ts +2347 -0
- package/components/upload/src/types.d.ts +13 -0
- package/components/upload/src/wraper.vue.d.ts +590 -0
- package/components/upload-plus/index.d.ts +6 -0
- 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 +144 -0
- package/components/upload-plus/src/index.vue.d.ts +1813 -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 +330 -0
- package/components/van-cascader/src/index.vue.d.ts +1241 -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 +108 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +1622 -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 +118 -0
- package/components/vditor/src/index.vue.d.ts +412 -0
- package/components/vditor/src/types.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __VkTablesV1 } from '@vunk/plus/components/tables-v1';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/shared';
|
|
3
|
+
import Core from './index.vue';
|
|
4
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
5
|
+
export interface Source<P = string> extends BasicSource, VueComponentPropsType<typeof Core> {
|
|
6
|
+
prop?: P;
|
|
7
|
+
templateType: 'VkfTablesSelect';
|
|
8
|
+
}
|
|
9
|
+
export type Column = __VkTablesV1.Column;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>[]) | (() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>[][]), {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SetDataEvent } from '@vunk/core/shared/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { CreateIntoUndefined } from './types';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
data: {
|
|
6
|
+
type: PropType<Record<string, any>>;
|
|
7
|
+
default: () => {};
|
|
8
|
+
};
|
|
9
|
+
createIntoUndefined: {
|
|
10
|
+
type: PropType<CreateIntoUndefined>;
|
|
11
|
+
default: (arg: {
|
|
12
|
+
raw: any;
|
|
13
|
+
data: Record<string, any>;
|
|
14
|
+
}) => import("@vunk/core/shared/types").IntoUndefined;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const emits: {
|
|
18
|
+
setData: (e: SetDataEvent) => SetDataEvent;
|
|
19
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
createIntoUndefined: {
|
|
7
|
+
type: import("vue").PropType<import("./types").CreateIntoUndefined>;
|
|
8
|
+
default: (arg: {
|
|
9
|
+
raw: any;
|
|
10
|
+
data: Record<string, any>;
|
|
11
|
+
}) => import("@vunk/core").IntoUndefined;
|
|
12
|
+
};
|
|
13
|
+
}>, {
|
|
14
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
|
|
15
|
+
excludes?: EX;
|
|
16
|
+
includes?: KI[];
|
|
17
|
+
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
data: {
|
|
22
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
createIntoUndefined: {
|
|
26
|
+
type: import("vue").PropType<import("./types").CreateIntoUndefined>;
|
|
27
|
+
default: (arg: {
|
|
28
|
+
raw: any;
|
|
29
|
+
data: Record<string, any>;
|
|
30
|
+
}) => import("@vunk/core").IntoUndefined;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
|
|
34
|
+
}>, {
|
|
35
|
+
data: Record<string, any>;
|
|
36
|
+
createIntoUndefined: (arg: {
|
|
37
|
+
raw: any;
|
|
38
|
+
data: Record<string, any>;
|
|
39
|
+
}) => import("@vunk/core").IntoUndefined;
|
|
40
|
+
}, {}, {
|
|
41
|
+
VkfFormItemRendererTemplate: {
|
|
42
|
+
new (...args: any[]): any;
|
|
43
|
+
__isFragment?: never;
|
|
44
|
+
__isTeleport?: never;
|
|
45
|
+
__isSuspense?: never;
|
|
46
|
+
} & 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, {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
[x: symbol]: any;
|
|
49
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
50
|
+
install(app: import("vue").App): void;
|
|
51
|
+
};
|
|
52
|
+
VkfInput: {
|
|
53
|
+
new (...args: any[]): any;
|
|
54
|
+
__isFragment?: never;
|
|
55
|
+
__isTeleport?: never;
|
|
56
|
+
__isSuspense?: never;
|
|
57
|
+
} & 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, {
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
[x: symbol]: any;
|
|
60
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
61
|
+
install(app: import("vue").App): void;
|
|
62
|
+
};
|
|
63
|
+
VkfSwitch: {
|
|
64
|
+
new (...args: any[]): any;
|
|
65
|
+
__isFragment?: never;
|
|
66
|
+
__isTeleport?: never;
|
|
67
|
+
__isSuspense?: never;
|
|
68
|
+
} & 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, {
|
|
69
|
+
[x: string]: any;
|
|
70
|
+
[x: symbol]: any;
|
|
71
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
72
|
+
install(app: import("vue").App): void;
|
|
73
|
+
};
|
|
74
|
+
VkfSelect: {
|
|
75
|
+
new (...args: any[]): any;
|
|
76
|
+
__isFragment?: never;
|
|
77
|
+
__isTeleport?: never;
|
|
78
|
+
__isSuspense?: never;
|
|
79
|
+
} & 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, {
|
|
80
|
+
[x: string]: any;
|
|
81
|
+
[x: symbol]: any;
|
|
82
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
83
|
+
install(app: import("vue").App): void;
|
|
84
|
+
};
|
|
85
|
+
VkfDatePicker: {
|
|
86
|
+
new (...args: any[]): any;
|
|
87
|
+
__isFragment?: never;
|
|
88
|
+
__isTeleport?: never;
|
|
89
|
+
__isSuspense?: never;
|
|
90
|
+
} & 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, {
|
|
91
|
+
[x: string]: any;
|
|
92
|
+
[x: symbol]: any;
|
|
93
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
94
|
+
install(app: import("vue").App): void;
|
|
95
|
+
};
|
|
96
|
+
VkfInputNumber: {
|
|
97
|
+
new (...args: any[]): any;
|
|
98
|
+
__isFragment?: never;
|
|
99
|
+
__isTeleport?: never;
|
|
100
|
+
__isSuspense?: never;
|
|
101
|
+
} & 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, {
|
|
102
|
+
[x: string]: any;
|
|
103
|
+
[x: symbol]: any;
|
|
104
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
105
|
+
install(app: import("vue").App): void;
|
|
106
|
+
};
|
|
107
|
+
VkfRadio: {
|
|
108
|
+
new (...args: any[]): any;
|
|
109
|
+
__isFragment?: never;
|
|
110
|
+
__isTeleport?: never;
|
|
111
|
+
__isSuspense?: never;
|
|
112
|
+
} & 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, {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
[x: symbol]: any;
|
|
115
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
116
|
+
install(app: import("vue").App): void;
|
|
117
|
+
};
|
|
118
|
+
VkfCheckbox: {
|
|
119
|
+
new (...args: any[]): any;
|
|
120
|
+
__isFragment?: never;
|
|
121
|
+
__isTeleport?: never;
|
|
122
|
+
__isSuspense?: never;
|
|
123
|
+
} & 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, {
|
|
124
|
+
[x: string]: any;
|
|
125
|
+
[x: symbol]: any;
|
|
126
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
127
|
+
install(app: import("vue").App): void;
|
|
128
|
+
};
|
|
129
|
+
VkfUpload: {
|
|
130
|
+
new (...args: any[]): any;
|
|
131
|
+
__isFragment?: never;
|
|
132
|
+
__isTeleport?: never;
|
|
133
|
+
__isSuspense?: never;
|
|
134
|
+
} & 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, {
|
|
135
|
+
[x: string]: any;
|
|
136
|
+
[x: symbol]: any;
|
|
137
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
138
|
+
install(app: import("vue").App): void;
|
|
139
|
+
};
|
|
140
|
+
VkfColorPicker: {
|
|
141
|
+
new (...args: any[]): any;
|
|
142
|
+
__isFragment?: never;
|
|
143
|
+
__isTeleport?: never;
|
|
144
|
+
__isSuspense?: never;
|
|
145
|
+
} & 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, {
|
|
146
|
+
[x: string]: any;
|
|
147
|
+
[x: symbol]: any;
|
|
148
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
149
|
+
install(app: import("vue").App): void;
|
|
150
|
+
};
|
|
151
|
+
VkfButton: {
|
|
152
|
+
new (...args: any[]): any;
|
|
153
|
+
__isFragment?: never;
|
|
154
|
+
__isTeleport?: never;
|
|
155
|
+
__isSuspense?: never;
|
|
156
|
+
} & 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, {
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
[x: symbol]: any;
|
|
159
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
160
|
+
install(app: import("vue").App): void;
|
|
161
|
+
};
|
|
162
|
+
VkfCascader: never;
|
|
163
|
+
VkfInputLink: never;
|
|
164
|
+
VkfSlider: {
|
|
165
|
+
new (...args: any[]): any;
|
|
166
|
+
__isFragment?: never;
|
|
167
|
+
__isTeleport?: never;
|
|
168
|
+
__isSuspense?: never;
|
|
169
|
+
} & 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, {
|
|
170
|
+
[x: string]: any;
|
|
171
|
+
[x: symbol]: any;
|
|
172
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
173
|
+
install(app: import("vue").App): void;
|
|
174
|
+
};
|
|
175
|
+
VkfInputTag: {
|
|
176
|
+
new (...args: any[]): any;
|
|
177
|
+
__isFragment?: never;
|
|
178
|
+
__isTeleport?: never;
|
|
179
|
+
__isSuspense?: never;
|
|
180
|
+
} & 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, {
|
|
181
|
+
[x: string]: any;
|
|
182
|
+
[x: symbol]: any;
|
|
183
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
184
|
+
install(app: import("vue").App): void;
|
|
185
|
+
};
|
|
186
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
187
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
2
|
+
import { __VkfButton } from '@vunk/form/components/button';
|
|
3
|
+
import { __VkfInput } from '@vunk/form/components/input';
|
|
4
|
+
import { __VkfDatePicker } from '@vunk/form/components/date-picker';
|
|
5
|
+
import { __VkfSelect } from '@vunk/form/components/select';
|
|
6
|
+
import { __VkfSwitch } from '@vunk/form/components/switch';
|
|
7
|
+
import { __VkfInputNumber } from '@vunk/form/components/input-number';
|
|
8
|
+
import { __VkfRadio } from '@vunk/form/components/radio';
|
|
9
|
+
import { __VkfCheckbox } from '@vunk/form/components/checkbox';
|
|
10
|
+
import { __VkfUpload } from '@vunk/form/components/upload';
|
|
11
|
+
import { __VkfColorPicker } from '@vunk/form/components/color-picker';
|
|
12
|
+
import { __VkfCascader } from '@vunk/form/components/cascader';
|
|
13
|
+
import { __VkfInputLink } from '@vunk/form/components/input-link';
|
|
14
|
+
import { __VkfSlider } from '@vunk/form/components/slider';
|
|
15
|
+
import { __VkfInputTag } from '@vunk/form/components/input-tag';
|
|
16
|
+
import { IntoUndefined, Func } from '@vunk/core';
|
|
17
|
+
export type VkfButtonSource<P = string> = __VkfButton.Source<P>;
|
|
18
|
+
export type VkfInputSource<P = string> = __VkfInput.Source<P>;
|
|
19
|
+
export type VkfDatePickerSource<P = string> = __VkfDatePicker.Source<P>;
|
|
20
|
+
export type VkfSelectSource<P = string> = __VkfSelect.Source<P>;
|
|
21
|
+
export type VkfSwitchSource<P = string> = __VkfSwitch.Source<P>;
|
|
22
|
+
export type VkfInputNumberSource<P = string> = __VkfInputNumber.Source<P>;
|
|
23
|
+
export type VkfRadioSource<P = string> = __VkfRadio.Source<P>;
|
|
24
|
+
export type VkfCheckboxSource<P = string> = __VkfCheckbox.Source<P>;
|
|
25
|
+
export type VkfUploadSource<P = string> = __VkfUpload.Source<P>;
|
|
26
|
+
export type VkfColorPickerSource<P = string> = __VkfColorPicker.Source<P>;
|
|
27
|
+
export type VkfCascaderSource<P = string> = __VkfCascader.Source<P>;
|
|
28
|
+
export type VkfInputLinkSource<P = string> = __VkfInputLink.Source<P>;
|
|
29
|
+
export type VkfSliderSource<P = string> = __VkfSlider.Source<P>;
|
|
30
|
+
export type VkfInputTagSource<P = string> = __VkfInputTag.Source<P>;
|
|
31
|
+
export interface ComponentSource extends BasicSource {
|
|
32
|
+
templateType: 'Component';
|
|
33
|
+
is: any;
|
|
34
|
+
}
|
|
35
|
+
export type CoreSource<P = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource<P> | VkfCascaderSource<P> | VkfInputLinkSource<P> | VkfSliderSource<P> | VkfInputTagSource<P>;
|
|
36
|
+
export type Source<P = string> = CoreSource<P> | ComponentSource;
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const createIntoUndefined = ({ raw }) => {
|
|
41
|
+
* const objectFields = ['rules']
|
|
42
|
+
* const isObjectFields = objectFields.includes(raw.prop)
|
|
43
|
+
* return (currentData, currentK) => {
|
|
44
|
+
* )
|
|
45
|
+
* if (isObjectFields) {
|
|
46
|
+
* currentData[currentK] = {}
|
|
47
|
+
* }
|
|
48
|
+
* }
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export type CreateIntoUndefined = Func<{
|
|
53
|
+
raw: any;
|
|
54
|
+
data: Record<string, any>;
|
|
55
|
+
}, IntoUndefined>;
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}>, {
|
|
7
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
|
|
8
|
+
excludes?: EX;
|
|
9
|
+
includes?: KI[];
|
|
10
|
+
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
data: {
|
|
13
|
+
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}>> & Readonly<{}>, {
|
|
17
|
+
data: import("@vunk/core").NormalObject;
|
|
18
|
+
}, {}, {
|
|
19
|
+
VkfFormItemRendererTemplate: {
|
|
20
|
+
new (...args: any[]): any;
|
|
21
|
+
__isFragment?: never;
|
|
22
|
+
__isTeleport?: never;
|
|
23
|
+
__isSuspense?: never;
|
|
24
|
+
} & 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, {
|
|
25
|
+
[x: string]: any;
|
|
26
|
+
[x: symbol]: any;
|
|
27
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
28
|
+
install(app: import("vue").App): void;
|
|
29
|
+
};
|
|
30
|
+
ElLink: {
|
|
31
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
readonly type: {
|
|
33
|
+
readonly type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
34
|
+
readonly required: false;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
+
__epPropKey: true;
|
|
37
|
+
} & {
|
|
38
|
+
readonly default: undefined;
|
|
39
|
+
};
|
|
40
|
+
readonly underline: {
|
|
41
|
+
readonly type: import("vue").PropType<boolean | "hover" | "always" | "never">;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
} & {
|
|
46
|
+
readonly default: undefined;
|
|
47
|
+
};
|
|
48
|
+
readonly disabled: BooleanConstructor;
|
|
49
|
+
readonly href: {
|
|
50
|
+
readonly type: import("vue").PropType<string>;
|
|
51
|
+
readonly required: false;
|
|
52
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
|
+
__epPropKey: true;
|
|
54
|
+
} & {
|
|
55
|
+
readonly default: "";
|
|
56
|
+
};
|
|
57
|
+
readonly target: {
|
|
58
|
+
readonly type: import("vue").PropType<string>;
|
|
59
|
+
readonly required: false;
|
|
60
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
+
__epPropKey: true;
|
|
62
|
+
} & {
|
|
63
|
+
readonly default: "_self";
|
|
64
|
+
};
|
|
65
|
+
readonly icon: {
|
|
66
|
+
readonly type: import("vue").PropType<unknown>;
|
|
67
|
+
readonly required: false;
|
|
68
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
|
+
__epPropKey: true;
|
|
70
|
+
};
|
|
71
|
+
}>> & {
|
|
72
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
73
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
click: (evt: MouseEvent) => void;
|
|
75
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
76
|
+
readonly disabled: boolean;
|
|
77
|
+
readonly underline: boolean | "hover" | "always" | "never";
|
|
78
|
+
readonly type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
79
|
+
readonly target: string;
|
|
80
|
+
readonly href: string;
|
|
81
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
82
|
+
P: {};
|
|
83
|
+
B: {};
|
|
84
|
+
D: {};
|
|
85
|
+
C: {};
|
|
86
|
+
M: {};
|
|
87
|
+
Defaults: {};
|
|
88
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
89
|
+
readonly type: {
|
|
90
|
+
readonly type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
91
|
+
readonly required: false;
|
|
92
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
|
+
__epPropKey: true;
|
|
94
|
+
} & {
|
|
95
|
+
readonly default: undefined;
|
|
96
|
+
};
|
|
97
|
+
readonly underline: {
|
|
98
|
+
readonly type: import("vue").PropType<boolean | "hover" | "always" | "never">;
|
|
99
|
+
readonly required: false;
|
|
100
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
101
|
+
__epPropKey: true;
|
|
102
|
+
} & {
|
|
103
|
+
readonly default: undefined;
|
|
104
|
+
};
|
|
105
|
+
readonly disabled: BooleanConstructor;
|
|
106
|
+
readonly href: {
|
|
107
|
+
readonly type: import("vue").PropType<string>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
} & {
|
|
112
|
+
readonly default: "";
|
|
113
|
+
};
|
|
114
|
+
readonly target: {
|
|
115
|
+
readonly type: import("vue").PropType<string>;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
} & {
|
|
120
|
+
readonly default: "_self";
|
|
121
|
+
};
|
|
122
|
+
readonly icon: {
|
|
123
|
+
readonly type: import("vue").PropType<unknown>;
|
|
124
|
+
readonly required: false;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
+
__epPropKey: true;
|
|
127
|
+
};
|
|
128
|
+
}>> & {
|
|
129
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
130
|
+
}, {}, {}, {}, {}, {
|
|
131
|
+
readonly disabled: boolean;
|
|
132
|
+
readonly underline: boolean | "hover" | "always" | "never";
|
|
133
|
+
readonly type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
134
|
+
readonly target: string;
|
|
135
|
+
readonly href: string;
|
|
136
|
+
}>;
|
|
137
|
+
__isFragment?: never;
|
|
138
|
+
__isTeleport?: never;
|
|
139
|
+
__isSuspense?: never;
|
|
140
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
readonly type: {
|
|
142
|
+
readonly type: import("vue").PropType<"default" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
143
|
+
readonly required: false;
|
|
144
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
145
|
+
__epPropKey: true;
|
|
146
|
+
} & {
|
|
147
|
+
readonly default: undefined;
|
|
148
|
+
};
|
|
149
|
+
readonly underline: {
|
|
150
|
+
readonly type: import("vue").PropType<boolean | "hover" | "always" | "never">;
|
|
151
|
+
readonly required: false;
|
|
152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
+
__epPropKey: true;
|
|
154
|
+
} & {
|
|
155
|
+
readonly default: undefined;
|
|
156
|
+
};
|
|
157
|
+
readonly disabled: BooleanConstructor;
|
|
158
|
+
readonly href: {
|
|
159
|
+
readonly type: import("vue").PropType<string>;
|
|
160
|
+
readonly required: false;
|
|
161
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
162
|
+
__epPropKey: true;
|
|
163
|
+
} & {
|
|
164
|
+
readonly default: "";
|
|
165
|
+
};
|
|
166
|
+
readonly target: {
|
|
167
|
+
readonly type: import("vue").PropType<string>;
|
|
168
|
+
readonly required: false;
|
|
169
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
170
|
+
__epPropKey: true;
|
|
171
|
+
} & {
|
|
172
|
+
readonly default: "_self";
|
|
173
|
+
};
|
|
174
|
+
readonly icon: {
|
|
175
|
+
readonly type: import("vue").PropType<unknown>;
|
|
176
|
+
readonly required: false;
|
|
177
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
178
|
+
__epPropKey: true;
|
|
179
|
+
};
|
|
180
|
+
}>> & {
|
|
181
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
182
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
183
|
+
click: (evt: MouseEvent) => void;
|
|
184
|
+
}, string, {
|
|
185
|
+
readonly disabled: boolean;
|
|
186
|
+
readonly underline: boolean | "hover" | "always" | "never";
|
|
187
|
+
readonly type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
188
|
+
readonly target: string;
|
|
189
|
+
readonly href: string;
|
|
190
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
191
|
+
$slots: {
|
|
192
|
+
default?(_: {}): any;
|
|
193
|
+
icon?(_: {}): any;
|
|
194
|
+
};
|
|
195
|
+
}) & import("vue").Plugin;
|
|
196
|
+
ElDivider: {
|
|
197
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
198
|
+
readonly direction: {
|
|
199
|
+
readonly type: import("vue").PropType<"horizontal" | "vertical">;
|
|
200
|
+
readonly required: false;
|
|
201
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
202
|
+
__epPropKey: true;
|
|
203
|
+
} & {
|
|
204
|
+
readonly default: "horizontal";
|
|
205
|
+
};
|
|
206
|
+
readonly contentPosition: {
|
|
207
|
+
readonly type: import("vue").PropType<"left" | "right" | "center">;
|
|
208
|
+
readonly required: false;
|
|
209
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
210
|
+
__epPropKey: true;
|
|
211
|
+
} & {
|
|
212
|
+
readonly default: "center";
|
|
213
|
+
};
|
|
214
|
+
readonly borderStyle: {
|
|
215
|
+
readonly type: import("vue").PropType<string>;
|
|
216
|
+
readonly required: false;
|
|
217
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
218
|
+
__epPropKey: true;
|
|
219
|
+
} & {
|
|
220
|
+
readonly default: "solid";
|
|
221
|
+
};
|
|
222
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
|
223
|
+
readonly direction: "horizontal" | "vertical";
|
|
224
|
+
readonly borderStyle: string;
|
|
225
|
+
readonly contentPosition: "left" | "right" | "center";
|
|
226
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
227
|
+
P: {};
|
|
228
|
+
B: {};
|
|
229
|
+
D: {};
|
|
230
|
+
C: {};
|
|
231
|
+
M: {};
|
|
232
|
+
Defaults: {};
|
|
233
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
234
|
+
readonly direction: {
|
|
235
|
+
readonly type: import("vue").PropType<"horizontal" | "vertical">;
|
|
236
|
+
readonly required: false;
|
|
237
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
238
|
+
__epPropKey: true;
|
|
239
|
+
} & {
|
|
240
|
+
readonly default: "horizontal";
|
|
241
|
+
};
|
|
242
|
+
readonly contentPosition: {
|
|
243
|
+
readonly type: import("vue").PropType<"left" | "right" | "center">;
|
|
244
|
+
readonly required: false;
|
|
245
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
246
|
+
__epPropKey: true;
|
|
247
|
+
} & {
|
|
248
|
+
readonly default: "center";
|
|
249
|
+
};
|
|
250
|
+
readonly borderStyle: {
|
|
251
|
+
readonly type: import("vue").PropType<string>;
|
|
252
|
+
readonly required: false;
|
|
253
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
254
|
+
__epPropKey: true;
|
|
255
|
+
} & {
|
|
256
|
+
readonly default: "solid";
|
|
257
|
+
};
|
|
258
|
+
}>>, {}, {}, {}, {}, {
|
|
259
|
+
readonly direction: "horizontal" | "vertical";
|
|
260
|
+
readonly borderStyle: string;
|
|
261
|
+
readonly contentPosition: "left" | "right" | "center";
|
|
262
|
+
}>;
|
|
263
|
+
__isFragment?: never;
|
|
264
|
+
__isTeleport?: never;
|
|
265
|
+
__isSuspense?: never;
|
|
266
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
267
|
+
readonly direction: {
|
|
268
|
+
readonly type: import("vue").PropType<"horizontal" | "vertical">;
|
|
269
|
+
readonly required: false;
|
|
270
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
271
|
+
__epPropKey: true;
|
|
272
|
+
} & {
|
|
273
|
+
readonly default: "horizontal";
|
|
274
|
+
};
|
|
275
|
+
readonly contentPosition: {
|
|
276
|
+
readonly type: import("vue").PropType<"left" | "right" | "center">;
|
|
277
|
+
readonly required: false;
|
|
278
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
279
|
+
__epPropKey: true;
|
|
280
|
+
} & {
|
|
281
|
+
readonly default: "center";
|
|
282
|
+
};
|
|
283
|
+
readonly borderStyle: {
|
|
284
|
+
readonly type: import("vue").PropType<string>;
|
|
285
|
+
readonly required: false;
|
|
286
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
287
|
+
__epPropKey: true;
|
|
288
|
+
} & {
|
|
289
|
+
readonly default: "solid";
|
|
290
|
+
};
|
|
291
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
292
|
+
readonly direction: "horizontal" | "vertical";
|
|
293
|
+
readonly borderStyle: string;
|
|
294
|
+
readonly contentPosition: "left" | "right" | "center";
|
|
295
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
296
|
+
$slots: {
|
|
297
|
+
default?(_: {}): any;
|
|
298
|
+
};
|
|
299
|
+
}) & import("vue").Plugin;
|
|
300
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
301
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElDivider, ElLink } from 'element-plus';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
+
export interface ElDividerSource extends VueComponentPropsType<typeof ElDivider>, BasicSource {
|
|
5
|
+
templateType: 'ElDivider';
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ElLinkSource extends VueComponentPropsType<typeof ElLink>, BasicSource {
|
|
9
|
+
templateType: 'ElLink';
|
|
10
|
+
label: string;
|
|
11
|
+
target?: '_blank';
|
|
12
|
+
}
|
|
13
|
+
export type Source = ElDividerSource | ElLinkSource;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NormalObject, SetDataEvent } from '@vunk/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<NormalObject>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const emits: {
|
|
10
|
+
setData: (data: SetDataEvent) => SetDataEvent;
|
|
11
|
+
};
|