@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,8 @@
|
|
|
1
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import VkfRadio from './index.vue';
|
|
4
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof VkfRadio>, BasicSource {
|
|
5
|
+
prop: P;
|
|
6
|
+
templateType: 'VkfRadio';
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
options: {
|
|
3
|
+
type: import("vue").PropType<import("@vunk/form/shared/types/form").RadioProps[]>;
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
type: {
|
|
7
|
+
type: import("vue").PropType<"button" | "radio" | "card">;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: import("vue").PropType<string | number>;
|
|
12
|
+
};
|
|
13
|
+
slots: any;
|
|
14
|
+
ariaLabel: StringConstructor;
|
|
15
|
+
id: {
|
|
16
|
+
readonly type: import("vue").PropType<string>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
+
__epPropKey: true;
|
|
20
|
+
} & {
|
|
21
|
+
readonly default: undefined;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
readonly type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
25
|
+
readonly required: false;
|
|
26
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
|
+
__epPropKey: true;
|
|
28
|
+
};
|
|
29
|
+
disabled: BooleanConstructor;
|
|
30
|
+
fill: {
|
|
31
|
+
readonly type: import("vue").PropType<string>;
|
|
32
|
+
readonly required: false;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
|
+
__epPropKey: true;
|
|
35
|
+
} & {
|
|
36
|
+
readonly default: "";
|
|
37
|
+
};
|
|
38
|
+
textColor: {
|
|
39
|
+
readonly type: import("vue").PropType<string>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
+
__epPropKey: true;
|
|
43
|
+
} & {
|
|
44
|
+
readonly default: "";
|
|
45
|
+
};
|
|
46
|
+
name: {
|
|
47
|
+
readonly type: import("vue").PropType<string>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
} & {
|
|
52
|
+
readonly default: undefined;
|
|
53
|
+
};
|
|
54
|
+
validateEvent: {
|
|
55
|
+
readonly type: import("vue").PropType<boolean>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
} & {
|
|
60
|
+
readonly default: true;
|
|
61
|
+
};
|
|
62
|
+
required: {
|
|
63
|
+
readonly type: import("vue").PropType<boolean>;
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
+
__epPropKey: true;
|
|
67
|
+
} & {
|
|
68
|
+
readonly default: undefined;
|
|
69
|
+
};
|
|
70
|
+
formItemSize: {
|
|
71
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
72
|
+
default: "default" | "small" | "large";
|
|
73
|
+
};
|
|
74
|
+
formItemSlots: {
|
|
75
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
76
|
+
default: any;
|
|
77
|
+
};
|
|
78
|
+
elRef: {
|
|
79
|
+
type: import("vue").PropType<any>;
|
|
80
|
+
required: boolean;
|
|
81
|
+
};
|
|
82
|
+
inline: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
readonly: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: any;
|
|
89
|
+
};
|
|
90
|
+
formItemTip: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: any;
|
|
93
|
+
};
|
|
94
|
+
formItemTipClass: any;
|
|
95
|
+
labelTip: {
|
|
96
|
+
type: StringConstructor;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
information: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
prop: any;
|
|
104
|
+
defaultModelValue: any;
|
|
105
|
+
label: StringConstructor;
|
|
106
|
+
labelWidth: {
|
|
107
|
+
readonly type: import("vue").PropType<string | number>;
|
|
108
|
+
readonly required: false;
|
|
109
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
110
|
+
__epPropKey: true;
|
|
111
|
+
} & {
|
|
112
|
+
readonly default: "";
|
|
113
|
+
};
|
|
114
|
+
labelPosition: {
|
|
115
|
+
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
} & {
|
|
120
|
+
readonly default: "";
|
|
121
|
+
};
|
|
122
|
+
rules: {
|
|
123
|
+
readonly type: import("vue").PropType<unknown>;
|
|
124
|
+
readonly required: false;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
+
__epPropKey: true;
|
|
127
|
+
};
|
|
128
|
+
error: StringConstructor;
|
|
129
|
+
validateStatus: {
|
|
130
|
+
readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
|
|
131
|
+
readonly required: false;
|
|
132
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
133
|
+
__epPropKey: true;
|
|
134
|
+
};
|
|
135
|
+
for: StringConstructor;
|
|
136
|
+
inlineMessage: {
|
|
137
|
+
readonly type: import("vue").PropType<string | boolean>;
|
|
138
|
+
readonly required: false;
|
|
139
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
|
+
__epPropKey: true;
|
|
141
|
+
} & {
|
|
142
|
+
readonly default: "";
|
|
143
|
+
};
|
|
144
|
+
showMessage: {
|
|
145
|
+
readonly type: import("vue").PropType<boolean>;
|
|
146
|
+
readonly required: false;
|
|
147
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
148
|
+
__epPropKey: true;
|
|
149
|
+
} & {
|
|
150
|
+
readonly default: true;
|
|
151
|
+
};
|
|
152
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
153
|
+
[key: string]: any;
|
|
154
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
155
|
+
"update:modelValue": (val: string | number | boolean | undefined) => val is string | number | boolean;
|
|
156
|
+
change: (val: string | number | boolean | undefined) => val is string | number | boolean;
|
|
157
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
+
options: {
|
|
159
|
+
type: import("vue").PropType<import("@vunk/form/shared/types/form").RadioProps[]>;
|
|
160
|
+
default: () => any[];
|
|
161
|
+
};
|
|
162
|
+
type: {
|
|
163
|
+
type: import("vue").PropType<"button" | "radio" | "card">;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
modelValue: {
|
|
167
|
+
type: import("vue").PropType<string | number>;
|
|
168
|
+
};
|
|
169
|
+
slots: any;
|
|
170
|
+
ariaLabel: StringConstructor;
|
|
171
|
+
id: {
|
|
172
|
+
readonly type: import("vue").PropType<string>;
|
|
173
|
+
readonly required: false;
|
|
174
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
175
|
+
__epPropKey: true;
|
|
176
|
+
} & {
|
|
177
|
+
readonly default: undefined;
|
|
178
|
+
};
|
|
179
|
+
size: {
|
|
180
|
+
readonly type: import("vue").PropType<"" | "default" | "small" | "large">;
|
|
181
|
+
readonly required: false;
|
|
182
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
183
|
+
__epPropKey: true;
|
|
184
|
+
};
|
|
185
|
+
disabled: BooleanConstructor;
|
|
186
|
+
fill: {
|
|
187
|
+
readonly type: import("vue").PropType<string>;
|
|
188
|
+
readonly required: false;
|
|
189
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
190
|
+
__epPropKey: true;
|
|
191
|
+
} & {
|
|
192
|
+
readonly default: "";
|
|
193
|
+
};
|
|
194
|
+
textColor: {
|
|
195
|
+
readonly type: import("vue").PropType<string>;
|
|
196
|
+
readonly required: false;
|
|
197
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
198
|
+
__epPropKey: true;
|
|
199
|
+
} & {
|
|
200
|
+
readonly default: "";
|
|
201
|
+
};
|
|
202
|
+
name: {
|
|
203
|
+
readonly type: import("vue").PropType<string>;
|
|
204
|
+
readonly required: false;
|
|
205
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
206
|
+
__epPropKey: true;
|
|
207
|
+
} & {
|
|
208
|
+
readonly default: undefined;
|
|
209
|
+
};
|
|
210
|
+
validateEvent: {
|
|
211
|
+
readonly type: import("vue").PropType<boolean>;
|
|
212
|
+
readonly required: false;
|
|
213
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
214
|
+
__epPropKey: true;
|
|
215
|
+
} & {
|
|
216
|
+
readonly default: true;
|
|
217
|
+
};
|
|
218
|
+
required: {
|
|
219
|
+
readonly type: import("vue").PropType<boolean>;
|
|
220
|
+
readonly required: false;
|
|
221
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
222
|
+
__epPropKey: true;
|
|
223
|
+
} & {
|
|
224
|
+
readonly default: undefined;
|
|
225
|
+
};
|
|
226
|
+
formItemSize: {
|
|
227
|
+
type: import("vue").PropType<"default" | "small" | "large">;
|
|
228
|
+
default: "default" | "small" | "large";
|
|
229
|
+
};
|
|
230
|
+
formItemSlots: {
|
|
231
|
+
type: import("vue").PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
232
|
+
default: any;
|
|
233
|
+
};
|
|
234
|
+
elRef: {
|
|
235
|
+
type: import("vue").PropType<any>;
|
|
236
|
+
required: boolean;
|
|
237
|
+
};
|
|
238
|
+
inline: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
readonly: {
|
|
243
|
+
type: BooleanConstructor;
|
|
244
|
+
default: any;
|
|
245
|
+
};
|
|
246
|
+
formItemTip: {
|
|
247
|
+
type: StringConstructor;
|
|
248
|
+
default: any;
|
|
249
|
+
};
|
|
250
|
+
formItemTipClass: any;
|
|
251
|
+
labelTip: {
|
|
252
|
+
type: StringConstructor;
|
|
253
|
+
default: any;
|
|
254
|
+
};
|
|
255
|
+
information: {
|
|
256
|
+
type: BooleanConstructor;
|
|
257
|
+
default: boolean;
|
|
258
|
+
};
|
|
259
|
+
prop: any;
|
|
260
|
+
defaultModelValue: any;
|
|
261
|
+
label: StringConstructor;
|
|
262
|
+
labelWidth: {
|
|
263
|
+
readonly type: import("vue").PropType<string | number>;
|
|
264
|
+
readonly required: false;
|
|
265
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
266
|
+
__epPropKey: true;
|
|
267
|
+
} & {
|
|
268
|
+
readonly default: "";
|
|
269
|
+
};
|
|
270
|
+
labelPosition: {
|
|
271
|
+
readonly type: import("vue").PropType<"" | "top" | "left" | "right">;
|
|
272
|
+
readonly required: false;
|
|
273
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
274
|
+
__epPropKey: true;
|
|
275
|
+
} & {
|
|
276
|
+
readonly default: "";
|
|
277
|
+
};
|
|
278
|
+
rules: {
|
|
279
|
+
readonly type: import("vue").PropType<unknown>;
|
|
280
|
+
readonly required: false;
|
|
281
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
282
|
+
__epPropKey: true;
|
|
283
|
+
};
|
|
284
|
+
error: StringConstructor;
|
|
285
|
+
validateStatus: {
|
|
286
|
+
readonly type: import("vue").PropType<"" | "error" | "success" | "validating">;
|
|
287
|
+
readonly required: false;
|
|
288
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
289
|
+
__epPropKey: true;
|
|
290
|
+
};
|
|
291
|
+
for: StringConstructor;
|
|
292
|
+
inlineMessage: {
|
|
293
|
+
readonly type: import("vue").PropType<string | boolean>;
|
|
294
|
+
readonly required: false;
|
|
295
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
296
|
+
__epPropKey: true;
|
|
297
|
+
} & {
|
|
298
|
+
readonly default: "";
|
|
299
|
+
};
|
|
300
|
+
showMessage: {
|
|
301
|
+
readonly type: import("vue").PropType<boolean>;
|
|
302
|
+
readonly required: false;
|
|
303
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
304
|
+
__epPropKey: true;
|
|
305
|
+
} & {
|
|
306
|
+
readonly default: true;
|
|
307
|
+
};
|
|
308
|
+
}>> & Readonly<{
|
|
309
|
+
"onUpdate:modelValue"?: (val: string | number | boolean) => any;
|
|
310
|
+
onChange?: (val: string | number | boolean) => any;
|
|
311
|
+
}>, {
|
|
312
|
+
type: "button" | "card" | "radio";
|
|
313
|
+
required: boolean;
|
|
314
|
+
fill: string;
|
|
315
|
+
formItemSize: "default" | "small" | "large";
|
|
316
|
+
formItemSlots: import("@vunk/form/components/form-item/src/types").FormItemSlots;
|
|
317
|
+
inline: boolean;
|
|
318
|
+
readonly: boolean;
|
|
319
|
+
formItemTip: string;
|
|
320
|
+
formItemTipClass: any;
|
|
321
|
+
labelTip: string;
|
|
322
|
+
information: boolean;
|
|
323
|
+
prop: any;
|
|
324
|
+
defaultModelValue: any;
|
|
325
|
+
labelWidth: string | number;
|
|
326
|
+
labelPosition: "" | "top" | "left" | "right";
|
|
327
|
+
inlineMessage: string | boolean;
|
|
328
|
+
showMessage: boolean;
|
|
329
|
+
disabled: boolean;
|
|
330
|
+
id: string;
|
|
331
|
+
name: string;
|
|
332
|
+
slots: any;
|
|
333
|
+
options: import("@vunk/form/shared/types/form").RadioProps[];
|
|
334
|
+
validateEvent: boolean;
|
|
335
|
+
textColor: string;
|
|
336
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
337
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SetDataEvent } from '@vunk/core';
|
|
2
|
+
import { NormalObject } from '@vunk/shared';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
export declare const props: {
|
|
5
|
+
data: {
|
|
6
|
+
type: PropType<NormalObject>;
|
|
7
|
+
default: () => {};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const emits: {
|
|
11
|
+
setData: (e: SetDataEvent) => SetDataEvent;
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
data: {
|
|
12
|
+
type: import("vue").PropType<import("@vunk/shared").NormalObject>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{
|
|
16
|
+
onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
|
|
17
|
+
}>, {
|
|
18
|
+
data: import("@vunk/shared").NormalObject;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,6 +14,7 @@ var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
|
14
14
|
const props = {
|
|
15
15
|
...formItem._VkfFormItemCtx.props,
|
|
16
16
|
...elementPlus.selectProps,
|
|
17
|
+
modelValue: null,
|
|
17
18
|
props: {
|
|
18
19
|
// For Type
|
|
19
20
|
type: Object,
|
|
@@ -51,6 +52,7 @@ const props = {
|
|
|
51
52
|
slots: null,
|
|
52
53
|
/**
|
|
53
54
|
* @description 若 option中含有该字段内容,则渲染为 Group
|
|
55
|
+
* @deprecated use props.options instead
|
|
54
56
|
*/
|
|
55
57
|
optionChildrenProp: {
|
|
56
58
|
type: String,
|
|
@@ -59,7 +61,8 @@ const props = {
|
|
|
59
61
|
};
|
|
60
62
|
const createBindProps = utilsVue.bindPropsFactory(props);
|
|
61
63
|
const emits = {
|
|
62
|
-
...elementPlus.selectEmits
|
|
64
|
+
...elementPlus.selectEmits,
|
|
65
|
+
"update:modelValue": null
|
|
63
66
|
};
|
|
64
67
|
const createOnEmits = utilsVue.onEmitsFactory(emits);
|
|
65
68
|
|
|
@@ -83,6 +86,18 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
86
|
optionChildrenProp: {
|
|
84
87
|
type: String,
|
|
85
88
|
default: ""
|
|
89
|
+
},
|
|
90
|
+
labelProp: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "label"
|
|
93
|
+
},
|
|
94
|
+
valueProp: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "value"
|
|
97
|
+
},
|
|
98
|
+
disabledProp: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "disabled"
|
|
86
101
|
}
|
|
87
102
|
},
|
|
88
103
|
setup(props, {
|
|
@@ -92,24 +107,24 @@ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
107
|
let _slot;
|
|
93
108
|
const isGroup = props.optionChildrenProp && Array.isArray(item[props.optionChildrenProp]) && item[props.optionChildrenProp].length > 0;
|
|
94
109
|
return isGroup ? vue.createVNode(elementPlus.ElOptionGroup, {
|
|
95
|
-
"label": item.
|
|
96
|
-
"key": item.
|
|
97
|
-
"disabled": item.
|
|
110
|
+
"label": item[props.labelProp],
|
|
111
|
+
"key": item[props.valueProp] || item[props.labelProp],
|
|
112
|
+
"disabled": item[props.disabledProp]
|
|
98
113
|
}, _isSlot(_slot = item[props.optionChildrenProp].map(childOption => vue.createVNode(ItemView, vue.mergeProps({
|
|
99
114
|
"key": childOption.value
|
|
100
115
|
}, childOption), null))) ? _slot : {
|
|
101
116
|
default: () => [_slot]
|
|
102
117
|
}) : vue.createVNode(elementPlus.ElOption, {
|
|
103
|
-
"key": item.
|
|
104
|
-
"value": item.
|
|
118
|
+
"key": item[props.valueProp] || item[props.labelProp],
|
|
119
|
+
"value": item[props.valueProp],
|
|
105
120
|
"class": item.class,
|
|
106
121
|
"created": item.created,
|
|
107
|
-
"disabled": item.
|
|
108
|
-
"label": item.
|
|
122
|
+
"disabled": item[props.disabledProp],
|
|
123
|
+
"label": item[props.labelProp],
|
|
109
124
|
"ref": item.ref,
|
|
110
125
|
"style": item.style
|
|
111
126
|
}, {
|
|
112
|
-
default: () => slots.option ? slots.option(item) : item.
|
|
127
|
+
default: () => slots.option ? slots.option(item) : item[props.labelProp]
|
|
113
128
|
});
|
|
114
129
|
};
|
|
115
130
|
return () => {
|
|
@@ -228,14 +243,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
228
243
|
default: vue.withCtx(() => [
|
|
229
244
|
vue.createVNode(_component_Options, {
|
|
230
245
|
data: _ctx.selectOptions,
|
|
231
|
-
"option-children-prop": _ctx.optionChildrenProp
|
|
246
|
+
"option-children-prop": _ctx.props.options ?? _ctx.optionChildrenProp,
|
|
247
|
+
"label-prop": _ctx.props.label,
|
|
248
|
+
"value-prop": _ctx.props.value,
|
|
249
|
+
"disabled-prop": _ctx.props.disabled
|
|
232
250
|
}, {
|
|
233
251
|
option: vue.withCtx((e) => [
|
|
234
252
|
vue.renderSlot(_ctx.$slots, "option", vue.normalizeProps(vue.guardReactiveProps(e)))
|
|
235
253
|
]),
|
|
236
254
|
_: 3
|
|
237
255
|
/* FORWARDED */
|
|
238
|
-
}, 8, ["data", "option-children-prop"]),
|
|
256
|
+
}, 8, ["data", "option-children-prop", "label-prop", "value-prop", "disabled-prop"]),
|
|
239
257
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
240
258
|
]),
|
|
241
259
|
_: 2
|
|
@@ -10,6 +10,7 @@ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
|
10
10
|
const props = {
|
|
11
11
|
..._VkfFormItemCtx.props,
|
|
12
12
|
...selectProps,
|
|
13
|
+
modelValue: null,
|
|
13
14
|
props: {
|
|
14
15
|
// For Type
|
|
15
16
|
type: Object,
|
|
@@ -47,6 +48,7 @@ const props = {
|
|
|
47
48
|
slots: null,
|
|
48
49
|
/**
|
|
49
50
|
* @description 若 option中含有该字段内容,则渲染为 Group
|
|
51
|
+
* @deprecated use props.options instead
|
|
50
52
|
*/
|
|
51
53
|
optionChildrenProp: {
|
|
52
54
|
type: String,
|
|
@@ -55,7 +57,8 @@ const props = {
|
|
|
55
57
|
};
|
|
56
58
|
const createBindProps = bindPropsFactory(props);
|
|
57
59
|
const emits = {
|
|
58
|
-
...selectEmits
|
|
60
|
+
...selectEmits,
|
|
61
|
+
"update:modelValue": null
|
|
59
62
|
};
|
|
60
63
|
const createOnEmits = onEmitsFactory(emits);
|
|
61
64
|
|
|
@@ -79,6 +82,18 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
79
82
|
optionChildrenProp: {
|
|
80
83
|
type: String,
|
|
81
84
|
default: ""
|
|
85
|
+
},
|
|
86
|
+
labelProp: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "label"
|
|
89
|
+
},
|
|
90
|
+
valueProp: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "value"
|
|
93
|
+
},
|
|
94
|
+
disabledProp: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "disabled"
|
|
82
97
|
}
|
|
83
98
|
},
|
|
84
99
|
setup(props, {
|
|
@@ -88,24 +103,24 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
88
103
|
let _slot;
|
|
89
104
|
const isGroup = props.optionChildrenProp && Array.isArray(item[props.optionChildrenProp]) && item[props.optionChildrenProp].length > 0;
|
|
90
105
|
return isGroup ? createVNode(ElOptionGroup, {
|
|
91
|
-
"label": item.
|
|
92
|
-
"key": item.
|
|
93
|
-
"disabled": item.
|
|
106
|
+
"label": item[props.labelProp],
|
|
107
|
+
"key": item[props.valueProp] || item[props.labelProp],
|
|
108
|
+
"disabled": item[props.disabledProp]
|
|
94
109
|
}, _isSlot(_slot = item[props.optionChildrenProp].map(childOption => createVNode(ItemView, mergeProps({
|
|
95
110
|
"key": childOption.value
|
|
96
111
|
}, childOption), null))) ? _slot : {
|
|
97
112
|
default: () => [_slot]
|
|
98
113
|
}) : createVNode(ElOption, {
|
|
99
|
-
"key": item.
|
|
100
|
-
"value": item.
|
|
114
|
+
"key": item[props.valueProp] || item[props.labelProp],
|
|
115
|
+
"value": item[props.valueProp],
|
|
101
116
|
"class": item.class,
|
|
102
117
|
"created": item.created,
|
|
103
|
-
"disabled": item.
|
|
104
|
-
"label": item.
|
|
118
|
+
"disabled": item[props.disabledProp],
|
|
119
|
+
"label": item[props.labelProp],
|
|
105
120
|
"ref": item.ref,
|
|
106
121
|
"style": item.style
|
|
107
122
|
}, {
|
|
108
|
-
default: () => slots.option ? slots.option(item) : item.
|
|
123
|
+
default: () => slots.option ? slots.option(item) : item[props.labelProp]
|
|
109
124
|
});
|
|
110
125
|
};
|
|
111
126
|
return () => {
|
|
@@ -224,14 +239,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
224
239
|
default: withCtx(() => [
|
|
225
240
|
createVNode(_component_Options, {
|
|
226
241
|
data: _ctx.selectOptions,
|
|
227
|
-
"option-children-prop": _ctx.optionChildrenProp
|
|
242
|
+
"option-children-prop": _ctx.props.options ?? _ctx.optionChildrenProp,
|
|
243
|
+
"label-prop": _ctx.props.label,
|
|
244
|
+
"value-prop": _ctx.props.value,
|
|
245
|
+
"disabled-prop": _ctx.props.disabled
|
|
228
246
|
}, {
|
|
229
247
|
option: withCtx((e) => [
|
|
230
248
|
renderSlot(_ctx.$slots, "option", normalizeProps(guardReactiveProps(e)))
|
|
231
249
|
]),
|
|
232
250
|
_: 3
|
|
233
251
|
/* FORWARDED */
|
|
234
|
-
}, 8, ["data", "option-children-prop"]),
|
|
252
|
+
}, 8, ["data", "option-children-prop", "label-prop", "value-prop", "disabled-prop"]),
|
|
235
253
|
renderSlot(_ctx.$slots, "footer")
|
|
236
254
|
]),
|
|
237
255
|
_: 2
|